/* =====================================================================
   CERTIFIED-MECHANIC.XYZ — "Inspection Report"
   Editorial and trustworthy: warm paper, forest green, brass gold, serif headlines,
   square corners and printed rules. City pages read like a service report: a report-card
   header, then one reading column with the section index pinned on the left.
   Fraunces (headings) · Manrope (text and labels).
   ===================================================================== */

:root {
  --paper: #f6f2e9;
  --paper-2: #eee8da;
  --card: #fbf9f4;
  --ink: #1c211e;
  --muted: #5b625d;
  --muted-2: #8a8f88;
  --rule: #d9d1c0;
  --rule-strong: #b8ad95;
  --green: #17392f;
  --green-2: #20483c;
  --green-3: #2b5a4b;
  --on-green: #cbd9d1;
  --green-rule: rgba(255, 255, 255, 0.14);
  --gold: #a5761f;
  --gold-2: #c99a3f;
  --gold-soft: #f2e6ca;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --mast-h: 128px;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--gold-soft); color: var(--green); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- layout ---- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.band.tight { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.band.cream { background: var(--paper-2); }
.band.green { background: var(--green); color: #f4efe3; }
.band + .band:not(.cream):not(.green) { border-top: 1px solid var(--rule); }
.head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head .deck { margin-top: 0.9rem; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.head-row .head { margin-bottom: 0; }
.more-link { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more-link:hover { color: var(--green); }
.green .more-link { color: var(--gold-2); }

/* ---- type ---- */
.kicker { display: block; margin-bottom: 1rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.kicker::before { content: ""; display: inline-block; vertical-align: middle; width: 26px; height: 1px; margin: -0.2em 0.75rem 0 0; background: currentColor; }
.center .kicker::after { content: ""; display: inline-block; vertical-align: middle; width: 26px; height: 1px; margin: -0.2em 0 0 0.75rem; background: currentColor; }
.green .kicker { color: var(--gold-2); }
.title-xl, .title-l, .title-m { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.06; font-variation-settings: "SOFT" 30, "opsz" 96; }
.title-xl { font-size: clamp(2.5rem, 6vw, 4.6rem); }
.title-l { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.title-m { font-size: clamp(1.35rem, 2.3vw, 1.7rem); line-height: 1.18; }
.title-xl em, .title-l em, .title-m em { font-style: italic; color: var(--green-3); }
.green .title-xl em, .green .title-l em { color: var(--gold-2); }
.deck { font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--muted); font-weight: 400; }
.green .deck { color: var(--on-green); }
.small-caps { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.copy p { margin-bottom: 1.05em; color: #333a36; }
.copy p:last-child { margin-bottom: 0; }
.copy a, .text-link { color: var(--green-3); text-decoration: underline; text-decoration-color: var(--gold-2); text-underline-offset: 3px; }
.copy a:hover, .text-link:hover { color: var(--gold); }
.copy h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.2; margin: 1.8em 0 0.6em; }
.copy h3 { font-weight: 800; font-size: 1.08rem; margin: 1.5em 0 0.5em; }
.copy ul { list-style: square; padding-left: 1.25rem; margin-bottom: 1.05em; }
.copy ol { list-style: decimal; padding-left: 1.25rem; margin-bottom: 1.05em; }
.copy li { margin-bottom: 0.35em; color: #333a36; }
.copy li::marker { color: var(--gold); }
.dropcap > p:first-of-type::first-letter { float: left; font-family: var(--serif); font-weight: 600; font-size: 3.6em; line-height: 0.82; margin: 0.08em 0.1em 0 0; color: var(--green); }
.green .copy p { color: var(--on-green); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 50px; padding: 0 1.4rem; border: 2px solid transparent; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; text-align: center; transition: background 0.2s, color 0.2s, border-color 0.2s; -webkit-tap-highlight-color: transparent; }
.btn-green { background: var(--green); color: #f6f2e9; border-color: var(--green); }
.btn-green:hover { background: var(--green-3); border-color: var(--green-3); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: #f6f2e9; }
.btn-gold { background: var(--gold-2); color: var(--green); border-color: var(--gold-2); }
.btn-gold:hover { background: #d8ab52; border-color: #d8ab52; }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---- masthead ---- */
.mast { position: relative; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--rule); }
.mast-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.1rem 0 0.9rem; }
.mast-note { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.mast-logo { display: flex; align-items: center; gap: 0.7rem; justify-self: center; }
.mast-logo img { width: 36px; height: 36px; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.01em; color: var(--green); white-space: nowrap; }
.wordmark b { font-weight: 600; font-style: italic; color: var(--gold); }
.mast-cta { justify-self: end; min-height: 42px; padding: 0 1rem; font-size: 0.74rem; }
.mast-nav { border-top: 1px solid var(--rule); }
.mast-links { display: flex; justify-content: center; gap: 2.5rem; padding: 0.7rem 0; }
.mast-link { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 0.2rem 0; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.mast-link:hover, .mast-link[aria-current="page"] { color: var(--green); border-bottom-color: var(--gold-2); }
.mast-toggle { display: none; align-items: center; gap: 0.5rem; justify-self: end; min-height: 44px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); }
.mast-toggle i { display: grid; gap: 4px; }
.mast-toggle i::before, .mast-toggle i::after { content: ""; display: block; width: 20px; height: 2px; background: currentColor; }

/* ---- covers (page tops) ---- */
.cover { padding: clamp(2.75rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--rule); }
.cover-center { text-align: center; }
.cover-center .deck { max-width: 44rem; margin: 1.25rem auto 0; }
.cover .deck { margin-top: 1.1rem; max-width: 46rem; }
.cover .btn-row { margin-top: 1.75rem; }
.cover-center .btn-row { justify-content: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.4rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.crumbs a:hover { color: var(--gold); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--rule-strong); }
.cover-center .crumbs { justify-content: center; }

.credentials { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 2.25rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.credentials li { flex: 1 1 0; min-width: 9rem; padding: 1rem 1.25rem; text-align: center; border-left: 1px solid var(--rule); }
.credentials li:first-child { border-left: 0; }
.credentials strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--green); }
.credentials span { font-size: 0.86rem; color: var(--muted); }

/* home: state -> city chooser */
.chooser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0.6rem; max-width: 46rem; margin: 2rem auto 0; padding: 0.6rem; background: var(--card); border: 1px solid var(--rule-strong); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--rule); }
.chooser label { position: relative; display: block; }
.chooser select { width: 100%; min-height: 50px; padding: 0 2.25rem 0 0.9rem; border: 1px solid var(--rule); background: #fff; appearance: none; -webkit-appearance: none; font-weight: 600; color: var(--ink); border-radius: 0; cursor: pointer; }
.chooser select:disabled { color: var(--muted-2); background: var(--paper); cursor: not-allowed; }
.chooser label::after { content: ""; position: absolute; right: 0.9rem; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.chooser .btn { min-height: 50px; }

.cover-photo { margin-top: clamp(2.25rem, 5vw, 3.5rem); padding: 10px; background: var(--card); border: 1px solid var(--rule-strong); }
.cover-photo img { width: 100%; height: clamp(220px, 34vw, 430px); object-fit: cover; }
.cover-photo figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.2rem 0.1rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }

/* ---- the report card (city pages) ---- */
.report { margin-top: clamp(1.75rem, 4vw, 2.5rem); background: var(--card); border: 1px solid var(--rule-strong); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--rule); }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding: 0.8rem 1.25rem; background: var(--green); color: var(--gold-2); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.report-head span:last-child { color: var(--on-green); }
.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { padding: 1rem 1.25rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.field:nth-child(3n) { border-right: 0; }
.field strong { display: block; margin-top: 0.3rem; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.field-phone strong { font-size: 1.6rem; color: var(--green); }
.field a:hover { color: var(--gold); }
.field.wide { grid-column: span 2; }
.report-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 1rem 1.25rem; }
.report-foot .btn-row { margin: 0; }
.report-sign { font-family: var(--serif); font-style: italic; color: var(--muted); }

/* ---- document layout: section index on the left, one reading column ---- */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-block: clamp(2.5rem, 6vw, 4rem); }
.rail { position: sticky; top: 1.5rem; }
.rail-title { padding-bottom: 0.6rem; margin-bottom: 0.4rem; border-bottom: 2px solid var(--green); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); }
.rail ol { counter-reset: rail; }
.rail li a { display: flex; gap: 0.7rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); font-size: 0.9rem; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.rail li a::before { counter-increment: rail; content: counter(rail, decimal-leading-zero); font-weight: 800; color: var(--gold); font-size: 0.8rem; padding-top: 0.1rem; }
.rail li a:hover { color: var(--green); }
.rail-box { margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--rule-strong); background: var(--card); }
.rail-box p { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.75rem; }
.doc-main { max-width: 760px; }
.sec { padding-top: clamp(2rem, 4vw, 2.75rem); margin-top: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid var(--rule); }
.sec:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.sec-no { display: block; margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.sec > .title-l { margin-bottom: 1.1rem; }

/* ---- lists ---- */
.inspect { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.inspect li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.inspect li::before { content: "\2713"; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 0.15rem; border: 1.5px solid var(--gold); color: var(--green); font-size: 0.8rem; font-weight: 800; }
.inspect strong { display: block; font-weight: 800; }
.inspect span { color: var(--muted); }
.green .inspect { border-color: var(--green-rule); }
.green .inspect li { border-color: var(--green-rule); }
.green .inspect li::before { border-color: var(--gold-2); color: var(--gold-2); }
.green .inspect span { color: var(--on-green); }

.ledger { border-top: 2px solid var(--green); }
.ledger-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 1rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.ledger-row h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.ledger-row h3 small { display: block; margin-bottom: 0.3rem; font-family: var(--sans); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.ledger-row p { color: var(--muted); }
.ledger-row .inline-list { margin-top: 0.6rem; }
.green .ledger { border-top-color: var(--gold-2); }
.green .ledger-row { border-color: var(--green-rule); }
.green .ledger-row p { color: var(--on-green); }
.green .ledger-row h3 small { color: var(--gold-2); }

.inline-list { display: flex; flex-wrap: wrap; gap: 0.15rem 0; font-size: 0.92rem; color: var(--muted); }
.inline-list li + li::before { content: "\00B7"; margin: 0 0.55rem; color: var(--gold); font-weight: 800; }
.inline-list a { color: var(--green-3); font-weight: 600; }
.inline-list a:hover { color: var(--gold); text-decoration: underline; }
.green .inline-list { color: var(--on-green); }
.green .inline-list a { color: #fff; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { padding: clamp(1.25rem, 2.6vw, 1.75rem); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: transparent; }
.tile h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.22; margin-bottom: 0.5rem; }
.tile p { color: var(--muted); font-size: 0.97rem; }
.tile .label { display: block; margin-bottom: 0.7rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
a.tile { transition: background 0.2s; }
a.tile:hover { background: var(--card); }
a.tile .go { display: inline-block; margin-top: 0.9rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-3); }
.green .tiles, .green .tile { border-color: var(--green-rule); }
.green .tile p { color: var(--on-green); }
.green .tile .label { color: var(--gold-2); }
.big-figure { display: block; font-family: var(--serif); font-weight: 600; font-size: 2.4rem; line-height: 1; color: var(--green); margin-bottom: 0.4rem; }

/* procedure: I. II. III. */
.procedure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); counter-reset: proc; }
.procedure li { padding-top: 1rem; border-top: 2px solid var(--green); }
.procedure li::before { counter-increment: proc; content: counter(proc, upper-roman) "."; display: block; font-family: var(--serif); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--gold); margin-bottom: 0.75rem; }
.procedure h3 { font-weight: 800; font-size: 1.08rem; margin-bottom: 0.35rem; }
.procedure p { color: var(--muted); }
.green .procedure li { border-top-color: var(--gold-2); }
.green .procedure p { color: var(--on-green); }

/* a day on the job: logbook */
.logbook { border-top: 2px solid var(--green); }
.logbook li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.logbook time { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--gold); line-height: 1.3; }
.logbook h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.25; margin-bottom: 0.4rem; }
.logbook p { color: var(--muted); }

/* numbered findings and places */
.numbered { counter-reset: n; border-top: 1px solid var(--rule); }
.numbered li { position: relative; padding: 1.1rem 0 1.1rem 3.25rem; border-bottom: 1px solid var(--rule); }
.numbered li::before { counter-increment: n; content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 1.05rem; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--gold); }
.numbered strong { display: block; font-weight: 800; margin-bottom: 0.25rem; }
.numbered p { color: var(--muted); }

/* ---- notes, quotes, tables ---- */
.note { padding: 1.2rem 1.4rem; border-left: 3px solid var(--gold-2); background: var(--card); }
.note h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin-bottom: 0.35rem; }
.note p { color: var(--muted); }
.testimonial { max-width: 52rem; margin: 0 auto; text-align: center; }
.testimonial p { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35; color: var(--green); }
.testimonial p::before { content: "\201C"; color: var(--gold-2); }
.testimonial p::after { content: "\201D"; color: var(--gold-2); }
.testimonial cite { display: block; margin-top: 1.25rem; font-style: normal; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.stars { display: block; margin-bottom: 1rem; color: var(--gold-2); letter-spacing: 0.25em; }
.table-wrap { overflow-x: auto; }
.ruled { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.ruled th, .ruled td { padding: 0.95rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--green-rule); }
.ruled thead th { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); border-bottom: 2px solid var(--gold-2); }
.ruled tbody th { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: #fff; }
.ruled td { color: var(--on-green); }
.ruled td.is-mobile { color: #fff; font-weight: 600; }

/* ---- Q&A ---- */
.qa { border-top: 2px solid var(--green); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.9rem; align-items: baseline; padding: 1.15rem 0; cursor: pointer; list-style: none; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q."; font-family: var(--sans); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; color: var(--gold); }
.qa summary::after { content: "+"; font-family: var(--sans); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--green); transition: transform 0.2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa .answer { padding: 0 2.2rem 1.25rem; color: var(--muted); }
.qa-wrap { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* ---- the parent location page ---- */
.parent-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.25rem 2.5rem; padding: clamp(1.4rem, 3.5vw, 2.25rem); background: var(--green); color: #f4efe3; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--rule-strong); }
.parent-note .title-m { color: #fff; }
.parent-note p { color: var(--on-green); margin-top: 0.4rem; }
.contact-block { padding: 1.4rem; border: 1px solid var(--rule-strong); background: var(--card); }
.contact-block .phone { display: block; font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1.1; color: var(--green); margin: 0.3rem 0 0.9rem; }
.contact-block .phone:hover { color: var(--gold); }
.contact-block p { color: var(--muted); margin-top: 0.75rem; }
.contact-block p a { color: var(--green-3); text-decoration: underline; text-decoration-color: var(--gold-2); text-underline-offset: 3px; }

/* ---- directory (locations) ---- */
.dir-tools { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.75rem; }
.dir-tools label { position: relative; }
.dir-tools select { min-height: 48px; min-width: 15rem; padding: 0 2.25rem 0 0.9rem; border: 1px solid var(--rule-strong); background: #fff; appearance: none; -webkit-appearance: none; font-weight: 600; border-radius: 0; cursor: pointer; }
.dir-tools label::after { content: ""; position: absolute; right: 0.9rem; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.directory { columns: 2; column-gap: clamp(2rem, 5vw, 4rem); }
.dir-state { break-inside: avoid; padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--rule); }
.dir-state h2 { display: flex; align-items: baseline; gap: 0.6rem; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.2; margin-bottom: 0.35rem; }
.dir-state h2 a:hover { color: var(--gold); }
.dir-state h2::after { content: ""; order: 2; flex: 1; border-bottom: 2px dotted var(--rule-strong); transform: translateY(-4px); }
.dir-state h2 small { order: 3; font-family: var(--sans); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.dir-state:target { background: var(--gold-soft); box-shadow: 0 0 0 0.5rem var(--gold-soft); }

/* ---- state map ---- */
.map-plate { max-width: 920px; margin: 0 auto; padding: 10px; background: var(--card); border: 1px solid var(--rule-strong); }
.statemap { width: 100%; height: auto; display: block; }
.statemap-bg { fill: #f3eee3; }
.statemap-neighbors path { fill: #e8e1d2; stroke: #d6ccb8; stroke-width: 1; }
.statemap-shadow { fill: rgba(23, 57, 47, 0.08); transform: translate(4px, 6px); }
.statemap-shape { fill: #fbf9f4; }
.statemap-counties { fill: none; stroke: #e3dccd; stroke-width: 0.8; }
.statemap-route-casing { fill: none; stroke: #fbf9f4; stroke-width: 5; stroke-linecap: round; }
.statemap-route { fill: none; stroke: var(--gold-2); stroke-width: 2.4; stroke-dasharray: 2 6; stroke-linecap: round; }
.statemap-outline { fill: none; stroke: var(--green); stroke-width: 2; }
.statemap-city text { font-family: var(--serif); font-weight: 600; font-size: 23px; fill: var(--green); paint-order: stroke; stroke: #fbf9f4; stroke-width: 6px; }
.statemap-dot { fill: var(--green); stroke: #fbf9f4; stroke-width: 3; }
.statemap-ring { fill: none; stroke: var(--gold-2); stroke-width: 2; }
.statemap-leader { stroke: var(--green); stroke-width: 1.2; }
.statemap-hit { fill: transparent; }
.statemap-city:hover text { fill: var(--gold); }
.statemap-plate rect { fill: var(--green); }
.statemap-plate-k { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: 2px; fill: var(--gold-2); }
.statemap-plate-v { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 1px; fill: #f6f2e9; }
.statemap-compass circle { fill: #fbf9f4; stroke: var(--rule-strong); }
.statemap-compass path { fill: var(--green); }
.statemap-compass text, .statemap-scale text { font-family: var(--sans); font-size: 12px; font-weight: 800; fill: var(--muted); text-anchor: middle; }
.statemap-scale path { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.statemap-corners path { display: none; }

/* ---- blog entries ---- */
.entries { border-top: 2px solid var(--green); }
.entry { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: baseline; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.entry time { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.entry h3 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1.25; margin-bottom: 0.35rem; }
.entry p { color: var(--muted); }
.entry .go { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-3); white-space: nowrap; }
a.entry:hover h3 { color: var(--green-3); }
.article { max-width: 760px; }
.article .copy { font-size: 1.08rem; }

/* ---- partners ---- */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; padding-top: 2rem; margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.partners span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.partners img { width: 54px; height: 54px; object-fit: cover; background: #fff; border: 1px solid var(--rule); filter: grayscale(0.2); }

/* ---- footer ---- */
.site-footer { background: var(--green); color: #f4efe3; padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--green-rule); }
.foot-brand .wordmark { color: #f6f2e9; }
.foot-brand .wordmark b { color: var(--gold-2); }
.foot-brand p { margin-top: 0.9rem; color: var(--on-green); font-size: 0.95rem; max-width: 30rem; }
.foot-h { margin-bottom: 0.75rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-2); }
.foot-col a { display: flex; align-items: center; min-height: 36px; color: var(--on-green); font-size: 0.95rem; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.5rem; font-size: 0.82rem; color: #93a89e; }

/* ---- phone call strip (city pages with a number) ---- */
.callstrip { display: none; }

/* ---- reveal ---- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .mast-top { grid-template-columns: minmax(0, 1fr) auto; padding: 0.8rem 0; }
  .mast-note, .mast-cta { display: none; }
  .mast-logo { justify-self: start; }
  .mast-toggle { display: inline-flex; }
  .mast-nav { display: none; }
  .mast-nav.open { display: block; }
  .mast-links { flex-direction: column; gap: 0; padding: 0.25rem 0 0.9rem; }
  .mast-link { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
  .mast-link:hover, .mast-link[aria-current="page"] { border-bottom-color: var(--rule); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .rail ol { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
  .rail li a { border-bottom: 0; padding: 0.35rem 0; }
  .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field:nth-child(3n) { border-right: 1px solid var(--rule); }
  .field:nth-child(2n) { border-right: 0; }
  .field.wide { grid-column: 1 / -1; border-right: 0; }
  .qa-wrap { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .callstrip { display: block; position: sticky; top: 0; z-index: 90; background: var(--green); }
  .callstrip a { display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 52px; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #f6f2e9; }
  .callstrip b { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0; text-transform: none; white-space: nowrap; color: var(--gold-2); }
}
@media (max-width: 640px) {
  .wordmark { font-size: 1.25rem; }
  .mast-logo img { width: 30px; height: 30px; }
  .chooser { grid-template-columns: minmax(0, 1fr); }
  .credentials li { flex-basis: 50%; border-left: 0; border-bottom: 1px solid var(--rule); }
  .credentials li:nth-child(odd) { border-right: 1px solid var(--rule); }
  .credentials li:nth-last-child(-n+2) { border-bottom: 0; }
  .report-grid { grid-template-columns: minmax(0, 1fr); }
  .field, .field:nth-child(2n), .field:nth-child(3n) { border-right: 0; }
  .field.wide { grid-column: auto; }
  .ledger-row { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .tiles, .tiles.two, .tiles.four { grid-template-columns: minmax(0, 1fr); }
  .procedure { grid-template-columns: minmax(0, 1fr); }
  .logbook li { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .directory { columns: 1; }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .parent-note { grid-template-columns: minmax(0, 1fr); }
  .parent-note .btn, .report-foot .btn { width: 100%; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .ruled thead { display: none; }
  .ruled tr { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--green-rule); }
  .ruled th, .ruled td { display: block; padding: 0.15rem 0; border: 0; }
  .ruled td::before { content: attr(data-label); display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); }
  .dir-tools select { min-width: 0; width: 100%; }
  .dir-tools label { width: 100%; }
}
