:root,
[data-theme="dark"] {
  --page: #0D0208;
  --card: #003B00;
  --muted: #008F11;
  --ink: #00FF41;
  --grid: rgba(0, 143, 17, 0.08);
  --cta-text: #0D0208;
  color-scheme: dark;
}

[data-theme="light"] {
  --page: #FFFFFF;
  --card: #EBEBFF;
  --muted: #01008F;
  --ink: #0100FF;
  --grid: rgba(1, 0, 255, 0.08);
  --cta-text: #FFFFFF;
  color-scheme: light;
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .nav { view-transition-name: site-nav; }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.35s;
    animation-timing-function: ease;
  }
}

html, body { margin: 0; min-height: 100%; background: var(--page); color: var(--ink); }
html.colors-ready,
html.colors-ready body,
html.colors-ready .nav,
html.colors-ready .site-footer,
html.colors-ready .card,
html.colors-ready .prose code,
html.colors-ready .faq-category h2,
html.colors-ready .hero-panel,
html.colors-ready .cta,
html.colors-ready a,
html.colors-ready button,
html.colors-ready select,
html.colors-ready input,
html.colors-ready .gauge,
html.colors-ready .gauge text,
html.colors-ready .gauge path,
html.colors-ready .page-art,
html.colors-ready .country {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, fill 0.3s ease, stroke 0.3s ease;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Noto Sans", "Adwaita Sans", Ubuntu, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to bottom, var(--grid) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(to right, var(--grid) 0 1px, transparent 1px 48px);
}
a { color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

html { scroll-padding-top: var(--nav-bar, 3.4rem); }
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 4;
  box-sizing: border-box;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--muted);
  background: var(--page);
}
.nav .brand { color: var(--ink); font-size: 18px; font-weight: 650; text-decoration: none; }
.nav nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-left: auto; }
.nav nav a { color: var(--ink); text-decoration: none; }
.nav nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.2em; }
.cta {
  background: var(--ink);
  color: var(--cta-text);
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.nav .cta { color: var(--cta-text); text-decoration: none; }
.menu-cta { display: none; }
.nav-tools { display: flex; align-items: center; gap: 0.5rem; }
.nav-toggle {
  border: 1px solid var(--muted);
  border-radius: 0.4rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: none;
}
.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0.35rem;
  box-sizing: content-box;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 959px) {
  .nav { flex-wrap: nowrap; }
  .nav-tools { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
  }
  .nav-toggle span:not(.sr) {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: var(--ink);
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav nav {
    display: none;
    position: absolute;
    z-index: 3;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0;
    padding: 0.5rem max(16px, env(safe-area-inset-right)) 0.85rem max(16px, env(safe-area-inset-left));
    background: var(--page);
    border-bottom: 1px solid var(--muted);
  }
  .nav.open nav { display: flex; }
  .nav nav a { padding: 0.7rem 0.15rem; }
  .nav .cta { text-align: center; }
  html:has(.nav.open) { overflow: hidden; }
  .nav.open {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: center;
    gap: 0;
    padding:
      max(12px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
    border-bottom: 0;
    background: var(--page);
    overflow: auto;
  }
  .nav.open .brand { grid-column: 1; grid-row: 1; }
  .nav.open .nav-tools { grid-column: 2; grid-row: 1; margin: 0; }
  .nav.open nav {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: stretch;
    min-height: 0;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--muted);
    background: transparent;
    overflow: auto;
  }
  .nav.open nav > a {
    padding: 0.95rem 0.15rem;
    font-size: 1.05rem;
    border-bottom: 1px solid color-mix(in srgb, var(--muted) 35%, transparent);
  }
  .bar-cta { display: none; }
  .nav.open nav > a.menu-cta {
    display: block;
    margin-top: auto;
    border-bottom: 0;
    border-radius: 0.45rem;
    padding: 0.75rem 1rem;
    text-align: center;
    text-decoration: none;
  }
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  box-sizing: border-box;
  padding: 0.85rem max(16px, env(safe-area-inset-right)) max(0.85rem, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: 1px solid var(--muted);
  background: var(--page);
}
.site-footer .footer-name {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-left: auto;
}
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.2em; }

main {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  max-width: 46rem;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}
h1 { font-size: 1.6rem; font-weight: 650; margin: 0 0 0.75rem; }
h2 { font-size: 1.05rem; font-weight: 650; margin: 1.25rem 0 0.35rem; }
p { margin: 0.55rem 0 0; }
.lead { font-size: 1.05rem; }
.cards { display: grid; gap: 0.85rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.card {
  display: block;
  box-sizing: border-box;
  background: var(--card);
  border: 1px solid var(--muted);
  border-radius: 0.75rem;
  padding: 1.15rem 1.2rem;
  color: inherit;
  text-decoration: none;
}
.cards .card h2 { margin: 0; }
.cards .card p { margin: 0.45rem 0 0; }
.prose h2:first-child { margin-top: 0; }
.mistake h2 {
  margin: 1.25rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid color-mix(in srgb, var(--muted) 45%, transparent);
}
.mistake h2:first-of-type {
  margin-top: 1.15rem;
  padding-top: 0;
  border-top: 0;
}
.mistake h2 + p { margin-top: 0.25rem; }
.methodology h2 { margin: 2.25rem 0 0.75rem; }
.about h2 { margin: 2.25rem 0 0.75rem; }
.about ul { margin: 0.75rem 0 0; padding-left: 1.15rem; }
.about li { margin: 0.55rem 0 0; }
.about li:first-child { margin-top: 0; }
.page-split {
  display: grid;
  grid-template-columns: minmax(0, 46rem) minmax(16rem, 22rem);
  column-gap: 2.5rem;
  align-items: start;
}
.page-copy { min-width: 0; }
.page-art {
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  background-color: var(--ink);
  -webkit-mask-image: var(--art);
  mask-image: var(--art);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  mask-mode: alpha;
}
@media (max-width: 959px) {
  .page-split { grid-template-columns: 1fr; }
  .page-art {
    order: -1;
    width: min(100%, 14rem);
    margin: 0 auto 1.25rem;
  }
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 0.05em 0.35em;
  border: 1px solid color-mix(in srgb, var(--muted) 55%, transparent);
  border-radius: 0.25rem;
  background: color-mix(in srgb, var(--muted) 14%, var(--page));
  overflow-wrap: anywhere;
}
.hosts { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.hosts li { margin-top: 0.25rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; }
label { display: block; font-weight: 650; margin-top: 0.85rem; }
input[type="email"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 24rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--muted);
  border-radius: 0.4rem;
  background: var(--page);
  color: var(--ink);
  font: inherit;
}
.form-row { margin-top: 0.85rem; }
.note { margin-top: 0.85rem; }

.nav .brand { display: flex; align-items: center; gap: 0.55rem; }
.brand-mark { position: relative; width: 1.75rem; height: 1.75rem; flex: none; }
.logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}
.logo-light { opacity: 0; }
[data-theme="light"] .logo-dark { opacity: 0; }
[data-theme="light"] .logo-light { opacity: 1; }
.theme-toggle svg {
  position: absolute;
  inset: 0.35rem;
  width: 1.25rem;
  height: 1.25rem;
  transition: opacity 0.3s ease;
}
.theme-icon-moon { opacity: 0; }
[data-theme="light"] .theme-icon-sun { opacity: 0; }
[data-theme="light"] .theme-icon-moon { opacity: 1; }
html:has(body.layout-map) { height: 100%; }
body.layout-map { height: 100%; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
body.layout-map main { max-width: none; flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; }
body.layout-wide main { max-width: 90rem; }
.benchmark-tabs { padding: 0; }
.benchmark-tabs.score-tabs { margin-top: 0; }
.benchmark-country { display: block; }
html.benchmarks-sectors .benchmark-country { display: none !important; }
html.benchmarks-sectors .benchmark-sector[hidden] { display: block !important; }
.benchmark-map { margin-top: 1.75rem; }

.hero { position: relative; flex: 1; min-height: 0; display: grid; }
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; justify-self: center; align-self: center; width: min(36rem, calc(100% - 2rem)); padding: 1.5rem; text-align: center; }
.hero-panel {
  background: color-mix(in srgb, var(--page) 82%, transparent);
  border: 1px solid var(--muted);
  border-radius: 0.75rem;
  padding: 1.25rem 1.4rem;
}
.hero-links { margin-top: 0.85rem; }
.hero-links a { margin: 0 0.35rem; }

.country { fill: var(--card); stroke: var(--muted); stroke-width: 1px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-live .country.has-data { fill: #9DFFB8; stroke: #008F11; cursor: pointer; }
[data-theme="light"] .map-live .country.has-data { fill: #C5D2FF; stroke: #01008F; }
.map-live .country.no-data { fill: #A3A3A3; stroke: #737373; pointer-events: none; }
.map-live .country.has-data:hover { stroke: var(--ink); }
#name { height: 1.4em; line-height: 1.4; margin: 0 0 0.35rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#scroller { height: min(32rem, 70vh); min-height: 16rem; overflow-x: auto; overflow-y: hidden; touch-action: pan-x pan-y; }
@media (min-width: 960px) {
  body:has(#panel-by-country:not([hidden])) { overflow-x: clip; }
  .benchmark-map #scroller {
    width: 100vw;
    margin-left: calc(-1 * max(16px, env(safe-area-inset-left)));
    height: min(50vw, 100dvh);
  }
}
#map { overflow: hidden; }
#map.map-live { display: block; margin-inline: auto; touch-action: pan-x pan-y; }
.crumbs { margin: 0 0 0.85rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 0.45rem; }
.crumbs a { color: var(--ink); text-decoration: none; }
.with-flag { display: inline-flex; align-items: center; gap: 0.4rem; vertical-align: middle; }
.flag {
  height: 1.25rem;
  width: auto;
  display: block;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--ink) 45%, var(--page));
  border-radius: 2px;
}

.page-pad { padding: 1rem 1.15rem 1.5rem; }
.sectors { display: grid; grid-template-columns: minmax(0, 28rem); justify-content: start; gap: 0.85rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .sectors { grid-template-columns: repeat(2, minmax(0, 28rem)); } }
@media (min-width: 1280px) { .sectors { grid-template-columns: repeat(3, minmax(0, 28rem)); } }
.sectors li { display: flex; container-type: inline-size; }
.sectors .card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "icon title gauge" "icon stats gauge";
  column-gap: 0.65rem;
  row-gap: 0.15rem;
  align-items: center;
  flex: 1;
}
.sectors h2 { grid-area: title; margin: 0; font-size: 1rem; }
.sectors .icon { grid-area: icon; width: auto; height: 2.5rem; display: block; }
.sectors .flag { grid-area: icon; height: 1.75rem; width: auto; }
.sectors .gauge { grid-area: gauge; width: 4.75rem; height: auto; margin: 0; }
.sectors .stats { grid-area: stats; margin: 0; }
.sectors .stats p { margin: 0.15rem 0 0; font-size: 0.9rem; }
.sectors .card.no-data { background: #A3A3A3; border-color: #737373; color: #3A3A3A; pointer-events: none; }
.sectors .card.no-data .gauge .track { stroke: #3A3A3A; }
@container (min-width: 24rem) {
  .sectors .card { column-gap: 0.75rem; }
  .sectors h2 { font-size: 1.05rem; }
  .sectors .icon { height: 2.75rem; }
  .sectors .gauge { width: 5.5rem; margin-left: 0.35rem; }
}
@media (max-width: 759px) {
  .sectors .icon { height: 2.5rem; }
  .sectors .gauge { width: 4.75rem; margin-left: 0; }
}
.gauge { width: 7.5rem; height: auto; display: block; }
.gauge path, .gauge circle { fill: none; }
.gauge .track { stroke: var(--muted); }
[data-theme="light"] .gauge .track { stroke: color-mix(in srgb, var(--ink) 38%, var(--card)); }
.gauge .value { stroke: var(--ink); }
.gauge text { fill: var(--ink); font-size: 18px; font-weight: 650; }

.audit select, .audit input[type="file"] { font: inherit; color: var(--ink); }
.audit select { background: var(--page); border: 1px solid var(--muted); padding: 0.4rem 0.55rem; }
.audit input[type="file"]:disabled { opacity: 0.45; }
.audit .choices { display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem; margin: 1rem 0; }
.audit .choices label { margin-top: 0; }
.audit .scores { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: flex-end; margin: 0.5rem 0 0.25rem; }
.audit .scores figure { margin: 0; }
.audit .gauge { width: 7.5rem; height: auto; display: block; }
.audit .waterfall { overflow-x: auto; }
.audit .entry { min-width: 46rem; padding: 0.45rem 0.55rem; border-top: 1px solid var(--muted); color: var(--muted); }
.audit .entry.problem { color: var(--ink); background: var(--card); box-shadow: inset 3px 0 0 var(--ink); }
.audit .hit { display: grid; grid-template-columns: 3.4rem minmax(8rem, 14rem) minmax(8rem, 1.4fr) 6.5rem minmax(8rem, 1.2fr); gap: 0.6rem; align-items: center; }
.audit .hit span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit .track { position: relative; height: 0.45rem; background: var(--card); }
.audit .entry.problem .track { background: var(--page); }
.audit .bar { position: absolute; top: 0; bottom: 0; background: var(--muted); min-width: 2px; }
.audit .entry.problem .bar { background: var(--ink); }
.audit .row-issues { margin: 0.45rem 0 0; padding: 0; list-style: none; }
.audit .row-issues li { padding: 0.35rem 0 0; }
.audit .issue { display: flex; gap: 0.75rem; align-items: flex-start; justify-content: space-between; }
.audit .issue p { margin: 0; }
.audit .issue button { flex: none; width: 2rem; height: 2rem; margin: 0; padding: 0.3rem; border: 1px solid var(--muted); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.audit .mark { width: 100%; height: 100%; display: block; }
.audit .accordion { background: var(--page); border: 1px solid var(--muted); border-radius: 0.75rem; padding: 1rem 1.1rem; box-sizing: border-box; width: 100%; margin-top: 0.45rem; }
.audit .accordion p { margin: 0; }
.audit .evidence { margin-top: 0.8rem; }
.audit .evidence-title { font-weight: 650; margin-bottom: 0.35rem; }
.audit .evidence p + p { margin-top: 0.35rem; }
[hidden] { display: none !important; }

.sector-layout { display: block; }
.sector-heading { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; margin-top: 0.35rem; }
.sector-heading h1 { margin: 0; }
.score-tabs { margin-top: 0.85rem; }
.score-tabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
.score-tabs [role="tab"] {
  margin: 0;
  padding: 0.15rem 0 0.35rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.score-tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.score-chart { position: relative; width: 100%; max-width: 24rem; margin: 0.65rem 0 0; }
.score-chart.card { padding: 0.7rem 0.85rem; }
.score-chart figcaption { margin: 0 0 0.4rem; }
.chart-title { display: block; font-weight: 650; font-size: 0.95rem; }
.chart-note { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.8rem; font-weight: 450; }
.score-chart svg { width: 100%; height: auto; display: block; }
.score-chart rect { fill: var(--ink); }
.score-chart polyline, .score-chart .series { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.score-chart .axis { stroke: var(--muted); stroke-width: 1; }
.score-chart .grid { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.7; }
.score-chart .median-tick { stroke: var(--muted); stroke-width: 1.5; }
.score-chart text { fill: var(--muted); font-size: 11px; }
.score-chart circle { fill: var(--ink); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 0.85rem; margin: 0.3rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.8rem; }
.chart-legend .swatch { display: inline-block; width: 0.85rem; height: 0.55rem; margin-right: 0.35rem; vertical-align: -0.05rem; background: var(--ink); }
.chart-legend .swatch.median { height: 0; border-top: 2px solid var(--muted); background: none; }
.chart-legend .swatch.series { height: 0; border-top: 2px solid var(--ink); background: none; }
.chart-data {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.mistake-layout {
  display: grid;
  grid-template-columns: minmax(0, 46rem) minmax(20rem, 1fr);
  column-gap: 2.5rem;
  align-items: start;
}
.mistake-rank {
  position: sticky;
  top: calc(var(--nav-bar, 3.4rem) + 1rem);
  max-height: calc(100vh - var(--nav-bar, 3.4rem) - 2rem);
  overflow: auto;
}
.mistake-rank .score-tabs { margin-top: 0; }
.mistake-updated { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.9rem; }
.mistake-rank table { width: 100%; border-collapse: collapse; margin-top: 0.65rem; font-size: 0.9rem; }
.mistake-rank th, .mistake-rank td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 45%, transparent);
  vertical-align: middle;
  text-align: right;
}
.mistake-rank th:first-child, .mistake-rank td:first-child { text-align: left; }
.mistake-rank th {
  position: sticky;
  top: 0;
  background: var(--page);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.3;
}
.mistake-rank td:not(:first-child) { font-variant-numeric: tabular-nums; }
.mistake-rank a { color: inherit; text-decoration: none; }
.mistake-rank a:hover { text-decoration: underline; }
@media (max-width: 959px) {
  .mistake-layout { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .mistake-rank { position: static; max-height: none; overflow: visible; }
}
.sector-report .sites-toggle {
  display: block;
  margin: 0.75rem 0 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.sector-report .sites { margin: 0; line-height: 1.6; }
.sector-report .sites .site + .site::before { content: " • "; }
.sector-report .sites .site.is-match { text-decoration: underline; text-underline-offset: 0.15em; }
.sector-seen .issues { margin: 0.35rem 0 0; padding: 0; list-style: none; }
.sector-seen .issues > li { padding: 0.7rem 0; border-top: 1px solid var(--muted); }
.sector-seen .count { color: var(--muted); }
.sector-seen .issue { display: flex; gap: 0.75rem; align-items: flex-start; justify-content: space-between; }
.sector-seen .issue p { margin: 0; }
.sector-seen .issue button {
  flex: none;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0.3rem;
  border: 1px solid var(--muted);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.sector-seen .mark { width: 100%; height: 100%; display: block; }
.sector-seen .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.sector-seen .accordion {
  background: var(--card);
  border: 1px solid var(--muted);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  box-sizing: border-box;
  width: 100%;
  margin-top: 0.7rem;
}
.sector-seen .accordion p { margin: 0; }
.sector-seen .accordion .seen-link { margin: 0.75rem 0 0; }
@media (min-width: 960px) {
  .sector-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 1.25rem;
    align-items: start;
  }
  .sector-report {
    position: sticky;
    top: calc(var(--nav-bar, 3.4rem) + 1rem);
    scrollbar-width: none;
  }
  .sector-report::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  .sector-report.sites-open {
    max-height: calc(100vh - var(--nav-bar, 3.4rem) - 2rem);
    overflow: auto;
  }
}
html:has(.sector-layout) {
  scrollbar-width: none;
}
html:has(.sector-layout)::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.faq-layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 2rem; align-items: start; margin-top: 1.25rem; min-width: 0; }
.faq-questions { min-width: 0; }
.faq-rail { position: sticky; top: calc(var(--nav-bar, 3.4rem) + 1rem); max-height: calc(100vh - var(--nav-bar, 3.4rem) - 2rem); overflow: auto; }
.faq-rail input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--muted);
  border-radius: 0.4rem;
  background: var(--page);
  color: var(--ink);
  font: inherit;
}
.faq-menu-toggle { display: none; }
#faq-menu { display: flex; flex-direction: column; gap: 0.15rem; }
#faq-menu a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.15rem;
  color: var(--ink);
  text-decoration: none;
}
#faq-menu a[aria-current="true"] { text-decoration: underline; text-underline-offset: 0.2em; }
.faq-count { color: var(--muted); }
.faq-category { content-visibility: auto; contain-intrinsic-size: auto none auto 82rem; scroll-margin-top: 1rem; min-width: 0; }
.faq-category h2 {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
  padding: 0.55rem 0.8rem;
  background: var(--card);
  font-family: ui-serif, Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.25;
}
.faq-category + .faq-category { margin-top: 2.25rem; }
.faq-item { scroll-margin-top: 1rem; }
.faq-item + .faq-item { margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px solid color-mix(in srgb, var(--muted) 35%, transparent); }
.faq-item h3 { display: flex; align-items: baseline; gap: 0.35rem; margin: 0 0 0.35rem; font-size: 1.05rem; }
.faq-hash { color: var(--muted); text-decoration: none; opacity: 0; }
.faq-category h2:hover .faq-hash,
.faq-item h3:hover .faq-hash,
.faq-hash:focus { opacity: 1; }
@media (hover: none) { .faq-hash { opacity: 1; } }
.search-open {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0.35rem;
  box-sizing: content-box;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.search-open svg { width: 1.25rem; height: 1.25rem; display: block; }
.search-dialog {
  box-sizing: border-box;
  width: min(36rem, calc(100vw - 2rem));
  max-height: min(32rem, calc(100dvh - 2rem));
  margin: 12vh auto auto;
  padding: 0.75rem;
  border: 1px solid var(--muted);
  border-radius: 0.75rem;
  background: var(--page);
  color: var(--ink);
  overflow: auto;
}
.search-dialog::backdrop { background: rgb(0 0 0 / 62%); }
.search-dialog input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 0.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--muted);
  border-radius: 0.4rem;
  background: var(--page);
  color: var(--ink);
  font: inherit;
}
.search-results { display: flex; flex-direction: column; gap: 0.65rem; }
.search-label {
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.search-hit {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.4rem;
  color: var(--ink);
  text-decoration: none;
}
.search-hit[aria-selected="true"] { background: var(--card); }
.search-note { color: var(--muted); font-size: 0.85rem; }
.search-status { margin: 0.35rem 0 0; color: var(--muted); }
@media (max-width: 959px) {
  .faq-layout { grid-template-columns: 1fr; gap: 1rem; }
  .faq-rail { top: var(--nav-bar, 3.4rem); z-index: 2; max-height: none; padding-bottom: 0.75rem; background: var(--page); border-bottom: 1px solid var(--muted); }
  .faq-menu-toggle {
    display: flex;
    width: 100%;
    margin: 0 0 0.5rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--muted);
    border-radius: 0.4rem;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .faq-layout:not(.faq-open) #faq-menu { display: none; }
  .faq-category, .faq-item { scroll-margin-top: 8.5rem; }
}
