:root {
  --ink: #102c32;
  --muted: #557077;
  --teal-950: #062f39;
  --teal-900: #083c49;
  --teal-800: #0b5260;
  --teal-700: #0e6976;
  --aqua: #58c6bd;
  --aqua-soft: #dff4ef;
  --sand: #f5f1e8;
  --sand-2: #ebe4d7;
  --white: #fff;
  --coral: #e56c4d;
  --coral-dark: #bd4f35;
  --line: #d7e0de;
  --shadow: 0 22px 70px rgba(6, 47, 57, .12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fbfcfa; font: 16px/1.65 var(--sans); text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .17em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.035em; }
h1 { font: 600 clamp(2.7rem, 7vw, 6rem)/.98 var(--serif); }
h2 { font: 600 clamp(2rem, 4vw, 3.65rem)/1.05 var(--serif); }
h3 { font: 650 1.18rem/1.25 var(--sans); }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 840px); }
.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; }
.skip-link { position: fixed; left: 16px; top: 10px; z-index: 1000; padding: 10px 16px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.eyebrow, .section-kicker { display: inline-block; color: var(--teal-700); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-kicker { margin-bottom: 14px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid transparent; padding: 12px 20px; text-decoration: none; font-weight: 750; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--coral); color: var(--white); }
.button-primary:hover { background: var(--coral-dark); }
.button-light { background: var(--white); color: var(--teal-900); }
.button-ghost { border-color: var(--teal-700); background: transparent; color: var(--teal-900); }
.button.small { min-height: 40px; padding: 8px 14px; font-size: .88rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { color: var(--teal-700); font-weight: 800; }

/* Header */
.site-header { position: relative; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.utility { background: var(--teal-950); color: rgba(255,255,255,.78); font-size: .72rem; letter-spacing: .04em; }
.utility .shell { display: flex; justify-content: space-between; gap: 20px; padding-block: 7px; }
.utility a { color: var(--aqua); font-weight: 750; }
.nav-shell { display: flex; min-height: 82px; align-items: center; gap: 26px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; color: var(--teal-950); text-decoration: none; }
.brand-mark { position: relative; display: grid; width: 40px; height: 40px; grid-template-columns: repeat(3, 1fr); align-items: end; overflow: hidden; border: 1px solid var(--teal-700); }
.brand-mark i { display: block; background: var(--teal-700); transform: skewY(-22deg); transform-origin: bottom; }
.brand-mark i:nth-child(1) { height: 39%; }
.brand-mark i:nth-child(2) { height: 62%; background: var(--aqua); }
.brand-mark i:nth-child(3) { height: 88%; }
.brand span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-size: .63rem; letter-spacing: .22em; }
.brand strong { margin-top: 5px; font-size: .91rem; letter-spacing: .03em; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 21px; margin-left: auto; }
.desktop-nav a { color: #284950; font-size: .81rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.desktop-nav a:hover { color: var(--coral); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.search-toggle, .menu-toggle { border: 0; background: transparent; cursor: pointer; }
.search-toggle { position: relative; width: 38px; height: 38px; }
.search-toggle span { display: block; width: 17px; height: 17px; border: 2px solid var(--teal-900); border-radius: 50%; }
.search-toggle span::after { position: absolute; width: 8px; height: 2px; background: var(--teal-900); content: ""; transform: translate(13px, -1px) rotate(45deg); }
.nav-cta { padding: 12px 16px; background: var(--teal-900); color: var(--white); font-size: .81rem; font-weight: 800; text-decoration: none; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 9px; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--teal-900); }
.mobile-nav { padding: 8px 20px 24px; background: var(--white); border-top: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 750; text-decoration: none; }
.mobile-nav .mobile-estimate { margin-top: 14px; padding: 14px; background: var(--coral); color: var(--white); text-align: center; }
.search-dialog { width: min(100% - 32px, 760px); border: 0; padding: 0; box-shadow: var(--shadow); }
.search-dialog::backdrop { background: rgba(4,31,37,.72); backdrop-filter: blur(5px); }
.search-dialog > form { position: absolute; right: 15px; top: 10px; }
.search-dialog > form button { width: 42px; height: 42px; border: 0; background: none; color: var(--teal-900); font-size: 2rem; cursor: pointer; }
.search-dialog > div { padding: 54px clamp(24px, 7vw, 72px) 60px; }
.search-dialog form[role="search"], .page-search { display: flex; margin-top: 16px; }
.search-dialog input, .page-search input { min-width: 0; flex: 1; border: 1px solid var(--line); padding: 16px; font-size: 1.05rem; }
.search-dialog form[role="search"] button, .page-search button { border: 0; padding: 0 24px; background: var(--coral); color: var(--white); font-weight: 800; cursor: pointer; }
.search-dialog p { color: var(--muted); margin: 12px 0 0; font-size: .86rem; }

/* Home */
.home-hero { overflow: hidden; background: var(--sand); }
.home-hero-grid { display: grid; min-height: 680px; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 50px; padding-block: 72px 82px; }
.hero-copy h1 { max-width: 760px; margin: 19px 0 25px; color: var(--teal-950); }
.hero-copy h1 em { color: var(--teal-700); font-weight: 500; }
.hero-copy > p { max-width: 680px; color: #3e5e64; font-size: 1.17rem; }
.hero-search { display: flex; max-width: 650px; margin-top: 34px; box-shadow: 0 15px 45px rgba(6,47,57,.13); }
.hero-search input { min-width: 0; flex: 1; border: 0; padding: 17px 19px; }
.hero-search button { border: 0; padding: 0 23px; background: var(--coral); color: var(--white); font-weight: 800; cursor: pointer; }
.hero-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 21px; }
.hero-links a { color: var(--teal-700); font-size: .88rem; font-weight: 800; }
.hero-structure { position: relative; min-height: 480px; border: 1px solid rgba(8,60,73,.16); background: linear-gradient(180deg, #dff4ef 0 43%, #78cfd0 43% 63%, #d6c5a9 63% 100%); box-shadow: var(--shadow); }
.hero-structure::after { position: absolute; inset: 0; border: 13px solid rgba(255,255,255,.45); content: ""; pointer-events: none; }
.measure { position: absolute; z-index: 5; left: 15px; top: 22px; bottom: 22px; display: flex; width: 46px; flex-direction: column; justify-content: space-around; border-right: 1px solid rgba(8,60,73,.24); color: var(--teal-900); font-size: .58rem; font-weight: 900; letter-spacing: .12em; writing-mode: vertical-rl; }
.water-lines { position: absolute; inset: 43% 45% 37% 61px; opacity: .65; background: repeating-linear-gradient(0deg, transparent 0 19px, rgba(255,255,255,.65) 20px); }
.wall-face { position: absolute; z-index: 3; left: 46%; top: 13%; bottom: 6%; width: 23%; border: 1px solid #31545a; background: #dce2de; box-shadow: 12px 0 24px rgba(6,47,57,.14); }
.wall-face i { display: block; height: 27%; border-bottom: 1px solid #9badad; }
.wall-face strong { position: absolute; left: 50%; top: 45%; color: var(--teal-900); font-size: .65rem; letter-spacing: .23em; transform: translate(-50%, -50%) rotate(-90deg); }
.soil-cut { position: absolute; inset: 63% 0 0 69%; overflow: hidden; background: repeating-linear-gradient(-25deg, #d2b994 0 7px, #c7ad87 8px 9px); }
.soil-cut span { position: absolute; right: 22px; bottom: 22px; font-size: .62rem; font-weight: 900; letter-spacing: .18em; }
.soil-cut b { position: absolute; left: -25px; width: 70%; height: 3px; background: var(--teal-900); }
.tie-one { top: 35%; transform: rotate(-7deg); }
.tie-two { top: 63%; transform: rotate(4deg); }
.hero-data { position: absolute; z-index: 8; right: 18px; top: 18px; display: grid; gap: 7px; }
.hero-data span { min-width: 128px; padding: 8px 10px; background: rgba(255,255,255,.82); color: var(--teal-900); font-size: .67rem; font-weight: 750; }
.hero-data b { font: 600 1.35rem var(--serif); }
.trust-strip { background: var(--white); border-block: 1px solid var(--line); }
.trust-strip .shell { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 22px; overflow-x: auto; }
.trust-strip span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.trust-strip b { color: #647a7c; font-size: .73rem; letter-spacing: .06em; white-space: nowrap; }
.home-section { padding-block: 105px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); align-items: end; gap: 45px; margin-bottom: 44px; }
.section-heading .section-kicker { grid-column: 1 / -1; margin-bottom: -30px; }
.section-heading h2 { max-width: 770px; margin-bottom: 0; }
.section-heading p { color: var(--muted); margin-bottom: 0; }
.symptom-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.symptom-grid .resource-card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.identify > .text-link { display: inline-block; margin-top: 28px; }
.system-path { padding-block: 104px; color: var(--white); background: var(--teal-950); }
.section-heading.inverse .section-kicker { color: var(--aqua); }
.journey { display: grid; padding: 0; margin: 50px 0 0; grid-template-columns: repeat(5, 1fr); list-style: none; counter-reset: journey; }
.journey li { position: relative; min-height: 190px; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.25); }
.journey li::before { position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--aqua); content: ""; }
.journey li:not(:last-child)::after { position: absolute; right: 0; top: -8px; color: rgba(255,255,255,.32); content: "→"; }
.journey span { display: block; color: var(--aqua); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.journey strong { display: block; margin-top: 28px; font: 600 1.6rem var(--serif); }
.journey p { color: rgba(255,255,255,.65); font-size: .86rem; }
.hub-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.hub-grid .resource-card { min-height: 290px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.local-feature { padding-block: 110px; background: var(--aqua-soft); }
.local-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 80px; }
.local-grid h2 { margin: 18px 0 22px; }
.local-grid > div:first-child > p { max-width: 650px; color: #45666b; font-size: 1.05rem; }
.county-card { display: grid; box-shadow: var(--shadow); }
.county-card > div { position: relative; padding: 38px; background: var(--white); border-bottom: 1px solid var(--line); }
.county-card > div:last-of-type { background: var(--teal-900); color: var(--white); }
.county-card span { display: block; color: var(--coral); font-size: .66rem; font-weight: 900; letter-spacing: .17em; }
.county-card b { display: block; margin: 10px 0 15px; font: 600 1.5rem var(--serif); }
.county-card a { font-size: .84rem; font-weight: 800; }
.county-card small { padding: 12px 20px; color: var(--muted); background: var(--sand); text-align: right; }
.tool-teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-teasers a { min-height: 285px; padding: 34px; color: var(--white); background: var(--teal-900); text-decoration: none; }
.tool-teasers a:nth-child(2) { background: var(--teal-700); }
.tool-teasers a:nth-child(3) { color: var(--teal-950); background: var(--sand); }
.tool-teasers span { color: var(--aqua); font-size: .65rem; font-weight: 900; letter-spacing: .16em; }
.tool-teasers h3 { margin-top: 70px; font: 600 1.7rem var(--serif); }
.estimate-banner { padding-block: 78px; color: var(--white); background: var(--coral); }
.estimate-banner .shell { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.estimate-banner h2 { max-width: 760px; margin: 9px 0; font-size: clamp(2rem, 4vw, 3.25rem); }
.estimate-banner p { margin-bottom: 0; color: rgba(255,255,255,.78); }

/* Resource cards and hubs */
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 90px; }
.resource-grid.compact { grid-template-columns: repeat(2, 1fr); padding-bottom: 0; }
.resource-card { display: flex; min-height: 310px; flex-direction: column; padding: 28px; background: var(--white); text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s; }
.resource-card:hover { position: relative; z-index: 2; background: var(--aqua-soft); transform: translateY(-4px); box-shadow: var(--shadow); }
.card-index { color: var(--coral); font-size: .67rem; font-weight: 900; letter-spacing: .13em; }
.resource-card h3 { margin: 60px 0 12px; font: 600 1.55rem/1.16 var(--serif); }
.resource-card p { color: var(--muted); font-size: .89rem; }
.card-action { margin-top: auto; color: var(--teal-700); font-size: .78rem; font-weight: 850; }
.hub-hero { overflow: hidden; color: var(--white); background: var(--teal-950); }
.hub-hero > .shell { display: grid; min-height: 440px; grid-template-columns: 1fr 370px; align-items: center; gap: 80px; padding-block: 65px; }
.hub-hero h1 { max-width: 780px; margin: 15px 0 25px; }
.hub-hero p { max-width: 700px; color: rgba(255,255,255,.72); font-size: 1.12rem; }
.hub-hero .eyebrow { color: var(--aqua); }
.hub-orbit { position: relative; width: 320px; height: 320px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.hub-orbit::before, .hub-orbit::after { position: absolute; inset: 48px; border: 1px solid rgba(88,198,189,.35); border-radius: 50%; content: ""; }
.hub-orbit::after { inset: 96px; }
.hub-orbit i { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--aqua); }
.hub-orbit i:nth-child(1) { left: 30px; top: 72px; }
.hub-orbit i:nth-child(2) { right: 25px; top: 130px; background: var(--coral); }
.hub-orbit i:nth-child(3) { left: 140px; bottom: 12px; }
.hub-orbit span { position: absolute; left: 50%; top: 50%; font: 600 4rem var(--serif); transform: translate(-50%,-50%); text-align: center; }
.hub-orbit small { display: block; margin-top: 6px; color: var(--aqua); font: 800 .65rem var(--sans); letter-spacing: .18em; }
.hub-intro { display: grid; grid-template-columns: 1fr .75fr; align-items: end; gap: 60px; padding-block: 75px 50px; }
.hub-intro h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.hub-intro > p { color: var(--muted); margin: 0; }
.context-cta { display: flex; align-items: center; justify-content: space-between; gap: 50px; margin-bottom: 100px; padding: 48px; color: var(--white); background: var(--teal-700); }
.context-cta span { color: var(--aqua-soft); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.context-cta h2 { margin: 7px 0; font-size: 2.3rem; }
.context-cta p { margin: 0; color: rgba(255,255,255,.75); }
.breadcrumbs { padding-block: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li { color: var(--muted); font-size: .72rem; }
.breadcrumbs li:not(:last-child)::after { margin-left: 8px; color: #9ab0ad; content: "/"; }
.breadcrumbs a { color: var(--teal-700); }

/* Articles */
.article-hero { padding-block: 85px 75px; color: var(--white); background: linear-gradient(125deg, var(--teal-950), var(--teal-800)); }
.article-hero .eyebrow { color: var(--aqua); }
.article-hero h1 { max-width: 900px; margin: 16px 0 26px; font-size: clamp(2.7rem, 6vw, 5.4rem); }
.article-hero p { max-width: 820px; color: rgba(255,255,255,.76); font-size: 1.13rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; color: rgba(255,255,255,.58); font-size: .69rem; }
.article-layout { display: grid; grid-template-columns: 245px minmax(0, 820px); justify-content: center; gap: 65px; padding-block: 55px 100px; }
.article-toc { position: sticky; top: 20px; align-self: start; padding: 22px; border-left: 3px solid var(--aqua); background: var(--aqua-soft); }
.article-toc strong { color: var(--teal-900); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.article-toc ol { padding-left: 18px; margin: 15px 0 0; }
.article-toc li { margin: 9px 0; color: var(--muted); font-size: .77rem; }
.article-toc a { text-decoration: none; }
.article-content { min-width: 0; }
.article-section { padding-block: 35px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.article-section:first-child { padding-top: 0; }
.article-section h2 { margin-bottom: 24px; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.article-section p, .article-sources > p { color: #38565c; }
.article-section > p:first-of-type { font-size: 1.02rem; }
.decision-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 25px 0; background: var(--line); border: 1px solid var(--line); }
.decision-grid > div { min-height: 135px; padding: 23px; background: var(--white); }
.decision-grid strong { display: block; color: var(--teal-900); }
.decision-grid span { display: block; margin-top: 7px; color: var(--muted); font-size: .86rem; }
.steps { padding: 0; margin: 28px 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; min-height: 54px; padding: 0 0 22px 52px; color: #38565c; counter-increment: steps; }
.steps li::before { position: absolute; left: 0; top: -4px; display: grid; width: 34px; height: 34px; place-items: center; background: var(--teal-900); color: var(--white); content: counter(steps, decimal-leading-zero); font-size: .65rem; font-weight: 900; }
.check-list { padding: 0; margin: 24px 0; list-style: none; }
.check-list li { position: relative; padding: 8px 0 8px 29px; color: #38565c; }
.check-list li::before { position: absolute; left: 0; top: 13px; width: 12px; height: 7px; border-bottom: 2px solid var(--teal-700); border-left: 2px solid var(--teal-700); content: ""; transform: rotate(-45deg); }
.warning { margin: 28px 0; padding: 24px 26px; border-left: 5px solid var(--coral); background: #fff0ea; }
.warning strong { display: block; color: #8e3826; font: 600 1.25rem var(--serif); }
.warning p { margin: 7px 0 0; color: #6b483f; }
.source-alert { display: flex; gap: 18px; margin: 25px 0; padding: 22px; background: var(--aqua-soft); }
.source-alert strong { flex: 0 0 170px; color: var(--teal-900); }
.source-alert span { color: var(--muted); }
.table-wrap { max-width: 100%; margin: 28px 0; overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { min-width: 150px; padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--white); background: var(--teal-900); font-size: .73rem; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f4f8f6; }
.path-list { display: grid; margin: 28px 0; }
.path-list a { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; padding: 21px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.path-list span { grid-row: 1 / 3; color: var(--coral); font-size: .69rem; font-weight: 900; }
.path-list strong { color: var(--teal-900); }
.path-list em { color: var(--muted); font-size: .82rem; font-style: normal; }
.diagram { position: relative; display: grid; height: 370px; margin: 35px 0; grid-template-columns: 54% 11% 35%; grid-template-rows: 20% 55% 25%; overflow: hidden; border: 1px solid var(--line); }
.diagram-sky { grid-column: 1 / 4; padding: 18px; color: var(--teal-700); background: var(--aqua-soft); font-size: .67rem; font-weight: 900; letter-spacing: .15em; }
.diagram-soil { position: relative; grid-row: 2 / 4; padding: 25px; background: repeating-linear-gradient(-25deg, #decbaa 0 7px, #d2bc98 8px 9px); }
.diagram-soil span, .diagram-water span { font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.diagram-wall { grid-row: 2 / 4; display: grid; place-items: center; color: var(--white); background: var(--teal-800); }
.diagram-wall span { font-size: .66rem; font-weight: 900; letter-spacing: .1em; transform: rotate(-90deg); }
.diagram-water { grid-row: 2 / 4; padding: 25px; color: var(--teal-950); background: repeating-linear-gradient(0deg, #86d5d4 0 25px, #a2e0dc 26px 27px); }
.tie-rod { position: absolute; right: -17%; top: 40%; width: 70%; height: 4px; background: var(--teal-950); }
.anchor { position: absolute; left: 22%; top: 33%; width: 85px; padding: 8px; color: var(--white); background: var(--teal-900); font-size: .65rem; text-align: center; }
.diagram-toe { position: absolute; left: 54%; bottom: 9px; width: 11%; color: var(--white); font-size: .57rem; font-weight: 800; text-align: center; }
.permit-stack { display: grid; gap: 10px; margin: 28px 0; }
.permit-stack > div { display: grid; grid-template-columns: 48px 180px 1fr; align-items: center; gap: 16px; padding: 20px; background: var(--aqua-soft); }
.permit-stack span { display: grid; width: 36px; height: 36px; place-items: center; background: var(--teal-900); color: var(--white); font-weight: 900; }
.permit-stack p { margin: 0; font-size: .84rem; }
.ad-reserve { min-height: 130px; margin: 30px 0; padding: 8px; border: 1px solid var(--line); background: #f6f7f5; text-align: center; }
.ad-reserve > span { color: #879795; font-size: .57rem; letter-spacing: .1em; text-transform: uppercase; }
.article-sources { padding-block: 45px; }
.article-sources h2 { font-size: 2.3rem; }
.article-sources ol { padding: 0; list-style: none; }
.article-sources li { border-top: 1px solid var(--line); }
.article-sources li:last-child { border-bottom: 1px solid var(--line); }
.article-sources a { display: block; padding: 17px 0; text-decoration: none; }
.article-sources strong, .article-sources span { display: block; }
.article-sources strong { color: var(--teal-700); }
.article-sources span { margin-top: 3px; color: var(--muted); font-size: .76rem; }
.professional-note { margin: 20px 0 50px; padding: 24px; color: var(--white); background: var(--teal-900); }
.professional-note p { margin: 5px 0 0; color: rgba(255,255,255,.72); font-size: .86rem; }
.related { padding-top: 40px; }
.related h2 { font-size: 2.35rem; }

/* Reference and conditions */
.reference-hero, .tools-hero, .estimate-hero, .conditions-hero { padding-block: 80px 68px; background: var(--sand); }
.reference-hero h1, .tools-hero h1, .conditions-hero h1 { margin: 15px 0 22px; color: var(--teal-950); }
.reference-hero p, .tools-hero p, .conditions-hero p { max-width: 780px; color: var(--muted); font-size: 1.1rem; }
.verified-pill { display: inline-block; margin-top: 12px; padding: 7px 11px; color: var(--teal-900); background: var(--aqua-soft); font-size: .7rem; font-weight: 800; }
.faq-list { padding-block: 45px 100px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 42px 24px 0; color: var(--teal-950); font: 600 1.28rem var(--serif); cursor: pointer; list-style: none; }
.faq-list summary::after { position: absolute; right: 5px; content: "+"; color: var(--teal-700); font: 400 1.6rem var(--sans); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 40px 25px 0; color: var(--muted); }
.glossary-controls { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 30px; }
.glossary-controls a { display: grid; width: 38px; height: 38px; place-items: center; background: var(--aqua-soft); color: var(--teal-900); font-weight: 800; text-decoration: none; }
.glossary-list { padding-bottom: 100px; }
.glossary-letter { padding-top: 36px; scroll-margin-top: 20px; }
.glossary-letter h2 { color: var(--coral); font-size: 1rem; font-family: var(--sans); letter-spacing: .15em; }
.glossary-letter dl { margin: 0; }
.glossary-letter dl > div { display: grid; grid-template-columns: 200px 1fr; gap: 30px; padding: 19px 0; border-top: 1px solid var(--line); }
.glossary-letter dt { color: var(--teal-900); font-weight: 800; }
.glossary-letter dd { margin: 0; color: var(--muted); }
.source-library { padding-block: 35px 100px; }
.source-group { margin-bottom: 55px; }
.source-group h2 { font-size: 2.2rem; }
.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.source-grid a { display: flex; min-height: 245px; flex-direction: column; padding: 25px; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.source-grid a:hover { border-color: var(--aqua); background: var(--aqua-soft); }
.source-grid strong { color: var(--teal-900); line-height: 1.3; }
.source-grid span { margin: 8px 0 22px; color: var(--coral); font-size: .68rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.source-grid p { color: var(--muted); font-size: .79rem; }
.source-grid em { margin-top: auto; color: var(--teal-700); font-size: .74rem; font-style: normal; font-weight: 800; }
.conditions-hero { color: var(--white); background: linear-gradient(135deg, var(--teal-950), #0a5e6b); }
.conditions-hero h1, .conditions-hero .eyebrow { color: var(--white); }
.conditions-hero .eyebrow { color: var(--aqua); }
.conditions-hero p { color: rgba(255,255,255,.73); }
.condition-status { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.62); font-size: .72rem; }
.condition-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 5px rgba(88,198,189,.18); }
.condition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding-block: 45px 70px; }
.condition-card { display: flex; min-height: 310px; flex-direction: column; padding: 32px; background: var(--white); border: 1px solid var(--line); }
.condition-card.featured { color: var(--white); background: var(--teal-900); }
.condition-card.alert-card { background: #fff0ea; border-color: #f1c4b7; }
.condition-label { color: var(--coral); font-size: .66rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.featured .condition-label { color: var(--aqua); }
.condition-card h2 { margin: 48px 0 14px; font-size: 2.15rem; }
.condition-card p { color: var(--muted); }
.condition-card.featured p { color: rgba(255,255,255,.7); }
.condition-card a { margin-top: auto; color: var(--teal-700); font-size: .8rem; font-weight: 850; }
.condition-card.featured a { color: var(--aqua); }
.interpretation { padding-bottom: 100px; }
.interpret-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 35px 0; background: var(--line); }
.interpret-grid > div { padding: 24px; background: var(--white); }
.interpret-grid p { margin: 6px 0 0; color: var(--muted); font-size: .84rem; }
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-block: 40px 100px; }
.sitemap-grid h2 { padding-bottom: 12px; border-bottom: 3px solid var(--aqua); font-size: 1.65rem; }
.sitemap-grid ul { padding-left: 18px; }
.sitemap-grid li { margin: 8px 0; color: var(--muted); }
.sitemap-grid a { color: var(--teal-700); }
.not-found { min-height: 65vh; display: grid; place-items: center; padding-block: 80px; text-align: center; }
.not-found h1 { margin: 16px 0; }
.not-found .page-search { max-width: 620px; margin: 30px auto; }
.not-found .button-row { justify-content: center; }

/* Tools */
.tools-stack { display: grid; gap: 24px; padding-block: 50px 110px; }
.tool-panel { display: grid; grid-template-columns: .7fr 1.3fr; border: 1px solid var(--line); background: var(--white); box-shadow: 0 10px 35px rgba(6,47,57,.06); scroll-margin-top: 20px; }
.tool-copy { padding: 38px; color: var(--white); background: var(--teal-900); }
.tool-copy > span { color: var(--aqua); font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.tool-copy h2 { margin: 45px 0 16px; font-size: 2.35rem; }
.tool-copy p { color: rgba(255,255,255,.7); }
.tool-ui { padding: 38px; }
.segment-list { display: grid; gap: 10px; }
.segment-list label { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 16px; background: #f1f6f4; font-weight: 750; }
.segment-list label span { color: var(--muted); font-size: .82rem; }
.segment-list input { width: 100px; border: 1px solid var(--line); padding: 7px; text-align: right; }
.tool-ui > .button { margin-top: 13px; }
.tool-result { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 22px; padding: 20px; background: var(--aqua-soft); }
.tool-result span { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.tool-result strong { color: var(--teal-900); font: 600 1.75rem var(--serif); }
.checklist-ui { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.checklist-ui > label { position: relative; display: flex; min-height: 66px; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); cursor: pointer; }
.checklist-ui input { width: 20px; height: 20px; accent-color: var(--teal-700); }
.checklist-ui label:has(input:checked) { background: var(--aqua-soft); border-color: var(--aqua); }
.check-progress { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 16px; color: var(--muted); font-size: .8rem; }
.check-progress button { border: 0; background: none; color: var(--coral-dark); font-weight: 800; cursor: pointer; }
.organizer fieldset { display: grid; grid-template-columns: 1fr repeat(3, auto); align-items: center; gap: 18px; border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
.organizer legend { float: left; width: 100%; padding-right: 20px; color: #38565c; }
.organizer label { display: flex; gap: 4px; color: var(--muted); font-size: .76rem; }
.estimate-head, .estimate-row { display: grid; grid-template-columns: 1fr 100px 100px; align-items: center; }
.estimate-head { gap: 8px; margin-bottom: 8px; }
.estimate-head::before { content: "Scope category"; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.estimate-head input { min-width: 0; border: 1px solid var(--line); padding: 8px; text-align: center; font-size: .78rem; font-weight: 800; }
.estimate-row { min-height: 54px; border-bottom: 1px solid var(--line); }
.estimate-row > span { padding-right: 12px; color: #38565c; font-size: .82rem; }
.estimate-row label { display: grid; place-items: center; }
.estimate-row input { width: 21px; height: 21px; accent-color: var(--teal-700); }
.tool-footnote { margin: 20px 0 0; color: var(--muted); font-size: .75rem; }

/* Forms */
.estimate-hero { color: var(--white); background: var(--teal-950); }
.estimate-hero > .shell { display: grid; grid-template-columns: 1fr 330px; align-items: end; gap: 60px; }
.estimate-hero h1 { margin: 16px 0 22px; }
.estimate-hero p { max-width: 740px; color: rgba(255,255,255,.72); font-size: 1.08rem; }
.estimate-hero ol { padding: 0; margin: 0; list-style: none; }
.estimate-hero li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.15); }
.estimate-hero li b { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--teal-950); background: var(--aqua); font-size: .72rem; }
.estimate-hero li span { color: rgba(255,255,255,.75); font-size: .82rem; }
.form-layout { display: grid; grid-template-columns: minmax(0, 800px) 320px; gap: 45px; padding-block: 50px 110px; }
.intake-form { min-width: 0; }
.intake-form fieldset { border: 0; padding: 0 0 42px; margin: 0 0 42px; border-bottom: 1px solid var(--line); }
.intake-form legend { width: 100%; margin-bottom: 22px; color: var(--teal-950); font: 600 1.75rem var(--serif); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid label, .intake-form > label { color: #38565c; font-size: .78rem; font-weight: 800; }
.form-grid label > span { color: var(--coral); }
.form-grid label.wide { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; margin-top: 7px; border: 1px solid #bdceca; border-radius: 0; padding: 12px; color: var(--ink); background: var(--white); }
.form-grid textarea { resize: vertical; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 24px; }
.choice-grid label { display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 10px 12px; border: 1px solid var(--line); color: #38565c; font-size: .8rem; cursor: pointer; }
.choice-grid label:has(input:checked) { border-color: var(--aqua); background: var(--aqua-soft); }
.choice-grid input { accent-color: var(--teal-700); }
.upload-box { display: flex; min-height: 135px; align-items: center; justify-content: center; border: 2px dashed #9db8b3; background: #f4f8f6; text-align: center; cursor: pointer; }
.upload-box input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-box strong, .upload-box em { display: block; }
.upload-box strong { color: var(--teal-900); font-size: .95rem; }
.upload-box em { color: var(--muted); font-size: .73rem; font-style: normal; }
.file-list { margin-top: 10px; color: var(--muted); font-size: .74rem; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: .72rem; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 25px; }
.consent input { width: 20px; height: 20px; accent-color: var(--teal-700); }
.consent span { flex: 1; }
.submit-button { min-width: 250px; }
.form-status { margin-top: 16px; color: var(--teal-700); font-weight: 750; }
.hp { position: absolute !important; left: -9999px !important; }
.form-aside { display: grid; align-content: start; gap: 18px; }
.form-aside > div { padding: 26px; background: var(--sand); }
.form-aside > div > span { color: var(--coral); font-size: .65rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.form-aside h2 { margin: 16px 0 20px; font-size: 1.8rem; }
.privacy-card { color: var(--white); background: var(--teal-900) !important; }
.privacy-card p { color: rgba(255,255,255,.7); font-size: .8rem; }
.privacy-card a { color: var(--aqua); font-size: .75rem; font-weight: 800; }
.contact-wrap { padding-block: 50px 100px; }
.contact-form { padding: 34px; border: 1px solid var(--line); background: var(--white); }

/* Search */
.search-page-hero .page-search { max-width: 720px; margin-top: 30px; }
.search-results { min-height: 380px; padding-block: 45px 100px; }
.search-empty { padding: 45px; background: var(--aqua-soft); text-align: center; }
.search-empty strong { color: var(--teal-900); font: 600 1.55rem var(--serif); }
.search-empty p { margin: 9px 0 0; color: var(--muted); }
.search-summary { margin-bottom: 24px; color: var(--muted); }
.search-result-list { display: grid; gap: 10px; }
.search-result { display: grid; grid-template-columns: 1fr 42px; gap: 20px; padding: 24px; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.search-result:hover { border-color: var(--aqua); background: var(--aqua-soft); }
.search-result h2 { margin: 0 0 8px; font: 600 1.4rem var(--serif); }
.search-result p { margin: 0; color: var(--muted); font-size: .83rem; }
.search-result > span { color: var(--coral); font-size: 1.5rem; }

/* Footer */
.site-footer { color: var(--white); background: #041f27; }
.footer-intro { display: flex; align-items: center; gap: 30px; padding-block: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand.inverse { color: var(--white); }
.brand.inverse .brand-mark { border-color: var(--aqua); }
.footer-intro p { margin: 0 auto 0 0; color: rgba(255,255,255,.55); }
.footer-intro > a { color: var(--aqua); font-weight: 800; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 35px; padding-block: 55px; }
.footer-grid h2 { color: var(--aqua); font: 800 .68rem var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.footer-grid a { display: block; margin: 8px 0; color: rgba(255,255,255,.67); font-size: .78rem; text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.44); font-size: .67rem; }
.footer-bottom nav { display: flex; gap: 18px; }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .home-hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .hero-structure { max-width: 700px; width: 100%; min-height: 410px; }
  .symptom-grid, .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(3, 1fr); row-gap: 45px; }
  .local-grid { gap: 40px; }
  .article-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 35px; }
  .form-layout { grid-template-columns: 1fr 290px; }
}

@media (max-width: 780px) {
  .shell, .narrow { width: min(calc(100% - 28px), var(--shell)); }
  .utility span { display: none; }
  .utility .shell { justify-content: flex-end; }
  .nav-shell { min-height: 70px; gap: 10px; }
  .nav-cta { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .home-hero-grid { gap: 42px; padding-block: 56px; }
  .hero-copy h1 { font-size: clamp(2.6rem, 13vw, 4.6rem); }
  .hero-copy > p { font-size: 1rem; }
  .hero-search { display: grid; grid-template-columns: 1fr auto; }
  .hero-search input { min-height: 52px; }
  .hero-structure { min-height: 360px; }
  .hero-data { display: none; }
  .trust-strip .shell { justify-content: flex-start; }
  .home-section, .system-path, .local-feature { padding-block: 72px; }
  .section-heading, .hub-intro { grid-template-columns: 1fr; gap: 16px; }
  .section-heading .section-kicker { margin-bottom: 0; }
  .symptom-grid, .hub-grid, .tool-teasers, .resource-grid, .source-grid, .sitemap-grid { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; gap: 22px; }
  .journey li { min-height: auto; padding-bottom: 10px; }
  .journey li:not(:last-child)::after { display: none; }
  .local-grid { grid-template-columns: 1fr; }
  .estimate-banner .shell, .footer-intro { align-items: flex-start; flex-direction: column; }
  .hub-hero > .shell { min-height: 390px; grid-template-columns: 1fr; }
  .hub-orbit { display: none; }
  .context-cta { align-items: flex-start; flex-direction: column; padding: 30px; }
  .article-hero { padding-block: 62px; }
  .article-layout { display: block; padding-top: 30px; }
  .article-toc { position: static; margin-bottom: 35px; }
  .decision-grid, .resource-grid.compact, .interpret-grid, .condition-grid { grid-template-columns: 1fr; }
  .permit-stack > div { grid-template-columns: 42px 1fr; }
  .permit-stack p { grid-column: 2; }
  .source-alert { display: block; }
  .source-alert strong { display: block; margin-bottom: 7px; }
  .glossary-letter dl > div { grid-template-columns: 1fr; gap: 5px; }
  .tool-panel { grid-template-columns: 1fr; }
  .tool-copy h2 { margin-top: 25px; }
  .checklist-ui { grid-template-columns: 1fr; }
  .organizer fieldset { grid-template-columns: repeat(3, 1fr); }
  .organizer legend { grid-column: 1 / -1; margin-bottom: 8px; }
  .estimate-hero > .shell, .form-layout { grid-template-columns: 1fr; }
  .form-layout { padding-top: 25px; }
  .form-aside { grid-row: 1; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: auto; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .estimate-head, .estimate-row { grid-template-columns: 1fr 72px 72px; }
}

@media (max-width: 470px) {
  h1 { font-size: 2.65rem; }
  .brand b { font-size: .55rem; }
  .brand strong { font-size: .78rem; }
  .hero-search button, .page-search button { padding-inline: 14px; }
  .hero-structure { min-height: 310px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tool-copy, .tool-ui { padding: 26px 20px; }
  .segment-list label { align-items: flex-start; flex-direction: column; }
  .estimate-row { grid-template-columns: 1fr 54px 54px; }
  .estimate-head { grid-template-columns: 1fr 72px 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .breadcrumbs, .article-toc, .ad-reserve, .nav-actions { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .tool-panel { break-inside: avoid; box-shadow: none; }
  .tool-copy { color: #000; background: #eee; }
  a { text-decoration: none; }
}
