/* KaunZimmedar — news design system.
   System fonts only: no web-font request goes to a third party, which suits a site that
   will not even store a reader's IP address. Every colour pair used for text meets WCAG
   AA against its background in both schemes. Rules and whitespace do the work that boxes
   and shadows do on a dashboard — this is meant to read like a newspaper. */

:root {
  --paper: #fbf9f4; --surface: #ffffff; --ink: #1b1a17; --ink-2: #3f3c35; --muted: #676359;
  --rule: #e4ddcd; --rule-2: #cfc6b2; --rule-strong: #1b1a17;
  --brand: #8a6500; --brand-ink: #6e5100; --brand-soft: #f4ecd6;
  --court: #5b3fb5; --parl: #1f5f9e; --audit: #ac302b; --reg: #7a5c00; --diplo: #1d7462; --tender: #6b5a2e;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Noto Serif", "Noto Serif Devanagari", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
  --frame: 1180px; --read: 680px;
}
/* Theme: the reader's explicit choice (data-theme on <html>, set before first paint from
   localStorage) wins; with no choice made, the operating system's preference decides. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f0e0c; --surface: #171613; --ink: #f1ede3; --ink-2: #d2ccbe; --muted: #9c978b;
    --rule: #2b2822; --rule-2: #3a362e; --rule-strong: #f1ede3;
    --brand: #e4c04a; --brand-ink: #f0d27a; --brand-soft: #2a2414;
    --court: #b19cf5; --parl: #7fb3ec; --audit: #ef8a86; --reg: #e4c04a; --diplo: #6fd3bd; --tender: #d2b570;
  }
}
:root[data-theme="dark"] {
    --paper: #0f0e0c; --surface: #171613; --ink: #f1ede3; --ink-2: #d2ccbe; --muted: #9c978b;
    --rule: #2b2822; --rule-2: #3a362e; --rule-strong: #f1ede3;
    --brand: #e4c04a; --brand-ink: #f0d27a; --brand-soft: #2a2414;
    --court: #b19cf5; --parl: #7fb3ec; --audit: #ef8a86; --reg: #e4c04a; --diplo: #6fd3bd; --tender: #d2b570;
}

/* ---------- page frame ---------- */
body.nx { background: var(--paper); color: var(--ink); font-family: var(--serif); }
.nx a { color: inherit; }
.nx a:hover { text-decoration: none; }
.nx :focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.frame { width: 100%; max-width: var(--frame); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 50; }

/* ---------- utility bar ---------- */
.nx-util { font-family: var(--sans); font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--rule); }
.nx-util .frame { display: flex; align-items: center; gap: 18px; min-height: 40px; flex-wrap: wrap; }
.nx-util .today { white-space: nowrap; }
.nx-util nav { margin-left: auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nx-util nav a { color: var(--ink-2); text-decoration: none; }
.nx-util nav a:hover { color: var(--brand-ink); }
.nx-util select { font: 13px var(--sans); background: transparent; color: var(--ink-2);
  border: 1px solid var(--rule-2); border-radius: 4px; padding: 4px 6px; }

/* ---------- masthead ---------- */
.nx-mast { text-align: center; padding: 22px 0 14px; }
.nx-mast a { text-decoration: none; color: var(--ink); display: inline-block; }
.nx-mast .hi { display: block; font-size: clamp(34px, 6vw, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -.5px; }
.nx-mast .en { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nx-mast .motto { font-style: italic; color: var(--ink-2); font-size: 16px; margin: 10px 0 0; }

/* ---------- section nav ---------- */
.nx-nav { border-top: 1px solid var(--rule-strong); border-bottom: 3px double var(--rule-strong); }
.nx-nav .frame { display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nx-nav .frame::-webkit-scrollbar { display: none; }
.nx-nav a { font-family: var(--sans); font-size: 14.5px; font-weight: 600; padding: 11px 13px; white-space: nowrap;
  text-decoration: none; color: var(--ink); border-bottom: 3px solid transparent; margin-bottom: -3px; }
.nx-nav a:hover { color: var(--brand-ink); }
.nx-nav a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand-ink); }
.nx-nav .sep { width: 1px; background: var(--rule-2); margin: 10px 8px; flex: none; }

/* ---------- translation notice ---------- */
.nx-note { font-family: var(--sans); font-size: 13.5px; background: var(--brand-soft); color: var(--ink-2);
  border-bottom: 1px solid var(--rule); padding: 9px 0; }

/* ---------- shared story bits ---------- */
/* Inline flow throughout. The source is ".issuer", not ".src": the old front page's
   legacy rule .src{display:flex} still ships for older pages, and matching it turned the
   source into a flex container — a forced line break, with the dot as its own flex item. */
.kicker { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 7px; line-height: 1.5; }
.kicker .sec { color: var(--brand-ink); text-decoration: none; margin-right: 9px; }
.kicker .evtag { margin-left: 6px; }
/* The dot is a glyph joined to the name by a no-break space: as an inline-block it was a
   break point, and a narrow column printed a lone dot on one line and the name on the next. */
.kicker .issuer::before { content: "●\00a0"; font-size: .8em; vertical-align: .08em; }
.k-court .issuer { color: var(--court); } .k-parl .issuer { color: var(--parl); } .k-audit .issuer { color: var(--audit); }
.k-reg .issuer { color: var(--reg); } .k-diplo .issuer { color: var(--diplo); } .k-tender .issuer { color: var(--tender); }
.hl { font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.2px; }
.hl a { text-decoration: none; }
.hl a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hl-xl { font-size: clamp(30px, 4.3vw, 48px); line-height: 1.06; letter-spacing: -.6px; }
.hl-l { font-size: 23px; } .hl-m { font-size: 19px; } .hl-s { font-size: 16.5px; line-height: 1.22; }
.dek { color: var(--ink-2); font-size: 19px; line-height: 1.45; margin: 12px 0 0; }
.dek-s { font-size: 15.5px; margin-top: 7px; }
.meta { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin: 9px 0 0; }
.meta b { color: var(--ink-2); font-weight: 600; }
.figure { font-family: var(--sans); font-weight: 800; letter-spacing: -.5px; color: var(--ink); }
.evtag { font-family: var(--sans); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--paper); background: var(--brand); border-radius: 3px; padding: 2px 6px; }
.deadline { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--audit); white-space: nowrap; }
.label { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 12px; padding-bottom: 7px; border-bottom: 2px solid var(--rule-strong);
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label a { color: var(--brand-ink); text-decoration: none; font-size: 11.5px; letter-spacing: .04em; }
.label a:hover { text-decoration: underline; }

/* ---------- front page ---------- */
.fp { padding: 26px 0 10px; }
.fp-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0; }
.fp-lead { padding-right: 34px; border-right: 1px solid var(--rule); }
.fp-lead .figure { font-size: clamp(34px, 4vw, 46px); line-height: 1; margin: 20px 0 4px; }
.fp-lead .figcap { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.fp-points { margin: 18px 0 0; padding: 0 0 0 20px; }
.fp-points li { font-size: 17px; line-height: 1.5; margin: 0 0 8px; color: var(--ink-2); }
.fp-points li::marker { color: var(--brand); }
.fp-more { font-family: var(--sans); font-size: 14px; font-weight: 700; margin: 18px 0 0; }
.fp-more a { color: var(--brand-ink); text-decoration: none; }
.fp-more a:hover { text-decoration: underline; }
.fp-latest { padding-left: 30px; }
.fp-latest ol { list-style: none; margin: 0; padding: 0; }
.fp-latest li { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.fp-latest li:first-child { padding-top: 0; }
.fp-latest li:last-child { border-bottom: 0; }
.fp-latest .when { font-family: var(--sans); font-size: 11.5px; color: var(--muted); display: block; margin-bottom: 3px; }
.fp-top4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 30px 0 0; border-top: 1px solid var(--rule-strong); padding-top: 18px; }
.fp-top4 article { padding: 0 20px; border-left: 1px solid var(--rule); }
.fp-top4 article:first-child { padding-left: 0; border-left: 0; }
.fp-top4 article:last-child { padding-right: 0; }
.fp-secs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 30px; margin: 40px 0 0; }
.fp-sec .main { padding-bottom: 12px; border-bottom: 1px solid var(--rule); margin-bottom: 11px; }
.fp-sec ul { list-style: none; margin: 0; padding: 0; }
.fp-sec li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.fp-sec li:last-child { border-bottom: 0; }
.fp-closing { margin: 44px 0 0; }
.fp-closing ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.fp-closing li { padding: 10px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.fp-closing li a { font-size: 15px; line-height: 1.3; text-decoration: none; }
.fp-closing li a:hover { text-decoration: underline; }
.trust { margin: 46px 0 8px; padding: 22px 26px; background: var(--brand-soft); border-left: 4px solid var(--brand);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.trust p { margin: 0; font-size: 17px; line-height: 1.5; }
.trust p b { font-weight: 700; }
.btn { font-family: var(--sans); font-size: 14px; font-weight: 700; display: inline-block; text-decoration: none;
  padding: 10px 16px; border-radius: 4px; background: var(--ink); color: var(--paper) !important; white-space: nowrap; }
.btn:hover { background: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--rule-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }

/* ---------- story page ---------- */
.story { display: grid; grid-template-columns: minmax(0, var(--read)) minmax(0, 300px); gap: 56px; justify-content: center; padding: 32px 0 20px; }
.story .hl-xl { margin-top: 2px; }
.story .dek { font-size: 21px; margin-top: 14px; }
.story .byline { font-family: var(--sans); font-size: 13.5px; color: var(--muted); margin: 18px 0 0; padding: 12px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.story .byline b { color: var(--ink); font-weight: 600; }
.story .byline .read { margin-left: auto; }
.story .byline .read a { color: var(--brand-ink); font-weight: 700; text-decoration: none; }
.story .byline .read a:hover { text-decoration: underline; }
.keyfig { margin: 24px 0 0; padding: 16px 0 16px 18px; border-left: 4px solid var(--brand); }
.keyfig .figure { font-size: 38px; line-height: 1; display: block; }
.keyfig .cap { font-size: 16px; color: var(--ink-2); display: block; margin-top: 6px; line-height: 1.45; }
.lag { margin: 22px 0 0; padding: 14px 16px; border: 1px solid var(--rule-2); border-left: 4px solid var(--audit);
  font-family: var(--sans); font-size: 14.5px; line-height: 1.55; background: var(--surface); }
.lag a { color: var(--brand-ink); }
.prose { margin-top: 26px; }
.prose p { font-size: 19px; line-height: 1.68; margin: 0 0 18px; }
.prose h2 { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  margin: 30px 0 12px; padding: 0; border: 0; color: var(--ink); }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { font-size: 18px; line-height: 1.6; margin: 0 0 10px; padding-left: 4px; }
.prose li::marker { color: var(--brand); }
.concerns, .prose p.concerns { font-family: var(--sans); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0 0 20px;
  padding: 11px 14px; background: var(--surface); border: 1px solid var(--rule); }
.concerns b { color: var(--ink); }
.doccard { margin: 34px 0 0; border: 1px solid var(--rule-2); background: var(--surface); }
.doccard header { padding: 16px 18px 12px; border-bottom: 1px solid var(--rule); }
.doccard h2 { font-family: var(--sans); font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin: 0; padding: 0; border: 0; }
.doccard .issuer { font-size: 18px; margin: 6px 0 0; }
.doccard .facts { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.doccard .doc { padding: 14px 18px; border-top: 1px solid var(--rule); display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; }
.doccard .doc:first-of-type { border-top: 0; }
.doccard .doc .what { font-family: var(--sans); font-size: 14px; font-weight: 600; flex: 1 1 200px; }
.doccard .doc .what small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.doccard details { border-top: 1px solid var(--rule); }
.doccard summary { font-family: var(--sans); font-size: 13.5px; font-weight: 600; padding: 12px 18px; cursor: pointer; color: var(--brand-ink); }
.doccard iframe { display: block; width: 100%; height: 78vh; border: 0; border-top: 1px solid var(--rule); background: #525659; }
.howwritten { margin: 28px 0 0; padding: 16px 18px; border: 1px solid var(--rule); font-family: var(--sans); font-size: 14px;
  line-height: 1.6; color: var(--ink-2); }
.howwritten h2 { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  margin: 0 0 8px; padding: 0; border: 0; color: var(--ink); }
.howwritten p { margin: 0 0 8px; } .howwritten p:last-child { margin: 0; }
.howwritten .ok { color: var(--diplo); font-weight: 700; } .howwritten .warn { color: var(--audit); font-weight: 700; }
.howwritten a { color: var(--brand-ink); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 0; }
.rail { font-size: 15px; }
.rail section { margin: 0 0 34px; }
.rail ol { list-style: none; margin: 0; padding: 0; }
.rail li { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.rail li:last-child { border-bottom: 0; }
.rail .when { font-family: var(--sans); font-size: 11.5px; color: var(--muted); display: block; margin-top: 4px; }
.facts-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 13.5px; }
.facts-table td { padding: 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.facts-table td:first-child { color: var(--muted); width: 42%; padding-right: 12px; }
details.more { margin: 22px 0 0; border-top: 1px solid var(--rule); }
details.more > summary { font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 13px 0; cursor: pointer; color: var(--ink-2); }

/* ---------- section fronts & lists ---------- */
.secfront { padding: 30px 0 10px; }
.secfront > header { border-bottom: 1px solid var(--rule-strong); padding-bottom: 16px; margin-bottom: 26px; }
.secfront h1 { font-size: clamp(34px, 5vw, 52px); margin: 0; line-height: 1.05; letter-spacing: -.5px; }
.secfront > header p { font-size: 18px; color: var(--ink-2); margin: 10px 0 0; font-style: italic; }
.secfront > header .count { font-family: var(--sans); font-size: 13px; color: var(--muted); font-style: normal; }
.sec-lead { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 34px; padding-bottom: 26px;
  border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.sec-lead .side article { padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); }
.sec-lead .side article:last-child { border-bottom: 0; margin-bottom: 0; }
.stream { list-style: none; margin: 0; padding: 0; }
.stream li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--rule); }
.stream .when { font-family: var(--sans); font-size: 12.5px; color: var(--muted); padding-top: 3px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 0; font-family: var(--sans); font-size: 14px; }
.pager a { color: var(--brand-ink); font-weight: 700; text-decoration: none; }

/* ---------- about pages ---------- */
.about { max-width: var(--read); margin: 0 auto; padding: 34px 0 10px; }
.about h1 { font-size: clamp(32px, 4.6vw, 46px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -.4px; }
.about .standfirst { font-size: 21px; color: var(--ink-2); line-height: 1.5; margin: 0 0 26px; }
.about h2 { font-size: 24px; margin: 38px 0 12px; padding: 0 0 8px; border-bottom: 1px solid var(--rule); }
.about p, .about li { font-size: 18.5px; line-height: 1.66; }
.about li { margin-bottom: 8px; }
.about table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14.5px; margin: 10px 0 20px; }
.about th, .about td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.about th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.about .callout { padding: 16px 18px; border-left: 4px solid var(--audit); background: var(--surface); border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* ---------- footer ---------- */
.nx-foot { border-top: 3px double var(--rule-strong); margin-top: 56px; padding: 28px 0 40px; font-family: var(--sans);
  font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.nx-foot .cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 30px; }
.nx-foot h2 { font-family: var(--sans); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 10px; padding: 0; border: 0; }
.nx-foot ul { list-style: none; margin: 0; padding: 0; }
.nx-foot li { margin: 0 0 6px; }
.nx-foot a { color: var(--ink-2); text-decoration: none; }
.nx-foot a:hover { color: var(--brand-ink); text-decoration: underline; }
.nx-foot .brandline { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.nx-foot .disc { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 12.5px; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .fp-top { grid-template-columns: minmax(0, 1fr); }
  .fp-lead { padding-right: 0; border-right: 0; padding-bottom: 24px; border-bottom: 1px solid var(--rule-strong); }
  /* The findings list only fills the column beside the Latest rail; once the rail stacks
     below, it just pushes every other headline off the first screen. */
  .fp-points, .fp-more { display: none; }
  .fp-latest { padding: 22px 0 0; }
  .fp-top4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; }
  .fp-top4 article:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fp-secs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-closing ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rail { border-top: 3px double var(--rule-strong); padding-top: 22px; }
  .nx-foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .frame { padding: 0 16px; }
  .nx-util .frame { gap: 8px 14px; padding-top: 6px; padding-bottom: 6px; }
  .nx-util nav { margin-left: 0; gap: 12px; }
  .nx-mast { padding: 16px 0 10px; }
  .nx-mast .motto { font-size: 14.5px; }
  .nx-nav .frame { justify-content: flex-start; }
  .fp { padding-top: 18px; }
  .fp-top4, .fp-secs, .fp-closing ol, .sec-lead { grid-template-columns: minmax(0, 1fr); }
  .fp-top4 article { padding: 0 0 18px; border-left: 0; border-bottom: 1px solid var(--rule); }
  .fp-top4 article:last-child { border-bottom: 0; }
  .dek { font-size: 17.5px; }
  .story { padding-top: 20px; }
  .story .dek { font-size: 18.5px; }
  .prose p { font-size: 18px; }
  .prose li { font-size: 17px; }
  .stream li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .trust { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .nx-foot .cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .doccard iframe { height: 60vh; }
}

/* ---------- search in the header ---------- */
.nx-search { display: flex; align-items: center; margin: 0; }
.nx-search input { font: 14px var(--sans); width: 290px; max-width: 46vw; padding: 7px 10px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule-2); border-right: 0; border-radius: 4px 0 0 4px; }
.nx-search input::placeholder { color: var(--muted); }
.nx-search button { font: 700 13px var(--sans); padding: 8px 12px; background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 0 4px 4px 0; cursor: pointer; }
.nx-search button:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.nx-util .discuss { font-weight: 700; color: var(--ink) !important; }
.theme-toggle { font: 15px var(--sans); line-height: 1; background: transparent; color: var(--ink-2);
  border: 1px solid var(--rule-2); border-radius: 4px; padding: 5px 8px; cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: inline; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
@media (max-width: 640px) {
  .nx-search { order: 3; width: 100%; }
  .nx-search input { width: 100%; max-width: none; flex: 1; }
}

/* ---------- discussion under a story ---------- */
.talk { margin: 42px 0 0; }
.talk .label .count { font-weight: 700; color: var(--muted); }
.talk-box label { display: block; font: 700 15px var(--sans); margin: 0 0 8px; }
.talk-box textarea { width: 100%; font: 17px/1.5 var(--serif); color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule-2); border-radius: 4px; padding: 12px 14px; resize: vertical; min-height: 92px; }
.talk-box textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand-soft); }
.talk-foot { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; }
.talk-foot .btn { border: 0; cursor: pointer; flex: none; }
.talk-rules { font: 12.5px/1.5 var(--sans); color: var(--muted); margin: 0; flex: 1 1 280px; }
.talk-err { font: 700 14px var(--sans); color: var(--audit); margin: 8px 0 0; }
.talk-empty { font: 14.5px var(--sans); color: var(--muted); margin: 18px 0 0; }
.talk-list { list-style: none; margin: 22px 0 0; padding: 0; }
.talk-list li { padding: 16px 0; border-top: 1px solid var(--rule); }
.talk-meta { font: 13px var(--sans); color: var(--muted); margin: 0 0 6px; }
.talk-meta b { color: var(--ink); }
.talk-title { font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.talk-body { font-size: 17px; line-height: 1.55; margin: 0; white-space: pre-line; }
.talk-reply { display: inline-block; margin-top: 8px; font: 700 13px var(--sans); color: var(--brand-ink); text-decoration: none; }
.talk-reply:hover { text-decoration: underline; }

/* ---------- phone header ----------
   Three layers, the brand leading: a thin row of controls (search, theme, language), the
   centred masthead, then the sections bar carrying Discuss. A first version cut to two
   rows by shrinking the brand into the control row; Darshan preferred the centred
   masthead with focus, so it stays and the controls give way instead. */
.util-brand, .m-search, .nav-m { display: none; }
@media (max-width: 640px) {
  .nx-util .today, .nx-util .nx-search, .nx-util .discuss { display: none; }
  .nx-util .frame { flex-wrap: nowrap; min-height: 46px; padding-top: 0; padding-bottom: 0; position: relative; }
  .nx-util nav { margin-left: auto; gap: 8px; flex-wrap: nowrap; }
  .nx-util select { max-width: 96px; padding: 5px 4px; }
  .nx-mast { padding: 18px 0 14px; }
  .nx-mast .hi { font-size: 42px; }
  .nx-mast .en { font-size: 11.5px; margin-top: 5px; }
  .nx-mast .motto { font-size: 14px; margin-top: 8px; }
  .m-search { display: block; }
  .m-search > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 34px; height: 32px;
    border: 1px solid var(--rule-2); border-radius: 4px; color: var(--ink-2); }
  .m-search > summary::-webkit-details-marker { display: none; }
  .m-search[open] > summary { border-color: var(--ink); color: var(--ink); }
  .m-search form { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; display: flex; padding: 10px 16px;
    background: var(--paper); border-bottom: 1px solid var(--rule-strong); box-shadow: 0 6px 14px rgba(0,0,0,.08); }
  .m-search input { flex: 1; font: 16px var(--sans); padding: 9px 10px; color: var(--ink); background: var(--surface);
    border: 1px solid var(--rule-2); border-right: 0; border-radius: 4px 0 0 4px; }
  .m-search button { font: 700 14px var(--sans); padding: 9px 14px; background: var(--ink); color: var(--paper);
    border: 1px solid var(--ink); border-radius: 0 4px 4px 0; }
  .nx-nav a { font-size: 14px; padding: 10px 11px; }
  .nav-m { display: inline-block; }
}

/* ---------- search ---------- */
.bigsearch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; margin: 0 0 18px; }
.bigsearch input[type=search] { font: 19px var(--serif); padding: 13px 16px; color: var(--ink); background: var(--surface);
  border: 2px solid var(--ink); border-right: 0; border-radius: 4px 0 0 4px; min-width: 0; }
.bigsearch > button { font: 700 16px var(--sans); padding: 0 22px; background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: 0 4px 4px 0; cursor: pointer; }
.bigsearch > button:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.bigsearch .adv { grid-column: 1 / -1; margin-top: 10px; }
.bigsearch .adv summary { font: 600 14px var(--sans); color: var(--ink-2); cursor: pointer; padding: 4px 0; }
.advgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 16px; align-items: end; margin-top: 10px; }
.advgrid label { font: 600 12.5px var(--sans); color: var(--muted); display: grid; gap: 5px; }
.advgrid select { font: 14px var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--rule-2);
  border-radius: 4px; padding: 7px 8px; }
.advgrid .btn { border: 0; cursor: pointer; height: 36px; }
.resultline { font-family: var(--sans); font-size: 14.5px; color: var(--ink-2); margin: 6px 0 14px; }
.resultline b { font-size: 18px; color: var(--ink); }
.resultline a { color: var(--brand-ink); }
.resultline .note { color: var(--muted); }
.browse { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-top: 12px; }
.browse ul { list-style: none; margin: 0; padding: 0; }
.browse li { padding: 11px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between;
  gap: 14px; align-items: baseline; }
.browse li a { font-weight: 700; font-size: 17px; text-decoration: none; }
.browse li a:hover { text-decoration: underline; }
.browse li span { font: 13px var(--sans); color: var(--muted); text-align: right; }
@media (max-width: 640px) {
  .browse { grid-template-columns: minmax(0, 1fr); }
  .bigsearch input[type=search] { font-size: 17px; padding: 11px 12px; }
  .bigsearch > button { padding: 0 14px; }
}
