/* Nepal Wire. One reading column for stories, a newsroom grid for the front, crimson and flag blue
   from the brand, Eczar for headlines in both scripts, the phone's own font for running text. */

@font-face { font-family: "Eczar"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/eczar-700-devanagari.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: "Eczar"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/eczar-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #ffffff;
  --surface: #f4f5f7;
  --ink: #0f1218;
  --ink-2: #3a404c;
  --muted: #646b79;
  --rule: #e3e5ea;
  --brand: #c8102e;
  --brand-deep: #9c0b23;
  --blue: #003893;
  --night: #0b1830;
  --night-ink: #eef2f8;
  --gold: #b88a1e;
  --focus: #2d6cdf;
  --shadow: 0 1px 2px rgba(15, 18, 24, 0.06), 0 8px 24px rgba(15, 18, 24, 0.08);
  --display: "Eczar", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", sans-serif;
  --wide: 1240px;
  --measure: 700px;
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e15; --surface: #121823; --ink: #eef1f6; --ink-2: #c4cad6; --muted: #929bad; --rule: #222a37;
    --brand: #ff4d63; --brand-deep: #ff7286; --blue: #7ea6ff; --night: #060a12; --night-ink: #eef1f6; --gold: #e2b64c; --focus: #7ea6ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0e15; --surface: #121823; --ink: #eef1f6; --ink-2: #c4cad6; --muted: #929bad; --rule: #222a37;
  --brand: #ff4d63; --brand-deep: #ff7286; --blue: #7ea6ff; --night: #060a12; --night-ink: #eef1f6; --gold: #e2b64c; --focus: #7ea6ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
html[lang="ne"] {
  --sans: "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", "Mangal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; text-rendering: optimizeLegibility; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
html[lang="ne"] body { line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.18; text-wrap: balance; margin: 0; }
html[lang="ne"] h1, html[lang="ne"] h2, html[lang="ne"] h3 { line-height: 1.32; }
p { margin: 0; }
.container { max-width: var(--wide); margin: 0 auto; padding-inline: 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.icon { display: block; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--bg); color: var(--ink); padding: 8px 14px; border: 2px solid var(--focus); border-radius: 8px; }
.skip:focus { left: 16px; }

/* The reading bar, driven by the scroll itself where the browser can */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; z-index: 40; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* Header */
.topbar { border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.edition { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .edition-label { display: none; } }
.tools { display: flex; align-items: center; gap: 4px; }
.tool, .tools .lang { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: var(--ink-2); text-decoration: none; }
.tool:hover, .tools .lang:hover { background: var(--surface); color: var(--ink); }
.tools .lang { border: 1px solid var(--rule); font-weight: 700; padding: 0 14px; color: var(--ink); }
.theme-dark-icon { display: none; }
:root[data-theme="dark"] .theme-dark-icon { display: block; }
:root[data-theme="dark"] .theme-light-icon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-dark-icon { display: block; }
  :root:not([data-theme="light"]) .theme-light-icon { display: none; }
}

.masthead { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--rule); }
.masthead .container { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand .logo { width: 38px; height: 38px; border-radius: 9px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); transition: transform 0.4s var(--ease); }
.brand:hover .logo { transform: rotate(-6deg) scale(1.05); }
.sections { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.sections::-webkit-scrollbar { display: none; }
.sections a { position: relative; flex: none; padding: 8px 12px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink-2); border-radius: 8px; white-space: nowrap; }
.sections a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.35s var(--ease); }
.sections a:hover { color: var(--ink); }
.sections a:hover::after, .sections a[aria-current="page"]::after { transform: scaleX(1); }
.sections .nav-cta { color: var(--brand); }
@supports (animation-timeline: scroll()) {
  .masthead .container { animation: shrink linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
  @keyframes shrink { to { min-height: 52px; } }
}
@media (max-width: 860px) {
  .masthead .container { flex-wrap: wrap; gap: 0; padding-top: 6px; }
  .brand { font-size: 24px; }
  .sections { order: 3; width: 100%; margin: 0 -8px; padding-bottom: 6px; mask-image: linear-gradient(90deg, #000 90%, transparent); }
  .sections a { font-size: 14px; padding: 6px 10px; }
}

/* Search */
.search-dialog { width: min(680px, calc(100% - 32px)); max-height: min(78vh, 720px); margin: 10vh auto auto; padding: 0; border: 1px solid var(--rule); border-radius: 16px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.search-dialog::backdrop { background: rgba(6, 10, 18, 0.55); backdrop-filter: blur(4px); }
.search-dialog[open] { animation: pop 0.28s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.search-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.search-head input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 19px; color: var(--ink); outline: none; }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; max-height: calc(min(78vh, 720px) - 70px); }
.search-results a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--surface); }
.search-results strong { font-family: var(--display); font-size: 17px; line-height: 1.35; }
.search-results span { color: var(--muted); font-size: 13px; }
.search-empty { padding: 18px 16px 22px; color: var(--muted); }

/* Kicker, labels, times */
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; }
html[lang="ne"] .kicker { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.kicker a { text-decoration: none; }
.kicker .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.kicker time, .kicker .soft { color: var(--muted); font-weight: 600; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface); color: var(--ink-2); letter-spacing: 0; text-transform: none; }

/* Front page */
main { display: block; }
.front { padding-block: 24px 8px; }
.front-grid { display: grid; gap: 28px; }
@media (min-width: 1000px) { .front-grid { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); align-items: start; } }
.hero { display: grid; gap: 18px; }
.hero-media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: drift 16s var(--ease) both; }
  @keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
}
.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero-title { font-size: clamp(30px, 4.4vw, 54px); letter-spacing: -0.015em; }
html[lang="ne"] .hero-title { letter-spacing: 0; }
.hero-title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.5s var(--ease); }
.hero-title a:hover { color: inherit; background-size: 100% 2px; }
.hero-dek { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); margin-top: 12px; max-width: 64ch; }
.hero-take { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); }
.hero-take p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero-take strong, .take strong { color: var(--ink); }
.read-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; text-decoration: none; color: var(--brand); }
.read-more .icon { transition: transform 0.35s var(--ease); }
.read-more:hover .icon { transform: translateX(4px); }

.rail { border-top: 3px solid var(--ink); padding-top: 12px; }
@media (min-width: 1000px) { .rail { position: sticky; top: 92px; } }
/* On a phone the story list below carries the same stories with their pictures. */
@media (max-width: 999px) { .rail { display: none; } }
.rail-title { font-size: 22px; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulse 2.2s ease-out infinite; }
  @keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
}
.latest { list-style: none; margin: 0; padding: 0; counter-reset: latest; }
.latest li { counter-increment: latest; border-bottom: 1px solid var(--rule); }
.latest a { display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; padding: 12px 0; text-decoration: none; }
.latest a::before { content: counter(latest); grid-row: span 2; font-family: var(--display); font-size: 26px; line-height: 1; color: var(--rule); transition: color 0.3s var(--ease); }
.latest a:hover::before { color: var(--brand); }
.latest strong { font-family: var(--display); font-size: 17px; line-height: 1.35; font-weight: 700; }
.latest time { font-size: 12.5px; color: var(--muted); }

.block { padding-block: 34px 8px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 3px solid var(--ink); padding-top: 10px; margin-bottom: 20px; }
.block-head h2 { font-size: 26px; }
.block-head a { font-size: 14px; font-weight: 700; text-decoration: none; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }

.cards { display: grid; gap: 26px 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { position: relative; }
.card a { display: grid; gap: 12px; text-decoration: none; color: inherit; }
.card-media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card a:hover .card-media img { transform: scale(1.05); }
.card-title { font-size: 20px; line-height: 1.3; transition: color 0.25s var(--ease); }
html[lang="ne"] .card-title { line-height: 1.42; }
.card a:hover .card-title { color: var(--brand); }
.card-dek { color: var(--ink-2); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; }
@media (max-width: 640px) {
  .cards { gap: 0; grid-template-columns: 1fr; }
  .card { border-bottom: 1px solid var(--rule); }
  .card a { grid-template-columns: minmax(0, 1fr) 112px; align-items: start; gap: 12px; padding: 14px 0; }
  .card-media { order: 2; aspect-ratio: 1 / 1; border-radius: 8px; }
  .card-body { order: 1; }
  .card-title { font-size: 17.5px; }
  .card-dek { display: none; }
}

/* Reveal as the reader scrolls, where the browser can drive it from the scroll alone */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(26px); } }
  }
}

/* The dark band: how a story earns its place */
.band { margin-top: 44px; background: var(--night); color: var(--night-ink); padding-block: 48px; overflow: hidden; position: relative; }
.band::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 32%, transparent), transparent); pointer-events: none; }
.band h2 { font-size: clamp(26px, 3vw, 36px); max-width: 24ch; }
.band .lede { margin-top: 10px; color: color-mix(in srgb, var(--night-ink) 78%, transparent); max-width: 62ch; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; position: relative; }
.steps li { counter-increment: step; padding: 18px 18px 16px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease); }
.steps li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 60%, transparent); background: rgba(255, 255, 255, 0.06); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--display); font-size: 15px; color: var(--gold); margin-bottom: 6px; }
.steps strong { display: block; font-family: var(--display); font-size: 19px; margin-bottom: 4px; }
.steps span { font-size: 15px; color: color-mix(in srgb, var(--night-ink) 75%, transparent); }
.band a { color: var(--night-ink); }

/* Follow and sign up */
.follow-band { margin-block: 40px; padding: 28px; border: 1px solid var(--rule); border-radius: 16px; display: grid; gap: 14px; background: linear-gradient(135deg, var(--surface), var(--bg)); }
.follow-band h2 { font-size: clamp(22px, 2.4vw, 30px); }
.follow-band p { color: var(--ink-2); max-width: 60ch; }
.follow-links { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff !important; text-decoration: none; font-weight: 700; padding: 11px 18px; border-radius: 999px; border: 0; cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease); }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 35%, transparent); }
.button-quiet { background: var(--bg); color: var(--ink) !important; border: 1px solid var(--rule); }
.button-quiet:hover { box-shadow: var(--shadow); }
.signup { margin: 34px 0 0; padding: 22px 24px; border-radius: 14px; border: 1px solid var(--rule); background: var(--surface); }
.signup h2 { font-size: 22px; margin-bottom: 6px; }
.signup p { margin-bottom: 12px; color: var(--ink-2); }
.signup-footer { margin: 0 0 22px; }
.signup-inline { margin: 34px 0; }
.signup-page { margin: 20px 0 30px; }

/* Article */
.story { max-width: calc(var(--measure) + 32px); margin: 0 auto; padding: 28px 16px 10px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs span[aria-hidden] { opacity: 0.6; }
.story h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.015em; animation: rise 0.7s var(--ease) both; }
html[lang="ne"] .story h1 { letter-spacing: 0; }
.story .dek { font-size: clamp(18px, 1.9vw, 21px); color: var(--ink-2); margin-top: 14px; animation: rise 0.7s var(--ease) 0.08s both; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 20px; padding-block: 14px; border-block: 1px solid var(--rule); }
.byline { font-size: 14.5px; color: var(--ink-2); }
.byline strong { color: var(--ink); }
.dateline { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.story-hero { margin: 26px auto 8px; max-width: 980px; }
.story-hero img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.update, .take { padding: 14px 16px; margin: 20px 0 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); line-height: 1.6; }
.update { border-left: 3px solid var(--gold); }
.take { border-left: 3px solid var(--brand); }
.lang-note { margin: 14px 0 0; font-size: 15px; }
.lang-note a { font-weight: 700; text-decoration: none; color: var(--blue); }
.body { font-size: 19px; line-height: 1.75; margin-top: 26px; }
html[lang="ne"] .body { font-size: 19.5px; line-height: 1.9; }
.body p { margin: 0 0 1.15em; }
.body h2, .body h3 { margin: 1.6em 0 0.55em; font-size: 1.32em; }
.body a { color: var(--blue); }
.body blockquote { margin: 1.2em 0; padding: 0.2em 0 0.2em 1em; border-left: 3px solid var(--brand); color: var(--ink-2); font-style: italic; }
.facts { border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; margin: 26px 0; background: var(--bg); }
.facts h2 { margin: 0 0 8px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts ul { margin: 0; padding-left: 18px; }
.facts .src { font-size: 12.5px; color: var(--muted); }
.sources h2, .review h3 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 8px; }
html[lang="ne"] .sources h2 { letter-spacing: 0; text-transform: none; font-size: 15px; }
.sources ol { padding-left: 20px; margin: 0; font-size: 15px; }
.sources li { margin-bottom: 4px; }
.review { border-top: 1px solid var(--rule); margin-top: 26px; padding-top: 12px; font-size: 15px; }
.review summary { cursor: pointer; font-weight: 700; }
.scores { list-style: none; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 12px; }
.scores li { background: var(--surface); border-radius: 8px; padding: 6px 10px; display: flex; gap: 8px; align-items: baseline; }
.scores li span { text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.review-note { border-top: 1px solid var(--rule); margin-top: 26px; padding-top: 12px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.tags span { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-2); }

/* Share */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.share-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
html[lang="ne"] .share-label { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink-2); text-decoration: none; cursor: pointer; transition: transform 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease); }
.share-btn:hover { transform: translateY(-2px); }
.share-btn.facebook:hover { color: #fff; background: #1877f2; border-color: #1877f2; }
.share-btn.whatsapp:hover { color: #fff; background: #25d366; border-color: #25d366; }
.share-btn.viber:hover { color: #fff; background: #7360f2; border-color: #7360f2; }
.share-btn.x:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.share-btn.copy:hover, .share-btn.native:hover { color: var(--brand); border-color: var(--brand); }
.share-btn .label { font-size: 14px; font-weight: 600; }
.share-end { margin: 30px 0; padding: 18px; border-radius: 14px; background: var(--surface); justify-content: space-between; }
.share-end .share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 35; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.share-float.show { opacity: 1; transform: none; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* More stories under each article */
.more-stories { max-width: var(--wide); margin: 34px auto 0; padding-inline: 16px; }
.more-stories > h2 { font-size: 24px; border-top: 3px solid var(--ink); padding-top: 10px; margin-bottom: 18px; }
.more-stories ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
@media (min-width: 860px) { .more-stories ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.more-stories a { display: grid; gap: 8px; text-decoration: none; }
.more-stories img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; transition: transform 0.6s var(--ease); }
.more-stories a:hover img { transform: scale(1.04); }
.more-stories .media { overflow: hidden; border-radius: 8px; }
.more-stories .kicker { font-size: 11.5px; margin: 0; }
.more-headline { font-family: var(--display); font-weight: 700; font-size: 16.5px; line-height: 1.35; }
html[lang="ne"] .more-headline { line-height: 1.45; }
.more-stories a:hover .more-headline { color: var(--brand); }

/* Section, archive and plain pages */
.page-head { padding-block: 34px 18px; border-bottom: 1px solid var(--rule); margin-bottom: 26px; }
.page-head h1, .page-title { font-size: clamp(32px, 4vw, 48px); }
.page-head .dek { margin-top: 10px; color: var(--ink-2); font-size: 18px; max-width: 62ch; }
.archive { list-style: none; padding: 0; margin: 0 0 40px; max-width: 860px; }
.archive li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.archive li a { font-family: var(--display); font-weight: 700; font-size: 18px; text-decoration: none; }
.archive .muted { display: block; font-size: 15px; margin-top: 2px; }
.archive-day { font-weight: 700; color: var(--brand); border-bottom: none !important; padding-top: 26px !important; font-size: 14px; letter-spacing: 0.04em; }
.prose { max-width: calc(var(--measure) + 32px); margin: 0 auto; padding: 34px 16px 20px; font-size: 18px; }
.prose h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 18px; }
.prose h2 { font-size: 24px; margin: 1.6em 0 0.5em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.empty, .not-found { text-align: center; padding-block: 70px 30px; display: grid; gap: 12px; justify-items: center; }
.empty h1, .not-found h1 { font-size: clamp(30px, 4vw, 44px); }
.investigations-band { margin-top: 44px; }
.inv-list { display: grid; gap: 34px; padding-bottom: 30px; }
.inv { display: grid; gap: 20px; border-top: 1px solid var(--rule); padding-top: 26px; }
@media (min-width: 860px) { .inv { grid-template-columns: 2fr 5fr; } }
.inv-card img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.inv h2 { font-size: 26px; margin-bottom: 10px; }
.inv h2 a { text-decoration: none; }
.inv h3 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 18px 0 6px; }
.inv ul { padding-left: 18px; margin: 0; }
.inv li { margin-bottom: 6px; }
.hook { padding: 14px 16px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.missed { margin-top: 14px; color: var(--ink-2); }
.missed span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.more { text-align: center; margin: 30px 0 0; }
.more a { font-weight: 700; color: var(--brand); text-decoration: none; }
.ad { margin: 26px 0; min-height: 250px; }

/* Footer */
body > footer { margin-top: 56px; background: var(--night); color: color-mix(in srgb, var(--night-ink) 80%, transparent); padding-block: 44px 34px; font-size: 15px; }
body > footer a { color: var(--night-ink); }
body > footer .brand { color: var(--night-ink); font-size: 26px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h2 { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
html[lang="ne"] .footer-grid h2 { letter-spacing: 0; text-transform: none; font-size: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid ul a { text-decoration: none; }
.footer-grid ul a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); transition: background 0.25s var(--ease), transform 0.25s var(--ease); }
.footer-social a:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.footer-note { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 28px; padding-top: 18px; font-size: 13.5px; display: grid; gap: 8px; }
body > footer .signup { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); color: var(--night-ink); }
body > footer .signup p { color: color-mix(in srgb, var(--night-ink) 78%, transparent); }
body > footer .button-quiet { background: transparent; color: var(--night-ink) !important; border-color: rgba(255, 255, 255, 0.24); }
.to-top { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 34; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); cursor: pointer; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* Page to page, the story's picture travels where the browser supports it */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
@media print {
  .topbar, .masthead, .share, .share-end, .share-float, .to-top, .more-stories, body > footer, .progress, .ad { display: none !important; }
  body { font-size: 12pt; }
}
