
/* ============================================================
   TOKENS
============================================================ */
:root {
  --ink: #0D1117;
  --ink-2: #363E4B;
  --ink-3: #6A7382;
  --ink-4: #9BA3AF;
  --line: #E6E9EE;
  --line-2: #F1F3F6;
  --paper: #FFFFFF;
  --paper-2: #F8F9FA;
  --paper-3: #F3F5F4;
  --accent: #0E5C52;
  --accent-2: #0A4740;
  --accent-soft: #EAF2F0;
  --danger: #A31621;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;

  --shadow-s: 0 1px 2px rgba(13,17,23,.05);
  --shadow-m: 0 1px 2px rgba(13,17,23,.04), 0 12px 30px -16px rgba(13,17,23,.20);
  --shadow-l: 0 2px 6px rgba(13,17,23,.05), 0 30px 70px -30px rgba(13,17,23,.30);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --container: 1080px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: #CDE3DF; color: var(--ink); }

img, svg { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2, h3, h4 { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), calc(100% - 44px));
  margin-inline: auto;
}

.icon { flex: none; }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #16453F 0%, #0A4740 55%, #0E5C52 100%);
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), 0 2px 6px rgba(10,71,64,.28);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.14; }

.brand-name {
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -.012em;
}

.brand-sub {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: 12px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.nav a:hover { background: var(--paper-3); color: var(--ink); }

.nav a.is-active { background: var(--accent-soft); color: var(--accent-2); }

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  min-width: 200px;
}

.search-form-icon {
  position: absolute;
  left: 12px;
  color: var(--ink-4);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.search-form input {
  width: 100%;
  padding: 9px 14px 9px 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.search-form input::placeholder { color: var(--ink-4); }

.search-form input:focus {
  outline: none;
  background: var(--paper);
  border-color: #C6D6D3;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-s);
}

.btn-primary:hover {
  background: #05080C;
  transform: translateY(-1px);
  box-shadow: var(--shadow-m);
}

.btn-ghost {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: #CFD6DD;
  background: var(--paper-2);
  transform: translateY(-1px);
}

.btn-sm { padding: 8px 13px; font-size: 13.5px; border-radius: 10px; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8C1019; }

.btn-block { width: 100%; }

/* ============================================================
   TYPOGRAPHY HELPERS
============================================================ */
.kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.display,
.page-title,
.article-title,
.section-head h2,
.about h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
}

.display { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; margin: 0 0 22px; }
.display em { font-style: italic; color: var(--accent); }

.page-title { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.12; margin: 0 0 16px; }

.page-lead {
  margin: 0;
  max-width: 660px;
  font-size: 18px;
  line-height: 1.68;
  color: var(--ink-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 6px 14px 6px 11px;
  border: 1px solid #D9E6E3;
  border-radius: 999px;
  background: rgba(234,242,240,.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,92,82,.16);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.chip--accent {
  background: var(--accent-soft);
  border-color: #CFE1DD;
  color: var(--accent-2);
}

.chip--accent:hover { background: #DDEBE8; }

.chip--muted { background: var(--paper-2); }

/* ============================================================
   BREADCRUMB
============================================================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 34px 0 0;
  font-size: 13px;
  color: var(--ink-4);
}

.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--accent); }
.crumb-sep { color: #CFD6DD; }
.crumb-current {
  max-width: 42ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
}

/* ============================================================
   LAYOUT BLOCKS
============================================================ */
.page-head { padding: 40px 0 56px; max-width: 780px; }

.page-head--center {
  padding: 120px 0 140px;
  margin-inline: auto;
  text-align: center;
}

.page-head--center .page-lead { margin-inline: auto; }

.section { margin-bottom: 84px; }

.section--tight { margin-bottom: 70px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 { margin: 0; font-size: clamp(24px, 2.9vw, 32px); }

.section-head .kicker { margin-bottom: 8px; }

.section-note {
  margin: 0;
  font-size: 14px;
  color: var(--ink-4);
  white-space: nowrap;
}

.section-note--left { white-space: normal; margin-bottom: 18px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.link-more:hover { gap: 11px; }
.link-more .icon { transition: transform .2s ease; }
.link-more:hover .icon { transform: translateX(2px); }

.back-row { padding: 40px 0 80px; }

.panel {
  padding: 34px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 130% at 0% 0%, #F4F8F7 0%, rgba(255,255,255,0) 58%),
    linear-gradient(180deg, #FCFDFD 0%, #F7F9F9 100%);
  box-shadow: var(--shadow-s);
}

/* ============================================================
   CARDS
============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}

.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.topic-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  border-color: #D5DBE2;
  box-shadow: var(--shadow-m);
}

.topic-glyph {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}

.topic-name {
  display: block;
  margin-bottom: 9px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.012em;
  color: var(--ink);
}

.topic-text {
  display: block;
  margin-bottom: 20px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-3);
}

.topic-go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .02em;
  color: var(--accent);
}

.topic-card:hover .topic-go .icon { transform: translateX(2px); }
.topic-go .icon { transition: transform .2s ease; }

/* ============================================================
   FEED
============================================================ */
.feed { border-top: 1px solid var(--line); }

.feed-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 26px 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .18s ease, padding .18s ease;
}

.feed-item:hover { background: #FCFDFD; }

.feed-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
}

.feed-date { font-size: 13px; color: var(--ink-4); }

.feed-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--ink);
}

.feed-item:hover .feed-title { color: var(--accent-2); }

.feed-text {
  margin: 8px 0 0;
  max-width: 70ch;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-3);
}

.feed-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-4);
  transition: all .2s ease;
}

.feed-item:hover .feed-arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateX(3px);
}

/* ============================================================
   ARTICLE / SEARCH LISTS
============================================================ */
.list { border-top: 1px solid var(--line); }

.list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .18s ease;
}

.list-item:hover { background: #FCFDFD; }

.list-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.list-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -.015em;
  color: var(--ink);
}

.list-item:hover .list-title { color: var(--accent-2); }

.list-text {
  margin: 8px 0 0;
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-3);
}

.list-date { font-size: 13px; color: var(--ink-4); }

.list-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-4);
  transition: all .2s ease;
}

.list-item:hover .list-arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateX(3px);
}

/* ============================================================
   FILTERS
============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all .18s ease;
}

.filter-chip:hover { border-color: #CFD6DD; background: var(--paper-2); }

.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ============================================================
   EMPTY STATE
============================================================ */
.empty-state {
  padding: 56px 32px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  text-align: center;
}

.empty-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
}

.empty-text { margin: 0; font-size: 14.5px; color: var(--ink-3); }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  margin-top: 96px;
  padding: 64px 0 30px;
  background: #0B1015;
  color: #97A2B1;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.01em;
}

.footer-tagline {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6E7A8A;
}

.footer-note {
  margin: 0;
  max-width: 42ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: #7E8A99;
}

.footer-col h3 {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}

.footer-col ul { margin: 0 0 16px; padding: 0; list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a { color: #AEB9C6; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: 12.5px;
  color: #6E7A8A;
}

.footer-bottom a { color: #AEB9C6; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; row-gap: 10px; padding: 13px 0; min-height: 0; }
  .site-header { position: static; }
  .brand-sub { display: none; }
  .search-form { min-width: 0; width: 170px; }
  .nav {
    order: 3;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { background: var(--paper-2); }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }

  .page-head { padding: 28px 0 40px; }
  .section { margin-bottom: 62px; }
  .panel { padding: 24px 20px; }

  .card-grid, .card-grid--three { grid-template-columns: 1fr; }

  .feed-item, .list-item { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .feed-arrow, .list-arrow { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .site-footer { padding-top: 48px; margin-top: 68px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}


/* ============================================================
   HIGHLIGHT / PAGINATION / MISC
============================================================ */
mark.hl {
  padding: 0 2px;
  border-radius: 3px;
  background: #FFF1C9;
  color: var(--ink);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all .18s ease;
}

.page-link:hover { border-color: #CFD6DD; background: var(--paper-2); color: var(--ink); }

.page-link.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 600;
}

.page-link.is-disabled {
  opacity: .4;
  pointer-events: none;
}

.page-gap {
  padding: 0 4px;
  color: var(--ink-4);
}

.page-summary {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ink-4);
}

@media print {
  .site-header, .site-footer, .toc, .prevnext, .progress, .search-form { display: none !important; }
  .article-layout { display: block; }
  .prose { max-width: none; font-size: 11.5pt; }
  body { color: #000; }
}


/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  padding: 96px 0 78px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 50% 0%, #000 0%, transparent 74%);
  mask-image: radial-gradient(ellipse 78% 68% at 50% 0%, #000 0%, transparent 74%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -260px;
  width: 900px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(14,92,82,.10) 0%, rgba(14,92,82,0) 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero .lead {
  margin: 0;
  max-width: 620px;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.66;
  color: var(--ink-3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions--center { justify-content: center; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 56px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.stat {
  padding-right: 40px;
  margin-right: 40px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.stat dt {
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.stat dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

.stat-date { font-size: 22px !important; padding-top: 5px; }

/* ============================================================
   START HERE
============================================================ */
.start-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 46px;
}

.start-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.start-num {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-4);
  transition: color .2s ease;
}

.start-label { font-size: 15.5px; font-weight: 500; line-height: 1.4; }

.start-arrow {
  display: grid;
  place-items: center;
  color: transparent;
  transform: translateX(-6px);
  transition: all .2s ease;
}

.start-link:hover .start-num { color: var(--accent); }
.start-link:hover .start-label { color: var(--accent-2); }
.start-link:hover .start-arrow { color: var(--accent); transform: translateX(0); }

/* ============================================================
   ABOUT
============================================================ */
.about {
  margin-top: 96px;
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.about h2 { margin: 0; font-size: clamp(24px, 2.9vw, 32px); }

.about-body p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}

.about-note {
  padding-left: 20px;
  border-left: 2px solid #CFE1DD;
  font-size: 15px !important;
  color: var(--ink-3) !important;
}

@media (max-width: 880px) {
  .hero { padding: 62px 0 54px; }
  .stats { margin-top: 42px; }
  .stat { padding-right: 26px; margin-right: 26px; }
  .stat dd { font-size: 26px; }
  .start-list { grid-template-columns: 1fr; gap: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
}


/* ============================================================
   TOPIC HUB
============================================================ */
.page-head .kicker { margin-bottom: 14px; }

.section .card-grid { margin-bottom: 0; }

@media (max-width: 720px) {
  .breadcrumb { padding-top: 22px; }
}


/* ============================================================
   READING PROGRESS
============================================================ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent) 0%, #2E8C7E 60%, #7FBFAF 100%);
}

/* ============================================================
   ARTICLE LAYOUT
============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 40px;
}

.article { padding-top: 0; }

.article-head { padding-bottom: 40px; border-bottom: 1px solid var(--line); }

.article-title {
  margin: 18px 0 20px;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.article-lead {
  margin: 0;
  max-width: 66ch;
  font-size: 19px;
  line-height: 1.66;
  color: var(--ink-3);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--ink-4);
}

.meta-item { display: inline-flex; align-items: center; gap: 7px; }

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #CFD6DD;
}

/* ============================================================
   PROSE
============================================================ */
.prose {
  max-width: 72ch;
  padding-top: 44px;
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--ink-2);
}

.prose > *:first-child { margin-top: 0; }

.prose h1,
.prose h2 {
  margin: 56px 0 16px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -.018em;
  color: var(--ink);
  scroll-margin-top: 96px;
}

.prose h1 { font-size: clamp(26px, 2.8vw, 32px); }

.prose h3 {
  margin: 38px 0 12px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.01em;
  color: var(--ink);
  scroll-margin-top: 96px;
}

.prose p { margin: 0 0 20px; }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #BFD9D5;
  text-underline-offset: 3px;
  transition: text-decoration-color .18s ease, color .18s ease;
}

.prose a:hover { color: var(--accent-2); text-decoration-color: var(--accent); }

.prose strong { color: var(--ink); font-weight: 650; }
.prose em { font-style: italic; }

.prose ul,
.prose ol { margin: 0 0 22px; padding-left: 22px; }

.prose li { margin: 9px 0; padding-left: 4px; }

.prose ul li::marker { color: var(--accent); }
.prose ol li::marker { color: var(--ink-4); font-weight: 600; }

.prose blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  font-style: italic;
  color: var(--ink-2);
}

.prose table {
  width: 100%;
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.55;
}

.prose thead th {
  padding: 13px 16px;
  background: #F6F8F8;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-3);
}

.prose tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}

.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: #FCFDFD; }

.prose pre {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: #0D1117;
  color: #E3E7EE;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
}

.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

.prose code {
  padding: .16em .42em;
  border-radius: 6px;
  background: var(--paper-3);
  font-family: var(--mono);
  font-size: .88em;
  color: #1F2937;
}

.prose hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose img { border-radius: var(--radius); }

/* ============================================================
   TABLE OF CONTENTS
============================================================ */
.toc {
  position: sticky;
  top: 96px;
  display: none;
  padding-top: 4px;
  font-size: 14px;
}

.toc-title {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.toc ul { margin: 0; padding: 0; list-style: none; }

.toc li { margin-bottom: 2px; }

.toc a {
  display: block;
  padding: 5px 0 5px 13px;
  border-left: 2px solid var(--line);
  color: var(--ink-3);
  line-height: 1.45;
  transition: color .18s ease, border-color .18s ease;
}

.toc a:hover { color: var(--ink); }

.toc-item--h3 a { padding-left: 26px; font-size: 13px; }

.toc a.is-active {
  border-left-color: var(--accent);
  color: var(--accent-2);
  font-weight: 600;
}

@media (min-width: 1100px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 232px;
    gap: 64px;
    align-items: start;
  }

  .toc { display: block; }
}

/* ============================================================
   PREV / NEXT
============================================================ */
.prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.prevnext-item {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  transition: all .2s ease;
}

.prevnext-item:hover {
  border-color: #D5DBE2;
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
}

.prevnext-item--next { text-align: right; align-items: flex-end; }
.prevnext-item--empty { border: 0; background: none; pointer-events: none; }

.prevnext-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.prevnext-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.prevnext-item:hover .prevnext-title { color: var(--accent-2); }

@media (max-width: 720px) {
  .prose { font-size: 17px; }
  .prose table { font-size: 14px; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext-item--next { text-align: left; align-items: flex-start; }
  .prevnext-item--empty { display: none; }
}


.search-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 680px;
  margin-top: 30px;
  padding: 7px 7px 7px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-s);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.search-hero:focus-within {
  border-color: #C6D6D3;
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-s);
}

.search-hero-icon {
  display: grid;
  place-items: center;
  padding-left: 18px;
  color: var(--ink-4);
}

.search-hero input {
  flex: 1;
  min-width: 0;
  padding: 13px 4px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}

.search-hero input:focus { outline: none; }
.search-hero input::placeholder { color: var(--ink-4); }

.page-head--search { padding-bottom: 44px; }

.list--search .list-item { padding: 26px 6px; }

@media (max-width: 720px) {
  .search-hero { flex-wrap: wrap; padding: 12px; }
  .search-hero-icon { padding-left: 4px; }
  .search-hero input { flex: 1 1 100%; padding: 8px 4px; }
  .search-hero .btn { width: 100%; }
}
