/* AMERG website – main stylesheet.
   Look approved by Alix, 17 Oct 2026: the old site's look (navy hero, coloured panels)
   with the new layout, Atkinson Hyperlegible font and stronger contrast. */

@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #1F3A5F; --navy-dark: #152A45; --blue: #4A80C2; --ink: #17202B; --muted: #3D4A5A; --muted2: #475569;
  --yellow: #FFDE5A; --green-brand: #99C270; --red: #C42A0E; --green: #15803D; --line: #E2E8F0;
  --cream: #FFFBEB; --radius: 18px; --shadow: 0 4px 12px rgba(15,30,50,.06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 18px;
  line-height: 1.5; color: var(--ink); background: linear-gradient(180deg, var(--cream) 0, #fff 900px) no-repeat, #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: #0F2440; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Status banner ---------- */
.status { color: #fff; background: var(--green); }
.status--warning { background: var(--yellow); color: var(--ink); }
.status--emergency { background: var(--red); }
.status__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 10px; padding-bottom: 10px; text-align: center; }
.status__label { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; flex-wrap: wrap; justify-content: center; }
.status__dot { width: 14px; height: 14px; border-radius: 50%; background: #86EFAC; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.status--warning .status__dot { background: #B45309; }
.status--emergency .status__dot { background: #fff; }
.status__live { font-size: 13px; letter-spacing: .08em; border: 1px solid currentColor; border-radius: 4px; padding: 1px 6px; animation: livePulse 1.8s ease-in-out infinite; }
.status__message { font-size: 17px; background: rgba(0,0,0,.14); border-radius: 8px; padding: 8px 12px; max-width: 900px; width: 100%; }
.status__time { font-size: 14px; opacity: .9; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: #fff; box-shadow: 0 4px 12px rgba(15,30,50,.25); position: relative; z-index: 20; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 60px; height: 60px; border-radius: 50%; background: #fff; padding: 3px; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-weight: 700; font-size: 24px; line-height: 1.15; }
.brand__sub { font-size: 16px; color: #D6E2F0; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a { color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.main-nav a:hover { background: rgba(255,255,255,.10); color: #fff; }
.main-nav a[aria-current="page"] { background: rgba(255,255,255,.16); font-weight: 700; }
.menu-btn { display: none; font: inherit; font-weight: 700; color: #fff; background: rgba(255,255,255,.14); border: 0; border-radius: 10px;
  padding: 10px 14px; min-height: 48px; align-items: center; gap: 8px; cursor: pointer; }
@media (max-width: 900px) {
  .js .menu-btn { display: inline-flex; }
  .js .main-nav { display: none; width: 100%; flex-direction: column; padding-bottom: 8px; }
  .js .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; font-size: 19px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-header__inner { flex-wrap: wrap; }
  .brand { gap: 10px; flex: 1 1 auto; min-width: 0; }
  .brand img { width: 48px; height: 48px; }
  .brand__name { font-size: 19px; }
  .brand__sub { font-size: 13px; }
  .menu-btn { padding: 10px 12px; }
}

/* ---------- Layout ---------- */
.main { padding-top: 32px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 36px; }
.page-title { margin: 0; font-size: 44px; color: var(--navy); }
.page-intro { font-size: 20px; color: var(--muted); max-width: 760px; margin: 8px 0 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .main { padding-top: 16px; gap: 24px; }
  .page-title { font-size: 34px; }
}

/* ---------- Hero ---------- */
.hero { border-radius: 28px; overflow: hidden; color: #fff; background-color: var(--navy);
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px), linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--blue) 100%);
  background-size: 20px 20px, 100% 100%; box-shadow: 0 24px 48px rgba(15,30,50,.28); }
.hero__inner { padding: 56px 32px 48px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.hero h1 { margin: 0; font-size: 60px; line-height: 1.05; letter-spacing: -.01em; }
.hero h1 span { color: var(--yellow); }
.hero__tag { margin: 0; font-size: 23px; color: #DCE8F7; }
.hero__pill { margin: 0; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; background: rgba(255,255,255,.12);
  border-radius: 999px; padding: 8px 18px; font-size: 16px; color: #DCE8F7; }
.hero__pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); display: inline-block; }
.hero__ctas, .hero__numbers { width: 100%; max-width: 920px; display: grid; gap: 16px; text-align: left; }
.hero__ctas { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 18px; }
.hero__numbers { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cta { display: flex; align-items: center; gap: 16px; text-decoration: none; border-radius: 18px; padding: 22px; }
.cta__icon { border-radius: 12px; padding: 12px; display: flex; }
.cta__text { display: flex; flex-direction: column; }
.cta__title { font-weight: 700; font-size: 20px; line-height: 1.2; }
.cta__sub { font-size: 15px; }
.cta--hub { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 24px rgba(255,222,90,.25); }
.cta--hub:hover { color: var(--ink); }
.cta--hub .cta__icon { background: rgba(23,32,43,.10); }
.cta--hub .cta__sub { color: #3A3220; }
.cta--report { background: rgba(255,255,255,.06); color: #fff; border: 2px solid #fff; }
.cta--report:hover { color: #fff; }
.cta--report .cta__icon { background: rgba(255,255,255,.16); }
.cta--report .cta__sub { color: #DCE8F7; }
.cta--local { background: var(--green); color: #fff; border: 2px solid #4ADE80; box-shadow: 0 10px 24px rgba(21,128,61,.3); }
.cta--local:hover { color: #fff; }
.cta--local .cta__icon { background: var(--yellow); color: #14532D; }
.cta--local .cta__kicker { font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #DCFCE7; }
.cta--local .cta__title { font-size: 26px; }
.num { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); color: #fff;
  text-decoration: none; border-radius: 14px; padding: 14px 18px; }
.num:hover { color: #fff; }
.num__icon { background: var(--navy); border-radius: 10px; padding: 8px; display: flex; }
.num__text { display: flex; flex-direction: column; }
.num__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #DCE8F7; }
.num__value { font-size: 28px; font-weight: 700; line-height: 1.1; }
.num--999 { background: var(--red); box-shadow: 0 10px 24px rgba(196,42,14,.3); }
.num--999 .num__icon { background: rgba(255,255,255,.2); }
.num--999 .num__label { color: #FFE4DE; }
.num--101 .num__icon { background: var(--green-brand); color: var(--ink); }
@media (max-width: 600px) {
  .hero { border-radius: 22px; }
  .hero__inner { padding: 28px 16px 20px; gap: 12px; }
  .hero h1 { font-size: 34px; line-height: 1.08; }
  .hero__tag { font-size: 17px; }
  .hero__pill { border-radius: 16px; font-size: 15px; }
  .cta { padding: 14px; }
  .cta--local .cta__title { font-size: 22px; }
  .hero__numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .num { flex-direction: column; gap: 2px; padding: 10px 4px; text-align: center; }
  .num__icon { display: none; }
  .num__text { align-items: center; }
  .num__label { font-size: 11px; letter-spacing: .02em; }
  .num__value { font-size: 26px; }
}

/* ---------- Weather ---------- */
.wx-clear { background: #ECFDF5; border: 2px solid #10B981; border-radius: 14px; padding: 12px 22px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px 16px; }
.wx-clear__text { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; color: #064E3B; }
.wx-clear__icon { background: #D1FAE5; color: #047857; border-radius: 50%; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.wx-clear a { color: #047857; font-weight: 700; }
.wx-clear--unknown { background: #F8FAFC; border-color: #94A3B8; }
.wx-clear--unknown .wx-clear__text { color: var(--ink); }
.wx-clear--unknown .wx-clear__icon { background: #E2E8F0; color: var(--ink); }
.wx-panel { background: #fff; border: 2px solid var(--red); border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 6px rgba(196,42,14,.10); }
.wx-panel__head { background: #FEF2F2; border-bottom: 1px solid #FECACA; padding: 16px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wx-panel__head h2 { margin: 0; font-size: 22px; color: #7F1D1D; }
.wx-panel__note { margin-left: auto; font-size: 14px; color: #7F1D1D; }
.wx-panel__grid { padding: 22px; background: #F8FAFC; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.wx-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; border-top: 6px solid #94A3B8; }
.wx-card--yellow { border-top-color: #FACC15; }
.wx-card--amber { border-top-color: #F59E0B; }
.wx-card--red { border-top-color: #DC2626; }
.wx-card h3 { font-size: 19px; }
.wx-card__time { display: inline-block; background: #F1F5F9; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 14px; font-weight: 700; color: #334155; margin-bottom: 8px; }
.wx-card__areas { font-size: 14px; color: var(--muted2); margin-bottom: 6px; }
.wx-card__text { color: var(--muted2); font-size: 16px; }

/* ---------- Coloured panels ---------- */
.panel { border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.panel--amber { background: linear-gradient(135deg, #FFFBEB 0%, #FFF7ED 100%); border: 2px solid var(--yellow); box-shadow: 0 6px 16px rgba(120,80,0,.08); }
.panel--navy { background: linear-gradient(135deg, #F8FAFC 0%, #fff 100%); border: 2px solid rgba(31,58,95,.22); box-shadow: 0 6px 16px rgba(15,30,50,.06); }
.panel--green { background: linear-gradient(135deg, #ECFDF5 0%, #F0FDFA 100%); border: 2px solid var(--green-brand); box-shadow: 0 6px 16px rgba(20,80,40,.08); }
.panel--plain { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.panel__title { display: flex; align-items: center; gap: 16px; }
.panel__title h2 { margin: 0; font-size: 32px; }
.panel__title p { margin: 2px 0 0; }
.panel--amber .panel__title p { color: #4B3A10; }
.panel--green .panel__title p { color: #1F4D3A; }
.panel--navy .panel__title h2 { color: var(--navy); }
.pill-link { font-weight: 700; background: rgba(255,255,255,.7); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.panel--amber .pill-link { color: #92400E; }
.panel--green .pill-link { color: #065F46; }
@media (max-width: 600px) {
  .panel { border-radius: 22px; padding: 18px; gap: 14px; }
  .panel__title h2 { font-size: 24px; }
}
.icon-badge { color: #fff; border-radius: 14px; padding: 14px; display: inline-flex; flex: none; }
.icon-badge--amber { background: linear-gradient(135deg, #F59E0B, #EA580C); box-shadow: 0 8px 18px rgba(234,88,12,.25); }
.icon-badge--navy { background: linear-gradient(135deg, var(--navy), var(--blue)); box-shadow: 0 8px 18px rgba(31,58,95,.25); }
.icon-badge--green { background: linear-gradient(135deg, #10B981, #0D9488); box-shadow: 0 8px 18px rgba(13,148,136,.25); }
.icon-badge--red { background: #FEE2E2; color: #B91C1C; border-radius: 50%; padding: 8px; }
@media (max-width: 600px) { .icon-badge { padding: 10px; border-radius: 12px; } }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body > :last-child { margin-bottom: 0; }
.card h3 { margin: 0; font-size: 22px; }
.card p { margin: 0; color: var(--muted); }
.card .push { margin-top: auto; }
.hub__band { padding: 14px 20px; display: flex; justify-content: flex-end; background: linear-gradient(135deg, #94A3B8, #64748B); }
.hub--open .hub__band { background: linear-gradient(135deg, #22C55E, #15803D); }
.hub--standby .hub__band { background: linear-gradient(135deg, #FBBF24, #D97706); }
.badge { background: #fff; color: #334155; font-weight: 700; font-size: 15px; padding: 4px 12px; border-radius: 999px; }
.hub--open .badge { color: #14532D; }
.hub--standby .badge { color: #78350F; }
.hub { border-color: #F5E2A8; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: #F1F5F9; border: 1px solid var(--line); color: #334155; font-size: 15px; padding: 3px 10px; border-radius: 6px; }
.tag--green { background: #DCFCE7; border-color: #BBF7D0; color: #14532D; }
.hub__meta { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.hub__meta svg { flex: none; margin-top: 3px; color: var(--navy); }
.tile { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  text-decoration: none; color: var(--ink); box-shadow: 0 2px 6px rgba(15,30,50,.05); }
.tile:hover { color: var(--ink); }
.tile__icon { color: #fff; border-radius: 12px; padding: 12px; display: flex; flex: none; }
.tile__text { display: flex; flex-direction: column; }
.tile__title { font-weight: 700; font-size: 19px; }
.tile__sub { color: var(--muted2); font-size: 16px; }
.c-blue { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.c-cyan { background: linear-gradient(135deg, #0891B2, #0E7490); }
.c-purple { background: linear-gradient(135deg, #A855F7, #9333EA); }
.c-pink { background: linear-gradient(135deg, #EC4899, #DB2777); }
.c-green { background: linear-gradient(135deg, #22C55E, #16A34A); }
.c-amber { background: linear-gradient(135deg, #F59E0B, #D97706); }
.news-card { border-color: #D1FAE5; }
.news-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.news-card__date { font-size: 15px; font-weight: 700; color: var(--muted2); }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }

/* ---------- Article ---------- */
.article { max-width: 780px; }
.article__img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin: 16px 0 24px; }
.article__date { color: var(--muted2); font-weight: 700; }
.prose { font-size: 19px; }
.prose h2 { font-size: 28px; margin-top: 1.2em; color: var(--navy); }
.prose h3 { font-size: 23px; margin-top: 1em; }
.prose li { margin-bottom: .4em; }

/* ---------- Buttons and forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; border: 0; border-radius: 12px;
  padding: 12px 20px; min-height: 48px; cursor: pointer; text-decoration: none; background: var(--navy); color: #fff; }
.btn:hover { background: #16304F; color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #F1F5F9; color: var(--navy); }
.btn--outline { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn--outline:hover { background: #F1F5F9; color: var(--navy); }
.btn--red { background: var(--red); }
.btn--red:hover { background: #A3230B; }
.btn--green { background: var(--green); }
.btn--green:hover { background: #126B33; }
.btn--small { min-height: 38px; padding: 6px 12px; font-size: 16px; border-radius: 8px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 700; }
.field .hint { font-size: 15px; color: var(--muted2); font-weight: 400; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date], input[type=number], input[type=url], select, textarea {
  font: inherit; width: 100%; padding: 12px 14px; border: 2px solid #CBD5E1; border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: 3px solid rgba(37,99,235,.25); }
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; background: #F8FAFC; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; font-weight: 400; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--red); }
.error-text { color: #B91C1C; font-weight: 700; font-size: 16px; }
.honey { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 14px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; }
.notice > :last-child { margin-bottom: 0; }
.notice--ok { background: #ECFDF5; border: 2px solid #10B981; color: #064E3B; }
.notice--error { background: #FEF2F2; border: 2px solid #F87171; color: #7F1D1D; }
.notice--info { background: #EFF6FF; border: 2px solid #93C5FD; color: #1E3A8A; }
.notice--warn { background: #FFFBEB; border: 2px solid var(--yellow); color: #4B3A10; }
.tabs { display: flex; gap: 6px; background: #F1F5F9; padding: 6px; border-radius: 14px; flex-wrap: wrap; }
.tabs a { flex: 1; text-align: center; padding: 12px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; color: var(--muted); min-width: 140px; }
.tabs a[aria-current="page"] { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* ---------- Contacts ---------- */
.contact { border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact h3 { margin: 0; font-size: 20px; }
.contact a { font-size: 28px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.contact p { margin: 0; }
.contact--primary { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; border: 0; }
.contact--primary a, .contact--primary a:hover { color: #fff; }
.contact--emergency { background: linear-gradient(135deg, #D9310F, var(--red)); color: #fff; border: 0; }
.contact--emergency a, .contact--emergency a:hover { color: #fff; }
.section-title { font-size: 26px; color: var(--navy); display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.freq { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.freq div { background: #fff; border-radius: 12px; padding: 14px; text-align: center; border: 1px solid var(--line); }
.freq strong { display: block; font-size: 24px; color: var(--navy); }

/* ---------- Lists ---------- */
.signals { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.signals li { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.signals .sig { min-width: 80px; text-align: center; font-weight: 700; background: var(--navy); color: #fff; border-radius: 8px; padding: 6px 8px; }
.signals .sig--red { background: var(--red); }
.signals .sig--white { background: #fff; color: var(--ink); border: 2px solid #94A3B8; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.steps div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.steps strong { display: inline-block; background: var(--yellow); color: var(--ink); border-radius: 6px; padding: 2px 8px; margin-bottom: 8px; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist label { display: flex; gap: 10px; align-items: center; }
.checklist input { width: 22px; height: 22px; accent-color: var(--navy); }
.doc-list { display: flex; flex-direction: column; gap: 14px; }
.doc { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.doc h3 { margin: 0 0 4px; font-size: 20px; }
.doc p { margin: 0 0 10px; color: var(--muted); }
.map { height: 460px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #E5E7EB; }
@media (max-width: 600px) { .map { height: 320px; } }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 400px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #D6E2F0; margin-top: 24px; font-size: 16px; }
.site-footer a { color: #FFDE5A; }
.site-footer h2 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.site-footer p { margin: 0 0 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer .muted { color: #B8C7DA; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.footer-offline { background: rgba(255,255,255,.06); border-radius: 14px; padding: 16px; }
.footer-directory { display: flex; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-directory img { background: #fff; border-radius: 10px; padding: 4px; }
.footer-directory p { margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-actions a { color: #D6E2F0; }

/* ---------- Subtle animations (agreed 17 Oct 2026) ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.fu { animation: fadeUp .7s cubic-bezier(.16,1,.3,1) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .3s; } .d4 { animation-delay: .4s; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.lift { transition: transform .2s ease, box-shadow .2s ease; }
.lift:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15,30,50,.18); }
@media (prefers-reduced-motion: reduce) {
  .fu, .status__live { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .lift, .lift:hover { transition: none; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; font-size: 12pt; }
  .site-header nav, .menu-btn, .footer-actions, .footer-directory, .skip, .no-print, .map { display: none !important; }
  .site-header, .site-footer, .hero, .status { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hero { box-shadow: none; }
  .js .reveal { opacity: 1; transform: none; }
  .lift:hover { transform: none; }
  a[href^="tel:"]::after { content: ""; }
  .card, .panel, .doc { break-inside: avoid; box-shadow: none; }
}

/* ---------- News articles: colour and coloured boxes (added 17 Oct 2026) ---------- */
/* Sub-headings in navy with a short red line underneath; bold words in navy. */
.prose h3 { color: var(--navy); }
.prose h3::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--red); }
.prose h4 { font-size: 20px; color: var(--navy); margin: 1em 0 .4em; }
.prose strong { color: var(--navy); }

/* Coloured boxes: pale fill, thick coloured edge on the left, dark text. */
.prose .callout { margin: 1.4em 0; padding: 18px 22px; border-left: 8px solid var(--navy); border-radius: 0 12px 12px 0;
  background: #EAF0F7; -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid; }
.prose .callout > :first-child { margin-top: 0; }
.prose .callout > :last-child { margin-bottom: 0; }
.prose .callout h3, .prose .callout h4 { margin-top: .2em; }
.prose .callout h3::after { display: none; }
.prose .callout ul, .prose .callout ol { padding-left: 1.3em; }
.prose .callout--red { border-left-color: var(--red); background: #FDEEEA; }
.prose .callout--red h3, .prose .callout--red h4 { color: #A3230B; }
.prose .callout--green { border-left-color: var(--green); background: #EAF6EE; }
.prose .callout--green h3, .prose .callout--green h4 { color: #166534; }
.prose .callout--navy { border-left-color: var(--navy); background: #EAF0F7; }
.prose .callout--navy h3, .prose .callout--navy h4 { color: var(--navy); }
.prose .callout--amber { border-left-color: #B45309; background: #FFF6DD; }
.prose .callout--amber h3, .prose .callout--amber h4 { color: #92400E; }
@media (max-width: 600px) {
  .prose .callout { padding: 14px 16px; border-left-width: 6px; }
}


/* ---------- Offline tip, banner tip and storm cupboard (added 17 Oct 2026, update 2) ---------- */
.notice--tip { background: #EFF6FF; border: 2px solid var(--navy); color: var(--ink); margin: 0 0 24px; }
.notice--tip > svg { flex: none; color: var(--navy); margin-top: 2px; }
.notice--tip p { margin: 0 0 .5em; }
.notice--tip p:last-child { margin-bottom: 0; }
.status__tip { font-size: 16px; font-weight: 700; }
.status__tip a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cupboard { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cupboard h3 { margin: 0 0 .5em; font-size: 22px; }
.checklist { list-style: none; margin: 0 0 1em; padding: 0; }
.checklist li { position: relative; padding: 8px 0 8px 36px; border-bottom: 1px solid rgba(0,0,0,.08); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border: 2px solid #B45309; border-radius: 5px; background: #fff; }
@media (max-width: 760px) { .cupboard { grid-template-columns: 1fr; } }
@media print {
  .cupboard { grid-template-columns: 1fr 1fr; }
  .checklist li { break-inside: avoid; }
}

/* Volunteer's private job page (job.php, 18 Oct 2026) */
.job-page { padding-top: 24px; padding-bottom: 48px; }
.job-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0; font-size: 18px; }
.job-card dt { font-weight: 700; color: var(--muted); }
.job-card dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .job-card dl { grid-template-columns: 1fr; } .job-card dd { margin-bottom: 8px; } }

/* "Which form do I need?" (18 Oct 2026) */
.which-form { margin: 18px 0 8px; }
.which-form__title { font-weight: 700; margin: 0 0 8px; color: var(--navy); }
.which-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.which-form__item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; }
.which-form__item strong { color: var(--navy); text-decoration: underline; }
.which-form__item span { font-size: 15px; color: var(--muted); }
.which-form__item:hover, .which-form__item:focus-visible { border-color: var(--navy); }
.which-form__item[aria-current="page"] { border-color: var(--navy); background: #EEF4FB; }
.which-form__item[aria-current="page"] strong { text-decoration: none; }
.which-form__item[aria-current="page"] strong::after { content: " – you are here"; font-weight: 400; color: var(--muted); }

/* ---------- Maps on records, the job page and the Admin map (18 Oct 2026) ---------- */
.mini-map-wrap { margin: 4px 0 6px; max-width: 560px; }
.mini-map { height: 220px; border: 1px solid var(--line); border-radius: 12px; background: #EEF2F6; z-index: 0; }
.mini-map--editing { height: 340px; outline: 3px solid var(--yellow); cursor: crosshair; }
.map-note { margin: 6px 0 0; font-size: 15px; }
.pin-actions { margin-top: 6px; }
.pin-form { margin-top: 8px; }
.pin-move[hidden], .pin-form[hidden], .big-map__nojs[hidden] { display: none !important; }
.map-pin { background: none; border: 0; }
.map-pin span { display: block; width: 22px; height: 22px; margin: 0 2px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--navy); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.map-pin--edit span { background: var(--yellow); border-color: var(--navy); }
.map-pin--request span { background: #D97706; }
.map-pin--report span { background: var(--red); }
.map-pin--register span { background: #7C3AED; }
.map-pin--exact span { border-width: 4px; }
.big-map { height: 70vh; min-height: 380px; border: 1px solid var(--line); border-radius: 12px; background: #EEF2F6; z-index: 0; }
.big-map__nojs { padding: 16px; }
.map-filters { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.map-filters legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
.map-key { display: inline-block; }
.map-key .map-key__dot { vertical-align: -1px; margin: 0 4px 0 2px; }
.map-key__dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #94A3B8; display: inline-block; }
.map-key--request .map-key__dot { background: #D97706; }
.map-key--report .map-key__dot { background: var(--red); }
.map-key--register .map-key__dot { background: #7C3AED; }
.leaflet-container .leaflet-popup-content { font-family: inherit; font-size: 16px; line-height: 1.4; }
.leaflet-container { font-family: inherit; }
.leaflet-popup-content .map-open { display: inline-block; margin-top: 6px; font-weight: 700; }
@media print { .mini-map-wrap, .big-map, .map-filters { display: none !important; } }
/* Map pins carry a letter as well as a colour (H = help request, R = issue report, N = vulnerable neighbour) – 18 Oct 2026 */
.map-pin span b { display: block; transform: rotate(45deg); color: #fff; font: 700 11px/16px "Atkinson Hyperlegible", system-ui, sans-serif; text-align: center; }
.map-key .map-key__dot { width: 20px; height: 20px; color: #fff; font-size: 12px; font-weight: 700; line-height: 16px; text-align: center; vertical-align: -4px; }
.map-offline { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.map-key .map-key__dot { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; position: relative; top: -2px; line-height: 1; }
