:root {
  color-scheme: light;
  --ink: #182d27;
  --muted: #566861;
  --subtle: #6a7b74;
  --line: #dce4dd;
  --green: #204936;
  --green-deep: #153e2c;
  --green-wash: #e8f0e8;
  --paper: #fcfdf9;
  --canvas: #f1f4ee;
  --water: #e7eff0;
  --treated-fill: #1678ab;
  --treated-stroke: #104d73;
  font: 15px/1.45 "Atkinson Hyperlegible Next", "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green-deep); }
button:disabled { cursor: default; opacity: .42; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid #296949;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.top {
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px clamp(20px, 3.2vw, 52px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 43px; height: 43px; border-radius: 11px; color: #eff7ee; background: var(--green); }
.brand-mark svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linejoin: round; }
.brand h1 { font-size: clamp(18px, 2.1vw, 29px); line-height: 1.14; font-weight: 720; letter-spacing: -.055em; }
.brand p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.plain { display: inline-flex; gap: 8px; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 7px; min-width: 34px; min-height: 36px; padding: 6px; }
.plain:hover { background: var(--green-wash); }
.source-button { color: var(--muted); font-size: 13px; font-weight: 650; white-space: nowrap; }
.source-button .icon { width: 18px; height: 18px; }
.workspace { max-width: 1650px; margin: 0 auto; padding: 26px clamp(18px, 3.2vw, 52px) 25px; display: grid; grid-template-columns: minmax(0,1fr) clamp(330px, 29vw, 430px); gap: 20px; align-items: start; }
.atlas, .panel { min-width: 0; border: 1px solid #d9e2d9; border-radius: 16px; background: var(--paper); box-shadow: 0 2px 4px #203d2905; }
.map-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 16px; position: relative; z-index: 3; }
.location-search { display: flex; align-items: center; gap: 8px; position: relative; max-width: 360px; flex: 1 1 260px; border: 1px solid var(--line); border-radius: 9px; background: #f7f9f5; padding: 0 10px; min-height: 41px; }
.location-search > .icon, .company-search > .icon { color: #61776a; width: 18px; height: 18px; }
.location-search:focus-within, .company-search:focus-within { border-color: #7ea88b; box-shadow: 0 0 0 2px #a8c8b454; }
.location-search input, .company-search input { border: 0; background: transparent; min-width: 0; width: 100%; min-height: 38px; padding: 0; outline: 0; }
.location-search input:focus-visible, .company-search input:focus-visible { outline: none; }
input::placeholder { color: #566861; opacity: 1; }
.location-search kbd { color: #64786b; background: #edf2eb; border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; font-size: 12px; }
.coverage { color: var(--muted); white-space: nowrap; font-size: 12px; font-weight: 620; }
.suggestions { position: absolute; top: calc(100% + 5px); left: 0; right: 0; max-height: 355px; margin: 0; padding: 4px; overflow: auto; z-index: 5; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 24px #1e37222c; }
.suggestions li { display: flex; align-items: center; gap: 10px; padding: 10px 9px; border-radius: 6px; min-height: 40px; font-size: 13px; }
.suggestions [role=option] { cursor: pointer; }
.suggestions [role=option]:hover, .suggestions [aria-selected=true] { background: var(--green-wash); }
.suggestions strong { font-size: 12px; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.map-stage { position: relative; height: clamp(420px, calc(100dvh - 258px), 790px); overflow: hidden; background: var(--water); border-block: 1px solid #dce8e4; isolation: isolate; }
#map { display: block; height: 100%; width: 100%; touch-action: pan-y; user-select: none; background: var(--water); }
#map.zoomed { touch-action: none; }
#map.dragging, #map.dragging .zone { cursor: grabbing; }
.land { fill: #f2f2e9; stroke: #d4ddce; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.zone { fill: var(--fill); stroke: #5b786d; stroke-opacity: .52; stroke-width: .62; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .13s ease, stroke .13s ease; }
.zone:hover, .zone:focus-visible { fill: var(--hover); stroke: var(--green-deep); stroke-opacity: 1; stroke-width: 1.25; outline: none; }
.zone.is-selected { fill: #2c6347; stroke: #17402d; stroke-width: 1.5; stroke-opacity: 1; }
.zone.is-dimmed { opacity: .54; }
.dep-outline { fill: none; stroke: #436358; stroke-width: 1.05; vector-effect: non-scaling-stroke; pointer-events: none; }
.zone-label, .city-dot, .city-label, .sea-label, .selected-label { pointer-events: none; user-select: none; }
.zone-label { fill: #263c34; paint-order: stroke fill; stroke: #fcfdfa; stroke-width: 2; stroke-opacity: .8; font-weight: 650; text-anchor: middle; dominant-baseline: central; display: none; }
#map.show-postcodes .zone-label { display: block; }
#map.show-postcodes .city-label, #map.show-postcodes .city-dot, #map.show-postcodes .sea-label { opacity: .62; }
.city-dot { fill: #243d35; stroke: #f6f8f0; stroke-width: 2; }
.city-label, .selected-label { fill: #1f352e; stroke: #f7f9f5; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; paint-order: stroke fill; font-weight: 750; }
.selected-label { text-anchor: middle; dominant-baseline: central; fill: #fff; stroke: #24583e; font-weight: 800; }
.sea-label { fill: #668c90; font-size: 15px; font-weight: 600; letter-spacing: 4px; font-style: italic; }
.north { position: absolute; top: 15px; left: 17px; display: grid; justify-items: center; color: #517572; font-size: 11px; line-height: 1; font-weight: 800; pointer-events: none; }
.north svg { margin-top: 3px; width: 16px; height: 23px; fill: currentColor; stroke: currentColor; }
.map-tools { position: absolute; bottom: 24px; right: 14px; display: grid; grid-template-columns: 1fr; overflow: hidden; border-radius: 9px; border: 1px solid #cbdad1; box-shadow: 0 2px 6px #27473915; background: var(--paper); }
.map-button { border: 0; width: 39px; height: 37px; display: grid; place-items: center; background: transparent; color: var(--green-deep); }
.map-button + .map-button { border-top: 1px solid var(--line); }
.map-button:hover:not(:disabled) { background: var(--green-wash); }
.map-button:focus-visible { outline-offset: -3px; }
.map-credit { position: absolute; bottom: 6px; left: 9px; color: #54736e; font-size: 10px; font-weight: 570; pointer-events: none; }
.map-tooltip { position: absolute; pointer-events: none; z-index: 2; max-width: min(250px,70%); background: #183d2d; color: #fff; border-radius: 6px; padding: 6px 9px; font-size: 12px; box-shadow: 0 3px 8px #183d2d38; }
.map-message { position: absolute; top: 49%; inset-inline: 20px; text-align: center; color: var(--muted); }
.department-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 7px; padding: 10px 12px; }
.department { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; min-height: 29px; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 3px 6px; color: #3c534a; font-size: 11.5px; font-weight: 650; }
.department:hover, .department[aria-pressed=true] { background: #f0f4ee; border-color: var(--line); }
.swatch { display: inline-grid; place-items: center; width: 22px; height: 20px; flex: 0 0 auto; font-size: 10px; line-height: 1; border-radius: 4px; background: var(--fill); color: #263d32; font-variant-numeric: tabular-nums; }
.panel { height: calc(clamp(420px, calc(100dvh - 258px), 790px) + 122px); display: flex; flex-direction: column; overflow: hidden; }
.overview { min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.overview-heading { padding: 28px 24px 25px; border-bottom: 1px solid var(--line); }
.overview-icon { display: grid; place-items: center; background: var(--green-wash); color: var(--green); width: 45px; height: 45px; border-radius: 10px; margin-bottom: 17px; }
.overview-icon .icon { width: 25px; height: 25px; }
.overview h2, .sector h2 { font-size: clamp(25px, 2.4vw, 35px); font-weight: 720; letter-spacing: -.055em; line-height: 1.06; overflow-wrap: anywhere; }
.overview p { color: var(--muted); margin-top: 9px; max-width: 33ch; font-size: 14px; }
.quick-links { padding: 17px 24px 25px; }
.quick-links h3 { font-size: 12px; font-weight: 720; margin-bottom: 8px; color: var(--muted); }
.quick { padding: 9px 3px; min-height: 41px; display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-bottom: 1px solid #e9eee7; text-align: left; font-size: 14px; font-weight: 635; }
.quick:last-child { border-bottom-color: transparent; }
.quick:hover { background: #f1f5ef; }
.quick-code { flex: 0 0 auto; padding: 3px 5px; border-radius: 4px; font-size: 11px; line-height: 1.4; font-weight: 750; font-variant-numeric: tabular-nums; background: var(--fill); }
.quick .icon { margin-left: auto; width: 15px; height: 15px; color: #5a7467; }
.sector { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sector-header { padding: 14px 20px 12px; }
.sector-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.postal-code { display: inline-block; width: fit-content; background: var(--green-wash); color: var(--green-deep); border-radius: 5px; padding: 3px 7px; font: 750 12px/1.4 ui-monospace, monospace; }
.close-sector { color: #4e6658; margin-right: -6px; min-height: 32px; }
.sector-communes { margin-top: 7px; font-size: 12px; color: var(--muted); }
.sector-communes summary { cursor: pointer; }
.sector-communes p { margin-top: 3px; max-height: 75px; overflow: auto; }
.company-filters { display: grid; gap: 7px; padding: 0 20px 9px; }
.company-search, .filter-select { display: flex; position: relative; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; background: #f7f9f5; min-height: 35px; padding: 0 8px; font-size: 13px; }
.company-search input { min-height: 34px; }
.filter-select select { appearance: none; padding: 0 28px 0 0; border: 0; background: none; width: 100%; min-height: 34px; color: #394d43; text-overflow: ellipsis; }
.filter-select > .icon { position: absolute; pointer-events: none; right: 9px; width: 16px; height: 16px; color: var(--subtle); }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 6px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
#result-status { font-weight: 630; }
.text-button { border: 0; background: transparent; color: var(--green-deep); font-size: 12px; font-weight: 650; text-decoration: underline; padding: 3px 0; }
.company-list { flex: 1; min-height: 0; overflow: auto; scrollbar-gutter: stable; }
.company { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: center; text-align: left; background: none; padding: 11px 16px 11px 20px; border: 0; border-bottom: 1px solid #e9eee7; }
.company:hover { background: #eff5ed; }
.company:focus-visible { outline-offset: -3px; }
.company-name { display: block; font-size: 14px; font-weight: 740; overflow-wrap: anywhere; }
.company-address, .company-activity { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.company-activity { color: #476454; }
.company > .icon { color: #658072; width: 17px; height: 17px; }
.empty { padding: 22px 20px; color: var(--muted); font-size: 14px; }
.empty p + p, .empty p + button, .empty p + a { margin-top: 11px; }
.empty a { display: inline-block; }
.pagination { display: flex; justify-content: space-between; gap: 9px; align-items: center; min-height: 51px; padding: 7px 20px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 33px; min-height: 31px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--green-deep); background: var(--paper); font-weight: 650; }
.outline-button:not(:disabled):hover { background: var(--green-wash); }
.outline-button .icon { width: 16px; height: 16px; }
.modal { color: var(--ink); border: 1px solid var(--line); border-radius: 15px; background: var(--paper); width: min(560px, calc(100% - 28px)); max-height: min(85dvh, 810px); padding: 23px 24px; box-shadow: 0 16px 60px #132c2750; }
.modal::backdrop { background: #142f2954; }
.modal-top { display: flex; justify-content: space-between; gap: 14px; align-items: start; margin-bottom: 17px; }
.modal-top h2 { font-size: 25px; line-height: 1.15; letter-spacing: -.045em; overflow-wrap: anywhere; }
.modal-top .postal-code { margin-bottom: 7px; }
.source-list { margin: 0; }
.source-list div { padding: 9px 0; border-bottom: 1px solid #e9eee7; }
.source-list div:last-child { border: 0; }
.source-list dt { font-weight: 700; }
.source-list dd { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0 0 15px; }
.detail-facts dt { color: var(--muted); font-size: 12px; }
.detail-facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.detail-links { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-links a { text-decoration: none; font-size: 12px; }
.bodacc { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.bodacc h3 { font-size: 15px; }
.bodacc p { margin-top: 7px; color: var(--muted); font-size: 13px; }
.notice-list { list-style: none; padding: 0; margin: 8px 0 0; }
.notice-list li { border-bottom: 1px solid #e9eee7; padding: 7px 0; }
.notice-list a { font-size: 13px; font-weight: 650; }
.notice-list time { display: block; color: var(--muted); font-size: 11px; }
@media (max-width: 960px) {
  .workspace { padding-inline: 17px; gap: 13px; grid-template-columns: minmax(0,1fr) 325px; }
  .department-list { gap: 3px; }
  .department { font-size: 10.5px; padding-inline: 4px; }
}
@media (max-width: 720px) {
  .top { min-height: 68px; padding: 11px 13px; gap: 6px; }
  .brand-mark { width: 37px; height: 37px; border-radius: 9px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .brand { gap: 9px; }
  .brand p { font-size: 11px; }
  .source-button span { display: none; }
  .workspace { display: block; padding: 10px 9px 22px; }
  .map-head { padding: 10px; gap: 8px; }
  .coverage { font-size: 10px; }
  .location-search { max-width: none; min-height: 38px; }
  .location-search kbd { display: none; }
  .location-search input, .company-search input, .filter-select select { font-size: 16px; }
  .location-search input { min-height: 36px; }
  .map-stage { height: clamp(300px, 52dvh, 450px); }
  .department-list { padding: 7px 3px; }
  .panel { margin-top: 10px; height: auto; overflow: visible; }
  .company-list { overflow: visible; }
  .overview-heading { padding: 21px 17px 17px; }
  .quick-links { padding: 13px 17px 17px; }
  .overview-icon { display: none; }
  .sector-header { padding: 12px 14px; }
  .company-filters, .results-toolbar, .pagination { padding-inline: 14px; }
  .company { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}

.map-head { padding-bottom: 10px; }
.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 0 16px 11px;
}
.map-layers { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #f3f6f0; }
.map-layers button { border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); min-height: 27px; padding: 3px 9px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.map-layers button[aria-pressed=true] { background: #fff; color: var(--green-deep); border-color: var(--line); }
.multi-select { font-size: 12px; gap: 5px; padding-inline: 8px; white-space: nowrap; }
.multi-select[aria-pressed=true] { background: var(--green-wash); border-color: #83a78c; }
.map-stage { height: clamp(385px, calc(100dvh - 295px), 760px); }
.panel { height: calc(clamp(385px, calc(100dvh - 295px), 760px) + 163px); }
.commune-zone { stroke-opacity: .43; stroke-width: .54; }
.commune-zone.is-selected { stroke-width: 1.45; }
.commune-zone.is-treated { fill: var(--treated-fill); stroke: var(--treated-stroke); stroke-opacity: 1; stroke-width: .75; }
.commune-zone.is-treated:hover, .commune-zone.is-treated:focus-visible { stroke: #093650; stroke-width: 1.5; }
.commune-zone.is-treated.is-selected { stroke: #093650; stroke-width: 2.15; }
.treatment-legend {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  color: #254e62;
  background: #fcfdf9ed;
  border: 1px solid #c4d6de;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  pointer-events: none;
}
.treatment-swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--treated-fill); border: 1px solid var(--treated-stroke); }
.commune-treatment { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 9px; margin-top: 10px; }
.treatment-status { padding: 3px 7px; border-radius: 5px; color: var(--muted); background: #eef1eb; font-size: 11px; font-weight: 700; white-space: nowrap; }
.treatment-status.is-treated { color: var(--treated-stroke); background: #e4f2fa; }
.treatment-button { font-size: 12px; }
.treatment-notice { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.overview p kbd { display: inline-block; font: inherit; font-size: 11px; line-height: 1.2; font-weight: 750; padding: 1px 4px; border-radius: 4px; border: 1px solid var(--line); background: #f5f7f2; white-space: nowrap; }
.suggestions li { align-items: start; }
.suggestions li small { display: block; color: var(--muted); margin-top: 1px; font-size: 11px; }
.selected-places { list-style: none; padding: 1px 4px 2px 1px; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 5px; overflow: auto; max-height: 79px; }
.selected-place { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 6px; background: #f4f7f2; color: var(--green-deep); min-height: 26px; padding: 2px 5px 2px 7px; font-size: 11px; max-width: 100%; }
.selected-place:hover { border-color: #8ca994; background: var(--green-wash); }
.selected-place span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-place .icon { width: 13px; height: 13px; }
.results-toolbar { padding-block: 7px; min-height: 44px; }
.export-button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--green); border-radius: 7px; padding: 6px 8px; min-height: 32px; background: var(--green); color: white; font-size: 12px; font-weight: 690; white-space: nowrap; }
.export-button:hover:not(:disabled) { background: var(--green-deep); }
.export-button .icon { width: 16px; height: 16px; }
.export-status { padding: 5px 20px; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line); }
.company-contact { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 15px; font-size: 13px; }
.company-context { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.company-context h3 { font-size: 15px; margin-bottom: 7px; }
.company-context p { font-size: 13px; color: var(--muted); }
.company-context .detail-facts { margin-bottom: 0; }
@media (max-width: 720px) {
  .map-head { padding-bottom: 7px; }
  .map-toolbar { padding: 0 9px 8px; gap: 5px; }
  .map-layers button { font-size: 11px; padding-inline: 6px; }
  .multi-select { font-size: 11px; gap: 3px; padding-inline: 5px; }
  .multi-select .icon { width: 14px; height: 14px; }
  .map-stage { height: clamp(300px, 48dvh, 450px); }
  .panel { height: auto; }
  .export-status { padding-inline: 14px; }
}

.scope-bar {
  display: grid;
  gap: 5px;
  flex: 0 0 auto;
  padding: 11px 20px 9px;
  border-bottom: 1px solid var(--line);
}
.scope-bar label { font-size: 12px; font-weight: 690; }
.scope-bar .filter-select { background: #f0f5ee; }
.scope-bar p { min-height: 16px; font-size: 11px; color: var(--muted); }
@media (max-width: 720px) {
  .scope-bar { padding-inline: 14px; }
}

.community-zone { stroke-width: 1; stroke-opacity: .74; }
.community-zone.is-treated { fill: var(--treated-fill); stroke: var(--treated-stroke); }
.community-zone:hover, .community-zone:focus-visible { stroke-width: 1.8; }
.directory-heading { padding-block: 17px 15px; }
.territory-back { display: inline-flex; align-items: center; gap: 5px; padding-inline: 0; margin: 0 0 8px; font-size: 12px; font-weight: 650; }
.territory-back .icon { width: 15px; height: 15px; }
.community-list { padding: 5px 20px 16px; }
.territory-item { display: flex; gap: 8px; align-items: center; justify-content: space-between; width: 100%; min-width: 0; text-align: left; padding: 9px 4px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; }
.territory-item:hover, .territory-item:focus-visible { background: var(--green-wash); }
.territory-item-text { min-width: 0; }
.territory-item strong { display: block; font-size: 13px; font-weight: 670; overflow-wrap: anywhere; }
.territory-item small { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }
.territory-item .icon { flex: none; width: 15px; height: 15px; color: var(--muted); }
.territory-item.is-treated small { color: var(--treated-stroke); font-weight: 700; }
@media (max-width: 720px) {
  .community-list { padding-inline: 14px; }
  .directory-heading { padding-block: 15px 12px; }
  .coverage { font-size: 10px; }
}
