@font-face { font-family: 'Piazzolla'; font-style: italic; font-weight: 100; font-display: swap; src: url("/assets/fonts/piazzolla-latin-100-italic.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/piazzolla-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/piazzolla-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/piazzolla-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/piazzolla-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/piazzolla-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/piazzolla-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/piazzolla-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/piazzolla-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/piazzolla-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/piazzolla-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/piazzolla-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/piazzolla-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/piazzolla-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/piazzolla-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/piazzolla-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/piazzolla-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Piazzolla'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/piazzolla-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Gowun Batang'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/gowun-batang-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Gowun Batang'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/gowun-batang-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f9faf5;
  --fg-light-base-body: #172538;
  --fg-light-base-heading: #172538;
  --fg-light-base-muted: #4a5660;
  --fg-light-base-link: #557a12;
  --fg-light-base-inverse: #172538;
  --bg-light-card: #ffffff;
  --fg-light-card-body: #172538;
  --fg-light-card-heading: #172538;
  --fg-light-card-muted: #4a5660;
  --fg-light-card-link: #557a12;
  --fg-light-card-inverse: #172538;
  --bg-light-elevated: #e3e9d6;
  --fg-light-elevated-body: #172538;
  --fg-light-elevated-heading: #172538;
  --fg-light-elevated-muted: #4a5660;
  --fg-light-elevated-link: #3f5c0b;
  --fg-light-elevated-inverse: #172538;
  --brand-light-accent: #557a12;
  --brand-light-accent-hover: #3f5c0b;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #557a12;
  --focus-ring: var(--focus-light-ring);
  --border-light-default: #66736a;
  --border-light-subtle: #cfd8c4;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-ring); }

:root {
  --ink: var(--fg-light-base-heading);
  --green: var(--brand-light-accent);
  --green-deep: var(--brand-light-accent-hover);
  --on-green: var(--brand-light-on-accent);
  --rule: var(--border-light-default);
  --rule-soft: var(--border-light-subtle);
  --paper: var(--bg-light-base);
  --card: var(--bg-light-card);
  --band: var(--bg-light-elevated);
  --head: 'Piazzolla', 'Iowan Old Style', Georgia, serif;
  --book: 'Gowun Batang', 'Palatino Linotype', Georgia, serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wide: 76rem;
  --measure: 38rem;
  --head-h: 4rem;
  --total: 4px double var(--ink);
}
@media (min-width: 1024px) { :root { --head-h: 7rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 1rem); color-scheme: light; }

body {
  margin: 0;
  font-family: var(--book);
  font-size: 1.07rem;
  line-height: 1.75;
  color: var(--fg-body);
}

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  color: var(--fg-heading);
  line-height: 1.1;
  letter-spacing: -0.005em;
}
h1 { font-weight: 800; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem); margin: 2.4rem 0 0.75rem; text-wrap: balance; }
h3 { font-size: 1.22rem; margin: 1.5rem 0 0.4rem; }
p { margin: 0 0 1.05rem; }
ul, ol { padding-left: 1.3rem; }

main a { color: var(--fg-link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
main a:hover, a.text-role-link:hover { color: var(--ink); text-decoration-thickness: 2px; text-decoration-color: var(--green); }

/* ---------- Header: masthead row over an inline nav row ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: var(--total);
}
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--wide); margin: 0 auto; padding: 0.5rem var(--gutter);
  min-height: 4rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  flex: 0 1 auto; min-width: 0;
  text-decoration: none; color: var(--fg-heading);
  overflow-wrap: normal;
}
.brand .site-logo { width: 2.5rem; height: auto; flex: none; }
.brand-name {
  font-family: var(--head); font-weight: 700; font-size: 1.08rem; line-height: 1.1;
  max-width: 10em; text-wrap: balance;
  overflow-wrap: normal; word-break: normal; hyphens: manual;
}
.brand:hover .brand-name { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--green); text-underline-offset: 0.2em; }
.brand-strap { display: none; margin: 0; font-family: var(--head); font-style: italic; font-weight: 500; font-size: 1rem; line-height: 1.3; overflow-wrap: normal; }
@media (max-width: 479px) {
  .masthead { gap: 0.5rem; }
  .brand { gap: 0.45rem; }
  .brand .site-logo { width: 2.1rem; }
  .brand-name { font-size: 0.96rem; }
}

/* Phone menu toggle: an outlined box with a plus that turns to a minus */
.site-menu { flex: none; }
.site-menu > summary {
  display: flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.35rem 0.7rem;
  border: 1.5px solid var(--ink); border-radius: 2px;
  font-family: var(--head); font-weight: 600; font-size: 0.98rem; line-height: 1.1;
  color: var(--fg-heading); white-space: nowrap;
}
.menu-icon { position: relative; flex: none; width: 0.9rem; height: 0.9rem; }
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; left: 0; top: calc(50% - 1.25px);
  width: 100%; height: 2.5px; background: var(--green);
}
.menu-icon::after { transform: rotate(90deg); transition: transform 0.15s ease; }
.site-menu[open] .menu-icon::after { transform: rotate(0deg); }
.menu-label { overflow-wrap: normal; }
.site-menu > summary:hover { background: var(--band); }
.site-menu[open] > summary { background: var(--band); }

/* Open phone menu: accordion of grouped heading rows */
.site-menu > ul {
  list-style: none; margin: 0;
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
  max-height: calc(100dvh - var(--head-h)); overflow-y: auto;
  padding: 1rem var(--gutter) 1.5rem;
  background: var(--paper);
  border-bottom: var(--total);
  display: grid; gap: 0.35rem;
}
.site-menu > ul > li { background: var(--band); border-left: 4px solid var(--green); }
.site-menu > ul > li:nth-child(4) { margin-bottom: 0.9rem; }
.site-menu > ul > li:nth-child(n+5) { background: var(--card); border-left-color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-soft); }
.site-menu ul a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 0.9rem;
  font-family: var(--head); font-weight: 700; font-size: 1.12rem; line-height: 1.25;
  text-decoration: none; color: var(--ink);
}
.site-menu ul a::after {
  content: "+"; flex: none;
  font-family: var(--head); font-weight: 700; font-size: 1.3rem; line-height: 1; color: var(--green-deep);
}
.site-menu ul a:hover { background: var(--green-deep); color: var(--on-green); }
.site-menu ul a:hover::after { color: var(--on-green); }
.site-menu ul ul { list-style: none; margin: 0; padding: 0 0.9rem 0.6rem 1.6rem; }
.site-menu ul ul a { font-family: var(--book); font-weight: 400; font-size: 1rem; padding: 0.4rem 0.5rem; }
.site-menu ul ul a::after { content: none; }

/* Desktop inline nav row: ledger column heads */
.nav-row { display: none; }
.site-nav > ul {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter);
  max-width: var(--wide);
  display: flex; flex-wrap: nowrap;
}
.site-nav > ul > li { flex: 1 1 auto; border-left: 1px solid var(--rule); }
.site-nav > ul > li:last-child { border-right: 1px solid var(--rule); }
.site-nav > ul > li > a,
.site-nav-group > summary {
  display: block; padding: 0.55rem 0.4rem 0.6rem;
  font-family: var(--head); font-weight: 600; font-size: 0.86rem; line-height: 1.2; white-space: nowrap; text-align: center;
  color: var(--ink); text-decoration: none;
}
.site-nav > ul > li > a:hover,
.site-nav-group > summary:hover { background: var(--band); color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--green); text-underline-offset: 0.25em; }
.site-nav-group > summary { list-style: none; cursor: pointer; }
.site-nav-group > summary::-webkit-details-marker { display: none; }
.site-nav-group > ul {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
  list-style: none; margin: 0;
  padding: 1.25rem max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))) 1.75rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem 2rem;
  background: var(--paper); border-bottom: var(--total);
}
.site-nav-group > ul a { display: block; padding: 0.55rem 0.7rem; border-left: 3px solid var(--green); font-family: var(--head); font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.site-nav-group > ul a:hover { background: var(--band); color: var(--ink); text-decoration: underline; }

@media (min-width: 720px) {
  .brand-strap { display: block; flex: 1 1 auto; text-align: right; color: var(--fg-muted); }
}
@media (min-width: 1024px) {
  .masthead { min-height: 4.4rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .brand .site-logo { width: 3rem; }
  .brand-name { font-size: 1.22rem; max-width: none; white-space: nowrap; }
  .site-menu { display: none; }
  .nav-row { display: block; border-top: 1px solid var(--rule-soft); }
}
@media (min-width: 1280px) {
  .site-nav > ul > li > a, .site-nav-group > summary { font-size: 0.95rem; padding-left: 0.8rem; padding-right: 0.8rem; }
}

/* Breadcrumbs */
.breadcrumbs { max-width: var(--wide); margin: 1.1rem auto 0; padding: 0 var(--gutter); font-size: 0.93rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 0.6rem; color: var(--fg-muted); }

/* Photos: square-cut prints with an offset ledger band behind */
.photo-hero, .photo-inline { margin: 0 0 2rem; }
.photo-hero img, .photo-inline img {
  display: block; width: 100%;
  border: 1px solid var(--ink);
  box-shadow: 0.6rem 0.6rem 0 var(--band);
}
.photo-hero img { aspect-ratio: 3 / 2; object-fit: cover; }

/* Shared line art */
.clinic-front { display: block; width: 3.6rem; height: auto; flex: none; }
.clinic-front .ln { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.clinic-front .crs { fill: none; stroke: var(--green); stroke-width: 2.8; stroke-linecap: round; }
.scale { display: block; width: 6rem; height: 1.2rem; }
.scale .axis { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.scale .tk { fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.side-key { list-style: none; margin: 0; padding: 0; }
.side-key li {
  display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.5rem; align-items: baseline;
  padding: 0.5rem 0; border-top: 1px solid var(--rule-soft); font-size: 0.97rem; line-height: 1.5;
}
.key-tick, .key-dash, .key-ask { font-family: var(--head); font-weight: 800; text-align: center; }
.key-tick { color: var(--green); }
.key-dash, .key-ask { color: var(--ink); }

/* ---------- Home: title left, ledger of lines right, scorecard grid ---------- */
.home { padding: 0 0 3rem; }
.cover {
  max-width: var(--wide); margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  display: grid; gap: 1.75rem;
}
.cover h1 { font-size: clamp(2.3rem, 1.3rem + 4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 15ch; }
.cover-ledger { border-top: var(--total); border-bottom: 1px solid var(--ink); padding: 0 1.1rem; counter-reset: line; }
.cover-ledger .display-line {
  display: grid; grid-template-columns: 2rem 1fr; gap: 0.6rem;
  margin: 0; padding: 0.9rem 0; font-size: 1.1rem; line-height: 1.55;
}
.cover-ledger .display-line + .display-line { border-top: 1px solid var(--rule-soft); }
.cover-ledger .display-line::before {
  counter-increment: line; content: counter(line);
  font-family: var(--head); font-weight: 800; font-size: 1.4rem; line-height: 1.1; color: var(--green-deep);
}
@media (min-width: 900px) {
  .cover { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3.5rem; align-items: end; }
}

.board { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.board-head { display: grid; gap: 0.4rem 3rem; padding: 1.25rem 0 1.5rem; border-top: var(--total); }
.board-head h2 { margin: 0; }
.board-method { margin: 0; font-size: 1.03rem; line-height: 1.55; max-width: 34rem; }
.board-key { list-style: none; margin: 0.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.94rem; line-height: 1.45; }
.board-key li { display: flex; gap: 0.4rem; align-items: baseline; }
@media (min-width: 900px) {
  .board-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: end; }
  .board-head h2 { grid-row: span 2; }
}
.board-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0; grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--ink); border-left: 1px solid var(--ink);
}
@media (min-width: 720px) { .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .board-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.scorecard {
  display: flex; flex-direction: column;
  padding: 1.1rem 1.2rem 1.2rem;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.sc-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--rule-soft); }
.sc-scale { display: grid; gap: 0.25rem; justify-items: end; text-align: right; }
.scale-note { margin: 0; font-size: 0.8rem; line-height: 1.25; }
.scorecard h3 { margin: 0.9rem 0 0.35rem; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.15; }
.scorecard h3 a { text-decoration: none; color: var(--ink); }
.scorecard h3 a:hover { text-decoration: underline; text-decoration-color: var(--green); }
.sc-line { margin: 0 0 0.9rem; font-size: 0.98rem; line-height: 1.5; }
.sc-treat { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.9rem; line-height: 1.3; }
.sc-treat li { display: flex; gap: 0.35rem; padding: 0.25rem 0.55rem; border: 1px solid var(--rule); }
.sc-treat li::before { content: "\2713"; font-family: var(--head); font-weight: 800; color: var(--green); }

.home-body { max-width: var(--wide); margin: clamp(3rem, 7vw, 4.5rem) auto 0; padding: 0 var(--gutter); }
.home-body > * { max-width: var(--measure); }
.home-body > .photo-hero { max-width: 44rem; }
@media (min-width: 1024px) {
  .home-body:has(> .photo-hero) { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .home-body:has(> .photo-hero) > * { grid-column: 1; }
  .home-body > .photo-hero { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: calc(var(--head-h) + 1.5rem); margin: 0; max-width: none; }
  .home-body > h2:first-of-type, .home-body > .photo-hero + * { margin-top: 0; }
}

/* ---------- Ranking: title row, then a stepped staircase ---------- */
.ranking { max-width: var(--wide); margin: 0 auto; padding: 1.5rem var(--gutter) 3.5rem; }
.ranking-head { display: grid; gap: 1rem 3rem; padding-bottom: 1.4rem; margin-bottom: 2rem; border-bottom: var(--total); }
.ranking-head h1 { max-width: 20ch; }
.ranking-note { margin: 0; padding: 0.8rem 1rem; font-size: 1rem; line-height: 1.5; border-left: 4px solid var(--green); }
@media (min-width: 900px) {
  .ranking-head { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; }
}
.ranking-body > * { max-width: var(--measure); }
.ranking-body > .photo-hero, .ranking-body > .photo-inline { max-width: 48rem; }
.ranking-body ol { list-style: none; padding: 0; margin: 1.75rem 0 2.25rem; max-width: 56rem; }
.ranking-body ol > li {
  position: relative; margin: 0 0 0.75rem; padding: 0.9rem 1.1rem 1rem 5.25rem;
  background: var(--card); border: 1px solid var(--ink); line-height: 1.6;
}
.ranking-body ol > li::before {
  content: counter(list-item);
  position: absolute; left: 0; top: 0; bottom: 0; width: 4.25rem;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 0.6rem; background: var(--band); border-right: 1px solid var(--ink);
  font-family: var(--head); font-weight: 800; font-size: 2.4rem; line-height: 1;
  color: var(--ink);
}
@media (min-width: 720px) {
  .ranking-body ol > li { padding-left: 6.75rem; }
  .ranking-body ol > li::before { width: 5.5rem; font-size: 3.4rem; }
  .ranking-body ol > li:nth-child(2) { margin-left: 2.25rem; }
  .ranking-body ol > li:nth-child(3) { margin-left: 4.5rem; }
  .ranking-body ol > li:nth-child(4) { margin-left: 6.75rem; }
  .ranking-body ol > li:nth-child(n+5) { margin-left: 9rem; }
}
.ranking-files { margin-top: 3rem; padding-top: 1rem; border-top: var(--total); }
.ranking-files > h2 { margin-top: 0; }
.ranking-files ul, .versus-more ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.ranking-files li, .versus-more li { border-bottom: 1px solid var(--rule); }
.ranking-files a, .versus-more a { display: block; padding: 0.7rem 0.2rem; font-family: var(--head); font-weight: 600; font-size: 1.06rem; line-height: 1.35; text-decoration: none; }
.ranking-files a:hover, .versus-more a:hover { text-decoration: underline; }

/* ---------- Provider review: body column, scorecard column ---------- */
.review { max-width: var(--wide); margin: 0 auto; padding: 1.5rem var(--gutter) 3.5rem; }
.review-grid { display: grid; gap: 2.5rem; }
.review-head { padding-bottom: 1rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--ink); }
.review-body { max-width: var(--measure); }
.review-body h2 { padding-top: 0.9rem; border-top: var(--total); }
.review-body h2:first-child, .review-body .photo-hero + h2 { margin-top: 0; }
.review-body ul { list-style: none; padding: 0; }
.review-body ul > li { position: relative; padding: 0.35rem 0 0.35rem 1.8rem; border-bottom: 1px solid var(--rule-soft); }
.review-body ul > li::before { content: "\2713"; position: absolute; left: 0.2rem; top: 0.35rem; font-family: var(--head); font-weight: 800; color: var(--green); }
.score-card { padding: 1.1rem 1.2rem 1.1rem; border: 1px solid var(--ink); border-top: 6px solid var(--ink); }
.score-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--rule-soft); }
.score-card h2 { margin: 0.9rem 0 0.5rem; font-size: 1.2rem; }
.side-back { margin: 0.9rem 0 0; font-size: 0.97rem; }
@media (min-width: 960px) {
  .review-grid { grid-template-columns: 18rem minmax(0, 1fr); gap: 3.5rem; }
  .review-side { grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: calc(var(--head-h) + 1.25rem); }
  .review-main { grid-column: 2; grid-row: 1; }
}

/* ---------- Comparison: ledger grid, headings in the left column ---------- */
.versus { max-width: var(--wide); margin: 0 auto; padding: 1.5rem var(--gutter) 3.5rem; }
.versus-head { padding-bottom: 1rem; margin-bottom: 2rem; border-bottom: var(--total); }
.versus-head h1 { max-width: 22ch; margin-bottom: 1rem; }
.versus-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.75rem; font-size: 0.96rem; line-height: 1.4; }
.versus-key li { display: flex; gap: 0.45rem; align-items: baseline; }
.versus-body { min-width: 0; }
.versus-body > * { max-width: var(--measure); }
.versus-body > table, .versus-body > .photo-inline, .versus-body > .photo-hero { max-width: none; }
.versus-body table {
  display: block; overflow-x: auto; margin: 1.5rem 0 2rem;
  border-collapse: separate; border-spacing: 0; font-size: 0.97rem; line-height: 1.45;
  background: var(--card); border: 1px solid var(--ink);
}
.versus-body th, .versus-body td { padding: 0.65rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-soft); min-width: 8rem; }
.versus-body td + td, .versus-body th + th { border-left: 1px solid var(--rule-soft); }
.versus-body th { font-family: var(--head); font-weight: 700; background: var(--band); color: var(--ink); border-bottom: 2px solid var(--ink); }
.versus-body tbody tr:last-child td { border-bottom: 0; }
@media (min-width: 960px) {
  .versus-body { display: grid; grid-template-columns: 15rem minmax(0, var(--measure)); column-gap: 3rem; align-items: start; }
  .versus-body > * { grid-column: 2; }
  .versus-body > h2 { grid-column: 1; margin-top: 0.2rem; padding-top: 0.6rem; border-top: 2px solid var(--ink); font-size: 1.3rem; }
  .versus-body > h2 ~ p:first-of-type { margin-top: 0; }
  .versus-body > table, .versus-body > .photo-inline, .versus-body > .photo-hero { grid-column: 1 / -1; }
  .versus-body table { display: table; overflow: visible; width: 100%; }
  .versus-body thead th { position: sticky; top: var(--head-h); z-index: 2; }
}
.versus-more { margin-top: 3rem; padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 1.5rem; }
.versus-more > h2 { margin-top: 0; }
.versus-more:has(ul:empty) { display: none; }

/* ---------- About: title and clipboard on one side, method on the other ---------- */
.method-page { max-width: var(--wide); margin: 0 auto; padding: 1.5rem var(--gutter) 3.5rem; }
.method-split { display: grid; gap: 2rem; }
.method-head { padding-bottom: 1rem; border-bottom: var(--total); }
.method-head h1 { max-width: 16ch; }
.method-body { max-width: var(--measure); }
.method-body > h2:first-child { margin-top: 0; }
.clipboard { margin: 1.5rem 0 0; display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.clip-art { display: block; width: 100%; height: auto; }
.clip-art .board { fill: var(--card); stroke: var(--ink); stroke-width: 3; }
.clip-art .sheet { fill: var(--card); stroke: var(--ink); stroke-width: 1.4; }
.clip-art .sheet-rule { stroke: var(--ink); stroke-width: 1.4; }
.clip-art .clip { fill: var(--ink); }
.clip-art .rows rect { fill: none; stroke: var(--ink); stroke-width: 2; }
.clip-art .rows path { stroke: var(--rule-soft); stroke-width: 3; stroke-linecap: round; }
.clip-art .checks path { fill: none; stroke: var(--green); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.clip-art .dash { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.clip-title { margin: 0 0 0.4rem; font-family: var(--head); font-weight: 700; font-size: 1.08rem; }
.clip-key ul { list-style: none; margin: 0; padding: 0; }
.clip-key li { padding: 0.4rem 0 0.4rem 1.6rem; border-top: 1px solid var(--rule-soft); position: relative; font-size: 0.97rem; line-height: 1.45; }
.clip-key li::before { content: "\2713"; position: absolute; left: 0.15rem; font-family: var(--head); font-weight: 800; color: var(--green); }
@media (min-width: 900px) {
  .method-split { grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)); gap: 4.5rem; align-items: start; }
  .method-lead { position: sticky; top: calc(var(--head-h) + 1.25rem); }
  .clipboard { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.75rem; }
}

/* ---------- Contact: ledger rows, labels left and fields right ---------- */
.contact { max-width: 58rem; margin: 0 auto; padding: 1.5rem var(--gutter) 3.5rem; }
.contact-head { padding-bottom: 1rem; margin-bottom: 1.75rem; border-bottom: var(--total); }
.ledger-form { border: 1px solid var(--ink); }
.ledger-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-legend {
  display: flex; align-items: baseline; gap: 0.75rem;
  float: left; width: 100%;
  padding: 0.6rem 1rem; background: var(--band);
  border-bottom: 1px solid var(--ink);
  font-family: var(--head); font-weight: 700; font-size: 1.1rem; line-height: 1.3; color: var(--ink);
}
.ledger-step + .ledger-step .step-legend { border-top: 1px solid var(--ink); }
.step-legend + * { clear: both; }
.step-num { font-family: var(--head); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--green-deep); }
.ledger-row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--rule-soft);
}
.ledger-step:last-of-type .ledger-row:last-child { border-bottom-color: var(--ink); }
.row-label { font-size: 0.98rem; line-height: 1.4; color: var(--fg-heading); }
.ledger-row input, .ledger-row textarea {
  font: inherit; font-size: 1rem; color: var(--fg-body); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 0; padding: 0.55rem 0.7rem; width: 100%;
}
.ledger-row input:focus-visible, .ledger-row textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--green); }
.ledger-submit { border-bottom: 0; }
.ledger-button {
  justify-self: start;
  font: inherit; font-family: var(--head); font-weight: 700; font-size: 1.05rem;
  padding: 0.65rem 1.5rem; border: 0; border-radius: 0; cursor: pointer;
  background: var(--green-deep); color: var(--on-green);
}
.ledger-button:hover { background: var(--ink); color: var(--on-green); }
.ledger-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (min-width: 640px) {
  .ledger-row { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; align-items: baseline; }
  .ledger-row .row-label { padding-top: 0.55rem; align-self: start; }
  .ledger-submit .ledger-button { grid-column: 2; }
}
.fix-note { margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 4px solid var(--green); }
.fix-note h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.fix-note p { margin: 0; font-size: 1rem; line-height: 1.6; }
.contact-body { max-width: var(--measure); margin-top: 2.75rem; }

/* ---------- Thank you: confirmation, then two link cards side by side ---------- */
.thanks { max-width: 52rem; margin: 0 auto; padding: clamp(2.5rem, 7vw, 4.5rem) var(--gutter) 4rem; }
.thanks-head { display: flex; align-items: center; gap: 1.25rem; padding-bottom: 1.25rem; border-bottom: var(--total); }
.thanks-icon { display: block; width: 3.4rem; height: auto; flex: none; }
.thanks-icon .board { fill: var(--card); stroke: var(--ink); stroke-width: 3; }
.thanks-icon .sheet { fill: var(--card); stroke: var(--ink); stroke-width: 1.2; }
.thanks-icon .clip { fill: var(--ink); }
.thanks-icon .tick { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.thanks-pair { display: grid; gap: 1rem; margin: 2rem 0 2.5rem; }
@media (min-width: 640px) { .thanks-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; } .pair-card + .pair-card { border-left: 0; } }
.pair-card { position: relative; padding: 1.1rem 1.25rem 1.2rem; border: 1px solid var(--ink); border-top: 6px solid var(--ink); }
.pair-card:hover { background: var(--band); }
.pair-mark { margin: 0 0 0.4rem; font-family: var(--head); font-weight: 800; font-size: 1.8rem; line-height: 1; color: var(--green-deep); }
.pair-title { margin: 0 0 0.4rem; font-family: var(--head); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.pair-title a { text-decoration: none; color: var(--ink); }
.pair-title a::after { content: ""; position: absolute; inset: 0; }
.pair-title a:hover { text-decoration: underline; text-decoration-color: var(--green); }
.pair-line { margin: 0; font-size: 0.98rem; line-height: 1.5; }
.thanks-body { max-width: var(--measure); }
.thanks-body > h2:first-child { margin-top: 0; }

/* ---------- Footer: a closing ledger total ---------- */
.site-footer { margin-top: 2rem; padding: 2rem var(--gutter) 2.6rem; border-top: var(--total); }
.footer-ledger { max-width: var(--wide); margin: 0 auto; display: grid; gap: 0.5rem 2rem; }
.footer-name { font-family: var(--head); font-weight: 800; font-size: 1.3rem; line-height: 1.15; margin: 0; }
.footer-line { margin: 0; font-size: 1rem; max-width: 34rem; }
.footer-links { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; font-size: 1rem; }
@media (min-width: 860px) {
  .footer-ledger { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .footer-links { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}

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