@font-face { font-family: 'Asul'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/asul-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Asul'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/asul-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/spectral-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/spectral-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/spectral-latin-600-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f9fbf9;
  --fg-light-base-body: #17211a;
  --fg-light-base-heading: #17211a;
  --fg-light-base-muted: #4a584e;
  --fg-light-base-link: #1f5c24;
  --fg-light-base-inverse: #1f3a24;
  --bg-light-card: #eef4ee;
  --fg-light-card-body: #17211a;
  --fg-light-card-heading: #17211a;
  --fg-light-card-muted: #4a584e;
  --fg-light-card-link: #1f5c24;
  --fg-light-card-inverse: #1f3a24;
  --bg-light-elevated: #e1ebe1;
  --fg-light-elevated-body: #17211a;
  --fg-light-elevated-heading: #17211a;
  --fg-light-elevated-muted: #4a584e;
  --fg-light-elevated-link: #1f5c24;
  --fg-light-elevated-inverse: #1f3a24;
  --brand-light-accent: #2e7d32;
  --brand-light-accent-hover: #1f5c24;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #2e7d32;
  --border-light-default: #76857a;
  --border-light-subtle: #d3ded3;
}
.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; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-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; }
: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-light-ring); }

:root {
  --font-head: 'Asul', Georgia, 'Times New Roman', serif;
  --font-text: 'Spectral', Georgia, 'Times New Roman', serif;
  --leaf: var(--brand-light-accent);
  --leaf-deep: var(--brand-light-accent-hover);
  --line: var(--border-light-subtle);
  --line-strong: var(--border-light-default);
  --measure: 40rem;
  --wide: 74rem;
  --gutter: clamp(1rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-variant-numeric: lining-nums tabular-nums;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--fg-heading);
  line-height: 1.18;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); margin: 0 0 1rem; max-width: 22ch; }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem); margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }

p { margin: 0 0 1.1rem; }

a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link { position: absolute; left: 1rem; top: -3rem; padding: 0.5rem 0.75rem; background: var(--bg-light-base); z-index: 30; }
.skip-link:focus { top: 1rem; }

/* Header: static, logo artwork carries the name, mega-panel groups on desktop */
.site-header { position: static; border-bottom: 3px solid var(--leaf); }
.site-header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 2.75rem; }
.brand .site-logo { display: block; width: clamp(13rem, 40vw, 17.5rem); height: auto; }

.site-nav { display: none; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem 1.5rem; }
.site-nav > ul > li { position: relative; }
.site-nav a, .site-nav-group > summary {
  font-family: var(--font-head);
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--leaf); }
.site-nav-group > summary { cursor: pointer; list-style: none; color: var(--fg-link); }
.site-nav-group > summary::-webkit-details-marker { display: none; }
.site-nav-group > summary::after {
  content: '';
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.2rem) rotate(45deg);
}
.site-nav-group[open] > summary { border-bottom-color: var(--leaf); }
.site-nav-group > ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  z-index: 20;
  width: min(36rem, 80vw);
  margin: 0;
  padding: 1.25rem 1.5rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1.5rem;
  background: var(--bg-light-base);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--leaf);
}

.site-menu { position: relative; }
.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  height: 2px;
  background: var(--leaf-deep);
}
.menu-icon { position: relative; width: 1.1rem; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -0.35rem; width: 1.1rem; }
.menu-icon::after { top: 0.35rem; width: 0.65rem; }
.site-menu[open] .menu-icon { background: transparent; }
.site-menu[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
.site-menu[open] .menu-icon::after { top: 0; width: 1.1rem; transform: rotate(-45deg); }
.site-menu > ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 20;
  min-width: 15rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--bg-light-base);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--leaf);
}
.site-menu ul a { display: block; padding: 0.6rem 1.1rem; text-decoration: none; }
.site-menu ul ul { list-style: none; padding-left: 1rem; }

@media (min-width: 60rem) {
  .site-nav { display: block; }
  .site-menu { display: none; }
}

/* Page frame and breadcrumbs */
.page-frame { flex: 1; width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.breadcrumbs { margin-top: 1.25rem; font-size: 0.92rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.breadcrumbs li + li::before { content: '/'; margin-right: 0.5rem; color: var(--fg-muted); }

main { padding: clamp(1.75rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
main:focus { outline: none; }

/* Reading column */
.prose { max-width: var(--measure); min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--leaf-deep); }
.prose blockquote { margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.1rem; border-left: 3px solid var(--leaf); font-style: italic; }

.photo-hero { margin: 0 0 2rem; }
.photo-hero img { display: block; width: 100%; height: auto; max-height: 24rem; object-fit: cover; border-radius: 4px; }

/* Tabular data rows: markdown tables and the method box share one form */
.prose table, .data-rows {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 1.25rem 0 1.75rem;
}
.prose table { display: block; overflow-x: auto; }
.prose th, .prose td, .data-rows th, .data-rows td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.prose thead th {
  font-family: var(--font-head);
  font-weight: 700;
  border-bottom: 2px solid var(--leaf);
}
.prose tbody tr:hover { background: var(--bg-light-card); }
.data-rows th { font-family: var(--font-head); font-weight: 400; width: 40%; color: var(--fg-muted); }

/* Score bars: decorative rules in the leaf accent */
.score-bar {
  display: block;
  height: 0.45rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--leaf) var(--fill, 100%), var(--line) var(--fill, 100%));
}
.score-bar-full { --fill: 100%; }
.score-bar-high { --fill: 82%; }
.score-bar-mid { --fill: 64%; }
.score-bar-low { --fill: 46%; }

/* Home: cover, then ranked shortlist left and method box right */
.home-cover { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.home-lines { max-width: 36rem; }
.display-line { font-size: 1.15rem; margin: 0 0 0.35rem; }
.display-line:first-child { font-style: italic; }
.home-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.home-main { min-width: 0; }
.shortlist { list-style: none; counter-reset: rank; margin: 0 0 2.75rem; padding: 0; max-width: var(--measure); }
.shortlist-row {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.shortlist-row::before {
  content: counter(rank);
  grid-row: span 2;
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--leaf-deep);
}
.shortlist-row a { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.35; }
.method-box {
  align-self: start;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 4px solid var(--leaf);
  border-radius: 0 0 4px 4px;
}
.method-title { margin-top: 0; font-size: 1.25rem; }
.method-box .data-rows { margin: 0.5rem 0 1.25rem; }
.method-more { margin: 0; }

@media (min-width: 56rem) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 21rem; }
}

/* Ranking list: stepped rows from first place down */
.ranking-head { margin-bottom: 1.5rem; }
.ranking-key { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 0.95rem; }
.ranking-key .score-bar { width: 3rem; }
.ranking-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.ranking-body ol { list-style: none; counter-reset: step var(--start, 0); padding: 0; margin: 1rem 0 2rem; }
.ranking-body ol > li {
  position: relative;
  padding: 0.75rem 0 0.75rem 3.25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.05rem;
}
.ranking-body ol > li:nth-child(2) { margin-left: 0.75rem; }
.ranking-body ol > li:nth-child(3) { margin-left: 1.5rem; }
.ranking-body ol > li:nth-child(4) { margin-left: 2.25rem; }
.ranking-body ol > li:nth-child(n+5) { margin-left: 3rem; }
.ranking-body ol > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.25rem;
  height: 0.4rem;
  margin-top: -0.2rem;
  border-radius: 2px;
  background: var(--leaf);
}
.ranking-side, .versus-more, .thanks-links {
  align-self: start;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  border-left: 4px solid var(--leaf);
  border-radius: 0 4px 4px 0;
}
.side-title { margin-top: 0; font-size: 1.1rem; }
.ranking-side ul, .versus-more ul, .thanks-links ul { list-style: none; margin: 0; padding: 0; }
.ranking-side li, .versus-more li, .thanks-links li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.ranking-side li:last-child, .versus-more li:last-child, .thanks-links li:last-child { border-bottom: 0; }

@media (min-width: 56rem) {
  .ranking-grid { grid-template-columns: minmax(0, 1fr) 19rem; }
}

/* Provider review: profile left, score card right */
.profile-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.profile-main { min-width: 0; }
.profile-body ul { list-style: none; padding: 0; }
.profile-body ul li { padding: 0.5rem 0 0.5rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; }
.profile-body ul li::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 0.95rem;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--leaf);
  border-bottom: 2px solid var(--leaf);
  transform: rotate(-45deg);
}
.score-card {
  align-self: start;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 4px solid var(--leaf);
  border-radius: 0 0 4px 4px;
}
.score-card-title { margin-top: 0; font-size: 1.2rem; }
.score-steps { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.score-steps li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.score-steps .score-bar { margin-bottom: 0.5rem; }
.score-card-links { list-style: none; margin: 0; padding: 0; }
.score-card-links li { padding: 0.3rem 0; }

@media (min-width: 56rem) {
  .profile-grid { grid-template-columns: minmax(0, 1fr) 20rem; }
  .score-card { position: sticky; top: 1.5rem; }
}

/* Comparison: split head-to-head */
.versus-split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); margin-bottom: 2.5rem; }
.versus-head {
  align-self: start;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 4px;
  border-bottom: 4px solid var(--leaf);
}
.versus-head h1 { margin: 0; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); }
.versus-body { min-width: 0; max-width: none; }
.versus-body > p, .versus-body > ul, .versus-body > h2 { max-width: var(--measure); }
.versus-body tbody td:last-child { font-family: var(--font-head); color: var(--fg-heading); }
.versus-more { max-width: 34rem; }

@media (min-width: 56rem) {
  .versus-split { grid-template-columns: 18rem minmax(0, 1fr); }
  .versus-head { position: sticky; top: 1.5rem; }
}

/* About: the method as numbered stages */
.method-head { margin-bottom: 1.5rem; }
.method-steps { counter-reset: stage; }
.method-steps h2 {
  counter-increment: stage;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: baseline;
  column-gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.method-steps h2::before {
  content: counter(stage);
  font-size: 1.5rem;
  color: var(--leaf-deep);
}
.method-steps h2 ~ p, .method-steps h2 ~ ul { margin-left: 3.25rem; }

/* Contact and thank-you: note left, panel right */
.contact-grid, .thanks-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.contact-note, .thanks-note { min-width: 0; }
.contact-form {
  align-self: start;
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 4px solid var(--leaf);
  border-radius: 0 0 4px 4px;
}
.field { display: grid; gap: 0.35rem; }
.field label { font-family: var(--font-head); font-size: 0.98rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  min-height: 2.75rem;
  color: var(--fg-body);
  background: var(--bg-light-base);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--leaf); outline-offset: 1px; }
.form-submit {
  justify-self: start;
  min-height: 2.75rem;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--brand-light-on-accent);
  background: var(--leaf);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}
.form-submit:hover { background: var(--leaf-deep); }

@media (min-width: 56rem) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) 22rem; }
  .thanks-grid { grid-template-columns: minmax(0, 1fr) 19rem; }
}

/* Footer */
.site-footer { margin-top: auto; border-top: 3px solid var(--leaf); }
.site-footer-inner { max-width: var(--wide); margin: 0 auto; padding: 2rem var(--gutter) 2.5rem; }
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin: 0 0 0.4rem; }
.footer-line { max-width: 42rem; font-size: 0.95rem; }
.footer-links { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links a { display: inline-block; padding: 0.3rem 0; }

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