/* Template design — deliberately plain. Per-site identity (palette, type,
   motif) is authored per country by configure.js / the design pass; keep this
   file's class names stable (templates depend on them). No external requests. */

:root {
  --ink: #1f1d1a;
  --ink-soft: #5b5650;
  --ground: #fbfaf7;
  --paper: #ffffff;
  --rule: #d9d4cc;
  --accent: #8a2f2f;
  --ok: #2f6b3a;
  --mid: #9a6b12;
  --low: #8a2f2f;
  --na: #8c8780;
  --font-body: Georgia, 'Times New Roman', serif;
  --font-ui: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--ground); line-height: 1.55; }
a { color: var(--accent); }
a:hover { text-decoration: none; }
h1, h2, h3 { font-family: var(--font-ui); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 2rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.6rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 0.4rem; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.2rem; }
.muted { color: var(--ink-soft); font-size: 0.92rem; }
.lead { font-size: 1.1rem; max-width: 62ch; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 0.5rem; }
.skip-link:focus { left: 0.5rem; z-index: 10; }

.site-header { background: var(--paper); border-bottom: 2px solid var(--ink); font-family: var(--font-ui); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.7rem; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; margin-right: auto; }
.brand-name { font-weight: 700; font-size: 1.15rem; }
.brand-tagline { font-size: 0.8rem; color: var(--ink-soft); }
.site-nav a { margin-right: 1rem; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.site-nav a[aria-current] { border-bottom: 2px solid var(--accent); }
.lang-switcher { font-size: 0.85rem; }
.seg-nav { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-size: 0.82rem; padding-bottom: 0.6rem; }
.seg-nav-label { color: var(--ink-soft); }
.seg-nav a { color: var(--ink); }

main { padding: 1.5rem 1.2rem 3rem; }
.hero { margin-bottom: 1.5rem; }
.hero-links { font-family: var(--font-ui); }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--rule); }
thead th { font-family: var(--font-ui); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.ranking-table .rank-cell { width: 2.5rem; font-variant-numeric: tabular-nums; }
.ranking-table .name-cell a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ranking-table .name-cell a:hover { text-decoration: underline; }
.ranking-table .score-cell { white-space: nowrap; }
.ranking-table .ax-cell { white-space: nowrap; }
.ax-head { font-variant-numeric: tabular-nums; }
.th-sub { font-size: 0.7rem; margin-left: 0.15rem; }
.table-note, .table-legend { max-width: 80ch; }
.table-filter { margin: 0.6rem 0; }
.table-filter input { font: inherit; padding: 0.4rem 0.6rem; border: 1px solid var(--rule); width: min(100%, 22rem); background: var(--paper); }
tr[hidden] { display: none; }

.score-badge { display: inline-block; min-width: 2.6rem; text-align: center; padding: 0.15rem 0.45rem; font-family: var(--font-ui); font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.score-high { background: var(--ok); }
.score-mid { background: var(--mid); }
.score-low { background: var(--low); }
.score-na { background: var(--na); font-weight: 500; font-size: 0.8rem; }
.status-pill { display: inline-block; padding: 0.1rem 0.5rem; font-family: var(--font-ui); font-size: 0.8rem; border: 1px solid var(--rule); color: var(--ink-soft); }
.cap-mark { margin-left: 0.3rem; color: var(--low); }

.pips { display: inline-flex; gap: 2px; vertical-align: middle; }
.pips i { display: inline-block; width: 9px; height: 9px; border: 1px solid var(--ink); border-radius: 50%; }
.pips i.on { background: var(--ink); }
.pips-null, .pips-na { font-family: var(--font-ui); font-size: 0.85rem; color: var(--ink-soft); display: inline-block; min-width: 1.2rem; text-align: center; }
.prov { font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.05em; padding: 0.05rem 0.3rem; border: 1px solid var(--rule); }
.fl-official { border-color: var(--ok); color: var(--ok); }
.fl-secondary { color: var(--ink-soft); }
.fl-unverified, .fl-na { color: var(--na); }
.crowns { margin-top: 0.15rem; }
.crown { display: inline-block; font-family: var(--font-ui); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ok); border: 1px solid var(--ok); padding: 0 0.35rem; margin-right: 0.3rem; }
.crown-list { list-style: none; padding: 0; margin: 0.5rem 0; }
.crown-list .crown { font-size: 0.8rem; }

.seg-list { columns: 2; padding-left: 1.2rem; }
.kv-table th { width: 30%; font-weight: 600; }
.boundary { background: var(--paper); border: 1px solid var(--rule); padding: 1rem 1.2rem; margin-top: 2rem; }
.boundary h2 { border: 0; margin-top: 0; padding-top: 0; }

.breadcrumbs { font-family: var(--font-ui); font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.clinic-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-start; justify-content: space-between; }
.clinic-headline { max-width: 62ch; }
.clinic-score-big { text-align: center; }
.clinic-score-big .score-badge { font-size: 2rem; padding: 0.3rem 0.8rem; }
.score-of { font-family: var(--font-ui); color: var(--ink-soft); margin-left: 0.2rem; }
.cov-line { margin-top: 0.3rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } .seg-list { columns: 1; } }

.axes-table .ax-id { width: 3rem; font-family: var(--font-ui); font-weight: 700; }
.axes-table .ax-rubric { font-size: 0.9rem; }
.axes-table .ax-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.2rem; }
.axes-table .ax-val, .axes-table .ax-flag, .axes-table .ax-w, .axes-table .ax-date { white-space: nowrap; }
.ax-null .ax-rubric { color: var(--ink-soft); font-style: italic; }
.ax-na .ax-rubric { color: var(--na); }
.evidence { margin: 0.5rem 0 0; padding: 0.4rem 0.8rem; border-left: 3px solid var(--rule); background: var(--paper); font-size: 0.9rem; }
.evidence footer { font-family: var(--font-ui); font-size: 0.75rem; color: var(--ink-soft); margin-top: 0.2rem; }
.cap-list, .hold-list, .unknown-list, .seg-status, .reg-checks { padding-left: 1.2rem; }
.cap-text { font-size: 0.9rem; color: var(--ink-soft); }
.hold-H3 { color: var(--ink-soft); }
.st-yes { color: var(--ok); }
.st-no { color: var(--low); }
.st-unverified { color: var(--ink-soft); }
.src-ref { font-family: var(--font-ui); font-size: 0.75rem; text-decoration: none; }
.sources-table .src-id { font-family: var(--font-ui); font-size: 0.8rem; white-space: nowrap; }
.report-cta { background: var(--paper); border: 1px solid var(--rule); padding: 1rem 1.2rem; margin-top: 2rem; }
.report-cta h2 { border: 0; margin-top: 0; padding-top: 0; }
.btn { display: inline-block; font-family: var(--font-ui); background: var(--ink); color: #fff; padding: 0.5rem 0.9rem; text-decoration: none; border: 0; cursor: pointer; font-size: 0.95rem; }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

.formula { background: var(--paper); border: 1px solid var(--rule); padding: 0.8rem 1rem; overflow-x: auto; font-size: 0.85rem; }
.method-table td.muted { font-size: 0.85rem; }
.cat-section { margin-top: 1.5rem; }
.excluded-note { margin-top: 1rem; }

.report-form { max-width: 40rem; }
.form-row { margin: 0.8rem 0; }
.form-row label { display: block; font-family: var(--font-ui); font-size: 0.9rem; margin-bottom: 0.25rem; }
.form-row input, .form-row textarea, .form-row select { font: inherit; width: 100%; padding: 0.45rem 0.6rem; border: 1px solid var(--rule); background: var(--paper); }
.check-label { display: flex !important; gap: 0.5rem; align-items: center; }
.check-label input { width: auto; }
.contact-fieldset { border: 1px solid var(--rule); padding: 0.6rem 1rem; margin: 1rem 0; }
.req { color: var(--accent); }
.hp-field { position: absolute; left: -9999px; }
.form-error { color: var(--low); }
.form-status { font-family: var(--font-ui); }
.form-ok { color: var(--ok); }
.form-err { color: var(--low); }

.site-footer { border-top: 2px solid var(--ink); margin-top: 3rem; padding: 1.5rem 0 2.5rem; font-size: 0.88rem; color: var(--ink-soft); background: var(--paper); }
