@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
/* Drystead (brand guide): deep estuary blue, slate, sandbag ochre, and warning amber used sparingly.
   WCAG AA: body text is ink or slate on sky/paper; ochre and amber are fills, never text on light. */
:root {
  --estuary: #14425c; --estuary-2: #1d5f82; --estuary-soft: #e3eef4;
  --sky: #f3f6f7; --paper: #ffffff; --line: #d6dfe3; --ink: #1b2630; --slate: #4f5d69;
  --ochre: #c89a4a; --ochre-soft: #f3e8d2; --ochre-ink: #6b4c14;
  --amber: #e3a008; --amber-soft: #fff4d6; --amber-ink: #6e4d00;
  --danger: #a23a2a; --danger-soft: #fbe9e5; --ok: #2f6a45; --ok-soft: #e4f1e8;
  --radius: 12px; --gap: 1rem; --wrap: 72rem;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.text-large { font-size: 131.25%; }
body { margin: 0; background: var(--sky); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--estuary-2); text-underline-offset: 0.18em; }
a:hover { color: var(--estuary); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--estuary); line-height: 1.2; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.01em; }
h3, h4 { font-weight: 700; }
p, li { text-wrap: pretty; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem); margin: 0.6rem 0 0.4rem; }
h2 { font-size: 1.5rem; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 0.4rem; }
h4 { font-size: 1rem; margin: 1.2rem 0 0.3rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.small { font-size: 0.9rem; color: var(--slate); }
.lede { font-size: 1.15rem; max-width: 42rem; color: var(--slate); }
.skip { position: absolute; left: -999px; top: 0; background: var(--estuary); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; padding-bottom: 0.6rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--estuary); }
.logo svg { width: 44px; height: 44px; color: var(--estuary); background: var(--estuary-soft); border-radius: 12px; padding: 5px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.01em; }
.logo__tag { font-size: 0.8rem; color: var(--slate); }
.text-size { font: inherit; font-size: 0.88rem; background: transparent; border: 1.5px solid var(--line); color: var(--estuary); border-radius: 999px; padding: 0.3rem 0.9rem; cursor: pointer; white-space: nowrap; }
.text-size[aria-pressed="true"] { background: var(--estuary); border-color: var(--estuary); color: #fff; }
.site-nav { background: var(--estuary); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.3rem; margin: 0; padding: 0.45rem 0; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; display: inline-block; padding: 0.25rem 0; }
.site-nav a[aria-current="page"], .site-nav a:hover { box-shadow: inset 0 -3px 0 var(--ochre); }
@media (max-width: 30rem) { .logo__tag { display: none; } .site-nav ul { gap: 0 0.9rem; } .site-nav a { font-size: 0.9rem; } }

main { padding-bottom: 3rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0; margin: 1rem 0 0; font-size: 0.88rem; color: var(--slate); }
.crumbs li + li::before { content: "›"; margin-right: 0.3rem; }
.byline { margin: 0; color: var(--slate); font-size: 0.92rem; }
.badge { display: inline-block; margin: 0.6rem 0; padding: 0.15rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
.badge--checked { background: var(--ok-soft); color: var(--ok); }
.badge--pending { background: var(--amber-soft); color: var(--amber-ink); }
.unverified { color: var(--amber-ink); font-weight: 700; }
.stub-banner, .editor-note { background: var(--estuary-soft); border-left: 4px solid var(--estuary-2); padding: 0.5rem 0.8rem; font-size: 0.92rem; color: var(--estuary); }
span.editor-note { display: inline; padding: 0.1rem 0.4rem; }
.prose { max-width: 44rem; }
.prose li { margin: 0.25rem 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 0.6rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 0.4rem 0.6rem; vertical-align: top; }

/* Notices */
.ad-banner { background: var(--ochre-soft); border-radius: var(--radius); padding: 0.6rem 0.9rem; font-size: 0.92rem; }
.ad-banner strong, .ad-label { background: var(--estuary); color: #fff; border-radius: 6px; padding: 0 0.4rem; font-size: 0.78rem; font-weight: 800; margin-right: 0.3rem; }
.callout { border-radius: var(--radius); padding: 0.7rem 1rem; margin: 0.8rem 0; border-left: 6px solid var(--estuary-2); background: var(--estuary-soft); max-width: 48rem; }
.callout p { margin: 0; }
.callout--emergency { border-left-color: var(--amber); background: var(--amber-soft); }
.callout--electrics, .callout--floodwater { border-left-color: var(--danger); background: var(--danger-soft); }
.callout--none { border-left-color: var(--line); background: var(--paper); font-size: 0.92rem; color: var(--slate); }
.callout--tax { border-left-color: var(--slate); background: var(--paper); font-size: 0.95rem; }
.source-line { font-size: 0.88rem; color: var(--slate); margin: 0.8rem 0; }

/* Home */
.hero { display: grid; gap: 1.5rem; align-items: center; padding: 2rem 0 0.8rem; }
.hero__kicker { margin: 0; font-weight: 700; color: var(--ochre-ink); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.hero__text h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); max-width: 18ch; letter-spacing: -0.02em; }
.hero__steps { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; padding: 0; margin: 1rem 0; font-weight: 600; color: var(--estuary); }
.hero__steps li { display: flex; align-items: center; gap: 0.45rem; }
.hero__steps span { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 10px; background: var(--estuary-soft); }
.hero__steps svg { width: 22px; height: 22px; }
.hero-art svg { display: block; width: 100%; height: auto; max-width: 30rem; margin-left: auto; filter: drop-shadow(0 12px 24px rgba(20,66,92,.14)); }
@media (min-width: 52rem) { .hero { grid-template-columns: 1.45fr 1fr; } }
@media (max-width: 51.99rem) { .hero-art svg { max-width: 22rem; margin: 0 auto; } }
.between { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 0.4rem 1.2rem 1rem; margin-top: 2.4rem; }
.between__grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.between__grid > div { border-radius: var(--radius); padding: 0.2rem 1rem 0.6rem; background: var(--sky); }
.between__grid h3 { margin-top: 0.7rem; }
.between__us { background: var(--estuary) !important; color: #fff; }
.between__us h3 { color: #fff; }

/* Hubs */
.hub-head { display: flex; align-items: center; gap: 0.8rem; }
.hub-head__icon { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 14px; background: var(--estuary-soft); color: var(--estuary); flex: none; }
.hub-head__icon svg { width: 30px; height: 30px; }
.hub-intro { font-size: 1.05rem; }

/* Cards */
.cards { list-style: none; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); padding: 0; margin: 0.8rem 0; }
.card__link { display: flex; flex-direction: column; gap: 0.3rem; height: 100%; padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card__link:hover { border-color: #b9c8cf; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20,66,92,.10); }
.card__icon { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--estuary-soft); color: var(--estuary); margin-bottom: .25rem; }
.card__icon svg { width: 24px; height: 24px; }
.card__name { font-weight: 700; color: var(--estuary); font-size: 1.05rem; }
.card__text { font-size: 0.92rem; color: var(--slate); }
.card__draft { align-self: flex-start; font-size: 0.75rem; font-weight: 700; color: var(--slate); background: var(--sky); border: 1px solid var(--line); border-radius: 999px; padding: 0 0.5rem; }
.card__go { margin-top: auto; padding-top: .45rem; font-size: .88rem; font-weight: 700; color: var(--estuary-2); }
.card__arrow { display: inline-block; transition: transform .2s ease; }
.card__link:hover .card__arrow { transform: translateX(3px); }
.card--photo .card__link { padding: 0 0 1rem; overflow: hidden; }
.card--photo .card__name, .card--photo .card__text, .card--photo .card__go { padding: 0 1.1rem; }
.card__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: .55rem; }
.btn { display: inline-block; font: inherit; font-weight: 700; background: var(--estuary); color: #fff; border: 2px solid var(--estuary); border-radius: 999px; padding: 0.5rem 1.2rem; text-decoration: none; cursor: pointer; margin: 0.15rem 0.2rem 0.15rem 0; }
.btn:hover { background: var(--estuary-2); border-color: var(--estuary-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--estuary); }
.btn--ghost:hover { background: var(--estuary-soft); color: var(--estuary); }
.btn:disabled { opacity: .6; cursor: wait; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--estuary-2); text-decoration: underline; cursor: pointer; }
.tool-card { background: var(--estuary-soft); border-radius: var(--radius); padding: 0.4rem 1.1rem 0.8rem; margin: 1.2rem 0; max-width: 44rem; }
.host-link { font-weight: 700; }
.shop-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.3rem 0; }
.shop-link { font-size: 0.9rem; }

/* Tools */
.tool { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--estuary); border-radius: calc(var(--radius) + 4px); padding: 0.4rem 1.2rem 1rem; margin: 1.2rem 0 1.6rem; }
.tool__title { margin-top: 0.8rem; }
.tool__static h3 { margin-top: 0.6rem; }
.group { border: 0; padding: 0; margin: 0 0 1.2rem; }
.group > legend { font-weight: 700; color: var(--estuary); font-size: 1.15rem; margin-bottom: 0.4rem; padding: 0; font-family: var(--serif); }
.field-row { display: grid; gap: 0.2rem 1rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); margin-bottom: 0.8rem; align-items: end; }
.field { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.7rem; max-width: 36rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea, .field select { font: inherit; padding: 0.5rem 0.7rem; border: 1.5px solid #9fb0b9; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.field--error input { border-color: var(--danger); }
.field__hint { font-size: 0.86rem; color: var(--slate); margin: 0; }
.field__error { color: var(--danger); font-weight: 700; font-size: 0.9rem; margin: 0; }
.ticks, .choice { border: 0; padding: 0; margin: 0 0 0.8rem; }
.ticks legend, .choice legend { font-weight: 600; padding: 0; margin-bottom: 0.3rem; }
.tick { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.2rem 0; cursor: pointer; }
.tick input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; accent-color: var(--estuary); flex: none; }
.tick__hint { color: var(--slate); font-size: 0.9rem; }
.choice { display: flex; flex-wrap: wrap; gap: 0.1rem 1.2rem; }
.choice legend { width: 100%; }
.checker-link { background: var(--estuary-soft); border-radius: var(--radius); padding: 0.6rem 0.9rem; max-width: 40rem; }
.results { border-top: 2px solid var(--line); margin-top: 0.6rem; padding-top: 0.4rem; }
.verdict { background: var(--sky); border-radius: var(--radius); padding: 0.6rem 1rem; max-width: 44rem; }
.measures { list-style: none; padding: 0; margin: 0.6rem 0; display: grid; gap: 0.6rem; }
.measure { display: flex; flex-direction: column; gap: 0.2rem; background: var(--sky); border-left: 5px solid var(--ochre); border-radius: 8px; padding: 0.6rem 0.9rem; max-width: 46rem; }
.measure__qty { color: var(--ochre-ink); }
.measure__why { font-size: 0.95rem; }
.measure__tip { font-size: 0.9rem; color: var(--slate); }
.measure__link { font-size: 0.92rem; font-weight: 600; }
.plan-form { margin-top: 1.4rem; border-top: 2px solid var(--line); }
.plan-card { border: 2px solid var(--estuary); border-radius: var(--radius); padding: 0.4rem 1.1rem 0.8rem; margin: 1.4rem 0; background: #fff; }
.plan-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; }
.plan-card__body { display: grid; gap: 0 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.plan-card__section ul { padding-left: 1.1rem; margin: 0; }
.plan-card__check { list-style: "☐  "; }
.plan-card__note { font-size: 0.88rem; color: var(--slate); }
.example { background: var(--sky); border-radius: var(--radius); padding: 0.2rem 1rem 0.6rem; }
.assumptions { margin: 1rem 0; font-size: 0.92rem; }
.sources ul { font-size: 0.92rem; }

/* Contact */
.contact-email { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.contact-email svg { width: 26px; height: 26px; color: var(--estuary); flex: none; }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 1rem 1.2rem; max-width: 38rem; }
.contact-form .cf-turnstile { margin: 0.8rem 0; min-height: 65px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: var(--danger-soft); border-left: 5px solid var(--danger); border-radius: 8px; padding: 0.6rem 0.9rem; max-width: 38rem; }
.operator { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.2rem 1.1rem 0.6rem; max-width: 44rem; margin-top: 1.5rem; }

/* Footer, cookie banner */
.site-footer { background: var(--estuary); color: #e4edf2; padding: 1.8rem 0 2.2rem; }
.site-footer a { color: #fff; }
.site-footer .small { color: #c7d6de; }
.site-footer__brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0; }
.site-footer__brand svg { width: 34px; height: 34px; }
.site-footer__promise { font-weight: 600; }
.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding: 0; }
.site-footer__email { font-weight: 600; }
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--paper); border-top: 3px solid var(--estuary); box-shadow: 0 -4px 16px rgba(0,0,0,.08); z-index: 20; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { padding-top: 0.6rem; padding-bottom: 0.8rem; }
.cookie-banner__title { margin: 0.2rem 0; font-size: 1.1rem; }
.cookie-banner__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
/* Accept and Reject: same size, colour and weight (brief §4.4). */
.cookie-choice { font: inherit; font-weight: 700; border: 2px solid var(--estuary); background: var(--estuary); color: #fff; border-radius: 999px; padding: 0.4rem 1rem; min-width: 10rem; cursor: pointer; }

/* Print: the flood plan prints on A4. The plan card's button prints just the card. */
@page { size: A4; margin: 14mm; }
@media print {
  html { font-size: 11pt; }
  body { background: #fff; color: #000; }
  .site-header, .site-nav, .site-footer, .cookie-banner, .no-print, .skip, .crumbs, .ad-banner, .shop-row, .text-size, .stub-banner { display: none !important; }
  a { color: #000; text-decoration: none; }
  .tool, .plan-card { box-shadow: none; border-color: #000; break-inside: avoid; }
  .callout, .measure { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  body.printing-card * { visibility: hidden; }
  body.printing-card .plan-card, body.printing-card .plan-card * { visibility: visible; }
  body.printing-card .plan-card { position: absolute; left: 0; top: 0; width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
