/* Task 26: state hub and county pages, Direction B ("plat & survey").
   Builds on /site.css tokens: --bg film, --ink graphite, --muted, --line, --accent, --wide, --serif.
   Square corners, 1.5px ink rules, no shadows or gradients, sentence case. */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sp { max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; box-sizing: border-box; }
.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
.sp h1, .sp h2, .sp h3, .sp h4 { font-family: var(--wide); font-stretch: 125%; letter-spacing: 0; color: var(--ink); }
.sp h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); line-height: 1.12; margin: 0 0 14px; font-weight: 700; }
.sp h2 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 12px; font-weight: 700; }
.sp h3 { font-size: 1.05rem; margin: 0; font-weight: 650; }
.sp h4 { font-size: .82rem; margin: 16px 0 6px; font-weight: 650; color: var(--muted); }
.sp p, .sp li, .sp td, .sp th { font-family: var(--serif); font-size: 1.02rem; line-height: 1.55; }
.sp a { color: var(--accent); text-underline-offset: 2px; }
.sp .muted { color: var(--muted); }
.sp table { border-collapse: collapse; width: 100%; background: var(--card, #fff); }
.sp th, .sp td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.sp thead th { font-family: var(--wide); font-stretch: 112%; font-size: .78rem; font-weight: 650; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.sp tbody th { font-weight: 600; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 12px; font-family: var(--wide); }
.skip:focus { left: 16px; }
.sp .scroll, .sp .office, .sp .notes { position: relative; }
.sp .scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1.5px solid var(--ink); }
.sp .scroll table { border: 0; }
.sp ul.plain { list-style: none; padding: 0; margin: 0; }
.sp ul.plain li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.sp ul.plain li:last-child { border-bottom: 0; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 10px; font-family: var(--wide); font-size: .82rem; }
.crumbs li { font-family: var(--wide); font-size: .82rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.crumbs [aria-current] { color: var(--muted); }

.sp-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0; border: 1.5px solid var(--ink); background: var(--card, #fff); margin-bottom: 28px; }
.sp-title { padding: 22px 22px 18px; border-right: 1.5px solid var(--ink); }
.sp-title .kicker { font-family: var(--wide); font-stretch: 112%; font-size: .82rem; color: var(--muted); margin: 0 0 8px; }
.sp-title .lede { margin: 0; }
.sp-search { padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; background: var(--hl, #F7F9F6); }
.sp-search label { font-family: var(--wide); font-stretch: 112%; font-weight: 650; font-size: .95rem; }
.sp-row { display: flex; gap: 0; }
.sp-row input { flex: 1 1 auto; min-width: 0; font: inherit; font-family: var(--serif); font-size: 1.05rem; padding: 12px; border: 1.5px solid var(--ink); border-right: 0; border-radius: 0; background: #fff; color: var(--ink); }
.sp-row .btn { border-radius: 0; white-space: nowrap; min-height: 48px; }
.sp-sugg { list-style: none; margin: -10px 0 0; padding: 0; border: 1.5px solid var(--ink); border-top: 0; background: #fff; }
.sp-sugg li { font-family: var(--serif); padding: 10px 12px; cursor: pointer; border-top: 1px solid var(--line); }
.sp-sugg li:hover, .sp-sugg li:focus { background: var(--bg); outline: none; }
.sp-sugg .out { color: var(--muted); font-size: .9em; }
.sp-scope { margin: 0; font-size: .9rem !important; color: var(--muted); }

.sp-sec { margin: 34px 0; }
.sp-sec > p { max-width: 72ch; }
.sp .method { color: var(--muted); }
.hazards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--ink); }
.hazards > .haz { padding: 18px 20px; background: var(--card, #fff); border-bottom: 1.5px solid var(--ink); min-width: 0; }
.hazards > .haz:nth-child(odd) { border-right: 1.5px solid var(--ink); }
.hazards > .haz:nth-last-child(-n+2):nth-child(odd), .hazards > .haz:last-child { border-bottom: 0; }
.haz-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.haz-head .num { font-family: var(--wide); font-weight: 700; font-size: .9rem; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); flex: 0 0 auto; }
.haz-head h3 { flex: 1 1 auto; }
.chip { font-family: var(--wide); font-size: .74rem; font-weight: 600; padding: 3px 8px; border: 1px solid var(--ink); white-space: nowrap; }
.bar { height: 8px; border: 1px solid var(--ink); margin: 12px 0 2px; background: var(--bg); }
.bar span { display: block; height: 100%; background: var(--ink); }
.facts { margin: 0; padding-left: 18px; }
.facts li { margin: 4px 0; }
.sheet { margin: 12px 0 0; font-size: .92rem !important; border-top: 1px solid var(--line); padding-top: 8px; }
.cite { font-family: var(--wide); font-size: .68rem; margin-left: 2px; }
.cite a { text-decoration: none; }

.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--ink); background: var(--card, #fff); }
.office { padding: 14px 18px; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.office:nth-child(odd) { border-right: 1px solid var(--line); }
.office h3 { font-size: .92rem; margin-bottom: 6px; }

.tag { font-family: var(--wide); font-size: .74rem; font-weight: 600; padding: 2px 7px; border: 1px solid var(--ink); white-space: nowrap; }
.tag.auto { background: var(--ink); color: var(--bg); }
.tag.link { background: transparent; }
.tag.off { border-style: dashed; color: var(--muted); }

.steps { padding-left: 22px; max-width: 80ch; }
.steps li { margin: 6px 0; }
.regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--ink); background: var(--card, #fff); }
.region { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.region h3 { font-size: .95rem; margin-bottom: 6px; }
.region li { font-size: .95rem; }
.notes { padding-left: 22px; overflow-wrap: anywhere; }
.notes li { font-size: .92rem; margin: 4px 0; }
.sp-slots { display: contents; }

@media (max-width: 860px) {
  .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .sp-hero { grid-template-columns: 1fr; }
  .sp-title { border-right: 0; border-bottom: 1.5px solid var(--ink); padding: 18px 16px; }
  .sp-search { padding: 16px; }
  .hazards, .offices, .regions { grid-template-columns: 1fr; }
  .hazards > .haz, .hazards > .haz:nth-child(odd) { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .hazards > .haz:last-child { border-bottom: 0; }
  .office, .office:nth-child(odd), .region { border-right: 0; }
  .sp-row { flex-direction: column; }
  .sp-row input { border-right: 1.5px solid var(--ink); border-bottom: 0; }
  .sp th, .sp td { padding: 7px 8px; }
}
