/* ==========================================================================
   Tāmaki Makaurau Service Hub — design system & layout
   Palette drawn from the harbour (waitematā teal, deep ink), the whenua
   (kōwhai gold) and pōhutukawa (crimson). Light = harbour daylight,
   Dark = harbour at night.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --ink: #10262d;
  --ink-2: #35525c;
  --ink-3: #5d7983;
  --paper: #f5faf9;
  --paper-2: #ffffff;
  --paper-3: #e9f2f0;
  --line: #d2e2df;
  --line-2: #bcd6d2;

  --teal: #14606b;
  --teal-deep: #0b3a44;
  --teal-bright: #1f8a96;
  --teal-soft: #dcf0ee;
  --teal-softer: #edf6f5;

  --crimson: #a92339;
  --crimson-deep: #8b1b2e;
  --crimson-soft: #fae8eb;

  --gold: #b97f24;
  --gold-soft: #f8efdd;

  --green: #1e6b4f;
  --green-soft: #e2f2ea;
  --amber: #9a5b00;
  --amber-soft: #fdf0da;
  --red: #ab1f2a;
  --red-soft: #fbe6e7;
  --info: #14606b;
  --info-soft: #e0f0f2;

  --focus: #0b7fa8;

  --shadow-1: 0 1px 2px rgba(16, 38, 45, 0.06), 0 2px 8px rgba(16, 38, 45, 0.05);
  --shadow-2: 0 4px 14px rgba(16, 38, 45, 0.09), 0 12px 36px rgba(16, 38, 45, 0.10);
  --shadow-3: 0 12px 28px rgba(16, 38, 45, 0.16), 0 28px 70px rgba(16, 38, 45, 0.18);

  --hero-sky-top: #cfe9ea;
  --hero-sky-mid: #a5d5d6;
  --hero-water: #6fb5b8;
  --hero-haze: #eaf5f3;

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --r-xl: 30px;

  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 72px;
  --text-scale: 1;
}

[data-theme='dark'] {
  --ink: #e3efee;
  --ink-2: #b3cdd0;
  --ink-3: #82a5ab;
  --paper: #071519;
  --paper-2: #0c2229;
  --paper-3: #102c33;
  --line: #1d414c;
  --line-2: #2a5560;

  --teal: #63cbd3;
  --teal-deep: #0a2a31;
  --teal-bright: #8adde2;
  --teal-soft: #10333c;
  --teal-softer: #0e2a31;

  --crimson: #ef6c80;
  --crimson-deep: #d85066;
  --crimson-soft: #38161d;

  --gold: #dcaf62;
  --gold-soft: #33250f;

  --green: #6fd3a5;
  --green-soft: #0d2b21;
  --amber: #ecc078;
  --amber-soft: #33230c;
  --red: #f2939b;
  --red-soft: #3a1418;
  --info: #7ed3dd;
  --info-soft: #0d2b31;

  --focus: #7ddcf0;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 16px 40px rgba(0, 0, 0, 0.55);

  --hero-sky-top: #0b2431;
  --hero-sky-mid: #123543;
  --hero-water: #0a2c33;
  --hero-haze: #0e3641;

  color-scheme: dark;
}

/* ---- Reset & base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: calc(16px * var(--text-scale));
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 560; line-height: 1.12; letter-spacing: -0.012em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-variation-settings: 'opsz' 100; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-variation-settings: 'opsz' 72; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); }
p { margin: 0; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-bright); }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
::selection { background: var(--teal); color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--crimson); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 44px); }
.mono { font-family: var(--font-mono); }

/* ---- Icons ---------------------------------------------------------------- */
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--fill { fill: currentColor; stroke: none; }

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--paper-2);
  --btn-ink: var(--ink);
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  background: var(--btn-bg); color: var(--btn-ink);
  border: 1.5px solid var(--line-2); border-radius: 999px;
  padding: 11px 22px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  position: relative;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); border-color: var(--teal); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn--primary { --btn-bg: var(--crimson); --btn-ink: #fff; border-color: transparent; }
.btn--primary:hover { background: var(--crimson-deep); box-shadow: 0 8px 22px rgba(169, 35, 57, 0.35); border-color: transparent; }
[data-theme='dark'] .btn--primary { --btn-ink: #2a0d14; }
[data-theme='dark'] .btn--primary:hover { --btn-ink: #2a0d14; }
.btn--teal { --btn-bg: var(--teal); --btn-ink: #fff; border-color: transparent; }
.btn--teal:hover { background: var(--teal-deep); }
[data-theme='dark'] .btn--teal { --btn-ink: #06272c; }
.btn--ghost { background: transparent; border-color: var(--line-2); border-color: color-mix(in srgb, var(--ink) 26%, transparent); }
.btn--ghost:hover { border-color: var(--teal); background: var(--teal-softer); }
.btn--quiet { background: transparent; border-color: transparent; color: var(--teal); padding: 8px 12px; }
.btn--quiet:hover { background: var(--teal-soft); border-color: transparent; transform: none; box-shadow: none; }
.btn--sm { padding: 7px 15px; font-size: 0.86rem; }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid transparent;
  background: transparent; cursor: pointer; color: inherit;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn-icon:hover { background: var(--teal-soft); border-color: var(--line); }
.btn-icon:active { transform: scale(0.94); }

/* ---- Utility bar ------------------------------------------------------------- */
.utilbar {
  background: var(--teal-deep); color: #d9efee; font-size: 0.83rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme='dark'] .utilbar { background: #0a2228; }
.utilbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 38px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.utilbar__kiaora { font-family: var(--font-display); font-style: italic; font-size: 0.95rem; letter-spacing: 0.01em; }
.utilbar__kiaora b { font-weight: 560; }
.utilbar__spacer { flex: 1; }
.utilbar a { color: #cfe9e8; text-decoration: none; }
.utilbar a:hover { color: #fff; text-decoration: underline; }
.utilbar__group { display: flex; align-items: center; gap: 4px; }
.utilbar .btn-icon { width: 30px; height: 30px; border-radius: 8px; color: #cfe9e8; }
.utilbar .btn-icon:hover { background: rgba(255, 255, 255, 0.12); }
.utilbar .btn-icon[aria-pressed='true'] { background: rgba(255, 255, 255, 0.16); color: #fff; }
.textsize-legend { display: inline-flex; align-items: baseline; gap: 4px; margin-right: 2px; }
.textsize-legend span { font-size: 0.68rem; opacity: 0.8; }

/* ---- Header / nav -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-1); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; padding: 6px 0; }
.brand:hover { color: inherit; }
.brand__mark { width: 46px; height: 46px; flex: none; transition: transform 0.35s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.04); }
.brand__name { display: flex; flex-direction: column; line-height: 1.14; }
.brand__name b { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; }
.brand__name span { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 9px 14px; border-radius: 10px; text-decoration: none;
  color: var(--ink-2); font-weight: 550; font-size: 0.94rem; position: relative;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.site-nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--crimson); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-nav a:hover { color: var(--ink); background: var(--teal-softer); }
.site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after, .site-nav a:hover::after { transform: scaleX(1); }
.site-nav .nav-cta {
  margin-left: 8px; padding: 9px 18px; border-radius: 999px; background: var(--crimson); color: #fff;
  font-weight: 640; border: none; transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--crimson-deep); color: #fff; transform: translateY(-1px); }
.nav-toggle { display: none; }

/* Mobile header: burger in, desktop nav out */
@media (max-width: 880px) {
  .site-header .wrap { min-height: 62px; gap: 10px; }
  :root { --header-h: 62px; }
  .nav-toggle {
    display: inline-flex; order: -1; margin-left: -6px;
  }
  .site-nav { display: none; }
  .brand__name b { font-size: 1.02rem; }
  .brand__name span { font-size: 0.6rem; }
  .brand__mark { width: 40px; height: 40px; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 120; pointer-events: none;
  visibility: hidden; transition: visibility 0s 0.3s;
}
.mobile-nav__scrim { position: absolute; inset: 0; background: rgba(7, 21, 25, 0.55); opacity: 0; transition: opacity 0.25s var(--ease); }
.mobile-nav__panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px);
  background: var(--paper-2); border-right: 1px solid var(--line);
  padding: 18px 22px 30px; overflow-y: auto;
  transform: translateX(-102%); transition: transform 0.3s var(--ease-out);
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-nav.is-open { pointer-events: auto; visibility: visible; transition-delay: 0s; }
.mobile-nav.is-open .mobile-nav__scrim { opacity: 1; }
.mobile-nav.is-open .mobile-nav__panel { transform: none; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mobile-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.mobile-nav a:hover { background: var(--teal-softer); }
.mobile-nav a .ic { color: var(--teal); }
.mobile-nav .mobile-cta { margin-top: 12px; justify-content: center; }

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--hero-sky-top), var(--hero-sky-mid) 58%, var(--hero-haze));
  isolation: isolate;
}
.hero__scene { position: absolute; inset: 0; z-index: -1; }
.hero__scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 84px); }
.hero__grid { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; align-items: end; max-width: 900px; }
.hero__kicker { display: flex; align-items: center; gap: 12px; color: var(--teal-deep); font-weight: 620; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.74rem; }
[data-theme='dark'] .hero__kicker { color: var(--teal-bright); }
.hero__kicker .rule { width: 44px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { color: var(--teal-deep); text-wrap: balance; margin: 14px 0 16px; }
[data-theme='dark'] .hero h1 { color: #eaf7f6; }
.hero h1 em { font-style: italic; color: var(--crimson); font-variation-settings: 'opsz' 110, 'SOFT' 40; }
[data-theme='dark'] .hero h1 em { color: var(--crimson); }
.hero__lede { color: var(--ink-2); font-size: clamp(1rem, 1.5vw, 1.17rem); max-width: 56ch; }
[data-theme='dark'] .hero__lede { color: var(--ink-2); }

/* Search — the service desk */
.desk { margin-top: clamp(26px, 3.4vw, 40px); }
.desk__label { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; color: var(--teal-deep); font-weight: 640; font-size: 1.02rem; }
[data-theme='dark'] .desk__label { color: var(--teal-bright); }
.desk__label .mono { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.combobox { position: relative; max-width: 720px; }
.combobox__field {
  display: flex; align-items: center; gap: 6px;
  background: var(--paper-2); border-radius: 18px; padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-2); border: 1.5px solid var(--line-2);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.combobox__field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent), var(--shadow-2); }
.combobox__field .ic { color: var(--teal); width: 1.4em; height: 1.4em; }
.combobox__input {
  flex: 1; border: none; outline: none; background: transparent;
  font: inherit; font-size: 1.06rem; padding: 10px 4px; color: var(--ink); min-width: 0;
}
.combobox__input::placeholder { color: var(--ink-3); }
.listbox {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 40;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-3); overflow: hidden; max-height: min(58vh, 470px); overflow-y: auto;
  opacity: 0; transform: translateY(-6px) scale(0.995); pointer-events: none; visibility: hidden;
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0s 0.16s;
}
.listbox.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s, 0s, 0s; }
.listbox__group { padding: 6px 0 2px; }
.listbox__group + .listbox__group { border-top: 1px solid var(--line); }
.listbox__cap {
  padding: 8px 18px 4px; font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700;
}
.listbox__opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 18px; border: none; background: transparent; cursor: pointer; font: inherit;
  transition: background-color 0.1s var(--ease);
}
.listbox__opt .ic { color: var(--teal); }
.listbox__opt b { font-weight: 600; }
.listbox__opt small { color: var(--ink-3); margin-left: auto; font-size: 0.76rem; white-space: nowrap; padding-left: 14px; }
.listbox__opt mark { background: color-mix(in srgb, var(--gold) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.listbox__opt:hover, .listbox__opt[aria-selected='true'] { background: var(--teal-softer); }
.listbox__empty { padding: 22px 18px; color: var(--ink-2); display: flex; gap: 12px; align-items: flex-start; }
.listbox__empty .ic { color: var(--gold); margin-top: 2px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.quick-actions .cap { width: 100%; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper-2);
  background: color-mix(in srgb, var(--paper-2) 88%, transparent);
  border: 1.5px solid var(--line-2); border-radius: 999px;
  padding: 8px 16px; font-size: 0.88rem; font-weight: 600; color: var(--ink-2);
  cursor: pointer; text-decoration: none;
  transition: all 0.18s var(--ease);
  backdrop-filter: blur(4px);
}
.chip .ic { width: 1.05em; height: 1.05em; color: var(--teal); }
.chip:hover { border-color: var(--teal); color: var(--ink); transform: translateY(-1.5px); box-shadow: var(--shadow-1); }
.chip--hot { border-color: color-mix(in srgb, var(--crimson) 46%, var(--line-2)); }
.chip--hot .ic { color: var(--crimson); }

.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: clamp(22px, 3vw, 34px); color: var(--teal-deep); font-size: 0.85rem; }
[data-theme='dark'] .hero__meta { color: var(--ink-2); }
.hero__meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; }

/* ---- Sections ------------------------------------------------------------------ */
.section { padding: clamp(52px, 7vw, 96px) 0; }
.section--tint { background: var(--paper-3); }
[data-theme='dark'] .section--tint { background: #0a1e24; }
.section--tight { padding: clamp(36px, 4.6vw, 58px) 0; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(26px, 3.6vw, 44px); }
.sec-head--row { grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
@media (max-width: 700px) { .sec-head--row { grid-template-columns: 1fr; } }
.sec-head .kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--crimson); }
.sec-head .kicker .idx { font-family: var(--font-mono); color: var(--ink-3); letter-spacing: 0.05em; }
.sec-head .reo { font-family: var(--font-display); font-style: italic; font-size: 1.06rem; color: var(--teal); font-weight: 480; }
.sec-head h2 { max-width: 22ch; text-wrap: balance; }
.sec-head .lede { color: var(--ink-2); max-width: 62ch; font-size: 1.03rem; }

/* ---- Alerts strip ------------------------------------------------------------------ */
.alerts { display: grid; gap: 12px; }
.alert {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--info);
  border-radius: var(--r-m); padding: 15px 18px; cursor: pointer; width: 100%; text-align: left;
  font: inherit; color: inherit;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.alert:hover { transform: translateY(-1.5px); box-shadow: var(--shadow-1); }
.alert__sev {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 4px 12px;
  font-size: 0.7rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; flex-wrap: nowrap; white-space: nowrap;
}
.alert--severe { border-left-color: var(--red); }
.alert--severe .alert__sev { background: var(--red-soft); color: var(--red); }
.alert--watch { border-left-color: var(--amber); }
.alert--watch .alert__sev { background: var(--amber-soft); color: var(--amber); }
.alert--info { border-left-color: var(--info); }
.alert--info .alert__sev { background: var(--info-soft); color: var(--info); }
.alert__body { display: grid; gap: 3px; min-width: 0; }
.alert__title { font-weight: 650; }
.alert__sub { color: var(--ink-2); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert__area { color: var(--ink-3); font-size: 0.76rem; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.alert__area .mono { font-size: 0.72rem; }
.alert .ic--chev { color: var(--ink-3); transition: transform 0.2s var(--ease); }
.alert:hover .ic--chev { transform: translateX(3px); color: var(--teal); }
@media (max-width: 640px) {
  .alert { grid-template-columns: 1fr; gap: 9px; }
  .alert .ic--chev { display: none; }
  .alert__area { white-space: normal; }
}

/* ---- My Auckland strip --------------------------------------------------------------- */
.myauck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1020px) { .myauck { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .myauck { grid-template-columns: 1fr; } }
.panel {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: clamp(20px, 2.6vw, 28px); box-shadow: var(--shadow-1);
}
.panel__head { display: flex; align-items: center; gap: 12px; }
.panel__head .ic { width: 1.5em; height: 1.5em; color: var(--teal); }
.panel__head h3 { font-size: 1.18rem; }
.panel__head .reo { display: block; font-family: var(--font-display); font-style: italic; font-weight: 460; color: var(--teal); font-size: 0.92rem; }
.panel__note { font-size: 0.8rem; color: var(--ink-3); }

/* Collection finder */
.addr-search { position: relative; }
.addr-field {
  display: flex; gap: 8px; align-items: center;
  border: 1.5px solid var(--line-2); border-radius: 14px; padding: 4px 4px 4px 14px;
  background: var(--paper); transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.addr-field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 14%, transparent); }
.addr-field input { flex: 1; border: none; background: transparent; outline: none; font: inherit; padding: 10px 2px; min-width: 0; color: var(--ink); }
.addr-list {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2);
  max-height: 240px; overflow-y: auto;
}
.addr-list button { display: block; width: 100%; text-align: left; padding: 10px 15px; border: none; background: none; font: inherit; cursor: pointer; }
.addr-list button strong { font-weight: 640; }
.addr-list button span { color: var(--ink-3); font-size: 0.82rem; display: block; }
.addr-list button:hover, .addr-list button[aria-selected='true'] { background: var(--teal-softer); }
.finder-result { border-top: 1px dashed var(--line-2); padding-top: 16px; margin-top: 4px; }
.finder-addr { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.finder-addr .ic { color: var(--green); }
.finder-addr b { font-weight: 650; }
.finder-addr small { display: block; color: var(--ink-3); }
.days-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 420px) { .days-grid { grid-template-columns: 1fr 1fr; } }
.day-tile {
  border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 13px; background: var(--paper);
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.day-tile b { font-size: 1.02rem; font-weight: 680; }
.day-tile small { color: var(--ink-3); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
.day-tile .next { margin-top: 4px; font-size: 0.82rem; color: var(--ink-2); }
.day-tile--rubbish { border-top: 3px solid var(--crimson); }
.day-tile--recycle { border-top: 3px solid var(--teal); }
.day-tile--food { border-top: 3px solid var(--green); }
.finder-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 13px; font-size: 0.82rem; color: var(--ink-2); background: var(--teal-softer); border-radius: 10px; padding: 10px 13px; }
.finder-note .ic { color: var(--teal); flex: none; margin-top: 1px; }
.skeleton { position: relative; overflow: hidden; border-radius: 10px; background: var(--paper-3); }
.skeleton::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--paper-2) 65%, transparent), transparent);
  animation: shimmer 1.15s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.skeleton-row { height: 52px; margin-bottom: 10px; }
.state-msg { display: flex; gap: 11px; padding: 16px 15px; border-radius: var(--r-m); font-size: 0.9rem; align-items: flex-start; }
.state-msg .ic { flex: none; margin-top: 2px; }
.state-msg--empty { background: var(--gold-soft); color: var(--ink-2); }
.state-msg--empty .ic { color: var(--gold); }
.state-msg--err { background: var(--red-soft); color: var(--red); }
.state-msg--err .ic { color: var(--red); }

/* Weather & tides */
.wx-now { display: flex; align-items: center; gap: 16px; }
.wx-now .ic { width: 52px; height: 52px; color: var(--teal); stroke-width: 1.3; }
.wx-temp { font-family: var(--font-display); font-size: 2.5rem; font-weight: 560; line-height: 1; }
.wx-meta { color: var(--ink-2); font-size: 0.85rem; display: grid; }
.wx-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wx-day { text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 9px 4px; background: var(--paper); }
.wx-day small { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--ink-3); }
.wx-day .ic { width: 1.55em; height: 1.55em; margin: 5px auto 3px; color: var(--teal); }
.wx-day b { font-size: 0.84rem; font-weight: 650; }
.wx-day span { font-size: 0.72rem; color: var(--ink-3); display: block; }
.tides { display: grid; gap: 8px; }
.tides h4 { font-family: var(--font-ui); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); font-weight: 720; }
.tide-row { display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 10px; align-items: center; font-size: 0.86rem; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.tide-row:last-child { border-bottom: none; padding-bottom: 0; }
.tide-row .mono { font-weight: 560; }
.tide-row .up::before, .tide-row .down::before { font-size: 0.72rem; margin-right: 3px; }
.tide-row .up::before { content: '▲'; color: var(--teal); }
.tide-row .down::before { content: '▼'; color: var(--teal); }
.wx-civic { display: flex; gap: 9px; align-items: flex-start; font-size: 0.82rem; color: var(--ink-2); background: var(--gold-soft); border-radius: 10px; padding: 10px 13px; }
.wx-civic .ic { color: var(--gold); flex: none; margin-top: 2px; }

/* ---- Services grid ----------------------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1080px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  display: flex; flex-direction: column; gap: 13px; text-align: left;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 22px; cursor: pointer; font: inherit; color: inherit; position: relative; overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.svc-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card:focus-visible { outline-offset: -3px; }
.svc-card__top { display: flex; align-items: center; gap: 13px; }
.svc-card__glyph {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--teal-soft); color: var(--teal); transition: transform 0.25s var(--ease);
}
.svc-card:hover .svc-card__glyph { transform: scale(1.08) rotate(-3deg); }
.svc-card__glyph .ic { width: 1.45em; height: 1.45em; }
.svc-card__reo { font-family: var(--font-display); font-style: italic; color: var(--teal); font-size: 0.88rem; font-weight: 480; }
.svc-card h3 { font-size: 1.14rem; }
.svc-card p { color: var(--ink-2); font-size: 0.88rem; }
.svc-card__links { margin-top: auto; display: flex; flex-direction: column; gap: 1px; border-top: 1px dashed var(--line); padding-top: 11px; }
.svc-card__links a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-decoration: none; color: var(--ink-2); font-size: 0.88rem; padding: 5px 2px; border-radius: 7px;
  transition: color 0.13s var(--ease), background-color 0.13s var(--ease), padding-left 0.13s var(--ease);
}
.svc-card__links a .ic { width: 0.95em; height: 0.95em; color: var(--ink-3); opacity: 0; transform: translateX(-4px); transition: all 0.15s var(--ease); }
.svc-card__links a:hover { color: var(--teal-deep); background: var(--teal-softer); padding-left: 8px; }
.svc-card__links a:hover .ic { opacity: 1; transform: none; color: var(--teal); }
.svc-card__links a[data-hot='true'] { color: var(--crimson); font-weight: 600; }
.svc-card__links a[data-hot='true'] .ic { color: var(--crimson); }

/* ---- Payments band ------------------------------------------------------------------ */
.pay-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--teal-deep); color: #eaf6f5; }
[data-theme='dark'] .pay-band { background: #0b2a31; }
.pay-band__art { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.pay-band .wrap-inner { position: relative; padding: clamp(30px, 4.4vw, 54px); display: grid; gap: clamp(24px, 3.6vw, 46px); grid-template-columns: minmax(260px, 1fr) 2fr; align-items: center; }
@media (max-width: 880px) { .pay-band .wrap-inner { grid-template-columns: 1fr; } }
.pay-band h2 { color: #fff; }
.pay-band .lede { color: #bfe0de; max-width: 40ch; }
.pay-band .sec-head .kicker { color: var(--gold); }
.pay-band .sec-head .reo { color: #9fd6d3; }
.pay-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
@media (max-width: 640px) { .pay-cards { grid-template-columns: 1fr; } }
.pay-card {
  display: flex; flex-direction: column; gap: 9px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-m); padding: 18px; color: inherit; cursor: pointer; font: inherit; text-align: left;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
  backdrop-filter: blur(3px);
}
.pay-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.32); }
.pay-card .ic { width: 1.6em; height: 1.6em; color: var(--gold); }
.pay-card b { font-size: 1.02rem; color: #fff; }
.pay-card small { color: #bfe0de; font-size: 0.8rem; line-height: 1.45; }
.pay-card .go { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; font-size: 0.85rem; color: #ffe9c2; margin-top: auto; padding-top: 6px; }
.pay-card .go .ic { width: 0.95em; height: 0.95em; color: #ffe9c2; }
.pay-band__aside { display: flex; flex-direction: column; gap: 13px; }
.pay-aside-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: #cde8e6; }
.pay-aside-item .ic { color: var(--gold); flex: none; margin-top: 2px; }
.pay-aside-item b { color: #fff; }
.pay-aside-item a { color: #ffe9c2; }

/* ---- News -------------------------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 18px; }
@media (max-width: 1020px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line); cursor: pointer; font: inherit; color: inherit;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.news-card:focus-visible { outline-offset: -3px; }
.news-card__art { aspect-ratio: 16 / 8.2; background: var(--teal-soft); position: relative; overflow: hidden; }
.news-card--lead .news-card__art { aspect-ratio: 16 / 9; }
.news-card__art svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.5s var(--ease); }
.news-card:hover .news-card__art svg { transform: scale(1.045); }
.news-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.72rem; }
.tag { border-radius: 999px; padding: 3px 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: var(--teal-soft); color: var(--teal); }
.tag--gold { background: var(--gold-soft); color: var(--gold); }
.tag--date { background: none; padding: 0; color: var(--ink-3); font-weight: 600; letter-spacing: 0.02em; text-transform: none; }
.news-card h3 { font-size: 1.05rem; }
.news-card--lead h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.news-card p { color: var(--ink-2); font-size: 0.88rem; }
.news-more { margin-top: 22px; display: flex; justify-content: center; }

/* ---- Have your say ------------------------------------------------------------------ */
.hys-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 780px) { .hys-grid { grid-template-columns: 1fr; } }
.hys-card {
  display: grid; gap: 13px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 22px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.hys-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.hys-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.hys-card__topic { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.hys-card__ref { font-size: 0.7rem; color: var(--ink-3); }
.hys-card h3 { font-size: 1.12rem; }
.hys-card p { color: var(--ink-2); font-size: 0.88rem; }
.hys-timer { display: grid; gap: 7px; }
.hys-timer__row { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ink-3); }
.hys-bar { height: 7px; border-radius: 99px; background: var(--paper-3); overflow: hidden; position: relative; }
.hys-bar__fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width 0.9s var(--ease-out); }
.hys-card__cta { display: flex; gap: 9px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.badge-days { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 650; color: var(--ink-2); }
.badge-days b { font-family: var(--font-mono); font-size: 0.95rem; color: var(--crimson); }
.badge-days--soon b { color: var(--red); }
.badge-days--closed { color: var(--ink-3); }
.badge-days--closed b { color: var(--ink-3); }

/* ---- Events ------------------------------------------------------------------------ */
.evt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .evt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .evt-grid { grid-template-columns: 1fr; } }
.evt-card { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: 15px 16px; transition: border-color 0.18s var(--ease), transform 0.18s var(--ease); }
.evt-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.evt-date { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-deep); line-height: 1.05; flex: none; }
[data-theme='dark'] .evt-date { color: var(--teal-bright); }
.evt-date b { font-size: 1.25rem; font-weight: 700; font-family: var(--font-ui); }
.evt-date small { font-size: 0.66rem; text-transform: uppercase; font-weight: 720; letter-spacing: 0.08em; }
.evt-card__body { display: grid; gap: 3px; min-width: 0; }
.evt-card__body b { font-weight: 640; font-size: 0.97rem; }
.evt-card__body span { font-size: 0.8rem; color: var(--ink-2); }
.evt-card__body small { font-size: 0.74rem; color: var(--ink-3); }
.evt-when { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); text-align: right; }
.evt-when b { display: block; color: var(--teal); font-size: 1rem; }

/* ---- Footer ------------------------------------------------------------------------ */
.site-footer { background: var(--teal-deep); color: #cfe7e5; margin-top: clamp(48px, 6vw, 84px); }
[data-theme='dark'] .site-footer { background: #061518; }
.footer-top { padding: clamp(40px, 5.6vw, 72px) 0 clamp(28px, 3vw, 40px); display: grid; gap: clamp(28px, 4vw, 60px); grid-template-columns: 1.3fr 2fr; }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand__name span { color: #9fcfcb; }
.footer-brand p { max-width: 38ch; font-size: 0.92rem; color: #b9dcd9; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact a { color: #fff; font-weight: 650; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; color: #fff; }
.footer-contact .fc-row { display: flex; gap: 11px; align-items: flex-start; font-size: 0.9rem; }
.footer-contact .ic { color: var(--gold); flex: none; margin-top: 3px; }
.footer-contact small { color: #9fcfcb; display: block; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 780px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.footer-cols h3 { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: #9fcfcb; margin-bottom: 12px; font-weight: 720; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-cols a { color: #d9efed; text-decoration: none; font-size: 0.88rem; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-news { display: flex; gap: 8px; max-width: 420px; margin-top: 14px; flex-wrap: wrap; }
.footer-news input {
  flex: 1 180px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08); color: #fff; padding: 10px 18px; font: inherit; outline: none;
}
.footer-news input::placeholder { color: #9fcfcb; }
.footer-news input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 175, 98, 0.25); }
.footer-news .btn { background: var(--gold); border-color: transparent; color: #241a08; font-weight: 680; }
.footer-news .btn:hover { background: #e6bd74; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.13); padding: 20px 0 26px; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; font-size: 0.78rem; color: #9fcfcb; }
.footer-bottom ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-bottom a { color: #cfe7e5; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---- Dialogs ------------------------------------------------------------------------ */
.dlg-overlay {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 18px;
  background: rgba(7, 21, 25, 0.52); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.18s var(--ease);
}
.dlg-overlay.is-open { opacity: 1; }
.dlg-overlay.is-closing { opacity: 0; }
.dlg {
  background: var(--paper-2); border-radius: var(--r-l); box-shadow: var(--shadow-3);
  width: min(680px, 96vw); max-height: min(86vh, 900px); display: flex; flex-direction: column;
  transform: translateY(14px) scale(0.985); transition: transform 0.22s var(--ease-out);
  overflow: hidden; border: 1px solid var(--line);
}
.dlg--lg { width: min(860px, 96vw); }
.dlg--sm { width: min(480px, 96vw); }
.dlg-overlay.is-open .dlg { transform: none; }
.dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px 0; }
.dlg__title { font-size: 1.3rem; padding: 2px 0; }
.dlg__body { padding: 14px 22px 24px; overflow-y: auto; }
.dlg__x { color: var(--ink-2); }

/* Forms */
.form-grid { display: grid; gap: 15px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
@media (max-width: 560px) { .form-row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 640; font-size: 0.9rem; }
.field .hint { color: var(--ink-3); font-size: 0.78rem; }
.input, .select, .textarea {
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: 11px 14px; font: inherit;
  background: var(--paper); color: var(--ink); outline: none; width: 100%;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 14%, transparent); }
.textarea { min-height: 96px; resize: vertical; }
.input--err, .input--err:focus { border-color: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 12%, transparent); }
.field-err { color: var(--red); font-size: 0.8rem; display: none; align-items: center; gap: 6px; }
.field-err.is-on { display: inline-flex; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 19px; height: 19px; accent-color: var(--crimson); margin-top: 2px; flex: none; }
.radio-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 560px) { .radio-cards { grid-template-columns: 1fr; } }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-card__box {
  display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r-m);
  padding: 13px 15px; cursor: pointer; transition: all 0.16s var(--ease); background: var(--paper);
}
.radio-card__box .ic { width: 1.5em; height: 1.5em; color: var(--ink-3); flex: none; transition: color 0.16s var(--ease); }
.radio-card__box b { font-weight: 640; display: block; }
.radio-card__box small { color: var(--ink-3); font-size: 0.78rem; }
.radio-card input:checked + .radio-card__box { border-color: var(--crimson); background: var(--crimson-soft); box-shadow: 0 0 0 1px var(--crimson); }
.radio-card input:checked + .radio-card__box .ic { color: var(--crimson); }
.radio-card input:focus-visible + .radio-card__box { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Wizard */
.steps { display: flex; gap: 4px; margin: 4px 0 18px; }
.step-dot { flex: 1; height: 5px; border-radius: 99px; background: var(--paper-3); overflow: hidden; position: relative; }
.step-dot__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--crimson); border-radius: 99px; transition: width 0.4s var(--ease-out); }
.step-dot.is-done .step-dot__fill { width: 100%; background: var(--green); }
.step-dot.is-current .step-dot__fill { width: 50%; }
.wizard-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.wizard-foot .spacer { flex: 1; }
.summary-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.summary-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 16px; font-size: 0.92rem; }
.summary-row:nth-child(odd) { background: var(--paper); }
.summary-row dt { color: var(--ink-3); }
.summary-row dd { margin: 0; font-weight: 620; text-align: right; }
.summary-row--total { background: var(--teal-soft); font-weight: 700; }

/* Success / confirmation */
.confirm-box { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 12px 0 6px; }
.confirm-box .ring {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); animation: pop-in 0.45s var(--ease-out);
}
.confirm-box .ring .ic { width: 40px; height: 40px; stroke-width: 2.2; }
@keyframes pop-in { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.ref-badge {
  font-family: var(--font-mono); font-size: 1.22rem; letter-spacing: 0.04em;
  border: 2px dashed var(--teal); border-radius: 12px; padding: 10px 22px; color: var(--teal-deep); background: var(--teal-softer);
}
[data-theme='dark'] .ref-badge { color: var(--teal-bright); }
.ref-badge small { display: block; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.confirm-box .actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }
.processing { display: grid; gap: 14px; justify-items: center; padding: 28px 0; text-align: center; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--teal-soft); border-top-color: var(--teal); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err-box { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 20px 0; color: var(--red); }
.err-box .ic { width: 44px; height: 44px; }

/* Photo attach */
.attach-zone {
  border: 2px dashed var(--line-2); border-radius: var(--r-m); padding: 22px 16px; text-align: center;
  display: grid; gap: 8px; justify-items: center; color: var(--ink-2); font-size: 0.88rem;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease); cursor: pointer;
}
.attach-zone:hover, .attach-zone.is-drag { border-color: var(--teal); background: var(--teal-softer); }
.attach-zone .ic { width: 1.9em; height: 1.9em; color: var(--teal); }
.attach-preview { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.attach-preview img { width: 58px; height: 58px; border-radius: 9px; object-fit: cover; }
.attach-preview small { color: var(--ink-3); font-size: 0.76rem; }
.attach-preview button { margin-left: auto; }

/* ---- Toasts ------------------------------------------------------------------------------ */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast {
  display: flex; gap: 10px; align-items: center; background: var(--teal-deep); color: #eef8f7;
  border-radius: 13px; padding: 12px 18px; font-size: 0.9rem; font-weight: 550; box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(10px); transition: all 0.28s var(--ease-out);
}
.toast.in { opacity: 1; transform: none; }
.toast .ic { color: #8fdcc0; }
.toast--err { background: #5c1418; }
.toast--err .ic { color: #ffb3ba; }

/* ---- Reveal animations --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .skeleton::after { animation: none; }
  .confirm-box .ring, .spinner { animation-duration: 1.6s; }
}

/* ---- Misc ----------------------------------------------------------------------------- */
.kv-note { font-size: 0.78rem; color: var(--ink-3); }
.divider { border: none; border-top: 1px dashed var(--line-2); margin: 18px 0; }
[data-reo-only='true'] .reo-pair .en { display: none; }
.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;
}

/* The footer top grid is set inline for desktop; collapse on small screens */
@media (max-width: 880px) {
  #footer-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .utilbar .wrap { gap: 8px 12px; }
  .utilbar__kiaora { font-size: 0.85rem; }
}
