:root {
  --ink: var(--ci-text, #17212b);
  --muted: var(--ci-text-muted, #596777);
  --paper: var(--ci-page, #f5f7f8);
  --panel: var(--ci-surface, #fff);
  --soft: var(--ci-surface-subtle, #eaf0f3);
  --line: var(--ci-border, #d2dbe2);
  --brand: var(--ci-primary, #285b7a);
  --brand-active: var(--ci-primary-active, #173f57);
  --accent: var(--ci-accent, #a45b36);
  --radius: var(--ci-radius-lg, 12px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--brand); text-underline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; }
.skip-link:focus { left: 12px; padding: 10px 14px; background: var(--panel); }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(14px); }
.network-shell { width: min(100% - 32px, 1240px); margin-inline: auto; }
.network-shell--header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--brand-active); border-radius: 10px; background: var(--brand); color: white; font-weight: 800; letter-spacing: -.03em; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 18px; }
.site-shell-version { color: var(--muted); font-size: 12px; font-style: normal; }
.site-shell-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-shell-nav a { padding: 9px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 650; }
.site-shell-nav a:hover, .site-shell-nav a[aria-current="page"] { background: var(--soft); color: var(--brand-active); }
.hero { border-bottom: 1px solid var(--line); }
.hero-inner, .section { width: min(100% - 32px, 1180px); margin-inline: auto; }
.hero-inner { padding-block: clamp(64px, 10vw, 126px); }
.eyebrow { margin: 0 0 16px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 13ch; margin-bottom: 24px; font-size: clamp(44px, 7vw, 84px); line-height: .98; letter-spacing: -.045em; }
h2 { margin-bottom: 14px; font-size: clamp(28px, 4vw, 46px); line-height: 1.08; letter-spacing: -.025em; }
h3 { margin-bottom: 10px; font-size: 20px; }
p { color: var(--muted); line-height: 1.65; }
.hero .lead { max-width: 72ch; margin-bottom: 0; font-size: clamp(18px, 2.2vw, 24px); }
.section { padding-block: clamp(54px, 8vw, 94px); }
.section-heading { max-width: 72ch; margin-bottom: 28px; }
.section-label { margin-bottom: 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.metric { padding: 22px 18px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; color: var(--ink); font-size: 21px; }
.metric span { color: var(--muted); font-size: 13px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { min-height: 190px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card p:last-child { margin-bottom: 0; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.archive-card { display: flex; min-height: 210px; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); background: var(--panel); text-decoration: none; }
.archive-card p { flex: 1; }
.archive-card span { font-weight: 750; }
.notice { padding: 22px 24px; border-left: 5px solid var(--accent); background: var(--soft); color: var(--ink); line-height: 1.6; }
.property-register { border-top: 1px solid var(--line); }
.property-boundary { max-width: 860px; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--soft); }
.property-record-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.property-record-group { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.property-record-group h3 { margin: 0; padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--brand-active); }
.property-record-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.property-record-list li { display: grid; grid-template-columns: minmax(78px, auto) 1fr; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); align-items: baseline; }
.property-record-list li:last-child { border-bottom: 0; }
.property-record-list strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.property-record-list span { color: var(--muted); font-size: .9rem; }
.media-frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #000; aspect-ratio: 16/9; }
.media-frame iframe { width: 100%; height: 100%; border: 0; }
.button { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--brand); color: white; text-decoration: none; font-weight: 750; }
.button:hover { background: var(--brand-active); }
.provenance { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.provenance code { overflow-wrap: anywhere; color: var(--ink); font-family: var(--ci-font-mono, monospace); font-size: 13px; }
.site-footer { margin-top: 24px; background: var(--ink); color: var(--paper); }
.network-shell--footer { display: grid; grid-template-columns: auto minmax(200px, 1fr) auto auto; align-items: center; gap: 18px; padding-block: 24px; }
.network-shell--footer span, .network-shell--footer small { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.site-shell-network { display: flex; gap: 12px; flex-wrap: wrap; }
.site-shell-network a { color: var(--paper); }

@media (max-width: 840px) {
  .network-shell--header, .network-shell--footer { align-items: flex-start; grid-template-columns: 1fr; flex-direction: column; padding-block: 14px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .card-grid, .archive-grid { grid-template-columns: 1fr; }
  h1 { font-size: 44px; }
}

@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
}
