/* Plume · shared page styles. See docs/DESIGN.md and tokens.css.
   Warm paper, editorial serif headings, restrained controls, honest gaps. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

a {
  color: var(--petrol-link);
}

:focus-visible {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-xs);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 50;
  background: var(--ink-900);
  color: var(--paper-100);
  border-radius: var(--radius-md);
  padding: 9px 13px;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: top 0.14s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---- Brand lockup ---------------------------------------------------- */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-lockup__mark {
  flex: none;
}

.brand-lockup__word {
  font-family: var(--font-serif);
  font-weight: var(--fw-regular);
  font-size: 36px;
  letter-spacing: -0.055em;
  color: inherit;
}

.brand-lockup__period { color: var(--brand-red); }

/* ---- Shared editorial navigation ------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 28px;
  background: var(--surface-page);
  color: var(--text-primary);
  border-bottom: 1px solid var(--rule);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  white-space: nowrap;
}

.site-nav__links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: var(--text-primary);
}

/* ---- Hero (compact band: copy left, honesty right) ---------------------- */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 28px 24px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 26px 56px;
  align-items: center;
}

.hero .strata-label {
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 12px;
  max-width: 24ch;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: var(--fw-regular);
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: pretty;
}

.hero__lede {
  margin: 0;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.hero__lede strong {
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
}

/* The honesty callout: carries the data-gap rail so the coverage
   caveat can never be mistaken for decoration or a calm all-clear. */
.hero__truth {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  align-self: center;
  padding: 13px 16px 13px calc(var(--gap-rail-width) + 14px);
  border: 1px solid var(--gap-border);
  border-radius: var(--radius-md);
  background: var(--pattern-data-gap-rail);
}

.hero__truth svg {
  margin-top: 2px;
  color: var(--gap-text);
}

.hero__truth p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--gap-text);
}

.hero__truth strong {
  color: var(--text-primary);
}

/* ---- Map instrument card ------------------------------------------------
   One bordered card owns the whole instrument: a mono stats readout on
   top, the basemap in the middle, the legend as the card's footer. */
.dc-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 28px 64px;
}

.dc-map-card {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}

.dc-county-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  background: var(--surface-card);
}

.dc-county-picker label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dc-county-picker select {
  min-height: 40px;
  min-width: min(300px, 100%);
  padding: 7px 34px 7px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--paper-0);
  color: var(--text-primary);
  font: inherit;
}

.dc-county-picker > span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* Break the map out of the 1180px column to viewport width (24px gutters). */
.dc-bleed {
  width: calc(100vw - 48px);
  margin-left: calc(50% - 50vw + 24px);
}

.dc-map-card__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 26px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--paper-50);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dc-read {
  white-space: nowrap;
}

.dc-read strong {
  font-size: 15px;
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  color: var(--text-primary);
  margin-right: 3px;
}

.dc-read--right {
  margin-left: auto;
  color: var(--text-secondary);
  white-space: normal;
}

.dc-map__frame {
  position: relative;
  height: min(68vh, 660px);
  min-height: 440px;
  background: var(--paper-200);
}

.dc-leaflet-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.dc-map__fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 28px;
  background: color-mix(in oklab, var(--paper-200) 92%, transparent);
  color: var(--text-secondary);
  text-align: center;
  pointer-events: none;
}

.dc-map__fallback[hidden] {
  display: none;
}

/* Honesty guard shown whenever a legend filter hides evidence. Hatched,
   never calm — a filtered map must not read as the full picture. */
.dc-map__filternote {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 800;
  padding: 6px 11px;
  border: 1px solid var(--gap-border);
  border-radius: var(--radius-sm);
  background: var(--pattern-data-gap);
  color: var(--gap-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
}

/* map pins — divIcon markers, class chosen by risk signal */
.dc-pin {
  z-index: 3;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid var(--paper-0);
  background: var(--review-rust);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 18%, transparent), var(--shadow-raised);
  display: grid;
  place-items: center;
}

.dc-pin span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--paper-0);
}

.dc-pin--cleanup_pce {
  background: var(--plume-orange);
}

.dc-pin--regulated_facility,
.dc-pin--regulatory {
  background: #6b4c9a;
}

.dc-pin--current_listing,
.dc-pin--confirmed {
  background: #2e6e86;
}

.dc-pin--historical_air_emissions {
  background: #876137;
}

.dc-pin--former_listing {
  border-color: var(--gap-strong);
  background: var(--paper-0);
}

.dc-pin--former_listing span {
  background: var(--gap-strong);
}

.dc-pin--needs_review,
.dc-pin--weak_keyword,
.dc-pin--unknown {
  border-color: var(--gap);
  border-style: dashed;
  background: var(--paper-0);
}

.dc-pin--needs_review span,
.dc-pin--weak_keyword span,
.dc-pin--unknown span {
  background: var(--gap);
}

.dc-pin:hover {
  z-index: 4;
}

.dc-map-card .leaflet-container {
  font-family: var(--font-sans);
  background: var(--paper-200);
}

.dc-map-card .leaflet-control-attribution {
  font-family: var(--font-mono);
  font-size: 10px;
}

.dc-map-card .leaflet-popup-content {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
}

.dc-map-card .leaflet-popup-content strong,
.dc-map-card .leaflet-popup-content span,
.dc-map-card .leaflet-popup-content small {
  display: block;
}

.dc-map-card .leaflet-popup-content small {
  color: var(--text-secondary);
  margin-top: 4px;
}

/* legend — the card's footer strip: dot + label + meaning */
.dc-map-card__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 22px;
  padding: 11px 16px;
  border-top: 1px solid var(--rule-strong);
  background: var(--paper-50);
  font-size: 12.5px;
  line-height: 1.3;
}

/* Legend entries are live filters. */
.dc-filter {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  margin: -4px -7px;
  padding: 4px 7px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dc-filter:hover {
  background: var(--paper-200);
}

.dc-filter b {
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

.dc-filter small {
  color: var(--text-muted);
  font-size: 11px;
}

.dc-filter[aria-pressed="false"] {
  opacity: 0.45;
}

.dc-filter[aria-pressed="false"] b {
  text-decoration: line-through;
}

.dc-map-card__legendhint {
  margin-left: auto;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.dc-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  align-self: center;
  flex: none;
  border: 1px solid transparent;
}

.dc-dot--cleanup_pce {
  background: var(--plume-orange);
}

.dc-dot--regulated_facility,
.dc-dot--regulatory {
  background: #6b4c9a;
}

.dc-dot--current_listing,
.dc-dot--confirmed {
  background: #2e6e86;
}

.dc-dot--historical_air_emissions {
  background: #876137;
}

.dc-dot--former_listing {
  border-color: var(--gap-strong);
  background: var(--paper-0);
}

.dc-dot--needs_review,
.dc-dot--weak_keyword {
  border-color: var(--gap);
  border-style: dashed;
  background: var(--paper-0);
}

/* ---- Provenance band (flat, under the map) ------------------------------- */
.dc-prov {
  margin-top: 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  overflow: hidden;
}

.dc-prov__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 18px;
  padding: 11px 16px;
}

.dc-prov__manifest {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.dc-prov__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}

.dc-source {
  padding: 11px 16px 12px;
  border-top: 1px solid var(--rule);
}

.dc-source + .dc-source {
  border-left: 1px solid var(--rule);
}

.dc-source__name {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  margin-bottom: 3px;
}

.dc-source__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.dc-published {
  margin-top: var(--space-3);
  color: var(--text-secondary);
  font: 500 0.78rem/1.5 var(--font-mono);
}

.dc-source.is-overdue {
  border-color: var(--caution-border);
  background: var(--caution-surface);
}

.dc-coverage {
  display: grid;
  border-top: 1px solid var(--rule);
}

.dc-coverage__county {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 6px 18px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  border-left: 4px solid var(--gap-strong);
  background: var(--pattern-data-gap);
}

.dc-coverage__county--current {
  border-left-color: var(--petrol-500);
  background: var(--surface-card);
}

.dc-coverage__county.is-selected {
  box-shadow: inset 0 0 0 2px var(--focus-ring);
}

.dc-coverage__county > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.dc-coverage__county a {
  font-weight: var(--fw-semibold);
}

.dc-coverage__county strong,
.dc-coverage__county > span {
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.dc-coverage__county > span {
  color: var(--gap-text);
}

.dc-coverage__runtime {
  grid-column: 1 / -1;
  font-weight: var(--fw-semibold);
}

.dc-coverage__dates {
  grid-column: 1 / -1;
}

.dc-coverage__dates > summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.dc-coverage__products {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 6px -10px -4px;
  border: 1px solid var(--rule);
  background: var(--surface-card);
}

.dc-loaded-sources {
  border-bottom: 1px solid var(--rule);
}

.dc-loaded-sources > summary {
  padding: 10px 16px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.dc-muted {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
  color: var(--text-secondary);
  font-size: 13px;
}

.dc-note {
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--rule);
  border-left: 3px solid var(--monitor-amber);
  background: var(--caution-surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.55;
}

/* ---- Signal cards ("worth asking about") --------------------------------- */
.dc-signal {
  margin-top: 44px;
}

.dc-signal__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.dc-signal__head h2 {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: var(--fw-regular);
  letter-spacing: -0.01em;
}

.dc-signal__head > span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.dc-signal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.dc-signal-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 18px;
  border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--plume-orange);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
  text-decoration: none;
}

.dc-signal-card:hover {
  box-shadow: var(--shadow-raised);
}

.dc-signal-card--regulated_facility {
  border-left-color: #6b4c9a;
}

.dc-signal-card--historical_air_emissions {
  border-left-color: #876137;
}

.dc-signal-card .dc-badge {
  justify-self: start;
}

.dc-signal-card strong {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: var(--fw-regular);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dc-signal-card small {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.dc-signal-card__meta {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

/* The legend filters hide cards/rows via [hidden]; their own display
   values would otherwise win over the user-agent hidden rule. */
.dc-signal-card[hidden],
.dc-row[hidden] {
  display: none;
}

/* Filter notice for the cards section — hatched, with a one-click reset,
   so hidden records are always flagged and easy to bring back. */
.dc-signal__filternote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 14px;
  padding: 9px 14px;
  border: 1px solid var(--gap-border);
  border-radius: var(--radius-md);
  background: var(--pattern-data-gap);
  color: var(--gap-text);
  font-size: 13px;
  line-height: 1.5;
}

.dc-signal__filternote[hidden] {
  display: none;
}

.dc-filter-reset {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  background: var(--gap-strong);
  color: var(--paper-0);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.dc-filter-reset:hover {
  filter: brightness(0.92);
}

/* Honest empty state for the signal section — a quiet section here must
   never read as an all-clear, so it carries the data-gap hatch. */
.dc-signal__none {
  padding: 16px 18px;
  border: 1px solid var(--gap-border);
  border-radius: var(--radius-md);
  background: var(--pattern-data-gap);
  color: var(--gap-text);
  font-size: 14px;
  line-height: 1.55;
}

/* ---- Collapsible full index ----------------------------------------------- */
.dc-index {
  margin-top: 18px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  overflow: hidden;
}

.dc-index > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.dc-index > summary::-webkit-details-marker {
  display: none;
}

.dc-index > summary::after {
  content: "Show";
  flex: none;
  font-size: 10.5px;
  color: var(--text-muted);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

.dc-index[open] > summary::after {
  content: "Hide";
}

.dc-index > summary:hover {
  background: var(--paper-50);
}

.dc-index > summary small {
  font-weight: var(--fw-regular);
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-right: auto;
}

.dc-index__filternote {
  flex: none;
  padding: 3px 9px;
  border: 1px solid var(--gap-border);
  border-radius: var(--radius-pill);
  background: var(--pattern-data-gap);
  color: var(--gap-text);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.dc-index .dc-table {
  border: 0;
  border-top: 1px solid var(--rule-strong);
  border-radius: 0;
  box-shadow: none;
}

/* ---- Places list -------------------------------------------------------- */
.dc-list {
  margin-top: 44px;
}

.dc-list__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.dc-list__head h2 {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: var(--fw-regular);
  letter-spacing: -0.01em;
}

.dc-list__head > span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.dc-table {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}

.dc-table__cols,
.dc-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.3fr) 190px 170px 150px minmax(150px, 0.9fr);
  gap: 18px;
  align-items: center;
  padding: 13px 18px;
}

.dc-table__cols {
  padding-top: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--paper-50);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dc-row {
  border-bottom: 1px solid var(--rule);
  color: var(--text-primary);
  text-decoration: none;
}

.dc-row:last-child {
  border-bottom: 0;
}

.dc-row:hover {
  background: var(--paper-50);
}

.dc-row strong,
.dc-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dc-row strong {
  font-weight: var(--fw-semibold);
}

.dc-row small,
.dc-row > span:not(:first-child) {
  color: var(--text-secondary);
  font-size: 12.5px;
}

.dc-row > span:not(:first-child) {
  font-family: var(--font-mono);
}

.dc-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  max-width: 100%;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule-strong);
  background: var(--paper-50);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dc-badge--cleanup_pce {
  border-color: color-mix(in oklab, var(--plume-orange) 46%, var(--rule));
  background: color-mix(in oklab, var(--plume-orange) 10%, var(--paper-0));
  color: var(--review-text);
}

.dc-badge--regulated_facility {
  border-color: color-mix(in oklab, #6b4c9a 42%, var(--rule));
  background: color-mix(in oklab, #6b4c9a 10%, var(--paper-0));
  color: #4a3370;
}

.dc-badge--historical_air_emissions {
  border-color: color-mix(in oklab, #876137 42%, var(--rule));
  background: color-mix(in oklab, #876137 10%, var(--paper-0));
  color: #674622;
}

.dc-badge--current_listing {
  border-color: color-mix(in oklab, #2e6e86 42%, var(--rule));
  background: color-mix(in oklab, #2e6e86 10%, var(--paper-0));
  color: #1f5065;
}

.dc-badge--former_listing,
.dc-badge--needs_review {
  border-color: var(--gap-border);
  background: var(--gap-surface);
  color: var(--gap-text);
}

/* Empty state — hatched, never calm: no evidence loaded is a gap,
   not a finding of "no dry cleaners." */
.dc-empty {
  padding: 22px 18px;
  color: var(--gap-text);
  font-size: 14px;
  line-height: 1.55;
  background: var(--pattern-data-gap);
}

/* ---- Message card (data engine unavailable) ------------------------------ */
.notice-card {
  max-width: 560px;
  margin: 24px auto 0;
  padding: 32px 32px 28px;
  text-align: center;
  background: var(--surface-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.notice-card__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--surface-field);
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.notice-card .strata-label {
  display: block;
  margin-bottom: 10px;
}

.notice-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: var(--fw-regular);
  letter-spacing: -0.01em;
}

.notice-card p {
  margin: 0 auto;
  max-width: 420px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ---- Shared editorial footer ---------------------------------------- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--surface-page);
  color: var(--text-primary);
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 28px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 20px 48px;
  align-items: start;
}

.site-footer a {
  color: var(--text-primary);
}

.site-footer__brand p {
  margin: 12px 0 0;
  max-width: 40ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.site-footer__not h3 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.site-footer__not p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 62ch;
}

.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* ---- Button ----------------------------------------------------------------- */
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  line-height: 1;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--petrol-900);
  background: var(--petrol-900);
  color: var(--paper-50);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--petrol-700);
  border-color: var(--petrol-700);
}

/* ---- "Why it matters" resource page ----------------------------------------- */
.why {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 28px 72px;
}

.why .strata-label {
  margin-bottom: 16px;
}

.why h1 {
  margin: 0 0 18px;
  max-width: 22ch;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.6vw, 46px);
  font-weight: var(--fw-regular);
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: pretty;
}

.why__lede {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.62;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.why h2 {
  margin: 42px 0 12px;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: var(--fw-regular);
  letter-spacing: -0.01em;
  padding-top: 22px;
  border-top: 1px solid var(--rule-strong);
}

.why p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.why p strong {
  color: var(--text-primary);
}

.why ul,
.why ol {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.66;
}

.why li {
  margin-bottom: 8px;
}

.why__callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 22px 0;
  padding: 13px 16px 13px calc(var(--gap-rail-width) + 14px);
  border: 1px solid var(--gap-border);
  border-radius: var(--radius-md);
  background: var(--pattern-data-gap-rail);
}

.why__callout svg {
  margin-top: 2px;
  color: var(--gap-text);
}

.why__callout p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--gap-text);
}

.why__callout strong {
  color: var(--text-primary);
}

.why__sources {
  margin-top: 10px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-card);
}

.why__sources h3 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.why__sources ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
}

.why__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

/* ---- Project writing ------------------------------------------------------ */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 58px 28px 80px;
}

.article__header {
  margin-bottom: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--rule-strong);
}

.article__header .strata-label {
  margin-bottom: 16px;
}

.article h1 {
  margin: 0 0 18px;
  max-width: 17ch;
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.2vw, 54px);
  font-weight: var(--fw-regular);
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}

.article__lede {
  margin: 0;
  max-width: 54ch;
  color: var(--text-secondary);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  text-wrap: pretty;
}

.article__meta {
  margin: 17px 0 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article > p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.75;
  text-wrap: pretty;
}

.article h2 {
  margin: 52px 0 17px;
  padding-top: 26px;
  border-top: 1px solid var(--rule-strong);
  font-family: var(--font-serif);
  font-size: clamp(25px, 3.1vw, 30px);
  font-weight: var(--fw-regular);
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: pretty;
}

.article__turn {
  margin: 28px 0 0 !important;
  color: var(--text-primary) !important;
  font-size: 20px !important;
  font-style: italic;
  font-weight: var(--fw-medium);
}

.article__note,
.article__honesty {
  margin: 0 0 30px;
  padding: 15px 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface-card);
}

.article__note > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article__note p,
.article__honesty p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
}

.article__pull {
  margin: 34px 0;
  padding: 2px 0 2px 22px;
  border-left: 4px solid var(--plume-orange);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 23px;
  font-style: italic;
  line-height: 1.45;
}

.article__questions {
  color: var(--text-primary) !important;
  font-style: italic;
}

.article__honesty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding-left: calc(var(--gap-rail-width) + 14px);
  border-color: var(--gap-border);
  background: var(--pattern-data-gap-rail);
}

.article__honesty svg {
  margin-top: 2px;
  color: var(--gap-text);
}

.article__honesty strong {
  color: var(--text-primary);
}

.article__footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-strong);
}

.article__footer > p {
  margin: 0 0 15px;
  color: var(--text-secondary);
  font-family: var(--font-serif);
  font-size: 17px;
}

.article__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.article__actions > a:not(.btn) {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: var(--fw-semibold);
}

/* Address search and the one-address brief offer. */
.map-page .hero { padding-top: 26px; padding-bottom: 18px; }
.map-page .hero h1 { font-size: clamp(28px, 3vw, 38px); max-width: 27ch; }
.map-page .hero .strata-label { margin-bottom: 8px; }
.dc-address-search label { display: block; font-weight: 600; margin-bottom: 8px; }
.dc-address-search__row { display: flex; gap: 10px; }
.dc-address-search input {
  flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--rule-strong); border-radius: var(--radius-sm);
  background: var(--surface-card); color: var(--text-primary); font: inherit;
}
.dc-address-search button { min-height: 48px; }
.dc-trust { font-size: 12px; line-height: 1.7; margin: 10px 0 0; color: var(--text-secondary); }
.dc-trust strong { color: var(--gap-text); white-space: nowrap; }
.dc-search-provider { font-size: 11px; color: var(--text-muted); margin: 4px 0 12px; }
.dc-address-status { font-size: 14px; color: var(--gap-text); }
.dc-address-status:empty { display: none; }
.dc-address-results { list-style: none; padding: 0; margin: 12px 0; }
.dc-address-results button {
  display: block; width: 100%; text-align: left; padding: 14px; min-height: 48px;
  background: var(--surface-card); border: 1px solid var(--rule-strong);
  color: var(--text-primary); font: inherit; cursor: pointer;
}
.dc-address-results button:hover { background: var(--paper-100); }
.dc-map-options { margin: 12px 0; font-size: 13px; }
.dc-map-options summary, .dc-prov > summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.dc-map-options .dc-county-picker { margin-top: 10px; }
.dc-address-card {
  display: grid; grid-template-columns: 1.2fr 1fr; margin: 20px 0;
  border: 1px solid var(--rule-strong); border-radius: var(--radius-lg);
  background: var(--surface-card); overflow: hidden; scroll-margin-top: 80px;
}
.dc-address-card[hidden], .dc-address-results[hidden] { display: none; }
.dc-address-card__evidence, .dc-address-card__offer { padding: 22px; }
.dc-address-card__offer { background: var(--paper-100); border-left: 1px solid var(--rule-strong); }
.dc-address-card h2 { font-family: var(--font-serif); font-size: 24px; line-height: 1.2; margin: 10px 0 6px; }
.dc-address-card h3 { font-family: var(--font-serif); font-size: 26px; margin: 10px 0; }
.dc-address-card__location { font-size: 11px; color: var(--text-muted); margin: 0 0 14px; }
.dc-address-card__offer > p { font-size: 14px; line-height: 1.55; }
.dc-address-card__offer .btn { width: 100%; white-space: normal; min-height: 48px; line-height: 1.4; }
.dc-nearby { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.dc-nearby caption { text-align: left; font-size: 12px; color: var(--text-secondary); padding-bottom: 8px; }
.dc-nearby th, .dc-nearby td { padding: 7px 8px; border-bottom: 1px solid var(--rule-strong); }
.dc-nearby thead th { font-size: 11px; font-weight: 500; color: var(--text-secondary); }
.dc-nearby td { font-family: var(--font-mono); font-size: 22px; }
.dc-count-note, .dc-address-card__offer .dc-count-note { font-size: 11px; line-height: 1.5; color: var(--text-secondary); margin: 10px 0 0; }
.dc-count-warning { font-size: 12px; line-height: 1.5; color: var(--gap-text); margin: 10px 0 0; }
.dc-offer-delivery { font-weight: 600; }
.dc-address-pin span {
  display: block; width: 26px; height: 26px; border: 4px solid white;
  border-radius: 50%; background: #254b65; box-shadow: 0 0 0 2px #254b65, 0 3px 8px #0005;
}
.dc-checkout {
  max-width: 480px; width: calc(100% - 36px); max-height: calc(100% - 40px);
  padding: 26px; border: 1px solid var(--rule-strong); border-radius: var(--radius-lg);
  color: var(--text-primary); background: var(--surface-card);
}
.dc-checkout::backdrop { background: #16232dcc; }
.dc-checkout h2 { font-family: var(--font-serif); }
.dc-checkout p { font-size: 14px; line-height: 1.6; }
.dc-checkout .btn { min-height: 44px; }
.map-page .dc-prov > summary { font-size: 15px; }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .dc-map__frame {
    height: 460px;
    min-height: 0;
  }

  .dc-source + .dc-source {
    border-left: 0;
  }

  .dc-table__cols {
    display: none;
  }

  .dc-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 640px) {
  .map-page .hero__grid { gap: 12px; }
  .map-page .hero { padding: 20px 18px 14px; }
  .map-page .hero__truth { padding: 10px 14px; }
  .map-page .hero__truth p { font-size: 12px; }
  .map-page .hero__lede { font-size: 14px; line-height: 1.5; }
  .dc-address-search__row { gap: 6px; }
  .dc-address-search__row .btn { padding: 10px; font-size: 12px; }
  .dc-address-search input { font-size: 16px; padding: 10px; }
  .dc-trust { font-size: 11px; }
  .map-page .dc-map-card__bar { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; }
  .map-page .dc-read { white-space: normal; font-size: 9px; }
  .map-page .dc-read--right { grid-column: 1 / -1; }
  .dc-address-card { grid-template-columns: 1fr; }
  .dc-address-card__evidence, .dc-address-card__offer { padding: 16px; }
  .dc-address-card__offer { border-left: 0; border-top: 1px solid var(--rule-strong); }
  .dc-address-card h2 { font-size: 21px; }
  .dc-address-card h3 { font-size: 23px; }
  .dc-address-card__offer > p { margin: 8px 0; font-size: 13px; }

  html,
  body {
    overflow-x: hidden;
  }

  .site-nav {
    padding: 12px 18px;
    flex-wrap: wrap;
    gap: 4px;
  }

  .site-nav__links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .site-nav__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 12px;
  }

  .site-nav__tag {
    display: none;
  }

  .article {
    padding: 38px 18px 58px;
  }

  .article h1 {
    font-size: 38px;
  }

  .article > p {
    font-size: 16.5px;
    line-height: 1.7;
  }

  .hero {
    padding: 30px 18px 20px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .dc-shell {
    padding: 4px 18px 48px;
  }

  .dc-map__frame {
    height: 380px;
  }

  .dc-read--right {
    margin-left: 0;
    flex-basis: 100%;
  }

  .dc-county-picker {
    align-items: stretch;
  }

  .dc-county-picker label,
  .dc-county-picker select,
  .dc-county-picker > span {
    flex-basis: 100%;
  }

  .dc-coverage__county {
    grid-template-columns: 1fr;
  }

  .dc-coverage__county > span {
    grid-column: 1;
  }

  .dc-coverage__products {
    grid-template-columns: 1fr;
  }

  .dc-list__head {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    padding: 30px 18px 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001s !important;
    animation-duration: 0.001s !important;
  }
}

.dc-location-options { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 10px; }
.dc-location-options label { font-size: 12px; }
.dc-location-options select { display: block; max-width: 100%; min-height: 40px; font: inherit; padding: 8px; border: 1px solid var(--rule); background: var(--surface-field); color: inherit; }
.dc-location-options [hidden] { display: none; }

.dc-address-results { max-height: 280px; overflow-y: auto; }
