/* Additive broadsheet ledger styles for county dossiers (inherits palette & fonts from style.css) */
.d-wrap { max-width: 58rem; margin: 0 auto; padding: 0 16px; }
.d-hero { padding: 28px 0 24px; background: linear-gradient(var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); }
.d-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none;
  font-size: .86rem; color: var(--muted); }
.d-crumb li { display: inline-flex; align-items: center; gap: 6px; }
.d-crumb li + li::before { content: "/"; color: var(--muted); }
.d-crumb a { color: var(--ink-2); text-decoration: none; }
.d-crumb a:hover { color: var(--accent); text-decoration: underline; }
.d-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hot-text); margin: 0 0 8px; }
.d-hero h1 { font-family: var(--serif); font-weight: 640; font-size: clamp(1.8rem, 4.2vw, 2.75rem); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 12px; }
.d-lead { font-size: 1.08rem; line-height: 1.56; color: var(--ink-2); max-width: 48rem; margin: 0 0 18px; }

/* Hairline fiscal ledger strip */
.d-ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
  margin: 0 0 18px; padding: 0; list-style: none; }
.d-ledger li { padding: 12px 14px 13px; border-right: 1px solid var(--line-soft); }
.d-ledger li:first-child { padding-left: 0; }
.d-ledger li:last-child { border-right: 0; }
.d-val { display: block; font-family: var(--serif); font-weight: 640; font-size: clamp(1.4rem, 2.8vw, 1.95rem); line-height: 1.1; color: var(--ink); }
.d-val.d-hot { color: var(--hot-text); }
.d-val.d-acc { color: var(--accent); }
.d-lab { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 5px; }
.d-sub { display: block; font-size: .85rem; color: var(--ink-2); margin-top: 3px; }
@media (max-width: 720px) {
  .d-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-ledger li { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 11px 10px 11px 0; }
  .d-ledger li:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line-soft); }
  .d-ledger li:nth-last-child(-n+2) { border-bottom: 0; }
}

.d-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: .95rem; font-weight: 600; }
.d-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; min-height: 44px;
  border: 1.5px solid var(--ink); border-radius: 6px; background: var(--ink); color: var(--bg); text-decoration: none; }
.d-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); text-decoration: none; }
.d-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; }

/* Sections */
.d-sec { padding: 26px 0; border-top: 1px solid var(--line-soft); }
.d-sec:first-of-type { border-top: 0; }
.d-sec h2 { font-family: var(--serif); font-weight: 640; font-size: clamp(1.32rem, 2.7vw, 1.75rem); line-height: 1.18; margin: 0 0 8px; }
.d-intro { margin: 0 0 14px; color: var(--ink-2); max-width: 48rem; }
.d-scope { font-size: .88rem; line-height: 1.48; color: var(--muted); border-left: 3px solid var(--line); padding: 6px 12px; margin: 14px 0 0; }

/* Fiscal funnel & domain bar SVGs (pure CSS variables) */
.d-fig { margin: 12px 0 14px; }
.d-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.d-svg .f-track { fill: var(--bg-2); stroke: var(--line-soft); stroke-width: 1; }
.d-svg .f-aloc { fill: var(--map-2); }
.d-svg .f-contr { fill: var(--map-3); }
.d-svg .f-paid { fill: var(--accent); }
.d-svg .f-roads { fill: var(--ink-2); }
.d-svg .f-water { fill: var(--accent); }
.d-svg .f-gas { fill: var(--hot); }
.d-svg .f-lbl { fill: var(--ink); font-size: 13px; font-weight: 600; }
.d-svg .f-val { fill: var(--ink); font-size: 13px; font-weight: 700; }
.d-svg .f-sub { fill: var(--muted); font-size: 12px; }
.d-cap { font-size: .86rem; color: var(--muted); margin: 6px 0 0; }

/* Broadsheet hairline tables */
.d-tablewrap { overflow-x: auto; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.d-table { border-collapse: collapse; width: 100%; font-size: .92rem; line-height: 1.4; }
.d-table thead th { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  padding: 9px 10px; border-bottom: 1px solid var(--ink-2); text-align: left; white-space: nowrap; }
.d-table th, .d-table td { padding: 8px 10px; border-top: 1px solid var(--line-soft); vertical-align: top; text-align: left; }
.d-table tbody tr:hover { background: var(--bg-2); }
.d-table th.num, .d-table td.num { text-align: right; white-space: nowrap; }
.d-table td.d-paid-col { font-weight: 700; color: var(--accent); }
.d-table td.d-wait-col { color: var(--hot-text); font-weight: 600; }
.d-uat-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .18em; }
.d-uat-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.d-type { display: inline-block; font-size: .76rem; color: var(--muted); margin-left: 4px; }
.d-proj-title { max-width: 28rem; color: var(--ink); }
.d-proj-meta { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.d-badge-done { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--accent); border: 1px solid currentColor;
  border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: baseline; }

/* 42-county navigation grid */
.d-counties { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 4px 12px;
  list-style: none; padding: 0; margin: 12px 0 0; font-size: .88rem; }
.d-counties a { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 6px 4px;
  border-bottom: 1px solid var(--line-soft); color: var(--ink-2); text-decoration: none; }
.d-counties a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.d-counties a[aria-current="page"] { color: var(--hot-text); font-weight: 700; border-bottom: 2px solid var(--hot-text); }
.d-counties .d-cnt { font-size: .8rem; color: var(--muted); white-space: nowrap; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
