.tariffs-page {
  --tariff-ink: #172b40;
  --tariff-muted: #586b80;
  --tariff-line: #d8e4ef;
  --tariff-paper: #fff;
  --tariff-bg: #f5f8fc;
  --tariff-accent: #1665ad;
  --tariff-soft: #eaf3fc;
  box-sizing: border-box;
  min-width: 0;
  padding: 40px 0 56px;
  color: var(--tariff-ink);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  width: min(100% - 48px, 1180px);
}
.tariffs-page *, .tariffs-page *::before, .tariffs-page *::after { box-sizing: border-box; }
.tariffs-page [hidden] { display: none !important; }
.tariffs-page h1, .tariffs-page h2, .tariffs-page h3, .tariffs-page p { margin: 0; }
.tariffs-heading { margin-bottom: 28px; }
.tariffs-eyebrow { color: var(--tariff-accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tariffs-heading h1 { max-width: 820px; margin: 0 0 10px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 650; line-height: 1.15; letter-spacing: -1.4px; }
.tariffs-intro { max-width: 700px; color: var(--tariff-muted); font-size: 14px; line-height: 1.55; }
.tariffs-toolbar { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 20px; padding: 20px 22px; border: 1px solid var(--tariff-line); border-radius: 16px; background: var(--tariff-paper); }
.tariffs-crumb { display: flex; align-items: center; gap: 9px; margin-right: auto; color: var(--tariff-muted); font-size: 13px; }
.tariffs-controls select, .tariffs-retry { min-height: 44px; padding: 10px 13px; border: 1px solid var(--tariff-line); border-radius: 9px; background: #fff; color: var(--tariff-ink); font: inherit; font-size: 14px; }
.tariffs-retry:hover { background: var(--tariff-soft); }
.tariffs-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; flex-basis: 100%; }
.tariffs-controls label { display: grid; gap: 7px; color: var(--tariff-muted); font-size: 12px; font-weight: 500; }
.tariffs-controls select { width: 100%; min-width: 0; max-width: none; background: var(--tariff-bg); font-weight: 500; cursor: pointer; }
.tariffs-page :focus-visible { outline: 2px solid var(--tariff-accent); outline-offset: 3px; }
.tariffs-layout { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); gap: 22px; align-items: start; }
.tariffs-map-panel, .tariffs-summary { min-width: 0; padding: 24px; border: 1px solid var(--tariff-line); border-radius: 16px; background: var(--tariff-paper); }
.tariffs-map-caption { display: flex; min-height: 23px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 16px; font-size: 12px; }
.tariffs-map-caption strong { font-size: 13px; }
.tariffs-map-caption span { color: var(--tariff-muted); }
.tariffs-map-panel svg { display: block; width: 100%; height: auto; max-height: 590px; overflow: visible; }
.tariffs-region { stroke: #b1b9bc; stroke-width: .65; vector-effect: non-scaling-stroke; cursor: pointer; transition: filter .12s ease; }
.tariffs-region:hover { filter: brightness(.94); }
.tariffs-commune { stroke: none; cursor: pointer; }
.tariffs-inner-boundary { fill: none; stroke: #fff; stroke-width: 1.05; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.tariffs-department-boundary { fill: none; stroke: #969eab; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.tariffs-selected-outline { fill: none; stroke: #153753; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.tariffs-outer-outline { fill: none; stroke: #969eab; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.tariffs-region.band-0, .tariffs-commune.band-0, .tariffs-swatch.band-0 { fill: #cce9d7; background: #cce9d7; }
.tariffs-region.band-1, .tariffs-commune.band-1, .tariffs-swatch.band-1 { fill: #e5edbd; background: #e5edbd; }
.tariffs-region.band-2, .tariffs-commune.band-2, .tariffs-swatch.band-2 { fill: #fff0b5; background: #fff0b5; }
.tariffs-region.band-3, .tariffs-commune.band-3, .tariffs-swatch.band-3 { fill: #f8d4b3; background: #f8d4b3; }
.tariffs-region.band-4, .tariffs-commune.band-4, .tariffs-swatch.band-4 { fill: #efb6ae; background: #efb6ae; }
.tariffs-region.missing, .tariffs-commune.missing, .tariffs-swatch.missing { fill: #eceef1; background: #eceef1; }
.tariffs-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--tariff-line); color: var(--tariff-muted); font-size: 11px; }
.tariffs-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.tariffs-swatch { display: inline-block; width: 12px; height: 12px; border: 1px solid #0000000d; border-radius: 2px; }
.tariffs-summary { padding: 26px; background: #fff; }
.tariffs-summary h2 { margin: 8px 0 20px; font-size: 23px; line-height: 1.25; overflow-wrap: anywhere; }
.tariffs-price { color: var(--tariff-accent); font-size: 48px; letter-spacing: -2px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tariffs-price-caption { margin-top: 5px !important; color: var(--tariff-muted); font-size: 12px; }
.tariffs-metrics { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 17px 0 0; padding-top: 13px; border-top: 1px solid var(--tariff-line); font-size: 12px; line-height: 1.7; }
.tariffs-metrics dt { color: var(--tariff-muted); }
.tariffs-metrics dd { margin: 0; text-align: right; font-weight: 650; }
.tariffs-summary-copy { margin-top: 12px !important; color: var(--tariff-muted); font-size: 13px; line-height: 1.5; }
.tariffs-source-block { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--tariff-line); }
.tariffs-source-block h3, .tariffs-commune-list h3 { margin-bottom: 8px; font-size: 13px; }
.tariffs-records { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.tariffs-record { min-width: 0; padding: 10px 0 0; border-top: 1px solid var(--tariff-line); }
.tariffs-record-title { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.tariffs-record-title a, .tariffs-profile-link { color: var(--tariff-accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.tariffs-record-title strong { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.tariffs-record-meta, .tariffs-profile-link { display: block; margin-top: 5px !important; color: var(--tariff-muted); font-size: 11px; }
.tariffs-record-label { margin-top: 4px !important; color: var(--tariff-muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.tariffs-record-status, .tariffs-record-reason { margin-top: 5px !important; color: var(--tariff-muted); font-size: 11px; line-height: 1.45; }
.tariffs-record-status.is-comparable { color: #3d7558; }
.tariffs-record-reason { color: var(--tariff-muted); }
.tariffs-muted, .tariffs-method { color: var(--tariff-muted); font-size: 12px; line-height: 1.5; }
.tariffs-method { margin-top: 17px !important; padding-top: 0; border-top: 0; }
.tariffs-commune-list { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--tariff-line); }
.tariffs-commune-list ol { margin: 0; padding-left: 20px; color: var(--tariff-muted); font-size: 12px; }
.tariffs-commune-list li + li { margin-top: 8px; }
.tariffs-commune-list button { padding: 0; border: 0; background: transparent; color: var(--tariff-accent); font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.tariffs-empty { margin-top: 14px !important; padding: 11px; border-radius: 5px; background: #f2f3f6; color: var(--tariff-muted); font-size: 12px; }
.tariffs-status, .tariffs-error { max-width: 620px; margin: 30px auto; padding: 20px; border: 1px solid var(--tariff-line); border-radius: 7px; background: #fff; color: var(--tariff-muted); text-align: center; }
.tariffs-error { border-color: #e5bdc2; background: #fff5f5; color: #843744; }
.tariffs-retry { margin-top: 12px; cursor: pointer; }
@media (max-width: 760px) {
  .tariffs-page { padding-top: 26px; width: min(100% - 32px, 600px); }
  .tariffs-layout { grid-template-columns: minmax(0, 1fr); }
  .tariffs-summary { display: grid; grid-template-columns: minmax(0, 1fr); }
  .tariffs-map-panel, .tariffs-summary { padding: 14px; }
  .tariffs-map-panel svg { max-height: none; }
}
@media (max-width: 480px) {
  .tariffs-toolbar { align-items: stretch; }
  .tariffs-controls { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .tariffs-controls label { display: grid; gap: 5px; }
  .tariffs-controls select { width: 100%; max-width: none; }
  .tariffs-heading h1 { letter-spacing: -.9px; }
  .tariffs-toolbar { padding: 16px; gap: 12px; }
  .tariffs-crumb { flex-basis: 100%; }
  .tariffs-map-caption { display: grid; }
  .tariffs-legend { justify-content: flex-start; gap: 8px 10px; }
  .tariffs-price { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { .tariffs-region { transition: none; } }

.tariffs-method-details { margin-top: 13px; color: var(--tariff-muted); font-size: 12px; line-height: 1.5; }
.tariffs-method-details summary { cursor: pointer; color: var(--tariff-accent); }
.tariffs-method-details p { margin-top: 8px; }
.tariffs-unlocated-details { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--tariff-line); color: var(--tariff-muted); font-size: 12px; }
.tariffs-unlocated-details > summary { color: var(--tariff-accent); font-weight: 650; cursor: pointer; }
.tariffs-unlocated-content { margin-top: 10px; }
.tariffs-unlocated-content .tariffs-records { max-height: 550px; overflow-y: auto; overscroll-behavior: contain; }
.tariffs-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; }
.tariffs-pages button { min-height: 36px; padding: 6px 9px; border: 1px solid var(--tariff-line); border-radius: 5px; background: #fff; color: var(--tariff-accent); font: inherit; font-size: 12px; cursor: pointer; }
.tariffs-pages button:disabled { opacity: .55; cursor: default; }

/* Selection follows the geographic boundary; browser focus boxes never frame a region. */
.tariffs-page svg path:focus { outline: none; }
.tariffs-map-caption span { min-height: 18px; }
.tariffs-record-details { margin-top: 8px; font-size: 11px; color: var(--tariff-muted); }
.tariffs-record-details summary { cursor: pointer; color: var(--tariff-accent); }
.tariffs-method-details { padding-top: 18px; border-top: 1px solid var(--tariff-line); }
.tariffs-method-details summary, .tariffs-unlocated-details > summary { padding-block: 5px; font-weight: 500; }
@media (min-width: 980px) { .tariffs-controls { flex-basis: auto; flex: 0 1 560px; } }

@media (max-width: 480px) {
  body:has(#tariffs-app) .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 16px; }
  body:has(#tariffs-app) .directory-nav { width: 100%; justify-content: flex-start; gap: 8px 14px; font-size: 12px; }
}

.tariffs-more-communes { margin-top: 12px; font-size: 12px; color: var(--tariff-accent); }
.tariffs-more-communes summary { padding-block: 5px; cursor: pointer; }
.tariffs-more-communes ol { margin-top: 8px; }

.tariffs-crumb a { color: var(--tariff-accent); text-decoration: none; padding-block: 10px; }
.tariffs-crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

.tariffs-overseas { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--tariff-line); }
.tariffs-overseas h2 { margin-bottom: 10px; font-size: 14px; }
.tariffs-overseas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tariffs-overseas-button { min-width: 0; padding: 8px; border: 1px solid var(--tariff-line); border-radius: 9px; background: #fff; color: var(--tariff-ink); font: inherit; cursor: pointer; }
.tariffs-overseas-button:hover { background: var(--tariff-bg); }
.tariffs-overseas-button.is-selected { border-color: var(--tariff-accent); box-shadow: 0 0 0 1px var(--tariff-accent); }
.tariffs-overseas-button svg { display: block; width: 100%; height: 108px; max-height: none; }
.tariffs-overseas-button span { display: block; margin-top: 5px; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .tariffs-overseas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tariffs-overseas-button svg { height: 96px; }
}

.map-modes { display:flex; gap:6px; padding:20px 0 0; width:min(100% - 48px,1180px); flex-wrap:wrap; }
.map-modes button { border:1px solid #d8e4ef; border-radius:10px; padding:11px 18px; background:#fff; color:#38536a; font:600 14px Arial,sans-serif; cursor:pointer; min-height:44px; }
.map-modes button[aria-pressed="true"] { background:#1665ad; color:white; border-color:#1665ad; }
.map-modes button:focus-visible { outline:3px solid #1665ad; outline-offset:3px; }
.counts-total { font-size:56px; font-weight:650; line-height:1.2; margin:16px 0 6px!important; color:#1665ad; }
.counts-link { border:0; padding:5px 0; background:none; color:#1665ad; font:inherit; cursor:pointer; text-align:left; }
.counts-select-label,.counts-search-label { display:grid; gap:7px; font-size:13px; color:#586b80; }
.counts-select-label select,.counts-search-label input { min-height:44px; max-width:100%; padding:9px 12px; background:white; border:1px solid #d8e4ef; border-radius:9px; color:#172b40; font:inherit; }
.counts-search-label { margin-top:20px; }
.counts-communes { max-height:270px; overflow:auto; list-style:none; padding:0; margin:10px 0; font-size:13px; }
.counts-directory-link { display:block; margin-top:16px; color:#1665ad; font-size:13px; }
.counts-map svg { width:100%; display:block; }
.counts-map .tariffs-summary h2 { font-size:24px; margin-top:12px; }
#tariffs-app[hidden],#practitioner-counts-app[hidden] { display:none!important; }
