/* IPN TV — foundation: type, colour tokens (light by default, night mode optional), logo, buttons, LIVE marker. */
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-display: swap; src: url(../fonts/schibsted-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-display: swap; src: url(../fonts/schibsted-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-display: swap; src: url(../fonts/schibsted-grotesk-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-display: swap; src: url(../fonts/schibsted-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 800; font-display: swap; src: url(../fonts/schibsted-grotesk-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 900; font-display: swap; src: url(../fonts/schibsted-grotesk-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url(../fonts/vazirmatn-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-display: swap; src: url(../fonts/vazirmatn-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap; src: url(../fonts/vazirmatn-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 800; font-display: swap; src: url(../fonts/vazirmatn-arabic-800-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 900; font-display: swap; src: url(../fonts/vazirmatn-arabic-900-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  /* Brand */
  --red: #D2152B;        /* IPN red: live, primary actions */
  --red-press: #A90F21;
  --red-ink: #B4101F;    /* red text on light ground (AA) */
  --red-tint: #FCE8EA;
  --navy: #0B1D3A;       /* broadcast bands: ticker, footer, live strip */
  --navy-2: #13294D;
  --gold: #9A6A0E;       /* Shayesteh text on light (AA) */
  --gold-bright: #E5B54B;/* Shayesteh on dark */
  --gold-tint: #FBF3E1;

  /* Light (default) */
  --bg: #F3F4F6;
  --paper: #FFFFFF;
  --sunk: #EBEDF1;
  --ink: #0E1726;
  --ink-2: #364052;
  --muted: #5F6A7D;
  --line: #E1E4EA;
  --line-2: #CDD2DB;
  --focus: #1F5FD6;
  --shadow-1: 0 1px 2px rgba(14,23,38,.06), 0 2px 8px rgba(14,23,38,.06);
  --shadow-2: 0 2px 6px rgba(14,23,38,.08), 0 16px 40px rgba(14,23,38,.12);
  --header: rgba(255,255,255,.96);

  --font: "Schibsted Grotesk", "Vazirmatn", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-fa: "Vazirmatn", "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);       /* exponential ease-out */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  color-scheme: light;
}
html[data-mode="dark"] {
  --bg: #0D1422;
  --paper: #141D2E;
  --sunk: #1B2639;
  --ink: #EEF1F6;
  --ink-2: #C3CADA;
  --muted: #94A0B6;
  --line: #24304A;
  --line-2: #33415E;
  --focus: #7FA8FF;
  --red-ink: #FF6576;
  --red-tint: #3A1720;
  --gold: #E5B54B;
  --gold-tint: #2E2615;
  --shadow-1: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.25);
  --shadow-2: 0 2px 6px rgba(0,0,0,.35), 0 16px 40px rgba(0,0,0,.45);
  --header: rgba(20,29,46,.96);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; font-feature-settings: "ss01"; }
html[dir="rtl"] body { font-family: var(--font-fa); line-height: 1.8; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--red); color: #fff; }
input, textarea { caret-color: var(--red); }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg); }
.num, .tabular { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
html[dir="rtl"] .ic--flip, html[dir="rtl"] .ic--go { transform: scaleX(-1); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 999; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---- Wordmark ---------------------------------------------------------------- */
.logo { display: inline-flex; align-items: stretch; height: 32px; font: 900 24px/1 "Schibsted Grotesk", sans-serif; letter-spacing: -.02em; direction: ltr; }
img.logo { width: auto; object-fit: contain; }
.logo__box { display: grid; place-items: center; padding: 0 8px; background: var(--red); color: #fff; border-radius: 5px 0 0 5px; }
.logo__tv { display: grid; place-items: center; padding: 0 7px; background: var(--ink); color: var(--paper); border-radius: 0 5px 5px 0; }

/* ---- Buttons ------------------------------------------------------------------- */
.btn { --b: var(--paper); --c: var(--ink); --bd: var(--line-2); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 20px; border: 1px solid var(--bd); border-radius: 999px; background: var(--b); color: var(--c); font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate; transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease); }
.btn:hover { --bd: var(--ink-2); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn--red { --b: var(--red); --c: #fff; --bd: var(--red); }
.btn--red:hover { --b: var(--red-press); --bd: var(--red-press); }
.btn--ink { --b: var(--ink); --c: var(--paper); --bd: var(--ink); }
.btn--ink:hover { --b: var(--ink-2); --bd: var(--ink-2); }
.btn--gold { --b: var(--gold-bright); --c: #231600; --bd: var(--gold-bright); }
.btn--gold:hover { --b: #D9A63A; --bd: #D9A63A; }
.btn--light { --b: #fff; --c: #0E1726; --bd: #fff; }
.btn--light:hover { --b: #E9ECF1; --bd: #E9ECF1; }
.btn--line-light { --b: transparent; --c: #fff; --bd: rgba(255,255,255,.55); }
.btn--line-light:hover { --bd: #fff; --b: rgba(255,255,255,.08); }
.btn--ghost { --b: transparent; }
.btn--text { --b: transparent; --bd: transparent; padding: 0 6px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
html[dir="rtl"] .btn { font-weight: 700; }
/* animate-ui style ripple, drawn by motion.js */
.btn .ripple { position: absolute; z-index: -1; border-radius: 50%; background: currentColor; opacity: .18; transform: scale(0); animation: ripple .6s var(--ease) forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.btn .ic--go { transition: transform .35s var(--ease); }
.btn:hover .ic--go { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .ic--go { transform: scaleX(-1) translateX(3px); }

/* ---- LIVE marker ------------------------------------------------------------------ */
.live-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 4px; background: var(--red); color: #fff; font: 800 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
html[dir="rtl"] .live-pill { letter-spacing: 0; font-size: 12.5px; }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: livedot 1.4s var(--ease-in-out) infinite; }
.live-pill--off { background: var(--sunk); color: var(--muted); }
.live-pill--off::before { background: var(--muted); animation: none; }
@keyframes livedot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
