/* /news, /news/archive, /terms, /privacy, /contact (2026-10-25). Tokens from css/home.css; the look palette (--lk-deep,
   --lk-accent2) comes from the event/month look. No inline styles (strict CSP). Sizes scale with --mp-fs. */
.nav.scrolled { background: color-mix(in srgb, var(--lk-deep, #012A13) 94%, transparent); }
.foot { background: var(--lk-deep, #012A13); }
.nw-ur, [lang="ur"] { font-family: "Noto Nastaliq Urdu", serif; }
[lang="sd"] { font-family: "Noto Naskh Arabic", "Noto Nastaliq Urdu", "Segoe UI", Tahoma, serif; }
.nw-ur { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: .95em; line-height: 2; }
.nw-ic { width: .85em; height: .85em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.05em; margin-inline-start: .3em; opacity: .55; }

/* ---------- hero ---------- */
.nwh { --acc: color-mix(in srgb, var(--lk-accent2, #2FBF71) 55%, #fff); color: #fff; padding: 96px 0 22px;
  background: radial-gradient(70% 70% at 100% 0%, color-mix(in srgb, var(--lk-accent2, #2FBF71) 22%, transparent), transparent 70%), var(--lk-deep, #012A13); }
.nwh .kicker { color: var(--acc); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-weight: 700; font-size: calc(14px * var(--mp-fs, 1)); letter-spacing: .06em; text-transform: uppercase; }
.nwh .kicker a { color: inherit; }
.nwh h1 { margin: 4px 0 0; font-size: calc(clamp(30px, 4.6vw, 50px) * var(--mp-fs, 1)); letter-spacing: -.03em; line-height: 1.1; max-width: 26ch; }
.nwh h1 em { font-style: normal; color: var(--acc); }
.nwh-sub { margin: 10px 0 0; max-width: 64ch; color: rgba(255,255,255,.88); font-size: calc(17px * var(--mp-fs, 1)); line-height: 1.55; }
.nwh-sm h1 { font-size: calc(clamp(26px, 3.6vw, 40px) * var(--mp-fs, 1)); }
.nw-notice { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; max-width: 820px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }
.nw-notice svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--acc); stroke-width: 2; stroke-linecap: round; margin-top: 2px; }
.nw-notice p { margin: 0; font-size: calc(14.5px * var(--mp-fs, 1)); line-height: 1.55; color: #fff; }
.nw-notice a { color: #fff; font-weight: 700; text-underline-offset: 3px; }

/* ---------- layout ---------- */
.nw-layout { display: grid; gap: 28px; padding-top: 18px; padding-bottom: 48px; }
@media (min-width: 1040px) { .nw-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .nw-side { position: sticky; top: 84px; } }
.nw-main { min-width: 0; }
.nw-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nw-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: #ECE9E0; }
.nw-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: calc(15px * var(--mp-fs, 1)); color: var(--ink-2); }
.nw-tab[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,26,20,.15); }
.nw-tab:hover { color: var(--ink); }
.nw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--lk-deep, #012A13); color: #fff; font: inherit; font-weight: 700; font-size: calc(15px * var(--mp-fs, 1)); text-decoration: none; cursor: pointer; }
.nw-personal:not(.on) { visibility: hidden; } /* space kept so it can appear without shifting the page */
.nw-btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.nw-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nw-btn:hover { filter: brightness(1.08); }

/* ---------- filters ---------- */
.nw-filters { margin: 14px 0 0; display: grid; gap: 10px; }
.nw-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.nw-chip { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: calc(14px * var(--mp-fs, 1)); white-space: nowrap; }
.nw-chip[aria-current] { background: var(--lk-deep, #012A13); border-color: var(--lk-deep, #012A13); color: #fff; }
.nw-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nw-selects label, .nw-arch-form label { display: grid; gap: 3px; font-size: calc(12.5px * var(--mp-fs, 1)); font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.nw-selects select, .nw-arch-form select, .nw-arch-form input { min-height: 44px; width: 100%; min-width: 0; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: calc(15px * var(--mp-fs, 1)); color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 500; }
.nw-stats { margin: 12px 0 0; font-size: calc(14px * var(--mp-fs, 1)); color: var(--ink-3); min-height: 1.6em; }
.nw-stats b { color: var(--ink); }

/* ---------- timeline ---------- */
.nw-feed { outline: none; }
.nw-g { margin-top: 20px; }
.nw-gh { position: sticky; top: 68px; z-index: 5; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 2px 8px;
  background: var(--paper); border-bottom: 2px solid var(--ink); font-size: calc(17px * var(--mp-fs, 1)); letter-spacing: -.01em; }
.nw-gn { font-size: calc(13px * var(--mp-fs, 1)); color: var(--ink-3); font-weight: 600; }
.nw-list { list-style: none; margin: 0; padding: 0; }
.nw-it { display: grid; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: calc(13px * var(--mp-fs, 1)); color: var(--ink-3); }
/* WhatsApp-first share (shared/mp-platform.js, 2026-10-27): at the end of the meta line; reserves its size before the script loads */
.nw-share { margin-inline-start: auto; width: 36px; height: 36px; }
.nw-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 1px 8px; border-radius: 6px; color: #fff; font-weight: 700; font-size: calc(12.5px * var(--mp-fs, 1)); background: #3D4A43; }
.nw-badge[data-h="0"] { background: #0B6E4F; } .nw-badge[data-h="1"] { background: #1D4E89; } .nw-badge[data-h="2"] { background: #8A3B12; }
.nw-badge[data-h="3"] { background: #6B2C91; } .nw-badge[data-h="4"] { background: #9C2A4F; } .nw-badge[data-h="5"] { background: #2F5D0A; }
.nw-badge[data-h="6"] { background: #6E5300; } .nw-badge[data-h="7"] { background: #3D4A43; }
.nw-lang { font-weight: 700; color: var(--ink-2); }
.nw-lang[lang] { font-size: 1em; line-height: 1.3; }
.nw-cat, .nw-reg { padding: 1px 8px; border-radius: 999px; background: #EEEBE2; color: var(--ink-2); font-weight: 600; }
.nw-reg { background: #E3EEF7; color: #1D3F5E; }
.nw-t { margin: 6px 0 0; font-size: calc(18px * var(--mp-fs, 1)); line-height: 1.4; font-weight: 700; letter-spacing: -.01em; }
.nw-t a { text-decoration: none; color: var(--ink); }
.nw-t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nw-t a:visited { color: #4A5650; }
.nw-t[dir="rtl"] { font-size: calc(19px * var(--mp-fs, 1)); line-height: 2.05; font-weight: 600; text-align: right; }
.nw-t[lang="sd"] { line-height: 1.75; }
.nw-also { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin: 6px 0 0; font-size: calc(13.5px * var(--mp-fs, 1)); color: var(--ink-3); }
.nw-also .nw-ic { margin: 0 4px 0 0; opacity: .8; }
.nw-also a { color: var(--ink-2); font-weight: 600; display: inline-block; padding: 4px 0; }
.nw-lead { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .nw-lead { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.nw-lead .nw-t { font-size: calc(21px * var(--mp-fs, 1)); }
.nw-lead .nw-t[dir="rtl"] { font-size: calc(22px * var(--mp-fs, 1)); }
.nw-fig { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #E4E1D6; }
.nw-fig img { width: 100%; height: 100%; object-fit: cover; }
.nw-fig figcaption { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 6px; background: rgba(0,0,0,.62); color: #fff; font-size: calc(11.5px * var(--mp-fs, 1)); font-weight: 600; }
.nw-empty { margin-top: 18px; padding: 22px; border-radius: 16px; background: #fff; border: 1px dashed var(--line); }
.nw-empty p { margin: 4px 0; }
.nw-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.nw-small { font-size: calc(13.5px * var(--mp-fs, 1)); color: var(--ink-3); }

/* For you onboarding */
.nw-fy-note { margin-top: 14px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.nw-fy-note p { margin: 0 0 8px; }
.nw-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.nw-q { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #F6F4EE; font: inherit; font-weight: 600; font-size: calc(14px * var(--mp-fs, 1)); color: var(--ink); cursor: pointer; }
.nw-q-r { background: #EEF4F9; }
.nw-q[aria-pressed="true"] { background: var(--lk-deep, #012A13); color: #fff; border-color: var(--lk-deep, #012A13); }

/* new stories pill: fixed, so it never shifts the page */
.nw-pill { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 60; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  background: var(--lk-accent2, #0B7A3E); color: #fff; font: inherit; font-weight: 800; font-size: calc(15px * var(--mp-fs, 1)); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); cursor: pointer; }
.nw-pill { background: #0B6E4F; }
.nw-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 70; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: #13201A; color: #fff; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }

/* sidebar */
.nw-card { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.nw-card + .nw-card { margin-top: 16px; }
.nw-card h2 { margin: 0 0 8px; font-size: calc(17px * var(--mp-fs, 1)); }
.nw-how { margin: 0; padding-left: 18px; font-size: calc(14px * var(--mp-fs, 1)); color: var(--ink-2); display: grid; gap: 6px; }
.nw-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.nw-sources li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: calc(13px * var(--mp-fs, 1)); }
.nw-src-d { color: var(--ink-3); }

/* personalise dialog */
.nw-dlg { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.55); }
.nw-dlg::backdrop { background: rgba(5,15,10,.55); }
.nw-dlg-in { padding: 18px 18px 0; display: grid; gap: 12px; }
.nw-dlg-head { display: flex; align-items: center; justify-content: space-between; }
.nw-dlg-head h2 { margin: 0; font-size: calc(21px * var(--mp-fs, 1)); }
.nw-x { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.nw-x svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.nw-dlg-sub { margin: 0; color: var(--ink-2); font-size: calc(14.5px * var(--mp-fs, 1)); }
.nw-dlg fieldset { border: 0; margin: 0; padding: 0; }
.nw-dlg legend { font-weight: 800; margin-bottom: 6px; font-size: calc(14px * var(--mp-fs, 1)); }
.nw-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.nw-opts-sm { max-height: 180px; overflow: auto; padding: 2px; }
.nw-opt { position: relative; display: inline-flex; }
.nw-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nw-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: #F6F4EE; font-weight: 600; font-size: calc(14px * var(--mp-fs, 1)); cursor: pointer; }
.nw-opt input:checked + span { background: var(--lk-deep, #012A13); border-color: var(--lk-deep, #012A13); color: #fff; }
.nw-opt input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.nw-field { display: grid; gap: 4px; font-weight: 700; font-size: calc(14px * var(--mp-fs, 1)); }
.nw-field input { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font: inherit; font-weight: 500; }
.nw-mute summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.nw-mute[open] { display: grid; gap: 10px; }
.nw-sync { margin: 0; font-size: calc(13.5px * var(--mp-fs, 1)); color: var(--ink-2); }
.nw-dlg-foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 0 16px; background: #fff; border-top: 1px solid var(--line); }

/* archive */
.nw-arch { padding-top: 18px; padding-bottom: 48px; max-width: 900px; }
.nw-arch-form { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 8px; align-items: end; margin-top: 14px; }
@media (max-width: 760px) { .nw-arch-form { grid-template-columns: 1fr 1fr; } .nw-f-q { grid-column: 1 / -1; } .nw-arch-form .nw-btn { grid-column: 1 / -1; } }
.nw-daynav, .nw-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.nw-pg { color: var(--ink-3); font-weight: 600; }

/* footer */
.nw-foot-notice { margin: 0; padding: 18px 0 4px; max-width: 80ch; color: rgba(255,255,255,.85); font-size: calc(14px * var(--mp-fs, 1)); line-height: 1.55; }
.nw-foot-links { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; }
.nw-foot-links a { color: inherit; display: inline-block; padding: 8px 0; }

/* legal pages */
.lg { max-width: 820px; padding-top: 22px; padding-bottom: 56px; }
.lg h2 { margin: 30px 0 8px; font-size: calc(22px * var(--mp-fs, 1)); letter-spacing: -.01em; scroll-margin-top: 84px; }
.lg h3 { margin: 18px 0 6px; font-size: calc(17px * var(--mp-fs, 1)); }
.lg p, .lg li { font-size: calc(16px * var(--mp-fs, 1)); line-height: 1.7; color: var(--ink-2); }
.lg ul { padding-left: 20px; }
.lg a { color: #0B5E3A; font-weight: 600; text-underline-offset: 3px; }
.lg-toc { margin: 0; padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); columns: 2 220px; }
.lg-toc a { display: inline-block; padding: 6px 0; }
.lg-box { padding: 14px 16px; border-radius: 14px; background: #FFF8E6; border: 1px solid #F0D9A0; }
.lg-meta { color: var(--ink-3); font-size: calc(14px * var(--mp-fs, 1)); }
.lg-contact { margin-top: 18px; }

/* solemn days: no colour, greyscale pictures */
[data-event-tone="solemn"] .nw-badge, [data-compose="solemn"] .nw-badge { background: #45494C !important; }
[data-event-tone="solemn"] .nw-fig img, [data-compose="solemn"] .nw-fig img { filter: grayscale(1) brightness(.92); }
[data-event-tone="solemn"] .nwh, [data-compose="solemn"] .nwh { --acc: #E2E2E2; background: var(--lk-deep, #1B1D1E); }
[data-event-tone="solemn"] .nw-pill, [data-compose="solemn"] .nw-pill { background: #45494C; }
[data-event-tone="solemn"] .nw-reg, [data-compose="solemn"] .nw-reg { background: #EEE; color: #333; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Reserve the nav's late-filling parts (sign-in widget, app switcher) so they do not shift the page on these pages. */
.nw-page mp-apps { display: inline-flex; justify-content: flex-end; min-width: 162px; min-height: 42px; }

/* Phones: headlines sooner (shorter header, one row of filters; labels stay for screen readers) */
@media (max-width: 640px) {
  .nw-page .nwh { padding: 84px 0 14px; }
  .nw-page .nwh-sub { display: none; }
  .nw-notice { margin-top: 10px; padding: 10px 12px; }
  .nw-notice p { font-size: calc(13px * var(--mp-fs, 1)); line-height: 1.5; }
  .nw-layout { padding-top: 12px; }
  .nw-selects { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .nw-selects label:last-of-type { grid-column: auto; }
  .nw-selects label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nw-selects select { padding: 0 6px; font-size: calc(14px * var(--mp-fs, 1)); }
  .nw-filters { margin-top: 10px; gap: 8px; }
}
/* Nastaliq's tall metrics must not change the kicker's height when the web font arrives (layout shift) */
.nwh .kicker { line-height: 28px; min-height: 28px; }
.nwh .kicker .nw-ur { display: inline-block; height: 28px; line-height: 28px; overflow: visible; vertical-align: top; }
/* the notice wraps one line more once Plus Jakarta Sans arrives: reserve the lines on phones (no layout shift) */
@media (max-width: 640px) { .nw-notice p { min-height: 6em; } }
@media (max-width: 420px) { .nw-notice p { min-height: 7.5em; } }
