/* Pardes Times — colours come from the masthead: royal blue letters, crimson "PARDES TIMES", navy shadow. */
:root {
  /* Every brand colour is a token; the palettes below swap them. "original" = the printed paper's blue and red. */
  --primary: #1229c2;
  --primary-600: #0f22a6;
  --primary-50: #e9edfc;
  --primary-glow: rgba(18, 41, 194, .7);
  --dark: #0a1550;
  --dark-shadow: rgba(10, 21, 80, .55);
  --dark-tint: rgba(10, 21, 80, .12);
  --accent: #c1121f;
  --accent-600: #a10e19;
  --accent-glow: rgba(193, 18, 31, .45);
  --hero-top: #0c1a5e;
  --hero-bottom: #070f3e;
  --hero-glow: rgba(44, 76, 238, .55);
  --hero-glow-2: rgba(193, 18, 31, .2);
  --logo-top: #c1121f;
  --logo-1: #2a47e8;
  --logo-2: #1229c2;
  --logo-3: #0f22a6;
  --logo-shadow: #0a1550;
  --logo-tag: #0a1550;
  --logo-rule: #c1121f;
  --wa: #128440;
  --ink: #141a2e;
  --muted: #535a70;
  --paper: #f7f3ea;
  --paper-2: #efe9dc;
  --card: #fffdf8;
  --line: #e0d8c6;

  --serif: "Fraunces", "Noto Serif Gurmukhi", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Noto Sans Gurmukhi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pa: "Noto Sans Gurmukhi", "Atkinson Hyperlegible", sans-serif;

  --gutter: 24px;
  --nav-h: 76px;
}

/* Kesri & Surmai: the saffron of the Nishan Sahib with the deep blue of the Khalsa. Calmer than the original. */
[data-palette="kesri"] {
  --primary: #1e3a6d; --primary-600: #172e58; --primary-50: #e8edf6; --primary-glow: rgba(30, 58, 109, .55);
  --dark: #13203f; --dark-shadow: rgba(19, 32, 63, .5); --dark-tint: rgba(19, 32, 63, .12);
  --accent: #b85a12; --accent-600: #9a4a0d; --accent-glow: rgba(214, 120, 40, .45);
  --hero-top: #1b2e57; --hero-bottom: #0d1630; --hero-glow: rgba(232, 144, 42, .26); --hero-glow-2: rgba(200, 160, 74, .16);
  --logo-top: #c2651a; --logo-1: #2f5394; --logo-2: #1e3a6d; --logo-3: #162b52; --logo-shadow: #0d1630; --logo-tag: #13203f; --logo-rule: #e08a2e;
  --paper: #faf6ee; --paper-2: #f2eadb; --line: #e4d9c3;
}
/* Darbar Gold: gold and marble of Sri Harmandir Sahib, with a warm saffron accent. */
[data-palette="darbar"] {
  --primary: #7a5b14; --primary-600: #5f470f; --primary-50: #f5eedb; --primary-glow: rgba(122, 91, 20, .5);
  --dark: #2a2118; --dark-shadow: rgba(42, 33, 24, .5); --dark-tint: rgba(42, 33, 24, .12);
  --accent: #a63d1e; --accent-600: #872f15; --accent-glow: rgba(166, 61, 30, .4);
  --hero-top: #3a2c1a; --hero-bottom: #1b150f; --hero-glow: rgba(212, 175, 55, .3); --hero-glow-2: rgba(166, 61, 30, .18);
  --logo-top: #a63d1e; --logo-1: #d9b44a; --logo-2: #b8902b; --logo-3: #8c6a1c; --logo-shadow: #3a2a12; --logo-tag: #2a2118; --logo-rule: #b8902b;
  --paper: #fbf8f1; --paper-2: #f3ecdd; --line: #e6dcc6;
}
/* Phulkari: deep maroon cloth embroidered with golden thread. */
[data-palette="phulkari"] {
  --primary: #7b1e34; --primary-600: #621629; --primary-50: #f7e9ec; --primary-glow: rgba(123, 30, 52, .5);
  --dark: #3b0f1b; --dark-shadow: rgba(59, 15, 27, .5); --dark-tint: rgba(59, 15, 27, .12);
  --accent: #946200; --accent-600: #7a5100; --accent-glow: rgba(212, 160, 23, .45);
  --hero-top: #5a1626; --hero-bottom: #260910; --hero-glow: rgba(222, 167, 40, .28); --hero-glow-2: rgba(196, 60, 100, .16);
  --logo-top: #b8860b; --logo-1: #a12b47; --logo-2: #7b1e34; --logo-3: #5e1628; --logo-shadow: #2e0a12; --logo-tag: #3b0f1b; --logo-rule: #d4a017;
  --paper: #fbf6ef; --paper-2: #f3e9df; --line: #e7d8c8;
}

/* Charcoal: the original logo and red, with every blue on the page turned to dark grey. */
[data-palette="charcoal"] {
  --primary: #2e3238; --primary-600: #1f2226; --primary-50: #ebe8e2; --primary-glow: rgba(30, 32, 36, .45);
  --dark: #1d1f23; --dark-shadow: rgba(29, 31, 35, .5); --dark-tint: rgba(29, 31, 35, .12);
  --rule: #3a3e45;
  --hero-top: #2b2e33; --hero-bottom: #131417; --hero-glow: rgba(255, 255, 255, .07); --hero-glow-2: rgba(193, 18, 31, .14);
}

/* Text size control: everything is sized in rem, so this scales the whole page. */
html { font-size: 112.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html[data-size="lg"] { font-size: 125%; }
html[data-size="xl"] { font-size: 140%; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .36  0 0 0 0 .3  0 0 0 0 .2  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
a { color: var(--primary); }
[lang="pa"] { font-family: var(--pa); }

.wrap { width: min(1200px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }

.ic { width: 1.25em; height: 1.25em; flex: none; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .site-footer :focus-visible, .utility :focus-visible { outline-color: #fff; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.utility { background: var(--dark); color: rgba(255, 255, 255, .88); font-size: .82rem; }
.utility-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; }
.utility-links { display: flex; gap: 22px; flex-wrap: wrap; }
.utility-links a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; }
.utility-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.textsize { display: flex; align-items: center; gap: 6px; }
.textsize-label { margin-right: 6px; opacity: .85; }
.textsize button {
  font: 700 .9rem/1 var(--sans); color: #fff; background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 8px;
  min-width: 40px; height: 34px; padding: 0 8px; cursor: pointer;
}
.textsize button:nth-of-type(2) { font-size: 1.02rem; }
.textsize button:nth-of-type(3) { font-size: 1.14rem; }
.textsize button sup { font-size: .6em; }
.textsize button:hover { border-color: #fff; }
.textsize button[aria-pressed="true"] { background: #fff; color: var(--dark); border-color: #fff; }

.masthead { text-align: center; padding: 26px 0 16px; }
.masthead-logo { display: inline-block; width: min(780px, 100%); }
.masthead-logo img, .masthead-logo svg { display: block; width: 100%; height: auto; }

.dateline {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  margin-top: 6px; padding: 9px 0;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.dateline::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; border-top: 3px solid var(--ink); }
.dateline-mid { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.dateline-mid [lang="en"] { font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }

.mainnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 234, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.mainnav-row { display: flex; justify-content: center; gap: 6px; padding: 8px 0; }
.mainnav a {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto;
  column-gap: 10px; align-items: center;
  padding: 8px 20px; border-radius: 14px;
  color: var(--ink); text-decoration: none;
  transition: background .15s, color .15s;
}
.mainnav a .ic { grid-row: 1 / span 2; width: 28px; height: 28px; color: var(--primary); }
.nav-en { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.nav-en .short { display: none; }
.nav-pa { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.mainnav a:hover { background: var(--card); }
.mainnav a.is-current { background: var(--primary-50); color: var(--primary-600); box-shadow: inset 0 -3px 0 var(--rule, var(--accent)); }

/* ---------- Covers (shared) ---------- */

.cover {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 465 / 570;
  background: linear-gradient(180deg, #fff, #f1ede4);
  border-radius: 4px;
}
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cover-fallback {
  display: none; position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 14%; text-align: center; color: var(--dark);
  background:
    linear-gradient(var(--dark), var(--dark)) center 32% / 70% 3px no-repeat,
    linear-gradient(#fff, #f3efe6);
}
.cover-fallback b { font-family: var(--serif); font-size: 1.05em; line-height: 1.1; margin-top: 1.4em; }
.cover-fallback i { font-family: var(--serif); color: var(--accent); }
.cover.is-missing img { display: none; }
.cover.is-missing .cover-fallback { display: flex; }

/* ---------- Hero: latest edition ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  border-top: 4px solid var(--rule, var(--accent));
  padding: 64px 0 56px;
  background:
    radial-gradient(900px 520px at 88% -10%, var(--hero-glow), transparent 62%),
    radial-gradient(700px 420px at -5% 105%, var(--hero-glow-2), transparent 60%),
    linear-gradient(160deg, var(--hero-top) 0%, var(--dark) 48%, var(--hero-bottom) 100%);
}
/* faint newspaper column rules */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 132px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero-watermark {
  position: absolute; z-index: -1; right: -.06em; top: -.16em;
  font: 800 clamp(110px, 19vw, 300px)/1 var(--pa);
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .07);
  white-space: nowrap; pointer-events: none; user-select: none;
}

.hero-grid {
  display: grid; grid-template-columns: minmax(240px, 400px) 1fr;
  gap: clamp(36px, 6vw, 88px); align-items: center;
}

.hero-cover { position: relative; display: block; transform: rotate(-2deg); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.hero-cover:hover { transform: rotate(0deg) translateY(-6px); }
.hero-cover .sheet { position: absolute; inset: 0; border-radius: 4px; background: #ece7dc; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
.hero-cover .sheet-1 { transform: rotate(3.2deg) translate(12px, 8px); }
.hero-cover .sheet-2 { transform: rotate(6.5deg) translate(24px, 16px); background: #d9d3c6; }
.hero-cover .cover-lg { box-shadow: 0 34px 70px -14px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .06); font-size: 1.6rem; }

.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0;
  font-weight: 700; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}
.eyebrow-pa { font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: rgba(255, 255, 255, .7); }
.pill-new {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border-radius: 999px; padding: 5px 14px 5px 11px;
  box-shadow: 0 6px 18px var(--accent-glow);
}
.pill-new .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

.hero-weekday { font-family: var(--serif); font-style: italic; font-size: 1.45rem; color: rgba(255, 255, 255, .78); margin: 26px 0 0; }
.hero-date {
  font-family: var(--serif); font-weight: 800; font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  line-height: 1; letter-spacing: -.02em; margin: 6px 0 12px; text-wrap: balance;
}
.hero-date-pa { font-size: 1.4rem; color: rgba(255, 255, 255, .82); margin: 0 0 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 24px; border-radius: 14px; border: 2px solid transparent;
  font: 700 1.05rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s, background-color .15s, border-color .15s, box-shadow .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn small { font-weight: 400; opacity: .8; margin-left: 4px; }

.btn-primary { background: #fff; color: var(--dark); box-shadow: 0 14px 34px -8px rgba(0, 0, 0, .45), inset 0 -3px 0 var(--dark-tint); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5), inset 0 -3px 0 var(--dark-tint); }
.btn-xl { min-height: 78px; padding: 0 34px 0 26px; border-radius: 18px; font-size: 1.32rem; }
.btn-xl .ic { width: 32px; height: 32px; color: var(--accent); }
.btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-text small { margin: 3px 0 0; margin-left: 0; font-size: .8rem; font-weight: 600; color: inherit; opacity: .78; }
.btn-primary .btn-text small { color: var(--muted); opacity: 1; }
.btn-text small.btn-size { display: inline; white-space: nowrap; margin: 0 0 0 4px; font-family: var(--sans); font-weight: 400; }
.btn-text-end { align-items: flex-end; }

.hero-secondary { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .42); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #0e6d34; }

.previous { margin-top: 60px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .16); }
.previous-title { margin: 0 0 18px; font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.previous-title [lang="pa"] { letter-spacing: 0; text-transform: none; font-size: 1rem; font-weight: 600; }
.previous-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.prev-card { display: flex; flex-direction: column; gap: 12px; color: #fff; text-decoration: none; }
.prev-card .cover { box-shadow: 0 14px 28px -8px rgba(0, 0, 0, .55); transition: transform .2s; font-size: .9rem; }
.prev-card:hover .cover { transform: translateY(-5px); }
.prev-date { font-weight: 700; font-size: 1rem; }
.prev-card:hover .prev-date { text-decoration: underline; text-underline-offset: 4px; }
.prev-all-box {
  aspect-ratio: 465 / 570; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 14px; text-align: center; border: 2px dashed rgba(255, 255, 255, .38); border-radius: 6px;
  transition: background .2s, border-color .2s;
}
.prev-all-box .ic { width: 34px; height: 34px; margin-bottom: 6px; }
.prev-all-box b { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; }
.prev-all-box span { color: rgba(255, 255, 255, .75); }
.prev-all-box .prev-all-pa { color: #fff; font-size: 1.05rem; font-weight: 600; }
.prev-all-box .ic-arrow { width: 26px; height: 26px; margin: 10px 0 0; color: #fff; }
.prev-all:hover .prev-all-box { background: rgba(255, 255, 255, .08); border-color: #fff; }

.hero-empty { padding: 96px 0; text-align: center; }

/* ---------- Section headings ---------- */

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 34px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px;
  color: var(--accent); font-weight: 700; font-size: .84rem; letter-spacing: .1em; text-transform: uppercase;
}
.kicker [lang="pa"] { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.section-title {
  font-family: var(--serif); font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.04; letter-spacing: -.015em; margin: 0; color: var(--dark); text-wrap: balance;
}
.section-sub { margin: 12px 0 0; max-width: 62ch; color: var(--muted); font-size: 1.08rem; }
.section-sub [lang="pa"] { display: block; }

/* ---------- PardesTimes TV: a dark "screen" panel lit by the video that is playing ---------- */

.tv { padding: 84px 0 88px; }
.btn-red { background: var(--accent); color: #fff; box-shadow: 0 12px 28px -10px var(--accent-glow); }
.btn-red:hover { background: var(--accent-600); }
.btn-red .btn-text small, .btn-glass .btn-text small { color: rgba(255, 255, 255, .78); }

.tv-stage {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 32px; color: #fff;
  background:
    radial-gradient(700px 380px at 100% 0%, rgba(193, 18, 31, .22), transparent 65%),
    linear-gradient(160deg, #141826 0%, #0b0d16 60%, #07080e 100%);
  box-shadow: 0 40px 90px -40px rgba(7, 8, 14, .9), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}
/* soft colour from the current video's thumbnail, like a TV lighting up a room */
.tv-ambient {
  position: absolute; inset: -20%; z-index: -1;
  background-size: cover; background-position: center;
  filter: blur(70px) saturate(1.5); opacity: .32; transform: scale(1.1);
  transition: background-image .6s;
}
.tv-stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px);
}

.tv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; margin-bottom: 34px; }
.tv-brand { display: flex; align-items: center; gap: 20px; }
.tv-mark {
  flex: none; display: grid; place-items: center; width: 74px; height: 54px; border-radius: 16px;
  background: linear-gradient(180deg, #e0242f, var(--accent)); color: #fff;
  box-shadow: 0 14px 30px -8px rgba(193, 18, 31, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.tv-mark svg { width: 30px; height: 30px; }
.tv-kicker {
  display: flex; align-items: center; gap: 8px; margin: 0 0 4px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.tv-kicker [lang="pa"] { letter-spacing: 0; text-transform: none; font-size: .92rem; font-weight: 600; }
.tv-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b45; box-shadow: 0 0 0 4px rgba(255, 59, 69, .2); animation: pulse 1.8s ease-in-out infinite; }
.tv-name { margin: 0; font: 800 clamp(2.1rem, 4.4vw, 3.3rem)/1.02 var(--serif); letter-spacing: -.015em; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.tv-badge {
  display: inline-block; padding: .06em .3em .1em; border-radius: .16em;
  background: #fff; color: var(--accent); font-family: var(--sans); font-weight: 700; font-size: .78em; letter-spacing: .02em; line-height: 1;
}
.tv-sub { margin: 8px 0 0; color: rgba(255, 255, 255, .72); font-size: 1.04rem; }
.tv-sub [lang="pa"] { display: block; }

.tv-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.tv-player {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -24px rgba(0, 0, 0, .85);
}
.tv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-player-solo { max-width: 960px; margin: 0 auto; }
.tv-yt, .tv-player > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-facade { position: absolute; inset: 0; z-index: 1; display: block; color: #fff; text-decoration: none; transition: opacity .35s, visibility .35s; }
/* once YouTube's player is ready, clicks go straight through the cover to it */
.tv-player.is-ready .tv-facade { pointer-events: none; }
.tv-player.is-ready:hover .tv-playbtn { transform: translate(-50%, -50%) scale(1.07); }
.tv-player.is-playing .tv-facade { opacity: 0; visibility: hidden; }
.tv-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.tv-facade:hover img { transform: scale(1.03); }
.tv-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .55)); }
.tv-playbtn {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 108px; height: 76px; border-radius: 24px;
  background: var(--accent); color: #fff; box-shadow: 0 0 0 10px rgba(193, 18, 31, .22), 0 16px 40px rgba(0, 0, 0, .5);
  transition: transform .2s, box-shadow .2s;
}
.tv-playbtn svg { width: 44px; height: 44px; }
.tv-facade:hover .tv-playbtn { transform: translate(-50%, -50%) scale(1.07); box-shadow: 0 0 0 16px rgba(193, 18, 31, .18), 0 16px 40px rgba(0, 0, 0, .5); }
.tv-playhint {
  position: absolute; z-index: 1; left: 18px; bottom: 16px; padding: 7px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-weight: 700; font-size: .9rem;
}

.tv-now { padding: 22px 2px 0; }
.tv-now-label { margin: 0; color: #ff6b73; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.tv-now-label [lang="pa"] { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.tv-now-title { margin: 6px 0 4px; font-size: 1.55rem; line-height: 1.32; }
.tv-now-when { margin: 0; color: rgba(255, 255, 255, .62); }

.tv-side { padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); }
.tv-side-title { margin: 2px 6px 12px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.tv-side-title [lang="pa"] { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.tv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tv-item {
  display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 8px; border-radius: 14px; border: 1.5px solid transparent;
  color: #fff; text-decoration: none; transition: background .15s, border-color .15s;
}
.tv-item:hover { background: rgba(255, 255, 255, .07); }
.tv-item.is-playing { background: rgba(255, 255, 255, .1); border-color: rgba(255, 107, 115, .55); }
.tv-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #1b1e2a; }
.tv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-thumb-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 38px; height: 28px; border-radius: 9px;
  background: rgba(193, 18, 31, .92); color: #fff; opacity: .9;
}
.tv-thumb-play svg { width: 17px; height: 17px; }
.is-playing .tv-thumb-play { background: #fff; color: var(--accent); }
.tv-title { font-weight: 700; font-size: .98rem; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-when { display: block; margin-top: 4px; color: rgba(255, 255, 255, .6); font-size: .84rem; }
.playing-tag {
  display: none; margin-right: 8px; padding: 1px 8px; border-radius: 6px;
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.is-playing .playing-tag { display: inline-block; }

.tv-foot { margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: center; }
.tv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }

/* Light version of the TV panel ($TV_STYLE = 'light' in index.php): warm paper card, softly tinted by the video */
.tv-stage.is-light {
  color: var(--ink);
  background:
    radial-gradient(640px 360px at 100% 0%, rgba(193, 18, 31, .09), transparent 65%),
    radial-gradient(640px 360px at 0% 100%, rgba(18, 41, 194, .07), transparent 65%),
    linear-gradient(165deg, #ffffff 0%, var(--card) 45%, #f4eee2 100%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px var(--dark-shadow), 0 2px 6px rgba(20, 26, 46, .05);
}
.tv-stage.is-light .tv-ambient { opacity: .09; filter: blur(90px) saturate(1.8); }
.tv-stage.is-light::after { display: none; }
.tv-stage.is-light .tv-kicker,
.tv-stage.is-light .tv-side-title,
.tv-stage.is-light .tv-sub,
.tv-stage.is-light .tv-when,
.tv-stage.is-light .tv-now-when { color: var(--muted); }
.tv-stage.is-light .tv-name { color: var(--dark); }
.tv-stage.is-light .tv-badge { background: var(--accent); color: #fff; }
.tv-stage.is-light .tv-now-label { color: var(--accent); }
.tv-stage.is-light .tv-player { box-shadow: 0 0 0 1px rgba(20, 26, 46, .08), 0 30px 60px -26px var(--dark-shadow); }
.tv-stage.is-light .tv-side { background: rgba(255, 255, 255, .72); border-color: var(--line); }
.tv-stage.is-light .tv-item { color: var(--ink); }
.tv-stage.is-light .tv-item:hover { background: rgba(20, 26, 46, .05); }
.tv-stage.is-light .tv-item.is-playing { background: #fff; border-color: rgba(193, 18, 31, .45); box-shadow: 0 6px 16px -10px rgba(20, 26, 46, .35); }
.tv-stage.is-light .tv-thumb { background: #e6e0d4; }
.tv-stage.is-light .is-playing .tv-thumb-play { background: var(--accent); color: #fff; }
.tv-stage.is-light .btn-glass { background: #fff; color: var(--ink); border-color: var(--line); }
.tv-stage.is-light .btn-glass:hover { border-color: var(--ink); background: #fff; }
.tv-stage.is-light .btn-glass .btn-text small { color: var(--muted); }
.tv-stage.is-light .btn-glass .ic { color: var(--accent); }
.tv-stage.is-light .tv-foot { border-top-color: var(--line); }

/* ---------- Archive: year → month → edition ---------- */

.archive { padding: 92px 0 100px; background: var(--paper-2); border-top: 1px solid var(--line); }

.steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.step-n {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--dark); color: #fff; font: 800 1.2rem/1 var(--serif);
}
.steps b { display: block; font-size: 1.04rem; line-height: 1.3; }
.steps small { display: block; color: var(--muted); font-size: .9rem; }

.years { display: grid; gap: 14px; margin-bottom: 44px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.decade { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 16px; }
.decade + .decade { border-top: 1px solid var(--line); padding-top: 14px; }
.decade-label { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); }
/* ten columns, one per year of the decade, so every decade lines up */
.decade-years { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.yr {
  display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 9px 6px 10px;
  border: 2px solid var(--line); border-radius: 14px; background: var(--paper);
  color: var(--ink); text-decoration: none; transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}
.yr:hover { border-color: var(--primary); color: var(--primary); }
.yr-num { font: 800 1.45rem/1.1 var(--serif); }
.yr-count { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.yr.is-active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 10px 22px -8px var(--primary-glow); }
.yr.is-active .yr-count { color: rgba(255, 255, 255, .86); }

.year-panel { scroll-margin-top: calc(var(--nav-h) + 16px); }
.year-panel + .year-panel { margin-top: 56px; }
.js .year-panel { display: none; margin-top: 0; }
.js .year-panel.is-active { display: block; animation: rise .35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.year-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.year-title { margin: 0; font: 800 clamp(3rem, 7vw, 4.6rem)/.9 var(--serif); color: var(--dark); letter-spacing: -.02em; }
.year-meta { margin: 0; color: var(--muted); font-size: 1.1rem; }
.year-step { display: flex; gap: 10px; margin-left: auto; align-self: center; }
.btn-step { min-height: 56px; padding: 0 16px; border-color: var(--ink); color: var(--ink); font-size: 1rem; gap: 6px; }
.btn-step:hover { background: var(--ink); color: var(--paper); }

.months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.month { padding: 18px 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 0 rgba(20, 26, 46, .04); }
.month-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.month-name { margin: 0; font: 700 1.5rem/1.1 var(--serif); }
.month-pa { color: var(--accent); font-weight: 600; font-size: 1rem; }
.month-eds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.month.has-3 .month-eds { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ed { display: flex; flex-direction: column; color: var(--ink); }
.ed-cover { display: block; }
.ed .cover {
  margin-bottom: 10px; font-size: .78rem;
  box-shadow: 0 0 0 1px rgba(20, 26, 46, .07), 0 8px 18px -8px rgba(20, 26, 46, .35);
  transition: transform .2s, box-shadow .2s;
}
.ed-cover:hover .cover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(20, 26, 46, .08), 0 18px 32px -12px rgba(20, 26, 46, .5); }
.ed-date { font-weight: 700; font-size: 1.1rem; line-height: 1.25; color: var(--ink); text-decoration: none; }
.ed-date:hover, .ed-cover:hover + .ed-info .ed-date { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.ed-info { display: flex; flex-direction: column; }
.ed-day { color: var(--muted); font-size: .84rem; }

/* Read and Download buttons under each edition */
.ed-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ed-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 7px 12px;
  border-radius: 11px; border: 1.5px solid transparent; font-weight: 700; font-size: .86rem; line-height: 1.2; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.ed-btn .ic { width: 1.1em; height: 1.1em; }
.ed-read { display: none; background: var(--primary-50); color: var(--primary-600); }
.ed-read:hover, .ed-cover:hover + .ed-info .ed-read { background: var(--primary); color: #fff; }
.ed-dl { background: var(--card); border-color: var(--line); color: var(--ink); }
.ed-dl:hover { border-color: var(--primary); color: var(--primary); }
.month:not(.has-1) .ed-dl { width: 100%; }
.month.has-3 .ed-btn { gap: 4px; padding: 6px 4px; font-size: .78rem; letter-spacing: -.01em; }
.ed-btn-text { display: flex; flex-direction: column; line-height: 1.15; }
.ed-btn-text small { display: none; font-size: .78rem; font-weight: 600; opacity: .8; }
.ed-info { min-width: 0; }

/* a month with a single edition: cover on the left, date and clear Read / Download buttons on the right */
.month.has-1 .month-eds { grid-template-columns: 1fr; }
.month.has-1 .ed { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: end; }
.month.has-1 .ed .cover { margin-bottom: 0; }
.month.has-1 .ed-date { font-size: 1.35rem; }
.month.has-1 .ed-actions { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 14px; }
.month.has-1 .ed-read { display: inline-flex; }
.month.has-1 .ed-btn { justify-content: flex-start; padding: 7px 12px; }

.month.has-1 .ed-btn-text small { display: block; }
.ed-new {
  position: absolute; top: 8px; left: 8px; padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

.month.is-empty { background: transparent; border-style: dashed; box-shadow: none; }
.month.is-empty .month-head { border-bottom-color: var(--line); }
.month.is-empty .month-name { color: var(--muted); }
.month-none { display: flex; flex-direction: column; margin: 0; color: var(--muted); }
.month-none [lang="pa"] { font-size: .9rem; }

.other-files { margin-top: 48px; }
.other-files h3 { font-family: var(--serif); }

/* ---------- Footer ---------- */

.site-footer { padding: 68px 0 28px; background: var(--dark); color: rgba(255, 255, 255, .86); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-mark { margin: 0; font: 800 2.3rem/1 var(--serif); color: #fff; }
.footer-mark::before { content: ""; display: block; width: 48px; height: 4px; margin-bottom: 18px; background: var(--accent); }
.footer-mark-pa { margin: 8px 0 14px; font-family: "Noto Serif Gurmukhi", var(--pa); font-weight: 700; font-size: 1.6rem; color: #fff; }
.footer-tag { margin: 0; max-width: 34ch; }
.footer-h { margin: 6px 0 14px; font-size: .84rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.footer-h [lang="pa"] { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.footer-email {
  display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.2rem;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 5px; overflow-wrap: anywhere;
}
.footer-email:hover { text-decoration-color: #fff; }
.footer-note { margin: 10px 0 0; color: rgba(255, 255, 255, .66); font-size: .92rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-footer { color: #fff; border-color: rgba(255, 255, 255, .32); }
.btn-footer:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 52px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .88rem; color: rgba(255, 255, 255, .6);
}

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: var(--dark); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 12px 30px -8px var(--dark-shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.palette-picker {
  position: fixed; left: 16px; bottom: 16px; z-index: 70; width: 290px; padding: 14px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .35); font-size: .85rem;
}
.palette-picker-title { margin: 0 0 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; color: var(--muted); }
.palette-option { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: var(--ink); text-decoration: none; border: 2px solid transparent; }
.palette-option:hover { background: var(--paper); }
.palette-option.is-active { border-color: var(--primary); background: var(--primary-50); }
.palette-option b { display: block; }
.palette-option small { display: block; color: var(--muted); line-height: 1.3; }
.palette-dots { display: flex; flex: none; }
.palette-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--card); margin-left: -5px; }
.palette-dots i:first-child { margin-left: 0; }

/* ---------- Smaller screens ---------- */

@media (max-width: 1180px) {
  .decade-years { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .previous-row { grid-template-columns: repeat(3, 1fr); }
  .previous-row .prev-card:nth-child(4) { display: none; }
  .tv-grid { grid-template-columns: 1fr; }
  .tv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .dateline-end { display: none; }
  .hero { padding: 40px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-cover { width: min(300px, 74%); margin: 0 auto; }
  .hero-copy { text-align: center; }
  .eyebrow { justify-content: center; }
  .hero-weekday { margin-top: 10px; }
  .hero-actions { display: flex; flex-direction: column; align-items: stretch; }
  .hero-secondary { justify-content: center; }
  .hero-secondary .btn { flex: 1 1 200px; }
  .steps { grid-template-columns: 1fr; }
  .decade { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --nav-h: 64px; }
  .utility-links { gap: 4px; }
  .utility-links a { width: 40px; height: 40px; justify-content: center; }
  .utility-links a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .utility-links .ic { width: 22px; height: 22px; }
  .textsize-label { display: none; }
  .masthead { padding: 20px 0 14px; }
  .dateline { justify-content: center; font-size: .72rem; }
  .dateline-mid { display: none; }

  .mainnav-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 6px 0; }
  .mainnav a { grid-template-columns: 1fr; grid-template-rows: auto auto; justify-items: center; row-gap: 2px; padding: 6px 2px; border-radius: 12px; }
  .mainnav a .ic { grid-row: auto; width: 24px; height: 24px; }
  .nav-en { font-size: .82rem; }
  .nav-en .long { display: none; }
  .nav-en .short { display: inline; }
  .nav-pa { display: none; }

  /* phones: small cover beside the date, so the Read button is on the first screen */
  .hero { padding: 30px 0 40px; }
  .hero-grid { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 26px 20px; }
  .hero-copy { display: contents; text-align: left; }
  .hero-cover { width: 100%; margin: 0; }
  .hero-cover .cover-lg { font-size: 1rem; }
  .eyebrow { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; font-size: .78rem; }
  .eyebrow-pa { font-size: .9rem; }
  .hero-weekday { margin-top: 12px; font-size: 1.1rem; }
  .hero-date { font-size: 2.05rem; margin: 2px 0 6px; }
  .hero-date-pa { font-size: 1rem; margin: 0; }
  .hero-actions { grid-column: 1 / -1; }
  .btn-xl { width: 100%; }
  .previous { margin-top: 44px; }
  .previous-row { grid-template-columns: repeat(2, 1fr); gap: 18px 16px; }
  .previous-row .prev-card:nth-child(4) { display: flex; }
  .prev-all { grid-column: 1 / -1; }
  .prev-all-box { aspect-ratio: auto; flex-direction: row; flex-wrap: wrap; gap: 6px 10px; padding: 18px; }
  .prev-all-box .ic, .prev-all-box .ic-arrow { margin: 0; width: 26px; height: 26px; }

  .tv, .archive { padding: 64px 0 72px; }
  .section-head .btn { width: 100%; }
  .tv-list { grid-template-columns: 1fr; }
  .tv-item { grid-template-columns: 124px minmax(0, 1fr); }
  .tv-playbtn { width: 84px; height: 58px; border-radius: 18px; }
  .tv-playhint { display: none; }
  .tv-stage { border-radius: 24px; margin-inline: -4px; }
  .tv-brand { gap: 14px; }
  .tv-mark { display: none; }
  .tv-stage { padding: 22px 18px; }
  .tv-name { font-size: 1.75rem; gap: 8px; }
  .tv-head { margin-bottom: 24px; }
  .hero-secondary .btn, .tv-actions .btn { flex: 1 1 100%; }
  .tv-side { padding: 10px; }
  .tv-head .btn { width: 100%; }
  .prev-date { font-size: .92rem; }

  .years { padding: 16px; }
  .decade-years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .yr { min-width: 0; padding: 8px 4px; }
  .year-step { width: 100%; margin-left: 0; }
  .year-step .btn { flex: 1; }
  .months { grid-template-columns: 1fr; gap: 16px; }
  .month { padding: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .to-top span { display: none; }
  .to-top { padding: 14px; }
  .palette-picker { left: 8px; right: 8px; bottom: 8px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-cover { transform: none; }
}
