/* KeepClear — Victorian council workforce clearances
   Palette: sun-washed cream, pale sky, light gum, warm sand, ochre/coral.
   Geometry is original survey / landform / river-path drawing — not cultural artwork.
   Background spots are original sparse pebble texture — not a painting or motif. */

:root {
  --charcoal: #2c241c;
  --ironbark: #4a3a2c;
  --ink: #2a231c;
  --ink-soft: #4a4036;
  --ochre: #a84820;
  --ochre-mid: #b84e22;
  --ochre-bright: #d9783a;
  --earth: #c45c3a;
  --earth-deep: #a84820;
  --sand: #f3e6d0;
  --sand-2: #e8d5b8;
  --gum: #e6f0e4;
  --gum-ink: #2f4a38;
  --paper: #fbf6ec;
  --cream: #fff9f0;
  --sky: #e8f2f8;
  --white: #fffefa;
  --muted: #5c5348;
  --muted-2: #7a7166;
  --line: rgba(42, 35, 28, 0.12);
  --line-2: rgba(42, 35, 28, 0.07);
  --alert: #a33a22;
  --alert-bg: #fbe8e0;
  --warn: #9a5a12;
  --warn-bg: #f8ecd4;
  --ok: #2f4a38;
  --ok-bg: #e2eedc;
  --shadow: 0 20px 48px rgba(42, 35, 28, 0.06);
  --pebbles: url("/img/pebbles.svg");
  --radius: 12px;
  --max: 1140px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
html { background: var(--paper); }
body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 9px 6px at 7% 11%, rgba(196, 106, 58, 0.12), transparent 70%),
    radial-gradient(ellipse 6px 8px at 19% 34%, rgba(176, 132, 88, 0.10), transparent 70%),
    radial-gradient(ellipse 11px 7px at 38% 8%, rgba(212, 154, 96, 0.11), transparent 70%),
    radial-gradient(ellipse 5px 7px at 61% 21%, rgba(188, 96, 72, 0.10), transparent 70%),
    radial-gradient(ellipse 8px 5px at 84% 14%, rgba(168, 140, 100, 0.12), transparent 70%),
    radial-gradient(ellipse 7px 9px at 93% 39%, rgba(200, 148, 92, 0.10), transparent 70%),
    radial-gradient(ellipse 10px 6px at 12% 58%, rgba(180, 108, 70, 0.10), transparent 70%),
    radial-gradient(ellipse 6px 5px at 47% 49%, rgba(216, 176, 128, 0.12), transparent 70%),
    radial-gradient(ellipse 8px 6px at 72% 63%, rgba(196, 120, 80, 0.10), transparent 70%),
    radial-gradient(ellipse 5px 8px at 28% 76%, rgba(172, 124, 84, 0.11), transparent 70%),
    radial-gradient(ellipse 9px 5px at 56% 88%, rgba(208, 160, 112, 0.10), transparent 70%),
    radial-gradient(ellipse 7px 6px at 88% 82%, rgba(184, 100, 68, 0.10), transparent 70%),
    var(--pebbles);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat,
    no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-size: auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, 1480px 1020px;
  background-attachment: scroll;
  line-height: 1.6;
  font-size: 17.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ochre); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.022em;
  line-height: 1.16;
  color: var(--charcoal);
  margin: 0 0 0.55em;
}
h1 { font-size: clamp(2.25rem, 4.8vw, 3.65rem); }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.25rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1.05em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.mono { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.01em; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ochre-mid); color: var(--cream);
  padding: 0.5rem 1rem; z-index: 100;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

/* Earth-colour bands — original geometry, not a motif */
.earth-band {
  display: grid;
  grid-template-columns: 2.2fr 1.4fr 1fr 0.7fr;
  height: 6px;
  width: 100%;
}
.earth-band span:nth-child(1) { background: var(--ochre-bright); }
.earth-band span:nth-child(2) { background: var(--sand-2); }
.earth-band span:nth-child(3) { background: var(--gum); }
.earth-band span:nth-child(4) { background: var(--sky); }
.earth-band.thin { height: 4px; }

.ribbon {
  background: var(--sky);
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.ribbon span { opacity: 0.92; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 249, 240, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.78rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--charcoal);
  font-family: var(--serif); font-weight: 600; font-size: 1.28rem;
  letter-spacing: -0.02em;
}
.logo img { width: 32px; height: 32px; }
.logo em { font-style: normal; color: var(--ochre-mid); }
nav.primary {
  display: flex; align-items: center;
  gap: 0.15rem 1.05rem; flex-wrap: wrap;
}
nav.primary a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 0.95rem; font-weight: 560;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] { color: var(--ochre); }
nav.primary a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 0.38rem 0.65rem; font: inherit; cursor: pointer;
  color: var(--ink);
}

.btn, .btn-ghost, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.58rem 1.15rem;
  border-radius: 999px; font: inherit; font-weight: 640; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn {
  background: var(--ochre-mid); color: var(--cream) !important;
}
.btn:hover { background: var(--ochre); color: var(--cream) !important; }
.btn-ghost {
  background: transparent; color: var(--ink) !important;
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ochre-mid); color: var(--ochre) !important; }
.btn-ochre {
  background: var(--ochre-mid); color: var(--cream) !important;
}
.btn-ochre:hover { background: var(--ochre); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }
.section { padding: 4.8rem 0; }
.section.tight { padding: 2.8rem 0; }
.band {
  background-color: rgba(255, 249, 240, 0.92);
  background-image: var(--pebbles);
  background-repeat: repeat;
  background-size: 1480px 1020px;
}
.band-sand {
  background-color: rgba(243, 230, 208, 0.92);
  background-image: var(--pebbles);
  background-repeat: repeat;
  background-size: 1480px 1020px;
}
.band-gum {
  background-color: rgba(230, 240, 228, 0.92);
  background-image: var(--pebbles);
  background-repeat: repeat;
  background-size: 1480px 1020px;
}
.band-ink {
  background-color: rgba(232, 242, 248, 0.94);
  background-image: var(--pebbles);
  background-repeat: repeat;
  background-size: 1480px 1020px;
  color: var(--ink);
}
.band-ink h2, .band-ink h3 { color: var(--charcoal); }
.band-ink .lede, .band-ink p { color: var(--ink-soft); }
.band-earth {
  background-color: rgba(243, 230, 208, 0.94);
  background-image: var(--pebbles);
  background-repeat: repeat;
  background-size: 1480px 1020px;
  color: var(--ink);
}
.band-earth h2, .band-earth h3 { color: var(--charcoal); }
.band-earth .lede, .band-earth p { color: var(--ink-soft); }

.kicker {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ochre); font-weight: 500;
  margin-bottom: 0.7rem;
}
.band-ink .kicker, .band-earth .kicker { color: var(--ochre); }

.hero {
  position: relative;
  padding: 4.2rem 0 4.6rem;
  background-color: var(--cream);
  background-image:
    var(--pebbles),
    linear-gradient(165deg, rgba(255, 249, 240, 0.96) 0%, rgba(232, 242, 248, 0.9) 48%, rgba(251, 246, 236, 0.96) 100%);
  background-repeat: repeat, no-repeat;
  background-size: 1480px 1020px, auto;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: url("/img/river.svg") center bottom / 100% auto no-repeat;
  pointer-events: none; opacity: 0.9;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: 3rem; align-items: center;
}
.hero h1 { margin-bottom: 0.8rem; max-width: 16ch; }
.hero .lede { margin-bottom: 1.55rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-note { font-size: 0.92rem; color: var(--muted); max-width: 36rem; }
.page-hero { padding-bottom: 3.4rem; }
.page-hero h1 { max-width: 20ch; }

.card-stack { position: relative; }
.card-stack::before {
  content: "";
  position: absolute; inset: -18px -22px auto auto;
  width: 180px; height: 140px;
  background: url("/img/landform.svg") center / contain no-repeat;
  opacity: 0.55; pointer-events: none;
}
.clearance-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.clearance-card header {
  background: var(--ochre-mid); color: var(--cream);
  padding: 0.9rem 1.15rem; display: flex; justify-content: space-between;
  align-items: center; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.clearance-card .body { padding: 1.2rem 1.2rem 1.3rem; }
.cc-row {
  display: flex; justify-content: space-between; gap: 0.8rem;
  padding: 0.48rem 0; border-bottom: 1px solid var(--line-2); font-size: 0.94rem;
}
.cc-row:last-of-type { border-bottom: 0; }
.cc-label { color: var(--muted); }
.status {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.2rem 0.58rem; border-radius: 999px;
}
.status.expired { background: var(--alert-bg); color: var(--alert); }
.status.soon { background: var(--warn-bg); color: var(--warn); }
.status.current { background: var(--ok-bg); color: var(--ok); }
.alert-strip {
  margin-top: 0.9rem; background: var(--alert-bg); color: var(--alert);
  padding: 0.75rem 0.9rem; border-radius: 10px; font-size: 0.92rem; font-weight: 650;
}

.grid-3, .grid-2, .grid-4 { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.45rem 1.5rem;
}
.tile h3 { margin-bottom: 0.4rem; }
.tile p:last-child { margin-bottom: 0; }
.tile .num {
  font-family: var(--serif); font-size: 1.9rem; color: var(--ochre-mid);
  display: block; margin-bottom: 0.3rem;
}

.proof {
  border-left: 3px solid var(--ochre-mid);
  padding: 0.15rem 0 0.15rem 1.15rem;
}
.proof h3 { font-size: 1.08rem; font-family: var(--sans); font-weight: 680; letter-spacing: 0; }
.proof .src { font-size: 0.8rem; color: var(--muted); margin-top: 0.45rem; }
.proof .src a { color: var(--muted); }

.not-erp { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.do, .dont { padding: 1.55rem 1.6rem; border-radius: var(--radius); }
.do { background: var(--ok-bg); }
.dont { background: var(--alert-bg); }
.do h3 { color: var(--ok); }
.dont h3 { color: var(--alert); }
.do ul, .dont ul { margin: 0.4rem 0 0; padding-left: 1.15rem; }
.do li, .dont li { margin: 0.38rem 0; }

.table-wrap {
  overflow-x: auto; border: 1px solid var(--line);
  border-radius: 12px; background: var(--white);
}
table.data { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
table.data th, table.data td {
  text-align: left; padding: 0.78rem 0.95rem;
  border-bottom: 1px solid var(--line-2); vertical-align: top;
}
table.data th {
  font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; background: var(--cream);
}
table.data tr:last-child td { border-bottom: 0; }
table.data tr.is-expired { background: #fbf3ee; }
table.data tr.is-soon { background: #fbf6ec; }
table.data tr.highlight { outline: 2px solid var(--ochre-mid); outline-offset: -2px; }
table.data td strong { font-weight: 650; }

.kpi {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.1rem 1.15rem;
}
.kpi .label {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.kpi .value { font-family: var(--serif); font-size: 2.05rem; line-height: 1.1; margin-top: 0.2rem; }
.kpi.alert .value { color: var(--alert); }
.kpi.warn .value { color: var(--warn); }
.kpi.ok .value { color: var(--ok); }

.filters { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1rem 0 1.2rem; }
.filters input, .filters select, form input, form select, form textarea {
  font: inherit; padding: 0.55rem 0.75rem; border: 1px solid var(--line);
  border-radius: 9px; background: var(--white); color: var(--ink);
}
.filters select, .filters input[type="search"] { min-width: 160px; }
form label { display: block; font-weight: 640; font-size: 0.9rem; margin: 0.75rem 0 0.32rem; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
form textarea { min-height: 96px; width: 100%; resize: vertical; }
form .hint { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.55rem 1.6rem; box-shadow: var(--shadow);
}
.form-msg { margin-top: 0.85rem; padding: 0.7rem 0.85rem; border-radius: 8px; display: none; }
.form-msg.ok { display: block; background: var(--ok-bg); color: var(--ok); }
.form-msg.err { display: block; background: var(--alert-bg); color: var(--alert); }

.price {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.75rem; display: flex; flex-direction: column; min-height: 100%;
}
.price.featured {
  border-color: var(--ochre-mid);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--cream), var(--white));
}
.price .who { font-weight: 680; color: var(--ochre); }
.price .amt { font-family: var(--serif); font-size: 2.45rem; margin: 0.45rem 0 0.12rem; }
.price .amt span { font-size: 1rem; font-family: var(--sans); color: var(--muted); font-weight: 500; }
.price ul { padding-left: 1.15rem; margin: 0.85rem 0 1.25rem; flex: 1; }
.badge {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--warn-bg); color: var(--warn); padding: 0.22rem 0.55rem; border-radius: 4px; font-weight: 700;
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0.35rem 0 1.35rem 3.15rem;
  border-left: 1px solid var(--line); margin-left: 0.95rem;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: -0.95rem; top: 0.15rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--ochre-mid); color: var(--cream); font-size: 0.85rem; font-weight: 700;
  display: grid; place-items: center;
}

.alert-list { list-style: none; padding: 0; margin: 0; }
.alert-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.8rem 0.95rem; margin-bottom: 0.55rem; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.7rem; align-items: start;
}
.alert-list li:hover { border-color: var(--ochre-mid); }
.alert-list .who { font-weight: 680; }
.alert-list .meta { font-size: 0.85rem; color: var(--muted); }

.faq details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.15rem 1.2rem 0.15rem;
  margin-bottom: 0.7rem;
}
.faq summary {
  cursor: pointer; font-weight: 650; padding: 0.95rem 0;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--serif); color: var(--ochre);
  font-size: 1.3rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 0.85rem; color: var(--ink-soft); }

.cta-band {
  display: grid; grid-template-columns: 1.4fr auto;
  gap: 1.4rem; align-items: center;
}

footer.site {
  background-color: rgba(255, 249, 240, 0.96);
  background-image: var(--pebbles);
  background-repeat: repeat;
  background-size: 1480px 1020px;
  color: var(--ink-soft);
  padding: 0 0 1.7rem; margin-top: 0; font-size: 0.94rem;
  border-top: 1px solid var(--line);
}
footer.site a { color: var(--ochre); }
footer.site h4 {
  color: var(--ink); font-size: 0.78rem; font-family: var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.8rem; margin: 2.2rem 0 1.8rem;
}
.aoc {
  background: rgba(230, 240, 228, 0.92);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.35rem 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}
.aoc p { margin: 0; max-width: 58rem; }
.aoc .aoc-mark {
  width: 42px; height: 42px; float: left; margin: 0 0.9rem 0.4rem 0;
  opacity: 0.85;
}
.legal {
  padding-top: 0.2rem; color: var(--muted); font-size: 0.8rem;
}

.notice {
  background: var(--cream); border: 1px dashed var(--sand-2);
  padding: 0.95rem 1.1rem; border-radius: 10px; font-size: 0.92rem; color: var(--ink-soft);
}

.split-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center;
}
.landform-frame {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.2rem; box-shadow: var(--shadow);
}
.landform-frame img { width: 100%; height: auto; }

@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-4, .not-erp, .foot-grid, form .row,
  .cta-band, .split-visual, .roles-strip { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .nav-toggle { display: inline-flex; }
  nav.primary {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 0.9rem 1.4rem 1.1rem; flex-direction: column; align-items: flex-start;
  }
  nav.primary.open { display: flex; }
}

@media (min-width: 961px) {
  .grid-2.proofs { grid-template-columns: 1fr 1fr; }
}

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

.demo-banner {
  background: var(--warn-bg);
  color: var(--ink);
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.demo-banner strong {
  font-family: var(--mono); letter-spacing: 0.14em; font-size: 0.76rem;
  color: var(--ochre);
}
.demo-banner a { color: var(--ochre); }
.demo-layout {
  display: grid; grid-template-columns: 300px 1fr; gap: 1.2rem; align-items: start;
}
.demo-side { position: sticky; top: 5.5rem; }
.dash-grid {
  display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 1.5rem; align-items: start;
}
@media (max-width: 960px) {
  .demo-layout, .dash-grid { grid-template-columns: 1fr; }
  .demo-side { position: static; }
}

:focus-visible { outline: 3px solid var(--ochre-mid); outline-offset: 3px; }
button:disabled { opacity: 0.6; cursor: not-allowed; }

.rule {
  height: 1px; background: var(--line); border: 0; margin: 0;
}

blockquote.sourced {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border-left: 3px solid var(--ochre-mid);
  color: var(--ink-soft);
  font-size: 1rem;
}
blockquote.sourced p { margin: 0 0 0.65em; }
blockquote.sourced p:last-child { margin: 0; }
.cite { font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0 0; }
.cite a { color: var(--muted); }
.not-customers {
  font-size: 0.95rem;
  color: var(--ink-soft);
  border: 1px dashed var(--sand-2);
  padding: 0.85rem 1.05rem;
  border-radius: 10px;
  background: var(--cream);
  max-width: 46rem;
}
table.data td.keep { color: var(--ok); font-weight: 560; }

/* Directory + tighter primary nav (Gap / Integrations / LGAs added) */
nav.primary a { font-size: 0.9rem; }
@media (min-width: 961px) {
  nav.primary { gap: 0.08rem 0.72rem; }
}

.pill {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.16rem 0.48rem;
  border-radius: 4px;
  white-space: nowrap;
}
.pill.metro { background: var(--gum); color: var(--gum-ink); }
.pill.interface { background: var(--warn-bg); color: var(--warn); }
.pill.regional { background: var(--ok-bg); color: var(--ok); }
.pill.rural { background: var(--sand); color: var(--ink-soft); }
.pill.p1 { background: var(--alert-bg); color: var(--alert); }
.pill.p2 { background: var(--warn-bg); color: var(--warn); }
.pill.p3 { background: var(--cream); color: var(--muted); border: 1px solid var(--line); }
.pill.rapid { background: var(--sky); color: var(--ink); }
.pill.linksafe { background: var(--gum); color: var(--gum-ink); }

.lga-toolbar {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(8rem, 1fr));
  gap: 0.7rem;
  align-items: end;
  margin: 1.15rem 0 0.85rem;
}
.lga-toolbar label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.lga-toolbar label input,
.lga-toolbar label select {
  display: block;
  width: 100%;
  margin-top: 0.32rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.lga-meta { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; }
.lga-meta strong { color: var(--ink); }
table.data td.notes { font-size: 0.86rem; color: var(--ink-soft); max-width: 28rem; }
@media (max-width: 960px) {
  .lga-toolbar { grid-template-columns: 1fr 1fr; }
}


/* --- overnight 31 Aug 2026: status legend + clickable LGA rows + DNS --- */
.status.dns,
.status.donotstart {
  background: var(--alert-bg);
  color: var(--alert);
  box-shadow: inset 0 0 0 1px rgba(163, 58, 34, 0.35);
}
.status-legend {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.status-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
table.data tr.lga-row {
  cursor: pointer;
  transition: background 0.12s ease;
}
table.data tr.lga-row:hover,
table.data tr.lga-row:focus-within {
  background: rgba(163, 92, 31, 0.06);
}
table.data tr.lga-row:focus-visible {
  outline: 2px solid var(--ochre-mid);
  outline-offset: -2px;
}
a.lga-name {
  color: inherit;
  text-decoration: none;
}
a.lga-name:hover {
  color: var(--ochre);
  text-decoration: underline;
}
.meta-pills .tile p { margin: 0; }
.river-divider {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  border: 0;
  background: url("/img/river.svg") center / 100% auto no-repeat;
  opacity: 0.55;
}

/* --- overnight 31 Aug 2026 02:25: roles strip --- */
.roles-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}
a.role-chip {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.3rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
a.role-chip:hover {
  border-color: var(--ochre-mid);
  color: inherit;
}
a.role-chip h3 {
  margin-bottom: 0.35rem;
  color: var(--ochre);
}
a.role-chip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* --- overnight 31 Aug 2026 04:25: duty & buy path reuses .roles-strip --- */
.roles-strip + .kicker { margin-bottom: 0; }
