@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/outfit-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/outfit-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/outfit-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/outfit-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: 'Familjen Grotesk'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/familjen-grotesk-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Familjen Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/familjen-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Familjen Grotesk'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/familjen-grotesk-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Familjen Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/familjen-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Familjen Grotesk'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/familjen-grotesk-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Familjen Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Familjen Grotesk'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/familjen-grotesk-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Familjen Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/familjen-grotesk-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #e8ecf1;
  --fg-light-base-body: #131a2e;
  --fg-light-base-heading: #131a2e;
  --fg-light-base-muted: #4f576b;
  --fg-light-base-link: #2b3fd6;
  --fg-light-base-inverse: #131a2e;
  --bg-light-card: #ffffff;
  --fg-light-card-body: #131a2e;
  --fg-light-card-heading: #131a2e;
  --fg-light-card-muted: #4f576b;
  --fg-light-card-link: #2b3fd6;
  --fg-light-card-inverse: #131a2e;
  --bg-light-elevated: #f3f5f8;
  --fg-light-elevated-body: #131a2e;
  --fg-light-elevated-heading: #131a2e;
  --fg-light-elevated-muted: #4f576b;
  --fg-light-elevated-link: #2b3fd6;
  --fg-light-elevated-inverse: #131a2e;
  --brand-light-accent: #2b3fd6;
  --brand-light-accent-hover: #1d2b94;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #2b3fd6;
  --focus-ring: var(--focus-light-ring);
  --border-light-default: #6b7486;
  --border-light-subtle: #c9d1db;
}
.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-card-heading);
  --ink-muted: var(--fg-light-card-muted);
  --cobalt: var(--brand-light-accent);
  --cobalt-deep: var(--brand-light-accent-hover);
  --on-cobalt: var(--brand-light-on-accent);
  --panel: var(--bg-light-card);
  --panel-soft: var(--bg-light-elevated);
  --ground: var(--bg-light-base);
  --line: var(--border-light-default);
  --line-soft: var(--border-light-subtle);
  --face-head: 'Outfit', 'Avenir Next', sans-serif;
  --face-text: 'Familjen Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --wide: 74rem;
  --measure: 40rem;
  --bar-h: 4rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 1.5rem);
}

[id] { scroll-margin-top: calc(var(--bar-h) + 1.5rem); }

body {
  margin: 0;
  font-family: var(--face-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--panel);
  border: 2px solid var(--cobalt);
}

.skip-link:focus { top: 0.5rem; }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}

/* ---------- Header: sticky white bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 var(--line-soft);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: var(--wide);
  min-height: var(--bar-h);
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 1 auto;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--face-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.brand:hover { color: var(--cobalt-deep); }

.brand .site-logo {
  display: block;
  flex: none;
  width: 2rem;
  height: 2rem;
}

.brand-name { overflow-wrap: normal; }

nav.site-nav { display: none; }

details.site-menu { flex: none; }

details.site-menu > summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font-family: var(--face-head);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow-wrap: normal;
  cursor: pointer;
  list-style: none;
}

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

details.site-menu > summary:hover,
details.site-menu[open] > summary {
  border-color: var(--cobalt);
  color: var(--cobalt-deep);
}

.menu-icon {
  display: block;
  width: 1rem;
  height: 2px;
  background: var(--cobalt);
  box-shadow: 0 -5px 0 var(--cobalt), 0 5px 0 var(--cobalt);
}

.menu-label { white-space: nowrap; }

details.site-menu > ul {
  margin: 0;
  padding: 0.5rem 1rem 1rem;
  list-style: none;
}

details.site-menu[open] > ul {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--panel);
  border-bottom: 3px solid var(--cobalt);
  box-shadow: 0 0.75rem 1.5rem color-mix(in srgb, var(--ink) 12%, transparent);
}

details.site-menu ul ul {
  margin: 0;
  padding: 0 0 0 1rem;
  list-style: none;
}

details.site-menu li a {
  display: block;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-family: var(--face-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

details.site-menu li a:hover {
  color: var(--cobalt-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 64rem) {
  .topbar {
    gap: 2rem;
    padding: 0.5rem 1.5rem;
  }

  .brand { font-size: 1.15rem; }

  details.site-menu { display: none; }

  nav.site-nav { display: block; }

  nav.site-nav > ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  nav.site-nav > ul > li { position: relative; }

  nav.site-nav > ul > li > a,
  details.site-nav-group > summary {
    display: block;
    padding: 0.55rem 0.8rem;
    border-radius: 6px;
    color: var(--ink);
    font-family: var(--face-head);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow-wrap: normal;
    text-decoration: none;
    cursor: pointer;
  }

  details.site-nav-group > summary {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
  }

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

  details.site-nav-group > summary::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    margin-top: -0.2rem;
    border-right: 2px solid var(--cobalt);
    border-bottom: 2px solid var(--cobalt);
    transform: rotate(45deg);
  }

  details.site-nav-group[open] > summary::after {
    margin-top: 0.2rem;
    transform: rotate(-135deg);
  }

  nav.site-nav > ul > li > a:hover,
  details.site-nav-group > summary:hover,
  details.site-nav-group[open] > summary {
    background: var(--panel-soft);
    color: var(--cobalt-deep);
  }

  details.site-nav-group > ul {
    margin: 0;
    padding: 0.5rem;
    list-style: none;
  }

  details.site-nav-group[open] > ul {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 40;
    min-width: 17rem;
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-top: 3px solid var(--cobalt);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 0.75rem 1.5rem color-mix(in srgb, var(--ink) 12%, transparent);
  }

  details.site-nav-group li a {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 4px;
    color: var(--ink);
    font-family: var(--face-head);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
  }

  details.site-nav-group li a:hover {
    background: var(--panel-soft);
    color: var(--cobalt-deep);
  }
}

/* ---------- Ground, breadcrumbs, footer ---------- */

.ground {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1rem;
}

.breadcrumbs { padding: 1rem 0 0; }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.page { padding: 1.25rem 0 3.5rem; }

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

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.75rem 1rem 2rem;
}

.site-footer p { margin: 0; }

.footer-name {
  font-family: var(--face-head);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-line { max-width: 34rem; margin-top: 0.25rem; }

@media (min-width: 48rem) {
  .ground { padding: 0 1.5rem; }
  .footer-inner { padding: 2rem 1.5rem 2.25rem; }
  .page { padding: 1.75rem 0 4.5rem; }
}

/* ---------- Shared type and body content ---------- */

h1 {
  margin: 0;
  font-family: var(--face-head);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page h2,
.page h3 {
  font-family: var(--face-head);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.page h2 {
  margin: 2.25rem 0 0.75rem;
  font-weight: 600;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
}

.page h3 {
  margin: 1.75rem 0 0.5rem;
  font-weight: 600;
  font-size: 1.2rem;
}

.page p,
.page ul,
.page ol { max-width: var(--measure); }

.page p { margin: 0 0 1.05rem; }

.page ul,
.page ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }

.page li { margin-bottom: 0.45rem; }

.page ul > li::marker { color: var(--cobalt); }

.page ol > li::marker {
  color: var(--cobalt);
  font-family: var(--face-head);
  font-weight: 700;
}

.page strong { font-weight: 600; }

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

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

.accent-block {
  max-width: var(--measure);
  margin: 1.5rem 0;
  padding: 0.9rem 1.2rem;
  border-left: 4px solid var(--cobalt);
  background: var(--panel-soft);
}

.table-scroll {
  max-width: 100%;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.table-scroll table {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.table-scroll th,
.table-scroll td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.table-scroll th {
  background: var(--panel-soft);
  border-bottom: 2px solid var(--cobalt);
  font-family: var(--face-head);
  font-weight: 600;
  white-space: nowrap;
}

.photo-hero,
.photo-inline {
  max-width: var(--measure);
  margin: 0 0 1.75rem;
}

.photo-inline { margin-top: 1.5rem; }

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

/* ---------- Icon strokes ---------- */

.ic-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tick {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cross {
  fill: none;
  stroke: var(--line);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.rule-soft { fill: none; stroke: var(--line-soft); stroke-width: 1.5; }

.rank-dot { fill: var(--cobalt); }

.name-bar { fill: var(--line-soft); }

.star-line {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.band-off { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 3; }

/* ---------- Home: grid of panels ---------- */

.home-grid {
  display: grid;
  gap: 1rem;
}

.cover {
  display: grid;
  align-content: end;
  gap: 1.25rem;
  padding: 1.75rem 1.25rem;
  border-radius: 10px;
  border-top: 5px solid var(--cobalt);
}

.cover h1 { max-width: 16ch; font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); }

.cover-lines .display-line {
  max-width: 32rem;
  margin: 0;
  font-size: 1.1rem;
}

.cover-lines .display-line + .display-line {
  margin-top: 0.75rem;
  color: var(--ink-muted);
}

.scoreboard {
  margin: 0;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
}

.board { display: block; width: 100%; height: auto; }

.tile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--face-head);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.25;
}

.tile:hover {
  border-color: var(--cobalt);
  color: var(--cobalt-deep);
}

.tile:hover .tile-label {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.tile-icon {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.45rem;
  border-radius: 8px;
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
}

.home-body {
  padding: 1.5rem 1.25rem 1rem;
  border-radius: 10px;
}

.home-body > :first-child { margin-top: 0; }

@media (min-width: 48rem) {
  .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cover { grid-column: 1 / -1; padding: 2.25rem 2rem; }
  .scoreboard { grid-column: 1 / -1; }
  .home-body { grid-column: 1 / -1; padding: 2rem 2.25rem 1.25rem; }
}

@media (min-width: 64rem) {
  .home-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
  .cover { grid-column: 1 / 4; padding: 2.75rem 2.5rem; }
  .scoreboard { grid-column: 4 / 7; padding: 1.5rem; align-self: stretch; display: grid; align-items: center; }
  .tile { grid-column: span 2; flex-direction: column; align-items: flex-start; padding: 1.4rem; }
  .home-body {
    grid-column: 1 / -1;
    padding: 2.5rem 3rem 1.5rem;
    columns: 2 22rem;
    column-gap: 3.5rem;
  }
  .home-body h2 { break-after: avoid; }
  .home-body p { break-inside: avoid; }
}

/* ---------- Ranking: stepped ladder ---------- */

.rank-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.75rem 1.25rem;
  border-radius: 10px;
  border-left: 6px solid var(--cobalt);
}

.rank-head h1 { max-width: 20ch; }

.rank-icons { width: 7.5rem; height: auto; flex: none; }

.ladder {
  margin-top: 1rem;
  padding: 1.5rem 1.25rem 1rem;
  border-radius: 10px;
}

.ladder > :first-child { margin-top: 0; }

.ladder ol {
  max-width: 44rem;
  padding-left: 3.25rem;
}

.ladder ol > li {
  margin-bottom: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--cobalt);
  background: var(--panel-soft);
  border-radius: 0 6px 6px 0;
}

.ladder ol > li::marker {
  font-size: 1.7rem;
  line-height: 1;
}

.ladder h3 {
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

.rank-links {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
}

.rank-links ul {
  display: grid;
  gap: 0.5rem;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-links li { margin: 0; }

.rank-links a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-left: 3px solid var(--cobalt);
  font-family: var(--face-head);
  font-weight: 500;
  line-height: 1.3;
}

@media (min-width: 48rem) {
  .rank-head { padding: 2.25rem 2rem; }
  .ladder { padding: 2rem 2.25rem 1.25rem; }
  .rank-links { padding: 1.5rem 2rem; }
  .rank-links ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .ladder { padding: 2.5rem 3rem 1.5rem; }
  .ladder ol > li:nth-child(2) { margin-left: 1.25rem; }
  .ladder ol > li:nth-child(3) { margin-left: 2.5rem; }
  .ladder ol > li:nth-child(4) { margin-left: 3.75rem; }
  .ladder ol > li:nth-child(n + 5) { margin-left: 5rem; }
  .rank-links ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Comparison: one column, matrix and verdict strip ---------- */

.page-compare { max-width: 52rem; }

.compare-head h1 { max-width: 22ch; }

.compare-marks {
  display: block;
  width: 7.5rem;
  height: auto;
  margin: 1rem 0 1.25rem;
}

.compare-body {
  padding: 1.5rem 1.25rem 1rem;
  border-radius: 10px;
  border-top: 5px solid var(--cobalt);
}

.compare-body > :first-child { margin-top: 0; }

.compare-body ul {
  padding-left: 0;
  list-style: none;
}

.compare-body ul > li {
  position: relative;
  padding-left: 1.75rem;
}

.compare-body ul > li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cobalt);
  font-weight: 700;
}

.compare-body > h2:last-of-type {
  margin: 2.5rem -1.25rem 0;
  padding: 1rem 1.25rem 0;
  border-top: 3px solid var(--cobalt);
  background: var(--panel-soft);
}

.compare-body > h2:last-of-type ~ * {
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  margin-bottom: 0;
  padding: 0.5rem 1.25rem 1rem;
  max-width: none;
  background: var(--panel-soft);
}

.compare-body > h2:last-of-type ~ :last-child {
  margin-bottom: -1rem;
  padding-bottom: 1.5rem;
  border-radius: 0 0 10px 10px;
}

@media (min-width: 48rem) {
  .compare-body { padding: 2rem 2.25rem 1.25rem; }
  .compare-body > h2:last-of-type { margin-left: -2.25rem; margin-right: -2.25rem; padding: 1.25rem 2.25rem 0; }
  .compare-body > h2:last-of-type ~ * { margin-left: -2.25rem; margin-right: -2.25rem; padding: 0.5rem 2.25rem 1rem; }
  .compare-body > h2:last-of-type ~ :last-child { margin-bottom: -1.25rem; padding-bottom: 1.75rem; }
}

@media (min-width: 64rem) {
  .compare-body .table-scroll { overflow: visible; }
  .compare-body .table-scroll th {
    position: sticky;
    top: var(--bar-h);
    z-index: 1;
  }
}

/* ---------- Provider review: assessment plus scorecard ---------- */

.review-head h1 { max-width: 20ch; }

.review-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.review-body {
  padding: 1.5rem 1.25rem 1rem;
  border-radius: 10px;
}

.review-body > :first-child { margin-top: 0; }

.review-body h2 {
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line-soft);
}

.scorecard {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  padding: 1.25rem;
  border-radius: 10px;
  border-top: 5px solid var(--cobalt);
}

.card-stars { width: 9rem; height: auto; }

.card-services { width: 9rem; height: auto; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); }

.card-price { width: 9rem; height: auto; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); box-sizing: content-box; }

@media (min-width: 48rem) {
  .review-body { padding: 2rem 2.25rem 1.25rem; }
}

@media (min-width: 60rem) {
  .review-grid {
    grid-template-columns: minmax(0, 1fr) 15rem;
    gap: 1.25rem;
    align-items: start;
  }

  .scorecard {
    position: sticky;
    top: calc(var(--bar-h) + 1.25rem);
    order: 2;
  }
}

/* ---------- About: stepped checklist ---------- */

.method-head {
  display: grid;
  gap: 1rem;
  padding: 1.75rem 1.25rem;
  border-radius: 10px;
  border-left: 6px solid var(--cobalt);
}

.method-icons { width: 4.5rem; height: auto; }

.method-head h1 { max-width: 20ch; }

.method-steps {
  margin-top: 1rem;
  padding: 1.5rem 1.25rem 1rem;
  border-radius: 10px;
}

.method-steps > :first-child { margin-top: 0; }

.method-steps > h2 {
  position: relative;
  padding-left: 2.4rem;
}

.method-steps > h2::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.05em;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid var(--cobalt);
  border-radius: 5px;
  color: var(--cobalt);
  font-size: 0.95rem;
  font-weight: 700;
}

.method-steps > h2 ~ * { padding-left: 2.4rem; }

.method-steps > h2 ~ ul,
.method-steps > h2 ~ ol { padding-left: 3.8rem; }

@media (min-width: 48rem) {
  .method-head { padding: 2.25rem 2rem; }
  .method-steps { padding: 2rem 2.25rem 1.25rem; }
}

@media (min-width: 64rem) {
  .method-steps { padding: 2.5rem 3rem 1.5rem; }
  .method-steps > h2:nth-of-type(2),
  .method-steps > h2:nth-of-type(2) ~ * { margin-left: 2rem; }
  .method-steps > h2:nth-of-type(3),
  .method-steps > h2:nth-of-type(3) ~ * { margin-left: 4rem; }
  .method-steps > h2:nth-of-type(4),
  .method-steps > h2:nth-of-type(4) ~ * { margin-left: 6rem; }
  .method-steps > h2:nth-of-type(n + 5),
  .method-steps > h2:nth-of-type(n + 5) ~ * { margin-left: 8rem; }
}

/* ---------- Contact: note beside form panel ---------- */

.contact-split {
  display: grid;
  gap: 1.5rem;
}

.contact-title h1 { max-width: 16ch; }

.contact-body { margin-top: 1.25rem; }

.contact-body h2 { font-size: 1.25rem; }

.correction {
  align-self: start;
  padding: 1.5rem 1.25rem;
  border-radius: 10px;
  border-top: 5px solid var(--cobalt);
}

.fields {
  display: grid;
  gap: 1.1rem 1.25rem;
}

.field { display: grid; gap: 0.35rem; }

.field-label {
  font-family: var(--face-head);
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

.field textarea { resize: vertical; }

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

.submit {
  margin-top: 1.4rem;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 6px;
  background: var(--cobalt);
  color: var(--on-cobalt);
  font-family: var(--face-head);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.submit:hover { background: var(--cobalt-deep); }

@media (min-width: 40rem) {
  .fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .field-wide { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  .contact-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3rem;
    align-items: start;
  }

  .correction {
    position: sticky;
    top: calc(var(--bar-h) + 1.5rem);
    padding: 2rem 2rem 2.25rem;
  }
}

/* ---------- Thank you: centred panel ---------- */

.page-thanks {
  display: grid;
  justify-items: center;
}

.thanks-panel {
  width: 100%;
  max-width: 40rem;
  padding: 2rem 1.25rem;
  border-radius: 10px;
  border-top: 5px solid var(--cobalt);
  text-align: center;
}

.thanks-tick {
  display: block;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
}

.tick-ring { fill: none; stroke: var(--cobalt); stroke-width: 3; }

.thanks-title h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }

.thanks-body { margin-top: 1.25rem; text-align: left; }

.thanks-body p,
.thanks-body h2 { margin-left: auto; margin-right: auto; }

.thanks-body h2 { max-width: var(--measure); font-size: 1.25rem; }

.thanks-back {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--face-head);
  font-weight: 600;
  font-size: 1.05rem;
}

@media (min-width: 48rem) {
  .thanks-panel { padding: 2.75rem 2.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  nav.site-nav > ul > li > a,
  details.site-nav-group > summary,
  details.site-menu > summary,
  .tile,
  .submit { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
}
