

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  --navy: #0f1b2d;
  --navy-light: #1a2942;
  --slate: #2c3e57;
  --copper: #c45e2c;
  --copper-light: #e8794a;
  --copper-glow: rgba(196, 94, 44, 0.15);
  --sand: #f5f0e8;
  --sand-light: #faf7f2;
  --white: #ffffff;
  --gray-100: #f7f8fa;
  --gray-200: #e9ecf0;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --red: #dc2626;
  --red-light: #fef2f2;
  --green: #059669;
  --green-light: #e9f7f1;
  --amber: #a16207;
  --amber-light: #fdf3d8;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-body);
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --container: 1140px;
  --radius: 8px;
  --radius-lg: 16px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 4px 24px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 27, 45, 0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--sand-light);
}
img { max-width: 100%; }
a { color: var(--copper); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15, 27, 45, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.nav-brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  color: #fff; letter-spacing: -0.01em; white-space: nowrap;
}
.nav-brand span { color: var(--copper-light); }
.nav-brand:hover { text-decoration: none; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin-left: auto;
}
.nav-links a, .nav-drop-btn {
  display: block; padding: 8px 13px;
  color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; font-weight: 500;
  border-radius: var(--radius);
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-links a:hover, .nav-drop-btn:hover,
.nav-links a.active, .nav-drop.open > .nav-drop-btn {
  color: #fff; background: rgba(255, 255, 255, 0.07); text-decoration: none;
}
.nav-drop { position: relative; }
.nav-drop-btn::after {
  content: ''; display: inline-block; margin-left: 7px;
  width: 7px; height: 7px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s var(--ease);
}
.nav-drop.open > .nav-drop-btn::after { transform: rotate(-135deg) translateY(-2px); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: var(--navy-light); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius); padding: 6px;
  box-shadow: var(--shadow-lg);
  display: none;
}
.nav-drop.open > .nav-drop-menu { display: block; }
@media (hover: hover) and (min-width: 901px) {
  
  .nav-drop-menu::before {
    content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
  }
}
.nav-drop-menu a {
  padding: 9px 13px; border-radius: 6px; font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}
.nav-drop-menu a:hover, .nav-drop-menu a.active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-cta { margin-left: 8px; }

.nav-links .nav-cta a { background: var(--copper); color: #fff; font-weight: 600; padding: 9px 18px; }
.nav-links .nav-cta a:hover { background: var(--copper-light); color: #fff; box-shadow: 0 6px 20px var(--copper-glow); }

.btn {
  display: inline-block; padding: 10px 22px;
  font-family: var(--font-body); font-size: 0.93rem; font-weight: 600;
  border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-light); box-shadow: 0 6px 20px var(--copper-glow); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--slate); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff;
  margin: 5px 0; border-radius: 2px; transition: 0.25s var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.event-alert {
  display: block;
  background: linear-gradient(90deg, var(--navy-light), var(--slate));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 0;
}
.event-alert:hover { text-decoration: none; background: linear-gradient(90deg, var(--slate), var(--navy-light)); }
.event-alert .wrap { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.event-alert strong { color: #fff; }
.event-alert .cta {
  margin-left: auto; color: var(--copper-light); font-weight: 600; white-space: nowrap;
}
.pulse-dot {
  flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--copper-light);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 121, 74, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(232, 121, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 121, 74, 0); }
}

.hero {
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: calc(var(--nav-h) + 40px) 0 72px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(196, 94, 44, 0.13) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(44, 62, 87, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(196, 94, 44, 0.05) 0%, transparent 40%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center; }
.hero-kicker {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-light);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05;
  letter-spacing: -0.03em; color: #fff; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--copper-light); }
.hero-sub { font-size: 1.12rem; line-height: 1.6; max-width: 56ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stat .n {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: #fff; line-height: 1.1;
}
.hero-stat .n.accent { color: var(--copper-light); }
.hero-stat .l {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-top: 5px;
}
.hero-aside { display: grid; gap: 14px; }
.hero-card {
  display: block; padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; line-height: 1.55;
  transition: all 0.2s var(--ease);
}
.hero-card:hover { text-decoration: none; border-color: var(--copper); transform: translateY(-2px); background: rgba(255, 255, 255, 0.06); }
.hero-card h3 {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 700;
  color: #fff; margin-bottom: 6px; letter-spacing: -0.01em;
}
.hero-card.featured {
  background: linear-gradient(135deg, var(--copper) 0%, #d96930 100%);
  border-color: var(--copper); color: rgba(255, 255, 255, 0.92);
}
.hero-card.featured:hover { border-color: var(--copper-light); }
.hero-card .meta { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.05em; opacity: 0.85; }

main { padding-top: var(--nav-h); }
body.is-home main { padding-top: 0; }

.section { padding: clamp(2.6rem, 6.5vw, 4.6rem) 0; }
.section.alt { background: var(--sand); }
.section.dark { background: var(--navy); color: rgba(255, 255, 255, 0.8); }
.section-kicker {
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.15;
  color: var(--navy); margin-bottom: 14px;
}
.section.dark .section-title { color: #fff; }
.lede { font-size: 1.06rem; color: var(--gray-600); max-width: 72ch; margin-bottom: 26px; }
.section.dark .lede { color: rgba(255, 255, 255, 0.72); }

.h3block {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.28rem; letter-spacing: -0.01em; color: var(--navy);
  margin: 38px 0 12px;
}
.legend { font-size: 0.88rem; color: var(--gray-600); margin: 6px 0 10px; }

.page-head { background: var(--navy); color: rgba(255, 255, 255, 0.78); padding: 44px 0 36px; }
.page-head .section-kicker { color: var(--copper-light); }
.page-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 2.7rem); letter-spacing: -0.02em; line-height: 1.12;
  color: #fff; margin-bottom: 10px;
}
.page-head .lede { color: rgba(255, 255, 255, 0.72); margin-bottom: 0; }
.page-body { padding: 40px 0 64px; }

.prose { max-width: 74ch; }
.prose p { margin: 0 0 15px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose strong { font-weight: 650; color: var(--navy); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 8px 0 26px; }
.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow);
}
.card .n { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--copper); line-height: 1.15; }
.card .l { font-size: 0.72rem; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 10px 0 28px; }
.mcard {
  display: block; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 22px; color: inherit;
  box-shadow: var(--shadow); transition: all 0.2s var(--ease);
}
a.mcard:hover { text-decoration: none; border-color: var(--copper); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.mcard-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--navy); letter-spacing: -0.01em; margin-bottom: 8px; }
.mcard-stat { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.mcard-stat .big { font-family: var(--font-mono); font-size: 1.55rem; font-weight: 700; color: var(--copper); }
.mcard-stat .unit { font-size: 0.72rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.05em; }
.mcard-sub { font-size: 0.8rem; font-weight: 600; color: var(--gray-600); margin-bottom: 10px; }
.mcard-body { font-size: 0.9rem; line-height: 1.6; }
.mcard-body p { margin: 0 0 10px; }
.mcard-body p:last-child { margin-bottom: 0; }

.evi {
  background: var(--white); border: 1px solid var(--gray-200);
  border-left: 4px solid var(--copper); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px; margin: 16px 0;
  box-shadow: var(--shadow);
}
.evi .muted { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.03em; color: var(--gray-600); }
.evi .ev-text { font-size: 0.94rem; }

.pull {
  border-left: 4px solid var(--copper); background: var(--white);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 20px 24px; margin: 22px 0;
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 600;
  line-height: 1.5; color: var(--navy); letter-spacing: -0.005em;
  box-shadow: var(--shadow);
}
.pull .attrib { display: block; margin-top: 10px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; color: var(--gray-600); }

.band {
  background: var(--navy); color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg); padding: 24px 28px; margin: 22px 0;
}
.band p { margin: 0; font-size: 0.98rem; line-height: 1.65; }
.band p + p { margin-top: 12px; }
.band strong { color: #fff; }
.band a { color: var(--copper-light); }
.srcnote {
  background: var(--amber-light); border: 1px solid #eadfb8; border-radius: var(--radius);
  padding: 14px 17px; margin: 16px 0; font-size: 0.9rem; line-height: 1.6; color: #6b5310;
}
.srcnote p { margin: 0 0 9px; } .srcnote p:last-child { margin-bottom: 0; }
.srcnote strong { color: #4d3b06; }
.balance {
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-left: 3px solid var(--gray-400); border-radius: var(--radius);
  padding: 14px 17px; margin: 16px 0; font-size: 0.9rem; line-height: 1.6; color: var(--gray-600);
}
.balance p { margin: 0 0 9px; } .balance p:last-child { margin-bottom: 0; }
.balance strong, .balance b { color: var(--gray-800); }

.tl { position: relative; margin: 14px 0 30px; padding-left: 32px; max-width: 78ch; }
.tl::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--gray-300); }
.tl-node { position: relative; margin-bottom: 26px; }
.tl-node::before {
  content: ''; position: absolute; left: -29px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--copper); border: 2.5px solid var(--sand-light);
  box-shadow: 0 0 0 2px var(--copper);
}
.tl-node.flag::before { background: var(--red); box-shadow: 0 0 0 2px var(--red); }
.tl-node.go::before { background: var(--amber); box-shadow: 0 0 0 2px var(--amber); }

.news-feed { display: flex; flex-direction: column; gap: 18px; margin: 4px 0 30px; }
.news-card {
  background: var(--white); border: 1px solid var(--gray-200); border-left: 4px solid var(--copper);
  border-radius: var(--radius-lg); padding: 22px 26px 18px; box-shadow: var(--shadow);
}
.news-kicker { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper); margin-bottom: 8px; }
.news-kicker .dpill { letter-spacing: 0; margin-left: 4px; }
.news-title { font-family: var(--font-display); font-size: 1.42rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; color: var(--navy); margin: 0 0 10px; }
.news-body { font-size: 0.97rem; line-height: 1.65; }
.news-body p { margin: 0 0 11px; }
.news-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--gray-200); padding-top: 12px; margin-top: 4px; }
.news-src { font-size: 0.82rem; font-weight: 600; color: var(--gray-600); }
.news-more { font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
@media (max-width: 600px) { .news-card { padding: 18px 18px 14px; } .news-title { font-size: 1.22rem; } }

.tl-when { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 3px; }
.tl-what { font-family: var(--font-display); font-size: 1.14rem; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); margin-bottom: 7px; }
.tl-body { font-size: 0.94rem; line-height: 1.62; }
.tl-body p { margin: 0 0 11px; }

.agenda {
  background: var(--white); border: 1px dashed var(--gray-300); border-radius: var(--radius);
  padding: 11px 14px; margin: 11px 0;
  font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.55; color: var(--gray-600);
}
.agenda b {
  display: block; font-family: var(--font-body); font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--copper); margin-bottom: 5px;
}

.dpill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap; vertical-align: middle;
}
.dpill.kept { background: var(--green-light); color: var(--green); }
.dpill.broken { background: var(--red-light); color: var(--red); }
.dpill.novote { background: var(--amber-light); color: var(--amber); }
.dpill.live { background: #e0edff; color: #1d4ed8; }
.dpill.review { background: var(--gray-200); color: var(--gray-600); }

.dtable { margin: 8px 0 22px; max-width: 78ch; }
.astep {
  display: grid; grid-template-columns: 38px 1fr; gap: 2px 16px;
  padding: 18px 0; border-bottom: 1px solid var(--gray-200);
}
.astep:last-child { border-bottom: none; }
.astep-n {
  grid-row: span 2; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700;
}
.astep-t { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); align-self: center; }
.astep-b { grid-column: 2; font-size: 0.92rem; line-height: 1.62; }
.astep-b p { margin: 0 0 10px; } .astep-b p:last-child { margin-bottom: 0; }
.astep-b ul { margin: 6px 0 10px; padding-left: 20px; }

.kv { border-top: 1px solid var(--gray-200); margin: 12px 0 24px; max-width: 82ch; }
.kv-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 0 18px;
  padding: 11px 0; border-bottom: 1px solid var(--gray-200); font-size: 0.92rem;
}
.kv-k { font-weight: 650; color: var(--navy); }
.kv-v { line-height: 1.6; }

table.grid {
  width: 100%; border-collapse: collapse;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); margin: 12px 0 24px;
}
table.grid th, table.grid td {
  text-align: left; padding: 13px 15px;
  border-bottom: 1px solid var(--gray-200); vertical-align: top; font-size: 0.9rem; line-height: 1.55;
}
table.grid thead th {
  background: var(--navy); color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}
table.grid tbody tr:last-child td { border-bottom: none; }
table.grid tbody tr:hover { background: var(--gray-100); }

.anchorcase {
  background: var(--white); border: 1px solid var(--gray-200);
  border-left: 4px solid var(--navy); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 22px 26px; margin: 18px 0 26px;
  box-shadow: var(--shadow); max-width: 82ch;
}
.ac-tag {
  display: inline-block; font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: #fff; background: var(--navy); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.ac-title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 750; letter-spacing: -0.01em; color: var(--navy); margin: 0 0 12px; }
.ac-row { font-size: 0.92rem; line-height: 1.6; margin: 8px 0; }
.ac-l { display: inline-block; font-weight: 700; color: var(--copper); margin-right: 6px; }
.ac-l::after { content: ':'; }

.tmpl {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  margin: 16px 0 24px; overflow: hidden; box-shadow: var(--shadow);
}
.tmpl-head {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  background: var(--navy);
}
.tmpl-title { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.85); }
.tmpl-copy {
  margin-left: auto; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px; padding: 5px 13px; cursor: pointer;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; color: #fff;
}
.tmpl-copy:hover { background: var(--copper); border-color: var(--copper); }
.tmpl-copy.done { background: var(--green); border-color: var(--green); }
.tmpl pre {
  margin: 0; padding: 16px 18px;
  font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.62;
  white-space: pre-wrap; word-break: break-word; color: var(--gray-800);
}

.cite {
  font-size: 0.64rem; font-weight: 700; vertical-align: super; line-height: 0;
  color: var(--copper); padding: 0 1px;
}
.cite::before { content: '['; } .cite::after { content: ']'; }
.srclist { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: src; max-width: 82ch; }
.srclist li {
  counter-increment: src; position: relative;
  padding: 8px 0 8px 40px; border-bottom: 1px solid var(--gray-200);
  font-size: 0.84rem; line-height: 1.5;
}
.srclist li::before {
  content: '[' counter(src) ']'; position: absolute; left: 0; top: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--gray-400);
}
.srclist .s-pub { color: var(--gray-600); }

.backlink { display: inline-block; font-size: 0.86rem; font-weight: 600; margin: 14px 0 -6px; }
.muted { font-size: 0.8rem; color: var(--gray-600); }

.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 30px; }
.home-card {
  display: block; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px; color: inherit;
  box-shadow: var(--shadow); transition: all 0.2s var(--ease);
}
.home-card:hover { text-decoration: none; border-color: var(--copper); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.home-card .kicker { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper); margin-bottom: 8px; }
.home-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); margin-bottom: 8px; }
.home-card p { font-size: 0.9rem; line-height: 1.6; color: var(--gray-600); }
.home-card .go { display: inline-block; margin-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--copper); }

.money-callout {
  display: block; background: var(--navy); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 5vw, 3rem); margin: 10px 0; color: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--navy-light);
}
.money-callout .section-kicker { color: var(--copper-light); }
.money-callout h2 {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.15;
  margin: 8px 0 12px;
}
.money-callout p { max-width: 66ch; margin-bottom: 18px; }

.site-footer {
  background: var(--navy); color: rgba(255, 255, 255, 0.55);
  padding: 44px 0 36px; margin-top: 0; font-size: 0.85rem; line-height: 1.65;
}
.site-footer p { max-width: 82ch; margin-bottom: 12px; }
.site-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: underline; text-decoration-color: var(--copper); }
.site-footer strong { color: rgba(255, 255, 255, 0.85); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px 16px; margin: 0;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  body.nav-open .nav-links { display: flex; }
  .nav-links a, .nav-drop-btn { width: 100%; text-align: left; padding: 12px 14px; font-size: 1rem; }
  .nav-drop-menu { position: static; display: none; box-shadow: none; border: none; background: rgba(255, 255, 255, 0.04); margin: 2px 0 6px; }
  .nav-drop.open > .nav-drop-menu { display: block; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { display: block; text-align: center; }

  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 48px; }
  .hero-stats { gap: 22px; }
  .event-alert .cta { display: none; }

  .kv-row { grid-template-columns: 1fr; gap: 3px; }
  .kv-k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-600); }

  
  table.grid { display: block; border: none; background: none; box-shadow: none; }
  table.grid thead { display: none; }
  table.grid tbody { display: block; }
  table.grid tbody tr {
    display: block; background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); margin: 10px 0; padding: 8px 0; box-shadow: var(--shadow);
  }
  table.grid td { display: block; border-bottom: none; padding: 5px 16px; }
  table.grid td:first-child { padding-top: 12px; font-weight: 650; color: var(--navy); }
  table.grid td:last-child { padding-bottom: 12px; }

  .astep { grid-template-columns: 30px 1fr; gap: 2px 12px; }
  .astep-n { width: 27px; height: 27px; font-size: 0.78rem; }
  .tl { padding-left: 24px; }
  .tl::before { left: 6px; }
  .tl-node::before { left: -22px; width: 10px; height: 10px; }
  .anchorcase { padding: 17px 18px; }
  .band { padding: 18px 19px; }
  .pull { font-size: 1rem; padding: 15px 17px; }
}
