/*
 * Ocala Well Water.
 *
 * A warm off-white page, cream surfaces and near-black type, with sky and coral
 * pills, asymmetric corners (a small radius on one corner, a large one on the
 * other three) and a soft two-color glow behind featured photographs. Coral is
 * reserved for calling; sky is everything else. Built for a phone first,
 * because that is where a homeowner with no water is reading.
 *
 * One family, Instrument Sans, self-hosted. No third-party requests.
 */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/font/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --off: #fffdfb;
  --warm: #f9f4eb;
  --warm-2: #f3ecdf;
  --ink: #1c1c1c;
  --ink-2: #4a4641;
  --muted: #6b665f;
  --line: #e7dfd1;
  --sky: #84d1f8;
  --sky-soft: #e7f5fd;
  --coral: #ffaa86;
  --coral-soft: #fff0e8;
  --teal: #41cdb8;
  --lemon: #f5f79c;
  --blue: #2f6fd6;
  --lilac: #e6acfc;
  --link: #1f5fa8;

  --r-s: 4px 20px 20px 20px;
  --r: 6px 30px 30px 30px;
  --r-m: 8px 40px 40px 40px;
  --r-l: 12px 60px 60px 60px;

  --wrap: 1248px;
  --gutter: 16px;
  --prose: 44rem;
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (min-width: 760px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--off); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--off); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body:has(.callbar) { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { body:has(.callbar) { padding-bottom: 0; } }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
picture { display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 104px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--off); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; color: var(--off); }
.wrap, .shell { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap .shell, .rail-main .shell { padding-inline: 0; }
@media (max-width: 899px) { .desktop-only { display: none; } }

/* ── Type ─────────────────────────────────────────────────────────────── */
h1, h2, h3, .h1, .h2, .h3 { font-weight: 500; text-wrap: balance; margin: 0; color: var(--ink); }
h1, .h1 { font-size: clamp(2.35rem, 7.4vw, 3.9rem); line-height: 0.98; letter-spacing: -0.032em; }
h2, .h2 { font-size: clamp(1.75rem, 4.6vw, 2.75rem); line-height: 1.06; letter-spacing: -0.028em; }
h3, .h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.14rem; line-height: 1.5; color: var(--ink-2); max-width: 36rem; margin: 18px 0 0; }
.small { font-size: 0.86rem; color: var(--muted); }
.label, .eyebrow {
  display: block; margin: 0 0 12px; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
.eyebrow a { color: inherit; }
strong, b { font-weight: 600; }

/* ── Pills ────────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem; width: max-content; max-width: 100%;
  padding: 12px 20px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
  background: var(--sky); color: var(--ink);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.pill:hover { color: var(--ink); filter: brightness(1.04); transform: translateY(-1px); }
.pill.call { background: var(--coral); }
.pill.lg { padding: 15px 24px; font-size: 16px; }
.pill svg { width: 16px; height: 16px; flex: none; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--off); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; }
.arrow-dot { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: var(--ink); flex: none; }
.arrow-dot svg { width: 16px; height: 16px; }
.more-link { margin: 28px 0 0; }

/* The orb: a small glowing marker on list items. */
.orb { position: relative; width: 38px; height: 38px; flex: none; }
.orb::before, .orb::after, .orb i { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.orb::before { width: 36px; height: 36px; background: var(--sky); filter: blur(3px); animation: orb 6s ease-in-out infinite; }
.orb::after { width: 25px; height: 25px; background: var(--coral); filter: blur(2px); }
.orb i { width: 7px; height: 7px; background: var(--ink); z-index: 1; }
@keyframes orb { 50% { transform: translate(-50%, -50%) scale(1.12); } }

/* The glow frame: two blurred color layers just outside the media. */
.glow { position: relative; isolation: isolate; }
.glow::before, .glow::after { content: ""; position: absolute; z-index: -1; border-radius: inherit; }
.glow::before { inset: -8px; background: var(--g1, var(--sky)); filter: blur(8px); animation: glow 9s ease-in-out infinite; }
.glow::after { inset: -4px; background: var(--g2, var(--coral)); filter: blur(5px); }
.glow.teal { --g1: var(--teal); --g2: var(--lemon); }
@keyframes glow { 50% { transform: scale(1.012); filter: blur(10px); } }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-head {
  position: fixed; z-index: 60; left: 0; right: 0;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  padding-inline: var(--gutter); pointer-events: none;
}
.nav {
  pointer-events: auto; max-width: 1200px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--warm); border-radius: var(--r);
  padding: 6px 6px 6px 14px; box-shadow: 0 6px 24px rgba(28, 20, 10, 0.07);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand .logo-mark { width: 30px; height: 30px; flex: none; }
.brand-t { white-space: nowrap; line-height: 1.15; }
.brand-t small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: none; gap: 24px; font-size: 15px; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-cta .nav-quote { display: none; }
@media (max-width: 559px) { .nav-cta .nav-call { display: none; } }

/* Start here: the three doors, from any page. */
.start { position: relative; }
.start summary { list-style: none; cursor: pointer; user-select: none; }
.start summary::-webkit-details-marker { display: none; }
.start .chev { width: 14px; height: 14px; transition: transform 0.2s ease; }
.start[open] .chev { transform: rotate(180deg); }
.start-panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 70; width: 360px;
  display: grid; gap: 6px; background: var(--warm); border-radius: var(--r); padding: 10px;
  box-shadow: 0 16px 40px rgba(28, 20, 10, 0.16);
}
.start-k { margin: 4px 8px 4px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.start-panel a { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-s); background: var(--off); color: var(--ink); text-decoration: none; }
.start-panel a:hover { background: #fff; color: var(--ink); }
.start-panel b { font-size: 0.98rem; line-height: 1.25; }
.start-panel span { font-size: 0.84rem; color: var(--muted); }
.start-panel .start-urgent { background: var(--coral-soft); box-shadow: inset 0 0 0 1.5px var(--coral); }
@media (max-width: 559px) {
  .nav { gap: 8px; padding-right: 4px; }
  .nav-cta { gap: 2px; }
  .menu summary { width: 40px; height: 40px; }
  .start > summary.pill { padding: 10px 13px; font-size: 14px; gap: 6px; }
  .start-panel { position: fixed; left: var(--gutter); right: var(--gutter); top: calc(env(safe-area-inset-top, 0px) + 80px); width: auto; }
}
@media (max-width: 399px) { .start .chev { display: none; } .brand-t { font-size: 15px; } .brand-t small { font-size: 9px; } }
@media (max-width: 339px) { .brand-t { display: none; } }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(88vw, 320px);
  display: grid; background: var(--warm); border-radius: var(--r); padding: 10px;
  box-shadow: 0 16px 40px rgba(28, 20, 10, 0.14);
}
.menu-panel a { padding: 12px 14px; color: var(--ink); text-decoration: none; border-radius: 14px; font-weight: 500; }
.menu-panel a:hover, .menu-panel a[aria-current] { background: var(--warm-2); }
@media (min-width: 1040px) {
  .nav { padding: 9px 9px 9px 28px; }
  .nav-links { display: flex; }
  .nav-cta .nav-quote { display: inline-flex; }
  .menu { display: none; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding-block: 64px; }
@media (min-width: 900px) { .section { padding-block: 104px; } }
.section-head { max-width: 40rem; margin-bottom: 32px; }
.section-head p { color: var(--ink-2); margin: 14px 0 0; }
main > section:not([class]), .page-body { padding-block: 40px 24px; }
@media (min-width: 900px) { main > section:not([class]), .page-body { padding-block: 64px 32px; } }

/* A cream band inside the page, for questions and the offices. */
section.pale { padding-block: 24px; }
section.pale > .shell {
  background: var(--warm); border-radius: var(--r-m);
  padding: 34px 20px 28px; max-width: calc(var(--wrap) - 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
}
@media (min-width: 900px) { section.pale > .shell { border-radius: var(--r-l); padding: 64px 56px 56px; } }
.sec-head { max-width: 40rem; margin-bottom: 28px; }
.sec-head .lead { margin-top: 14px; }

/* ── Home hero ────────────────────────────────────────────────────────── */
.hero { display: grid; padding-top: calc(env(safe-area-inset-top, 0px) + 84px); }
.hero-media { order: -1; position: relative; border-radius: var(--r); overflow: hidden; height: 36vh; min-height: 250px; background: var(--warm-2); }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 30% 45%; }
.hero-card { position: relative; z-index: 2; margin: -40px 8px 0; background: var(--off); border-radius: var(--r); padding: 26px 20px 24px; }
.hero-card h1 { margin-bottom: 14px; }
.hero-card .lede { font-size: 1.1rem; color: var(--ink-2); margin: 0 0 18px; max-width: 30rem; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 5fr 7fr; align-items: center; padding-top: 108px; }
  .hero-media { order: 0; grid-column: 2; grid-row: 1; height: min(720px, calc(100vh - 140px)); min-height: 600px; border-radius: var(--r-l); }
  .hero-media img { object-position: 37% 50%; }
  .hero-card { grid-column: 1; grid-row: 1; margin: 0 -110px 0 0; border-radius: var(--r-l); padding: 44px 48px 36px 0; }
}
.triage { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.triage a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-s); background: var(--warm); color: var(--ink); text-decoration: none;
  transition: background 0.2s ease;
}
.triage a:hover { background: var(--warm-2); color: var(--ink); }
.triage b { display: block; font-size: 1.02rem; line-height: 1.25; }
.triage span span { display: block; font-size: 0.88rem; color: var(--muted); }
.triage .urgent { background: var(--coral-soft); box-shadow: inset 0 0 0 1.5px var(--coral); }
.disclose { font-size: 0.85rem; color: var(--muted); margin: 0; }
.disclose b { color: var(--ink-2); }

/* The five checks with a photograph beside them. */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 6fr; gap: 72px; } }
.checks { list-style: none; margin: 28px 0 26px; padding: 0; position: relative; }
.checks::before { content: ""; position: absolute; left: 18px; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.checks details { position: relative; }
.checks summary { list-style: none; display: flex; align-items: center; gap: 16px; cursor: pointer; padding: 8px 0; font-size: 1.28rem; letter-spacing: -0.015em; line-height: 1.2; }
.checks summary::-webkit-details-marker { display: none; }
.checks details:not([open]) .orb::before, .checks details:not([open]) .orb::after { opacity: 0; }
.checks details:not([open]) .orb i { background: #cfc8bc; }
.checks details > div { padding: 2px 0 14px 54px; color: var(--ink-2); max-width: 32rem; }
.checks details > div p { margin-bottom: 0.6em; }
.warn { background: var(--coral-soft); border-radius: var(--r-s); padding: 12px 14px; font-size: 0.95rem; }
.photo img { width: 100%; border-radius: var(--r-m); aspect-ratio: 4 / 3.3; object-fit: cover; }
.photo { border-radius: var(--r-m); }
@media (min-width: 900px) { .photo, .photo img { border-radius: var(--r-l); } }

/* ── Cards ────────────────────────────────────────────────────────────── */
.guides { display: grid; gap: 14px; }
@media (min-width: 760px) { .guides { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 1040px) { .guides { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.guide { display: flex; flex-direction: column; border-radius: var(--r-m); overflow: hidden; background: var(--warm); color: var(--ink); text-decoration: none; transition: background 0.2s ease; }
.guide:hover { background: var(--warm-2); color: var(--ink); }
.guide-img, .guide-img img { width: 100%; }
.guide-img img { aspect-ratio: 16 / 10; object-fit: cover; }
.guide-body { display: grid; gap: 10px; align-content: start; padding: 20px 22px 24px; }
.guide .tag { justify-self: start; }
.guide-t { font-size: 1.22rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.guide-d { color: var(--ink-2); font-size: 0.95rem; }
.guide-meta { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 759px) {
  .guide { display: grid; grid-template-columns: 92px 1fr; border-radius: var(--r); }
  .guide-img, .guide-img img { height: 100%; }
  .guide-img img { aspect-ratio: auto; }
  .guide-body { padding: 14px 16px 16px; gap: 6px; }
  .guide-t { font-size: 1.05rem; }
  .guide-d { font-size: 0.88rem; }
}

/* ── Page header ──────────────────────────────────────────────────────── */
.page-hero { padding-top: calc(env(safe-area-inset-top, 0px) + 92px); }
.page-hero-grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) {
  .page-hero { padding-top: 132px; }
  .page-hero--photo .page-hero-grid { grid-template-columns: 7fr 5fr; gap: 64px; }
}
.page-hero-text { max-width: 46rem; }
.page-photo { margin: 0; border-radius: var(--r-l); }
.page-photo img { width: 100%; border-radius: var(--r-l); aspect-ratio: 1 / 1.05; object-fit: cover; }
@media (max-width: 899px) { .page-photo { display: none; } }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.86rem; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.page-hero .eyebrow { margin-bottom: 14px; }

/* The short answer: in the header, above the fold. */
.answer { background: var(--warm); border-radius: var(--r); padding: 18px 22px 16px; margin: 24px 0 0; max-width: 40rem; }
.answer-k { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.answer ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; }
.answer li::marker { color: var(--coral); }
.answer p:last-child { margin-bottom: 0; }

/* ── Body with a contents list ────────────────────────────────────────── */
.rail-layout { display: grid; gap: 28px; }
@media (min-width: 1100px) {
  .rail-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
  .rail-layout--none { grid-template-columns: minmax(0, 1fr); }
  .rail { position: sticky; top: 104px; }
}
.rail-toc { background: var(--warm); border-radius: var(--r); padding: 14px 18px; }
.rail-toc summary { cursor: pointer; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rail-toc ol { list-style: none; margin: 10px 0 2px; padding: 0; display: grid; gap: 2px; }
.rail-toc a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; font-size: 0.95rem; line-height: 1.3; }
.rail-toc a:hover { color: var(--ink); text-decoration: underline; }
.rail-main { min-width: 0; }
.rail-main > .prose, .rail-main > .shell > .prose { max-width: var(--prose); }

/* ── Prose ────────────────────────────────────────────────────────────── */
.prose { max-width: var(--prose); }
.prose > h2, .prose h2[id] { font-size: clamp(1.55rem, 3.6vw, 2.1rem); margin: 1.9em 0 0.6em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 0.5em; }
.prose p, .prose li { color: #2b2825; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--muted); }
.src-note { font-size: 0.84rem; color: var(--muted); margin-top: -0.2em; }
.src-note a, a.cite { color: var(--muted); text-decoration-color: #c9c0b1; }
.src-note a:hover, a.cite:hover { color: var(--ink); }
span.src-note { display: block; margin-top: 0.5em; }

blockquote.sourced { margin: 1.6em 0; padding: 22px 24px; background: var(--sky-soft); border-radius: var(--r); }
blockquote.sourced p { font-size: 1.12rem; line-height: 1.5; color: var(--ink); margin-bottom: 0.6em; }
blockquote.sourced cite { font-style: normal; font-size: 0.86rem; color: var(--muted); }

/* Answer capsules, notes, cautions and the unverified box. */
.capsule { background: var(--sky-soft); border-radius: var(--r); padding: 18px 22px; margin: 0 0 1.3em; }
.capsule p { margin: 0; color: var(--ink); font-size: 1.05rem; }
.note, .caution, .unverified { border-radius: var(--r); padding: 18px 22px; margin: 1.5em 0; }
.note { background: var(--warm); }
.caution { background: var(--coral-soft); box-shadow: inset 0 0 0 1.5px var(--coral); }
.unverified { background: #f7effd; box-shadow: inset 0 0 0 1.5px var(--lilac); }
.note > b, .caution > b, .unverified > b { display: block; font-size: 1.02rem; margin-bottom: 6px; }
.note p:last-child, .caution p:last-child, .unverified p:last-child { margin-bottom: 0; }

/* Figures. */
.shot { margin: 1.8em 0; }
.shot img { width: 100%; border-radius: var(--r-m); aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption, .dia figcaption, .chart figcaption { font-size: 0.84rem; color: var(--muted); margin-top: 10px; }
.shot-credit a { color: inherit; }
figure.dia { margin: 2em 0; background: var(--warm); border-radius: var(--r-m); padding: 18px; }
figure.dia svg { display: block; width: 100%; height: auto; }

/* Tables. */
.tw { overflow-x: auto; margin: 1.4em 0 1.8em; -webkit-overflow-scrolling: touch; }
.tw table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.94rem; }
.tw caption { caption-side: top; text-align: left; font-size: 0.86rem; color: var(--muted); padding-bottom: 10px; }
.tw th, .tw td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); }
.tw th { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.tw td.n, .tw th.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tw tbody tr:hover td { background: rgba(249, 244, 235, 0.6); }
.tw a { color: var(--ink); }

/* Stats. */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 1.6em 0; }
.stat-row .stat { position: relative; overflow: hidden; isolation: isolate; background: var(--warm); border-radius: var(--r); padding: 18px 18px 16px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 128px; }
.stat-row .stat::before {
  content: ""; position: absolute; z-index: -1; left: -20%; right: -20%; top: -70%; height: 100%;
  background: radial-gradient(40% 60% at 25% 60%, var(--sky), transparent 70%), radial-gradient(35% 55% at 70% 60%, var(--lilac), transparent 70%);
  filter: blur(16px); opacity: 0.55;
}
.stat-row .stat b { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
.stat-row .stat span { font-size: 0.86rem; color: var(--ink-2); margin-top: 6px; }

/* The depth chart. */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: 7.5em 1fr 4.5em; align-items: center; gap: 12px; font-size: 0.9rem; }
.bars span { color: var(--ink-2); }
.bars i { display: block; height: 14px; width: var(--v); background: var(--line); border-radius: 0 8px 8px 0; }
.bars li.hi i { background: var(--sky); }
.bars em { font-style: normal; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink-2); }

/* The docket: a numbered checklist in a cream card. */
.docket { background: var(--warm); border-radius: var(--r-m); padding: 22px 20px 12px; margin: 1.8em 0; }
@media (min-width: 900px) { .docket { padding: 30px 32px 18px; } }
.docket-top { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.docket-top b { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; flex: 1 1 100%; }
.docket-top span { font-size: 0.84rem; color: var(--muted); }
.docket-top .ser { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.terms { list-style: none; counter-reset: t; margin: 0; padding: 0; }
.terms > li { counter-increment: t; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.terms > li:last-child { border-bottom: 0; }
.terms > li::before { content: counter(t); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sky); font-size: 0.84rem; font-weight: 600; }
.terms b { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.terms p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }

/* Questions. */
.qas { display: grid; gap: 10px; max-width: 52rem; }
.qa { background: var(--off); border-radius: var(--r); padding: 0 20px; }
.prose .qa, .page-body .qa { background: var(--warm); }
.qa summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.04rem; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.qa[open] summary::after { content: "\2212"; }
.qa .a { padding: 0 0 16px; color: var(--ink-2); }
.qa .a p:last-child { margin-bottom: 0; }

/* Offices. */
.offices { display: grid; gap: 14px; margin-bottom: 8px; }
@media (min-width: 760px) { .offices { grid-template-columns: 1fr 1fr; gap: 20px; } }
.office { background: var(--off); border-radius: var(--r); padding: 22px 22px 18px; display: grid; gap: 8px; align-content: start; }
.office-k { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.office p { margin: 0; color: var(--ink-2); }
.office-tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.office-tel svg { width: 18px; height: 18px; }
.office-hrs { font-size: 0.86rem; color: var(--muted); }

/* Topic lanes on the guides page. */
.lanes { display: grid; gap: 12px; }
@media (min-width: 760px) { .lanes { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1040px) { .lanes { grid-template-columns: repeat(3, 1fr); } }
.lane { display: grid; gap: 6px; align-content: start; background: var(--off); border-radius: var(--r); padding: 20px 22px; color: var(--ink); text-decoration: none; }
.lane:hover { color: var(--ink); background: #fff; }
.lane-k { margin: 0; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lane p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.lane-go { font-size: 0.9rem; font-weight: 600; margin-top: 6px; }

/* ── Articles ─────────────────────────────────────────────────────────── */
.post-head { padding-top: calc(env(safe-area-inset-top, 0px) + 92px); }
@media (min-width: 900px) { .post-head { padding-top: 132px; } }
.post-head-in > * { max-width: 46rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 20px 0 0; font-size: 0.86rem; color: var(--muted); }
.post-hero { margin-top: 32px; margin-bottom: 0; }
.post-hero-img { border-radius: var(--r-m); overflow: hidden; }
.post-hero-img img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
@media (max-width: 759px) { .post-hero-img img { aspect-ratio: 16 / 9; } }
@media (min-width: 900px) { .post-hero-img { border-radius: var(--r-l); } }
.byline { margin-top: 2.4em; padding: 18px 22px; background: var(--warm); border-radius: var(--r); }
.byline b { display: block; margin-bottom: 4px; }
.byline p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* ── Closing panel ────────────────────────────────────────────────────── */
.close { background: var(--warm); border-radius: var(--r-m); padding: 30px 20px; display: grid; gap: 30px; }
@media (min-width: 900px) { .close { grid-template-columns: 7fr 5fr; gap: 56px; padding: 52px 48px; border-radius: var(--r-l); } }
.close h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); margin-bottom: 22px; }
.steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.steps li > b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: var(--ink); font-size: 0.86rem; }
.steps strong { color: var(--ink); }
.close-side { display: grid; gap: 12px; align-content: start; }
.office-mini { display: grid; gap: 2px; background: var(--off); border-radius: var(--r-s); padding: 14px 16px; }
.office-mini span { font-size: 0.88rem; color: var(--ink-2); }
.office-mini a { font-weight: 600; color: var(--ink); text-decoration: none; margin-top: 4px; }
.served { font-size: 0.86rem; color: var(--muted); margin: 18px 0 0; }
.served b { color: var(--ink-2); }
.close-side .served { margin-top: 6px; }

/* The quote form, emitted only when there is somewhere for it to go. */
.form { display: grid; gap: 12px; align-content: start; }
.form .two { display: grid; gap: 12px; }
@media (min-width: 620px) { .form .two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid transparent; background: #fff; border-radius: 999px; padding: 13px 18px; font-size: 16px; }
.field textarea { border-radius: 22px; min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.form .consent { font-size: 0.8rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The call bar, emitted only when there is a number to call. */
.callbar {
  position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 253, 251, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.callbar--solo { grid-template-columns: 1fr; }
.callbar .pill { width: 100%; justify-content: center; }
@media (min-width: 900px) { .callbar { display: none; } }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { padding-block: 40px 40px; }
.foot-cols { display: grid; gap: 28px 20px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-cols { grid-template-columns: repeat(4, 1fr); } }
.foot h2 { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.94rem; }
.foot ul a { color: var(--ink-2); text-decoration: none; }
.foot ul a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 20px; align-items: end; }
@media (min-width: 900px) { .foot-base { grid-template-columns: auto 1fr; } }
.foot-mark { display: block; width: 72px; }
.foot-mark .logo-mark { width: 72px; height: 72px; }
.foot-legal { font-size: 0.84rem; color: var(--muted); max-width: 46rem; }
.foot-legal p { margin: 0 0 6px; }
.foot-legal a { color: inherit; }
@media (min-width: 900px) { .foot-legal { justify-self: end; text-align: right; } }

/* Grid items may shrink below their content, so nothing widens the page. */
.hero > *, .split > *, .page-hero-grid > *, .close > *, .guides > *, .rail-layout > *, .foot-cols > *, .offices > *, .lanes > * { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Area links and symptom cards. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.chips a { display: inline-block; padding: 9px 15px; border-radius: 999px; background: var(--warm); color: var(--ink); text-decoration: none; font-size: 0.94rem; }
.chips a:hover { background: var(--warm-2); color: var(--ink); }
.sym { display: grid; gap: 14px; }
@media (min-width: 760px) { .sym { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1100px) { .sym { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.sym > * { min-width: 0; }
.card { background: var(--warm); border-radius: var(--r-m); padding: 24px 22px 24px; display: grid; gap: 12px; align-content: start; }
.card h3 { font-size: 1.3rem; }
.card dl { margin: 0; display: grid; gap: 10px; }
.card dt { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card dd { margin: 2px 0 0; color: var(--ink-2); }
.card.alert { background: var(--coral-soft); box-shadow: inset 0 0 0 1.5px var(--coral); }
.body-narrow { max-width: var(--prose); }
.body-narrow > h2 { margin-bottom: 16px; }
.body-narrow > h2 + .lead { margin-top: 0; }
.body-narrow ol, .body-narrow ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.body-narrow li { margin-bottom: 0.5em; color: #2b2825; }
.body-narrow > p { max-width: var(--prose); }
/* Four-up rows for sets of four or eight, so no card sits alone in a row. */
@media (min-width: 1100px) { .guides--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; } .guides--4 .guide-t { font-size: 1.1rem; } }

/* Diagrams are drawn 800 wide. On a phone they keep a readable size and scroll
   sideways inside their card, rather than shrinking their labels to six pixels. */
@media (max-width: 759px) {
  figure.dia { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 14px; }
  figure.dia svg { width: 720px; max-width: none; }
  figure.dia figcaption { position: sticky; left: 0; max-width: calc(100vw - 2 * var(--gutter) - 28px); }
  figure.dia::before { content: "Swipe to see the whole drawing \2192"; position: sticky; left: 0; display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
}
