:root {
  color-scheme: light;
  --green: #00bd7d;
  --ink: #111827;
  --white: #ffffff;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow-paper: 0 4px 8px rgb(17 24 39 / 3%), 0 16px 32px rgb(17 24 39 / 7%);
  --shadow-lift: 0 8px 16px rgb(17 24 39 / 6%), 0 24px 48px rgb(17 24 39 / 12%);
  --shadow-menu: 0 16px 64px rgb(17 24 39 / 20%);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
button, textarea, summary { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}
a:active, button:active { transform: translateY(1px); }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; transform: none; }
button:disabled:hover { box-shadow: none; }
::selection { background: var(--green); color: var(--ink); }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-weight: 700; }
h1, h2 { font-size: 32px; line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
h1 { max-width: 19ch; }
h2 { max-width: 28ch; margin-bottom: 20px; }
h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 16px; text-wrap: balance; }
p { max-width: 70ch; }
p + p { margin-top: 12px; }
li { font-size: 18px; }
strong { font-weight: 700; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: 8px; left: 16px; min-height: 48px; padding: 12px 20px; background: var(--ink); color: var(--white); transform: translateY(-160%); z-index: 100; }
.skip-link:focus { transform: translateY(0); }
.utility-strip { background: var(--green); }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; font-size: 16px; }
.utility-inner a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding-inline: 12px; gap: 8px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px; position: relative; z-index: 20; }
.site-name { display: grid; gap: 0; padding-block: 4px; min-height: 60px; text-decoration: none; line-height: 1.35; }
.site-name > span:first-child { font-size: 24px; font-weight: 700; letter-spacing: -.04em; }
.site-name > span:last-child { font-size: 16px; }
.site-menu { position: relative; }
.site-menu summary { display: flex; align-items: center; gap: 16px; cursor: pointer; list-style: none; min-height: 48px; padding: 8px 16px; font-size: 16px; background: var(--white); border-radius: 8px; box-shadow: var(--shadow-paper); }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary:hover, .site-menu[open] summary { background: var(--green); }
.menu-lines { display: inline-block; width: 20px; height: 12px; border-block: 2px solid var(--ink); position: relative; }
.menu-lines::after { content: ""; position: absolute; top: 4px; left: 0; width: 20px; height: 2px; background: var(--ink); }
.site-menu[open] .menu-lines { height: 2px; border-bottom: 0; transform: rotate(-45deg); }
.site-menu[open] .menu-lines::after { top: -2px; transform: rotate(90deg); }
.site-menu nav { position: absolute; right: 0; top: calc(100% + 12px); width: 280px; max-width: calc(100vw - 32px); background: var(--white); padding: 12px; box-shadow: var(--shadow-menu); border-radius: 12px; z-index: 30; }
.site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-menu nav a { display: flex; align-items: center; min-height: 48px; padding: 8px 16px; font-size: 18px; text-decoration: none; border-radius: 8px; }
.site-menu nav a:hover { background: var(--green); }
.site-menu nav a[aria-current="page"] { font-weight: 700; background: var(--green); }
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 72px; align-items: center; padding: 40px 0 64px; }
.hero-copy { min-width: 0; }
.eyebrow { font-size: 16px; line-height: 1.4; margin-bottom: 16px; letter-spacing: .045em; }
.eyebrow::before { content: ""; display: inline-block; width: 24px; height: 4px; margin-right: 8px; background: var(--green); vertical-align: middle; }
.lead { font-size: 20px; line-height: 1.6; max-width: 47ch; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 28px; }
.button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 8px; color: var(--ink); background: var(--green); font-size: 16px; line-height: 1.5; text-align: center; text-decoration: none; font-weight: 700; box-shadow: 0 4px 12px rgb(17 24 39 / 8%); }
.button:hover { background: var(--green); box-shadow: var(--shadow-lift); text-decoration: underline; text-underline-offset: 4px; }
.secondary-button { background: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.secondary-button:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.text-link, .source-link, .next-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; font-size: 16px; line-height: 1.5; padding-block: 12px; max-width: 100%; }
.text-link:hover, .source-link:hover, .next-link:hover { text-decoration-thickness: 2px; }
.source-link { margin-top: 16px; width: fit-content; font-weight: 700; }
.next-link { margin-top: 28px; padding: 16px 20px; width: fit-content; background: var(--white); box-shadow: var(--shadow-paper); border-radius: 8px; font-size: 18px; }
.next-link:hover { box-shadow: var(--shadow-lift); }
.hero-plane { min-width: 0; border-radius: 12px; background: var(--white); box-shadow: var(--shadow-lift); position: relative; }
.hero-plane::before { content: ""; position: absolute; left: 24px; right: 24px; top: -8px; height: 8px; border-radius: 4px 4px 0 0; background: var(--green); }
.hero-plane figure { padding: 28px; }
.figure-kicker { font-size: 16px; margin-bottom: 24px; }
figcaption, .caption { font-size: 16px; line-height: 1.6; }
.hero-plane figcaption { margin-top: 24px; }
.map-root { padding: 16px; background: var(--green); border-radius: 8px; text-align: center; font-size: 20px; font-weight: 700; }
.map-branches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.map-branches > span { position: relative; text-align: center; padding-block: 12px; font-size: 16px; box-shadow: var(--shadow-paper); border-radius: 4px; }
.map-branches > span::before { content: ""; position: absolute; height: 16px; width: 2px; top: -20px; left: calc(50% - 1px); background: var(--green); }
.hero-plane dl > div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: baseline; padding-block: 12px; }
.hero-plane dt { font-weight: 700; font-size: 20px; }
.hero-plane dd { margin: 0; font-size: 16px; line-height: 1.5; }
.hero-plane dl > div + div { border-top: 2px solid var(--green); }
.flow-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.flow-list li { display: flex; gap: 12px; padding: 8px 12px; font-size: 16px; background: var(--white); box-shadow: var(--shadow-paper); border-radius: 4px; }
.flow-list li::before { content: "→"; color: var(--ink); font-weight: 700; }
.bill-stack { display: grid; gap: 8px; }
.bill-stack span { display: block; padding: 8px 16px; background: var(--white); box-shadow: var(--shadow-paper); border-radius: 4px; font-size: 16px; }
.bill-stack span:first-child { background: var(--green); font-weight: 700; font-size: 20px; }
.bill-stack span:nth-child(2) { margin-left: 8px; }
.bill-stack span:nth-child(3) { margin-left: 16px; }
.bill-stack span:nth-child(4) { margin-left: 24px; }
.evidence-parts { display: grid; gap: 12px; }
.evidence-parts span { padding: 12px 16px; background: var(--white); box-shadow: var(--shadow-paper); font-size: 20px; border-radius: 4px; }
.evidence-parts span:nth-child(2) { margin-left: 12px; }
.evidence-parts span:nth-child(3) { margin-left: 24px; background: var(--green); }
.reading-body { display: block; }
.reading-body > h2 { margin-bottom: 20px; }
.reading-body > .comparison, .reading-body > .definition-pairs, .reading-body > .evidence-grid { margin-top: 28px; }
.reading-body > .comparison + p { margin-top: 28px; }
.reading-body > section, .reading-body > aside { margin-top: 64px; }
.reading-body > section:first-child, .reading-body > aside:first-child { margin-top: 0; }
.cost-checks { margin-block: 28px; }
.paper { background: var(--white); box-shadow: var(--shadow-paper); border-radius: 12px; padding: 28px; min-width: 0; }
.paper p { font-size: 18px; }
.paper .caption { font-size: 16px; margin-top: 24px; }
.comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.comparison-card { position: relative; padding-top: 36px; }
.comparison-card::before { content: ""; position: absolute; width: 32px; height: 4px; left: 28px; top: 20px; background: var(--green); }
.comparison figcaption { margin-top: 24px; max-width: 70ch; }
.two-up, .definition-pairs, .cost-checks, .evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.stamp { font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.check-grid + p { margin-top: 28px; }
.local-plane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .45fr); gap: 40px; align-items: center; padding: 32px; border-radius: 12px; background: var(--white); box-shadow: var(--shadow-lift); position: relative; }
.local-plane::before { content: ""; position: absolute; top: 32px; bottom: 32px; left: 0; width: 4px; background: var(--green); }
.local-plane .source-link { margin-top: 0; }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.route-card { display: grid; gap: 12px; position: relative; min-height: 148px; padding: 24px; box-shadow: var(--shadow-paper); border-radius: 12px; text-decoration: none; background: var(--white); font-size: 18px; }
.route-card strong { font-size: 20px; line-height: 1.4; }
.route-card > span:nth-child(2) { padding-right: 24px; font-size: 16px; }
.route-card > span:last-child { position: absolute; right: 20px; bottom: 20px; }
.route-card:hover { box-shadow: var(--shadow-lift); }
.route-card:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.prose-panel { max-width: 880px; }
.question-list { padding-left: 28px; margin: 0 0 28px; max-width: 70ch; }
.question-list li { margin-block: 12px; padding-left: 8px; }
.question-list li::marker { color: var(--ink); }
.notes-plane { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; padding: 32px; border-radius: 12px; box-shadow: var(--shadow-lift); background: var(--white); }
.notes-plane .eyebrow::before { background: var(--green); }
.notes-editor { min-width: 0; }
.notes-editor label { font-size: 18px; display: block; font-weight: 700; margin-bottom: 12px; }
textarea { display: block; width: 100%; min-height: 200px; font-size: 18px; line-height: 1.6; padding: 16px; color: var(--ink); border: 1px solid var(--ink); border-radius: 8px; resize: vertical; background: var(--white); }
textarea::placeholder { color: #4b5563; opacity: 1; }
textarea:focus-visible { outline-offset: 4px; border-color: var(--ink); }
.note-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 20px 12px; }
.note-status { min-height: 48px; font-size: 16px; line-height: 1.5; padding-left: 12px; border-left: 4px solid var(--green); }
.note-status[data-state="saved"] { border-color: var(--success); }
.note-status[data-state="error"] { border-color: var(--warning); }
.caution-card { position: relative; padding-top: 36px; }
.caution-card::before { content: ""; position: absolute; top: 20px; left: 28px; width: 24px; height: 4px; background: var(--warning); }
.urgent-plane { padding: 32px; border-radius: 12px; box-shadow: var(--shadow-lift); background: var(--white); position: relative; }
.urgent-plane::before { content: ""; position: absolute; top: 32px; bottom: 32px; left: 0; width: 4px; background: var(--danger); }
.urgent-plane .eyebrow::before { background: var(--danger); }
.evidence-card { display: flex; flex-direction: column; align-items: flex-start; }
.evidence-card .source-link { margin-top: auto; padding-top: 24px; }
.evidence-card .caption { margin-bottom: 16px; }
.site-footer { margin-top: 80px; padding: 32px 0 40px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; position: relative; }
.site-footer::before { content: ""; position: absolute; height: 4px; top: 0; left: 0; width: 48px; background: var(--green); }
.site-footer p { font-size: 16px; line-height: 1.65; max-width: 58ch; }
.site-footer nav { display: flex; flex-wrap: wrap; align-content: start; gap: 0 20px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 48px; font-size: 16px; line-height: 1.5; padding-block: 12px; }
code, .u-mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
@media (min-width: 960px) {
  .hero { min-height: 372px; }
}
@media (max-width: 920px) {
  .hero { gap: 32px; }
  .comparison-grid, .check-grid, .route-grid { grid-template-columns: 1fr; }
  .comparison-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-plane { grid-template-columns: 1fr; gap: 20px; }
  .local-plane > a { width: fit-content; }
  .notes-plane { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .utility-inner { gap: 4px; align-items: center; }
  .utility-inner > span { max-width: 10ch; line-height: 1.25; padding-block: 8px; }
  .utility-inner a { padding-inline: 0; font-size: 16px; gap: 4px; }
  .site-header { gap: 12px; padding-block: 20px; }
  .site-name > span:first-child { font-size: 24px; }
  .site-name > span:last-child { max-width: 13ch; }
  .site-menu summary { padding-inline: 12px; gap: 12px; font-size: 16px; max-width: 164px; line-height: 1.35; }
  .menu-lines { flex-shrink: 0; }
  .site-menu nav { width: 280px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 28px 0 48px; }
  .lead { margin-top: 20px; }
  .hero-actions { gap: 8px 20px; margin-top: 24px; }
  .hero-plane figure { padding: 24px; }
  .figure-kicker { margin-bottom: 20px; }
  .hero-plane figcaption { margin-top: 20px; }
  .reading-body > section, .reading-body > aside { margin-top: 48px; }
  .reading-body > section:first-child, .reading-body > aside:first-child { margin-top: 0; }
  .paper { padding: 24px; }
  .comparison-card, .caution-card { padding-top: 36px; }
  .comparison-card::before, .caution-card::before { left: 24px; }
  .two-up, .definition-pairs, .cost-checks, .evidence-grid, .comparison-grid.two-up { grid-template-columns: 1fr; gap: 24px; }
  .local-plane, .notes-plane, .urgent-plane { padding: 24px; }
  .local-plane::before, .urgent-plane::before { top: 24px; bottom: 24px; }
  .cost-checks { margin-top: 28px; }
  .cost-checks + p { margin-top: 28px; }
  .notes-editor textarea { min-height: 224px; }
  .note-actions { display: grid; grid-template-columns: 1fr; }
  .next-link { width: 100%; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; margin-top: 56px; }
  h1, h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .next-link, .route-card, .site-menu summary { transition: box-shadow 160ms ease, background-color 160ms ease; }
}
@media print {
  .utility-strip, .site-header, .site-footer nav, .note-actions, .skip-link { display: none; }
  .shell { width: 100%; }
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; padding-block: 24px; }
  .hero-plane { display: none; }
  .paper, .local-plane, .notes-plane, .urgent-plane, .next-link { box-shadow: none; border: 1px solid #111827; break-inside: avoid; }
  .comparison-grid, .two-up, .definition-pairs, .cost-checks, .evidence-grid, .check-grid { grid-template-columns: 1fr; }
  .reading-body > section, .reading-body > aside { margin-top: 32px; }
  a:after { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  a:active, button:active { transform: none; }
}
