:root {
  color-scheme: light;
  --ground: #e7efe9;
  --ink: #233f37;
  --muted: #476056;
  --chalk: #f8faf6;
  --wash: #d6e3d7;
  --blue: #dbe7ea;
  --yellow: #eee7b3;
  --link: #235367;
}

* { box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: auto; }
body { margin: 0; color: var(--ink); font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 18px; line-height: 1.65; }
a { color: var(--link); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid #235367; outline-offset: 5px; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: var(--yellow); }

.skip-link { position: absolute; top: 8px; left: 16px; z-index: 5; padding: 12px 20px; min-height: 48px; border-radius: 18px; background: var(--chalk); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.masthead { max-width: 1320px; margin: 0 auto; padding: 28px 46px 24px; display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; flex-direction: column; justify-content: center; min-height: 54px; color: var(--ink); font-size: 24px; font-weight: 650; line-height: 1.2; text-decoration: none; }
.wordmark-rule { width: 78%; height: 4px; margin-top: 7px; background: #7f9e8d; border-radius: 50%; transform: rotate(-2deg); }
.guide-identity { margin: 0; color: var(--muted); font-size: 17px; }
.index-jump { margin-left: auto; display: inline-flex; align-items: center; gap: 22px; min-height: 48px; padding: 8px 16px; border-radius: 24px; color: var(--ink); background: var(--chalk); font-size: 17px; text-decoration: none; }
.handbook-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); grid-template-areas: "index content"; gap: 66px; max-width: 1230px; margin: 36px auto 92px; padding: 0 34px; align-items: start; }
.chapter-content { grid-area: content; min-width: 0; max-width: 850px; }
.chapter-content:focus { outline: none; }
.chapter-index { grid-area: index; min-width: 0; padding-top: 10px; scroll-margin-top: 24px; }
.index-heading { margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.index-caption { max-width: 23ch; margin: 0 0 22px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.chapter-list { list-style: none; padding: 0; margin: 0; }
.chapter-item { margin: 4px 0; }
.chapter-link { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 9px 12px; border-radius: 20px; color: var(--ink); font-size: 16px; line-height: 1.4; text-decoration: none; }
.chapter-link:hover { background: #d6e3d7; }
.chapter-link[aria-current="page"] { background: var(--chalk); font-weight: 650; }
.chapter-letter { display: inline-block; width: 19px; flex: 0 0 19px; color: var(--muted); font-size: 17px; }
.chapter-name { min-width: 0; }
.chapter-opener { padding: 4px 0 38px; }
.chapter-position { margin: 0 0 25px; color: var(--muted); font-size: 17px; }
.page-heading { max-width: 18ch; margin: 0 0 28px; font-size: 64px; line-height: 1.08; font-weight: 550; letter-spacing: -0.045em; text-wrap: balance; }
.chapter-deck { max-width: 55ch; margin: 0; font-size: 22px; line-height: 1.55; color: #3e5b4e; }
.idea-section { max-width: 70ch; padding: 34px 0 28px; border-top: 4px solid var(--chalk); }
.section-heading { max-width: 28ch; margin: 0 0 18px; font-size: 29px; font-weight: 600; line-height: 1.25; letter-spacing: -0.025em; text-wrap: balance; }
.body-copy { max-width: 66ch; margin: 0 0 17px; font-size: 18px; line-height: 1.7; }
.source-mark { color: var(--muted); white-space: nowrap; font-size: 16px; }
.reading-link { display: flex; align-items: center; justify-content: space-between; gap: 22px; width: fit-content; max-width: 100%; min-height: 48px; margin: 8px 0 0; padding: 9px 0; font-size: 17px; font-weight: 600; line-height: 1.5; }
.link-arrow { flex: 0 0 auto; font-size: 22px; }
.place-figure { margin: 24px 0 46px; }
.place-image { display: block; width: 100%; height: auto; border-radius: 36px 36px 96px 36px; background: #cfdfd1; color: var(--ink); font-size: 16px; object-fit: cover; }
.place-caption { margin: 14px 10px 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.recap { position: relative; max-width: 70ch; margin: 36px 0 44px; padding: 28px 32px 30px; border-radius: 8px 30px 30px 30px; background: var(--yellow); }
.recap::before { content: ""; position: absolute; left: 32px; top: -7px; width: 66px; height: 11px; border-radius: 50%; background: #c3b96e; transform: rotate(-3deg); }
.recap-heading { margin: 0 0 8px; font-size: 20px; line-height: 1.4; font-weight: 650; }
.recap-copy { max-width: 60ch; margin: 0; font-size: 18px; line-height: 1.6; }
.question-list { list-style: none; padding: 0; margin: 6px 0 22px; }
.question-item { position: relative; margin: 0 0 12px; padding: 7px 0 7px 26px; font-size: 18px; line-height: 1.6; }
.question-item::before { content: ""; position: absolute; top: 18px; left: 1px; width: 9px; height: 9px; border-radius: 50%; background: #628372; }
.page-notes { padding: 30px 0 0; margin-top: 40px; border-top: 4px solid var(--chalk); }
.notes-heading { margin: 0 0 18px; font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
.note-list { list-style: none; padding: 0; margin: 0; }
.note-item { margin: 0 0 20px; padding: 14px 20px; border-radius: 22px; background: #dbe5de; scroll-margin-top: 24px; }
.note-heading { margin: 0; font-size: 16px; font-weight: 450; line-height: 1.55; }
.source-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 8px 0; font-size: 16px; line-height: 1.5; }
.page-turn { display: flex; gap: 24px; justify-content: space-between; margin-top: 40px; padding-top: 26px; border-top: 4px solid var(--chalk); }
.turn-link { display: flex; flex: 1 1 0; flex-direction: column; justify-content: center; min-height: 76px; padding: 10px 0; font-size: 18px; font-weight: 600; line-height: 1.5; }
.turn-label { color: var(--muted); font-size: 16px; font-weight: 450; }
.site-footer { display: flex; gap: 50px; align-items: center; justify-content: space-between; padding: 36px max(46px, calc((100vw - 1230px) / 2)); background: #d0dfd2; }
.footer-statement { max-width: 60ch; margin: 0; font-size: 16px; line-height: 1.65; }
.footer-links { display: flex; gap: 16px; flex: 0 0 auto; }
.footer-link { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 6px; font-size: 16px; }
.comparison-controls { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0; }
.comparison-button { min-height: 48px; padding: 10px 16px; border: 2px solid #739082; border-radius: 24px; background: var(--chalk); color: var(--ink); font-size: 16px; line-height: 1.4; cursor: pointer; }
.comparison-button[aria-pressed="true"] { color: #fff; background: #335d4c; border-color: #335d4c; }
.comparison-columns { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 20px; }
.comparison-columns[data-layout="single"] { grid-template-columns: minmax(0, 1fr); }
.offer-column { display: grid; grid-template-rows: subgrid; grid-row: span 4; min-width: 0; background: var(--blue); padding: 24px; border-radius: 26px; }
.evidence-column { display: grid; grid-template-rows: subgrid; grid-row: span 4; min-width: 0; background: var(--chalk); padding: 24px; border-radius: 26px; }
.column-heading { margin: 0 0 25px; font-size: 23px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.comparison-entry { margin: 0 0 28px; }
.comparison-entry:last-child { margin-bottom: 0; }
.entry-heading { margin: 0 0 10px; font-size: 19px; font-weight: 650; line-height: 1.4; }
.comparison-status { min-height: 28px; color: var(--muted); margin: 14px 0 0; font-size: 16px; line-height: 1.6; }

@media (max-width: 1100px) {
  .handbook-layout { grid-template-columns: 218px minmax(0, 1fr); gap: 38px; padding: 0 30px; }
  .page-heading { font-size: 56px; }
  .masthead { padding-right: 30px; padding-left: 30px; }
  .guide-identity { max-width: 24ch; }
  .comparison-columns { grid-template-columns: minmax(0, 1fr); }
  .site-footer { padding: 32px 30px; gap: 24px; }
}

@media (max-width: 760px) {
  .masthead { padding: 20px 22px 22px; flex-wrap: wrap; gap: 12px; }
  .wordmark { font-size: 23px; }
  .guide-identity { order: 3; flex: 0 0 100%; max-width: none; font-size: 16px; }
  .index-jump { padding: 8px 14px; gap: 14px; font-size: 16px; }
  .handbook-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "content" "index"; margin-top: 22px; margin-bottom: 46px; padding: 0 22px; gap: 58px; }
  .chapter-opener { padding-bottom: 30px; }
  .chapter-position { margin-bottom: 20px; font-size: 16px; }
  .page-heading { max-width: 18ch; margin-bottom: 22px; font-size: 44px; line-height: 1.1; letter-spacing: -0.04em; }
  .chapter-deck { font-size: 20px; line-height: 1.55; }
  .idea-section { padding-top: 28px; padding-bottom: 23px; }
  .section-heading { font-size: 27px; }
  .body-copy { font-size: 18px; }
  .reading-link { font-size: 17px; }
  .recap { margin-top: 30px; padding: 26px 24px; }
  .recap::before { left: 24px; }
  .place-image { border-radius: 28px 28px 65px 28px; }
  .place-figure { margin-top: 20px; margin-bottom: 34px; }
  .place-caption { margin-left: 0; margin-right: 0; }
  .chapter-index { border-top: 4px solid var(--chalk); padding-top: 26px; }
  .index-caption { max-width: 32ch; }
  .chapter-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .chapter-link { min-height: 48px; font-size: 17px; }
  .site-footer { display: block; padding: 30px 22px; }
  .footer-links { flex-wrap: wrap; margin-top: 18px; }
  .footer-link { padding-left: 0; padding-right: 16px; }
  .page-turn { gap: 18px; }
  .turn-link { font-size: 17px; }
  .note-item { padding: 16px 18px; }
  .comparison-controls { gap: 8px; }
  .comparison-button { padding-right: 13px; padding-left: 13px; }
  .offer-column { padding: 23px; }
  .evidence-column { padding: 23px; }
}

@media print {
  .masthead { padding: 0 0 20px; }
  .handbook-layout { display: block; max-width: none; margin: 0; padding: 0; }
  .chapter-index, .index-jump, .skip-link, .comparison-controls, .comparison-status, .page-turn, .footer-links { display: none !important; }
  .page-heading { font-size: 38px; }
  .body-copy, .question-item { font-size: 16px; }
  .place-figure { display: none; }
  .site-footer { display: block; margin-top: 30px; padding: 20px 0; }
  .comparison-columns { display: block; }
  .offer-column, .evidence-column { display: block !important; margin-bottom: 20px; }
  .recap, .note-item { break-inside: avoid; }
}

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