/* fonts-selfhost */ /* Self-hosted subsets (latin, latin-ext) of the site's Google Fonts — no third-party requests. */
/* latin-ext */
@font-face {
  font-family: 'Bitter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/bitter-raxjHiqOu8IVPmn7epZnDMyKBvHf5D6c4Pz-UXByjeU.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bitter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/bitter-raxjHiqOu8IVPmn7epZnDMyKBvHf5D6c4Pz-X3By.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/bitter-rax8HiqOu8IVPmn7cYxpPDk.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/bitter-rax8HiqOu8IVPmn7f4xp.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/bitter-rax8HiqOu8IVPmn7cYxpPDk.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/bitter-rax8HiqOu8IVPmn7f4xp.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/sourcesans3-nwpStKy2OAdR1K-IwhWudF-R3wEaZfrc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/sourcesans3-nwpStKy2OAdR1K-IwhWudF-R3w8aZQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/sourcesans3-nwpStKy2OAdR1K-IwhWudF-R3wEaZfrc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/sourcesans3-nwpStKy2OAdR1K-IwhWudF-R3w8aZQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/sourcesans3-nwpStKy2OAdR1K-IwhWudF-R3wEaZfrc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/sourcesans3-nwpStKy2OAdR1K-IwhWudF-R3w8aZQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =============================================================
   CAFÉ DE ALTURA — Colombia dental rating
   Rich coffee brown + emerald green + warm cream, with subtle
   mountain contour-line motifs woven through structural borders.
   Bitter (headings) / Source Sans 3 (body).
   ============================================================= */

:root {
  /* Ground & ink */
  --ink: #1e1208;            /* espresso black-brown */
  --ink-soft: #5c4a35;       /* aged leather / secondary text */
  --line: #c9baa6;           /* warm parchment rule */
  --bg: #fdf8f0;             /* cream / café con leche */
  --bg-soft: #f3ead9;        /* warm cream tint block */

  /* Primary accent — Colombian emerald */
  --accent: #1a6b47;         /* deep emerald green */
  --accent-soft: #deeee6;    /* pale green wash */

  /* Semantic scoring */
  --good: #1a6b47;           /* emerald — high scores */
  --good-bg: #deeee6;
  --mid: #8a5c0a;            /* dark amber — mid scores */
  --mid-bg: #f5e8cc;
  --bad: #9b2215;            /* terracotta red — low scores */
  --bad-bg: #f6e0db;

  --unknown: #7a6652;        /* muted coffee */
  --max-width: 74rem;

  --serif-head: "Bitter", Georgia, "Times New Roman", serif;
  --sans-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans-body);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink);
  /* Subtle mountain contour-line motif via repeating gradient */
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 47px,
      rgba(139,105,60,0.07) 48px,
      transparent 49px
    );
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
main.container { padding-top: 1.75rem; padding-bottom: 3.5rem; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* Headings — Bitter serif, warm coffee ink */
h1, h2, h3 { font-family: var(--serif-head); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: 2.15rem; line-height: 1.12; margin: 0.5rem 0 0.85rem; }
h2 {
  font-size: 1.3rem; line-height: 1.2; margin: 2.25rem 0 0.6rem;
  padding-bottom: 0.3rem; border-bottom: 2px solid var(--accent);
}
h3 { font-size: 1.08rem; line-height: 1.25; margin: 1.3rem 0 0.4rem; }
p { margin: 0.5rem 0 1rem; }

.lead {
  font-family: var(--serif-head); font-weight: 400; font-style: italic;
  font-size: 1.14rem; line-height: 1.5; color: var(--ink-soft); max-width: 50rem;
}
.muted { color: var(--ink-soft); font-size: 0.9rem; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* =========================== HEADER / MASTHEAD =========================== */
.site-header {
  border-bottom: 3px solid var(--accent);
  background: var(--bg-soft);
  /* Mountain silhouette hint via a second thin rule */
  box-shadow: 0 2px 0 rgba(139,105,60,0.12);
}
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 2rem;
  padding-top: 1.1rem; padding-bottom: 0.9rem;
}
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--serif-head); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -0.015em; line-height: 1; color: var(--accent);
}
.brand-tagline {
  font-size: 0.7rem; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.18em; margin-top: 0.25rem;
}
.site-nav {
  display: flex; flex-wrap: wrap; gap: 0.2rem 1.3rem;
  font-family: var(--sans-body); font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.site-nav a {
  text-decoration: none; color: var(--ink-soft);
  padding: 0.15rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.lang-switcher { margin-left: auto; font-size: 0.8rem; white-space: nowrap; letter-spacing: 0.04em; }
.lang-switcher a { text-decoration: none; color: var(--ink-soft); }
.lang-switcher a:hover { color: var(--accent); text-decoration: underline; }
.lang-current { font-weight: 700; color: var(--accent); }
.lang-sep { color: var(--line); }

/* ================================ HERO ================================ */
.hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.hero h1 {
  max-width: 44rem;
  border-left: 5px solid var(--accent);
  padding-left: 1rem;
  margin-left: -1rem;
}
.hero-links {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ======================== PROFILE CONTROLS ======================== */
.ranking-controls {
  margin: 1.75rem 0 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 4px;
}
.profile-buttons { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.profile-btn {
  font-family: var(--sans-body); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--bg); color: var(--ink);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.profile-btn:hover { border-color: var(--accent); color: var(--accent); }
.profile-btn[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.profile-desc { min-height: 1.4em; margin: 0.6rem 0 0; font-size: 0.9rem; font-style: italic; color: var(--ink-soft); }

.table-filter { margin-top: 0.75rem; }
.table-filter input {
  font-family: var(--sans-body); font-size: 0.92rem; width: 100%; max-width: 22rem;
  padding: 0.45rem 0.7rem; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg); color: var(--ink);
}
.table-filter input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ============================== TABLES ============================== */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
th, td {
  text-align: left; padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
thead th {
  font-family: var(--sans-body); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--bg);
  border-bottom: 2px solid var(--accent);
  background: var(--accent);
}
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.ranking-table tbody tr:nth-child(even) { background: rgba(139,105,60,0.05); }
.ranking-table tbody tr:hover { background: var(--accent-soft); }
.rank-cell {
  font-family: var(--serif-head); font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--ink); width: 2.4rem;
}
.name-cell a { font-family: var(--serif-head); font-weight: 700; text-decoration: none; color: var(--ink); }
.name-cell a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.score-cell { white-space: nowrap; }
.th-sub { font-size: 0.7em; color: rgba(255,255,255,0.72); margin-left: 0.15em; text-transform: none; letter-spacing: 0; font-weight: 400; }
.cat-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat-max { color: var(--ink-soft); font-size: 0.8em; }
.flags-cell .flag-count { color: var(--bad); font-weight: 700; }
.flags-cell .flag-none { color: var(--ink-soft); }
.table-note { margin-top: 0.75rem; max-width: 52rem; font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }

.excluded-note { margin-top: 1rem; font-size: 0.9rem; }
.excluded-note summary { cursor: pointer; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; }

/* =========================== SCORE BADGES =========================== */
.score-badge {
  display: inline-block; min-width: 2.6em; text-align: center;
  padding: 0.1em 0.4em; border-radius: 4px;
  font-family: var(--serif-head); font-weight: 700; font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}
/* Emerald green family — WCAG AA on cream/white bg: contrast ~5.2:1 */
.score-high { background: var(--good-bg); color: var(--good); border-color: var(--good); }
/* Amber/brown family — dark ochre on pale amber: contrast ~4.8:1 */
.score-mid  { background: var(--mid-bg);  color: var(--mid);  border-color: var(--mid); }
/* Terracotta red family — contrast ~5.5:1 */
.score-low  { background: var(--bad-bg);  color: var(--bad);  border-color: var(--bad); }
.score-na   { background: var(--bg-soft); color: var(--unknown); border-color: var(--line); }

/* =============================== BARS =============================== */
.bar {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px;
  height: 0.55rem; overflow: hidden; min-width: 6rem; flex: 1;
}
.bar-fill { background: var(--accent); height: 100%; border-radius: 6px; }

/* =============================== CARDS =============================== */
.cards-section { margin-top: 2.75rem; }
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
}
.clinic-card {
  border: none; border-radius: 0; padding: 1.1rem 1.15rem; background: var(--bg);
}
.clinic-card:hover { background: var(--accent-soft); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 1.05rem; font-family: var(--serif-head); }
.card-head a { text-decoration: none; color: var(--ink); }
.card-head a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.card-summary { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.5rem; }
.card-bars { display: flex; flex-direction: column; gap: 0.3rem; margin: 0.7rem 0; }
.card-bar-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; }
.card-bar-label { flex: 0 0 9.5rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.7rem; }
.card-bar-pts { flex: 0 0 3.2rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.card-meta { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 0; font-style: italic; }

/* ============================ CLINIC PAGE ============================ */
.breadcrumbs { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.06em; }
.clinic-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
  flex-wrap: wrap; border-bottom: 3px solid var(--accent); padding-bottom: 1rem;
}
.clinic-headline { font-family: var(--serif-head); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); max-width: 46rem; }
.clinic-score-big { font-family: var(--serif-head); font-size: 2rem; display: flex; align-items: baseline; gap: 0.25rem; }
.clinic-score-big .score-badge { padding: 0.12em 0.45em; }
.score-of { color: var(--ink-soft); font-size: 1rem; }

.chip-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: baseline; gap: 0.5em;
  border: 1px solid var(--line); border-radius: 20px; padding: 0.3rem 0.7rem; font-size: 0.82rem;
  background: var(--bg);
}
.chip-ranked { background: var(--accent-soft); border-color: var(--accent); }
.chip-rank { font-family: var(--serif-head); font-weight: 700; color: var(--accent); }
.chip-excluded { color: var(--ink-soft); }
.chip-excluded .chip-rank { color: var(--unknown); font-weight: 400; }
.chip-score { color: var(--ink-soft); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
@media (max-width: 44rem) { .two-col { grid-template-columns: 1fr; } }
.plus-list li::marker { color: var(--good); }
.minus-list li::marker { color: var(--bad); }

.cat-section { margin-top: 1.75rem; }
.cat-section-head { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cat-section-head h3 { margin: 0; }
.cat-section-score { display: flex; align-items: center; gap: 0.6rem; min-width: 14rem; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.crit-table { font-size: 0.9rem; }
.crit-table td { padding: 0.35rem 0.5rem; }
.crit-status { width: 1.6rem; }
.crit-pts { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-soft); width: 4rem; }
.crit-note { color: var(--ink-soft); font-size: 0.85em; font-style: italic; }
.crit-unknown .crit-label { color: var(--unknown); }

/* ============================== STATUS ============================== */
.status { font-weight: 700; font-family: var(--sans-body); }
.st-earned  { color: var(--good); }
.st-partial { color: var(--mid); }
.st-missed  { color: var(--bad); }
.st-unknown { color: var(--unknown); }

/* =============================== FLAGS =============================== */
.flag-list { list-style: none; padding: 0; }
.flag {
  padding: 0.55rem 0.8rem; border-left: 4px solid var(--bad); background: var(--bad-bg);
  border-radius: 0 4px 4px 0; margin-bottom: 0.5rem; font-size: 0.9rem;
}
.flag-low { border-left-color: var(--mid); background: var(--mid-bg); }
.flag-sev {
  text-transform: uppercase; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.09em; margin-right: 0.35rem; color: var(--bad);
}
.flag-low .flag-sev { color: var(--mid); }

.unknown-list { columns: 2; column-gap: 2.5rem; font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 44rem) { .unknown-list { columns: 1; } }

.kv-table th { width: 9rem; font-weight: 600; color: var(--ink-soft); background: transparent; text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.src-id { font-variant-numeric: tabular-nums; color: var(--ink-soft); width: 3rem; }
.src-ref { font-size: 0.82em; text-decoration: none; color: var(--accent); }
.src-manual { color: var(--ink-soft); font-style: italic; }
.sources-table td { word-break: break-word; }
:target { background: var(--mid-bg); transition: background 0.6s; }

.report-cta {
  margin-top: 2.75rem; border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: 4px; padding: 1.1rem 1.3rem; background: var(--bg-soft);
}

/* =========================== BUTTONS & FORMS =========================== */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  border: 1px solid var(--accent); border-radius: 4px; padding: 0.5rem 1.2rem;
  font-family: var(--sans-body); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none; cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.btn:hover { background: #145438; border-color: #145438; color: #fff; filter: none; }
.btn-secondary { background: var(--bg); color: var(--accent); border: 1px solid var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #fff; }

.report-form { max-width: 36rem; }
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.3rem; }
.form-row .check-label { font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-row input[type="url"], .form-row input[type="email"], .form-row select, .form-row textarea {
  width: 100%; font-family: var(--sans-body); font-size: 0.95rem;
  padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ============================ METHODOLOGY ============================ */
.formula {
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px;
  padding: 0.8rem 1rem; font-size: 0.9rem; overflow-x: auto; font-family: var(--sans-body);
}
.method-table td, .method-table th { font-size: 0.9rem; }
.profile-matrix td, .profile-matrix th { white-space: nowrap; }
.profile-matrix td:last-child, .profile-matrix th:last-child { white-space: normal; min-width: 14rem; }

/* =========================== HOME AUDIT =========================== */
.home-audit { margin-top: 2.75rem; border-top: 2px solid var(--accent); padding-top: 1rem; }

/* ============================== FOOTER ============================== */
.site-footer {
  border-top: 3px solid var(--accent); background: var(--bg-soft); margin-top: 2.5rem;
  font-size: 0.82rem; color: var(--ink-soft);
}
.site-footer .container { padding-top: 1.25rem; padding-bottom: 1.75rem; }
.site-footer p { max-width: 60rem; }

/* ===================== LICENSING & CREDENTIALS ===================== */
#licensing .lic-missing { color: var(--bad); }
.doctors-table { margin-top: 0.5rem; font-size: 0.9rem; }
.doctors-table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--bg); background: var(--accent); }
.doctors-table td .lic-missing { color: var(--bad); font-size: 0.9em; }

/* ===================== FEEDBACK FORM (unified) ===================== */
.req { color: var(--bad); }
.contact-fieldset { border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 4px; padding: 0.6rem 1rem 1rem; margin: 1.25rem 0; }
.contact-fieldset legend { font-family: var(--serif-head); font-weight: 700; padding: 0 0.4rem; }
.contacts-hint { margin: 0.3rem 0 0.75rem; font-style: italic; }
.hp-field { position: absolute !important; inset-inline-start: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--bad); font-size: 0.9rem; margin-top: 0.4rem; }
.form-status { min-height: 1.2em; font-size: 0.95rem; margin-top: 0.5rem; }
.form-ok  { color: var(--good); font-weight: 700; }
.form-err { color: var(--bad); }
.cf-turnstile { margin: 1rem 0; }

/* ============================ DATA BANNER ============================ */
.data-banner {
  background: var(--ink); color: var(--bg); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.45rem 0; text-align: center;
}
.data-banner a { color: #f3ead9; }

/* ============================== MOBILE ============================== */
@media (max-width: 640px) {
  h1 { font-size: 1.7rem; }
  .brand-name { font-size: 1.3rem; }
  .container { padding: 0 1.1rem; }
  .site-header .container { gap: 0.3rem 1.2rem; }
  .clinic-score-big { font-size: 1.6rem; }
  .card-bar-label { flex-basis: 7.5rem; }
}

/* ============================== PRINT ============================== */
@media print {
  body { background: #fff; color: #000; font-size: 10pt; }
  .site-header, .site-footer { border-color: #000; }
  .site-nav, .lang-switcher, .ranking-controls, .report-cta, .report-form, .btn, .data-banner { display: none; }
  a { color: #000; text-decoration: none; }
  .score-badge, .chip, .clinic-card { border-color: #000 !important; }
  thead th { background: #fff; color: #000; }
}

/* Zartrace contextual CTA — understated, readable on cream bg;
   palette-neutral so it adapts to every site design. */
.us-cta {
  margin: 1.1rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(90,65,40,0.22);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: rgba(26,107,71,0.05);
}
.us-cta h4 { margin: 0 0 0.4rem; font-size: 1.02rem; color: var(--ink); }
.us-cta > p { margin: 0 0 0.75rem; color: var(--ink-soft); }
.us-cta .btn { margin: 0.15rem 0; }
.us-cta .us-disclosure { font-size: 0.8rem; opacity: 0.7; margin: 0.65rem 0 0; color: var(--ink-soft); }
.us-cta-lg { margin: 1.5rem 0; padding: 1.4rem 1.6rem; }
.us-cta-lg h2 { margin-top: 0; }

/* sedation */
#sedation{margin:1.25rem 0;padding:1rem 1.15rem;border:1px solid var(--line,#e5e0d8);border-radius:10px;background:var(--card,#fff)}
#sedation h2{margin-top:0}
.sedation-list{list-style:none;padding:0;margin:.5rem 0}
.sedation-list li{padding:.35rem 0}
.info-pill{display:inline-block;font-size:.72em;padding:.05em .55em;border:1px solid var(--accent,#1b5c8a);border-radius:1em;color:var(--accent,#1b5c8a);vertical-align:middle;white-space:nowrap}

/* fleet-a11y-v1 */
/* fleet-a11y-v1.1 rtl-safe */
.skip-link { position: absolute; inset-inline-start: -9999px; top: 0; z-index: 100; padding: 0.5rem 1rem; background: var(--bg, #fff); color: var(--ink, #111); border: 2px solid var(--accent, currentColor); border-radius: 4px; }
.skip-link:focus { inset-inline-start: 0.5rem; top: 0.5rem; }
:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
/* cities-table-scroll */
.cities-table { min-width: 34rem; }
.cities-table td, .cities-table th { white-space: nowrap; }

/* card-bar-label-wrap: .card-bar-label is `flex: 0 0 9.5rem` (7.5rem on the mobile breakpoint)
   with flex-shrink 0, so min-width:auto pins it to min-content. A one-word compound longer
   than ~20 chars (da "Informationsgennemsigtighed", 27) then blows the reserved basis out to
   ~193px, pushes .card-bar-pts past the 390px viewport and gives the document a horizontal
   scrollbar (wave-5 H2, denmark /da/). `anywhere` — not `break-word` — is what lowers
   min-content, so the declared basis is honoured again; hyphens:auto then lets the break land
   on a morpheme wherever the browser has a dictionary for <html lang>. */
.card-bar-label { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }

/* doctors-table-scroll: a floor under the doctors table, so .table-wrap scrolls instead of the
   columns collapsing. Where the wave-5 typography pass left `overflow-wrap: anywhere` on
   table cells, every column's min-content drops to one character, .doctors-table can never
   grow past .table-wrap, the wrapper never scrolls and the browser squeezes the columns
   into the ~338px content box instead. Measured at 390px on canada /fr/:
   columns 58/146/42/92, the licence "ODQ 96755" broken into seven one-character lines,
   the header "N° DE LICENCE" into six, table 977px tall (wave-5 T-V §3.2, T-W).
   The identifier columns get their normal breaking back — .doc-name and .doc-lic may
   wrap between words, never inside one — while .doc-spec and .doc-note keep `anywhere`
   plus hyphens, which is where breaking anywhere is right. .lic-id is the licence number
   itself (clinic.js marks only the identifier head, never a whole prose cell) and stays
   on one line. min-width gives the table a floor so the WRAPPER scrolls instead of the
   columns collapsing; the per-column minimums keep the prose column from crushing its
   neighbours. 34rem is the same floor .cities-table uses above.
   After, same page: columns 111/168/106/158, table 338 -> 544 inside a 340px wrapper,
   height 977 -> 671, document width 375 before and after.
   Laid on every site that publishes a dentist row, not only on the ones whose cells carry
   `overflow-wrap: anywhere` (wave-6 H1-pre, decisions 26 and 29). */
.doctors-table .doc-name, .doctors-table .doc-lic { overflow-wrap: normal; word-break: normal; hyphens: none; -webkit-hyphens: none; }
.doctors-table .lic-id { white-space: nowrap; }
.doctors-table .doc-name { min-width: 6.5rem; }
.doctors-table .doc-spec { min-width: 7.5rem; }
.doctors-table .doc-note { min-width: 8.5rem; }
.table-wrap .doctors-table { min-width: 34rem; }

/* zartrace-banner-v1 */
.cat-section:has(> .ai-split) { container-type: inline-size; }
.ai-split { display: flex; flex-direction: column; gap: 1rem; }
.ai-split > .table-wrap { min-width: 0; }
.zt-ad { width: 100%; max-width: 22.5rem; }
.zt-banner { display: block; border-radius: var(--radius, 10px); overflow: hidden; }
.zt-banner img { display: block; width: 100%; height: auto; transition: filter 0.15s; }
.zt-banner:hover img { filter: brightness(1.08); }
.zt-banner:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 3px; }
.zt-disclosure { margin: 0.55rem 0 0; font-size: 0.78rem; line-height: 1.45; opacity: 0.72; }
@container (min-width: 52rem) {
  .ai-split { flex-direction: row; align-items: flex-start; gap: 1.5rem; }
  .ai-split > .table-wrap { flex: 1 1 0; }
  .zt-ad { flex: 0 0 300px; max-width: 300px; }
}
@media print { .zt-ad { display: none; } }
