/* =================================================================
   The PaperMag News — bilingual (English / Dhivehi) editorial theme
   Design language: Notion "warm minimalism" + tight spacing + 3px radius
   Fonts: Satoshi (EN) · MV Aaamu FK (DV) · AK Rasmee (accents — Latin + Thaana)
   ================================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-VariableItalic.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "AamuFK";
  src: url("../fonts/AamuFK.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  /* Aamu FK declares an ascent of only ~0.715em, but its Thaana glyphs (with the
     upper "fili" vowel marks) reach ~0.95em. That gap clipped the TOP of letters
     inside inputs and any tight line box. Override the metrics so the browser
     reserves enough room above the baseline. */
  ascent-override: 100%;
  descent-override: 66%;
  line-gap-override: 0%;
}
@font-face {
  /* Replaces the typewriter (Courier Prime) for editorial accents. AK Rasmee
     carries BOTH Latin and Thaana glyphs and has correct vertical metrics, so it
     renders English and Dhivehi labels with no top clipping. */
  font-family: "AK Rasmee";
  src: url("../fonts/AKRasmee.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  /* English titles/headings. Single Medium master mapped across the weight range
     so heading weights render the real face (no synthetic bolding). */
  font-family: "BDO Grotesk";
  src: url("../fonts/BDOGrotesk-Medium.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Satoshi", system-ui, -apple-system, sans-serif;
  --font-head: "BDO Grotesk", "Satoshi", system-ui, sans-serif;
  --font-mono: "AK Rasmee", ui-monospace, "Courier New", monospace;
  --font-dv: "AamuFK", "Satoshi", system-ui, sans-serif;

  /* palette — Shell / Stone / Sky / Honeydew / Viridian */
  --shell: #f7f5f1;
  --stone: #e0dcd1;
  --sky: #d5e3e8;
  --honeydew: #e4e3bc;
  --viridian: #344945;

  /* light theme */
  --bg: #f7f5f1;            /* Shell */
  --bg-soft: #e0dcd1;       /* Stone */
  --surface: #ffffff;
  --text: #25302c;
  --text-2: #5c635e;
  --text-3: #8f938c;
  --border: rgba(52, 73, 69, 0.13);
  --border-2: rgba(52, 73, 69, 0.22);
  --accent: #344945;        /* Viridian */
  --accent-2: #273733;
  --breaking: #d6321f;      /* breaking-news red */
  --on-dark: #f6f5f2;
  --on-dark-2: rgba(246, 245, 242, 0.74);
  --overlay: linear-gradient(180deg, rgba(18, 22, 21, 0) 28%, rgba(18, 22, 21, 0.16) 50%, rgba(18, 22, 21, 0.86) 100%);
  --shadow: 0 1px 2px rgba(37, 48, 44, 0.06), 0 8px 24px -16px rgba(37, 48, 44, 0.2);

  /* geometry — small roundness, tight rhythm */
  --r-sm: 2px;
  --r: 3px;
  --r-lg: 4px;
  --wrap: 1140px;
  --pad-x: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(1.6rem, 3.2vw, 2.4rem);
  --rule: 1px solid var(--border);
}

[data-theme="dark"] {
  --bg: #161b19;
  --bg-soft: #1d2421;
  --surface: #212a27;
  --text: #ecefe9;
  --text-2: #a4ab9f;
  --text-3: #767c72;
  --border: rgba(255, 255, 255, 0.1);
  --border-2: rgba(255, 255, 255, 0.18);
  --accent: #9cc3b6;
  --accent-2: #b9d6cc;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -18px rgba(0, 0, 0, 0.7);
}

/* ---------- 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 ---------- */
.masthead { background: var(--surface); text-align: center; padding-block: clamp(1.1rem, 3vw, 1.9rem); }
.wordmark {
  font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.025em;
  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) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-block: 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 { 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.15s;
}
.lang-dv .nav-link { font-family: var(--font-dv); font-size: 18px; }
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: ""; position: absolute; inset-block-end: 0; inset-inline: 0; height: 2px; background: var(--accent);
}
.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) ---------- */
.breakingbar { background: var(--breaking); color: #fff; }
.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: 52px 1fr; gap: 0.9rem; }
.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); }
/* cards with text over a dark image — keep a light sage hover in both themes */
.recent__grid .card--feature .card__title a:hover,
.card--overlay .card__title a:hover { color: #9cc3b6; }
.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: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-block-end: clamp(0.9rem, 2vw, 1.3rem); }
.section-title { font-size: clamp(1.15rem, 2.2vw, 1.55rem); font-weight: 700; letter-spacing: -0.02em; }
.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); }
.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__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__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-dv); }
.lang-dv { font-family: var(--font-dv); }
.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 .excerpt, .lang-dv .byline__name,
.lang-dv .nav-link, .lang-dv .footer__tag, .lang-dv .footer__col a { 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); }

@media (max-width: 720px) {
  :root { --section-y: clamp(1.3rem, 5vw, 1.8rem); }
  .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: keep every nav item visible and let the row scroll
     horizontally up to the search icon instead of collapsing to a menu */
  .nav-list { gap: 1.5rem; -webkit-mask-image: linear-gradient(to var(--nav-fade, right), #000 calc(100% - 1.6rem), transparent); mask-image: linear-gradient(to var(--nav-fade, right), #000 calc(100% - 1.6rem), transparent); }
  .lang-dv .nav-list { --nav-fade: left; }
  .mainnav__inner { gap: 0.6rem; }
  /* show the menu toggle (before search) — tapping it hides the scroll-row + opens the dropdown */
  .nav-more-btn { display: inline-flex; }
  .nav-more-btn .ic { width: 24px; height: 24px; }
  .mainnav__inner:has(.nav-more-btn[aria-expanded="true"]) .nav-list { display: none; }
  .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; }

.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; }
.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; 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__btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--border-2); border-radius: var(--r); color: var(--text-2); transition: color 0.15s, border-color 0.15s, background-color 0.15s; }
.share__btn:hover { color: var(--accent); border-color: var(--accent); }
.share__btn.is-copied { color: #fff; background: var(--accent); border-color: var(--accent); }
.share__btn .ic { font-size: 1rem; }
/* 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; }
.share__btn--wa:hover { color: #fff; background: #25d366; border-color: #25d366; }
.share__btn--viber:hover { color: #fff; background: #7360f2; border-color: #7360f2; }
.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); }
.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; 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; 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: 10px; }
.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); }
.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; }
.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: 42px; width: auto; max-width: 240px; object-fit: contain; background: none; }
.mainnav__logo .brand__img { height: 28px; max-width: 170px; }
.wordmark--sm .brand__img { height: 26px; max-width: 160px; }
@media (max-width: 700px) { .brand__img { height: 34px; max-width: 190px; } .mainnav__logo .brand__img { height: 24px; } }
