@font-face { font-family: 'Karantina'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/karantina-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karantina'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/karantina-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Karantina'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/karantina-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya Sans SC'; font-style: italic; font-weight: 100; font-display: swap; src: url("/assets/fonts/alegreya-sans-sc-latin-100-italic.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya Sans SC'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/alegreya-sans-sc-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya Sans SC'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/alegreya-sans-sc-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya Sans SC'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/alegreya-sans-sc-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya Sans SC'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/alegreya-sans-sc-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya Sans SC'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/alegreya-sans-sc-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya Sans SC'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/alegreya-sans-sc-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya Sans SC'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/alegreya-sans-sc-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya Sans SC'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/alegreya-sans-sc-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya Sans SC'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/alegreya-sans-sc-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya Sans SC'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/alegreya-sans-sc-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya Sans SC'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/alegreya-sans-sc-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya Sans SC'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/alegreya-sans-sc-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Alegreya Sans SC'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/alegreya-sans-sc-latin-900-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f2f5f8;
  --fg-light-base-body: #16202c;
  --fg-light-base-heading: #16202c;
  --fg-light-base-muted: #4a5768;
  --fg-light-base-link: #252dc1;
  --fg-light-base-inverse: #16202c;
  --bg-light-card: #ffffff;
  --fg-light-card-body: #16202c;
  --fg-light-card-heading: #16202c;
  --fg-light-card-muted: #4a5768;
  --fg-light-card-link: #252dc1;
  --fg-light-card-inverse: #16202c;
  --bg-light-elevated: #e2e8ef;
  --fg-light-elevated-body: #16202c;
  --fg-light-elevated-heading: #16202c;
  --fg-light-elevated-muted: #4a5768;
  --fg-light-elevated-link: #252dc1;
  --fg-light-elevated-inverse: #16202c;
  --brand-light-accent: #252dc1;
  --brand-light-accent-hover: #1a1e93;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #252dc1;
  --focus-ring: var(--focus-light-ring);
  --border-light-default: #68778a;
  --border-light-subtle: #c9d3de;
}
.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 {
  --slate: var(--bg-light-base);
  --white: var(--bg-light-card);
  --slate-deep: var(--bg-light-elevated);
  --blue: var(--brand-light-accent);
  --blue-deep: var(--brand-light-accent-hover);
  --on-blue: var(--brand-light-on-accent);
  --rule: var(--border-light-default);
  --rule-soft: var(--border-light-subtle);
  --ink: #16202c;
  --display: 'Karantina', 'Arial Narrow', sans-serif;
  --text: 'Alegreya Sans SC', sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wide: 76rem;
}

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

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

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--fg-heading);
  letter-spacing: 0.01em;
}

h1 { margin: 0; font-size: clamp(3.2rem, 9vw, 6.2rem); line-height: 0.92; text-wrap: balance; }

/* ---------- Header: static bar with a mega-panel menu ---------- */

.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 3px solid var(--ink);
}

.header-bar {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.brand .site-logo { display: block; width: auto; height: 2.75rem; max-width: 100%; }

.brand:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.site-header .site-menu { position: static; flex: none; }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.95rem;
  list-style: none;
  cursor: pointer;
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  color: var(--fg-heading);
  background: var(--white);
}

.site-menu > summary::-webkit-details-marker { display: none; }

.site-menu > summary:hover { background: var(--slate-deep); color: var(--fg-heading); }

.site-menu > summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.site-menu[open] > summary { background: var(--ink); color: var(--white); }

.menu-icon {
  position: relative;
  display: inline-block;
  width: 1.1rem;
  height: 0.8rem;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  height: 3px;
  border-radius: 1px;
  background: currentColor;
}

.menu-icon::before { top: 0.05rem; width: 100%; }
.menu-icon::after { bottom: 0.05rem; width: 60%; }

.site-menu > ul {
  margin: 0;
  list-style: none;
}

.site-menu[open] > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0.5rem var(--gutter) 1.25rem;
  background: var(--white);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 18px 30px -24px var(--ink);
}

.site-menu li {
  position: relative;
  padding: 0.9rem 0 1.1rem;
  border-bottom: 1px solid var(--rule-soft);
}

.site-menu li::after {
  content: "";
  display: block;
  height: 6px;
  width: 55%;
  margin-top: 0.55rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue) 0 70%, var(--rule-soft) 70% 100%);
}

.site-menu a {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  color: var(--fg-heading);
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: var(--blue-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
}

.site-menu a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

@media (min-width: 760px) {
  .site-menu[open] > ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 1.5rem max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))) 2rem;
  }
  .site-menu li {
    padding: 0.4rem 1.25rem 0.6rem;
    border-bottom: 0;
    border-left: 1px solid var(--rule-soft);
  }
  .site-menu li:first-child { border-left: 0; padding-left: 0; }
  .site-menu a { font-size: 2.4rem; }
}

@media (max-width: 420px) {
  .brand .site-logo { height: 2.25rem; }
  .site-menu > summary { padding: 0.4rem 0.7rem; font-size: 1rem; }
}

/* ---------- Links ---------- */

.text-role-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.text-role-link:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }

.text-role-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Page frame ---------- */

.page-frame {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 7vw, 5rem);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.55rem;
  color: var(--rule);
}

/* ---------- Icons and drawn parts ---------- */

.ico { display: block; width: 2.6rem; height: 2.6rem; flex: none; }
.ico g, .star-meter g, .board g { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ico .ln { stroke: var(--ink); stroke-width: 2.2; }
.ico .hl { stroke: var(--blue); stroke-width: 2.6; }
.ico .hl.fill, .star-meter .hl.fill { fill: var(--blue); stroke: none; }

.icon-row { display: flex; gap: 0.9rem; margin-bottom: 1.1rem; }

/* ---------- Prose ---------- */

.prose { max-width: 42rem; }

.prose h2 {
  font-size: clamp(2.1rem, 4.2vw, 2.8rem);
  line-height: 1;
  margin: 2.6rem 0 0.8rem;
  padding-top: 0.8rem;
  border-top: 3px solid var(--ink);
}

.prose h3 { font-size: 1.9rem; line-height: 1.05; margin: 2rem 0 0.5rem; }

.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.45rem; }
.prose ul > li::marker { color: var(--blue); }
.prose strong { font-weight: 700; }

.prose .table-scroll { overflow-x: auto; margin: 0 0 1.4rem; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.35;
  background: var(--white);
  border-top: 3px solid var(--ink);
}

.prose th {
  text-align: left;
  padding: 0.55rem 0.7rem;
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
}

.prose td { padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; overflow-wrap: break-word; word-break: normal; hyphens: manual; }
.prose tbody tr:nth-child(even) td { background: var(--slate); }

.prose figure { margin: 1.8rem 0; }

.prose .photo-hero img,
.prose .photo-inline img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.prose .photo-hero img { aspect-ratio: 16 / 9; object-fit: cover; }
.prose figcaption { font-size: 0.95rem; margin-top: 0.5rem; }

/* ---------- Home: scoreboard grid ---------- */

.board-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  padding-top: clamp(1.75rem, 5vw, 3.25rem);
}

.cover-title h1 { max-width: 11ch; }

.cover-lines { margin-top: 1.4rem; max-width: 34rem; }

.display-line {
  margin: 0;
  padding: 0.7rem 0 0.7rem 2.6rem;
  position: relative;
  border-top: 1px solid var(--rule-soft);
  font-size: 1.15rem;
  line-height: 1.45;
}

.display-line:last-child { border-bottom: 1px solid var(--rule-soft); }

.display-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 1.8rem;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--blue);
}

.display-line + .display-line::before { width: 1.2rem; }

.scoreboard { margin: 0; }

.board { display: block; width: 100%; height: auto; }
.board .sb-panel { fill: #16202c; }
.board .sb-headrule { fill: #5b63f0; }
.board .sb-rank { fill: #2c3848; }
.board .sb-name { fill: #c9d3de; }
.board .sb-sub { fill: #68778a; }
.board .sb-track { fill: #2c3848; }
.board .sb-fill { fill: #8f97ff; transform-box: fill-box; transform-origin: left center; animation: bar-fill 900ms cubic-bezier(.2, .7, .2, 1) both; }
.board .sb-row:nth-child(4) .sb-fill { animation-delay: 80ms; }
.board .sb-row:nth-child(5) .sb-fill { animation-delay: 160ms; }
.board .sb-row:nth-child(6) .sb-fill { animation-delay: 240ms; }
.board .sb-row:nth-child(7) .sb-fill { animation-delay: 320ms; }
.board .sb-row:nth-child(8) .sb-fill { animation-delay: 400ms; }

@keyframes bar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.treatment-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--rule-soft);
}

.home-prose { max-width: 46rem; }

.home-prose .photo-hero { margin-top: 0; }

.home-prose ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0;
  list-style: none;
}

.home-prose ul > li {
  margin: 0;
  padding: 1rem 1.1rem 1.1rem 4.2rem;
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-top: 4px solid var(--blue);
  border-radius: 4px;
}

.home-prose ul > li::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.15rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue) 0 32%, transparent 34%);
}

.home-prose ul > li > a:first-child { font-weight: 700; }

@media (min-width: 640px) {
  .home-prose ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .board-home {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
  }
  .treatment-strip, .home-prose { grid-column: 1 / -1; }
  .home-prose { max-width: none; display: grid; grid-template-columns: minmax(0, 46rem); }
}

/* ---------- Ranked list: one column ---------- */

.rank-page { max-width: 48rem; padding-top: clamp(1.75rem, 4vw, 3rem); }

.rank-head { padding-bottom: 1.25rem; border-bottom: 3px solid var(--ink); }

.rank-title h1 { font-size: clamp(2.8rem, 7.5vw, 5rem); }

.rank-prose { max-width: none; margin-top: 1.4rem; }

.rank-prose ol {
  padding-left: 4.2rem;
  margin: 1.2rem 0 1.8rem;
  border-top: 1px solid var(--rule-soft);
}

.rank-prose ol > li {
  padding: 0.9rem 0 0.9rem 0.6rem;
  margin: 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.rank-prose ol > li::marker {
  font-family: var(--display);
  font-size: 3.2rem;
  color: var(--blue);
}

/* ---------- Provider profile: two columns ---------- */

.profile-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding-top: clamp(1.75rem, 4vw, 3rem);
}

.profile-side { padding-bottom: 1.25rem; border-bottom: 3px solid var(--ink); }

.profile-title h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); }

.star-meter { display: block; width: 12.5rem; height: auto; margin-top: 1.2rem; }
.star-meter .meter-track { fill: var(--rule-soft); }
.star-meter .meter-fill { fill: var(--blue); }

.profile-prose > ul {
  padding: 0.9rem 1rem 0.9rem 2.4rem;
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-left: 4px solid var(--blue);
}

@media (min-width: 900px) {
  .profile-page {
    grid-template-columns: minmax(15rem, 20rem) minmax(0, 44rem);
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
  }
  .profile-side { border-bottom: 0; border-top: 3px solid var(--ink); padding-top: 1.1rem; }
}

/* ---------- Comparison: split ---------- */

.versus-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding-top: clamp(1.75rem, 4vw, 3rem);
}

.versus-title h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); }

.versus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.4rem;
  border-top: 3px solid var(--ink);
}

.vs-col { display: flex; flex-direction: column; align-items: center; padding: 1rem 0 0.4rem; }
.vs-col + .vs-col { border-left: 1px solid var(--rule); }
.vs-col > .ico { width: 3.4rem; height: 3.4rem; margin-bottom: 0.5rem; }

.vs-row { display: block; width: 100%; padding: 0.35rem 0; border-top: 1px solid var(--rule-soft); }
.vs-row .ico { width: 1.6rem; height: 1.6rem; margin: 0 auto; }

.versus-prose { max-width: none; }

@media (min-width: 960px) {
  .versus-page {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
  }
  .versus-side { position: sticky; top: 1.5rem; }
}

/* ---------- About: method grid ---------- */

.method-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding-top: clamp(1.75rem, 4vw, 3rem);
}

.method-title h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); }

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 3px solid var(--ink);
  border-left: 1px solid var(--rule-soft);
}

.criterion {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  background: var(--white);
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

@media (min-width: 900px) {
  .method-page {
    grid-template-columns: minmax(14rem, 18rem) minmax(0, 44rem);
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
  }
  .method-title { grid-column: 1 / -1; }
  .criteria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .criterion { padding: 1.5rem 0; }
  .criterion .ico { width: 3.2rem; height: 3.2rem; }
  .method-prose { grid-column: 2; grid-row: 2; }
  .criteria-grid { grid-column: 1; grid-row: 2; }
}

/* ---------- Contact: split ---------- */

.tip-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-top: clamp(1.75rem, 4vw, 3rem);
}

.tip-title h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); }

.tip-prose { margin-top: 1.2rem; }

.tip-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--rule-soft);
  border-top: 4px solid var(--blue);
  border-radius: 4px;
  align-self: start;
}

@media (min-width: 560px) {
  .tip-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .tip-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2.5rem, 5vw, 4.5rem); }
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 1.05rem; }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--fg-body);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.55rem 0.7rem;
}

.field textarea { resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }

.tip-button {
  font: inherit;
  font-weight: 700;
  color: var(--on-blue);
  background: var(--blue);
  border: 0;
  border-radius: 3px;
  min-height: 2.75rem;
  padding: 0.6rem 1.6rem;
  cursor: pointer;
}

.tip-button:hover { background: var(--blue-deep); color: var(--on-blue); }
.tip-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- Thank-you: one column ---------- */

.done-page { max-width: 40rem; padding-top: clamp(2.25rem, 6vw, 4rem); }

.done-bar { display: block; width: min(100%, 20rem); height: auto; margin-bottom: 1.4rem; }
.done-bar .done-track { fill: var(--rule-soft); }
.done-bar .done-fill { fill: var(--blue); transform-box: fill-box; transform-origin: left center; animation: bar-fill 1200ms cubic-bezier(.2, .7, .2, 1) both; }

.done-title h1 { font-size: clamp(3rem, 8vw, 5rem); }

.done-prose { margin-top: 1.4rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 3px solid var(--ink); }

.footer-grid {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.75rem var(--gutter) 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.footer-name { margin: 0; font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; }
.footer-line { margin: 0; }

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

.rank-index { margin-top: 2.2rem; border-top: 3px solid var(--ink); }

.rank-index ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-index li {
  padding: 0.85rem 0 0.85rem 0.2rem;
  border-bottom: 1px solid var(--rule-soft);
}

.rank-index li::after {
  content: "";
  display: block;
  width: 40%;
  height: 5px;
  margin-top: 0.4rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue) 0 70%, var(--rule-soft) 70% 100%);
}

.rank-index a { font-weight: 700; font-size: 1.15rem; }

@media (min-width: 640px) {
  .rank-index ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
}
