/* ============================================================
   KanairoCity  ·  public site
   One stylesheet. No web fonts, no framework, no build step.
   Light and dark themes, container queries where useful,
   scroll-driven reading progress, view transitions.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --paper:        #fbfaf7;
  --paper-2:      #f3f1ec;
  --paper-3:      #e9e6df;
  --ink:          #0d0d0f;
  --ink-2:        #2a2a2e;
  --body:         #26262a;
  --muted:        #66666f;
  --muted-2:      #9a9aa3;
  --line:         #e2dfd7;
  --line-strong:  #c9c5bb;

  --green:        #0a7f5f;   /* Kanairo green, AA on paper */
  --green-ink:    #06634a;
  --green-tint:   #e3f3ec;
  --mint:         #5dbda5;   /* heritage teal, used as a glow */
  --hot:          #e8491d;   /* live, breaking, errors */
  --hot-tint:     #fdeae3;
  --sun:          #ffd24a;   /* highlight marks */

  --wrap:         1180px;
  --gutter:       clamp(16px, 4vw, 28px);
  --measure:      68ch;
  --r-sm:         4px;
  --r:            10px;
  --r-lg:         18px;
  --r-pill:       999px;

  --shadow-1:     0 1px 2px rgb(0 0 0 / .05), 0 1px 1px rgb(0 0 0 / .03);
  --shadow-2:     0 6px 20px rgb(20 20 25 / .10);
  --shadow-3:     0 20px 50px rgb(20 20 25 / .18);

  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Iowan Old Style", "Source Serif 4", "Palatino Linotype", Georgia, serif;
  --mono:  ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease:   cubic-bezier(.2, .7, .2, 1);
  --fast:   140ms var(--ease);
  --med:    260ms var(--ease);

  --header-h: 56px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper:        #0f1012;
  --paper-2:      #16181b;
  --paper-3:      #1f2226;
  --ink:          #f4f3ef;
  --ink-2:        #d9d8d2;
  --body:         #d2d1cb;
  --muted:        #9a9aa3;
  --muted-2:      #6c6c75;
  --line:         #26292e;
  --line-strong:  #3a3e45;
  --green:        #4fcfa6;
  --green-ink:    #7ee0c0;
  --green-tint:   #122c25;
  --hot:          #ff6b45;
  --hot-tint:     #3a1a10;
  --shadow-1:     0 1px 2px rgb(0 0 0 / .5);
  --shadow-2:     0 6px 20px rgb(0 0 0 / .5);
  --shadow-3:     0 20px 50px rgb(0 0 0 / .6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper:        #0f1012;
    --paper-2:      #16181b;
    --paper-3:      #1f2226;
    --ink:          #f4f3ef;
    --ink-2:        #d9d8d2;
    --body:         #d2d1cb;
    --muted:        #9a9aa3;
    --muted-2:      #6c6c75;
    --line:         #26292e;
    --line-strong:  #3a3e45;
    --green:        #4fcfa6;
    --green-ink:    #7ee0c0;
    --green-tint:   #122c25;
    --hot:          #ff6b45;
    --hot-tint:     #3a1a10;
    --shadow-1:     0 1px 2px rgb(0 0 0 / .5);
    --shadow-2:     0 6px 20px rgb(0 0 0 / .5);
    --shadow-3:     0 20px 50px rgb(0 0 0 / .6);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-gutter: stable;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  background: var(--paper);
  color: var(--body);
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; }
time { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: var(--sun); color: #111; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 1000;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  font-weight: 700; border-radius: var(--r);
  transition: top var(--fast);
}
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

/* Small uppercase label used everywhere */
.kicker, .label {
  display: inline-block;
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green);
}
.kicker:hover { color: var(--green-ink); }
.label { color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 30; background: var(--paper); }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 36px; font-size: 12.5px; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.topbar time { font-weight: 600; color: var(--ink-2); }
.topbar-right { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 0; background: transparent; border-radius: var(--r-pill); color: var(--ink);
  transition: background var(--fast), color var(--fast);
}
.icon-btn:hover { background: var(--paper-2); color: var(--green); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun, .theme-toggle .moon { position: absolute; transition: opacity var(--fast), transform var(--med); }
.theme-toggle { position: relative; }
.theme-toggle .moon { opacity: 0; transform: rotate(-40deg) scale(.6); }
:root[data-theme="dark"] .theme-toggle .moon { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .sun { opacity: 0; transform: rotate(40deg) scale(.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-toggle .sun { opacity: 0; transform: rotate(40deg) scale(.6); }
}
.account-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 30px;
  border-radius: var(--r-pill); font-weight: 700; color: var(--ink); font-size: 12.5px;
}
.account-link:hover { background: var(--paper-2); color: var(--green); }
.account-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.brand-row { display: grid; place-items: center; padding: clamp(14px, 3vw, 26px) 0 clamp(10px, 2vw, 18px); }
.brand { display: inline-flex; align-items: center; justify-content: center; }
.brand img { height: clamp(52px, 8vw, 92px); width: auto; max-width: min(452px, 100%); object-fit: contain; }
.wordmark {
  display: inline-flex; align-items: baseline; gap: .04em;
  color: var(--ink);
  font-size: clamp(38px, 7.4vw, 72px); font-weight: 900; letter-spacing: -.05em; line-height: 1;
}
.wordmark b { color: var(--green); font-weight: 900; }
.wordmark i { font-style: normal; color: var(--muted-2); font-weight: 400; font-size: .32em; letter-spacing: .22em; text-transform: uppercase; align-self: center; margin-left: .35em; }

/* Sticky nav row */
.navbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.navbar-inner { display: flex; align-items: center; gap: 6px; height: var(--header-h); }
.nav-brand { display: none; align-items: center; font-weight: 900; letter-spacing: -.04em; font-size: 20px; color: var(--ink); white-space: nowrap; overflow: hidden; max-width: 0; opacity: 0; padding-right: 0; }
@supports (animation-timeline: scroll()) {
  @media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .nav-brand { display: inline-flex; animation: reveal-brand linear both; animation-timeline: scroll(root); animation-range: 40px 180px; }
  }
}
@keyframes reveal-brand { to { max-width: 160px; opacity: 1; padding-right: 12px; } }
.nav-brand b { color: var(--green); }
.nav-links {
  display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  flex: none; padding: 8px 12px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
  transition: background var(--fast), color var(--fast);
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* Search as <details>: zero JS */
.search { position: relative; flex: none; }
.search summary { list-style: none; }
.search summary::-webkit-details-marker { display: none; }
.search-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  width: min(420px, calc(100vw - var(--gutter) * 2));
  padding: 8px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-3);
}
.search-panel form { display: flex; gap: 6px; }
.search-panel input {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper-2);
}
.search-panel input:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: transparent; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border: 0; border-radius: var(--r-sm);
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px;
  transition: transform var(--fast), background var(--fast);
}
.btn:hover { background: var(--green); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }

/* ---------- Ads (contracts kept for the ad runtime and tests) ---------- */
.ad-placement { width: 100%; margin: clamp(20px, 3vw, 36px) auto; overflow: hidden; text-align: center; color: var(--muted); }
.ad-layout-reserve { display: grid; width: 100%; overflow: hidden; }
.ad-layout-reserve::before, .ad-layout-reserve > .ad-placement { grid-area: 1 / 1; }
.ad-layout-reserve--header:has(.ad-placement--adsense)::before { content: ""; height: 125px; }
.ad-layout-reserve--home-root:has(.ad-placement--adsense)::before { content: ""; height: 430px; }
.ad-placement__label { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.ad-placement__body { width: 100%; text-align: center; }
.ad-placement__body > * { max-width: 100%; }
.ad-placement__body > .adsbygoogle { width: 100%; min-width: 250px; }
.ad-placement__body img { margin: 0 auto; }
.ad-placement--site_above_brand, .ad-placement--site_below_nav, .ad-placement--blog_story_root,
.ad-placement--site_footer, .ad-placement--home_after_top_stories, .ad-placement--home_before_latest,
.ad-placement--archive_top { max-width: var(--wrap); }
.ad-placement--site_above_brand .adsbygoogle { min-height: 90px; }
.ad-placement--article_after_header, .ad-placement--article_after_featured_image,
.ad-placement--article_before_first_paragraph, .ad-placement--article_after_paragraph_3,
.ad-placement--article_after_paragraph_8, .ad-placement--article_after_paragraph_13,
.ad-placement--article_after_body { max-width: var(--measure); }
.ad-placement--feed_after_fourth { grid-column: 1 / -1; margin: 6px 0 18px; padding: 16px 0; border-block: 1px solid var(--line); }
.article-body .ad-placement { margin: 2.2em 0; padding: 1em 0; border-block: 1px solid var(--line); font-family: var(--sans); }
.site-footer .ad-placement__label { color: rgb(255 255 255 / .5); }

.desktop-ad-rail { display: none; }
@media (min-width: 1280px) {
  .site-main-shell:has(.desktop-ad-rail .ad-placement:not([hidden])) {
    width: min(100% - var(--gutter) * 2, 1800px); margin-inline: auto;
    display: grid; grid-template-columns: clamp(150px, 12vw, 220px) minmax(0, var(--wrap)) clamp(150px, 12vw, 220px);
    column-gap: clamp(12px, 1.5vw, 24px); align-items: start; justify-content: center;
  }
  .site-main-shell:has(.desktop-ad-rail .ad-placement:not([hidden])) .site-main-content { grid-column: 2; }
  .site-main-shell:has(.desktop-ad-rail .ad-placement:not([hidden])) .desktop-ad-rail { display: block; width: clamp(150px, 12vw, 220px); padding-top: 28px; }
  .site-main-shell:has(.desktop-ad-rail .ad-placement:not([hidden])) .desktop-ad-rail:not(:has(.ad-placement:not([hidden]))) { display: none; }
  .desktop-ad-rail--left { grid-column: 1; } .desktop-ad-rail--right { grid-column: 3; }
  .desktop-ad-rail__sticky { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 28px; }
  .desktop-ad-rail .ad-placement { margin: 0; }
  .desktop-ad-rail .ad-placement__body {
    display: grid; place-items: center; height: clamp(520px, calc(100vh - 190px), 760px); min-height: 520px;
    padding: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2);
  }
  .desktop-ad-rail [data-kc-desktop-ad-mount] { display: block; height: 100%; width: 100%; }
  .desktop-ad-rail .ad-placement__body > .adsbygoogle, .desktop-ad-rail [data-kc-desktop-ad-mount] > .adsbygoogle { height: 100%; width: 100%; min-width: 0; min-height: 520px; }
  .desktop-ad-rail .ad-placement__body img, .desktop-ad-rail .ad-placement--image a { width: 100%; height: 100%; }
  .desktop-ad-rail .ad-placement__body img { object-fit: cover; }
}
@media (min-width: 1540px) {
  .site-main-shell:has(.desktop-ad-rail .ad-placement:not([hidden])) { grid-template-columns: auto minmax(0, var(--wrap)) auto; column-gap: 32px; }
  .site-main-shell:has(.desktop-ad-rail .ad-placement:not([hidden])) .desktop-ad-rail { width: clamp(260px, 16vw, 300px); }
  .desktop-ad-rail .ad-placement__body { height: clamp(640px, calc(100vh - 180px), 920px); min-height: 640px; }
  .desktop-ad-rail .ad-placement__body > .adsbygoogle, .desktop-ad-rail [data-kc-desktop-ad-mount] > .adsbygoogle { min-height: 640px; }
}

/* ---------- Shared story pieces ---------- */
.site-main-content { min-width: 0; }
.media { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--paper-3); }
.media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); border-radius: inherit; pointer-events: none; }
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform 600ms var(--ease), filter var(--med); }
@media (hover: hover) {
  a.media:hover img, article:hover > a.media img, article:hover .media img { transform: scale(1.035); }
}
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.meta b { font-weight: 700; color: var(--ink-2); }
.meta .dot::before { content: "·"; color: var(--muted-2); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.section-head h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; letter-spacing: -.03em; }
.section-head h2::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 2px; background: var(--green); transform: rotate(45deg) translateY(-2px); }
.section-head span, .section-head a { font-size: 13px; font-weight: 600; color: var(--muted); }
.section-head a:hover { color: var(--green); }

/* ---------- Home ---------- */
.home { display: grid; gap: clamp(28px, 4vw, 52px); padding-top: clamp(16px, 2.5vw, 28px); }

.hero { display: grid; gap: clamp(22px, 3vw, 40px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 7.2fr) minmax(280px, 3.8fr); align-items: start; } }

.lead { display: grid; gap: 14px; }
.lead .media img { aspect-ratio: 16 / 9; }
.lead h1 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; }
.lead h1 a:hover { color: var(--green); }
.lead .dek { font-family: var(--serif); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.lead .dek p { margin: 0; }

.rail { display: grid; gap: 0; align-content: start; }
.rail h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 2px solid var(--ink); display: flex; align-items: center; gap: 8px; }
.rail h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 0 color-mix(in srgb, var(--hot) 50%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .rail h2::before { animation: none; } }
.rail ol { list-style: none; margin: 0; padding: 0; counter-reset: rail; }
.rail li { counter-increment: rail; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rail li::before { content: counter(rail, decimal-leading-zero); font-size: 26px; font-weight: 900; letter-spacing: -.05em; color: var(--line-strong); line-height: 1; transition: color var(--fast); font-variant-numeric: tabular-nums; }
.rail li:hover::before { color: var(--green); }
.rail h3 { font-size: 16.5px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.rail h3 a:hover { color: var(--green); }
.rail .meta { margin-top: 6px; }
.rail-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--ink); }
.rail-more:hover { color: var(--green); gap: 10px; }
.rail-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }

.fresh { padding: clamp(18px, 3vw, 30px); background: var(--paper-2); border-radius: var(--r-lg); }
.fresh-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.fresh-card { display: grid; gap: 10px; }
.fresh-card h3 { font-size: 18px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.fresh-card h3 a:hover { color: var(--green); }

/* Cards and grids */
.article-grid { display: grid; gap: clamp(22px, 3vw, 32px) clamp(18px, 2.5vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.article-card { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-width: 0; }
.article-card .card-body { display: grid; gap: 8px; align-content: start; }
.article-card h3 { font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.015em; }
.article-card h3 a:hover { color: var(--green); }
.card-excerpt { font-size: 14.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-excerpt p { margin: 0; }
.article-card.no-image .card-body { padding-top: 14px; border-top: 3px solid var(--green); }
.article-card.variant-compact .card-excerpt { display: none; }
.article-card.variant-compact h3 { font-size: 16.5px; }

.latest .article-grid { padding-bottom: 8px; }
.empty-state { padding: 48px 0; text-align: center; color: var(--muted); font-size: 16px; }
.empty-state strong { display: block; color: var(--ink); font-size: 22px; margin-bottom: 6px; }

/* Load more sentinel */
.load-more { grid-column: 1 / -1; display: grid; place-items: center; padding: 18px 0 6px; min-height: 64px; }
.load-more-pulse { display: flex; gap: 6px; }
.load-more-pulse span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: bounce 1s infinite var(--ease); }
.load-more-pulse span:nth-child(2) { animation-delay: .15s; } .load-more-pulse span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: .4 } 50% { transform: translateY(-6px); opacity: 1 } }
.load-more-fallback { display: none; }
.load-more.is-fallback .load-more-fallback, html.no-js .load-more-fallback { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-weight: 700; color: var(--ink); }
.load-more-fallback:hover { background: var(--paper-2); }
html.no-js .load-more-pulse, .load-more.is-fallback .load-more-pulse { display: none; }
.pagination { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 24px 0; font-weight: 700; }
.pagination a { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); }

/* ---------- Archive pages ---------- */
.archive-head { padding: clamp(28px, 5vw, 56px) 0 clamp(18px, 3vw, 30px); border-bottom: 1px solid var(--line); margin-bottom: clamp(22px, 3vw, 36px); }
.archive-head h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 900; letter-spacing: -.04em; line-height: 1; margin-top: 8px; }
.archive-description { max-width: 64ch; margin-top: 14px; font-family: var(--serif); font-size: 17px; color: var(--ink-2); }
.archive-description p { margin: 0 0 .6em; } .archive-description p:last-child { margin: 0; }
.archive-count { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.breadcrumbs a { font-weight: 600; color: var(--muted); } .breadcrumbs a:hover { color: var(--green); }
.breadcrumbs svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .6; }

/* Search results (HTMX partial + page) */
.search-summary { margin: 18px 0; font-size: 14px; color: var(--muted); }
.compact-list { display: grid; }
.compact-list a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.compact-list small { flex: none; color: var(--muted); }

/* ---------- Article ---------- */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 3px; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}
.preview-banner {
  width: min(var(--measure), 100%); margin: 20px auto 0; padding: 12px 16px; border-radius: var(--r);
  background: var(--hot-tint); color: var(--hot); border: 1px solid color-mix(in srgb, var(--hot) 30%, transparent);
  font-size: 13.5px; font-weight: 700;
}
.article-page { padding-top: clamp(20px, 3vw, 36px); }
.article-header { display: grid; gap: 16px; max-width: 54rem; margin-inline: auto; }
.article-header h1 { font-size: clamp(30px, 5vw, 54px); font-weight: 900; letter-spacing: -.035em; line-height: 1.04; }
.article-dek { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 46rem; }
.article-dek p { margin: 0; }
.byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 0; border-block: 1px solid var(--line); }
.byline-author { display: flex; align-items: center; gap: 12px; }
.byline-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--paper-3); }
.byline-avatar-fallback { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 900; font-size: 16px; }
.byline-name { display: block; font-weight: 800; color: var(--ink); font-size: 15px; }
.byline-name:hover { color: var(--green); }
.byline .meta { font-size: 13px; }

/* Share */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-row > a, .share-row > button {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper);
  font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap;
  transition: background var(--fast), color var(--fast), border-color var(--fast), transform var(--fast);
}
.share-row > a:hover, .share-row > button:hover { transform: translateY(-1px); border-color: transparent; color: #fff; background: var(--brand, var(--ink)); }
.share-row svg { width: 18px; height: 18px; fill: currentColor; }
.share-row .share-native { --brand: var(--green); display: none; }
html.can-share .share-row .share-native { display: inline-flex; }
.share-row .share-wa { --brand: #25d366; }
.share-row .share-x  { --brand: #000; }
.share-row .share-fb { --brand: #1877f2; }
.share-row .share-tg { --brand: #229ed9; }
.share-row .share-li { --brand: #0a66c2; }
.share-row .share-mail { --brand: var(--ink); }
.share-row .share-copy.is-copied { background: var(--green); border-color: transparent; color: #fff; }
@media (max-width: 560px) {
  .share-row > a span, .share-row > button span { display: none; }
  .share-row > a, .share-row > button { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .share-row .share-native, .share-row .share-copy { width: auto; padding: 0 14px 0 10px; }
  .share-row .share-native span, .share-row .share-copy span { display: inline; }
}
.share-block { margin: clamp(26px, 4vw, 40px) auto 0; padding: 20px 0; border-top: 1px solid var(--line); max-width: var(--measure); display: grid; gap: 12px; }
.share-block h2 { font-size: 15px; font-weight: 800; }

/* Featured image */
.article-image { margin: clamp(20px, 3vw, 32px) auto 0; max-width: 54rem; }
.article-image img { width: 100%; border-radius: var(--r-lg); background: var(--paper-3); }
.article-image--graphic img { border-radius: var(--r); background: #fff; }
.article-image__open { display: block; cursor: zoom-in; }
.article-image__hint { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.article-image__hint a { text-decoration: underline; }

/* Body copy */
.article-body {
  max-width: var(--measure); margin: clamp(22px, 3vw, 36px) auto 0;
  font-family: var(--serif); font-size: clamp(17.5px, 1.3vw, 19.5px); line-height: 1.72; color: var(--body);
  overflow-wrap: break-word;
}
.article-body > :first-child { margin-top: 0; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote, .article-body figure { margin: 0 0 1.3em; }
.article-body p { text-wrap: pretty; }
.article-body > p:first-of-type::first-letter { float: left; font-size: 3.6em; line-height: .78; padding: .08em .1em 0 0; font-weight: 800; color: var(--ink); font-family: var(--sans); }
.article-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--green-ink); text-decoration-thickness: 2px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: .35em; }
.article-body li::marker { color: var(--green); font-weight: 700; }
.article-body h2, .article-body h3, .article-body h4 { font-family: var(--sans); color: var(--ink); scroll-margin-top: calc(var(--header-h) + 16px); }
.article-body h2 { font-size: 1.5em; font-weight: 900; letter-spacing: -.025em; margin: 1.6em 0 .5em; }
.article-body h3 { font-size: 1.2em; font-weight: 800; margin: 1.5em 0 .45em; }
.article-body h4 { font-size: 1em; font-weight: 800; margin: 1.4em 0 .4em; }
.article-body blockquote {
  margin: 1.6em 0; padding: .2em 0 .2em 1.1em; border-left: 4px solid var(--green);
  font-size: 1.12em; line-height: 1.5; color: var(--ink); font-style: italic;
}
.article-body blockquote p:last-child { margin: 0; }
.article-body img, .article-body video { max-width: 100%; height: auto; border-radius: var(--r); }
.article-body iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: var(--paper-2); }
.article-body figure.story-inline-image { margin: 1.6em 0; }
.article-body figure.story-inline-image img { width: 100%; }
.article-body .story-image-link { display: block; cursor: zoom-in; }
.article-body figcaption { margin-top: 8px; font-family: var(--sans); font-size: 13px; color: var(--muted); line-height: 1.45; }
.article-body .figure-zoom-hint { display: inline-block; margin-left: .35em; white-space: nowrap; }
.article-body .story-embed { margin: 1.7em 0; font-family: var(--sans); }
.story-embed iframe { display: block; width: 100%; min-height: 320px; border: 0; }
.story-embed--youtube iframe, .story-embed--vimeo iframe, .story-embed--maps iframe { aspect-ratio: 16 / 9; }
.story-embed--twitter iframe, .story-embed--instagram iframe, .story-embed--tiktok iframe { min-height: 560px; aspect-ratio: auto; }
.story-embed--spotify iframe { min-height: 180px; aspect-ratio: auto; }
.story-link-card { margin: 1.5em 0; font-family: var(--sans); }
.story-link-card a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); color: var(--ink); text-decoration: none; }
.story-link-card a:hover { border-color: var(--green); }
.story-link-card span { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.story-link-card strong { font-size: 17px; }
.story-link-card small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.article-body .editorial-scope, .article-body .record-check {
  margin: 1.5em 0; padding: 16px 18px; border-left: 4px solid var(--green); border-radius: 0 var(--r) var(--r) 0;
  background: var(--green-tint); font-family: var(--sans); font-size: 15px; line-height: 1.6;
}
.article-body .record-check h3 { margin-top: 0; } .article-body .record-check :last-child { margin-bottom: 0; }
.article-body .reporting-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 1.5em 0; padding: 0; list-style: none; font-family: var(--sans); }
.article-body .reporting-timeline li { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); font-size: 14px; line-height: 1.5; }
.article-body .reporting-timeline p { margin-bottom: .55em; } .article-body .reporting-timeline p:last-child { margin: 0; }
.article-body table { display: block; width: 100%; margin: 1.6em 0; overflow-x: auto; border-collapse: collapse; font-family: var(--sans); font-size: 14px; line-height: 1.45; }
.article-body th, .article-body td { min-width: 120px; padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { background: var(--paper-2); color: var(--ink); font-weight: 800; }
.article-body mark { background: var(--sun); color: #111; padding: 0 .15em; border-radius: 2px; }
.article-body hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.article-body pre, .article-body code { font-family: var(--mono); font-size: .88em; }
.article-body pre { padding: 16px; overflow: auto; background: var(--paper-2); border-radius: var(--r); }
.page-copy .article-body > p:first-of-type::first-letter { float: none; font-size: inherit; padding: 0; font-weight: inherit; color: inherit; font-family: inherit; line-height: inherit; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: var(--measure); margin: clamp(24px, 3vw, 36px) auto 0; }
.article-tags a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--paper-2); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.article-tags a:hover { background: var(--ink); color: var(--paper); }

.author-card { display: flex; gap: 16px; align-items: flex-start; max-width: var(--measure); margin: clamp(22px, 3vw, 32px) auto 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2); }
.author-card img, .author-card .byline-avatar-fallback { width: 56px; height: 56px; border-radius: 50%; flex: none; font-size: 20px; }
.author-card strong { display: block; font-size: 16px; color: var(--ink); }
.author-card p { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.author-card a.more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--green); }

.related-band { margin-top: clamp(36px, 5vw, 64px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(48px, 7vw, 96px); background: #0d0d0f; color: #b9b9c0; }
:root[data-theme="dark"] .site-footer { background: #050506; }
.footer-inner { display: grid; gap: 32px; padding: clamp(36px, 5vw, 64px) 0 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand .wordmark { color: #fff; font-size: 34px; }
.footer-brand p { margin-top: 12px; max-width: 42ch; font-size: 14.5px; line-height: 1.6; }
.footer-col h4 { margin: 0 0 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { font-size: 14.5px; color: #b9b9c0; }
.footer-col a:hover { color: var(--mint); }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgb(255 255 255 / .08); color: #fff; }
.footer-social a:hover { background: var(--mint); color: #000; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 18px 0 28px; border-top: 1px solid rgb(255 255 255 / .1); font-size: 13px; color: #8a8a93; }
.footer-bottom a { color: #b9b9c0; font-weight: 600; } .footer-bottom a:hover { color: var(--mint); }
.to-top { display: inline-flex; align-items: center; gap: 6px; }
.to-top svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 899px) {
  .topbar .topbar-tagline { display: none; }
  .brand-row { padding-top: 12px; }
}
@media (max-width: 640px) {
  .article-card { grid-template-columns: 1fr; }
  .article-card.has-image { grid-template-columns: 112px 1fr; grid-template-rows: none; gap: 14px; align-items: start; }
  .article-card.has-image .media img { aspect-ratio: 1; }
  .article-card.has-image h3 { font-size: 16px; }
  .article-card.has-image .card-excerpt { display: none; }
  .fresh-card .media img { aspect-ratio: 16 / 9; }
}

@media print {
  .site-header, .site-footer, .share-row, .share-block, .ad-placement, .desktop-ad-rail, .progress, .related-band, .load-more { display: none !important; }
  .article-body { max-width: none; font-size: 12pt; }
}

/* ============================================================
   KanairoCity identity — Nairobi street desk
   A compact masthead, warm city palette and reading-first cards.
   ============================================================ */
:root {
  --paper: #fbfaf3;
  --paper-2: #f1f3e6;
  --paper-3: #e3e8d5;
  --ink: #10291e;
  --ink-2: #294336;
  --body: #34493e;
  --muted: #6a766e;
  --muted-2: #96a098;
  --line: #d9dfcf;
  --line-strong: #bdc9b8;
  --green: #0b683d;
  --green-ink: #034c2b;
  --green-tint: #e2f0df;
  --mint: #74b62c;
  --hot: #e8b62d;
  --hot-tint: #fff3bf;
  --sun: #f8c12c;
  --navy: #06472d;
  --navy-2: #033822;
  --wrap: 1240px;
  --r: 8px;
  --r-lg: 20px;
}
:root[data-theme="dark"] {
  --paper: #0d1c15;
  --paper-2: #14271d;
  --paper-3: #20362a;
  --ink: #fbfaf3;
  --ink-2: #e3ebdf;
  --body: #d5ded4;
  --muted: #a5aaa8;
  --muted-2: #707b80;
  --line: #294035;
  --line-strong: #3e594b;
  --green: #7dcf75;
  --green-ink: #a7e4a1;
  --green-tint: #193a26;
  --navy: #042a1a;
  --navy-2: #021f13;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1c15;
    --paper-2: #14271d;
    --paper-3: #20362a;
    --ink: #fbfaf3;
    --ink-2: #e3ebdf;
    --body: #d5ded4;
    --muted: #a5aaa8;
    --muted-2: #707b80;
    --line: #294035;
    --line-strong: #3e594b;
    --green: #7dcf75;
    --green-ink: #a7e4a1;
    --green-tint: #193a26;
    --navy: #042a1a;
    --navy-2: #021f13;
  }
}

body { background-image: linear-gradient(90deg, transparent 0, rgb(6 71 45 / .022) 50%, transparent 100%); }
h1, h2, h3 { letter-spacing: -.025em; }
.kicker, .label { color: var(--green); letter-spacing: .13em; }

/* Compact, left-anchored identity */
.site-header { background: var(--navy); color: #f7f2e9; }
.masthead { background: var(--navy); }
.masthead-inner { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.brand-lockup:hover { color: #fff; }
.brand-mark {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 14px 14px 14px 4px; background: var(--sun); color: var(--navy);
  font-size: 18px; font-weight: 950; letter-spacing: -.08em; box-shadow: 0 8px 24px rgb(0 0 0 / .22);
}
.brand-copy { display: grid; gap: 4px; }
.brand-copy .wordmark { display: block; color: #fff; font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.045em; }
.brand-copy .wordmark b { color: var(--sun); font-weight: 800; }
.brand-tagline { color: #b9d3c2; font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.masthead-tools { display: flex; align-items: center; gap: 8px; color: #c8d8ce; }
.masthead-tools time { margin-right: 10px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.masthead-tools .account-link, .masthead-tools .icon-btn { color: #fff; }
.masthead-tools .account-link:hover, .masthead-tools .icon-btn:hover { background: rgb(255 255 255 / .1); color: var(--sun); }

.navbar { top: 0; background: var(--navy-2); border: 0; border-top: 1px solid rgb(255 255 255 / .08); box-shadow: 0 1px 0 rgb(0 0 0 / .18); backdrop-filter: none; }
.navbar-inner { height: 50px; }
.nav-label { flex: none; padding-right: 15px; border-right: 1px solid rgb(255 255 255 / .15); color: var(--sun); font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.nav-links { mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); }
.nav-links a { padding: 7px 13px; color: #ced7db; font-size: 13px; }
.nav-links a:hover { background: rgb(255 255 255 / .08); color: #fff; }
.nav-links a[aria-current="page"] { background: var(--green); color: #fff; }
.navbar .icon-btn { color: #fff; }
.navbar .icon-btn:hover { background: rgb(255 255 255 / .1); color: var(--sun); }

/* Home: bold city desk rather than a newspaper clone */
.home { gap: clamp(38px, 5vw, 68px); padding-top: clamp(24px, 4vw, 46px); }
.hero {
  position: relative; overflow: hidden;
  padding: clamp(24px, 4vw, 48px); border-radius: 26px 26px 26px 8px;
  background:
    linear-gradient(138deg, transparent 0 78%, rgb(248 193 44 / .15) 78% 84%, transparent 84%),
    linear-gradient(148deg, transparent 0 84%, rgb(116 182 44 / .2) 84% 91%, transparent 91%),
    var(--navy);
  color: #e3eee7; box-shadow: 0 24px 60px rgb(6 71 45 / .16);
}
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.75fr) minmax(300px, .8fr); gap: clamp(32px, 5vw, 64px); } }
.hero-label { display: flex; align-items: center; gap: 9px; color: var(--sun); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero-label span { width: 32px; height: 3px; background: var(--green); }
.lead { align-content: start; gap: 16px; }
.lead .media { border-radius: 14px 14px 14px 4px; }
.lead h1 { max-width: 17ch; font-family: var(--serif); font-size: clamp(38px, 5.2vw, 68px); font-weight: 800; line-height: .98; letter-spacing: -.045em; }
.lead h1, .lead h1 a { color: #fff; }
.lead h1 a:hover { color: var(--sun); }
.lead .dek { max-width: 62ch; color: #cbded1; font-size: clamp(16px, 1.5vw, 20px); }
.hero .meta, .hero .meta b { color: #b8cebf; }
.hero .kicker { color: var(--sun); }
.rail { padding: 22px; border-radius: 16px 16px 16px 5px; background: rgb(255 255 255 / .065); }
.rail h2 { color: #fff; border-bottom-color: rgb(255 255 255 / .24); }
.rail h2::before { border-radius: 2px; background: var(--sun); animation: none; }
.rail li { border-bottom-color: rgb(255 255 255 / .12); }
.rail li::before { color: rgb(255 255 255 / .24); font-family: var(--serif); }
.rail h3, .rail h3 a { color: #fff; }
.rail h3 a:hover, .rail-more:hover { color: var(--sun); }
.rail-more { color: #fff; }

.section-head { align-items: end; margin-bottom: 22px; padding: 0 0 12px; border-bottom: 1px solid var(--line-strong); }
.section-head h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.section-head h2::before { width: 28px; height: 5px; margin-right: 10px; border-radius: 0; transform: translateY(-4px); background: var(--green); }
.fresh { padding: clamp(24px, 4vw, 40px); border: 1px solid color-mix(in srgb, var(--mint) 52%, var(--line)); border-radius: 22px 22px 22px 7px; background: linear-gradient(135deg, color-mix(in srgb, var(--sun) 18%, var(--paper)), color-mix(in srgb, var(--green-tint) 72%, var(--paper))); }
.fresh-grid { gap: 14px; }
.fresh-card { padding: 20px; border: 1px solid rgb(6 71 45 / .11); border-radius: 14px 14px 14px 4px; background: color-mix(in srgb, var(--paper) 92%, transparent); box-shadow: 0 8px 24px rgb(6 71 45 / .06); }
.fresh-card h3 { font-family: var(--serif); font-size: 21px; }

.latest .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.article-card {
  position: relative; gap: 0; padding: 18px; border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px; background: color-mix(in srgb, var(--paper) 94%, #fff);
  transition: transform var(--med), border-color var(--med), box-shadow var(--med);
}
.article-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--green) 45%, var(--line)); box-shadow: 0 14px 32px rgb(6 71 45 / .1); }
.article-card.has-image { grid-template-columns: minmax(145px, 35%) 1fr; grid-template-rows: auto; gap: 18px; align-items: start; }
.article-card .media { border-radius: 10px 10px 10px 3px; }
.article-card .media img { aspect-ratio: 4 / 3; }
.article-card .card-body { gap: 9px; }
.article-card h3 { font-family: var(--serif); font-size: clamp(20px, 2vw, 25px); line-height: 1.12; }
.article-card.no-image .card-body { padding: 0 0 0 16px; border: 0; border-left: 4px solid var(--green); }
.card-excerpt { color: var(--muted); -webkit-line-clamp: 2; }

/* Reading pages */
.article-page { padding-top: clamp(34px, 6vw, 76px); }
.article-header { max-width: 62rem; gap: 18px; }
.article-header::before { content: "KANAIRO CITY DESK"; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.article-header h1 { max-width: 19ch; font-family: var(--serif); font-size: clamp(40px, 6.2vw, 76px); font-weight: 800; line-height: .99; letter-spacing: -.045em; }
.article-dek { max-width: 50rem; font-size: clamp(18px, 1.7vw, 23px); color: var(--ink-2); }
.byline { margin-top: 4px; padding: 16px 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.byline-avatar-fallback { border-radius: 12px 12px 12px 3px; background: var(--green); color: #fff; }
.article-image { max-width: 62rem; }
.article-image img { border-radius: 18px 18px 18px 5px; }
.article-body { max-width: 43rem; font-size: clamp(18px, 1.35vw, 20px); line-height: 1.78; }
.article-body > p:first-of-type::first-letter { color: var(--green); font-family: var(--serif); }
.article-body .jnews_inline_related_post_wrapper, .article-body .jeg_share_button,
.article-body .jp-relatedposts, .article-body .yarpp-related, .article-body .related-posts { display: none !important; }
.article-body .story-media-unavailable {
  margin: 1.5em 0; padding: 12px 0 0; border-top: 2px solid var(--sun);
  font-family: var(--sans); color: var(--muted);
}
.article-body .story-media-unavailable::before {
  content: "Archive image unavailable"; display: block; margin-bottom: 3px;
  color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase;
}
.article-body .story-media-unavailable img { display: none; }
.article-body .story-media-unavailable figcaption { margin: 0; }

.related-band { margin-top: clamp(44px, 7vw, 88px); padding: clamp(26px, 4vw, 42px); border: 0; border-radius: 22px 22px 22px 7px; background: var(--navy); color: #d3dde1; }
.related-intro > .label { color: var(--sun); }
.related-band .section-head { border-color: rgb(255 255 255 / .18); }
.related-band .section-head h2 { color: #fff; }
.related-band .section-head a { color: #c3d0d5; }
.related-band .section-head a:hover { color: var(--sun); }
.related-band .article-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: related; }
.related-band .article-card { counter-increment: related; padding: 16px; border-color: rgb(255 255 255 / .12); background: rgb(255 255 255 / .06); box-shadow: none; }
.related-band .article-card::before { content: "0" counter(related); color: var(--sun); font: 800 13px/1 var(--mono); }
.related-band .article-card.no-image .card-body { padding: 12px 0 0; border: 0; }
.related-band .article-card h3, .related-band .article-card h3 a { color: #fff; font-size: 18px; }
.related-band .article-card .meta, .related-band .article-card .kicker { color: #aebdc3; }

.site-footer { background: var(--navy); }
.footer-brand .wordmark { display: block; font-family: var(--serif); letter-spacing: -.04em; }
.footer-brand .wordmark b { color: var(--sun); }

@media (max-width: 899px) {
  .masthead-inner { min-height: 76px; }
  .masthead-tools time { display: none; }
  .hero { border-radius: 18px 18px 18px 6px; }
  .latest .article-grid { grid-template-columns: 1fr; }
  .related-band .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .masthead-inner { gap: 10px; min-height: 70px; }
  .brand-lockup { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 11px 11px 11px 3px; font-size: 15px; }
  .brand-copy .wordmark { font-size: 24px; }
  .brand-tagline { display: none; }
  .masthead-tools .account-link { width: 36px; padding: 0; justify-content: center; }
  .masthead-tools .account-link span { display: none; }
  .nav-label { display: none; }
  .navbar-inner { height: 48px; }
  .nav-links a { padding-inline: 10px; }
  .home { gap: 34px; padding-top: 18px; }
  .hero { margin-inline: calc(var(--gutter) * -.35); padding: 24px 20px; gap: 28px; }
  .lead h1 { font-size: clamp(36px, 11vw, 50px); }
  .rail { padding: 18px; }
  .fresh { padding: 20px 16px; }
  .fresh-grid { grid-template-columns: 1fr; }
  .fresh-card { padding: 17px; }
  .section-head { align-items: start; }
  .section-head span { max-width: 14ch; text-align: right; }
  .article-card, .article-card.has-image { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .article-card.has-image .media img { aspect-ratio: 16 / 9; }
  .article-card.has-image h3, .article-card h3 { font-size: 22px; }
  .article-header h1 { font-size: clamp(38px, 12vw, 56px); }
  .byline { align-items: flex-start; }
  .related-band { margin-inline: calc(var(--gutter) * -.35); padding: 24px 18px; }
  .related-band .article-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .related-band .article-card { flex: 0 0 78%; scroll-snap-align: start; }
}
