/* =================================================================
   Atholhu (އަތޮޅު) — Dhivehi news, New York Times editorial language
   Display: MV Aammu (headlines) · Read: MV Faseyha Regular (body) ·
   Labels/subtitles: MV Faseyha Bold · Accent: #075699 on #FDFDFC
   ================================================================= */

/* ---------- Fonts ---------- */
@font-face {
  /* Display / headline face — the "serif headline" role (NYT Cheltenham analogue).
     Aamu under-declares its ascent (Thaana "fili" marks reach ~0.95em); override
     the metrics so the tops of vowel marks are never clipped in tight line boxes. */
  font-family: "MV Aammu";
  src: url("../fonts/MVAammu.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 100%;
  descent-override: 66%;
  line-gap-override: 0%;
}
@font-face {
  /* Reading face (body) — regular weight. */
  font-family: "MV Typewriter";
  src: url("../fonts/MVTypewriter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 100%;
  descent-override: 55%;
  line-gap-override: 0%;
}
@font-face {
  /* Label / subtitle face — bold weight (kickers, section labels, datelines, bylines). */
  font-family: "MV Typewriter";
  src: url("../fonts/MVTypewriter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 100%;
  descent-override: 55%;
  line-gap-override: 0%;
}
@font-face {
  /* Oxygen (self-hosted, latin subset) — used for the footer legal link + copyright line. */
  font-family: "Oxygen";
  src: url("../fonts/Oxygen-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Oxygen";
  src: url("../fonts/Oxygen-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Type roles. Headlines → MV Aammu; reading body → MV Faseyha (regular);
     labels/subtitles → MV Faseyha (bold). All faces carry Thaana + Latin, so
     numerals, dates and the "LIVE" mark render in-family. */
  --font-read: "MV Typewriter", Georgia, serif;            /* body reading text */
  --font-sans: "MV Typewriter", system-ui, sans-serif;     /* default text */
  --font-head: "MV Aammu", "MV Typewriter", sans-serif;    /* default headings */
  --font-mono: "MV Typewriter", ui-monospace, monospace;   /* labels (used bold) */
  --font-dv: "MV Aammu", "MV Typewriter", sans-serif;       /* display headlines */
  --font-oxygen: "Oxygen", system-ui, sans-serif;           /* footer legal + copyright */

  /* brand palette — Atholhu blue on warm paper white */
  --brand: #075699;          /* Atholhu blue */
  --brand-ink: #053f70;      /* darker blue (hover/active) */
  --shell: #fdfdfc;
  --stone: #ececea;
  --sky: #e6eef6;            /* pale blue tint (active tabs) */
  --honeydew: #dce9f6;       /* pale blue (avatars) */
  --viridian: #075699;       /* legacy alias → brand */

  /* light theme */
  --bg: #fdfdfc;             /* warm paper white */
  --bg-soft: #f2f2f0;        /* light gray panel */
  --surface: #ffffff;
  --text: #121212;           /* near-black ink */
  --text-2: #555550;         /* secondary gray */
  --text-3: #8a8a83;         /* tertiary gray */
  --border: rgba(18, 18, 18, 0.14);    /* hairline rule */
  --border-2: rgba(18, 18, 18, 0.26);
  --accent: #075699;         /* link / accent blue */
  --accent-2: #053f70;
  --breaking: #c8102e;       /* breaking-news red */
  --on-dark: #f6f7f8;
  --on-dark-2: rgba(246, 247, 248, 0.74);
  --overlay: linear-gradient(180deg, rgba(8, 12, 18, 0) 24%, rgba(8, 12, 18, 0.22) 52%, rgba(8, 12, 18, 0.9) 100%);
  --shadow: 0 1px 2px rgba(18, 18, 18, 0.05), 0 10px 28px -18px rgba(18, 18, 18, 0.22);

  /* geometry — sharp NYT rules, faint modern rounding on media only */
  --r-sm: 1px;
  --r: 2px;
  --r-lg: 3px;
  --wrap: 1400px;
  --pad-x: clamp(1rem, 4vw, 2.25rem);
  --section-y: clamp(1rem, 2.2vw, 1.7rem);
  --rule: 1px solid var(--border);
}

/* Dark mode — a blue-charcoal (deliberately distinct from the old green dark) */
[data-theme="dark"] {
  --brand: #5fa3dd;
  --brand-ink: #8bc0ec;
  --sky: #16314a;
  --honeydew: #1a3550;
  --viridian: #5fa3dd;

  --bg: #0e1217;            /* deep blue-charcoal */
  --bg-soft: #161d27;
  --surface: #141b24;
  --text: #e9ebee;
  --text-2: #a6afbc;
  --text-3: #6e7785;
  --border: rgba(150, 175, 205, 0.16);
  --border-2: rgba(150, 175, 205, 0.30);
  --accent: #5fa3dd;        /* lightened blue for contrast on dark */
  --accent-2: #8bc0ec;
  --breaking: #f0566b;
  --on-dark: #f6f7f8;
  --on-dark-2: rgba(246, 247, 248, 0.74);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -18px rgba(0, 0, 0, 0.75);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  transition: background-color 0.3s ease, color 0.3s ease;
}
img { display: block; max-width: 100%; height: auto; object-fit: cover; background: var(--bg-soft); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.012em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.rule { border: 0; border-top: var(--rule); }
.rule--mob { display: none; border: 0; border-top: var(--rule); }
@media (max-width: 768px) { .rule--mob { display: block; } }

.skip-link {
  position: absolute; inset-block-start: -999px; inset-inline-start: 0;
  background: var(--accent); color: #fff; padding: 0.5rem 0.9rem; z-index: 100; border-radius: var(--r);
}
.skip-link:focus { inset-block-start: 0; }

.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--surface); border-bottom: var(--rule); font-size: 0.72rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.dateline {
  font-family: var(--font-mono); color: var(--text-2);
  letter-spacing: 0.02em; text-transform: uppercase; font-size: 14px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.topbar__actions { display: flex; align-items: center; gap: 0.25rem; }
.topbar__link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-2); padding: 0.35rem 0.55rem; border-radius: var(--r); transition: color 0.15s, background-color 0.15s;
}
.topbar__link .ic { font-size: 0.95rem; }
.topbar__link:hover { color: var(--text); background: var(--bg-soft); }
.theme-toggle .ic--moon { display: none; }
[data-theme="dark"] .theme-toggle .ic--sun { display: none; }
[data-theme="dark"] .theme-toggle .ic--moon { display: inline-block; }

/* ---------- Masthead (logo on the RTL start/right · ad slot on the left) ---------- */
.masthead { background: var(--surface); padding-block: clamp(0.9rem, 2.4vw, 1.5rem); border-block-end: 3px solid var(--text); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 3vw, 2.5rem); }
.adslot--masthead { flex: 0 0 50%; max-width: 50%; min-height: 90px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border-2); border-radius: var(--r); background: var(--bg-soft); }
.adslot__label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); }
.lang-dv .adslot__label { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
@media (max-width: 1024px) { .adslot--masthead { display: none; } }
/* mobile masthead: 2 stacked rows — prayer times, then the ad */
@media (max-width: 768px) {
  .masthead__inner { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .adslot--masthead { display: flex; flex: 0 0 auto; width: 100%; max-width: 100%; min-height: 64px; }
}

/* ---- Prayer-times strip (replaces the masthead logo) ---- */
.prayerbar { flex: 1 1 auto; min-width: 0; display: flex; align-items: stretch; gap: clamp(0.75rem, 2vw, 1.5rem); }
.prayerbar[hidden] { display: none; }
.prayerbar__lead { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; padding-inline-end: clamp(0.75rem, 2vw, 1.4rem); border-inline-end: 1px solid var(--border); }
.prayerbar__top { display: inline-flex; align-items: center; gap: 0.5rem; }
.prayerbar__pick { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.45rem; margin-inline-start: -0.45rem; border: 0; background: none; border-radius: var(--r); cursor: pointer; color: var(--text); font: inherit; line-height: 1; transition: background-color 0.15s ease; }
.prayerbar__pick:hover { background: var(--bg-soft); }
.prayerbar__pick .ic { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }
.prayerbar__island { font-family: var(--font-dv); font-size: 1.1rem; line-height: 1; color: var(--text); }
.prayerbar__chev { width: 14px !important; height: 14px !important; color: var(--text-3); }
.prayerbar__tag { display: inline-flex; align-items: center; gap: 0.2rem; font-family: var(--font-read); font-size: 0.8rem; line-height: 1; color: var(--text-3); white-space: nowrap; border: 0; background: none; padding: 0; cursor: default; }
.prayerbar__tagchev { width: 13px !important; height: 13px !important; color: var(--text-3); display: none; }
.prayerbar__next { font-family: var(--font-read); font-size: 0.82rem; line-height: 1.2; color: var(--text-3); white-space: nowrap; }
.prayerbar__cd { font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.prayerbar__list { flex: 1 1 auto; min-width: 0; display: flex; align-items: stretch; justify-content: space-between; gap: 0.25rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.prayerbar__list::-webkit-scrollbar { display: none; }
.ptime { flex: 1 1 0; min-width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; padding: 0.6rem 0.5rem 0.4rem; border-radius: var(--r); text-align: center; }
.ptime__name { font-family: var(--font-dv); font-size: 0.92rem; line-height: 1.25; padding-block-start: 0.4rem; color: var(--text-3); }
.ptime__time { font-family: var(--font-mono); font-size: 1.02rem; font-weight: 700; line-height: 1; color: var(--text); letter-spacing: -0.01em; }
.ptime--sun .ptime__name, .ptime--sun .ptime__time { color: var(--text-3); font-weight: 400; }
.ptime.is-next { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ptime.is-next .ptime__name { color: var(--accent); }
.ptime.is-next .ptime__time { color: var(--accent); }
@media (max-width: 560px) {
  .prayerbar { flex-direction: column; gap: 0.55rem; }
  .prayerbar__lead { flex-direction: row; align-items: center; justify-content: space-between; gap: 0.75rem; padding-inline-end: 0; border-inline-end: none; padding-block-end: 0.5rem; border-block-end: 1px solid var(--border); }
  .prayerbar:not(.is-open) .prayerbar__lead { border-block-end: 0; padding-block-end: 0; }
  /* collapsed by default — tap "ނަމާދު ވަގުތު" to reveal all times */
  .prayerbar__tag { cursor: pointer; }
  .prayerbar__tagchev { display: inline-block; transition: transform 0.2s ease; }
  .prayerbar.is-open .prayerbar__tagchev { transform: rotate(180deg); }
  .prayerbar__list { display: none; justify-content: flex-start; gap: 0.4rem; }
  .prayerbar.is-open .prayerbar__list { display: flex; }
  .ptime { flex: 0 0 auto; }
}

/* ---- Island picker modal ---- */
body.modal-open { overflow: hidden; }
.islandmodal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: clamp(0.75rem, 4vw, 2rem); }
.islandmodal[hidden] { display: none; }
.islandmodal__overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--text) 55%, transparent); backdrop-filter: blur(2px); }
.islandmodal__panel { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: min(80vh, 680px); background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--r) * 1.5); box-shadow: 0 24px 60px -12px color-mix(in srgb, var(--text) 35%, transparent); overflow: hidden; }
.islandmodal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(1rem, 2.5vw, 1.4rem); border-block-end: 1px solid var(--border); }
.islandmodal__title { font-family: var(--font-dv); font-size: 1.3rem; line-height: 1; margin: 0; color: var(--text); }
.islandmodal__close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; background: var(--bg-soft); border-radius: 50%; cursor: pointer; color: var(--text-2); }
.islandmodal__close:hover { background: var(--border); color: var(--text); }
.islandmodal__close .ic { width: 18px; height: 18px; }
.islandmodal__search { position: relative; display: flex; align-items: center; padding: 0.85rem clamp(1rem, 2.5vw, 1.4rem); border-block-end: 1px solid var(--border); }
.islandmodal__search .ic { position: absolute; inset-inline-start: clamp(1.4rem, 3vw, 1.8rem); width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.islandmodal__input { flex: 1 1 auto; width: 100%; padding: 0.7rem 2.6rem 0.7rem 1rem; font-family: var(--font-read); font-size: 1rem; color: var(--text); background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r); }
.islandmodal__input:focus { outline: none; border-color: var(--accent); }
.islandmodal__body { flex: 1 1 auto; overflow-y: auto; padding: 0.5rem clamp(1rem, 2.5vw, 1.4rem) 1.2rem; -webkit-overflow-scrolling: touch; }
.islandmodal__loading { font-family: var(--font-read); color: var(--text-3); text-align: center; padding: 2rem 0; }
.islandgrp { margin-block-start: 1rem; }
.islandgrp__head { position: sticky; top: 0; z-index: 1; font-family: var(--font-read); font-size: 0.82rem; color: var(--text-3); padding: 0.4rem 0; margin-block-end: 0.5rem; background: var(--surface); border-block-end: 1px solid var(--border); }
.islandgrp__opts { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.islandopt { font-family: var(--font-dv); font-size: 1rem; line-height: 1; padding: 0.5rem 0.85rem; color: var(--text); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease; }
.islandopt:hover { border-color: var(--accent); color: var(--accent); }
.islandopt.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.wordmark {
  font-family: var(--font-dv); font-weight: 700; letter-spacing: 0;
  font-size: clamp(1.7rem, 4.4vw, 2.7rem); line-height: 1; display: inline-block; color: var(--text);
}
.wordmark--sm { font-size: 1.25rem; }

/* ---------- Sticky top (nav + breaking bar stay pinned together) ---------- */
/* header wrapper generates no box, so .stickytop sticks relative to the page, not the short header */
#site-header { display: contents; }
.stickytop { position: sticky; inset-block-start: 0; z-index: 50; }
.stickytop.is-scrolled { box-shadow: 0 6px 20px -12px rgba(37, 48, 44, 0.28); }

/* ---------- Main nav ---------- */
.mainnav {
  position: relative;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: var(--rule);
}
.stickytop.is-scrolled .mainnav { border-block-start: var(--rule); }
.mainnav__inner { display: flex; align-items: center; gap: 1rem; min-height: 46px; }
/* logo slides in beside the nav once the masthead scrolls away */
.mainnav__logo { display: none; align-items: center; flex: none; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; }
.stickytop.is-scrolled .mainnav__logo { display: inline-flex; }
.lang-dv .mainnav__logo { font-family: var(--font-dv); }
.nav-list { position: relative; display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.1rem); flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-link {
  position: relative; display: inline-flex; align-items: center;
  font-size: 18px; font-weight: 500; color: var(--text-2); white-space: nowrap;
  padding-block: 0.85rem; transition: color 0.25s ease;
}
.lang-dv .nav-link { font-family: var(--font-dv); font-size: 18px; }
.nav-link:hover, .nav-link.is-active { color: var(--accent); }
/* single elastic underline: ONE blue bar (positioned by setupNavUnderline) that
   slides + rubber-band stretches between links on hover, resting under the active. */
.nav-underline {
  position: absolute; inset-block-end: 0; height: 2px; background: var(--accent);
  border-radius: 2px; pointer-events: none; opacity: 0;
}
.nav-underline.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .nav-link { transition: none; } }
.nav-tools { display: flex; align-items: center; gap: 0.4rem; margin-inline-start: auto; }
.tool {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-2); padding: 0.35rem 0.5rem; border-radius: var(--r); transition: color 0.15s, background-color 0.15s;
}
.tool .ic { font-size: 0.95rem; }
.tool:hover { color: var(--text); background: var(--bg-soft); }

/* ---------- Breaking-news bar (full width, below header) — brand blue ---------- */
.breakingbar { background: #075699; color: #fff; }
[data-theme="dark"] .breakingbar { background: #0b4f86; }
.breakingbar__inner { display: flex; align-items: stretch; height: 40px; }
.breakingbar__label {
  flex: none; display: inline-flex; align-items: center; white-space: nowrap;
  padding-inline-end: clamp(0.7rem, 2vw, 1.1rem);
  margin-inline-end: clamp(0.7rem, 2vw, 1.1rem);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.breakingbar__viewport {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1.4rem, #000 calc(100% - 1.6rem), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 1.4rem, #000 calc(100% - 1.6rem), transparent 100%);
}
.breakingbar__track {
  flex: none; display: inline-flex; align-items: center; white-space: nowrap;
  animation: breakingScroll 42s linear infinite; will-change: transform;
}
.breakingbar:hover .breakingbar__track { animation-play-state: paused; }
.breakingbar__item { color: #fff; font-size: 0.9rem; font-weight: 500; transition: opacity 0.15s; }
.breakingbar__item:hover { opacity: 0.82; text-decoration: underline; }
.breakingbar__sep { padding-inline: 1rem; opacity: 0.5; }
@keyframes breakingScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .breakingbar__track { animation-name: breakingScrollRtl; }
@keyframes breakingScrollRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
.lang-dv .breakingbar__label { font-size: 0.9rem; text-transform: none; letter-spacing: 0; }
.lang-dv .breakingbar__item { font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { .breakingbar__track { animation: none; } }
@media (max-width: 720px) {
  .breakingbar__inner { height: 36px; }
  .breakingbar__item { font-size: 0.82rem; }
  .lang-dv .breakingbar__item { font-size: 0.86rem; }
}

/* ---------- Live coverage banner (sits below the breaking bar) ---------- */
.livebar { background: var(--surface); border-block-end: var(--rule); }
.livebar__inner { display: flex; align-items: center; gap: 0.7rem; min-height: 38px; color: var(--text); }
.livebar__badge {
  flex: none; display: inline-flex; align-items: center; gap: 0.45em;
  background: var(--breaking); color: #fff; border-radius: 999px; padding: 0.18rem 0.55rem;
  font-family: var(--font-sans); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.livebar__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: livePulse 1.4s ease-in-out infinite; }
.livebar__title { min-width: 0; font-weight: 600; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s; }
.livebar__arrow { flex: none; margin-inline-start: auto; display: inline-flex; color: var(--text-3); }
.livebar__arrow .ic { width: 16px; height: 16px; }
.livebar:hover .livebar__title { color: var(--accent); }
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.55); } }
[dir="rtl"] .livebar__arrow .ic { transform: scaleX(-1); }
/* the LIVE badge is always Latin "LIVE" in Satoshi (en + dv) — no lang-dv override */
.lang-dv .livebar__title { font-family: var(--font-dv); font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { .livebar__dot { animation: none; } }
@media (max-width: 720px) { .livebar__inner { min-height: 34px; gap: 0.55rem; } .livebar__title { font-size: 0.8rem; } }

/* ---------- LIVE / BREAKING label pills (shown before card titles) ---------- */
.pill {
  align-self: flex-start; flex: none; width: max-content; max-width: 100%;
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--font-sans); font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; line-height: 1;
  color: #fff; background: var(--breaking); border-radius: 999px; padding: 0.26rem 0.55rem;
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: livePulse 1.4s ease-in-out infinite; }
.pill--lg { font-size: 0.72rem; padding: 0.32rem 0.7rem; gap: 0.5em; }
.pill--lg .pill__dot { width: 7px; height: 7px; }
/* Dhivehi BREAKING carries Thaana → AK Rasmee, drop the Latin caps/tracking */
.lang-dv .pill--breaking { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; }
@media (prefers-reduced-motion: reduce) { .pill__dot { animation: none; } }

/* ---------- Live coverage timeline (single live page) ---------- */
.livecov { margin-block: clamp(1.6rem, 3.4vw, 2.4rem); }
.livecov__bar {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  padding-block-end: 0.75rem; margin-block-end: 1.1rem; border-block-end: var(--rule);
}
.livestatus {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; background: var(--breaking); border-radius: 999px; padding: 0.28rem 0.62rem;
}
.livestatus--off { background: var(--text-3); }
.livestatus__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: livePulse 1.4s ease-in-out infinite; }
.lang-dv .livestatus--off { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; }
@media (prefers-reduced-motion: reduce) { .livestatus__dot { animation: none; } }
.livecov__updated { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); letter-spacing: 0.02em; }
.lang-dv .livecov__updated { font-family: var(--font-mono); letter-spacing: 0; }
.livecov__head { font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 800; letter-spacing: -0.02em; margin-block-end: 1.1rem; }
.lang-dv .livecov__head { font-family: var(--font-dv); }

.liveupds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.liveupd { display: grid; grid-template-columns: 46px 1fr; gap: 0.4rem; }
.liveupd__time { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; padding-block-start: 0.05rem; }
/* vertical rail with a node dot per update */
.liveupd__body { position: relative; padding-inline-start: 1.15rem; padding-block-end: 1.3rem; border-inline-start: 2px solid var(--border-2); }
.liveupd:last-child .liveupd__body { border-color: transparent; padding-block-end: 0; }
.liveupd__body::before {
  content: ""; position: absolute; inset-inline-start: -6px; top: 0.3em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--breaking); box-shadow: 0 0 0 3px var(--surface);
}
.liveupd__text { font-size: 19px; line-height: 1.8; color: var(--text); margin: 0; }
/* Dhivehi update text uses AK Rasmee, matching the single-article body (.lang-dv .article__body) */
.lang-dv .liveupd__text { font-family: var(--font-mono); line-height: 2.05; }
.liveupd__img { display: block; width: 100%; max-width: 460px; border-radius: var(--r-card); margin-block-start: 0.75rem; }
.liveupd__link {
  display: inline-flex; align-items: center; gap: 0.35em; margin-block-start: 0.65rem;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent);
}
.liveupd__link .ic { width: 14px; height: 14px; }
.lang-dv .liveupd__link { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; }
[dir="rtl"] .liveupd__link .ic { transform: scaleX(-1); }

/* ---------- Shared text bits ---------- */
.kicker {
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); display: inline-block;
}
.kicker--accent { color: var(--accent); }
.kicker--light { color: #fff; }
.excerpt { color: var(--text-2); font-size: 0.94rem; line-height: 1.58; }
.excerpt--sm { font-size: 0.86rem; }

.byline { display: flex; align-items: center; }
.byline > div { display: flex; flex-direction: row; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
/* pipe separator between name and date */
.byline__date::before { content: "|"; margin-inline-end: 0.5rem; color: var(--border-2); font-family: sans-serif; font-weight: 300; }
.byline__name { font-size: 14px; font-weight: 600; color: var(--text); }
.byline__date { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.02em; color: var(--text-3); }
.byline--light .byline__name { color: #fff; }
.byline--light .byline__date { color: var(--on-dark-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); }
.byline--light .avatar { border-color: rgba(255, 255, 255, 0.35); }
.avatar--lg { width: 44px; height: 44px; }

.meta { display: flex; align-items: center; gap: 0.85rem; font-family: var(--font-mono); font-size: 14px; color: var(--text-3); letter-spacing: 0.02em; }
.meta__cat { color: var(--accent); text-transform: uppercase; font-weight: 700; letter-spacing: 0.08em; }
.meta__author { color: var(--text-2); font-size: 14px; }
.meta__item { display: inline-flex; align-items: center; gap: 0.32em; }
.meta__item .ic { font-size: 0.92rem; }

/* ---------- Cards (base) ---------- */
.card { background: var(--surface); border-radius: var(--r); }
.card__media { display: block; overflow: hidden; border-radius: var(--r); position: relative; }
.card__media img { width: 100%; transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }
.card__media:hover img { transform: scale(1.04); }
.card__title { font-size: 1rem; line-height: 1.22; }
.card__title a:hover, a:hover > .card__title { color: var(--accent); }
/* clamp all card titles to 2 lines, then ellipsis */
.card__title, .lnews__title, .wvcard__title, .hstory__title, .lcard__title, .hcard__title, .gcard__title, .rrow__title, .rfeature__title, .pcard__title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
/* cards with text over a dark image — keep a light blue hover in both themes */
.recent__grid .card--feature .card__title a:hover,
.card--overlay .card__title a:hover { color: #8bc0ec; }
.card__title--lg { font-size: clamp(1.15rem, 2.1vw, 1.55rem); line-height: 1.12; }
.card__title--xl { font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.card__body { padding: 0.8rem 0.9rem 0.95rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card__body--pad { padding: 1rem 0.2rem 0.2rem; }
.badge {
  position: absolute; inset-block-end: 0.7rem; inset-inline-start: 0.7rem;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; background: rgba(16, 15, 12, 0.62); padding: 0.28rem 0.55rem; border-radius: var(--r-sm); backdrop-filter: blur(2px);
}

/* overlay card (image with text on top) */
.card--overlay, .card--feature { position: relative; overflow: hidden; border-radius: var(--r); }
.card--overlay .card__media, .card--feature .card__media { border-radius: 0; }
.card--overlay .card__media img, .card--feature .card__media img { width: 100%; height: 100%; }
.card--overlay::after, .card--feature::after {
  content: ""; position: absolute; inset: 0; background: var(--overlay); pointer-events: none; border-radius: inherit;
}
.card__overlay-body {
  position: absolute; inset-block-end: 0; inset-inline: 0; z-index: 2;
  padding: clamp(0.9rem, 2vw, 1.3rem); display: flex; flex-direction: column; gap: 0.6rem; color: #fff;
}
.card__overlay-body .card__title { color: #fff; }
.card--overlay { aspect-ratio: 16 / 11; }

/* quote card */
.card--quote {
  background: var(--bg-soft); border: var(--rule); border-radius: var(--r);
  padding: clamp(1rem, 2vw, 1.4rem); display: flex; flex-direction: column; gap: 0.7rem; flex: 1;
}
.quote__mark { display: block; width: clamp(2.6rem, 6vw, 3.6rem); height: auto; fill: color-mix(in srgb, var(--text) 14%, transparent); margin-block-end: -0.1rem; }
.quote__text { font-size: 1.02rem; line-height: 1.45; font-weight: 500; color: var(--text); font-style: italic; }
.quote__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-block-start: auto; }
.quote__author { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--text-2); text-transform: uppercase; }
.lang-dv .quote__text { font-style: normal; }
/* circular "go to article" button (top of quote card) */
.quote__go { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: var(--rule); color: var(--accent); transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.quote__go:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.quote__go .ic { width: 18px; height: 18px; }
[dir="rtl"] .quote__go .ic { transform: scaleX(-1); }
/* slider dots (replace the arrow) — sit where the arrow was, in the quote foot */
.quote__dots { flex: none; display: flex; align-items: center; gap: 6px; }
.quote__dot { width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%; background: color-mix(in srgb, var(--text) 22%, transparent); cursor: pointer; transition: background-color 0.18s ease, width 0.18s ease; }
.quote__dot:hover { background: color-mix(in srgb, var(--accent) 70%, transparent); }
.quote__dot.is-on { width: 18px; border-radius: 4px; background: var(--accent); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(1.1rem, 2.4vw, 2rem); align-items: stretch; }
.hero__lead { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(0.9rem, 2vw, 1.5rem); align-items: center; }
.hero__media { display: block; overflow: hidden; border-radius: var(--r); align-self: stretch; }
.hero__media img { width: 100%; height: 100%; min-height: 240px; object-position: 0% center; transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); animation: heroPan 24s ease-in-out infinite alternate; }
.hero__media:hover img { transform: scale(1.03); }
@keyframes heroPan { from { object-position: 0% center; } to { object-position: 100% center; } }
.hero__body { display: flex; flex-direction: column; gap: 0.75rem; }
.hero__title { font-size: clamp(1.6rem, 3.3vw, 2.6rem); line-height: 1.07; font-weight: 800; letter-spacing: -0.022em; }
.hero__aside { display: flex; flex-direction: column; gap: clamp(0.9rem, 1.8vw, 1.2rem); }

/* ---------- Recently added ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-block-end: clamp(1rem, 2.2vw, 1.45rem); padding-block-end: 0.55rem; border-block-end: var(--rule); }
.section-title { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700; letter-spacing: 0; line-height: 1.2; padding-block-end: 0.55rem; margin-block-end: -0.58rem; border-block-end: 0; }

/* ===== Luminous BLUE gradient underline with a realistic upward light-bleed =====
   • the LINE is a horizontal blue gradient drawn as the title's own background (bottom 2.5px)
   • ::before = the upward bloom — a radial blue glow, brightest AT the line, feathered ends,
     non-linear vertical falloff (mask), clipped so NOTHING renders below the line
   • ::after  = a soft sheen that sweeps across on hover
   Tuned for the light page (normal blend, saturated blue) and adapts to dark via vars. */
.section-title {
  position: relative;
  --gl-edge: var(--accent-2);
  --gl-core: color-mix(in srgb, var(--accent) 62%, #2bb0ff);     /* vivid hot core */
  --gl-bloom-1: color-mix(in srgb, var(--accent) 52%, transparent);
  --gl-bloom-2: color-mix(in srgb, var(--accent) 24%, transparent);
  --gl-rest: 0.85;
  background-image: linear-gradient(90deg, var(--gl-edge) 0%, var(--gl-core) 50%, var(--gl-edge) 100%);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 2.5px;
}
[data-theme="dark"] .section-title {
  --gl-edge: var(--accent);
  --gl-core: color-mix(in srgb, var(--accent-2) 65%, #ffffff);
  --gl-bloom-1: color-mix(in srgb, var(--accent-2) 60%, transparent);
  --gl-bloom-2: color-mix(in srgb, var(--accent-2) 28%, transparent);
  --gl-rest: 0.95;
}
/* base bloom — strongest at the line, fades UP, and FADES OUT toward both ends (horizontal
   mask). On hover it grows upward from the line (scaleY from the bottom). Nothing below. */
.section-title::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1.05rem;
  pointer-events: none;
  opacity: 0;                         /* glow shows only on hover */
  transform: scaleY(0.35);           /* collapsed at the line… */
  transform-origin: bottom;
  filter: blur(0.5px);
  clip-path: inset(-150% 0 0 0);     /* up/side overhang ok, hard-cut at the line — nothing below */
  background: linear-gradient(to top,
    var(--gl-bloom-1) 0%, var(--gl-bloom-2) 38%, transparent 82%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 74%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 74%, transparent 100%);
  transition: opacity 0.45s ease, transform 0.5s ease;
}
/* rising shimmer — a soft band of light that travels from the line UP to the top on hover,
   also faded toward both ends */
.section-title::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1.05rem;
  pointer-events: none;
  opacity: 0;
  clip-path: inset(-150% 0 0 0);
  background-image: linear-gradient(to top, transparent 0%, color-mix(in srgb, var(--gl-core) 62%, #ffffff) 50%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 100% 55%;
  background-position: 50% 140%;      /* band starts down at the line */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
/* hover: base glow rises into place; shimmer loops bottom → top */
.section-title:hover::before { opacity: var(--gl-rest); transform: scaleY(1); }
.section-title:hover::after { animation: sectionTitleRise 2.2s ease-in-out infinite; }
@keyframes sectionTitleRise {
  0%   { background-position: 50% 140%; opacity: 0; }
  22%  { opacity: 0.85; }
  100% { background-position: 50% -40%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .section-title::after { display: none; }
  .section-title::before { transition: none; transform: none; }
  .section-title:hover::before { opacity: var(--gl-rest); transform: none; }
}
.section-title--icon { display: inline-flex; align-items: center; gap: 0.45em; }
.section-title--icon .ic { width: 0.92em; height: 0.92em; color: var(--accent); flex: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tab {
  font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-3); padding: 0.32rem 0.6rem; border-radius: var(--r-card); transition: color 0.15s, background-color 0.15s;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--viridian); background: var(--sky); }

.recent__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.card--feature { min-height: 100%; display: flex; }
.recent__grid > .card--feature { aspect-ratio: auto; }
.recent__grid .card--feature .card__media { position: absolute; inset: 0; }
.recent__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.9rem, 1.8vw, 1.4rem); }
.card--mini { overflow: hidden; border: var(--rule); }
/* YouTube-style hover: a soft grey rounded surround fades in around the whole card */
.card--mini, .wvcard, .lcard, .pcard, .lnews, .hcard {
  border-radius: var(--r-lg);
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
/* surround padding: equal 16px on all sides. --hover-bg is set per-card from the
   thumbnail's average colour (see initChrome); falls back to the neutral grey. */
.card--mini:hover, .wvcard:hover, .lcard:hover, .pcard:hover, .lnews:hover, .hcard:hover {
  background: var(--hover-bg, var(--bg-soft));
  box-shadow: 0 0 0 16px var(--hover-bg, var(--bg-soft));
}
.card--mini .card__media { aspect-ratio: 3 / 2; border-radius: 0; }
.card--mini .card__title { font-size: 0.96rem; line-height: 1.2; }

/* ---------- Mixed / feature ---------- */
.mixed { display: grid; grid-template-columns: 1.18fr 1fr; gap: clamp(1.2rem, 2.6vw, 2.2rem); align-items: start; }
.mixed__col { display: flex; flex-direction: column; min-width: 0; }
.mixed__list { display: flex; flex-direction: column; }
.mixed__more { align-self: flex-start; margin-block-start: clamp(0.9rem, 2vw, 1.3rem); }
/* desktop: the big feature (left) stays in view while the list scrolls past.
   override .card--feature's min-height:100% so it stays content-height and can stick */
@media (min-width: 1025px) {
  .mixed > .card--feature-wide { position: sticky; top: 72px; align-self: start; min-height: 0; }
}
.post { display: flex; gap: 1rem; align-items: flex-start; padding-block: clamp(0.9rem, 1.8vw, 1.2rem); }
.post:first-child { padding-block-start: 0; }
.post + .post { border-block-start: var(--rule); }
.post__body { display: flex; flex-direction: column; gap: 0.45rem; flex: 1; min-width: 0; }
.post__title { font-size: 1.04rem; line-height: 1.2; transition: color 0.15s; }
.post:hover .post__title { color: var(--accent); }
.post__thumb { flex: none; width: 96px; height: 76px; overflow: hidden; border-radius: var(--r); }
.post__thumb img { width: 100%; height: 100%; }
.card--feature-wide { position: relative; display: flex; flex-direction: column; background: transparent; }
.card--feature-wide .card__media { aspect-ratio: 16 / 10; border-radius: var(--r); }
.card--feature-wide::after { content: none; }
.card--feature-wide .card__title { color: var(--text); }

/* ---------- Strip ---------- */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(0.7rem, 1.6vw, 1.2rem); }
.strip__item { display: flex; gap: 0.7rem; align-items: center; padding: 0.2rem; border-radius: var(--r); transition: background-color 0.15s; }
.strip__item:hover { background: var(--bg-soft); }
.strip__item img { width: 58px; height: 44px; border-radius: var(--r-sm); flex: none; }
.strip__item > div { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.strip__title { font-size: 0.82rem; font-weight: 600; line-height: 1.2; color: var(--text); }
.strip__item:hover .strip__title { color: var(--accent); }
.strip .kicker { font-size: 0.6rem; letter-spacing: 0.1em; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-block-start: var(--rule); margin-block-start: var(--section-y); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(1.8rem, 3.5vw, 2.6rem); align-items: start; }
.footer__tag { color: var(--text-2); font-size: 0.9rem; margin-block-start: 0.6rem; max-width: 34ch; }
.footer__cols { display: flex; gap: clamp(1.5rem, 3vw, 2.5rem); }
.footer__col { display: flex; flex-direction: column; gap: 0.55rem; min-width: 7rem; }
.footer__legal { color: var(--text-3); transition: color 0.15s; }
.footer__legal:hover { color: var(--accent); }
/* copyright: always Satoshi (sans), normal case, LTR — even in the Dhivehi view */
.footer__copy, .lang-dv .footer__copy { font-family: var(--font-sans); text-transform: none; letter-spacing: normal; direction: ltr; }
/* footer legal link + copyright line use the Oxygen face (self-hosted) */
.footer__copy, .footer__legal,
.lang-dv .footer__copy, .lang-dv .footer__legal {
  font-family: var(--font-oxygen);
  text-transform: none;
  letter-spacing: normal;
  direction: ltr;
}
.footer__head { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-block-end: 0.2rem; }
.footer__col a { font-size: 0.88rem; color: var(--text-2); transition: color 0.15s; width: fit-content; }
.footer__col a:hover { color: var(--accent); }
/* footer social icons — horizontal row, brand-colored */
.footer__socials { display: flex; align-items: center; gap: 0.6rem; }
.footer__social { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-soft); transition: transform 0.15s ease, background-color 0.15s ease; }
.footer__social:hover { transform: translateY(-2px); background: var(--border); }
.footer__socialic { width: 22px; height: 22px; display: block; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1rem; border-block-start: var(--rule); font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); }

/* =================================================================
   Dhivehi (Thaana, RTL) overrides
   ================================================================= */
.lang-dv body, body[dir="rtl"] { font-family: var(--font-read); }
.lang-dv { font-family: var(--font-read); }
/* Headlines → MV Aammu (display). Body, excerpts, bylines, links inherit MV Faseyha. */
.lang-dv h1, .lang-dv h2, .lang-dv h3, .lang-dv h4,
.lang-dv .wordmark, .lang-dv .hero__title, .lang-dv .card__title,
.lang-dv .post__title, .lang-dv .strip__title, .lang-dv .section-title,
.lang-dv .quote__text, .lang-dv .nav-link { font-family: var(--font-dv); }

/* Accent labels keep AK Rasmee (it carries Thaana) — only drop the uppercase and
   letter-spacing that suit Latin but read poorly in Thaana. */
.lang-dv .kicker, .lang-dv .dateline, .lang-dv .topbar__link, .lang-dv .tool,
.lang-dv .tab, .lang-dv .meta, .lang-dv .meta__cat,
.lang-dv .quote__author, .lang-dv .badge, .lang-dv .footer__head, .lang-dv .footer__bottom {
  font-family: var(--font-mono);
  text-transform: none;
  letter-spacing: 0;
}
/* Thaana sits taller — give it breathing room */
.lang-dv { line-height: 1.7; }
.lang-dv .hero__title, .lang-dv .card__title--xl, .lang-dv .card__title--lg { line-height: 1.45; letter-spacing: 0; font-weight: 700; }
.lang-dv .wordmark { letter-spacing: 0; }
.lang-dv .card__title, .lang-dv .post__title, .lang-dv .quote__text { line-height: 1.55; letter-spacing: 0; }
.lang-dv .excerpt { line-height: 1.85; }
.lang-dv .nav-link { padding-block: 0.7rem; }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero__aside { flex-direction: row; }
  .hero__aside > * { flex: 1; }
  .card--overlay { aspect-ratio: 4 / 3; }
  .recent__grid { grid-template-columns: 1fr; }
  .recent__grid .card--feature { aspect-ratio: 16 / 10; position: relative; }
  .recent__grid .card--feature .card__media { position: absolute; inset: 0; }
  .mixed { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .strip__item:nth-child(4), .strip__item:nth-child(5) { display: none; }
}

/* ---------- Mobile nav — 3 items + dropdown ---------- */
.nav-more-item { display: none; }
/* menu toggle lives in .nav-tools (before search); only shown on mobile */
.nav-more-btn {
  display: none; align-items: center; justify-content: center;
  padding: 0; color: var(--text-2); transition: color 0.15s;
}
.nav-more-btn .ic { width: 24px; height: 24px; stroke-width: 1.6; }
.nav-more-btn:hover { color: var(--text); }
.nav-more-btn[aria-expanded="true"] { color: var(--accent); }
.nav-more-btn .ic--close { display: none; }
.nav-more-btn[aria-expanded="true"] .ic--menu  { display: none; }
.nav-more-btn[aria-expanded="true"] .ic--close { display: block; }

/* Dropdown panel — floats below the full sticky header */
.nav-dropdown {
  display: none;
  position: absolute; inset-inline: 0;
  background: var(--surface);
  border-block-end: var(--rule);
  box-shadow: 0 8px 24px -8px rgba(37,48,44,0.14);
  z-index: 49;
  padding: 0.5rem var(--pad-x) 0.9rem;
}
.nav-dropdown.is-open { display: flex; flex-direction: column; gap: 0; }
.nav-drop-link {
  font-size: 18px; font-weight: 500; color: var(--text-2);
  padding: 0.7rem 0; border-block-end: var(--rule);
  transition: color 0.15s;
}
.nav-drop-link:last-child { border-block-end: none; }
.nav-drop-link:hover, .nav-drop-link.is-active { color: var(--accent); }
.lang-dv .nav-drop-link { font-family: var(--font-dv); }
/* menu open — lock page scroll + blur the content behind the dropdown */
body.nav-open { overflow: hidden; }
body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 48; background: color-mix(in srgb, var(--text) 20%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

@media (max-width: 720px) {
  :root { --section-y: clamp(0.85rem, 4vw, 1.3rem); }
  .topbar__inner { min-height: 34px; }
  .dateline { font-size: 0.62rem; }
  .topbar__link span, .tool span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  /* small screens: collapse the category row to a menu icon — keep only the logo */
  .nav-list { flex: 0 0 auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .nav-list > li:not(:first-child) { display: none; } /* keep only the logo item */
  .nav-underline { display: none; }
  .mainnav__inner { gap: 0.6rem; }
  .nav-more-btn { display: inline-flex; }
  .nav-more-btn .ic { width: 24px; height: 24px; }
  .hero__lead { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16 / 10; }
  .hero__aside { flex-direction: column; }
  .recent__cols { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip__item:nth-child(3) { display: none; }
}

@media (max-width: 460px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr; }
  .strip__item:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =================================================================
   Interior pages — buttons, listings, article, comments, search
   ================================================================= */
.no-scroll { overflow: hidden; }
.btn {
  display: inline-flex; align-items: center; gap: 0.4em; width: fit-content;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 0.86rem;
  padding: 0.6rem 1.1rem; border-radius: var(--r-card); transition: background-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.field {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border-2);
  border-radius: var(--r-card); padding: 0.6rem 0.75rem; font-family: inherit; font-size: 0.92rem; line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea.field { resize: vertical; min-height: 84px; }

/* ---------- Listing (category / tag / search) ---------- */
.listing { padding-block: clamp(1.4rem, 3vw, 2.2rem); }
.listing__head { margin-block-end: clamp(1.1rem, 2.4vw, 1.6rem); border-block-end: var(--rule); padding-block-end: clamp(0.9rem, 2vw, 1.3rem); }
.listing__eyebrow { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.listing__title { font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin-block-start: 0.4rem; }
.listing__count { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); letter-spacing: 0.02em; margin-block-start: 0.6rem; }
.listing__count strong { color: var(--text); font-weight: 700; }

/* Split header: eyebrow on its own row, then title and count share one baseline — a full-width
   masthead bar. Logical properties so it mirrors per language:
   EN (LTR) → title left / count right;  DV (RTL) → title right / count left. */
.listing__head--split { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1.5rem; }
.listing__head--split .listing__eyebrow { flex-basis: 100%; margin: 0; }
.listing__head--split .listing__count { margin-block-start: 0; margin-inline-start: auto; white-space: nowrap; }
/* centered archive tile: breadcrumb above a centered title */
.listing__head--center { text-align: center; }
.listing__head--center .listing__title { margin-block-start: 0.5rem; }
.crumbs--center { justify-content: center; margin-block-end: 0; }
.crumbs__cur { color: var(--text-3); }

.listing__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.2vw, 1.6rem); }
@media (max-width: 980px) { .listing__grid { grid-template-columns: repeat(3, 1fr); } }
.listing__empty { text-align: center; padding-block: clamp(2rem, 6vw, 4rem); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.listing__empty .excerpt { max-width: 38ch; }

/* listing card */
.lcard { display: flex; flex-direction: column; background: var(--surface); border: var(--rule); border-radius: var(--r); overflow: hidden; }
.lcard__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.lcard__media img { width: 100%; height: 100%; transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }
.lcard__media:hover img { transform: scale(1.04); }
.lcard__body { padding: 0.85rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
/* archive cards show the DATE (not the category) above the title */
.lcard__date { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
/* Dhivehi archive dates use AK Rasmee (the "rasmee" face), matching the English dates — not AamuFK */
.lang-dv .lcard__date { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; font-size: 0.78rem; }
.lcard__title { font-size: 1.12rem; line-height: 1.18; font-weight: 700; }
/* English archive titles are a touch smaller (Dhivehi keeps its size for legibility) */
.lang-en .lcard__title { font-size: 0.95rem; line-height: 1.22; }
.lcard__title a:hover { color: var(--accent); }

/* ---------- Chips / tags index ---------- */
.chipcloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.82rem; font-weight: 500;
  color: var(--text); background: var(--surface); border: 1px solid var(--border-2);
  padding: 0.35rem 0.7rem; border-radius: var(--r); transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.chip:hover { color: var(--accent); border-color: var(--accent); }
.chip__count { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-3); }
.chip:hover .chip__count { color: var(--accent); }

/* ---------- Article ---------- */
.article { margin-inline: auto; padding-block: clamp(1.2rem, 3vw, 2rem); }
/* text stays a readable 760px column; hero image + related span the full ~1076px wrap */
.crumbs, .article__head, .article__body, .article__tags, .comments, .livecov { max-width: 760px; margin-inline: auto; }
.crumbs { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); margin-block-end: clamp(1rem, 2.4vw, 1.6rem); }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { color: var(--text-3); }
.article__head { display: flex; flex-direction: column; gap: 0.7rem; }
.article__title { font-size: clamp(1.8rem, 4.4vw, 3rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; }
.article__lede { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--text-2); line-height: 1.6; }
/* single-article header: wide title block (left) + author/actions aside (right), divider between */
.article__top { max-width: 1040px; margin-inline: auto; display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.4rem); margin-block-end: clamp(1.4rem, 3vw, 2.2rem); padding-block-end: clamp(1.2rem, 2.5vw, 1.8rem); border-block-end: var(--rule); }
.article__lead { flex: 1 1 auto; min-width: 0; order: 2; display: flex; flex-direction: column; gap: 0.7rem; } /* title block on the left */
.article__aside { flex: 0 0 clamp(190px, 24%, 260px); order: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; border-inline-end: var(--rule); padding-inline-end: clamp(1rem, 2vw, 1.5rem); } /* RTL: order 1 = right → author/actions on the right, centered stack */
.crumbs--flush { max-width: none; margin-inline: 0; margin-block-end: 0.5rem; }
.article__author { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; } /* avatar on top → name → date */
.article__author .avatar--lg { width: 68px; height: 68px; } /* larger author photo on the single-article page */
.article__date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); letter-spacing: 0.02em; }
.lang-dv .article__date { font-family: var(--font-mono); letter-spacing: 0; font-size: 0.85rem; }
.article__aside .article__actions { margin-inline-start: 0; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
@media (max-width: 700px) {
  .article__top { flex-direction: column; gap: 1rem; }
  .article__lead { order: 1; }
  .article__aside { order: 2; flex: 1 1 auto; border-inline-end: 0; padding-inline-end: 0; border-block-start: var(--rule); padding-block-start: 1rem; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: right; gap: 0.8rem 1.2rem; }
  .article__author { flex-direction: row; align-items: center; gap: 0.6rem; } /* horizontal byline on mobile */
  .article__author .avatar--lg { width: 48px; height: 48px; }
  .article__byinfo { align-items: flex-start; text-align: right; }
  .article__aside .article__actions { margin-inline-start: auto; justify-content: flex-start; }
}
.article__byline { display: flex; align-items: center; gap: 0.7rem; padding-block: 0.9rem; margin-block: 0.3rem; border-block: var(--rule); }
.article__byinfo { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.article__dotline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3); letter-spacing: 0.02em; }
.article__dotline .dot { opacity: 0.6; }
.share { display: flex; align-items: center; gap: 0.4rem; }
/* "Share" toggle pill — matches the like button; clicking it reveals the icon menu */
.share__toggle { display: inline-flex; align-items: center; gap: 0.4em; border: 1px solid var(--border-2); border-radius: 999px; padding: 0.42rem 0.9rem; font-weight: 600; font-size: 0.85rem; line-height: 1; color: var(--text-2); cursor: pointer; transition: color 0.15s, border-color 0.15s, background-color 0.15s; }
.share__toggle:hover { color: var(--accent); border-color: var(--accent); }
.share__toggle .ic { width: 18px; height: 18px; }
.share__toggle[hidden] { display: none; }
.share__menu { display: flex; align-items: center; gap: 0.4rem; }
.share__menu[hidden] { display: none; }
.lang-dv .share__toggle { font-family: var(--font-dv); }
/* share menu — circular brand-icon buttons, matching the footer socials */
.share__btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--text-2); cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease; }
.share__btn:hover { transform: translateY(-2px); background: var(--border); }
.share__btn.is-copied { background: var(--accent); color: #fff; }
.share__ic { width: 20px; height: 20px; display: block; }
.share__ic--x { color: #0f1419; }
[data-theme="dark"] .share__ic--x { color: #e7e9ea; }
.share__btn .ic { width: 20px; height: 20px; }
/* like + share actions — sit in the byline row, pinned to the far (inline-end) side */
.article__actions { display: flex; align-items: center; gap: 0.5rem; margin-inline-start: auto; }
.likebtn { display: inline-flex; align-items: center; gap: 0.4em; border: 1px solid var(--border-2); border-radius: 999px; padding: 0.42rem 0.9rem; font-weight: 600; font-size: 0.85rem; line-height: 1; color: var(--text-2); transition: color 0.15s, border-color 0.15s, background-color 0.15s; }
.likebtn:hover { color: var(--breaking); border-color: color-mix(in srgb, var(--breaking) 45%, var(--border-2)); }
.likebtn .ic { width: 18px; height: 18px; transition: fill 0.15s; }
.likebtn.is-liked { color: var(--breaking); border-color: color-mix(in srgb, var(--breaking) 50%, transparent); background: color-mix(in srgb, var(--breaking) 9%, transparent); }
.likebtn.is-liked .ic { fill: var(--breaking); stroke: var(--breaking); }
.likebtn__count { font-variant-numeric: tabular-nums; }
.ic--brand { fill: currentColor; stroke: none; }
/* colored action icons — like heart (red), share-pill icon (accent). Share-menu
   brand logos are full-colour SVGs (fills baked in), so no per-button colouring. */
.likebtn .ic--heart { color: var(--breaking); }
.share__toggle .ic--share-up { color: var(--accent); }
.lang-dv .likebtn { font-family: var(--font-dv); }
/* related slider arrows point the right way in RTL (cartoon nav has its own flip) */
[dir="rtl"] .related .slider__nav .ic { transform: scaleX(-1); }
.article__hero { margin-block: clamp(1.2rem, 2.6vw, 1.8rem); }
.article__hero img { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); }
.article__body { font-family: var(--font-sans); font-size: 19px; line-height: 1.8; color: var(--text); display: flow-root; }
.article__body p { margin-block-end: 1.15rem; }
.article__body p:last-child { margin-block-end: 0; }
.article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-block: clamp(1.4rem, 3vw, 2rem); padding-block: clamp(1rem, 2vw, 1.4rem); border-block-start: var(--rule); border-block-end: var(--rule); }
.article__tagslabel { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-inline-end: 0.2rem; }

/* ---------- Comments ---------- */
/* divider above comments now comes from .article__tags border-block-end (full 760px column),
   so the line below the tags matches the line above them */
.comments { max-width: 550px; margin-block-start: clamp(1.6rem, 3vw, 2.4rem); }
.comments__head { display: flex; align-items: baseline; gap: 0.5rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.comments__count { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-3); font-weight: 400; }
.comments__sub { color: var(--text-2); font-size: 0.92rem; margin-block: 0.4rem 1rem; }
.comment-form { display: flex; flex-direction: column; gap: 0.7rem; margin-block-end: 2.2rem; }
.comment-list { display: flex; flex-direction: column; gap: clamp(1.4rem, 2.8vw, 2rem); }
.comments__empty { color: var(--text-3); font-style: italic; }
.comment { position: relative; }
.comment__row { display: flex; gap: 0.85rem; align-items: flex-start; }
.comment__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1rem; color: var(--accent); background: var(--honeydew); }
.comment__main { min-width: 0; flex: 1; }
.comment__meta { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-block-end: 0.35rem; }
.comment__meta .dot { color: var(--text-3); }
.comment__name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.comment__time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); letter-spacing: 0.02em; }
.comment__text { color: var(--text); font-size: 0.95rem; line-height: 1.65; overflow-wrap: anywhere; }
.comment__mention { color: var(--accent); font-weight: 600; }
/* actions: reply + up/down votes */
.comment__actions { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; margin-block-start: 0.65rem; }
.comment__reply { display: inline-flex; align-items: center; gap: 0.42em; border: 1px solid var(--border-2); border-radius: 999px; padding: 0.34rem 0.78rem; font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.comment__reply:hover { color: var(--accent); border-color: var(--accent); }
.comment__reply .ic { width: 14px; height: 14px; }
.cvotes { display: inline-flex; align-items: stretch; border: 1px solid var(--border-2); border-radius: 999px; overflow: hidden; }
.cvote { display: inline-flex; align-items: center; gap: 0.34em; padding: 0.34rem 0.72rem; font-size: 0.78rem; font-weight: 700; color: var(--text-2); cursor: pointer; transition: color 0.15s, background-color 0.15s; }
.cvote .ic { width: 15px; height: 15px; }
.cvote:hover { background: var(--bg-soft); }
.cvote--down { border-inline-start: 1px solid var(--border-2); }
.cvote.is-on { color: var(--accent); }
.cvote--down.is-on { color: var(--breaking); }
.cvote__n { font-variant-numeric: tabular-nums; }
/* reply form */
.comment__replyform:not([data-open="1"]) { display: none; }
.comment__replyform[data-open="1"] { margin-block-start: 0.8rem; }
.reply-form { display: flex; flex-direction: column; gap: 0.5rem; }
.reply-form .btn { align-self: flex-start; padding: 0.45rem 1.05rem; font-size: 0.82rem; }
/* nested replies + curved thread connector */
.comment__children { position: relative; display: flex; flex-direction: column; gap: clamp(1rem, 2vw, 1.4rem); margin-block-start: clamp(1rem, 2vw, 1.4rem); padding-inline-start: clamp(1.5rem, 4vw, 2.8rem); }
.comment--reply > .comment__row { background: var(--bg-soft); border-radius: var(--r-card); padding: clamp(0.85rem, 1.7vw, 1.15rem); }
.comment--reply::before {
  content: ""; position: absolute; pointer-events: none;
  inset-inline-start: calc(-1 * clamp(1.5rem, 4vw, 2.8rem) + 0.6rem);
  inset-block-start: -1.45rem; width: clamp(0.9rem, 2.4vw, 1.7rem); height: 3.2rem;
  border-inline-start: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-end-start-radius: 16px; border-block-end: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.lang-dv .comment__reply, .lang-dv .cvote { font-family: var(--font-dv); letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.lang-dv .comment__mention { font-family: var(--font-dv); }

/* ---------- Related ---------- */
.related { margin-block-start: clamp(1.6rem, 3vw, 2.4rem); padding-block-start: clamp(1.2rem, 2.6vw, 1.8rem); border-block-start: var(--rule); }
.related__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: clamp(0.9rem, 2vw, 1.2rem); }
.related__head .section-title { margin: 0; }
.slider__nav { display: flex; gap: 0.4rem; flex: none; }
.slider__btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: var(--rule); border-radius: var(--r); background: var(--surface); color: var(--text-2); font-size: 1.15rem; transition: color 0.15s, border-color 0.15s, opacity 0.15s; }
.slider__btn:hover { color: var(--accent); border-color: var(--accent); }
.slider__btn:disabled { opacity: 0.35; pointer-events: none; }
.related__viewport { overflow: hidden; }
.related__track { display: flex; gap: clamp(1rem, 2vw, 1.5rem); transition: transform 0.45s cubic-bezier(0.2, 0.6, 0.2, 1); will-change: transform; }
.related__track > .card { flex: 0 0 clamp(220px, 31%, 280px); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(3rem, 10vw, 6rem); display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.notfound__code { font-family: var(--font-mono); font-weight: 700; font-size: clamp(3rem, 12vw, 6rem); color: var(--accent); line-height: 1; }
.notfound__title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.notfound__body { color: var(--text-2); max-width: 42ch; }
.notfound .btn { margin-block-start: 0.6rem; }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 200; background: color-mix(in srgb, #100f0c 55%, transparent); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: clamp(1rem, 8vh, 7rem) 1rem 1rem; }
.search-overlay[hidden] { display: none; }
.search-overlay__panel { width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
.search-box { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1rem; border-block-end: var(--rule); }
.search-box__ic { color: var(--text-3); display: inline-flex; font-size: 1.1rem; }
.search-box__input { flex: 1; border: none; background: transparent; color: var(--text); font-family: inherit; font-size: 1.05rem; line-height: 1.9; padding-block: 0.2rem; outline: none; }
/* hide the browser's native search clear (×) so only our close button shows */
.search-box__input::-webkit-search-cancel-button, .search-box__input::-webkit-search-decoration,
.search-page__input::-webkit-search-cancel-button, .search-page__input::-webkit-search-decoration {
  -webkit-appearance: none; appearance: none;
}
.search-box__close { display: inline-flex; color: var(--text-3); padding: 0.2rem; border-radius: var(--r-sm); }
.search-box__close:hover { color: var(--text); }
.search-results { max-height: min(60vh, 420px); overflow-y: auto; padding: 0.4rem; }
.search-hint { color: var(--text-3); font-size: 0.9rem; text-align: center; padding: 1.6rem 1rem; }
.search-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; border-radius: var(--r); transition: background-color 0.12s; }
.search-row:hover { background: var(--bg-soft); }
.search-row img { width: 56px; height: 42px; border-radius: var(--r-sm); flex: none; }
.search-row__txt { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.search-row__cat { font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.search-row__title { font-size: 0.9rem; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-row .ic { color: var(--text-3); flex: none; }
.search-all { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.7rem 0.75rem; margin-block-start: 0.3rem; border-block-start: var(--rule); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.search-all:hover { background: var(--bg-soft); }

/* ---------- Search page ---------- */
.search-page { display: flex; align-items: center; gap: 0.6rem; max-width: 540px; margin-block-start: 0.6rem; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r); padding: 0.65rem 0.85rem; transition: border-color 0.15s, box-shadow 0.15s; }
.search-page:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.search-page__ic { color: var(--text-3); display: inline-flex; }
.search-page__input { flex: 1; border: none; background: transparent; color: var(--text); font-family: inherit; font-size: 1.05rem; line-height: 1.9; padding-block: 0.2rem; outline: none; }
.qfor { color: var(--text-3); }

/* ---------- Newsletter (footer) ---------- */
.newsletter { display: flex; gap: 0.5rem; margin-block-start: 1rem; max-width: 320px; }
.newsletter__input { flex: 1; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--border-2); border-radius: var(--r); padding: 0.55rem 0.7rem; font-family: inherit; font-size: 0.86rem; }
.newsletter__input:focus { outline: none; border-color: var(--accent); }
.newsletter__btn { flex: none; background: var(--accent); color: #fff; font-weight: 600; font-size: 0.82rem; padding: 0.55rem 0.9rem; border-radius: var(--r); transition: background-color 0.15s; }
.newsletter__btn:hover { background: var(--accent-2); }

/* =================================================================
   Dhivehi overrides for interior components
   ================================================================= */
/* Reading text, inputs and buttons → Aamu FK (the Dhivehi reading face). */
.lang-dv .chip, .lang-dv .field, .lang-dv .btn, .lang-dv .search-box__input,
.lang-dv .search-page__input, .lang-dv .newsletter__input, .lang-dv .newsletter__btn,
.lang-dv .lcard__title, .lang-dv .listing__title, .lang-dv .article__title,
.lang-dv .article__lede, .lang-dv .comment__name,
.lang-dv .notfound__title, .lang-dv .comments__head {
  font-family: var(--font-dv); letter-spacing: 0; text-transform: none;
}
/* comment text: Satoshi in English, AK Rasmee in Dhivehi */
.comment__text { font-family: var(--font-sans); }
.lang-dv .comment__text { font-family: var(--font-mono); letter-spacing: 0; }
/* Accent / meta labels → keep AK Rasmee (has Thaana), relax the Latin styling. */
.lang-dv .listing__eyebrow, .lang-dv .listing__count, .lang-dv .qfor, .lang-dv .crumbs,
.lang-dv .article__dotline, .lang-dv .article__tagslabel, .lang-dv .comment__time,
.lang-dv .chip__count, .lang-dv .share__label, .lang-dv .search-row__cat,
.lang-dv .search-all, .lang-dv .comments__count {
  font-family: var(--font-mono); letter-spacing: 0; text-transform: none;
}
.lang-dv .listing__title, .lang-dv .article__title { line-height: 1.42; }
.lang-dv .lcard__title { line-height: 1.5; }
.lang-dv .article__lede { line-height: 1.85; }
/* English-only: render dates in Satoshi (sans) instead of the AK Rasmee mono editorial font */
.lang-en .dateline,
.lang-en .byline__date,
.lang-en .lcard__date,
.lang-en .article__dotline,
.lang-en .bentocard__date,
.lang-en .hlist__date,
.lang-en .cartoonf__date,
.lang-en .cartoon-slide__date,
.lang-en .cartooncard__date,
.lang-en .cartoonpage__date,
.lang-en .comment__time,
.lang-en .legal__updated { font-family: var(--font-sans); }
.lang-dv .article__body { font-family: var(--font-mono); line-height: 2.05; }
.lang-dv .notfound__code { font-family: var(--font-mono); }

/* =================================================================
   Responsive — interior
   ================================================================= */
@media (max-width: 720px) {
  .listing__grid { grid-template-columns: repeat(2, 1fr); }
  .article__byline { flex-wrap: wrap; }
  .article__actions { margin-inline-start: 0; }
  .newsletter { max-width: none; }
}
@media (max-width: 600px) {
  .related__track > .card { flex-basis: 82%; }
}

/* =================================================================
   Rounder card media — "round clean borders"
   ================================================================= */
:root { --r-card: 3px; }
.hero__media, .card, .lcard, .post__thumb, .card--overlay, .card--feature,
.card--feature-wide .card__media, .hcard__media { border-radius: var(--r-card); }
.card--mini .card__media { border-radius: 0; }
/* tags, the article hero image, and hover backgrounds → same card roundness */
.chip, .article__hero img,
.tool, .topbar__link, .strip__item, .search-row, .search-all { border-radius: var(--r-card); }

/* =================================================================
   Category section (Politics) + horizontal no-excerpt cards
   ================================================================= */
.section-more { display: inline-flex; align-items: center; gap: 0.35em; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); white-space: nowrap; transition: color 0.15s; }
.section-more:hover { color: var(--accent-2); }
.section-more .ic { width: 16px; height: 16px; }
.lang-dv .section-more { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; }
/* RTL — flip → arrows to point ← */
[dir="rtl"] .section-more .ic,
[dir="rtl"] .search-row .ic,
[dir="rtl"] .search-all .ic { transform: scaleX(-1); }

.hgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.1rem, 2.4vw, 1.8rem) clamp(1.4rem, 3vw, 2.4rem); }
.hgrid--page { row-gap: clamp(1.5rem, 3vw, 2.2rem); }
@media (min-width: 1000px) { .hgrid--page { grid-template-columns: repeat(3, 1fr); } }
.catsec__more { display: flex; justify-content: center; margin-block-start: clamp(1.4rem, 3vw, 2rem); }
.catsec__more [hidden] { display: none; }
.hcard { display: flex; gap: 1rem; align-items: flex-start; }
.hcard__media { flex: none; width: clamp(112px, 15vw, 164px); aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r-card); }
.hcard__media img { width: 100%; height: 100%; transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }
.hcard__media:hover img { transform: scale(1.04); }
.hcard__body { min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.hcard__title { font-size: clamp(1.02rem, 1.7vw, 1.18rem); line-height: 1.2; font-weight: 700; }
.hcard__title a:hover { color: var(--accent); }
.lang-dv .hcard__title { line-height: 1.5; }

@media (max-width: 680px) {
  .hgrid { grid-template-columns: 1fr; }
}

/* =================================================================
   English titles / headings → BDO Grotesk (Dhivehi keeps Aamu FK via .lang-dv)
   ================================================================= */
.wordmark, .hero__title, .card__title, .post__title, .strip__title,
.section-title, .article__title, .listing__title, .lcard__title, .hcard__title,
.comments__head, .notfound__title { font-family: var(--font-head); }

/* =================================================================
   Dhivehi accent/meta labels — bump to 16px (not card category labels)
   ================================================================= */
.lang-dv .tab,
.lang-dv .dateline, .lang-dv .topbar__link, .lang-dv .tool,
.lang-dv .meta__item, .lang-dv .quote__author,
.lang-dv .footer__head, .lang-dv .footer__bottom,
.lang-dv .listing__eyebrow, .lang-dv .listing__count, .lang-dv .qfor,
.lang-dv .crumbs, .lang-dv .article__dotline, .lang-dv .article__tagslabel,
.lang-dv .chip__count, .lang-dv .share__label,
.lang-dv .search-all, .lang-dv .comments__count, .lang-dv .section-more {
  font-size: 16px;
}
.lang-dv .meta__item .ic { font-size: 15px; }
/* footer copyright + terms: smaller in the Dhivehi view (per request) */
.lang-dv .footer__copy, .lang-dv .footer__legal { font-size: 11px; }

/* =================================================================
   Political cartoons — featured (hero aside) + full-width dark slider
   ================================================================= */
.fullbleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* featured cartoon — replaces the business card on top of the quote card */
.cartoonf { display: flex; flex-direction: column; gap: 0.55rem; }
.cartoonf__media { display: block; overflow: hidden; border-radius: var(--r-card); aspect-ratio: 4 / 3; background: var(--bg-soft); }
.cartoonf__media img { width: 100%; height: 100%; transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }
.cartoonf__media:hover img { transform: scale(1.03); }
.cartoonf__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.cartoonf__cap { font-size: 0.95rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.cartoonf__date { font-family: var(--font-mono); font-size: 14px; color: var(--text-3); white-space: nowrap; }

/* dark cartoon band — full-bleed background, contained side-by-side feature */
.cartoons { background: var(--viridian); color: var(--on-dark); padding-block: clamp(1.8rem, 4vw, 3rem); }
.cartoons__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: clamp(1rem, 2.4vw, 1.5rem); }
.cartoons__title { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.cartoons__nav { display: flex; gap: 0.4rem; flex: none; }
.cartoons__nav .slider__btn { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.cartoons__nav .slider__btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); color: #fff; }
.cartoons__nav .slider__btn:disabled { opacity: 0.35; }
[dir="rtl"] .cartoons__nav .ic { transform: scaleX(-1); }
.cartoons__slider {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; cursor: grab;
}
.cartoons__slider::-webkit-scrollbar { display: none; }
.cartoons__slider.is-grabbing { cursor: grabbing; }
.cartoons__slider.is-grabbing .cartoon-slide { pointer-events: none; }
.cartoon-slide {
  flex: 0 0 100%; scroll-snap-align: center; color: var(--on-dark);
  display: grid; grid-template-columns: minmax(0, 410px) minmax(0, 460px);
  justify-content: center; gap: clamp(1.5rem, 3.5vw, 2.75rem); align-items: center;
}
.cartoon-slide__media { display: block; overflow: hidden; border-radius: var(--r-card); aspect-ratio: 4 / 3; background: rgba(255, 255, 255, 0.06); }
.cartoon-slide__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }
.cartoon-slide__media:hover img { transform: scale(1.03); }
.cartoon-slide__text {
  align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 1.1rem;
  border-inline-start: 2px solid rgba(156, 195, 182, 0.5); padding-inline-start: clamp(1.2rem, 2vw, 2rem);
}
.cartoon-slide__lead { display: flex; flex-direction: column; gap: 0.85rem; }
.cartoon-slide__cap { font-size: clamp(1.3rem, 2.3vw, 2rem); font-weight: 600; line-height: 1.28; color: #fff; }
.cartoon-slide__blurb { font-size: clamp(0.92rem, 1.05vw, 1.02rem); line-height: 1.6; color: var(--on-dark-2); max-width: 46ch; }
.cartoon-slide__date { font-family: var(--font-mono); font-size: 14px; color: var(--on-dark-2); }

.lang-dv .cartoonf__cap, .lang-dv .cartoon-slide__cap { font-family: var(--font-dv); }
.lang-dv .cartoon-slide__cap { line-height: 1.5; }
.lang-dv .cartoon-slide__blurb { font-family: var(--font-dv); line-height: 1.85; }

@media (max-width: 720px) {
  .cartoon-slide { grid-template-columns: 1fr; gap: 1.1rem; }
  .cartoon-slide__text { align-self: auto; }
}

/* =================================================================
   Headline-list card — 4th cell of "Recently Added"
   ================================================================= */
.hlist { display: flex; flex-direction: column; background: var(--surface); border: var(--rule); border-radius: var(--r-card); padding: 0.85rem 0.95rem 0.9rem; }
.hlist__item { display: flex; flex-direction: column; gap: 0.18rem; padding-block: 0.5rem; border-block-end: var(--rule); }
.hlist__item:first-child { padding-block-start: 0; }
.hlist__title { font-size: 0.8rem; line-height: 1.18; font-weight: 700; color: var(--text); transition: color 0.15s; }
.hlist__item:hover .hlist__title { color: var(--accent); }
.hlist__date { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.hlist__more {
  display: inline-flex; align-items: center; gap: 0.35em; align-self: flex-end;
  margin-block-start: auto; padding-block-start: 0.75rem;
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent);
  transition: color 0.15s;
}
.hlist__more:hover { color: var(--accent-2); }
.hlist__more .ic { width: 16px; height: 16px; }
.lang-dv .hlist__title { font-family: var(--font-dv); line-height: 1.4; }
.lang-dv .hlist__more { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; }
[dir="rtl"] .hlist__more .ic { transform: scaleX(-1); }

/* =================================================================
   Reader poll — color-blocked card, click-to-vote, animated bars
   ================================================================= */
.poll__card {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  background: var(--surface); border: var(--rule); border-radius: var(--r-card); overflow: hidden;
}
.poll__intro {
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: clamp(1.15rem, 2.2vw, 1.7rem);
  background: color-mix(in srgb, var(--bg-soft) 50%, var(--surface));
  border-inline-end: var(--rule);
}
.poll__eyebrow {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent);
}
.poll__eyebrow .ic { width: 15px; height: 15px; }
.poll__q {
  font-family: var(--font-head); font-size: clamp(1.25rem, 2.3vw, 1.8rem); font-weight: 700;
  line-height: 1.2; letter-spacing: -0.02em; color: var(--text);
}
.poll__sub { font-size: 0.9rem; line-height: 1.55; color: var(--text-2); max-width: 34ch; }

.poll__body { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.15rem, 2.2vw, 1.7rem); }
.poll__opts { display: flex; flex-direction: column; gap: 0.55rem; }

/* voting state — selectable rows */
.poll-opt {
  display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: start;
  padding: 0.72rem 0.85rem; border: 1px solid var(--border-2); border-radius: var(--r-card);
  background: var(--surface); color: var(--text); font-size: 0.95rem; font-weight: 500;
  transition: border-color 0.15s, background-color 0.15s, transform 0.06s;
}
.poll-opt:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.poll-opt:active { transform: translateY(1px); }
.poll-opt:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.poll-opt__mark {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border-2); position: relative; transition: border-color 0.15s;
}
.poll-opt__mark::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--accent); transform: scale(0); transition: transform 0.15s;
}
.poll-opt:hover .poll-opt__mark { border-color: var(--accent); }
.poll-opt:hover .poll-opt__mark::after { transform: scale(1); }
.poll-opt__label { flex: 1 1 auto; min-width: 0; }

/* result state — labelled bars */
.poll-res { display: flex; flex-direction: column; gap: 0.4rem; }
.poll-res__top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.poll-res__label { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.poll-res__label .ic { flex: none; width: 16px; height: 16px; color: var(--accent); align-self: center; }
.poll-res__pct { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.poll-res__track { height: 9px; border-radius: var(--r); background: color-mix(in srgb, var(--text) 9%, transparent); overflow: hidden; }
.poll-res__fill {
  display: block; height: 100%; border-radius: inherit;
  background: color-mix(in srgb, var(--accent) 32%, transparent);
  transform-origin: left center; animation: pollGrow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes pollGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
[dir="rtl"] .poll-res__fill { transform-origin: right center; }
.poll-res.is-mine .poll-res__fill { background: var(--accent); }
.poll-res.is-mine .poll-res__pct { color: var(--accent); }

/* foot — total + hint / thanks + change vote */
.poll__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; flex-wrap: wrap;
  margin-block-start: auto; padding-block-start: 0.9rem; border-block-start: var(--rule);
}
.poll__total { font-size: 0.82rem; color: var(--text-3); }
.poll__total strong { color: var(--text); font-weight: 700; }
.poll__foot-end { display: inline-flex; align-items: center; gap: 0.9rem; }
.poll__hint, .poll__thanks, .poll__change {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.poll__hint { color: var(--text-3); }
.poll__thanks { display: inline-flex; align-items: center; gap: 0.35em; color: var(--accent); }
.poll__thanks .ic { width: 14px; height: 14px; }
.poll__change { color: var(--accent); transition: color 0.15s; }
.poll__change:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }

/* Dhivehi / RTL */
.lang-dv .poll__q { font-family: var(--font-dv); line-height: 1.5; }
.lang-dv .poll__sub { font-family: var(--font-dv); line-height: 1.85; }
.lang-dv .poll-opt__label, .lang-dv .poll-res__label { font-family: var(--font-dv); }
.lang-dv .poll__eyebrow, .lang-dv .poll__hint, .lang-dv .poll__thanks, .lang-dv .poll__change {
  letter-spacing: 0; text-transform: none; font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) { .poll-res__fill { animation: none; } }
@media (max-width: 760px) {
  .poll__card { grid-template-columns: 1fr; }
  .poll__intro { border-inline-end: 0; border-block-end: var(--rule); }
}

/* ---- poll cards grid (home "More polls" + /polls/ index + single-page related) ---- */
.pollgrid { display: grid; grid-template-columns: 1fr; gap: clamp(0.8rem, 1.6vw, 1.1rem); }
@media (min-width: 680px) { .pollgrid { grid-template-columns: repeat(2, 1fr); } }

/* preview card — title + info; whole card links to the poll's single page */
.pollcard {
  display: flex; flex-direction: column; gap: 0.85rem; justify-content: space-between;
  background: var(--surface); border: var(--rule); border-radius: var(--r-card);
  padding: clamp(1rem, 1.8vw, 1.35rem); color: inherit;
  transition: border-color 0.15s, transform 0.05s;
}
a.pollcard:hover { border-color: var(--accent); }
a.pollcard:active { transform: translateY(1px); }
.pollcard__intro { display: flex; flex-direction: column; gap: 0.5rem; }
.pollcard__q { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.28; font-weight: 700; letter-spacing: -0.015em; color: var(--text); transition: color 0.15s; }
a.pollcard:hover .pollcard__q { color: var(--accent); }
.pollcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-block-start: 0.85rem; border-block-start: var(--rule); }
.pollcard__votes { font-size: 0.82rem; color: var(--text-3); }
.pollcard__votes strong { color: var(--text); font-weight: 700; }
.pollcard__go { display: inline-flex; align-items: center; gap: 0.35em; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); white-space: nowrap; }
.pollcard__go .ic { width: 15px; height: 15px; }
[dir="rtl"] .pollcard__go .ic:last-child { transform: scaleX(-1); }
.lang-dv .pollcard__q { font-family: var(--font-dv); line-height: 1.5; }
.lang-dv .pollcard__go { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; font-size: 0.9rem; }

/* home "More polls" — single-row, continuously auto-scrolling slider of title cards */
.pollmarquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent 100%);
}
.pollmarquee__track { display: flex; width: max-content; animation: pollMarquee 48s linear infinite; will-change: transform; }
.pollmarquee:hover .pollmarquee__track { animation-play-state: paused; }
.pollmarquee__card {
  flex: 0 0 auto; width: clamp(240px, 72vw, 320px); margin-inline-end: clamp(0.8rem, 1.6vw, 1.1rem);
  display: flex; flex-direction: column; gap: 0.55rem; min-height: 8.5rem;
  background: var(--surface); border: var(--rule); border-radius: var(--r-card);
  padding: clamp(1rem, 1.8vw, 1.3rem); color: inherit; transition: border-color 0.15s;
}
.pollmarquee__card:hover { border-color: var(--accent); }
.pollmarquee__q { font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; color: var(--text); transition: color 0.15s; }
.pollmarquee__card:hover .pollmarquee__q { color: var(--accent); }
.lang-dv .pollmarquee__q { font-family: var(--font-dv); line-height: 1.5; }
@keyframes pollMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .pollmarquee__track { animation-name: pollMarqueeRtl; }
@keyframes pollMarqueeRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  .pollmarquee { overflow-x: auto; }
  .pollmarquee__track { animation: none; }
}

/* "View all polls" CTA under the home grid */
.morepolls__cta { display: flex; justify-content: center; margin-block-start: clamp(1rem, 2.2vw, 1.5rem); }
.btn--ghost { background: transparent; color: var(--accent); border: 1px solid var(--border-2); }
.btn--ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: var(--accent); }
.btn--ghost .ic { width: 1.1em; height: 1.1em; }
[dir="rtl"] .btn--ghost .ic { transform: scaleX(-1); }
.lang-dv .btn--ghost { font-family: var(--font-mono); letter-spacing: 0; }

/* single poll page */
.pollsingle .crumbs { max-width: none; margin-inline: 0; }
.pollsingle__more { margin-block-start: clamp(1.6rem, 3.4vw, 2.4rem); }

/* =================================================================
   Recently-Added tabs (empty state) + cartoon archive / single page
   ================================================================= */
.recent__empty { grid-column: 1 / -1; padding: 2rem 0; color: var(--text-2); }

/* cartoon band head — "View all" link sits beside the slider arrows */
.cartoons__tools { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.4rem); flex: none; }
.cartoons__all { display: inline-flex; align-items: center; gap: 0.35em; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-dark-2); white-space: nowrap; transition: color 0.15s; }
.cartoons__all:hover { color: #fff; }
.cartoons__all .ic { width: 16px; height: 16px; }
[dir="rtl"] .cartoons__all .ic { transform: scaleX(-1); }
.lang-dv .cartoons__all { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
@media (max-width: 540px) { .cartoons__all span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* cartoon captions are links now */
.cartoonf__cap a:hover { color: var(--accent); }
.cartoon-slide__cap a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* cartoon archive — framed "print" gallery (deliberately distinct from article cards) */
.cartoongrid { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 2.2vw, 1.6rem); }
@media (min-width: 560px) { .cartoongrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cartoongrid { grid-template-columns: repeat(3, 1fr); } }
.cartooncard {
  display: flex; flex-direction: column; color: inherit;
  background: color-mix(in srgb, var(--bg-soft) 55%, var(--surface));
  border: var(--rule); border-radius: var(--r-card);
  padding: clamp(0.7rem, 1.4vw, 1rem);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.cartooncard:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.cartooncard__frame {
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 2px;
  padding: 6px; overflow: hidden; aspect-ratio: 4 / 3;
}
.cartooncard__frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }
.cartooncard:hover .cartooncard__frame img { transform: scale(1.04); }
.cartooncard__body { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.7rem 0.3rem 0.2rem; }
.cartooncard__cap { font-family: var(--font-head); font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--text); transition: color 0.15s; }
.cartooncard:hover .cartooncard__cap { color: var(--accent); }
.cartooncard__date { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.lang-dv .cartooncard__cap { font-family: var(--font-dv); line-height: 1.5; }

/* single cartoon page */
.cartoonpage { max-width: 860px; margin-inline: auto; }
.cartoonpage .crumbs { max-width: none; margin-inline: 0; }
.cartoonpage__head { display: flex; flex-direction: column; gap: 0.5rem; margin-block-end: clamp(1rem, 2.4vw, 1.5rem); }
.cartoonpage__title { font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.cartoonpage__date { font-family: var(--font-mono); font-size: 14px; color: var(--text-3); }
.cartoonpage__fig {
  margin: 0; background: var(--surface); border: var(--rule); border-radius: var(--r-card);
  padding: clamp(0.6rem, 1.6vw, 1.1rem); overflow: hidden;
}
.cartoonpage__fig img { width: 100%; height: auto; display: block; border-radius: 2px; }
.cartoonpage__blurb { font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.7; color: var(--text-2); max-width: 60ch; margin-block-start: clamp(1rem, 2.2vw, 1.5rem); }
.cartoonpage__more { margin-block-start: clamp(1.8rem, 3.6vw, 2.6rem); }
.lang-dv .cartoonpage__title { font-family: var(--font-dv); line-height: 1.45; }
.lang-dv .cartoonpage__blurb { font-family: var(--font-dv); line-height: 1.9; }

/* =================================================================
   Terms & policies (static legal page)
   ================================================================= */
.legal { max-width: 760px; margin-inline: auto; }
.legal .crumbs { max-width: none; margin-inline: 0; }
.legal__head { margin-block-end: clamp(1.4rem, 3vw, 2rem); }
.legal__title { font-family: var(--font-head); font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.legal__updated { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-block-start: 0.6rem; }
.legal__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--text); }
.legal__sec { margin-block-start: clamp(1.5rem, 3.2vw, 2.2rem); }
.legal__sec h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -0.01em; }
.legal__sec p { color: var(--text-2); line-height: 1.7; margin-block-start: 0.7rem; }
.lang-dv .legal__title { font-family: var(--font-dv); line-height: 1.4; } /* page title keeps Aaamu FK */
.lang-dv .legal__updated { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
/* Dhivehi terms BODY reads in AK Rasmee (per request) — lead, paragraphs and
   section subheadings; only the big page title above stays in Aaamu FK. */
.lang-dv .legal__lead, .lang-dv .legal__sec p { font-family: var(--font-mono); line-height: 2; }
.lang-dv .legal__sec h2 { font-family: var(--font-mono); line-height: 1.6; }

/* =================================================================
   Bento mosaic of article cards (home Sports slot) — image + headline overlay
   ================================================================= */
.bentogrid { display: grid; grid-template-columns: 1fr; gap: clamp(0.7rem, 1.4vw, 1rem); }
.bentocard { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--bg-soft); color: #fff; min-height: clamp(210px, 52vw, 280px); }
.bentocard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
.bentocard:hover .bentocard__img { transform: scale(1.05); }
.bentocard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,22,21,0.16) 0%, rgba(18,22,21,0) 30%, rgba(18,22,21,0.36) 58%, rgba(18,22,21,0.84) 100%); }
.bentocard__arrow { position: absolute; z-index: 1; inset-block-start: clamp(0.85rem, 1.5vw, 1.15rem); inset-inline-end: clamp(0.85rem, 1.5vw, 1.15rem); display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.6); background: rgba(255,255,255,0.12); color: #fff; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.bentocard:hover .bentocard__arrow { background: #fff; color: var(--accent); border-color: #fff; }
.bentocard__arrow .ic { width: 18px; height: 18px; }
[dir="rtl"] .bentocard__arrow .ic { transform: scaleX(-1); }
.bentocard__body { position: absolute; z-index: 1; inset-inline: clamp(0.9rem, 1.6vw, 1.3rem); inset-block-end: clamp(0.85rem, 1.5vw, 1.2rem); display: flex; flex-direction: column; gap: 0.3rem; }
.bentocard__title { font-family: var(--font-head); font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.4); }
.bentocard__date { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.82); }
.lang-dv .bentocard__title { font-family: var(--font-dv); line-height: 1.45; }
.lang-dv .bentocard__date { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; font-size: 0.82rem; }

@media (min-width: 560px) { .bentogrid { grid-template-columns: 1fr 1fr; } .bentocard { min-height: clamp(190px, 30vw, 240px); } }
@media (min-width: 860px) {
  .bentogrid { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, clamp(165px, 18.5vw, 220px)); }
  .bentocard { min-height: 0; }
  .bentocard:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .bentocard:nth-child(2) { grid-column: 2; grid-row: 1; }
  .bentocard:nth-child(3) { grid-column: 2; grid-row: 2; }
  .bentocard:nth-child(4) { grid-column: 3; grid-row: 1 / span 2; }
}

/* ===== Body embeds (paste-to-embed) — centered, tight vertical rhythm ===== */
.article__body .embed,
.article__body blockquote.twitter-tweet,
.article__body a.linkcard { margin: 0.7rem auto; }
.article__body .embed--video { aspect-ratio: 16 / 9; max-width: 640px; }
/* Quotes typed into the article body (<blockquote>) → pull-quote graphic: a soft
   accent-tinted card with the same crisp double-quote mark as the feature pull-quote
   (.article__pullquote). Tweets keep their own embed styling. */
.article__body blockquote:not(.twitter-tweet) {
  position: relative;
  margin: 2.4rem 0;
  padding-block: 1.5rem;
  padding-inline: 3.5rem 1.7rem; /* extra room on the start side for the mark */
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--r-lg);
  font-family: var(--font-head);
  font-size: clamp(1.18rem, 1rem + 0.8vw, 1.45rem);
  line-height: 1.6;
  font-weight: 500;
  color: var(--text);
}
.article__body blockquote:not(.twitter-tweet)::before {
  content: "";
  position: absolute;
  inset-block-start: 1.4rem;
  inset-inline-start: 1.2rem;
  width: 1.55rem;
  height: 1.1rem;
  background: var(--accent);
  opacity: 0.9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28'%3E%3Cpath d='M0 28V17.7C0 8 4.9 1.9 14.4 0l1.3 4.4C9.6 6.1 6.7 9.4 6.6 14.6H15V28H0Zm21 0V17.7C21 8 25.9 1.9 35.4 0l1.3 4.4c-6.1 1.7-9 5-9.1 10.2H36V28H21Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28'%3E%3Cpath d='M0 28V17.7C0 8 4.9 1.9 14.4 0l1.3 4.4C9.6 6.1 6.7 9.4 6.6 14.6H15V28H0Zm21 0V17.7C21 8 25.9 1.9 35.4 0l1.3 4.4c-6.1 1.7-9 5-9.1 10.2H36V28H21Z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.article__body blockquote:not(.twitter-tweet) > :last-child { margin-block-end: 0; }
.lang-dv .article__body blockquote:not(.twitter-tweet) { font-family: var(--font-dv); font-weight: 800; line-height: 1.9; }
.article__body .embed--video iframe { width: 100%; height: 100%; border: 0; border-radius: var(--r-lg); display: block; }
.article__body .embed--fb { display: flex; justify-content: center; }
.article__body .embed--fb iframe { width: 500px; max-width: 100%; height: 380px; border: 0; border-radius: var(--r-lg); }
/* Twitter/X renders into an iframe with inline margins — center + tighten it */
.article__body .twitter-tweet { margin-left: auto !important; margin-right: auto !important; }
.article__body iframe.twitter-tweet { margin-top: 0.7rem !important; margin-bottom: 0.7rem !important; }

/* OG-style card for pasted AABAARU article links — centered */
.article__body a.linkcard { display: flex; align-items: center; gap: 14px; max-width: 560px; padding: 12px; background: var(--surface, var(--bg-soft)); border: 1px solid var(--border); border-radius: var(--r-lg); text-decoration: none; color: var(--text); transition: border-color 0.15s ease; }
.article__body a.linkcard:hover { border-color: var(--accent); }
.article__body a.linkcard .linkcard__media img { width: 120px; height: 78px; object-fit: cover; border-radius: var(--r); display: block; }
.article__body a.linkcard .linkcard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.article__body a.linkcard .linkcard__title { font-weight: 700; line-height: 1.55; font-size: 0.95rem; }
.lang-dv .article__body a.linkcard .linkcard__title { font-family: var(--font-dv); font-weight: 800; }
.article__body a.linkcard .linkcard__source { font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 560px) {
  .article__body a.linkcard .linkcard__media img { width: 88px; height: 60px; }
}

/* ===== Article pull quote (from the CMS "Pull quote" field) ===== */
.article__pullquote { max-width: 760px; margin: 2rem auto; padding: 0; position: relative; text-align: center; }
.article__pullquote-mark { width: 40px; height: 28px; fill: var(--accent); opacity: 0.85; margin: 0 auto 0.6rem; display: block; }
.article__pullquote blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.3rem, 1rem + 1.4vw, 1.85rem); line-height: 1.4; font-weight: 500; color: var(--text); }
.lang-dv .article__pullquote blockquote { font-family: var(--font-dv); font-weight: 800; line-height: 1.7; }
.article__pullquote-by { margin-top: 0.7rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.03em; color: var(--text-2); }
.lang-dv .article__pullquote-by { font-family: var(--font-dv); letter-spacing: 0; }
.article__pullquote::after { content: ""; display: block; width: 56px; height: 2px; background: var(--accent); margin: 1rem auto 0; opacity: 0.55; }
@media (max-width: 560px) { .article__pullquote { margin: 1.4rem auto; } }

/* ===== Uploaded logo (Settings → Logo) — replaces the text wordmark ===== */
/* Shown exactly as uploaded: no placeholder tint (overrides the global img
   background) and no recolor on dark mode. */
.brand__img { display: block; height: clamp(50px, 7.5vw, 76px); width: auto; max-width: 280px; object-fit: contain; background: none; }
.mainnav__logo .brand__img { height: 30px; max-width: 150px; }
.wordmark--sm .brand__img { height: 42px; max-width: 150px; }
@media (max-width: 700px) { .brand__img { height: 46px; max-width: 170px; } .mainnav__logo .brand__img { height: 26px; } }

/* =================================================================
   ATHOLHU — New York Times editorial layer (hero, new sections, poll)
   ================================================================= */

/* ---- Hero: lead | secondary column | most-read rail, split by vertical rules ---- */
.hero-nyt { display: grid; grid-template-columns: 1.65fr 1fr 0.85fr; gap: clamp(1.2rem, 2.6vw, 2.2rem); align-items: start; }
.hero-nyt__mid, .hero-nyt__side { border-inline-start: var(--rule); padding-inline-start: clamp(1.2rem, 2.4vw, 2rem); }
.hero-nyt__media { display: block; overflow: hidden; border-radius: var(--r-card); margin-block-end: 0.95rem; }
.hero-nyt__media img { width: 100%; aspect-ratio: 16 / 10; transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
.hero-nyt__media:hover img { transform: scale(1.03); }
.hero-nyt__leadbody { display: flex; flex-direction: column; gap: 0.55rem; }
.hero-nyt__title { font-size: clamp(1.6rem, 3.1vw, 34px); line-height: 1.1; font-weight: 800; letter-spacing: -0.022em; }
.lang-dv .hero-nyt__title { line-height: 1.4; letter-spacing: 0; font-weight: 700; }
.hero-nyt__title a:hover { color: var(--accent); }
.hero-nyt__dek { font-size: 1.04rem; }
.lang-dv .hero-nyt__dek { line-height: 1.85; }

.hstory { padding-block: clamp(0.85rem, 1.7vw, 1.15rem); display: flex; align-items: flex-start; gap: 0.9rem; }
.hstory:first-child { padding-block-start: 0; }
.hstory + .hstory { border-block-start: var(--rule); }
.hstory__media { flex: 0 0 auto; width: clamp(96px, 11vw, 132px); } /* image on the (RTL) right */
.hstory__media img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r); }
.hstory__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.hstory__title { font-size: 18px; line-height: 1.18; font-weight: 700; }
.lang-dv .hstory__title { line-height: 1.45; }
.hstory__title a:hover { color: var(--accent); }

.hero-nyt__sidehead { font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); padding-block-end: 0.55rem; border-block-end: 2px solid var(--text); }
.lang-dv .hero-nyt__sidehead { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; font-size: 1rem; }
.mostread { display: flex; flex-direction: column; }
.mostread__item { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; padding-block: 0.7rem; border-block-end: var(--rule); }
.mostread__num { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; line-height: 0.9; color: color-mix(in srgb, var(--accent) 42%, transparent); }
.mostread__title { font-size: 0.98rem; line-height: 1.2; font-weight: 700; color: var(--text); transition: color 0.15s; }
.lang-dv .mostread__title { line-height: 1.5; }
.mostread__item:hover .mostread__title { color: var(--accent); }

@media (max-width: 1024px) {
  .hero-nyt { grid-template-columns: 1fr 1fr; }
  .hero-nyt__side { grid-column: 1 / -1; border-inline-start: 0; padding-inline-start: 0; border-block-start: var(--rule); padding-block-start: 1rem; margin-block-start: 0.4rem; }
  .hero-nyt__side .mostread { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
}
@media (max-width: 680px) {
  .hero-nyt { grid-template-columns: 1fr; gap: 1rem; }
  .hero-nyt__mid { border-inline-start: 0; padding-inline-start: 0; border-block-start: var(--rule); padding-block-start: 1rem; }
  .hero-nyt__side .mostread { grid-template-columns: 1fr; }
}

/* ---- intro line under a section head ---- */
.section-intro { color: var(--text-2); font-size: 0.98rem; line-height: 1.6; max-width: 66ch; margin-block: -0.5rem 1.2rem; }
.lang-dv .section-intro { line-height: 1.9; }

/* ---- Reports (investigations): big lead + blue-ruled rows ---- */
.reports__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 3.2vw, 2.6rem); align-items: start; }
.rfeature { display: flex; flex-direction: column; }
.rfeature__media { display: block; overflow: hidden; border-radius: var(--r-card); margin-block-end: 0.85rem; }
.rfeature__media img { width: 100%; aspect-ratio: 16 / 9; transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
.rfeature__media:hover img { transform: scale(1.03); }
.rfeature__body { display: flex; flex-direction: column; gap: 0.55rem; }
.rfeature__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.lang-dv .rfeature__title { line-height: 1.42; letter-spacing: 0; font-weight: 700; }
.rfeature__title a:hover { color: var(--accent); }
.reports__list { display: flex; flex-direction: column; gap: clamp(1.1rem, 2vw, 1.5rem); }
.rrow { border-inline-start: 3px solid var(--accent); padding-inline-start: clamp(0.9rem, 1.6vw, 1.2rem); display: flex; flex-direction: column; gap: 0.4rem; }
.rrow__title { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.18; font-weight: 700; }
.lang-dv .rrow__title { line-height: 1.45; }
.rrow__title a:hover { color: var(--accent); }
.rlabel { font-family: var(--font-mono); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.lang-dv .rlabel { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; font-size: 0.92rem; }
.rmeta { display: inline-flex; align-items: center; gap: 0.35em; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-3); margin-block-start: 0.1rem; }
.rmeta .ic { width: 14px; height: 14px; }
.lang-dv .rmeta { font-family: var(--font-mono); font-size: 0.9rem; }
/* published-date line used across the news cards */
.card__date { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); letter-spacing: 0.02em; margin-block-start: 0.15rem; }
.lang-dv .card__date { font-family: var(--font-mono); letter-spacing: 0; font-size: 0.85rem; }
.rmeta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-block-start: 0.25rem; }
.rmeta-row .card__date, .rmeta-row .rmeta { margin-block-start: 0; }
@media (max-width: 860px) { .reports__grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---- Persons: portrait profile cards (mono → colour on hover) ---- */
.persons__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.2vw, 1.6rem); }
.pcard { display: flex; flex-direction: column; gap: 0.4rem; }
.pcard__media { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-card); background: var(--bg-soft); margin-block-end: 0.35rem; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.92) contrast(1.03); transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.45s ease; }
.pcard:hover .pcard__media img { filter: none; transform: scale(1.04); }
.pcard__role { font-family: var(--font-mono); font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.lang-dv .pcard__role { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
.pcard__name { font-family: var(--font-head); font-size: 1.18rem; font-weight: 700; line-height: 1.15; color: var(--text); }
.lang-dv .pcard__name { line-height: 1.4; }
.pcard__title { font-size: 0.92rem; line-height: 1.3; color: var(--text-2); transition: color 0.15s; }
.lang-dv .pcard__title { line-height: 1.55; }
.pcard:hover .pcard__title { color: var(--accent); }
@media (max-width: 880px) { .persons__row { grid-template-columns: repeat(2, 1fr); } }

/* ---- Lifestyle: featured topics + magazine grid ---- */
.lifestyle__topics { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin-block-end: clamp(1.1rem, 2.4vw, 1.6rem); padding-block-end: clamp(1rem, 2vw, 1.3rem); border-block-end: var(--rule); }
.lifestyle__topicslabel { font-family: var(--font-mono); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); }
.lang-dv .lifestyle__topicslabel { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; font-size: 0.92rem; }
.topiccloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.topicchip { display: inline-flex; align-items: center; font-size: 0.86rem; font-weight: 700; color: var(--accent); background: var(--sky); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); padding: 0.34rem 0.8rem; border-radius: 0.6rem; transition: background-color 0.15s, color 0.15s; }
.topicchip:hover { background: var(--accent); color: #fff; }
.lang-dv .topicchip { font-family: var(--font-mono); }
.lifestyle__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.2vw, 1.6rem); }
.lifecard .lcard__title { font-size: 1.05rem; }
@media (max-width: 980px) { .lifestyle__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .lifestyle__grid { grid-template-columns: 1fr; } }

/* ---- Poll slider (icons + 2-pane card) ---- */
.pollsec__nav { display: flex; align-items: center; gap: 0.6rem; }
[dir="rtl"] .pollsec__nav .slider__btn .ic { transform: scaleX(-1); }
.pollslider { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pollslider::-webkit-scrollbar { display: none; }
.pollslider__track { display: flex; }
.pollslide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
.polldots { display: flex; justify-content: center; gap: 8px; margin-block-start: clamp(0.9rem, 2vw, 1.3rem); }
.polldot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: color-mix(in srgb, var(--text) 22%, transparent); cursor: pointer; transition: width 0.2s ease, background-color 0.2s ease; }
.polldot:hover { background: color-mix(in srgb, var(--accent) 70%, transparent); }
.polldot.is-on { width: 22px; border-radius: 5px; background: var(--accent); }

/* poll card — image (RTL right) + main pane (title before options), blue top rule */
.poll__card { grid-template-columns: 0.85fr 1.15fr; border-top: 3px solid var(--accent); align-items: stretch; }
.poll__media { display: block; overflow: hidden; height: clamp(160px, 20vw, 220px); align-self: center; background: transparent; }
.poll__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poll__main { padding: clamp(1.2rem, 2.4vw, 1.9rem); display: flex; flex-direction: column; gap: 0.7rem; }
.poll__main .poll__body { padding: 0; gap: 0.85rem; margin-block-start: 0.2rem; }
.poll__sub { font-size: 1.02rem; max-width: none; color: var(--text-2); }
.lang-dv .poll__sub { font-family: var(--font-dv); font-size: 1.08rem; line-height: 1.75; }
/* keep the radio mark beside its label (reading-start) */
.poll-opt { justify-content: flex-start; }
.poll-opt__label { flex: 0 1 auto; }
@media (max-width: 720px) { .poll__card { grid-template-columns: 1fr; } .poll__media { height: auto; aspect-ratio: 16 / 9; align-self: stretch; } }

/* ---- Category-page variants for the new sections ---- */
.persons__row--page { row-gap: clamp(1.6rem, 3vw, 2.4rem); }
@media (min-width: 1100px) { .persons__row--page { grid-template-columns: repeat(5, 1fr); } }
.reports__list--page { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 2.8vw, 2.2rem) clamp(1.6rem, 3.2vw, 2.6rem); }
@media (max-width: 720px) { .reports__list--page { grid-template-columns: 1fr; } }

/* =================================================================
   Icon-only nav tools (theme + search) and the search dropdown
   ================================================================= */
.tool--icon { padding: 0.42rem; }
.tool--icon .ic { width: 21px; height: 21px; font-size: 21px; }

/* search bar expands as a dropdown under the nav (replaces the modal overlay) */
.search-drop {
  position: absolute; inset-inline: 0;
  background: var(--surface); border-block-end: var(--rule);
  box-shadow: 0 12px 26px -12px rgba(18, 18, 18, 0.22);
  z-index: 49;
}
.search-drop[hidden] { display: none; }
.search-drop .search-box { border-block-end: var(--rule); padding-block: 0.7rem; }
.search-drop .search-results { max-height: min(60vh, 460px); overflow-y: auto; padding-block: 0.3rem; }
[data-theme="dark"] .search-drop { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7); }

/* ---- Comment form: textarea first, then [ name (fills) · send (inline-end) ] ---- */
.comment-form__row { display: flex; align-items: stretch; gap: 0.6rem; }
.comment-form__row .field { flex: 1 1 auto; }
.comment-form__row .btn { flex: none; align-self: stretch; }

/* =================================================================
   Refinements: home icon · sticky logo off · search stacking · ads · feature title
   ================================================================= */

/* Home nav item is a filled blue icon (replaces the "Home" text) */
.ic--home { fill: currentColor; stroke: none; }
.nav-link--home { color: var(--accent); padding-block: 0.35rem; }
.nav-link--home .ic { width: 22px; height: 22px; }
.nav-link--home:hover { color: var(--accent-2); }
/* home nav item is the Atholhu logo */
.nav-logo { height: 42px; width: auto; max-width: 170px; display: block; object-fit: contain; background: none; }
@media (max-width: 700px) { .nav-logo { height: 50px; max-width: 220px; } }
/* the logo is a fixed-blue PNG — lighten it on the dark nav/footer so it stays legible */
[data-theme="dark"] .nav-logo, [data-theme="dark"] .brand__img { filter: brightness(1.7) saturate(1.05); }

/* never show the wordmark logo in the sticky nav (the home icon is the anchor) */
.stickytop.is-scrolled .mainnav__logo { display: none; }

/* search dropdown must paint above the breaking + live bars that follow the nav */
.mainnav { z-index: 2; }
.breakingbar, .livebar { position: relative; z-index: 1; }
.search-drop .search-box__input { color: var(--text); -webkit-text-fill-color: var(--text); opacity: 1; }
.search-drop .search-box__input::placeholder { color: var(--text-3); opacity: 1; }
.search-drop .search-box__ic { color: var(--text-2); }

/* portrait advertisement slot (below the weekly rail in the hero side column) */
.adslot--portrait { display: flex; align-items: center; justify-content: center; margin-block-start: clamp(1rem, 2vw, 1.4rem); aspect-ratio: 3 / 4; width: 100%; border: 1px dashed var(--border-2); border-radius: var(--r); background: var(--bg-soft); }
@media (max-width: 1024px) { .adslot--portrait { aspect-ratio: 16 / 5; } }

/* LIVE pill — red rounded badge: a pulsing white dot + a cream inset box holding
   the Dhivehi "ވަގުތުން" label (matches the brand live badge). */
:root { --live: #ea2a1b; --live-box: #fbf4e6; }
[data-theme="dark"] { --live: #ff5446; --live-box: #fdf6ec; }
.livepill {
  flex: none; width: max-content; max-width: 100%;
  direction: ltr; display: inline-flex; align-items: center; gap: 0.4em;
  background: var(--live); border-radius: 0.6em; padding: 0.22em 0.34em 0.22em 0.5em;
  line-height: 1; font-size: 0.72rem; vertical-align: middle;
}
.livepill__dot { flex: none; width: 0.62em; height: 0.62em; border-radius: 50%; background: #fff; animation: livePulse 1.4s ease-in-out infinite; }
.livepill__label {
  background: var(--live-box); color: var(--live); border-radius: 0.4em; padding: 0.4em 0.55em 0.18em;
  font-family: var(--font-dv); font-weight: 700; font-size: 0.95em; line-height: 1; letter-spacing: 0; white-space: nowrap;
}
.livepill--sm { font-size: 0.64rem; }
.livepill--lg { font-size: 0.92rem; }
@media (prefers-reduced-motion: reduce) { .livepill__dot { animation: none; } }

/* ---- Prayer-times widget (Aladhan API) — atoll slider in the hero rail ---- */
.prayer { margin-block-start: clamp(1rem, 2vw, 1.4rem); border: var(--rule); border-top: 3px solid var(--accent); border-radius: var(--r); background: var(--surface); padding: 0.7rem 0.85rem 0.75rem; }
.prayer__head { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; }
.prayer__loc { display: flex; flex-direction: column; align-items: center; gap: 0.05rem; min-width: 0; text-align: center; }
.prayer__eyebrow { font-family: var(--font-mono); font-weight: 700; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.lang-dv .prayer__eyebrow { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; font-size: 0.82rem; }
.prayer__locname { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.25; color: var(--text); }
.prayer__nav { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: var(--rule); border-radius: 50%; color: var(--text-2); transition: color 0.15s, border-color 0.15s; }
.prayer__nav:hover { color: var(--accent); border-color: var(--accent); }
.prayer__nav .ic { width: 16px; height: 16px; }
[dir="rtl"] .prayer__nav .ic { transform: scaleX(-1); }
.prayer__date { display: block; text-align: center; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3); margin-block: 0.3rem 0.5rem; padding-block-end: 0.5rem; border-block-end: var(--rule); }
.lang-dv .prayer__date { font-family: var(--font-mono); font-size: 0.82rem; }
.prayer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.prayer__row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.34rem 0.4rem; border-radius: var(--r); }
.prayer__name { font-size: 0.9rem; color: var(--text-2); }
.lang-dv .prayer__name { font-size: 0.98rem; }
.prayer__time { font-family: var(--font-mono); font-weight: 700; font-size: 0.92rem; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.prayer__row.is-next { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.prayer__row.is-next .prayer__name, .prayer__row.is-next .prayer__time { color: var(--accent); }
.prayer__msg { text-align: center; color: var(--text-3); font-size: 0.85rem; padding-block: 0.9rem; }
.lang-dv .prayer__msg { font-size: 0.95rem; }
.prayer__msg--err { color: var(--accent); cursor: pointer; }

/* keep the hero lead column able to shrink within the grid */
.hero-nyt__lead { min-width: 0; }

/* Latest-news — two horizontal image-card columns (80% total) + a headline list (20%, leftmost), split by vertical rules */
.latest-grid { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: clamp(1.2rem, 2.4vw, 2rem); align-items: start; }
.latest-col, .latest-rail { min-width: 0; }
.latest-col + .latest-col, .latest-rail { border-inline-start: var(--rule); padding-inline-start: clamp(1.2rem, 2.4vw, 2rem); }
.latest-col { display: flex; flex-direction: column; gap: clamp(1rem, 2vw, 1.5rem); }
/* horizontal card: image on the (RTL) right (media first), text on the left */
.lnews { display: flex; gap: 0.85rem; align-items: flex-start; }
/* fixed image size so both columns match (a % would shrink in the padded second column) */
.lnews__media { flex: none; width: clamp(130px, 14vw, 170px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-card); display: block; }
.lnews__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }
.lnews:hover .lnews__media img { transform: scale(1.04); }
.lnews__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.lnews__title { font-family: var(--font-dv); font-weight: 700; font-size: clamp(0.98rem, 1.4vw, 1.15rem); line-height: 1.45; color: var(--text); transition: color 0.15s; }
.lnews:hover .lnews__title { color: var(--accent); }
@media (max-width: 980px) {
  .latest-grid { grid-template-columns: 1fr 1fr; }
  .latest-rail { grid-column: 1 / -1; border-inline-start: 0; padding-inline-start: 0; border-block-start: var(--rule); padding-block-start: 1rem; margin-block-start: 0.4rem; }
}
@media (max-width: 600px) {
  .latest-grid { grid-template-columns: 1fr; }
  .latest-col + .latest-col { border-inline-start: 0; padding-inline-start: 0; border-block-start: var(--rule); padding-block-start: 1.1rem; }
}

.raillist { display: flex; flex-direction: column; }
.raillist__item { display: flex; flex-direction: column; gap: 0.2rem; padding-block: 0.6rem; border-block-end: var(--rule); }
.raillist__item:first-child { padding-block-start: 0; }
.raillist__title { font-family: var(--font-dv); font-weight: 700; font-size: 0.98rem; line-height: 1.45; color: var(--text); transition: color 0.15s; }
.raillist__item:hover .raillist__title { color: var(--accent); }
.raillist__date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); }
.lang-dv .raillist__date { font-family: var(--font-mono); font-size: 0.82rem; }

/* World section — big feature (right) + small horizontal cards (centre) + vertical cards (left), split by rules */
.worldgrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(1.2rem, 2.6vw, 2rem); align-items: start; }
.worldgrid__lead { min-width: 0; }
.worldgrid__col, .worldgrid__side { display: flex; flex-direction: column; gap: clamp(1rem, 2vw, 1.5rem); min-width: 0; border-inline-start: var(--rule); padding-inline-start: clamp(1.1rem, 2.2vw, 1.7rem); }
/* left-column vertical card (image on top) */
.wvcard { display: flex; flex-direction: column; gap: 0.4rem; }
.wvcard__media { display: block; overflow: hidden; border-radius: var(--r-card); aspect-ratio: 16 / 10; }
.wvcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }
.wvcard:hover .wvcard__media img { transform: scale(1.04); }
.wvcard__title { font-family: var(--font-dv); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--text); transition: color 0.15s; }
.wvcard:hover .wvcard__title { color: var(--accent); }
@media (max-width: 980px) {
  .worldgrid { grid-template-columns: 1fr 1fr; }
  .worldgrid__lead { grid-column: 1 / -1; }
  .worldgrid__col, .worldgrid__side { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 600px) { .worldgrid { grid-template-columns: 1fr; } }

/* =================================================================
   Section reorg — reports panel + image rows · sports 3-col · persons name overlay · gallery band
   ================================================================= */

/* Reports — subtle panel background; each list row now carries an image (on the RTL right) */
/* reports panel — tint background (same colour as before) that expands to
   full-bleed, touching the left/right edges, as you scroll (see initParallax). */
.reports { position: relative; background: transparent; padding-block: clamp(1.6rem, 4vw, 2.8rem); padding-inline: clamp(1rem, 3vw, 2.2rem); }
.reports > *:not(.reports__bg) { position: relative; z-index: 1; }
.reports__bg { position: absolute; inset-block: 0; left: 0; right: 0; z-index: 0; pointer-events: none; border-radius: var(--r-lg); background: color-mix(in srgb, var(--accent) 4%, var(--bg-soft)); will-change: left, right; transition: left 0.12s linear, right 0.12s linear; }
.rrow { display: flex; flex-direction: row; gap: 0.85rem; align-items: flex-start; border-inline-start: 0; padding-inline-start: 0; }
.rrow__media { flex: none; width: clamp(104px, 13vw, 148px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-card); display: block; }
.rrow__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }
.rrow:hover .rrow__media img { transform: scale(1.04); }
.rrow__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }

/* Sports — 3-column image cards */
.cardgrid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.2vw, 1.6rem); }
@media (max-width: 860px) { .cardgrid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cardgrid3 { grid-template-columns: 1fr; } }

/* Persons — centred name straddling the image bottom with a background-coloured outline; no excerpt */
.pcard { position: relative; display: block; }
.pcard__media { position: relative; aspect-ratio: 3 / 4; overflow: visible; background: transparent; margin-block-end: 0; }
.pcard__imgwrap { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: var(--r-card); background: var(--bg-soft); }
.pcard__imgwrap img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.92) contrast(1.03); transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.45s ease; }
/* bottom fade so the straddling name reads cleanly over the photo */
.pcard__imgwrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 52%, rgba(12, 16, 22, 0.62) 100%); }
.pcard:hover .pcard__imgwrap img { filter: none; transform: scale(1.04); }
.pcard__name { position: absolute; inset-inline: 0; bottom: 0; transform: translateY(50%); text-align: center; padding-inline: 4px; font-family: var(--font-dv); font-weight: 700; font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.15; color: var(--text); -webkit-text-stroke: 3px var(--bg); paint-order: stroke fill; transition: color 0.15s; }
.pcard:hover .pcard__name { color: var(--accent); }
.pcard__role { display: block; text-align: center; margin-block-start: clamp(1.1rem, 1.8vw, 1.5rem); font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; letter-spacing: 0; text-transform: none; color: var(--accent); }

/* Gallery — distinct dark band of photo/video tiles */
.gallery { background: #11171e; color: var(--on-dark); }
[data-theme="dark"] .gallery { background: #090d12; }
.gallery .section-title { color: #fff; }
.gallery .section-head { border-block-end-color: rgba(255, 255, 255, 0.18); }
.gallery .section-more { color: rgba(255, 255, 255, 0.72); }
.gallery .section-more:hover { color: #fff; }
.gallerygrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
/* gallery card — image + title below (matches the site card style), light text on the dark band */
.gcard { display: flex; flex-direction: column; gap: 0.5rem; color: var(--on-dark); }
.gcard__media { display: block; overflow: hidden; border-radius: var(--r-card); aspect-ratio: 16 / 10; }
.gcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1); }
.gcard:hover .gcard__media img { transform: scale(1.04); }
.gcard__title { font-family: var(--font-dv); font-weight: 700; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.45; color: #fff; transition: color 0.15s; }
.gcard:hover .gcard__title { color: #9cc3e8; }
.gcard__date { font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); }
.lang-dv .gcard__date { font-family: var(--font-mono); font-size: 0.85rem; }
@media (max-width: 760px) { .gallerygrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .gallerygrid { grid-template-columns: 1fr; } }

/* =================================================================
   World Cup 2026 scores banner (below the live bar, before the hero)
   ================================================================= */
.scorebar { background: var(--surface); border-block-end: var(--rule); }
.scorebar__inner { display: flex; align-items: stretch; min-height: 50px; }
.scorebar__label { flex: none; display: inline-flex; align-items: center; gap: 0.45em; padding-inline-end: clamp(0.7rem, 2vw, 1.1rem); margin-inline-end: clamp(0.5rem, 1.5vw, 0.9rem); border-inline-end: var(--rule); font-family: var(--font-mono); font-weight: 700; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); white-space: nowrap; }
.scorebar__label .ic { width: 18px; height: 18px; }
.lang-dv .scorebar__label { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; font-size: 0.92rem; }
.scorebar__viewport { flex: 1 1 0; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.scorebar__viewport::-webkit-scrollbar { display: none; }
.scorebar__viewport.is-grabbing { cursor: grabbing; }
.scorebar__track { display: flex; align-items: stretch; }
.match { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 0.18rem; padding: 0.35rem clamp(0.85rem, 1.5vw, 1.2rem); border-inline-end: var(--rule); color: inherit; transition: background-color 0.15s; }
.match:hover { background: var(--bg-soft); }
.match__status { font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); text-align: center; }
.lang-dv .match__status { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; font-size: 0.72rem; }
.match__status--ft { color: var(--accent); }
.match__status--live { color: var(--breaking); font-weight: 700; }
.match__line { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.match__side { display: inline-flex; align-items: center; gap: 0.3rem; }
.match__flag { width: 22px; height: 16px; object-fit: contain; flex: none; }
.match__code { display: inline-block; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.match__code { font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; color: var(--text); }
.match__score { font-family: var(--font-mono); font-weight: 700; font-size: 0.92rem; color: var(--text); font-variant-numeric: tabular-nums; }
.match__time { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
[dir="rtl"] .scorebar__viewport { cursor: grab; }
@media (max-width: 720px) { .scorebar__inner { min-height: 46px; } .scorebar__label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* dark scores band + World Cup 2026 logo */
.scorebar { background: #0e1622; border-block-end: 1px solid rgba(255, 255, 255, 0.1); }
.scorebar__inner { min-height: 56px; }
.scorebar__logo { height: 38px; width: auto; display: block; flex: none; }
.scorebar__label { color: #8bc0ec; border-inline-end-color: rgba(255, 255, 255, 0.14); }
.scorebar .match { border-inline-end-color: rgba(255, 255, 255, 0.1); }
.scorebar .match:hover { background: rgba(255, 255, 255, 0.06); }
.scorebar .match__status { color: rgba(255, 255, 255, 0.55); }
.scorebar .match__status--ft { color: #8bc0ec; }
.scorebar .match__status--live { color: #ff6b6b; }
.scorebar .match__code, .scorebar .match__score { color: #fff; }
.scorebar .match__time { color: rgba(255, 255, 255, 0.82); }

/* logo: no placeholder background; flags (not badges); crisp, bolder score font */
.scorebar__logo { background: none; }
.scorebar .match__flag { object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 2px; }
.scorebar .match__code, .scorebar .match__score, .scorebar .match__time { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.scorebar .match__score { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.01em; }

/* =================================================================
   Poll — taller roomier card, bigger options + bars, animated thanks
   ================================================================= */
.poll__media { align-self: stretch; height: auto; min-height: 100%; }
.poll__main { padding: clamp(1.5rem, 2.8vw, 2.5rem); gap: 1rem; }
.poll__main .poll__body { gap: 1.1rem; margin-block-start: 0.4rem; }
.poll__opts { gap: 0.7rem; }
.poll-opt { padding: 0.95rem 1.1rem; font-size: 1.02rem; border-radius: var(--r-card); }
.lang-dv .poll-opt__label { font-size: 1.05rem; }
.poll-opt__mark { width: 20px; height: 20px; }
.poll-res { gap: 0.5rem; }
.poll-res__label { font-size: 1.02rem; }
.lang-dv .poll-res__label { font-size: 1.06rem; }
.poll-res__pct { font-size: 1.02rem; }
.poll-res__track { height: 12px; border-radius: 999px; }
/* info section */
.poll__foot { padding-block-start: 1.1rem; }
.poll__total { font-size: 0.92rem; }
.poll__total strong { font-size: 1.1rem; }
.lang-dv .poll__hint { font-size: 0.98rem; }
/* voted: animated "thank you" only (no change-vote) */
.poll__foot--voted { justify-content: space-between; align-items: center; }
.poll__foot--voted .poll__thanks { font-size: 0.95rem; font-weight: 700; color: var(--accent); animation: pollThanksIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lang-dv .poll__foot--voted .poll__thanks { font-size: 1.05rem; }
.poll__foot--voted .poll__thanks .ic { width: 18px; height: 18px; animation: pollCheckPop 0.5s 0.08s both cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes pollThanksIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes pollCheckPop { 0% { transform: scale(0) rotate(-20deg); } 100% { transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .poll__foot--voted .poll__thanks, .poll__foot--voted .poll__thanks .ic { animation: none; } }
@media (max-width: 720px) { .poll__media { min-height: 0; height: auto; aspect-ratio: 16 / 9; align-self: stretch; } }

/* ============================ Advertisement slots ============================ */
/* base box (the masthead/portrait slots already set their own size; these add the
   shared look + the leader/square/in-article variants used across the site) */
.adslot { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border-2); border-radius: var(--r); background: var(--bg-soft); color: var(--text-3); }
.adslot--leader { width: 100%; min-height: clamp(90px, 13vw, 120px); }
.adslot--square { width: 300px; max-width: 100%; aspect-ratio: 6 / 5; }
.adslot--herosq { width: 100%; margin-block-start: clamp(1rem, 2vw, 1.4rem); } /* hero rail ad — square, fills the rail */
.adrow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.9rem, 2.4vw, 1.5rem); }
.adband { margin-block: var(--section-y); }
@media (max-width: 640px) { .adrow { grid-template-columns: 1fr; } }

/* report list: the slot that replaced the last row */
.adslot--report { min-height: clamp(96px, 12vw, 130px); align-self: stretch; }

/* in-article ads — constrained to the readable column */
.article > .adband { max-width: 760px; margin-inline: auto; }
.adslot--inarticle { width: 100%; min-height: clamp(90px, 13vw, 110px); clear: both; margin-block: clamp(1.4rem, 3vw, 2rem); }
/* square ad that the body text wraps around, from the first paragraph (site is RTL) */
.adslot--inline { float: left; width: 280px; max-width: 46%; margin: 0.35rem 1.5rem 1.1rem 0; }
@media (max-width: 560px) { .adslot--inline { float: none; width: 100%; max-width: 100%; margin: 1.2rem 0; aspect-ratio: 16 / 9; } }

/* ===================== MMA economic indicators (ވިޔަފާރި section) ===================== */
.econ { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 2vw, 1.3rem); margin-block-end: 0.85rem; }
.econ__card { display: flex; flex-direction: column; gap: 0.45rem; padding: clamp(1rem, 2.2vw, 1.4rem); background: var(--surface); border: var(--rule); border-block-start: 3px solid var(--accent); border-radius: var(--r); }
.econ__label { font-family: var(--font-dv); font-size: 1rem; line-height: 1.3; color: var(--text-2); }
.econ__value { font-family: var(--font-mono); font-size: clamp(1.7rem, 3.8vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--text); }
.econ__unit { font-family: var(--font-dv); font-size: 0.85rem; font-weight: 400; letter-spacing: 0; color: var(--text-3); }
.econ__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.7rem; font-size: 0.82rem; margin-block-start: 0.1rem; }
.econ__period { font-family: var(--font-dv); color: var(--text-3); }
.econ__trend { display: inline-flex; align-items: center; gap: 0.25rem; font-family: var(--font-mono); font-weight: 700; }
.econ__arrow { font-size: 0.82em; }
.econ__basis { font-family: var(--font-dv); font-weight: 400; color: var(--text-3); }
.econ__trend--up { color: #0a8a3f; }
.econ__trend--down { color: #c8102e; }
[data-theme="dark"] .econ__trend--up { color: #45d17f; }
[data-theme="dark"] .econ__trend--down { color: #ff6b7d; }
.econ__note { font-family: var(--font-dv); color: var(--text-3); }
.econ__src { font-family: var(--font-dv); font-size: 0.78rem; color: var(--text-3); margin-block: 0 clamp(1rem, 2.2vw, 1.5rem); }
@media (max-width: 640px) { .econ { grid-template-columns: 1fr; } }

/* interactive line chart inside each indicator card (MMA "viya" style) */
.econ__chartwrap { margin-block-start: 0.6rem; }
.econ__chart { position: relative; width: 100%; height: 66px; cursor: crosshair; touch-action: none; }
.spark { display: block; width: 100%; height: 100%; overflow: visible; }
.spark__line { fill: none; stroke: #f97316; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark__area { stroke: none; }
.spark__guide { position: absolute; inset-block: 0; width: 1px; background: color-mix(in srgb, #f97316 50%, transparent); transform: translateX(-0.5px); pointer-events: none; }
.spark__dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #f97316; border: 2px solid var(--surface); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); transform: translate(-50%, -50%); pointer-events: none; }
.econ__tip { position: absolute; z-index: 4; transform: translate(-50%, calc(-100% - 10px)); display: flex; flex-direction: column; align-items: center; gap: 0.05rem; padding: 0.3rem 0.5rem; background: var(--text); color: var(--surface); border-radius: 7px; white-space: nowrap; line-height: 1.25; pointer-events: none; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.5); }
.econ__tipval { font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.econ__tipdate { font-family: var(--font-dv); font-size: 0.72rem; opacity: 0.75; }
.econ__chart [hidden] { display: none; }
[data-theme="dark"] .spark__line { stroke: #fb923c; }
[data-theme="dark"] .spark__dot { background: #fb923c; }
/* bar-chart variant */
.spark__bar { fill: color-mix(in srgb, #f97316 78%, transparent); transition: fill 0.1s; }
.spark__bar.is-on { fill: #ea580c; }
[data-theme="dark"] .spark__bar { fill: color-mix(in srgb, #fb923c 70%, transparent); }
[data-theme="dark"] .spark__bar.is-on { fill: #fdba74; }

/* ===== Business panel: stock board (left, 70%) + indicator slider (right, 30%) ===== */
.bizgrid { display: flex; align-items: stretch; gap: clamp(1rem, 2.6vw, 2rem); } /* stretch → stock board matches the indicator-card column height */
.bizgrid__main { flex: 7 1 0; min-width: 0; order: 2; } /* stock board → left (RTL: higher order = later = left) */
.bizgrid__side { flex: 3 1 0; min-width: 0; order: 1; } /* slider → right */
@media (max-width: 760px) { .bizgrid { flex-direction: column; } .bizgrid__main, .bizgrid__side { flex: 1 1 auto; width: 100%; } .bizgrid__main { order: 1; } .bizgrid__side { order: 2; } .stockw { height: auto; } .stockw__list { flex: none; height: clamp(280px, 50vh, 420px); } }
/* business news — 4 cards per row below the stock/indicator row */
.cardgrid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.2vw, 1.6rem); }
.biznews { margin-block-start: clamp(1.5rem, 3vw, 2.2rem); }
@media (max-width: 900px) { .cardgrid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cardgrid4 { grid-template-columns: 1fr; } }
/* related news → horizontal cards on mobile (image beside text) */
@media (max-width: 640px) {
  .related .cardgrid4 { grid-template-columns: 1fr; }
  .related .card--mini { display: flex; align-items: stretch; }
  .related .card--mini .card__media { flex: 0 0 42%; max-width: 150px; aspect-ratio: auto; align-self: stretch; }
  .related .card--mini .card__media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
  .related .card--mini .card__body { flex: 1 1 auto; min-width: 0; }
}

/* stock board */
.stockw { display: flex; flex-direction: column; height: 100%; border: var(--rule); border-block-start: 3px solid var(--accent); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.stockw__head { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: clamp(0.8rem, 1.8vw, 1.1rem) clamp(0.9rem, 2vw, 1.3rem); border-block-end: var(--rule); }
.stockw__title { font-family: var(--font-dv); font-size: clamp(1.1rem, 1.8vw, 1.35rem); margin: 0; color: var(--text); }
.stockw__src { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3); letter-spacing: 0.02em; }
.stockw__cols { flex: none; display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; padding: 0.5rem clamp(0.9rem, 2vw, 1.3rem); font-family: var(--font-dv); font-size: 0.78rem; color: var(--text-3); border-block-end: var(--rule); }
.stockw__cols .stockw__col:nth-child(2) { text-align: end; min-width: 5.5rem; }
.stockw__cols .stockw__col:nth-child(3) { text-align: end; min-width: 5rem; }
.stockw__list { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; }
.stockw__track { animation: stockScroll var(--dur, 24s) linear infinite; will-change: transform; }
.stockw:hover .stockw__track { animation-play-state: paused; }
@keyframes stockScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .stockw__list { overflow-y: auto; }
  .stockw__track { animation: none; }
  .stockw__set[aria-hidden] { display: none; }
}
.stockrow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding: 0.7rem clamp(0.9rem, 2vw, 1.3rem); border-block-end: 1px solid var(--border); }
.stockrow:last-child { border-block-end: 0; }
.stockrow--loading { display: block; color: var(--text-3); font-family: var(--font-dv); }
.stockrow__id { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.stockrow__code { font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--text); }
.stockrow__name { font-family: var(--font-dv); font-size: 0.8rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stockrow__price { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--text); text-align: end; min-width: 5.5rem; }
.stockrow__chg { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.25rem; font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; font-variant-numeric: tabular-nums; min-width: 5rem; }
.stockrow__arr { font-size: 0.8em; }
.stockrow--up .stockrow__chg { color: #0a8a3f; }
.stockrow--down .stockrow__chg { color: #c8102e; }
.stockrow--flat .stockrow__chg { color: var(--text-3); }
[data-theme="dark"] .stockrow--up .stockrow__chg { color: #45d17f; }
[data-theme="dark"] .stockrow--down .stockrow__chg { color: #ff6b7d; }

/* MMA indicators — compact static grid: every card visible at once, no scroll */
.econgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-block-end: clamp(1rem, 2.5vw, 1.6rem); }
.econ__card--mini { gap: 0.28rem; padding: 0.6rem 0.6rem 0.7rem; }
.econ__card--mini .econ__label { font-size: 0.8rem; line-height: 1.25; }
.econ__card--mini .econ__value { font-size: clamp(1.05rem, 1.5vw, 1.45rem); }
.econ__card--mini .econ__unit { font-size: 0.6rem; }
.econ__card--mini .econ__meta { gap: 0.15rem 0.35rem; font-size: 0.62rem; margin-block-start: 0; }
.econ__card--mini .econ__arrow { font-size: 0.72em; }
.econ__card--mini .econ__chartwrap { margin-block-start: 0.4rem; }
.econ__card--mini .econ__chart { height: 32px; }
.econ__card--mini .econ__tipval { font-size: 0.72rem; }
.econ__card--mini .econ__tipdate { font-size: 0.66rem; }
@media (max-width: 1100px) { .econgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .econgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* mobile: horizontal scroll-snap slider, 2 cards per view */
@media (max-width: 600px) {
  .econgrid { display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-block-end: 4px; }
  .econgrid::-webkit-scrollbar { display: none; }
  .econ__card--mini { flex: 0 0 calc(50% - 5px); scroll-snap-align: start; }
}

/* gallery / photo-essay single layout — full-width image + caption, one by one */
.photoessay { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: clamp(1.6rem, 3.5vw, 2.8rem); }
.photoessay__item { margin: 0; }
.photoessay__img { width: 100%; height: auto; border-radius: var(--r); display: block; }
.photoessay__cap { font-family: var(--font-read); font-size: 0.98rem; line-height: 1.6; color: var(--text-2); margin-block-start: 0.7rem; padding-inline-start: 0.85rem; border-inline-start: 3px solid var(--accent); }
.lang-dv .photoessay__cap { font-family: var(--font-mono); line-height: 1.9; }
.photoessay__video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.photoessay__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* uniform card-date size — overrides the per-card date rules above */
.card__date, .lcard__date, .bentocard__date, .gcard__date,
.lang-dv .card__date, .lang-dv .lcard__date, .lang-dv .bentocard__date, .lang-dv .gcard__date { font-size: 12px; }

/* --- article: inline share bar (before the tags) --- */
.article__share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; max-width: 760px; margin-inline: auto; margin-block-start: clamp(1.4rem, 3vw, 2rem); }
.article__sharelabel { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-inline-end: 0.2rem; }
.lang-dv .article__sharelabel { font-family: var(--font-dv); text-transform: none; letter-spacing: 0; font-size: 0.95rem; }

/* clean SOLID heart on the like button (grey by default, red when liked/hover) */
.likebtn .ic--heart { fill: currentColor; stroke: none; color: var(--text-3); }
.likebtn:hover .ic--heart, .likebtn.is-liked .ic--heart { color: var(--breaking); }

/* mobile byline order: author icon + name · date (right), like button hard-left */
@media (max-width: 700px) {
  .article__byinfo { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 0.1rem 0.45rem; }
  .article__byinfo .article__date::before { content: "·"; margin-inline-end: 0.45rem; color: var(--text-3); }
}
