/* ZimWatt public website */
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.site-head { background: var(--charcoal); color: #fff; }
.site-head .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand .wordmark { font-size: 1.45rem; }
.theme-btn { background: none; border: 1px solid rgb(255 255 255 / .25); color: #fff; border-radius: var(--r-1); width: 40px; height: 40px; cursor: pointer; font-size: 1rem; }
/* "Report" is the one action that matters during an outage: always visible, also on phones */
.report-cta { order: 2; display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: var(--r-1);
  background: var(--brand-lime); color: var(--brand-night); font-weight: 800; text-decoration: none; font-family: var(--display); font-stretch: 112%; }
.report-cta:hover, .report-cta[aria-current="page"] { background: var(--brand-yellow); }

main { display: block; }
.page { padding: 3rem 0 4rem; }
.prose { max-width: 68ch; }
.prose h1 { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.05; margin: 0 0 1rem; }
.prose h2 { font-family: var(--display); font-stretch: 105%; font-weight: 700; font-size: 1.35rem; margin: 2.2rem 0 .5rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose .lead { font-size: 1.15rem; color: var(--ink); }
.about-banner { display: block; width: 100%; height: auto; border-radius: var(--r-2); margin: .5rem 0 1.5rem; background: #171d25; }
.note { border-left: 4px solid var(--s-unconfirmed); background: var(--surface); padding: .9rem 1.1rem; border-radius: 0 var(--r-1) var(--r-1) 0; margin: 1.25rem 0; }
.note.independent { border-left-color: var(--charcoal); }
[data-theme="dark"] .note.independent { border-left-color: var(--ink-3); }


.site-foot { background: var(--charcoal); color: #aeb9c4; padding: 2.5rem 0 3rem; font-size: .9rem; }
.site-foot a { color: #e6f2ec; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.site-foot nav { display: grid; gap: .35rem; align-content: start; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
details.qa { border-bottom: 1px solid var(--line); padding: .9rem 0; }
details.qa summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style-position: outside; }
details.qa p { margin: .6rem 0 0; }

/* ---------- forms (delete account) ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); padding: 1.5rem; max-width: 520px; margin: 1.5rem 0; }
.panel h2 { margin-top: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-1); overflow: hidden; margin-bottom: 1rem; }
.seg button { border: 0; background: none; padding: .6rem 1rem; font: 600 .95rem var(--body); color: var(--ink-2); cursor: pointer; min-height: 42px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.msg { padding: .75rem 1rem; border-radius: var(--r-1); margin: 1rem 0; }
.msg.ok { background: var(--action-soft); }
.msg.err { background: color-mix(in srgb, var(--danger) 14%, transparent); }
.code-input { font-family: var(--display) !important; font-stretch: 115%; font-size: 1.6rem !important; letter-spacing: .3em; text-align: center; }

/* ---------- map page ---------- */
body.map-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.map-page main { flex: 1 1 auto; position: relative; min-height: 0; }
.map-shell { position: absolute; inset: 0; }
#map { position: absolute; inset: 0; background: var(--line-2); }
.map-sheet { position: absolute; z-index: 2; left: 1rem; top: 1rem; bottom: 1rem; width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--shadow); display: grid; grid-template-rows: auto auto 1fr auto; overflow: hidden; }
.map-sheet header { padding: 1rem 1rem .5rem; }
.map-sheet h1 { font-family: var(--display); font-stretch: 112%; font-size: 1.35rem; margin: 0; line-height: 1.1; }
.map-sheet .sub { color: var(--ink-3); font-size: .85rem; margin: .25rem 0 0; }
.legend { display: flex; flex-wrap: wrap; gap: .35rem; padding: .25rem 1rem .75rem; border-bottom: 1px solid var(--line); }
.outage-list { list-style: none; margin: 0; padding: 0; overflow: auto; }
.outage-list li { padding: .85rem 1rem; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.outage-list li:hover, .outage-list li.sel { background: var(--action-soft); }
.outage-list .row1 { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.outage-list .conf { font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: 1.15rem; }
.outage-list p { margin: .35rem 0 0; font-size: .88rem; color: var(--ink-2); }
.map-sheet footer { padding: .7rem 1rem; font-size: .78rem; color: var(--ink-3); border-top: 1px solid var(--line); }
.empty-list { padding: 1rem; color: var(--ink-2); font-size: .92rem; }
@media (max-width: 760px) {
  .map-sheet { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 46%; border-radius: var(--r-2) var(--r-2) 0 0; }
}
.maplibregl-popup-content { font-family: var(--body); color: #1b2420; border-radius: 8px; }

/* ---------- shared bits for signed-in pages ---------- */
.btn-wide { width: 100%; }
.btn-small { min-height: 38px; padding: .5em .85em; font-size: .88rem; }
.btn-quiet { border-color: transparent; background: none; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.btn-danger-outline { border-color: var(--danger); color: var(--danger); }
.linkish { background: none; border: 0; padding: .5rem 0; font: 600 .92rem var(--body); color: var(--action); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.linkish[disabled] { color: var(--ink-3); text-decoration: none; cursor: default; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: .25rem 0 1rem; font-size: .95rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: .1rem 0 0; flex: none; accent-color: var(--action); }
.faint { color: var(--ink-3); }
.row { display: flex; gap: .5rem; align-items: center; }
.wrap-row { flex-wrap: wrap; }

/* ---------- sign in ---------- */
.auth-page { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 340px); gap: 4rem; align-items: start; }
.auth h1 { font-size: clamp(2.1rem, 6vw, 3rem); margin: 0 0 .75rem; }
.auth-lead { color: var(--ink-2); margin: 0 0 1.5rem; font-size: 1.05rem; }
.auth h2 { font-family: var(--display); font-stretch: 110%; margin: 0 0 .25rem; }
.auth form { margin-top: .5rem; }
.sent-to { background: var(--action-soft); padding: .8rem 1rem; border-radius: var(--r-1); margin: 0 0 1rem; }
.auth-alt { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .5rem; }
.auth-side { border-top: 4px solid var(--brand-lime); padding-top: 1rem; color: var(--ink-2); font-size: .95rem; margin-top: 4.2rem; }
.auth-side h2 { font-size: 1.05rem; margin: 0 0 .5rem; color: var(--ink); }
@media (max-width: 860px) { .auth-page { grid-template-columns: 1fr; gap: 2rem; } .auth-side { margin-top: 0; } .page.auth-page { padding-top: 1.75rem; } }

/* ---------- report: map under a fixed pin ---------- */
#rmap { position: absolute; inset: 0; background: var(--line-2); }
.pin-anchor { position: absolute; z-index: 1; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
/* exact reported point: a small dot under the pin tip */
.pin-anchor::after { content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-lime); border: 2px solid var(--brand-night); }
/* 44px square rotated -45deg: its square corner (the tip) lies 31px below its centre, so top = -(22+31) */
.pin { position: absolute; left: -22px; top: -53px; width: 44px; height: 44px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand-night); border: 3px solid var(--brand-lime);
  box-shadow: 0 6px 14px rgb(0 0 0 / .35); display: grid; place-items: center; pointer-events: none; }
.pin img { transform: rotate(45deg); }
.locate-btn { position: absolute; z-index: 2; top: .75rem; left: .75rem; min-height: 44px; padding: 0 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .95rem var(--body); box-shadow: var(--shadow); cursor: pointer; }
.report-sheet { position: absolute; z-index: 2; right: 1rem; top: 1rem; width: 400px; max-height: calc(100% - 2rem); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--shadow); padding: 1.1rem 1.1rem .8rem; }
.grab { display: none; }
.sheet-title { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.35rem; line-height: 1.1; margin: 0 0 .3rem; }
.sheet-hint { color: var(--ink-2); font-size: .9rem; margin: 0 0 .8rem; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .9rem; }
.kind { --c: var(--s-unknown); min-height: 64px; padding: .6rem .75rem; border-radius: var(--r-1); border: 2px solid var(--line); background: var(--surface);
  color: var(--ink); font: 800 1.02rem var(--display); font-stretch: 108%; text-align: left; cursor: pointer; display: flex; align-items: center; gap: .55rem; }
.kind::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; }
.kind[aria-checked="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--surface)); box-shadow: inset 0 0 0 1px var(--c); }
.k-off { --c: var(--s-high); }
.k-on { --c: var(--s-on); }
.k-low { --c: var(--s-unconfirmed); }
.k-flicker { --c: var(--s-likely); }
.since { border: 0; padding: 0; margin: 0 0 .6rem; }
.since legend { font-weight: 700; font-size: .9rem; margin-bottom: .35rem; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: .35rem; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.pills input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pills input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.street-tools { margin: .2rem 0 .6rem; }
.street-tools .check { margin-bottom: .4rem; font-size: .9rem; }
.send { margin-top: .2rem; min-height: 52px; font-size: 1.02rem; }
.result-lines { padding-left: 1.1rem; margin: .5rem 0 1rem; color: var(--ink-2); }
.result-lines li { margin: .25rem 0; }
.save-place { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.sheet-foot { font-size: .76rem; color: var(--ink-3); margin: .75rem 0 0; }
@media (max-width: 760px) {
  .report-sheet { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 62%; border-radius: 16px 16px 0 0; padding: .4rem 1rem calc(.8rem + env(safe-area-inset-bottom)); }
  .grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: .2rem auto .6rem; }
  .kind { min-height: 54px; font-size: .98rem; }
  .sheet-foot { display: none; }
  .locate-btn { top: .6rem; left: .6rem; }
}

/* ---------- map popup actions ---------- */
.pop-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.pop-actions .btn { font-size: .82rem; min-height: 36px; }
.pop-note { width: 100%; margin: .2rem 0 0; font-size: .82rem; }
.maplibregl-popup-content .btn { color: #1b2420; background: #fff; border-color: #cfd6d2; }
.maplibregl-popup-content .btn-primary { background: #3a7d0a; border-color: #3a7d0a; color: #fff; }
.maplibregl-popup-content .btn-quiet { background: none; border-color: transparent; color: #44514b; }

/* ---------- my account ---------- */
.account h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin: 0 0 .3rem; }
.acct-head { display: grid; gap: .4rem; justify-items: start; margin-bottom: 1.5rem; }
.acct-head p { margin: 0 0 .5rem; }
.acct-sec { border-top: 1px solid var(--line); padding: 1.4rem 0; max-width: 760px; }
.acct-sec h2 { font-family: var(--display); font-stretch: 110%; font-size: 1.25rem; margin: 0 0 .7rem; }
.reports, .places, .devices { list-style: none; padding: 0; margin: 0 0 .8rem; }
.reports li, .places li, .devices li { display: flex; align-items: center; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.r-main { flex: 1 1 220px; min-width: 0; }
.reports a.chip { text-decoration: none; }
.empty-row { color: var(--ink-2); }
.inline-form { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; max-width: 560px; }
.inline-form .field { flex: 1 1 260px; margin: 0; }
.account .note { max-width: 760px; }
.account .note p { margin: .2rem 0 .6rem; }

/* ---------- phones: one-line header, more room for the map list ---------- */
@media (max-width: 760px) {
  .site-head .wrap { width: calc(100% - 1.5rem); gap: .45rem; min-height: 58px; }
  .brand .wordmark { font-size: 1.25rem; }
  .brand img { width: 28px; height: 28px; }
  .report-cta { padding: 0 .85rem; }
  .menu-toggle { padding: 0 .7rem; }
  .legend { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .6rem; }
  .legend::-webkit-scrollbar { display: none; }
}
@media (max-width: 360px) { .brand .wordmark { display: none; } }

/* street mode feedback */
.street-info { font-size: .88rem; font-weight: 700; margin: -.4rem 0 .6rem; color: var(--ink); }
.street-info:empty { display: none; }
.street-info.warn { color: var(--danger); }

/* ---------- people-count bubbles (map + report map) ---------- */
.bubble-btn { background: none; border: 0; padding: 0; cursor: pointer; }
.report-page .bubble-btn { pointer-events: none; }
.bubble { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .5rem .18rem .4rem; border-radius: 999px;
  font: 800 .92rem/1 var(--display); font-stretch: 110%; color: #fff; background: var(--c, var(--s-high));
  box-shadow: 0 2px 6px rgb(0 0 0 / .3); border: 2px solid #fff; white-space: nowrap; }
.bubble-btn .bubble { position: relative; }
.bubble-btn .bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -5px; border: 5px solid transparent;
  border-top-color: #fff; border-bottom: 0; }
.bubble .bpart { display: inline-flex; align-items: center; gap: .18rem; }
.bubble .bi { width: 15px; height: 15px; flex: none; }
.bubble.is-off { --c: var(--s-high); }
.bubble.is-off.st-unconfirmed_outage { --c: #b97f00; }
.bubble.is-off.st-likely_outage { --c: var(--s-likely); }
.bubble.is-on { --c: #0e9f6e; }
.bubble.is-mixed { --c: var(--s-conflict); }
.bubble-btn:hover .bubble, .bubble-btn:focus-visible .bubble { transform: scale(1.08); }
.outage-list .row1 .bubble { box-shadow: none; border-width: 0; font-size: .85rem; }
.outage-list .row1 { justify-content: flex-start; }
.outage-list .row1 .conf { margin-left: auto; }
.people { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-top: .35rem; }
.people .bi { width: 17px; height: 17px; color: var(--ink-2); }
.maplibregl-popup-content .people, .maplibregl-popup-content .people .bi { color: #44514b; }

/* ---------- report: what to mark, details, places ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-1); overflow: hidden; margin-bottom: .6rem; }
.modes button { border: 0; background: var(--surface); color: var(--ink-2); font: 700 .9rem var(--body); min-height: 42px; cursor: pointer; }
.modes button + button { border-left: 1px solid var(--line); }
.modes button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.places-row { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 0 0 .6rem; font-size: .88rem; }
.place-chip { border: 1px solid var(--line); cursor: pointer; min-height: 34px; font: 700 .88rem var(--body); background: #fff5c4; color: #171d25; }
.place-chip::before { --c: #ffd21f; }
.place-tag { font: 700 .75rem var(--body); background: #ffd21f; color: #171d25; padding: .1rem .4rem; border-radius: 4px; border: 1px solid #171d25; pointer-events: none; }
details.more { border: 1px solid var(--line); border-radius: var(--r-1); padding: .2rem .8rem; margin: 0 0 .8rem; }
details.more summary { cursor: pointer; font-weight: 700; min-height: 40px; display: flex; align-items: center; gap: .4rem; }
details.more[open] { padding-bottom: .6rem; }
details.more .field { margin-bottom: .7rem; }
details.more textarea { font: 400 1rem var(--body); padding: .6em .7em; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface); color: var(--ink); width: 100%; resize: vertical; }
details.more .check .hint { display: block; font-weight: 400; color: var(--ink-3); font-size: .85rem; }
.privacy-note { font-size: .85rem; color: var(--ink-2); background: var(--action-soft); border-radius: var(--r-1); padding: .6rem .75rem; margin: 0 0 1rem; }

/* ---------- what people said (map popup) ---------- */
.voices { list-style: none; padding: 0; margin: .6rem 0 0; max-height: 180px; overflow: auto; border-top: 1px solid #e3e8e5; }
.voices li { padding: .4rem 0; border-bottom: 1px solid #eef1ef; font-size: .82rem; }
.voices .who { font-weight: 800; }
.voices .what { color: #44514b; }
.voices q { display: block; margin-top: .15rem; quotes: "\201C" "\201D"; color: #1b2420; }
.fault-refs { font-size: .8rem; margin-top: .4rem; color: #1b2420; }

/* outage popup: never taller than the clear part of a phone screen; scrolls inside */
.maplibregl-popup-content { max-height: min(36vh, 330px); overflow: auto; overscroll-behavior: contain; }
.voices { max-height: none; }

/* ---------- patterns: most common fault refs / comments ---------- */
.bubble-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.bref { font: 700 .68rem/1.2 var(--body); background: #171d25; color: #ffd21f; padding: .1rem .35rem; border-radius: 4px;
  border: 1px solid #ffd21f; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.patterns { margin-top: .45rem; display: grid; gap: .3rem; }
.prow { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.plabel { font-size: .72rem; font-weight: 700; color: var(--ink-3); margin-right: .15rem; }
.pchip { font-size: .78rem; padding: .1rem .45rem; border-radius: 999px; background: var(--line-2); color: var(--ink);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pchip.many { background: #fff1b8; color: #171d25; font-weight: 700; }
.maplibregl-popup-content .plabel { color: #6b7872; }
.maplibregl-popup-content .pchip { background: #e8ece9; color: #1b2420; }
.maplibregl-popup-content .pchip.many { background: #fff1b8; }
.fault-refs { font-weight: 700; }

/* ---------- live numbers, top left of the header ---------- */
.site-head .wrap { position: relative; }
.live { order: 0; display: inline-flex; align-items: center; gap: .15rem; background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .14); border-radius: 999px; padding: .25rem .35rem; color: #c9d3dc; cursor: pointer;
  font: 600 .8rem var(--body); white-space: nowrap; }
.live:hover, .live[aria-expanded="true"] { background: rgb(255 255 255 / .12); color: #fff; }
.lv { display: inline-flex; align-items: center; gap: .25rem; padding: 0 .45rem; }
.lv + .lv { border-left: 1px solid rgb(255 255 255 / .16); }
.lv b { color: #fff; font: 800 .9rem var(--display); font-stretch: 110%; }
.lv-out b { color: #ff8a80; }
.lv-on b { color: var(--brand-lime); }
.dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-lime); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgb(143 212 0 / .6);
  animation: live 2s infinite; will-change: transform, opacity; }
@keyframes live { 0% { transform: scale(1); opacity: 1; } 70% { transform: scale(2.7); opacity: 0; } 100% { transform: scale(2.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot::after { animation: none; display: none; } }
.lv b.bump { animation: bump .6s ease-out; }
@keyframes bump { 0% { transform: translateY(-3px); color: var(--brand-yellow); } 100% { transform: none; } }
.live-panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(340px, calc(100vw - 1.5rem));
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--shadow); padding: 1rem 1.1rem; }
.live-panel h2 { font-family: var(--display); font-stretch: 110%; font-size: 1.1rem; margin: 0 0 .6rem; }
.live-panel dl { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; margin: 0 0 .6rem; font-size: .9rem; }
.live-panel dt { color: var(--ink-2); }
.live-panel dd { margin: 0; font-weight: 800; text-align: right; }
.live-panel p { font-size: .78rem; margin: 0 0 .6rem; }
@media (max-width: 760px) {
}

/* ---------- substations: top-left map tools ---------- */
.map-tools { position: absolute; z-index: 3; top: 1rem; left: calc(360px + 2rem); display: flex; gap: .4rem; flex-wrap: wrap; }
.tool { min-height: 40px; padding: 0 .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 700 .88rem var(--body); box-shadow: var(--shadow); cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.tool[aria-pressed="true"] { background: var(--brand-night); color: #fff; border-color: var(--brand-night); }
.tool-ico { width: 14px; height: 14px; border-radius: 3px; background: #ffd21f; border: 2px solid #171d25; }
.tool[aria-pressed="true"] .tool-ico { border-color: #ffd21f; background: #171d25; }
.sub-btn { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; }
.sub-ico { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .45)); }
.sub-ico.sub-transformer { width: 20px; height: 20px; }
.sub-bg { fill: #171d25; stroke: #ffd21f; stroke-width: 2; }
.sub-bolt { fill: #ffd21f; }
.sub-pending .sub-bg { fill: #fff; stroke: #171d25; stroke-dasharray: 3 2; }
.sub-pending .sub-bolt { fill: #171d25; }
.sub-card { font-size: .85rem; display: grid; gap: .3rem; }
.btn.chosen { outline: 3px solid #ffd21f; }
.pin-sub { border-color: #ffd21f; }
.sub-place { position: absolute; z-index: 4; top: 1rem; left: calc(360px + 2rem); width: min(340px, calc(100% - 2rem));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--shadow); padding: .9rem 1rem; }
.sub-place h2 { font-family: var(--display); font-stretch: 110%; font-size: 1.1rem; margin: 0 0 .2rem; }
.sub-place .field { margin: .5rem 0; }
.small { font-size: .8rem; }
.msg-inline { color: var(--danger); font-weight: 700; font-size: .85rem; margin: .3rem 0; }
.msg-inline:empty { display: none; }
@media (max-width: 760px) {
  .map-tools { left: .6rem; top: .6rem; }
  .tool { min-height: 36px; padding: 0 .7rem; font-size: .82rem; }
  .sub-place { left: .6rem; right: .6rem; top: .6rem; width: auto; }
}

.public-note { font-size: .78rem; color: var(--ink-3); margin: .2rem 0 .5rem; }


/* ---------- "Click here to report" tip (static/site/tips.js) ---------- */
.tip { position: fixed; z-index: 60; width: min(300px, calc(100vw - 24px)); padding: .9rem 1rem 1rem; border-radius: var(--r-2);
  background: var(--brand-yellow); color: var(--brand-night); box-shadow: 0 12px 32px rgb(0 0 0 / .35);
  opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.tip.in { opacity: 1; transform: none; }
.tip::before { content: ""; position: absolute; top: -7px; left: calc(var(--arrow-x, 50%) - 8px); width: 16px; height: 16px;
  background: inherit; transform: rotate(45deg); border-radius: 3px 0 0 0; }
.tip p { margin: 0 0 .75rem; font-size: .92rem; line-height: 1.4; }
.tip .tip-title { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.15rem; margin-bottom: .3rem; }
.tip-actions { display: flex; gap: .5rem; }
.tip .btn-primary { background: var(--brand-night); border-color: var(--brand-night); color: #fff; }
.tip .tip-ok { background: transparent; border-color: rgb(23 29 37 / .35); color: var(--brand-night); }
.report-cta { position: relative; }
.report-cta.cta-spot { background: var(--brand-yellow); animation: zw-spot 1.6s ease-out infinite; }
@keyframes zw-spot {
  0% { box-shadow: 0 0 0 0 rgb(255 210 31 / .75); }
  70% { box-shadow: 0 0 0 14px rgb(255 210 31 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(255 210 31 / 0); }
}

/* ---------- support chat box (static/site/support.js) ---------- */
.help { --help-lift: 0px; }
.help-fab { position: fixed; z-index: 40; right: 1rem; bottom: calc(1rem + var(--help-lift)); display: inline-flex; align-items: center;
  gap: .45rem; min-height: 48px; padding: 0 1.1rem 0 .95rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / .14);
  background: var(--brand-night); color: #fff; font: 700 .95rem var(--body); cursor: pointer;
  box-shadow: 0 8px 24px rgb(0 0 0 / .28); transition: transform .2s ease, bottom .25s ease; }
.help-fab svg { color: var(--brand-lime); }
.help-fab:hover { transform: translateY(-2px); }
.help.open .help-fab svg { color: var(--brand-yellow); }
.map-page .maplibregl-ctrl-bottom-right { margin-bottom: 4.5rem; }   /* keep the map attribution clear of the button */

.help-panel { position: fixed; z-index: 45; right: 1rem; bottom: calc(4.6rem + var(--help-lift)); width: min(370px, calc(100vw - 2rem));
  max-height: calc(100vh - 7rem - var(--help-lift)); max-height: calc(100dvh - 7rem - var(--help-lift));
  display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 18px 48px rgb(0 0 0 / .3); overflow: hidden;
  transform-origin: bottom right; animation: zw-help-in .22s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes zw-help-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.help-head { display: flex; align-items: center; gap: .7rem; padding: .85rem .9rem .85rem 1rem; background: var(--brand-night); color: #fff;
  border-bottom: 3px solid var(--brand-lime); }
.help-head h2 { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 1.05rem; margin: 0; line-height: 1.15; }
.help-head p { margin: 0; font-size: .82rem; color: #b3bfb9; }
.help-head > div { flex: 1; }
.help-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .08); color: #fff; font-size: 1.4rem;
  line-height: 1; cursor: pointer; }
.help-x:hover { background: rgb(255 255 255 / .16); }
.help-body { padding: 1rem; overflow: auto; }
.help-body .field { margin-bottom: .75rem; }
.help-body textarea { resize: vertical; min-height: 6.5rem; }
.help-bubble { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 14px 14px 14px 4px; background: var(--action-soft); color: var(--ink);
  font-size: .93rem; max-width: 92%; }
.help-account { margin: 0 0 .75rem; font-size: .88rem; color: var(--ink-2); }
.help-account .linkish { min-height: 0; padding: 0; font-size: .88rem; }
.help-fine { margin: 0 0 .6rem; font-size: .78rem; color: var(--ink-3); }
.help-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.help-done p { margin: 0 0 1rem; }
.help-done:focus { outline: none; }
@media (max-width: 560px) {
  .help-panel { left: 0; right: 0; bottom: 0; width: auto; border-radius: 16px 16px 0 0; max-height: 88vh; max-height: 88dvh; }
  .help.open .help-fab { display: none; }
  .help-fab span { display: none; }
  .help-fab { padding: 0; width: 52px; justify-content: center; }
}

/* street snapping preview (report page) */
.snap-info { font-size: .88rem; margin: -.3rem 0 .4rem; color: var(--ink-2, var(--ink)); }
.snap-info::before { content: ""; display: inline-block; width: 1.1rem; height: 4px; border-radius: 2px;
  background: #2f7df6; vertical-align: middle; margin-right: .45rem; }
.snap-keep { font-size: .88rem; margin: 0 0 .6rem; }

/* ---------- Android app download (/app) ---------- */
.app-download { margin: 1.6rem 0 .5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); display: grid; gap: 1rem; }
.app-download-btn { font-size: 1.05rem; min-height: 52px; justify-self: start; }
.app-facts { display: grid; gap: .35rem; margin: 0; font-size: .92rem; }
.app-facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; }
.app-facts dt { color: var(--ink-3); }
.app-facts dd { margin: 0; color: var(--ink); min-width: 0; }
.app-sha { font-size: .78rem; overflow-wrap: anywhere; }
@media (max-width: 520px) { .app-download-btn { justify-self: stretch; } }

/* ---------- service switch: Electricity | Water | Refuse (services.js; one service on the map at a time) ---------- */
.svc-switch { position: absolute; z-index: 3; top: 1rem; left: calc(360px + 2rem); display: inline-flex; gap: 2px; padding: 3px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.svc { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: 0 .9rem .0 .7rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); font: 700 .9rem var(--body); cursor: pointer; white-space: nowrap; }
.svc:hover { color: var(--ink); background: var(--line-2); }
.svc:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.svc[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.svc-ico { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: currentColor; -webkit-mask: var(--svc-mask) center / 16px 16px no-repeat; mask: var(--svc-mask) center / 16px 16px no-repeat; }
.svc-power { --svc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.2 2 4.8 13.4h6.1L9.9 22l9.3-12.6h-6.2z'/%3E%3C/svg%3E"); }
.svc-water { --svc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5c-.4 0-.7.2-.9.5C8.6 6.6 5.5 10.9 5.5 14.6a6.5 6.5 0 0 0 13 0c0-3.7-3.1-8-5.6-11.6a1.1 1.1 0 0 0-.9-.5z'/%3E%3C/svg%3E"); }
.svc-refuse { --svc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6l1 2h4v2H4V5h4zM5.5 8h13l-1.2 12.2A2 2 0 0 1 15.3 22H8.7a2 2 0 0 1-2-1.8z'/%3E%3C/svg%3E"); }
.svc-power[aria-checked="true"] .svc-ico { color: var(--brand-yellow); }
.svc-water[aria-checked="true"] .svc-ico { color: #4cc3ff; }
.svc-refuse[aria-checked="true"] .svc-ico { color: var(--brand-lime); }
/* the tools row and the report page's locate button sit below the switch */
.map-page .svc-switch ~ .map-tools { top: 4.1rem; }
.report-page .svc-switch { left: .75rem; }
.report-page .locate-btn { top: 4.1rem; }
/* substations are electricity-only */
.no-subs .map-tools, .no-subs .sub-btn, .no-subs .sub-place, .no-subs #sub-anchor { display: none !important; }
/* bubble icons for water / refuse */
.bi-drop { color: #1e88e5; }
.bi-bin { color: #8a5a14; }
@media (max-width: 760px) {
  .svc-switch, .report-page .svc-switch { left: .6rem; top: .6rem; right: auto; max-width: calc(100% - 4.2rem); }
  .svc { min-height: 36px; padding: 0 .65rem 0 .55rem; font-size: .84rem; gap: .3rem; }
  .map-page .svc-switch ~ .map-tools { top: 3.6rem; }
  .report-page .locate-btn { top: 3.6rem; }
}
@media (max-width: 380px) { .svc-txt { font-size: .78rem; } .svc { padding: 0 .5rem; } }

/* ---------- report: "you're reporting" banner + pin halo (report.js banner()) ---------- */
.rep-banner { --svc: var(--brand-yellow); --tone: var(--ink-3);
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: center;
  margin: 0 0 .9rem; padding: .7rem .85rem .7rem .7rem; border-radius: var(--r-2);
  background: color-mix(in srgb, var(--svc) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--svc) 45%, var(--line));
  border-left: 6px solid var(--tone); }
.rep-banner.svc-water { --svc: #1e88e5; }
.rep-banner.svc-refuse { --svc: #0e9f6e; }
.rep-banner.t-fault { --tone: #d4282c; }
.rep-banner.t-fixed { --tone: #0e9f6e; }
.rb-disc { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--svc);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--svc) 25%, transparent); }
.rb-disc .svc-ico { width: 26px; height: 26px; color: var(--brand-night); -webkit-mask-size: 24px 24px; mask-size: 24px 24px; }
.rb-text { display: grid; min-width: 0; }
.rb-what { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.28rem; line-height: 1.1; }
.t-none .rb-what { color: var(--ink-3); font-weight: 700; }
.rb-where { color: var(--ink-2); font-size: .88rem; margin-top: .15rem; }
.rb-sweep { position: absolute; inset: 0; pointer-events: none; transform: translateX(-101%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--svc) 35%, transparent) 60%, transparent); }
.rb-pop .rb-disc { animation: rb-disc .55s cubic-bezier(.2, 1.6, .4, 1); }
.rb-pop .rb-sweep { animation: rb-sweep .7s ease-out; }
.rb-pop .rb-what { animation: rb-in .35s ease-out; }
@keyframes rb-disc { 0% { transform: scale(.6) rotate(-20deg); } 100% { transform: none; } }
@keyframes rb-sweep { 0% { transform: translateX(-101%); } 100% { transform: translateX(101%); } }
@keyframes rb-in { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
/* the pin carries the same colours: border = service, pulsing halo at the tip = fault (red) / fixed (green) */
.report-page .pin.svc-water { border-color: #1e88e5; }
.report-page .pin.svc-refuse { border-color: #0e9f6e; }
.report-page .pin.svc-power { border-color: var(--brand-yellow); }
.pin-anchor::before { content: ""; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid transparent; opacity: 0; }
.pin-anchor:has(.t-fault)::before { border-color: #d4282c; animation: pin-halo 1.6s ease-out infinite; }
.pin-anchor:has(.t-fixed)::before { border-color: #0e9f6e; animation: pin-halo 1.6s ease-out infinite; }
@keyframes pin-halo { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.sent-pop { animation: rb-in .4s ease-out; }
.sent-pop::before { content: "¹3"; display: inline-grid; place-items: center; width: 1.2em; height: 1.2em; margin-right: .45rem;
  vertical-align: .05em; border-radius: 50%; background: #0e9f6e; color: #fff; font-size: .85em; font-weight: 800;
  animation: rb-disc .5s cubic-bezier(.2, 1.6, .4, 1); }
@media (max-width: 760px) {
  .rep-banner { position: sticky; top: -.4rem; z-index: 2; margin: 0 -.2rem .7rem; padding: .55rem .7rem .55rem .55rem; }
  .rb-disc { width: 40px; height: 40px; }
  .rb-what { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-pop .rb-disc, .rb-pop .rb-sweep, .rb-pop .rb-what, .sent-pop, .sent-pop::before { animation: none; }
  .pin-anchor:has(.t-fault)::before, .pin-anchor:has(.t-fixed)::before { animation: none; opacity: .8; transform: scale(1.2); }
}

/* ---------- account: your impact, places now, report filter + quick actions ---------- */
.account .svc-power { --svc: #e0a800; }
.account .svc-water { --svc: #1e88e5; }
.account .svc-refuse { --svc: #0e9f6e; }
.impact-lead { font-size: 1.08rem; line-height: 1.55; max-width: 62ch; margin: 0 0 1rem; }
.impact-split { display: grid; gap: .4rem; max-width: 460px; margin-bottom: 1.1rem; }
.isp { display: grid; grid-template-columns: 18px 6.5rem 1fr 2.5rem; gap: .55rem; align-items: center; font-size: .9rem; }
.isp .svc-ico { width: 18px; height: 18px; color: var(--svc); }
.isp-track { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.isp-bar { display: block; height: 100%; border-radius: 4px; background: var(--svc); transition: width .6s ease-out; }
.isp-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.rep-level { max-width: 460px; }
.rl-head { margin-bottom: .35rem; }
.rl-track { display: block; height: 10px; border-radius: 5px; background: var(--line-2); overflow: hidden; }
.rl-fill { display: block; height: 100%; border-radius: 5px; background: var(--brand-lime-deep); }
.lv-low .rl-fill { background: #e0a100; }
.lv-top .rl-fill { background: linear-gradient(90deg, var(--brand-lime-deep), var(--brand-yellow)); }
.lamps { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.lamp { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem .25rem .4rem; border-radius: 999px;
  font-size: .82rem; color: var(--ink-2); background: var(--line-2); text-decoration: none; border: 1px solid transparent; }
.lamp .svc-ico { width: 16px; height: 16px; color: var(--ink-3); }
.lamp b { font-weight: 700; color: var(--ink); }
.lamp-bad { background: color-mix(in srgb, #d4282c 12%, var(--surface)); border-color: color-mix(in srgb, #d4282c 45%, transparent); }
.lamp-bad .svc-ico { color: #d4282c; }
.lamp-good { background: color-mix(in srgb, #0e9f6e 12%, var(--surface)); border-color: color-mix(in srgb, #0e9f6e 40%, transparent); }
.lamp-good .svc-ico { color: #0e9f6e; }
a.lamp:hover { border-color: var(--ink-3); }
a.lamp:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.p-acts { display: flex; flex-wrap: wrap; gap: .3rem; }
.rename-form { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.rename-form input { min-height: 34px; padding: 0 .6rem; border: 1px solid var(--line); border-radius: var(--r-1);
  background: var(--surface); color: var(--ink); font: inherit; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .4rem; }
.filter-chips button { min-height: 34px; padding: 0 .85rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font: 600 .88rem var(--body); cursor: pointer; }
.filter-chips button[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-chips button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.reports .r-ico { width: 20px; height: 20px; color: var(--svc, var(--ink-3)); align-self: flex-start; margin-top: .15rem; }
.r-acts { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-top: .45rem; }
@media (prefers-reduced-motion: reduce) { .isp-bar { transition: none; } }

/* ---------- map: switch + "you're looking at" banner + substation tools, one column on top of the map ---------- */
.map-top { position: absolute; z-index: 3; top: 1rem; left: calc(360px + 2rem); width: min(430px, calc(100% - 360px - 6rem));
  display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.map-page .map-top .svc-switch, .map-page .map-top .map-tools { position: static; top: auto; left: auto; max-width: none; }
.view-banner { --tone: var(--svc); position: relative; width: 100%; margin: 0; grid-template-columns: auto 1fr auto; box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--svc) 12%, var(--surface)); }
.view-banner.svc-water { --svc: #1e88e5; }
.view-banner.svc-refuse { --svc: #0e9f6e; }
.view-banner.svc-power { --svc: #e0a800; }
.vb-text { display: grid; min-width: 0; }
.vb-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .55rem;
  font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.2rem; line-height: 1.15; }
.vb-count { font-family: var(--body); font-stretch: normal; font-size: .82rem; font-weight: 700; color: var(--ink-3); }
.vb-count.vb-some { color: #b3191d; }
[data-theme="dark"] .vb-count.vb-some { color: #ff7b7e; }
.vb-about { color: var(--ink-2); font-size: .86rem; line-height: 1.4; margin-top: .2rem; max-height: 6em; overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease, margin .3s ease; }
.vb-folded .vb-about { max-height: 0; opacity: 0; margin-top: 0; }
.vb-fold { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  align-self: start; display: grid; place-items: center; color: var(--ink-2); }
.vb-fold::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(2px) rotate(225deg); transition: transform .25s ease; }
.vb-folded .vb-fold::before { transform: translateY(-2px) rotate(45deg); }
.vb-fold:hover { color: var(--ink); border-color: var(--ink-3); }
.vb-fold:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 760px) {
  .map-top { left: .6rem; top: .6rem; width: calc(100% - 4.4rem); gap: .35rem; }
  .view-banner { position: relative; top: auto; margin: 0; padding: .45rem .5rem .45rem .45rem; gap: .55rem; }
  .view-banner .rb-disc { width: 34px; height: 34px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--svc) 25%, transparent); }
  .view-banner .rb-disc .svc-ico { width: 20px; height: 20px; -webkit-mask-size: 18px 18px; mask-size: 18px 18px; }
  .vb-title { font-size: 1.02rem; }
  .vb-about { font-size: .8rem; }
  .vb-fold { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { .vb-about, .vb-fold::before { transition: none; } }

/* ---------- account: tier medal, accuracy, badges ---------- */
.standing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem 1.6rem; margin: 0 0 1.2rem; max-width: 720px; }
.tier { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: center; }
.medal { --m: #8d969e; --m2: #c9cfd4; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--m2), var(--m) 70%); box-shadow: inset 0 0 0 3px rgb(255 255 255 / .35), 0 3px 8px rgb(0 0 0 / .2); }
.medal-bronze { --m: #9c5b26; --m2: #e0a46c; }
.medal-silver { --m: #7d8891; --m2: #eef2f5; }
.medal-gold { --m: #b98a00; --m2: #ffe27a; }
.medal-platinum { --m: #3f8fa3; --m2: #d9f4fb; }
.medal-ico { width: 28px; height: 28px; background: #fff; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .3));
  -webkit-mask: var(--bdg-star) center / contain no-repeat; mask: var(--bdg-star) center / contain no-repeat; }
.tier-text { display: grid; gap: .15rem; min-width: 0; }
.tier-name { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.15rem; }
.tier-track { display: block; height: 8px; margin-top: .25rem; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.tier-fill { display: block; height: 100%; border-radius: 4px; background: var(--brand-lime-deep); }
.accuracy { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: center; }
.acc-fig { min-width: 58px; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.9rem; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--ink-3); }
.acc-excellent .acc-fig { color: #0e9f6e; }
.acc-good .acc-fig { color: var(--brand-lime-deep); }
.acc-mixed .acc-fig { color: #c77700; }
.acc-text { display: grid; gap: .1rem; }
.badges-title { font-size: 1rem; margin: 0 0 .5rem; }
.badges { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.bdg { position: relative; display: grid; gap: .2rem; align-content: start; padding: .7rem .7rem .65rem; border-radius: var(--r-2);
  border: 1px dashed var(--line); color: var(--ink-3); }
.bdg-on { border: 1px solid color-mix(in srgb, var(--brand-lime-deep) 45%, var(--line)); color: var(--ink);
  background: color-mix(in srgb, var(--brand-lime) 10%, var(--surface)); }
.bdg-disc { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); margin-bottom: .2rem; }
.bdg-on .bdg-disc { background: var(--brand-night); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-lime) 45%, transparent); }
.bdg-ico { width: 20px; height: 20px; background: var(--ink-3); -webkit-mask: var(--bi) center / contain no-repeat; mask: var(--bi) center / contain no-repeat; }
.bdg-on .bdg-ico { background: var(--brand-lime); }
.bdg-name { font-size: .92rem; }
.bdg-how { font-size: .78rem; line-height: 1.35; color: var(--ink-2); }
.bdg:not(.bdg-on) .bdg-how { color: var(--ink-3); }
.bdg-tag { position: absolute; top: .6rem; right: .6rem; font-size: .7rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px;
  background: var(--brand-lime-deep); color: #fff; }
.bdg-prog { display: grid; grid-template-columns: 1fr auto; gap: .4rem; align-items: center; margin-top: .25rem; }
.bdg-track { height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.bdg-fill { display: block; height: 100%; background: var(--ink-3); }
.bdg-n { font-size: .74rem; font-variant-numeric: tabular-nums; }
.bdg-new { animation: bdg-in .7s cubic-bezier(.2, 1.6, .4, 1); }
.bdg-new .bdg-disc { animation: bdg-glow 1.4s ease-out 2; }
.bdg-new .bdg-tag { background: var(--brand-yellow); color: var(--brand-night); }
@keyframes bdg-in { 0% { transform: scale(.85); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes bdg-glow { 0% { box-shadow: 0 0 0 0 rgb(255 210 31 / .8); } 100% { box-shadow: 0 0 0 16px rgb(255 210 31 / 0); } }
@media (prefers-reduced-motion: reduce) { .bdg-new, .bdg-new .bdg-disc { animation: none; } }
/* badge icons (24px paths as masks) */
.medal, .bdg { --bdg-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.3 6.9.9-5 4.8 1.2 6.8L12 17.6 5.9 20.8 7.1 14l-5-4.8 6.9-.9z'/%3E%3C/svg%3E"); }
.bdg-first_report { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2h2v20H5zm3 1h11l-2.5 4.5L19 12H8z'/%3E%3C/svg%3E"); }
.bdg-first_to_spot { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6.5 5 2.7 9.2 1.5 12c1.2 2.8 5 7 10.5 7s9.3-4.2 10.5-7C21.3 9.2 17.5 5 12 5zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-6a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E"); }
.bdg-helping_hand { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='7' r='3.5'/%3E%3Ccircle cx='17' cy='8' r='3'/%3E%3Cpath d='M1 20c0-4 3.1-7 7-7s7 3 7 7zm15 0c0-2.4-.8-4.6-2.2-6.2A6 6 0 0 1 23 19v1z'/%3E%3C/svg%3E"); }
.bdg-on_the_spot { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.bdg-good_news { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 4.8 11.5 3 13.3l6.5 6.5L21 8.3l-1.8-1.8z'/%3E%3C/svg%3E"); }
.bdg-all_rounder { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='5.5' r='3.5'/%3E%3Ccircle cx='5.5' cy='17' r='3.5'/%3E%3Ccircle cx='18.5' cy='17' r='3.5'/%3E%3C/svg%3E"); }
.bdg-regular { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3v18H4V4h3zM6 9v11h12V9zm2 2h3v3H8z'/%3E%3C/svg%3E"); }
.bdg-sharp_eye { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 3a7 7 0 1 1 0 14 7 7 0 0 1 0-14zm0 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm0 2.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3z'/%3E%3C/svg%3E"); }

/* ---------- map: big "My location" button (map.js; replaces the small MapLibre geolocate button) ---------- */
.map-page .maplibregl-ctrl-group:has(.maplibregl-ctrl-geolocate) { display: none; }
.map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.map-page .map-top .map-actions .map-tools { position: static; }
.locate-big { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: 0 1.1rem 0 .8rem; border-radius: 999px;
  border: 2px solid var(--brand-night); background: var(--brand-night); color: #fff; font: 800 1rem var(--body);
  box-shadow: var(--shadow); cursor: pointer; white-space: nowrap; }
.locate-big:hover { background: color-mix(in srgb, var(--brand-night) 85%, var(--brand-lime)); }
.locate-big:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.loc-ico { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--brand-lime); flex: none; }
.loc-ico::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--brand-lime); }
.loc-busy .loc-ico { animation: loc-spin 1s linear infinite; border-top-color: transparent; }
.loc-busy .loc-ico::after { inset: 6px; }
.loc-on .loc-ico::after { background: #4cc3ff; }
.loc-on .loc-ico { border-color: #4cc3ff; }
.loc-err { background: #fff; color: #b3191d; border-color: #b3191d; }
.loc-err .loc-ico { border-color: #b3191d; }
.loc-err .loc-ico::after { background: #b3191d; }
[data-theme="dark"] .locate-big:not(.loc-err) { border-color: var(--brand-lime); }
@keyframes loc-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .locate-big { min-height: 42px; font-size: .95rem; } }
@media (prefers-reduced-motion: reduce) { .loc-busy .loc-ico { animation: none; } }

/* profile picture (account) */
.acct-who { display: flex; align-items: center; gap: .9rem; }
.acct-who h1 { margin: 0; }
.avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; overflow: hidden; display: inline-grid; place-items: center;
  background: var(--action-soft); border: 2px solid var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar .avatar-icon { width: 62%; height: 62%; background: var(--action);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.5'/%3E%3Cpath d='M3 21.5c0-4.6 4-7.5 9-7.5s9 2.9 9 7.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.5'/%3E%3Cpath d='M3 21.5c0-4.6 4-7.5 9-7.5s9 2.9 9 7.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.avatar-lg { width: 88px; height: 88px; }
.pic-row { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; flex-wrap: wrap; }
.pic-actions { display: grid; gap: .35rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* report: "Already reported here by N neighbours" */
.near-box { display: flex; align-items: center; gap: .75rem; margin: 0 0 .75rem; padding: .6rem .75rem; border: 2px solid var(--action);
  border-radius: var(--r-1); background: var(--action-soft); }
.near-box .near-text { flex: 1; display: grid; gap: .1rem; font-size: .9rem; }
.near-box .btn { flex: none; }

/* ---------- internet (one service per provider, grouped: docs/SERVICES.md) ---------- */
.svc-internet, .svc-isp_liquid, .svc-isp_telone, .svc-isp_utande, .svc-isp_powertel {
  --svc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 18.5a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5zM12 13c-2 0-3.8.8-5.1 2.1l1.6 1.6A4.9 4.9 0 0 1 12 15.3c1.4 0 2.6.5 3.5 1.4l1.6-1.6A7.2 7.2 0 0 0 12 13zm0-4.6c-3.3 0-6.3 1.3-8.5 3.5l1.6 1.6a9.8 9.8 0 0 1 13.8 0l1.6-1.6A12 12 0 0 0 12 8.4zM12 3.8c-4.6 0-8.8 1.9-11.9 4.9l1.6 1.6a14.5 14.5 0 0 1 20.6 0l1.6-1.6A16.8 16.8 0 0 0 12 3.8z'/%3E%3C/svg%3E"); }
.svc-internet[aria-checked="true"] .svc-ico { color: #b794ff; }
.rep-banner.svc-internet, .rep-banner[class*="svc-isp_"], .view-banner[class*="svc-isp_"], .account .svc-internet,
.account [class*="svc-isp_"] { --svc: #7c4dff; }
.report-page .pin[class*="svc-isp_"] { border-color: #7c4dff; }
.bi-wifi { color: #7c4dff; }
.isp-pick { position: absolute; z-index: 3; top: 4.1rem; left: calc(360px + 2rem); display: inline-flex; flex-wrap: wrap; gap: .35rem;
  padding: 3px; }
.isp-pick[hidden] { display: none; }
.isp-chip { min-height: 34px; padding: 0 .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 700 .85rem var(--body); cursor: pointer; box-shadow: var(--shadow); }
.isp-chip:hover { border-color: #7c4dff; }
.isp-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.isp-chip[aria-checked="true"] { background: #7c4dff; border-color: #7c4dff; color: #fff; }
.report-page .isp-pick { left: .75rem; }
.map-page .map-top .isp-pick { position: static; padding: 0; }
body.svc-internet .map-page .svc-switch ~ .map-tools, body.svc-internet.map-page .svc-switch ~ .map-tools { top: 7rem; }
body.svc-internet.report-page .locate-btn { top: 7rem; }
@media (max-width: 700px) {
  .isp-pick, .report-page .isp-pick { left: .6rem; top: 3.5rem; right: .6rem; }
  body.svc-internet.report-page .locate-btn { top: 6.3rem; }
}

/* phones: four services don't fit as words - the chosen one keeps its name, the others are icons (names in aria-label) */
@media (max-width: 700px) {
  .svc[aria-checked="false"] .svc-txt { display: none; }
  .svc[aria-checked="false"] { padding: 0 .55rem; }
  .svc[aria-checked="false"] .svc-ico { width: 20px; height: 20px; }
}

/* ---------- safety promise: home dashboard, report form, /safety ---------- */
.safe-shield { --c: #0e9f6e; display: inline-block; flex: none; width: 22px; height: 22px; background: var(--c);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.6 8 11 4.6-1.4 8-6 8-11V5zm-1.2 14.2-3.9-3.9 1.4-1.4 2.5 2.5 5-5 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.6 8 11 4.6-1.4 8-6 8-11V5zm-1.2 14.2-3.9-3.9 1.4-1.4 2.5 2.5 5-5 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.dash-safe { display: flex; gap: .6rem; align-items: flex-start; text-align: left; max-width: 40ch; margin: 1rem 0 0;
  padding: .6rem .8rem; border-radius: 12px; background: rgba(14, 159, 110, .18); border: 1px solid rgba(78, 214, 160, .45);
  color: #e6f4ee; font-size: .92rem; line-height: 1.45; animation: rb-in .6s ease-out 1.2s both; }
.dash-safe .safe-shield { --c: #4ed6a0; margin-top: 1px; }
.dash-safe a { color: #9ff0cc; }
.safe-note { display: flex; gap: .5rem; align-items: flex-start; padding: .55rem .65rem; border-radius: 10px; color: var(--ink-2);
  background: color-mix(in srgb, #0e9f6e 9%, var(--surface)); border: 1px solid color-mix(in srgb, #0e9f6e 35%, var(--line)); }
.safe-note .safe-shield { width: 18px; height: 18px; margin-top: 1px; }
.safe-promise { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; margin: 1.2rem 0; border-radius: var(--r-2);
  background: color-mix(in srgb, #0e9f6e 12%, var(--surface)); border: 1px solid color-mix(in srgb, #0e9f6e 45%, var(--line));
  border-left: 6px solid #0e9f6e; }
.safe-promise .safe-shield { width: 36px; height: 36px; }
.safe-promise p { margin: 0; }
.safe-promise .safe-title { font-weight: 800; font-size: 1.15rem; margin-bottom: .25rem; }
.safe-list li { margin-bottom: .6rem; }
@media (prefers-reduced-motion: reduce) { .dash-safe { animation: none; } }
@media (max-width: 700px) {
  .isp-pick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: .3rem; padding-bottom: 4px; }
  .isp-pick::-webkit-scrollbar { display: none; }
  .isp-chip { flex: none; min-height: 32px; padding: 0 .7rem; font-size: .82rem; }
}

/* ---------- donate / supporters ---------- */
.stiers { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 1.2rem 0; }
.stier { --tier: #e0a800; padding: 1rem 1.1rem; border-radius: var(--r-2); border: 1px solid color-mix(in srgb, var(--tier) 45%, var(--line));
  border-top: 6px solid var(--tier); background: color-mix(in srgb, var(--tier) 8%, var(--surface)); }
.stier-name { font-weight: 800; font-size: 1.1rem; margin: 0 0 .2rem; display: flex; gap: .45rem; align-items: center; font-family: var(--display); }
.stier-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tier); }
.stier-from { margin: 0 0 .5rem; color: var(--ink-2); }
.stier ul { margin: 0; padding-left: 1.1rem; }
.account-tag { --tier: #0e9f6e; padding: .7rem .9rem; border-radius: 10px; border-left: 5px solid var(--tier);
  background: color-mix(in srgb, var(--tier) 10%, var(--surface)); font-weight: 600; }
.supporter-tag { --tier: #e0a800; display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border-radius: 999px;
  background: color-mix(in srgb, var(--tier) 18%, var(--surface)); border: 1px solid var(--tier); font-weight: 800; font-size: .82rem; }
.site-nav .nav-donate { color: var(--brand-lime, #8fd400); }
/* services added by admins: icons by name (the built-in ones keep their own classes above) */
.svc-ico[data-icon="flame"] { --svc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c1 4-3 6-3 10a3 3 0 0 0 6 0c0-1.5-.6-2.6-1.4-3.6C16.5 9.5 19 12.4 19 15a7 7 0 0 1-14 0c0-5.5 5-8 7-13z'/%3E%3C/svg%3E"); }
.svc-ico[data-icon="road"] { --svc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h2l-1 20H6zM13 2h2l3 20h-4zM11.2 6h1.6v3h-1.6zm0 5h1.6v3h-1.6zm0 5h1.6v3h-1.6z'/%3E%3C/svg%3E"); }
.svc-ico[data-icon="phone"], .svc-ico[data-icon="signal"] { --svc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 20h3v-4H3zm5 0h3v-8H8zm5 0h3V8h-3zm5 0h3V3h-3z'/%3E%3C/svg%3E"); }
.svc-ico[data-icon="bus"] { --svc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h14a2 2 0 0 1 2 2v12h-2v2h-3v-2H8v2H5v-2H3V5a2 2 0 0 1 2-2zm0 3v5h14V6zm2 8a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm10 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z'/%3E%3C/svg%3E"); }
.svc-ico[data-icon="alert"] { --svc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22zm-1 7h2v6h-2zm0 8h2v2h-2z'/%3E%3C/svg%3E"); }
.svc[data-color][aria-checked="true"] .svc-ico { color: var(--svc-color); }

/* comment menu: report a comment / hide this person (0.15.0) */
.voices .voice-menu { display: inline; margin-left: .3rem; }
.voices .voice-more { font-size: 1rem; line-height: 1; padding: 0 .3rem; color: #6b7872; }
.voices .voice-acts { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .2rem; font-size: .8rem; }
.hidden-people { list-style: none; padding: 0; margin: .5rem 0; }
.hidden-people li { display: flex; gap: .6rem; align-items: center; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--line, #e3e8e5); }
.hidden-people q { color: var(--ink2, #44514b); }

/* donate: give online (Paynow EcoCash / card, PayPal) - 0.15.0 */
.pay-box { display: grid; gap: .9rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); max-width: 560px; }
.pay-amounts { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pay-amounts legend { font-weight: 800; margin-bottom: .4rem; }
.pay-amt[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: var(--action-ink, #fff); }
.pay-other input { width: 7.5rem; min-height: 44px; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: var(--r-1); font: inherit; background: var(--paper, #fff); color: var(--ink); }
.pay-methods { display: flex; flex-wrap: wrap; gap: .5rem; }
.pay-method { flex: 1 1 150px; font-weight: 800; }
.pay-method[aria-pressed="true"] { outline: 3px solid var(--action); }
.pay-ecocash { display: grid; gap: .5rem; }
.pay-result { padding: .9rem 1rem; border-radius: var(--r-1); border-left: 5px solid var(--action); background: var(--action-soft); font-weight: 600; margin: 1rem 0; }
.pay-result.ok { border-left-color: #16a34a; }
.pay-result.err { border-left-color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header navigation (0.15.x) ----------
 * One row: logo, live counts, links, account, Report, theme. Links come in tiers (base.html): "Fault map" always,
 * How it works / Android app / Donate from 1200 px (below that they move into "More"), the rest always in "More".
 * 900 px and below: the links, More and account fold into one grouped menu (Use ZimWatt / Learn / Help).
 * The current page gets a lime underline; More shows it too when the current page is inside it. */
.site-head .wrap { width: min(1480px, 100% - 2.5rem); }
.brand, .live { flex-shrink: 0; }
.brand .wordmark { white-space: nowrap; }
.brand { order: 0; }
.live { order: 1; }
.site-nav { order: 2; display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.account-link { order: 3; }
.report-cta { order: 4; }
.theme-btn { order: 5; flex-shrink: 0; }
.menu-toggle { order: 6; display: none; }
.nav-drawer { order: 7; }

.site-nav > a, .more-btn, .account-link {
  position: relative; display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0 .75rem;
  color: #c9d3dc; text-decoration: none; white-space: nowrap; font: 600 .95rem var(--body);
  border-radius: var(--r-1); background: none; border: 0; cursor: pointer; }
.site-nav > a:hover, .more-btn:hover, .more-btn[aria-expanded="true"], .account-link:hover { color: #fff; background: rgb(255 255 255 / .07); }
.site-nav > a[aria-current="page"], .more-btn.has-current, .account-link[aria-current="page"] { color: #fff; }
.site-nav > a[aria-current="page"]::after, .more-btn.has-current::after, .account-link[aria-current="page"]::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 3px; height: 3px; border-radius: 3px; background: var(--brand-lime); }
.site-nav .nav-donate { color: var(--brand-lime); }
.caret { width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.more-btn[aria-expanded="true"] .caret { transform: translateY(1px) rotate(-135deg); }
.account-link { border: 1px solid rgb(255 255 255 / .25); margin-left: .35rem; }
.account-link.signed-in { border-color: rgb(143 212 0 / .45); }

.more { position: relative; }
.more-menu { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; min-width: 220px; padding: .4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--shadow);
  display: grid; }
.more-menu[hidden] { display: none; }
.more-menu a { padding: .6rem .8rem; border-radius: var(--r-1); color: var(--ink); text-decoration: none; font-weight: 600; }
.more-menu a:hover { background: var(--action-soft); }
.more-menu a[aria-current="page"] { background: var(--action-soft); box-shadow: inset 3px 0 0 var(--action); }
.more-menu .nav-donate { color: var(--action); }
.more-menu .m2 { display: none; }          /* wide screens: How it works / Android app / Donate are in the bar */

.site-head :focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 2px; }

/* 901-1199 px: Fault map + More only */
@media (max-width: 1199px) {
  .site-nav > a.t2 { display: none; }
  .more-menu .m2 { display: block; }
}
@media (max-width: 1060px) { .live .lv:not(.lv-out) { display: none; } }

/* 900 px and below: one grouped menu */
.nav-drawer { display: none; }
@media (max-width: 900px) {
  .site-head .wrap { flex-wrap: wrap; padding-block: .5rem; gap: .5rem; }
  .site-nav, .account-link { display: none; }
  .report-cta { margin-left: auto; }
  .menu-toggle { display: inline-flex; align-items: center; background: none; border: 1px solid rgb(255 255 255 / .25);
    color: #fff; border-radius: var(--r-1); min-height: 40px; padding: 0 .8rem; font: 600 .95rem var(--body); cursor: pointer; }
  .menu-toggle[aria-expanded="true"] { background: rgb(255 255 255 / .1); }
  .theme-btn { order: 7; }
  .live { order: 8; width: 100%; justify-content: center; margin: 0 0 .1rem; padding: .2rem; }
  .live .lv:not(.lv-out) { display: inline-flex; }
  .live-panel { top: calc(100% + 2px); }
  .nav-drawer:not([hidden]) { display: grid; order: 9; width: 100%; gap: .2rem 1.5rem; padding: .3rem 0 .8rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .nd-group { display: grid; align-content: start; }
  .nd-title { margin: .6rem 0 .2rem; padding: 0 .7rem; font: 700 .8rem var(--body); color: #8b98a5; letter-spacing: .01em; }
  .nav-drawer a { display: flex; align-items: center; min-height: 44px; padding: 0 .7rem; border-radius: var(--r-1);
    color: #dbe3ea; text-decoration: none; font-weight: 600; }
  .nav-drawer a:hover { background: rgb(255 255 255 / .07); color: #fff; }
  .nav-drawer a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / .08); box-shadow: inset 3px 0 0 var(--brand-lime); }
  .nav-drawer .nav-donate { color: var(--brand-lime); }
}

/* ---------- town bar (under the navigation) ---------- */
.town-bar { background: #10161d; border-top: 1px solid rgb(255 255 255 / .06); border-bottom: 1px solid rgb(255 255 255 / .06); }
.town-bar-in { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; padding: .3rem 0;
  mask-image: linear-gradient(90deg, #000 92%, transparent); }
.town-bar-in::-webkit-scrollbar { display: none; }
.town-bar a { flex: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 34px; padding: 0 .65rem;
  border-radius: 999px; color: #aebbc7; text-decoration: none; font: 600 .86rem var(--body); white-space: nowrap; }
.town-bar a:hover { color: #fff; background: rgb(255 255 255 / .07); }
.town-bar a[aria-current="page"] { color: var(--brand-night); background: var(--brand-lime); }
.town-bar .tb-all { color: var(--brand-lime); }
.tb-off { min-width: 1.35em; height: 1.35em; padding: 0 .3em; border-radius: 999px; background: #e5484d; color: #fff;
  font: 800 .72rem/1.35em var(--body); text-align: center; }
.map-page .town-bar { display: none; }      /* the map keeps its full height; towns are one tap away on the dashboard */

/* ---------- home dashboard ---------- */
.dash-page { --k-power: #f5b800; --k-water: #3ba0ff; --k-internet: #9b7bff; --k-refuse: #22c58b; }
.dash-page .k-power { --k: var(--k-power); } .dash-page .k-water { --k: var(--k-water); }
.dash-page .k-internet { --k: var(--k-internet); } .dash-page .k-refuse { --k: var(--k-refuse); }
.kdot { display: inline-block; width: .62em; height: .62em; border-radius: 50%; background: var(--k, #8a948f); flex: none; }

.dash-hero { background: var(--brand-night); color: #e9eef2; }
.dash-hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: stretch;
  padding: 2rem 0 2.2rem; }
.dash-crumb { margin: 0 0 .4rem; font-size: .9rem; color: #9fb0bf; }
.dash-crumb a { color: #cfe0ee; }
.dash-title { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.05; margin: 0 0 1rem; color: #fff; text-wrap: balance; }
.dash-big { font-size: 1.15rem; margin: 0 0 .9rem; color: #cfd8df; }
.dash-big strong { display: block; font-family: var(--display); font-stretch: 118%; font-weight: 800; color: var(--brand-lime);
  font-size: clamp(3.2rem, 7vw, 5.2rem); line-height: .9; letter-spacing: -.01em; }
.dash-kinds { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .35rem; }
.dash-kinds li { display: flex; align-items: center; gap: .55rem; font-size: 1rem; color: #cfd8df; }
.dash-kinds li .kdot { width: .75em; height: .75em; box-shadow: 0 0 10px var(--k); }
.dash-kinds b { color: #fff; font-family: var(--display); font-stretch: 112%; font-size: 1.15rem; margin-left: auto; min-width: 2ch; text-align: right; }
.dash-kinds li { max-width: 22rem; }
.dash-updated { font-size: .85rem; color: #93a3b1; margin: .9rem 0 0; }
.dash-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.btn-lime { background: var(--brand-lime); border-color: var(--brand-lime); color: var(--brand-night); font-weight: 800; }
.btn-lime:hover { background: var(--brand-yellow); border-color: var(--brand-yellow); }
.btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .3); }
.btn-ghost:hover { border-color: #fff; }
.dash-map { min-height: 420px; border-radius: var(--r-2); overflow: hidden; background: #0d1217; border: 1px solid rgb(255 255 255 / .08); }

.dash-body { padding: 1.6rem 0 3rem; }
.dash-switch { position: sticky; top: 0; z-index: 5; display: flex; gap: .4rem; flex-wrap: wrap; padding: .7rem 0; margin-bottom: .6rem;
  background: var(--paper); }
.dsw { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .92rem var(--body); cursor: pointer; }
.dsw[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dash-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; align-items: start; }
.dash-body h2 { font-family: var(--display); font-stretch: 110%; font-size: 1.45rem; margin: .4rem 0 .2rem; }
.dash-sub { color: var(--ink-2); margin: 0 0 1rem; }
.town-group { margin: 0 0 1.3rem; }
.town-group h3 { display: flex; align-items: baseline; gap: .6rem; font-size: 1.05rem; margin: 0 0 .5rem;
  padding-bottom: .35rem; border-bottom: 2px solid var(--ink); }
.town-group h3 a { color: var(--ink); text-decoration: none; }
.town-group h3 a:hover { text-decoration: underline; }
.tg-n { font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .45rem; }
.area a { display: grid; gap: .2rem; height: 100%; padding: .55rem .7rem; border-radius: var(--r-1); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; }
.area a:hover { border-color: var(--ink-3); }
.area-name { font-weight: 800; }
.off { display: flex; align-items: center; gap: .4rem; font-size: .84rem; color: var(--ink-2); }
.dash-empty { padding: 1rem 1.1rem; border-radius: var(--r-1); background: var(--surface); border: 1px dashed var(--line); color: var(--ink-2); }

.week-list { list-style: none; margin: .8rem 0 .6rem; padding: 0; counter-reset: wk; }
.week-list li { counter-increment: wk; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto auto; align-items: center;
  gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.week-list li::before { content: counter(wk); font: 800 .95rem var(--display); color: var(--ink-3); }
.week-list li.wk-none { display: block; color: var(--ink-2); }
.week-list li.wk-none::before { content: none; }
.wk-name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.wk-town { display: block; font-weight: 500; font-size: .8rem; color: var(--ink-3); }
.wk-bars { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.wk-bars i { width: 7px; height: var(--h, 4%); min-height: 3px; border-radius: 2px; background: #e5484d; }
.wk-bars i.zero { background: var(--line); }
.wk-bars i.today { background: transparent; box-shadow: inset 0 0 0 1.5px #e5484d; }
.wk-bars i.today.zero { box-shadow: inset 0 0 0 1.5px var(--line); }
.wk-total { font-weight: 800; white-space: nowrap; text-align: right; }

.dash-towns { margin-top: 2.2rem; }
.towns-table { width: 100%; max-width: 760px; border-collapse: collapse; margin: .6rem 0; }
.towns-table th, .towns-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
.towns-table thead th { font-size: .85rem; color: var(--ink-3); font-weight: 700; }
.towns-table td { font-weight: 800; }
.towns-table td.zero { color: var(--ink-3); font-weight: 500; }
.towns-table td[class^="k-"] { color: var(--ink); box-shadow: inset 3px 0 0 var(--k); }
.towns-table tbody th a { color: var(--ink); }

.dash-app { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.5rem; border-radius: var(--r-2); background: var(--brand-night); color: #dfe7ee; }
.dash-app h2 { color: #fff; margin-top: 0; }
.dash-app p { margin: .3rem 0 0; max-width: 46ch; }
.dash-app a { color: var(--brand-lime); }
.store-badges { display: flex; flex-wrap: wrap; gap: .7rem; }
.store-badge { display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: .35rem 1.1rem .35rem .85rem;
  border-radius: 12px; background: #000; color: #fff; border: 1px solid rgb(255 255 255 / .35); cursor: not-allowed; opacity: .9; }
.store-badge svg { width: 26px; height: 26px; fill: currentColor; }
.store-badge span { display: grid; font: 700 1.15rem/1.1 var(--body); }
.store-badge small { font: 500 .68rem var(--body); color: #c3ccd4; }

.towns-grid { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .4rem; }
.towns-grid a { display: flex; justify-content: space-between; align-items: center; padding: .55rem .75rem; border-radius: var(--r-1);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.towns-grid a:hover { border-color: var(--ink-3); }

@media (max-width: 900px) {
  .dash-hero-in { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.3rem 0 1.4rem; }
  .dash-map { min-height: 300px; order: 2; }
  .dash-cols { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 520px) {
  .area-list { grid-template-columns: 1fr; }
  .dash-switch { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .dsw { flex: none; }
  .week-list li { grid-template-columns: 1.4rem minmax(0, 1fr) auto; }
  .wk-bars { grid-column: 2 / 4; }
}
.map-town { font: 600 .68rem var(--body); color: #c6d2dc; text-shadow: 0 0 3px #10161d, 0 0 6px #10161d; pointer-events: none; white-space: nowrap; }
.map-town.big { font-size: .8rem; color: #e3ebf1; }
@media (max-width: 520px) {
  .week-list li { grid-template-columns: 1.4rem minmax(0, 1fr) auto auto; gap: .5rem; }
  .wk-bars { grid-column: auto; gap: 2px; }
  .wk-bars i { width: 5px; }
  .wk-total .faint { display: none; }
}
/* dashboard service icons (Material Icons, templates/site/_kind_icons.html) */
.kico { width: 1.1em; height: 1.1em; fill: var(--k, currentColor); flex: none; }
.dash-kinds .kico { width: 1.25em; height: 1.25em; filter: drop-shadow(0 0 6px var(--k)); }
.dsw .kico { width: 1.15em; height: 1.15em; }
.dsw[aria-pressed="true"] .kico { fill: currentColor; }
.off { gap: .5rem; padding: .1rem 0; }
.off b { color: var(--ink); font-weight: 700; }
.kbadge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: color-mix(in srgb, var(--k) 16%, var(--surface)); }
.kbadge .kico { width: 17px; height: 17px; }
.k-power .kbadge .kico { fill: color-mix(in srgb, var(--k) 80%, #000); }

/* outage popup above the outage badges: a badge redrawn by a live update must never cover the open popup */
.maplibregl-marker { z-index: 1; }
.maplibregl-popup { z-index: 3; }
.dash-map.zoomed-in .map-town { display: none; }

/* outage popup on phones: smaller, so it fits between the banner at the top and the list at the bottom */
@media (max-width: 760px) {
  .maplibregl-popup { max-width: min(80vw, 270px) !important; }
  .maplibregl-popup-content { max-height: min(26vh, 210px); padding: 8px 10px 10px; font-size: .84rem; line-height: 1.35; }
  .maplibregl-popup-content .btn { min-height: 32px; font-size: .78rem; padding: .4em .7em; }
  .maplibregl-popup-content .pchip { font-size: .76rem; }
}

/* ---------- shared: Material icons (templates/site/_kind_icons.html) ---------- */
.mi { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; vertical-align: -.22em; }

/* ---------- Donate ---------- */
.give-hero { background: var(--brand-night); color: #e9eef2; padding: 2.6rem 0 2.2rem; }
.give-title { font-family: var(--display); font-stretch: 115%; font-weight: 800; color: #fff; margin: 0 0 .6rem;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; }
.give-lead { max-width: 56ch; margin: 0; color: #c9d4dc; font-size: 1.08rem; }
.give-body { padding: 1.6rem 0 3rem; }
.give-body h2 { font-family: var(--display); font-stretch: 110%; font-size: 1.45rem; margin: 1.6rem 0 .3rem; }
.tier-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1rem 0 0; }
.tier-card { --tier: #e0a800; position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1.3rem 1.2rem 1.2rem;
  border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--tier);
  transition: transform .2s ease, box-shadow .2s ease; }
.tier-card.tier-pop { border: 2px solid var(--tier); border-top-width: 5px; }
.tier-card.reached { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tier) 40%, transparent); }
.tier-flag { position: absolute; top: -.8rem; right: 1rem; padding: .15rem .6rem; border-radius: 999px; background: var(--tier);
  color: #10161d; font: 800 .75rem var(--body); }
.tier-card-name { display: flex; align-items: center; gap: .45rem; margin: 0; font-family: var(--display); font-size: 1.15rem; }
.tier-price { margin: 0; font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: 2.6rem; line-height: 1; }
.tier-price span { font-size: 1rem; vertical-align: .9em; margin-right: .1rem; color: var(--ink-2); }
.tier-price small { display: block; font: 500 .82rem var(--body); color: var(--ink-3); margin-top: .3rem; }
.tier-perks { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: .4rem; align-content: start; }
.tier-perks li { position: relative; padding-left: 1.4rem; font-size: .93rem; }
.tier-perks li::before { content: ""; position: absolute; left: 0; top: .3em; width: .85rem; height: .5rem;
  border-left: 2.5px solid var(--tier); border-bottom: 2.5px solid var(--tier); transform: rotate(-45deg); }
.tier-pick { width: 100%; font-weight: 800; }
.give-box { margin-top: .6rem; }
.give-box .pay-box { max-width: 640px; gap: 1rem; padding: 1.4rem; }
.amount-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.amount-big { display: inline-flex; align-items: baseline; gap: .2rem; font-family: var(--display); font-weight: 800; font-size: 2.6rem; }
.amount-big span { font-size: 1.2rem; color: var(--ink-2); }
.amount-big input { width: 5.5ch; border: 0; border-bottom: 3px solid var(--line); background: transparent; color: var(--ink);
  font: inherit; padding: 0 .1rem; }
.amount-big input:focus { outline: none; border-bottom-color: var(--brand-lime); }
.amount-tier { margin: 0; font-size: .9rem; color: var(--ink-2); }
.amount-slider { --fill: 5%; width: 100%; height: 28px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.amount-slider::-webkit-slider-runnable-track { height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-lime) var(--fill), var(--line) var(--fill)); }
.amount-slider::-moz-range-track { height: 8px; border-radius: 999px; background: var(--line); }
.amount-slider::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--brand-lime); }
.amount-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%;
  background: var(--brand-night); border: 4px solid var(--brand-lime); }
.amount-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--brand-night); border: 4px solid var(--brand-lime); }
.amount-slider:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.amount-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-3); margin-top: -.6rem; }
.chip-btn { min-height: 38px; padding: 0 .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 700 .92rem var(--body); cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.methods { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; }
.methods legend { font-weight: 800; margin-bottom: .5rem; }
.method { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: var(--r-1); border: 1.5px solid var(--line);
  background: var(--surface); cursor: pointer; }
.method:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.method:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }
.method.off { opacity: .55; cursor: not-allowed; }
.method input { accent-color: var(--brand-night); width: 18px; height: 18px; flex: none; }
.method-logo { display: inline-grid; place-items: center; width: 44px; height: 30px; border-radius: 6px; font: 900 .8rem var(--body); color: #fff; flex: none; }
.m-ecocash { background: #0057a8; } .m-paynow { background: #1f2a44; } .m-paypal { background: #003087; }
.method-txt { display: grid; line-height: 1.25; }
.method-txt span { font-size: .84rem; color: var(--ink-2); }
.btn-wide { width: 100%; }
.pay-go { min-height: 52px; font-size: 1.05rem; }
.give-faq ul { padding-left: 1.2rem; }

/* ---------- Download the app ---------- */
.app-hero { background: var(--brand-night); color: #e3eaf0; }
.app-hero-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem; align-items: center; padding: 2.4rem 0; }
.app-title { font-family: var(--display); font-stretch: 115%; font-weight: 800; color: #fff; margin: 0 0 .6rem; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; }
.app-lead { max-width: 48ch; color: #c9d4dc; font-size: 1.08rem; margin: 0 0 1.2rem; }
.app-hero .store-badges { margin-bottom: 1.2rem; }
.apk-card { display: grid; gap: .8rem; max-width: 520px; padding: 1rem 1.1rem; border-radius: var(--r-2);
  background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .14); }
.apk-card-head { display: flex; gap: .8rem; align-items: center; }
.apk-card-head strong { display: block; color: #fff; }
.apk-card-head .faint { color: #9fb0bf; font-size: .86rem; }
.apk-droid { width: 36px; height: 36px; fill: #3ddc84; flex: none; }
.apk-more summary { cursor: pointer; color: #b9c6d0; font-size: .88rem; }
.apk-more a { color: var(--brand-lime); }
.app-sha { word-break: break-all; font-size: .78rem; }
.app-wait { color: #c9d4dc; max-width: 52ch; }
.app-wait a { color: var(--brand-lime); }
.app-phone { justify-self: center; width: 210px; aspect-ratio: 9 / 18.5; border-radius: 34px; padding: 10px; background: #0b0f14;
  border: 2px solid #2b3440; box-shadow: 0 24px 60px rgb(0 0 0 / .45); }
.app-phone-screen { height: 100%; border-radius: 26px; background: linear-gradient(170deg, #1e2833, #121a22); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .55rem; padding: 1rem; }
.app-phone-name { font: 800 1.3rem var(--display); color: #fff; margin-bottom: .6rem; }
.app-phone-name b { color: var(--brand-lime); }
.app-phone-pill { width: 100%; padding: .45rem .6rem; border-radius: 10px; background: rgb(255 255 255 / .07); color: #dfe7ee;
  font-size: .72rem; font-weight: 600; border-left: 4px solid var(--k, #22c58b); animation: pill-in .6s ease both; }
.app-phone-pill.k-power { --k: #f5b800; animation-delay: .3s; } .app-phone-pill.k-water { --k: #3ba0ff; animation-delay: .7s; }
.app-phone-pill.k-back { --k: #22c58b; animation-delay: 1.1s; }
@keyframes pill-in { from { opacity: 0; transform: translateY(8px); } }
.app-body { padding: 1.4rem 0 3rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.app-body h2 { font-family: var(--display); font-stretch: 110%; font-size: 1.45rem; margin: .4rem 0 .8rem; }
.install-steps { list-style: none; counter-reset: st; margin: 0 0 1rem; padding: 0; display: grid; gap: .7rem; }
.install-steps li { counter-increment: st; position: relative; padding: .1rem 0 0 2.6rem; }
.install-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-night); color: var(--brand-lime); font: 800 .95rem var(--display); }
.install-steps strong { display: block; }
.log-list { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--line); }
.log-item { position: relative; padding: 0 0 1.1rem 1rem; }
.log-item::before { content: ""; position: absolute; left: -1.1rem; top: .35rem; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--ink-3); }
.log-latest::before { background: var(--brand-lime); border-color: var(--brand-lime); }
.log-ver { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.log-ver strong { font-family: var(--display); font-size: 1.05rem; }
.log-ver time { color: var(--ink-3); font-size: .85rem; }
.log-tag { padding: .05rem .5rem; border-radius: 999px; background: var(--brand-lime); color: var(--brand-night); font: 800 .72rem var(--body); }
.log-item ul { margin: .3rem 0 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .93rem; }
@media (max-width: 860px) {
  .app-hero-in { grid-template-columns: 1fr; }
  .app-phone { display: none; }
  .app-body { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- How it works (animations start when a section scrolls in: static/site/how.js) ---------- */
.how-hero { background: var(--brand-night); color: #e3eaf0; overflow: hidden; }
.how-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; padding: 2.6rem 0 0; }
.how-hero-in > div:first-child { padding-bottom: 2.6rem; }
.how-title { font-family: var(--display); font-stretch: 115%; font-weight: 800; color: #fff; margin: 0 0 .6rem; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; }
.how-lead { color: #c9d4dc; font-size: 1.1rem; max-width: 40ch; margin: 0 0 1.3rem; }
.street { position: relative; display: flex; align-items: flex-end; gap: 10px; height: 200px; padding: 0 0 0 8px; border-bottom: 6px solid #2b3440; }
.house { position: relative; width: 17%; background: #2a3440; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 10px; align-content: start; }
.house.h0 { height: 110px; } .house.h1 { height: 150px; } .house.h2 { height: 125px; } .house.h3 { height: 160px; } .house.h4 { height: 118px; }
.roof { position: absolute; left: -6px; right: -6px; top: -22px; height: 22px; background: #36414e; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.win { height: 18px; border-radius: 2px; background: #ffd24a; box-shadow: 0 0 14px rgb(255 210 74 / .65); animation: win-off .35s steps(2, end) forwards; }
.h0 .w1 { animation-delay: 1.0s; } .h1 .w2 { animation-delay: 1.15s; } .h2 .w1 { animation-delay: 1.3s; } .h3 .w4 { animation-delay: 1.4s; }
.h4 .w2 { animation-delay: 1.5s; } .h0 .w3 { animation-delay: 1.6s; } .h1 .w1 { animation-delay: 1.7s; } .h2 .w4 { animation-delay: 1.8s; }
.h3 .w1 { animation-delay: 1.9s; } .h4 .w3 { animation-delay: 2.0s; } .h0 .w2, .h1 .w3, .h2 .w2, .h3 .w2, .h4 .w1 { animation-delay: 2.1s; }
.h0 .w4, .h1 .w4, .h2 .w3, .h3 .w3, .h4 .w4 { animation-delay: 2.2s; }
@keyframes win-off { to { background: #1a222b; box-shadow: none; } }
.street-pin { position: absolute; left: 47%; top: 6px; width: 44px; height: 44px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) scale(0);
  background: #e5484d; display: grid; place-items: center; box-shadow: 0 6px 20px rgb(229 72 77 / .5); animation: pin-drop .5s cubic-bezier(.3, 1.6, .5, 1) 2.6s forwards; }
.street-pin span { transform: rotate(45deg); color: #fff; font: 900 1.3rem var(--display); }
@keyframes pin-drop { to { transform: rotate(-45deg) scale(1); } }
.how-body { padding: 2.2rem 0 3rem; }
.how-body h2 { font-family: var(--display); font-stretch: 110%; font-size: 1.4rem; margin: 0 0 .4rem; }
.how-steps { list-style: none; margin: 0 0 2.6rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; counter-reset: hs; }
.how-steps li { counter-increment: hs; padding: 1.2rem; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
.how-steps h2::before { content: counter(hs) ". "; color: var(--ink-3); }
.hs-ico, .hc-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: .7rem;
  background: var(--brand-night); color: var(--brand-lime); }
.hs-ico .mi, .hc-ico .mi { width: 26px; height: 26px; }
.how-sec { display: grid; gap: 1.2rem 2.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; margin: 0 0 2.8rem; }
.how-sec .levels { grid-column: 1 / -1; }
.how-text p { color: var(--ink-2); max-width: 60ch; }
.meter-demo { padding: 1.2rem; border-radius: var(--r-2); background: var(--brand-night); }
.crowd { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; margin-bottom: 1rem; }
.dude { width: 26px; height: 34px; position: relative; }
.dude::before { content: ""; position: absolute; left: 7px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-lime); }
.dude::after { content: ""; position: absolute; left: 3px; top: 15px; width: 20px; height: 18px; border-radius: 10px 10px 3px 3px; background: var(--brand-lime); }
.meter { height: 14px; border-radius: 999px; background: rgb(255 255 255 / .1); overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #e0a100, #ea6a12 45%, #d4282c); }
.levels { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.levels li { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--ink-2); }
.how-split .how-text { order: 2; }
.how-split:nth-of-type(odd) .how-text { order: 0; }
.fade-demo { display: flex; align-items: flex-end; gap: 12px; height: 150px; padding: 1.2rem; border-radius: var(--r-2); background: var(--brand-night); }
.fd { flex: 1; border-radius: 6px 6px 0 0; background: #e5484d; transform-origin: bottom; color: #fff; font: 700 .75rem var(--body); text-align: center; padding-top: .3rem; }
.f0 { height: 100%; } .f1 { height: 70%; opacity: .75; } .f2 { height: 48%; opacity: .55; } .f3 { height: 30%; opacity: .38; } .f4 { height: 16%; opacity: .22; }
.fix-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 1.2rem; border-radius: var(--r-2); background: var(--brand-night); }
.fx-cell { aspect-ratio: 1.6; border-radius: 6px; background: #d4282c; }
.how-cards { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how-card { padding: 1.2rem; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
.how-card p { color: var(--ink-2); margin: 0; }
/* the reveal animations (only when how.js runs; otherwise everything is simply shown) */
.how-js .reveal:not(.in) .how-steps li, .how-js .how-steps.reveal:not(.in) li, .how-js .how-cards.reveal:not(.in) .how-card { opacity: 0; transform: translateY(18px); }
.how-js .how-steps.reveal li, .how-js .how-cards.reveal .how-card { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.how-js .how-steps.reveal li:nth-child(2), .how-js .how-cards.reveal .how-card:nth-child(2) { transition-delay: .15s; }
.how-js .how-steps.reveal li:nth-child(3), .how-js .how-cards.reveal .how-card:nth-child(3) { transition-delay: .3s; }
.how-js .reveal:not(.in) .dude { transform: scale(0); }
.how-js .reveal .dude { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i, 0) * .22s); }
.how-js .reveal:not(.in) .meter i { transform: scaleX(0); }
.how-js .reveal .meter i { transform-origin: left; transition: transform 2.6s cubic-bezier(.3, .1, .3, 1) .2s; }
.how-js .reveal:not(.in) .lv { opacity: .25; }
.how-js .reveal .lv { transition: opacity .4s ease; }
.how-js .reveal .lv2 { transition-delay: .6s; } .how-js .reveal .lv3 { transition-delay: 1.2s; }
.how-js .reveal .lv4 { transition-delay: 1.8s; } .how-js .reveal .lv5 { transition-delay: 2.4s; }
.how-js .reveal:not(.in) .fd { transform: scaleY(1); opacity: 1; }
.how-js .reveal .fd { transition: transform 1.2s ease, opacity 1.2s ease; }
.how-js .reveal:not(.in) .f1, .how-js .reveal:not(.in) .f2, .how-js .reveal:not(.in) .f3, .how-js .reveal:not(.in) .f4 { height: 100%; opacity: 1; }
.how-js .reveal .f1, .how-js .reveal .f2, .how-js .reveal .f3, .how-js .reveal .f4 { transition: height 1.4s ease, opacity 1.4s ease; }
.how-js .reveal .f2 { transition-delay: .2s; } .how-js .reveal .f3 { transition-delay: .4s; } .how-js .reveal .f4 { transition-delay: .6s; }
.reveal.in .fx-cell.c1, .reveal.in .fx-cell.c2, .reveal.in .fx-cell.c4 { animation: fx-fixed .6s ease forwards; }
.reveal.in .fx-cell.c2 { animation-delay: .5s; } .reveal.in .fx-cell.c4 { animation-delay: 1s; }
@keyframes fx-fixed { to { background: #10b981; } }
@media (prefers-reduced-motion: reduce) {
  .win, .street-pin, .app-phone-pill { animation-duration: .01s !important; animation-delay: 0s !important; }
}
@media (max-width: 860px) {
  .how-hero-in, .how-sec { grid-template-columns: 1fr; }
  .how-split .how-text { order: 0 !important; }
  .how-steps, .how-cards { grid-template-columns: 1fr; }
  .street { height: 170px; }
}

/* ---------- About ---------- */
.about-title { font-family: var(--display); font-stretch: 112%; font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 1rem; }
.about-lead { max-width: 64ch; }
.about-services { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.about-services li { display: flex; gap: .7rem; align-items: center; padding: .8rem .9rem; border-radius: var(--r-1); background: var(--surface); border: 1px solid var(--line); }
.about-services .kico { width: 30px; height: 30px; fill: var(--k); }
.about-services .k-power { --k: #e0a800; } .about-services .k-water { --k: #1e88e5; }
.about-services .k-refuse { --k: #0e9f6e; } .about-services .k-internet { --k: #7c4dff; }
.about-services span { display: grid; font-size: .86rem; color: var(--ink-2); }
.about-services strong { color: var(--ink); font-size: 1rem; }
.about-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 2rem; }
.about-card { padding: 1.2rem; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
.about-card h2 { font-family: var(--display); font-size: 1.2rem; margin: 0 0 .3rem; }
.about-card p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Support ---------- */
.sup-hero { background: var(--brand-night); color: #e3eaf0; padding: 2.4rem 0 2rem; }
.sup-title { font-family: var(--display); font-stretch: 115%; font-weight: 800; color: #fff; margin: 0 0 .5rem; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; }
.sup-lead { color: #c9d4dc; font-size: 1.08rem; margin: 0; max-width: 52ch; }
.sup-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; padding: 1.8rem 0 3rem; align-items: start; }
.sup-form-card { padding: 1.4rem; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
.sup-form-card h2, .sup-side h2 { font-family: var(--display); font-size: 1.3rem; margin: 0 0 .9rem; }
.sup-form { display: grid; gap: .9rem; }
.sup-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.sup-form select, .sup-form textarea { width: 100%; }
.sup-done { text-align: center; padding: 1.5rem .5rem; }
.sup-done-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #10b981; color: #fff; }
.sup-done-ico .mi { width: 28px; height: 28px; }
.sup-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.sup-links a { display: flex; gap: .8rem; align-items: center; padding: .7rem .8rem; border-radius: var(--r-1); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; }
.sup-links a:hover { border-color: var(--ink-3); }
.sup-links .mi { width: 24px; height: 24px; color: var(--ink-2); }
.sup-links span span { display: block; font-size: .85rem; color: var(--ink-2); }
.sup-contact { margin: 1.4rem 0; }
@media (max-width: 860px) { .sup-body, .sup-row { grid-template-columns: 1fr; } }

/* ---------- My account: compact, tables with search ---------- */
.acct-head-acts { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-signout .mi { width: 18px; height: 18px; }
.acct-nav { position: sticky; top: 0; z-index: 4; display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; padding: .5rem 0;
  margin: .4rem 0 .6rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.acct-nav a { flex: none; padding: .35rem .8rem; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .88rem; }
.acct-nav a:hover { background: var(--line-2); color: var(--ink); }
.account .acct-sec { scroll-margin-top: 4rem; padding: 1.1rem 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.sec-head h2 { margin: 0; }
.sec-head .count { color: var(--ink-3); font-weight: 600; font-size: .9em; }
.tsearch { display: flex; align-items: center; gap: .4rem; padding: 0 .7rem; min-height: 38px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-3); }
.tsearch input { border: 0; background: transparent; color: var(--ink); font: inherit; width: 12rem; min-height: 36px; }
.tsearch input:focus { outline: none; }
.tsearch:focus-within { border-color: var(--ink); }
.tbl-wrap { margin-top: .6rem; border: 1px solid var(--line); border-radius: var(--r-1); overflow: auto; background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .78rem; color: var(--ink-3); font-weight: 700; padding: .5rem .7rem; background: var(--paper); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: .5rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.tbl .cell-main { display: flex; gap: .55rem; align-items: flex-start; }
.tbl .r-ico { margin-top: .15rem; }
.tbl .r-acts { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.tbl .p-acts { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.tbl .btn-small { min-height: 32px; padding: .3em .7em; font-size: .8rem; }
.tbl .lamps { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; }
.tbl .chip { white-space: nowrap; }
.tbl .chip-this { margin-left: .4rem; background: color-mix(in srgb, #10b981 18%, var(--surface)); color: var(--ink); }
.tbl .empty-row td, .tbl .no-match td { color: var(--ink-2); padding: .9rem .7rem; }
.tbl td:last-child { text-align: right; }
@media (max-width: 700px) {
  .tsearch { width: 100%; } .tsearch input { width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl td { padding: 0; border: 0; }
  .tbl td:first-child { grid-column: 1 / -1; }
  .tbl td:last-child { grid-column: 1 / -1; text-align: left; }
  .tbl .r-acts, .tbl .p-acts { justify-content: flex-start; margin-top: .3rem; }
  .tbl tr.empty-row, .tbl tr.no-match { display: block; }
}
@media (max-width: 760px) {
  .view-banner, #locate-me { transition: opacity .2s ease; }
  .popup-open .view-banner, .popup-open #locate-me, .popup-open .tip { opacity: 0; pointer-events: none; }
}

/* account header: picture, name and their edit buttons together */
.acct-who { align-items: flex-start; gap: 1.1rem; }
.acct-pic { position: relative; flex: none; }
.pic-edit { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-night); color: #fff; border: 3px solid var(--paper); cursor: pointer; }
.pic-edit .mi { width: 17px; height: 17px; }
.pic-edit:hover { background: var(--ink-2); }
#pic-file:focus-visible + .pic-edit, .acct-pic:focus-within .pic-edit { outline: 3px solid var(--focus); }
.acct-id { display: grid; gap: .35rem; min-width: 0; }
.acct-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.acct-name-row h1 { margin: 0; overflow-wrap: anywhere; }
.acct-id .btn-small .mi, .pic-acts .mi { width: 16px; height: 16px; margin-right: .25rem; }
.name-form { display: grid; gap: .5rem; max-width: 420px; }
.acct-id #acct-contacts { margin: 0; }
.pic-acts { align-items: center; gap: .4rem .6rem; }
@media (max-width: 520px) { .acct-who { flex-direction: column; } }

/* legal pages */
.legal-meta { color: var(--ink-3); margin: -.4rem 0 1rem; }
.legal-toc { padding: .9rem 1.1rem; border-radius: var(--r-1); background: var(--surface); border: 1px solid var(--line); margin: 1.2rem 0 1.6rem; }
.legal-toc ol { margin: 0; padding-left: 1.3rem; columns: 2; column-gap: 2rem; }
.legal-toc li { margin: .15rem 0; break-inside: avoid; }
.legal h2 { scroll-margin-top: 1rem; }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }

/* town and suburb pages: history, suburbs, nearby (SEO content with real numbers) */
.dash-hist, .dash-subs, .dash-near { margin: 2rem 0; }
.hist-table { width: 100%; max-width: 760px; }
.hist-table th[scope="row"] { display: flex; align-items: center; gap: .45rem; font-weight: 600; }
.hist-table th[scope="row"] svg { width: 1.1em; height: 1.1em; }
.towns-grid .tb-n { font-size: .78rem; color: var(--ink-3); margin-left: auto; }
.dash-near .towns-grid a { gap: .5rem; }
.wk-name a { color: inherit; }
.wk-town a { color: inherit; text-decoration: none; }
.wk-town a:hover, .wk-name a:hover { text-decoration: underline; }
.hist-table { border-collapse: collapse; font-size: .95rem; }
.hist-table th, .hist-table td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: left; }
.hist-table thead th { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.hist-table td:nth-child(2), .hist-table td:nth-child(3) { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .hist-table { font-size: .88rem; }
  .hist-table th, .hist-table td { padding: .45rem .35rem; }
  .hist-table thead th { font-size: .72rem; }
}

/* Useful info: guides hub, guide pages (contacts as tappable rows), "Get it fixed" on the dashboard */
.guides-page, .guide-page, .dash-fix { --k-power: #e0a800; --k-water: #1e88e5; --k-internet: #7c4dff; --k-tip: #3a7d0a; }
.guide-cards { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.guide-cards a { display: flex; gap: .9rem; align-items: flex-start; height: 100%; padding: 1rem 1.1rem; border-radius: var(--r-2);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.guide-cards a:hover { border-color: var(--ink-3); }
.gc-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--k, var(--k-tip)) 14%, transparent); }
.gc-ico svg { width: 26px; height: 26px; fill: var(--k, var(--k-tip)); }
.gc-body { display: grid; gap: .25rem; } .gc-body strong { font-size: 1.05rem; } .gc-body span { color: var(--ink-2); font-size: .92rem; }
.guides-page .k-power, .guide-page .k-power, .dash-fix .k-power { --k: var(--k-power); }
.guides-page .k-water, .dash-fix .k-water { --k: var(--k-water); }
.guides-page .k-internet, .dash-fix .k-internet { --k: var(--k-internet); }
.guide-note { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--r-1);
  background: var(--surface); border: 1px solid var(--line); font-size: .95rem; }
.guide-note svg, .guide h2 svg { flex: none; width: 1.2em; height: 1.2em; fill: currentColor; }
.guide h2 { display: flex; align-items: center; gap: .4rem; }
.guide-steps li { margin: .35rem 0; }
.contacts { list-style: none; padding: 0; margin: .8rem 0 1rem; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ct { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .9rem; border-radius: var(--r-1); background: var(--surface); border: 1px solid var(--line); }
.ct-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); }
.ct-ico svg { width: 20px; height: 20px; fill: var(--action); }
.ct-whatsapp .ct-ico svg { fill: #128c4a; }
.ct-body { display: grid; gap: .1rem; min-width: 0; }
.ct-label { font-size: .85rem; color: var(--ink-2); }
.ct-tag { font-size: .72rem; font-weight: 700; color: #0f7a40; background: #e3f5ea; border-radius: 999px; padding: .05rem .45rem; margin-left: .2rem; }
.ct-value { font-size: 1.15rem; font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
a.ct-value:hover { text-decoration: underline; }
.ct-note { font-size: .82rem; color: var(--ink-3); }
.guide-more .btn { margin: 0 .4rem .4rem 0; }
.guide-links { padding-left: 1.2rem; }
.dash-fix { margin: 2rem 0; }
.fix-links { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fix-links a { display: flex; align-items: center; gap: .6rem; padding: .75rem .9rem; border-radius: var(--r-1); background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.fix-links a:hover { border-color: var(--ink-3); }
.fix-links svg { flex: none; width: 24px; height: 24px; fill: var(--k, var(--k-tip)); }
[data-theme="dark"] .ct-tag { background: #12402a; color: #9fe3bb; }
.guide-page .dash-crumb { color: var(--ink-3); font-size: .9rem; margin: 0 0 .4rem; }
.guide-page .dash-crumb a { color: var(--action); }
.fix-links a { height: 100%; }

/* Follow ZimWatt (partials/social_buttons.html): round logo buttons in each service's own colour */
.social { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.social ul { list-style: none; display: flex; gap: .5rem; margin: 0; padding: 0; }
.social-label { font-size: .88rem; font-weight: 600; }
.soc { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 .85rem 0 .7rem; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; background: #3b4651; }
.soc svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.soc:hover { filter: brightness(1.12); text-decoration: none; }
.soc:focus-visible { outline: 3px solid var(--brand-lime); outline-offset: 2px; }
.soc-facebook { background: #1877f2; }
.soc-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.soc-x { background: #000; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }
.social-hero { margin-top: 1.1rem; }
.social-hero .social-label { color: #cfe0ee; }
.social-foot { margin: .4rem 0 1rem; }
.social-foot .social-label { color: inherit; }
@media (max-width: 600px) { .soc span { display: none; } .soc { padding: 0; width: 44px; height: 44px; justify-content: center; } }
