/*
 * Public site pages: homepage, About, Terms and Privacy.
 * Loaded after city-alerts-theme.css, which supplies the colours, Inter and the top bar.
 */

html { scroll-behavior: smooth; }
.lp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
[id] { scroll-margin-top: 72px; }

/* Top bar additions */
.lp-topbar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lp-topbar-end .cat-theme-toggle { margin-left: 0; }
body.cat a.lp-login { color: var(--cat-ink-text); font-size: 13px; font-weight: 600; text-decoration: none; padding: 0 4px; }
body.cat a.lp-login:hover { color: #fff; }
body.cat a.lp-report-top {
  height: 30px; padding: 0 12px; border-radius: var(--cat-radius-sm);
  background: var(--cat-accent-solid); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap;
}
body.cat a.lp-report-top:hover { background: var(--cat-accent-solid-hover); }

/* Opening section */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding: 44px 0 36px; align-items: start; }
.lp-place { margin: 0 0 10px; color: var(--cat-text-3); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.lp-hero h1 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.035em; max-width: 14ch; }
.lp-lede { margin: 16px 0 0; max-width: 60ch; color: var(--cat-text-2); font-size: 16px; line-height: 1.6; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
body.cat .lp-btn {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: var(--cat-radius-sm);
  border: 1px solid var(--cat-line-strong); background: var(--cat-surface); color: var(--cat-text);
  font-size: 14px; font-weight: 700; text-decoration: none;
}
body.cat .lp-btn:hover { border-color: var(--cat-text-3); }
body.cat .lp-btn.primary { background: var(--cat-accent-solid); border-color: var(--cat-accent-solid); color: #fff; }
body.cat .lp-btn.primary:hover { background: var(--cat-accent-solid-hover); }

.lp-emergency { background: var(--cat-ink); color: var(--cat-ink-text); border-radius: var(--cat-radius); padding: 22px 22px 18px; }
.lp-emergency h2 { margin: 0 0 12px; color: var(--cat-ink-muted) !important; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.lp-numbers { margin: 0; }
.lp-numbers div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--cat-ink-line); }
.lp-numbers dt { color: var(--cat-ink-muted); font-size: 13px; }
.lp-numbers dd { margin: 0; }
body.cat .lp-numbers a { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; font-variant-numeric: tabular-nums; }
body.cat .lp-numbers a:hover { color: #9dbcff; }
.lp-online { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--cat-ink-line); color: var(--cat-ink-muted); font-size: 13px; }
.lp-online strong { color: #fff; font-variant-numeric: tabular-nums; }

/* Main grid */
.lp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.lp-side { display: grid; gap: 24px; }
.lp-hero > *, .lp-grid > *, .lp-side > * { min-width: 0; }
.lp-card { background: var(--cat-surface); border: 1px solid var(--cat-line); border-radius: var(--cat-radius); box-shadow: var(--cat-shadow); }
.lp-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 20px 0; flex-wrap: wrap; }
.lp-card-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
body.cat .lp-card-head a { font-size: 13px; font-weight: 600; text-decoration: none; }
body.cat .lp-card-head a:hover { text-decoration: underline; }
.lp-card-sub { margin: 4px 20px 0; color: var(--cat-text-2); font-size: 13px; }
.lp-card-body { padding: 16px 20px 20px; }

/* Filters and table */
.lp-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--cat-line); }
.lp-filters label { display: block; margin-bottom: 5px; color: var(--cat-text-3); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lp-filters select {
  width: 100%; height: 36px; padding: 0 10px; border-radius: var(--cat-radius-sm);
  border: 1px solid var(--cat-line-strong); background: var(--cat-surface); color: var(--cat-text); font-size: 13px;
}
.lp-loading { padding: 32px 20px; color: var(--cat-text-2); }
.lp-table-wrap { overflow-x: auto; }
#reportTable { width: 100%; border-collapse: collapse; font-size: 13px; }
#reportTable th {
  text-align: left; padding: 10px 14px; background: var(--cat-surface-2); color: var(--cat-text-3);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--cat-line); white-space: nowrap;
}
#reportTable td { padding: 12px 14px; border-bottom: 1px solid var(--cat-line); vertical-align: top; color: var(--cat-text); }
#reportTable tr:last-child td { border-bottom: 0; }
#reportTable td.when { white-space: nowrap; color: var(--cat-text-2); font-variant-numeric: tabular-nums; }
#reportTable td.what { font-weight: 600; }
#reportTable td.status { color: var(--cat-text-2); white-space: nowrap; }
#reportTable td.status.done { color: var(--cat-green); font-weight: 600; }
.sev { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; background: var(--cat-surface-2); color: var(--cat-text-2); }
.sev.high { background: var(--cat-red-soft); color: var(--cat-red); }
.sev.medium { background: var(--cat-amber-soft); color: var(--cat-amber); }
.sev.low { background: var(--cat-green-soft); color: var(--cat-green); }
.lp-empty { padding: 28px 14px; color: var(--cat-text-2); text-align: center; }
.lp-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--cat-line); }
.lp-pager button {
  height: 32px; padding: 0 14px; border-radius: var(--cat-radius-sm); border: 1px solid var(--cat-line-strong);
  background: var(--cat-surface); color: var(--cat-text); font-size: 13px; font-weight: 600; cursor: pointer;
}
.lp-pager button:disabled { opacity: 0.45; cursor: default; }
#pageInfo { color: var(--cat-text-2); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Danger zones */
.lp-zones { list-style: none; margin: 0; padding: 0; }
.lp-zones li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--cat-line); font-weight: 600; }
.lp-zones li:first-child { border-top: 0; padding-top: 0; }
.lp-zones span { color: var(--cat-red); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-zones-none { margin: 0; color: var(--cat-text-2); }

/* City alerts */
.lp-frame { display: block; width: 100%; border: 0; }

/* Map */
.lp-section { margin-top: 24px; }
#scagMap { height: 480px; border-top: 1px solid var(--cat-line); border-bottom: 1px solid var(--cat-line); background: var(--cat-surface-2); z-index: 0; }
.lp-legend { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 14px 20px 16px; color: var(--cat-text-2); font-size: 13px; }
.lp-key { display: inline-block; vertical-align: -1px; margin-right: 8px; border-radius: 50%; }
.lp-key.dot { width: 14px; height: 14px; background: rgba(31, 79, 216, 0.2); border: 2px solid #1f4fd8; }
.lp-key.ring { width: 14px; height: 14px; background: rgba(220, 38, 38, 0.25); border: 2px solid #dc2626; }

/* Footer */
.lp-footer { margin-top: 56px; background: var(--cat-ink); color: var(--cat-ink-muted); font-size: 13px; }
.lp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 40px 24px 28px; }
.lp-footer h3 { margin: 0 0 10px; color: #fff !important; font-size: 13px; font-weight: 700; letter-spacing: 0; }
.lp-footer p { margin: 0 0 6px; }
.lp-footer ul { list-style: none; margin: 0; padding: 0; }
.lp-footer li { margin-bottom: 6px; }
body.cat .lp-footer a { color: var(--cat-ink-text); text-decoration: none; }
body.cat .lp-footer a:hover { color: #fff; text-decoration: underline; }
.lp-footer-brand { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.lp-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 24px 24px; border-top: 1px solid var(--cat-ink-line); }

/* In dark mode the ink colour is close to the page, so lift these two */
[data-theme="dark"] .lp-emergency { background: var(--cat-surface); border: 1px solid var(--cat-line-strong); }
[data-theme="dark"] .lp-footer { background: #070c18; border-top: 1px solid var(--cat-line); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .lp-emergency { background: var(--cat-surface); border: 1px solid var(--cat-line-strong); }
  :root:not([data-theme]) .lp-footer { background: #070c18; border-top: 1px solid var(--cat-line); }
}

@media (max-width: 1000px) {
  .lp-hero, .lp-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-hero { gap: 28px; }
}
@media (max-width: 720px) {
  .lp-wrap { padding: 0 16px; }
  .lp-hero { padding: 28px 0 24px; }
  .lp-hero h1 { font-size: 30px; }
  .lp-lede { font-size: 15px; }
  .lp-filters { grid-template-columns: minmax(0, 1fr); }
  #scagMap { height: 360px; }
  .lp-footer-grid { grid-template-columns: minmax(0, 1fr); padding: 32px 16px 20px; }
  .lp-footer-bottom { padding: 16px; }
}

/* Reading pages: About, Terms, Privacy */
.pg-head { padding: 44px 0 28px; border-bottom: 1px solid var(--cat-line); margin-bottom: 36px; }
.pg-head h1 { margin: 0; font-size: 36px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.pg-head p { margin: 12px 0 0; max-width: 62ch; color: var(--cat-text-2); font-size: 16px; line-height: 1.6; }
.pg-updated { display: block; margin-top: 14px; color: var(--cat-text-3); font-size: 13px; }

.pg-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.pg-layout > * { min-width: 0; }
.pg-toc { position: sticky; top: 80px; }
.pg-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--cat-line); }
body.cat .pg-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--cat-text-2); font-size: 13px; text-decoration: none; }
body.cat .pg-toc a:hover { color: var(--cat-text); border-left-color: var(--cat-line-strong); }

.pg-body { max-width: 68ch; font-size: 15.5px; line-height: 1.7; }
.pg-body section + section { margin-top: 36px; }
.pg-body h2 { margin: 0 0 10px; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.pg-body h2 .n { color: var(--cat-text-3); font-weight: 600; margin-right: 8px; font-variant-numeric: tabular-nums; }
.pg-body p { margin: 0 0 12px; color: var(--cat-text); }
.pg-body ul { margin: 0 0 12px; padding-left: 20px; }
.pg-body li { margin-bottom: 6px; }
.pg-body li::marker { color: var(--cat-text-3); }
.pg-note { margin: 0 0 12px; padding: 14px 16px; border-left: 3px solid var(--cat-accent); background: var(--cat-surface); border-radius: 0 var(--cat-radius-sm) var(--cat-radius-sm) 0; color: var(--cat-text-2); font-size: 14.5px; }
.pg-note strong { color: var(--cat-text); }

.pg-facts { margin: 0; border-top: 1px solid var(--cat-line); }
.pg-facts div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--cat-line); }
.pg-facts dt { color: var(--cat-text-3); font-size: 13px; font-weight: 600; }
.pg-facts dd { margin: 0; }

@media (max-width: 860px) {
  .pg-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pg-toc { display: none; }
}
@media (max-width: 720px) {
  .pg-head { padding: 28px 0 22px; margin-bottom: 26px; }
  .pg-head h1 { font-size: 28px; }
  .pg-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Homepage and suburb pages: one live sentence about right now, under the heading */
.lp-now { margin: 16px 0 0; padding: 10px 14px; max-width: 62ch; border-left: 3px solid var(--cat-accent); border-radius: 0 6px 6px 0; background: var(--cat-surface); color: var(--cat-text); font-size: 15px; line-height: 1.55; }
/* Top bar: keep "Log in" and "Report incident" on one line when the menu is full */
body.cat a.lp-login, body.cat a.lp-report-top { white-space: nowrap; }

/* ---------------------------------------------------------------- one width and one menu bar on every public page
   The menu bar and the page content line up at 1240px including their side padding on all pages
   (the homepage used to measure without the padding, so it was 48px narrower). */
.lp-wrap, .cat-topbar-inner { box-sizing: border-box; }

/* Report and log in: small icons, log in as an outlined button so it stands out */
.site-icon { width: 15px; height: 15px; flex: none; }
body.cat a.lp-report-top { gap: 6px; padding: 0 12px 0 10px; }
body.cat a.lp-login {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px;
  border: 1px solid var(--cat-ink-line, rgba(255, 255, 255, 0.18)); border-radius: var(--cat-radius-sm);
  color: var(--cat-ink-text); font-size: 12px; font-weight: 700; white-space: nowrap;
}
body.cat a.lp-login:hover { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06); }
/* The menu needs room for all seven items */
body.cat .cat-topbar .cat-tabs a { padding: 0 10px; }
/* The bar is at most 1240px wide, which leaves no room for the "Community safety" tagline */
body.cat .cat-topbar .cat-brand-product { display: none; }
@media (max-width: 1180px) {
  /* Smaller screens and phones: icons only for report and log in */
  body.cat a.lp-report-top span, body.cat a.lp-login span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.cat a.lp-report-top, body.cat a.lp-login { width: 32px; padding: 0; justify-content: center; }
}

/* ---------------------------------------------------------------- your area (site-chrome.php siteAreaScript)
   The button in the menu bar, the "Where are you?" box and the bar at the bottom of suburb pages */
body.cat .lp-area {
  display: inline-flex; align-items: baseline; gap: 6px; height: 30px; padding: 0 11px; max-width: 112px;
  border: 1px solid var(--cat-ink-line, rgba(255, 255, 255, 0.18)); border-radius: var(--cat-radius-sm);
  background: transparent; color: var(--cat-ink-text); font: inherit; font-size: 12px; font-weight: 700; line-height: 28px; cursor: pointer; white-space: nowrap;
}
body.cat .lp-area:hover { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06); }
body.cat .lp-area-label { display: none; }
body.cat .lp-area-name { overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 420px) { body.cat .lp-area { max-width: 84px; } }

.iw-area-open, .iw-area-open body { overflow: hidden; }
.iw-area-backdrop { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 12, 24, 0.62); }
body.cat .iw-area {
  width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; padding: 26px 24px 18px;
  background: var(--cat-surface); color: var(--cat-text); border: 1px solid var(--cat-line); border-radius: var(--cat-radius); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
body.cat .iw-area h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.01em; color: var(--cat-text); }
body.cat .iw-area-intro { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; color: var(--cat-text-2); }
body.cat .iw-area .lp-btn { cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; }
body.cat .iw-area-locate { width: 100%; justify-content: center; min-height: 44px; }
body.cat .iw-area-status { margin: 10px 0 0; font-size: 14px; color: var(--cat-text-2); line-height: 1.6; }
body.cat .iw-area-status:empty { display: none; }
body.cat .iw-area-yes { min-height: 36px; margin: 4px 0; }
body.cat .iw-area-label { display: block; margin: 20px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cat-text-3); }
body.cat .iw-area-input { width: 100%; height: 44px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--cat-text); background: var(--cat-surface); border: 1px solid var(--cat-line-strong); border-radius: var(--cat-radius-sm); }
body.cat .iw-area-input:focus { outline: 2px solid var(--cat-accent); outline-offset: 1px; }
body.cat .iw-area-results { list-style: none; margin: 6px 0 0; padding: 0; }
body.cat .iw-area-pick { width: 100%; text-align: left; padding: 10px 12px; font: inherit; font-size: 14.5px; color: var(--cat-text); background: none; border: 0; border-radius: var(--cat-radius-sm); cursor: pointer; }
body.cat .iw-area-pick:hover, body.cat .iw-area-pick:focus { background: var(--cat-surface-2); outline: none; }
body.cat .iw-area-none { padding: 10px 12px; font-size: 14px; color: var(--cat-text-2); }
body.cat .iw-area-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--cat-line); }
body.cat .iw-area-link { padding: 6px 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--cat-accent); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

body.cat .iw-area-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1500; width: calc(100% - 32px); max-width: 760px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 16px;
  background: var(--cat-surface); color: var(--cat-text); border: 1px solid var(--cat-line); border-radius: var(--cat-radius); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}
body.cat .iw-area-bar-text { flex: 1 1 260px; font-size: 14px; line-height: 1.45; }
body.cat .iw-area-bar .lp-btn { cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; min-height: 36px; }
@media (max-width: 520px) { body.cat .iw-area-bar { bottom: 8px; width: calc(100% - 16px); } body.cat .iw-area-bar .lp-btn { flex: 1 1 auto; justify-content: center; } }

/* ---------------------------------------------------------------- suburb pages: the last 12 months, questions, nearby areas */
.area-year { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 4px 0 22px; }
.area-year > div { padding: 14px 16px; border: 1px solid var(--cat-line); border-radius: var(--cat-radius); background: var(--cat-surface); }
.area-year dt { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--cat-text-3); }
.area-year dd { margin: 2px 0 4px; font-size: 28px; font-weight: 700; color: var(--cat-text); font-variant-numeric: tabular-nums; }
.area-year p { margin: 0; font-size: 13.5px; color: var(--cat-text-2); line-height: 1.5; }
.area-sub { margin: 18px 0 8px; font-size: 16px; color: var(--cat-text); }
.area-note { margin: 0 0 10px; font-size: 14px; color: var(--cat-text-2); }
.area-faq details { border-top: 1px solid var(--cat-line); }
.area-faq details:last-child { border-bottom: 1px solid var(--cat-line); }
.area-faq summary { padding: 12px 2px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--cat-text); }
.area-faq p { margin: 0 2px 14px; font-size: 14.5px; line-height: 1.6; color: var(--cat-text-2); max-width: 72ch; }
.area-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
body.cat .area-links a { display: inline-flex; padding: 6px 12px; border: 1px solid var(--cat-line-strong); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--cat-text); text-decoration: none; background: var(--cat-surface); }
body.cat .area-links a:hover { border-color: var(--cat-accent); color: var(--cat-accent); }
body.cat .lp-area-short { display: none; }
@media (max-width: 520px) {
  body.cat .lp-area-long { display: none; }
  body.cat .lp-area-short { display: inline; }
  body.cat .lp-area { max-width: 92px; padding: 0 8px; font-size: 11.5px; }
}
/* Room for the area button: the menu's spacing tightens a little on screens up to 1480px */
@media (max-width: 1480px) { body.cat .cat-topbar .cat-tabs a { padding: 0 8px; } }

/* The area section's body lines up with its heading (cards pad only their heading, 20px each side) */
.area-about { padding-bottom: 22px; }
.area-about > :not(.lp-card-head) { margin-left: 20px; margin-right: 20px; }
.area-about > .lp-card-head { padding-bottom: 14px; }
.area-about .area-year { margin-top: 0; margin-bottom: 26px; }
.area-about .area-sub { margin-top: 0; margin-bottom: 6px; }
.area-about .area-faq { margin-bottom: 26px; }
.area-about .area-faq summary { padding: 13px 0; }
.area-about .area-faq p { margin: -2px 0 14px; }
.area-about .area-note { margin-bottom: 12px; }
@media (max-width: 560px) {
  .area-about > :not(.lp-card-head) { margin-left: 16px; margin-right: 16px; }
  .area-about > .lp-card-head { padding-left: 16px; padding-right: 16px; }
}
/* Very narrow phones (375px, e.g. iPhone SE): keep the brand and the four buttons on one line */
@media (max-width: 400px) {
  body.cat .lp-topbar-end { gap: 5px; }
  body.cat .lp-area { padding: 0 7px; max-width: 74px; }
  body.cat .cat-topbar .cat-theme-toggle { padding-left: 8px; padding-right: 8px; }
}

/* A question whose answer warns of a possible outage (a spike in faults logged with the City) */
.area-faq .area-flag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; vertical-align: 1px; background: var(--cat-amber-soft); color: var(--cat-amber); }
.area-about .area-faq p.area-ahead { margin: 0 0 16px; padding: 12px 14px; border-left: 3px solid var(--cat-amber); border-radius: var(--cat-radius-sm, 6px); background: var(--cat-amber-soft); color: var(--cat-text); }

/* An alert's timeline: published, start, changes by the City, expected end, cleared; "Now" between */
.alert-tl { list-style: none; margin: 12px 0 4px; padding: 0 0 0 18px; position: relative; font-size: 13.5px; }
.alert-tl::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--cat-line); }
.alert-tl li { position: relative; display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 4px 0; color: var(--cat-text-2); }
.alert-tl li::before { content: ""; position: absolute; left: -17px; top: 9px; width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; background: var(--cat-surface); border: 2px solid var(--cat-line-strong); }
.alert-tl li.is-past::before { background: var(--cat-text-3); border-color: var(--cat-text-3); }
.alert-tl li.is-future { color: var(--cat-text); }
.alert-tl li.tl-change span { color: var(--cat-amber); font-weight: 600; }
.alert-tl li.tl-end-old span { text-decoration: line-through; }
.alert-tl time { min-width: 122px; color: var(--cat-text-3); font-variant-numeric: tabular-nums; }
.alert-tl li.is-now { color: var(--cat-accent); font-weight: 700; }
.alert-tl li.is-now::before { left: -19px; top: 7px; width: 14px; height: 14px; background: var(--cat-accent); border: 3px solid var(--cat-accent-soft); }
.alert-tl li.is-now time { color: var(--cat-accent); }
.alert-tl li.is-now span { font-weight: 500; color: var(--cat-text-2); }

/* Local sponsors: the small box of paid business listings (business-ads-lib.php) */
.ad-box-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ad-box-head h2 { margin: 0; }
.ad-box-head a { font-size: 13px; font-weight: 600; }
.ad-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ad-note { margin: 10px 0 0; font-size: 12px; color: var(--cat-text-3); }

/* Business and service cards (business-ads-lib.php). Compact; the plan shows in the card:
   area sponsor and featured are highlighted, listing and free directory cards are plain. */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.biz-grid.is-top { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.biz-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--cat-line); border-radius: var(--cat-radius); background: var(--cat-surface); overflow: hidden; }
.biz-card[hidden] { display: none; }
body.cat .biz-media { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 1; overflow: hidden; background: var(--cat-surface-2); text-decoration: none; }
.biz-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.biz-initial { font-size: 30px; font-weight: 800; color: var(--cat-text-3); }
.biz-body { display: flex; flex-direction: column; gap: 3px; flex: 1; padding: 10px 12px 12px; }
.biz-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }
.biz-badge { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.4; border: 1px solid var(--cat-line); color: var(--cat-text-2); background: var(--cat-surface-2); white-space: nowrap; }
.biz-badge.is-sponsor { background: var(--cat-accent-solid); border-color: var(--cat-accent-solid); color: #fff; }
.biz-badge.is-featured { background: var(--cat-amber-soft); border-color: var(--cat-amber); color: var(--cat-amber); }
.biz-badge.is-verified { background: var(--cat-green-soft); border-color: transparent; color: var(--cat-green); }
.biz-badge.is-emergency { background: var(--cat-red-soft); border-color: transparent; color: var(--cat-red); }
.biz-cat { margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cat-text-3); }
.biz-card h3 { margin: 0; font-size: 15px; line-height: 1.3; }
body.cat .biz-card h3 a { color: var(--cat-text); text-decoration: none; }
body.cat .biz-card h3 a:hover { text-decoration: underline; }
.biz-text { margin: 0; font-size: 13px; line-height: 1.45; color: var(--cat-text-2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.biz-where { margin: 0; font-size: 12px; color: var(--cat-text-3); }
.biz-actions { display: flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 8px; }
body.cat .biz-cta { display: inline-block; padding: 6px 12px; border-radius: var(--cat-radius-sm); border: 1px solid var(--cat-line-strong); font-size: 13px; font-weight: 700; color: var(--cat-text); text-decoration: none; text-align: center; }
body.cat .biz-cta:hover { background: var(--cat-surface-2); }
body.cat .biz-more { padding: 6px 4px; font-size: 13px; font-weight: 600; color: var(--cat-accent); text-decoration: none; }
body.cat .biz-more:hover { text-decoration: underline; }
/* Area sponsor */
.biz-card.is-area { border: 2px solid var(--cat-accent); box-shadow: 0 4px 14px rgba(16, 24, 40, 0.07); }
body.cat .biz-card.is-area .biz-cta, body.cat .bd-dialog.is-area .biz-cta.is-main { background: var(--cat-accent-solid); border-color: var(--cat-accent-solid); color: #fff; }
body.cat .biz-card.is-area .biz-cta:hover { background: var(--cat-accent-solid-hover); }
/* Featured */
.biz-card.is-featured { border-color: var(--cat-amber); }
body.cat .biz-card.is-featured .biz-cta, body.cat .bd-dialog.is-featured .biz-cta.is-main { background: var(--cat-text); border-color: var(--cat-text); color: var(--cat-surface); }
/* Free directory listings: no picture band unless they have one */
.biz-card.is-free .biz-media:not(:has(img)) { display: none; }

/* Compact lines under the big card in the Local sponsors box */
body.cat .biz-row { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--cat-line); border-radius: var(--cat-radius-sm); background: var(--cat-surface); color: var(--cat-text); text-decoration: none; }
body.cat a.biz-row:hover { border-color: var(--cat-line-strong); background: var(--cat-surface-2); }
.biz-row-media { flex: none; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--cat-surface-2); display: grid; place-items: center; }
.biz-row-media img { width: 100%; height: 100%; object-fit: cover; }
.biz-row-media .biz-initial { font-size: 20px; }
.biz-row-text { display: grid; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.4; color: var(--cat-text-2); }
.biz-row-text strong { font-size: 14.5px; color: var(--cat-text); }
.biz-row-text em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--cat-accent); }
.ad-spot { margin-top: 10px; }
.ad-spot + .ad-list { margin-top: 8px; }

/* The directory page (/businesses) */
.bd-head { padding: 36px 0 4px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: end; justify-content: space-between; }
.bd-head h1 { margin: 6px 0 8px; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.bd-head p { margin: 0; max-width: 66ch; color: var(--cat-text-2); font-size: 15.5px; }
.bd-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.bd-tools input, .bd-tools select { font: inherit; font-size: 14.5px; padding: 9px 12px; border-radius: var(--cat-radius-sm); border: 1px solid var(--cat-line-strong); background: var(--cat-surface); color: var(--cat-text); }
.bd-tools input { flex: 1 1 260px; min-width: 0; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body.cat .bd-chip { font: inherit; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--cat-line); background: var(--cat-surface); color: var(--cat-text-2); cursor: pointer; }
body.cat .bd-chip[aria-pressed="true"] { background: var(--cat-text); border-color: var(--cat-text); color: var(--cat-surface); }
body.cat .bd-chip.is-toggle { border-style: dashed; }
body.cat .bd-chip.is-toggle[aria-pressed="true"] { border-style: solid; }
.bd-count { margin: 10px 0 0; font-size: 13px; color: var(--cat-text-3); }
.bd-section { margin-top: 20px; }
.bd-section[hidden] { display: none; }
.bd-section h2 { margin: 0 0 10px; font-size: 17px; }
.bd-moreall { margin-top: 14px; }
body.cat .bd-moreall[hidden] { display: none; }
.bd-empty { padding: 22px 20px; margin-top: 18px; text-align: center; color: var(--cat-text-2); }
.bd-cta { margin-top: 30px; padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.bd-cta h2 { margin: 0 0 4px; font-size: 17px; }
.bd-cta p { margin: 0; color: var(--cat-text-2); max-width: 70ch; }

/* Details view */
.bd-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--cat-line); border-radius: var(--cat-radius); background: var(--cat-surface); color: var(--cat-text); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.bd-dialog::backdrop { background: rgba(10, 16, 32, 0.55); }
.bd-dialog.is-area { border: 2px solid var(--cat-accent); }
.bd-dialog.is-featured { border-color: var(--cat-amber); }
body.cat .bd-close { position: absolute; top: 10px; right: 10px; z-index: 2; font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--cat-line); background: var(--cat-surface); color: var(--cat-text); cursor: pointer; }
.bd-media { position: relative; aspect-ratio: 16 / 7; background: var(--cat-surface-2); display: grid; place-items: center; }
.bd-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.bd-body { padding: 16px 20px 20px; display: grid; gap: 6px; }
.bd-dialog-body > .bd-body:first-child { padding-top: 52px; }
.bd-title { margin: 0; font-size: 22px; line-height: 1.2; }
.bd-text { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: var(--cat-text-2); }
.bd-facts { margin: 8px 0 0; display: grid; gap: 8px; }
.bd-facts > div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; font-size: 14px; }
.bd-facts dt { font-weight: 700; color: var(--cat-text-3); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px; }
.bd-facts dd { margin: 0; color: var(--cat-text); }
.bd-services { margin: 0; padding-left: 18px; }
.bd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
body.cat .bd-actions .biz-cta { padding: 9px 16px; font-size: 14px; }
.bd-share { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--cat-line); font-size: 13.5px; }
body.cat .bd-copy { font: inherit; font-size: 13.5px; font-weight: 600; padding: 0; border: 0; background: none; color: var(--cat-accent); cursor: pointer; }
@media (max-width: 560px) {
  .bd-head h1 { font-size: 26px; }
  .bd-tools select { flex: 1 1 140px; }
  .bd-facts > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Police crime statistics (police-stats.php). One series, one hue: the accent; text stays in text colours. */
.ps-crumbs { padding-top: 20px; font-size: 13px; color: var(--cat-text-3); }
body.cat .ps-crumbs a { color: var(--cat-text-2); }
.ps-head { padding: 14px 0 6px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 18px 30px; align-items: end; }
.ps-head h1 { margin: 6px 0 8px; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.ps-head p { margin: 0; color: var(--cat-text-2); font-size: 15.5px; max-width: 70ch; }
.ps-find { display: grid; gap: 6px; }
.ps-find label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cat-text-3); }
.ps-find input { font: inherit; padding: 10px 12px; border-radius: var(--cat-radius-sm); border: 1px solid var(--cat-line-strong); background: var(--cat-surface); color: var(--cat-text); }
.ps-find-note { margin: 0; font-size: 13px; color: var(--cat-text-2); min-height: 1.4em; }
.ps-quarters { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
body.cat .ps-quarters a { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--cat-line); background: var(--cat-surface); color: var(--cat-text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
body.cat .ps-quarters a.is-on { background: var(--cat-text); border-color: var(--cat-text); color: var(--cat-surface); }
.ps-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 10px; margin-top: 18px; }
body.cat .ps-tile { display: grid; gap: 3px; align-content: start; text-align: left; font: inherit; padding: 14px 16px; border: 1px solid var(--cat-line); border-radius: var(--cat-radius); background: var(--cat-surface); color: var(--cat-text); cursor: pointer; }
body.cat .ps-tile:hover { border-color: var(--cat-line-strong); }
body.cat .ps-tile[aria-pressed="true"] { border-color: var(--cat-accent); box-shadow: inset 0 0 0 1px var(--cat-accent); }
.ps-tile-label { font-size: 12.5px; font-weight: 600; color: var(--cat-text-2); line-height: 1.35; }
.ps-tile-value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ps-tile-note { font-size: 12.5px; color: var(--cat-text-3); }
.ps-trend { margin-top: 18px; padding: 18px 20px 14px; }
.ps-trend-head { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: end; justify-content: space-between; }
.ps-trend-head h2 { margin: 0; font-size: 17px; }
.ps-select { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--cat-text-3); }
.ps-select select { font: inherit; font-size: 14px; font-weight: 400; padding: 7px 10px; border-radius: var(--cat-radius-sm); border: 1px solid var(--cat-line-strong); background: var(--cat-surface); color: var(--cat-text); max-width: 100%; }
.ps-chart { position: relative; margin-top: 12px; width: 100%; }
.ps-svg { display: block; overflow: visible; max-width: 100%; }
.ps-grid { stroke: var(--cat-line); stroke-width: 1; }
.ps-base { stroke: var(--cat-line-strong); stroke-width: 1; }
.ps-axis { fill: var(--cat-text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.ps-label { fill: var(--cat-text); font-size: 13px; font-weight: 700; }
.ps-bar path { fill: var(--cat-accent); opacity: 0.55; }
.ps-bar.is-last path { opacity: 1; }
.ps-bar:hover path, .ps-bar:focus path { opacity: 1; }
.ps-bar:focus { outline: none; }
.ps-bar:focus-visible .ps-hit { stroke: var(--cat-accent); stroke-width: 2; }
.ps-hit { fill: transparent; }
.ps-tip { position: absolute; z-index: 2; width: 160px; padding: 8px 10px; border-radius: var(--cat-radius-sm); border: 1px solid var(--cat-line); background: var(--cat-surface); box-shadow: 0 6px 18px rgba(16, 24, 40, 0.14); font-size: 12.5px; color: var(--cat-text-2); display: grid; gap: 3px; pointer-events: none; }
.ps-tip strong { color: var(--cat-text); font-size: 13px; }
.ps-tip[hidden] { display: none; }
.ps-chart-text { margin: 8px 0 0; font-size: 13.5px; color: var(--cat-text-2); }
.ps-table-card { margin-top: 18px; }
.ps-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ps-table th, .ps-table td { padding: 8px 12px; border-bottom: 1px solid var(--cat-line); text-align: left; vertical-align: middle; }
.ps-table thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cat-text-3); white-space: nowrap; }
.ps-table tbody th { font-weight: 500; color: var(--cat-text); }
.ps-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ps-table tr.ps-group th { padding-top: 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cat-text-3); background: transparent; }
.ps-table tr[data-code] { cursor: pointer; }
.ps-table tr[data-code]:hover, .ps-table tr[data-code]:focus { background: var(--cat-surface-2); outline: none; }
.ps-table tr.is-here { background: var(--cat-accent-soft); }
.ps-spark rect { fill: var(--cat-accent); opacity: 0.55; }
.ps-spark rect:last-child { opacity: 1; }
body.cat .ps-sortable thead button { font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
body.cat .ps-sortable thead button[aria-sort] { color: var(--cat-text); }
body.cat .ps-sortable thead button[aria-sort="descending"]::after { content: " (high to low)"; text-transform: none; }
body.cat .ps-sortable thead button[aria-sort="ascending"]::after { content: " (low to high)"; text-transform: none; }
.ps-note { margin: 10px 20px 16px; font-size: 13px; color: var(--cat-text-3); }
.ps-about { margin-top: 18px; padding: 18px 20px; }
.ps-about h2 { margin: 0 0 8px; font-size: 17px; }
.ps-about ul { margin: 0; padding-left: 18px; color: var(--cat-text-2); font-size: 14px; line-height: 1.6; display: grid; gap: 4px; }
.ps-empty { padding: 22px 20px; margin-top: 18px; color: var(--cat-text-2); }
@media (max-width: 760px) {
  .ps-head { grid-template-columns: 1fr; }
  .ps-head h1 { font-size: 26px; }

}
/* Crime names in the station table: normal text (not the small heading style tables use) */
body.cat .ps-table tbody th[scope="row"] { font-size: 14px !important; font-weight: 500 !important; text-transform: none; letter-spacing: 0; color: var(--cat-text) !important; border-bottom: 1px solid var(--cat-line) !important; }
body.cat .ps-table tbody th[scope="row"] a { font-weight: 600; }

/* Business cards: open now, specials, distance; the hours table in the details view */
.biz-open { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; }
.biz-open.is-open { color: var(--cat-green); }
.biz-open.is-closed { color: var(--cat-text-3); }
.biz-special { margin: 4px 0 0; padding: 5px 8px; border-radius: var(--cat-radius-sm); background: var(--cat-amber-soft); color: var(--cat-text); font-size: 12.5px; line-height: 1.4; }
.biz-special strong { color: var(--cat-amber); }
.biz-special span { color: var(--cat-text-3); }
.biz-dist { color: var(--cat-text-2); font-weight: 600; }
.bd-hours { border-collapse: collapse; font-size: 13.5px; }
body.cat .bd-hours th, body.cat .bd-hours td { padding: 2px 14px 2px 0; text-align: left; font-weight: 400; border: 0 !important; color: var(--cat-text) !important; font-size: 13.5px !important; text-transform: none !important; letter-spacing: 0 !important; }
body.cat .bd-hours th { color: var(--cat-text-2) !important; }
body.cat .bd-hours tr.is-today th, body.cat .bd-hours tr.is-today td { font-weight: 700 !important; }
.bd-hours-note { margin: 4px 0 0; font-size: 13px; color: var(--cat-text-2); }

/* The business's own update page (business-update.php) and its hours editor */
.bu-head { padding: 30px 0 6px; }
.bu-head h1 { margin: 6px 0 8px; font-size: 28px; line-height: 1.15; }
.bu-head p { margin: 0 0 6px; color: var(--cat-text-2); max-width: 70ch; }
.bu-card { padding: 20px 22px; margin: 14px 0 0; }
.bu-form { display: grid; gap: 12px; }
.bu-form h2 { margin: 10px 0 0; font-size: 16px; }
.bu-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--cat-text); }
.bu-form input, .bu-form textarea { font: inherit; font-weight: 400; padding: 9px 11px; border-radius: var(--cat-radius-sm); border: 1px solid var(--cat-line-strong); background: var(--cat-surface); color: var(--cat-text); }
.bu-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
body.cat .bu-form button[type=submit] { justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }
.bu-msg { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--cat-radius-sm); font-size: 14.5px; color: var(--cat-text); }
.bu-msg.ok { background: var(--cat-green-soft); }
.bu-msg.bad { background: var(--cat-red-soft); }
.bu-msg.wait { background: var(--cat-amber-soft); }
.ba-hours { display: grid; gap: 6px; }
.ba-hours-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.ba-hours-day { width: 84px; font-weight: 600; color: var(--cat-text); }
.ba-hours-row select, .ba-hours-row input { font: inherit; font-size: 13px; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--cat-line-strong); background: var(--cat-surface); color: var(--cat-text); }
.ba-hours-and { color: var(--cat-text-3); }
body.cat .ba-hours-copy { justify-self: start; font: inherit; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--cat-line); background: var(--cat-surface-2); color: var(--cat-text); cursor: pointer; }

/* A listing shown first because of something happening in the visitor's suburb */
.biz-event { display: block; margin: 0 0 4px; padding: 3px 8px; border-radius: var(--cat-radius-sm); background: var(--cat-accent-soft); color: var(--cat-text); font-size: 12px; font-weight: 700; line-height: 1.4; }
.biz-row-text .biz-event { justify-self: start; }

/* ---------------------------------------------------------------- This week (suburb-week-lib.php) */
.wk-card { padding: 18px 20px; margin: 16px 0; }
.wk-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.wk-eyebrow { margin: 0 0 6px; color: var(--cat-text-3); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.wk-card h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.wk-mood { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; white-space: nowrap; background: var(--cat-surface-2); color: var(--cat-text); }
.wk-mood.is-calmer, .wk-mood.is-quiet { background: var(--cat-green-soft); color: var(--cat-green); }
.wk-mood.is-usual { background: var(--cat-accent-soft); color: var(--cat-accent); }
.wk-mood.is-busier { background: var(--cat-amber-soft); color: var(--cat-amber); }
.wk-line { margin: 8px 0 0; color: var(--cat-text-2); font-size: 15px; line-height: 1.5; }
body.cat .wk-more { flex-shrink: 0; }
.wk-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0 0; }
.wk-figs div { padding: 12px 14px; border-radius: var(--cat-radius-sm); background: var(--cat-surface-2); }
.wk-figs dt { color: var(--cat-text-3); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.wk-figs dd { margin: 4px 0 2px; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--cat-text); }
.wk-figs span { color: var(--cat-text-2); font-size: 13px; }
.wk-nearby { margin: 14px 0 0; color: var(--cat-text-2); font-size: 14px; line-height: 1.6; }
.wk-nearby strong { color: var(--cat-text); }
.wk-note { margin: 12px 0 0; color: var(--cat-text-3); font-size: 12.5px; line-height: 1.5; }
.wk-list { margin: 12px 0 0; padding: 0; list-style: none; }
.wk-list li { border-top: 1px solid var(--cat-line); }
.wk-list li:first-child { border-top: 0; }
body.cat .wk-list a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; color: var(--cat-text); text-decoration: none; }
body.cat .wk-list a:hover strong { color: var(--cat-accent); text-decoration: underline; }
.wk-list-detail { color: var(--cat-text-2); font-size: 14px; }

/* ---------------------------------------------------------------- Phone alerts (suburb-alerts.js) */
body.cat button.lp-btn { cursor: pointer; font: inherit; font-weight: 700; }
.push-panel { margin: 14px 0 0; max-width: 560px; padding: 16px 18px; border: 1px solid var(--cat-line); border-radius: var(--cat-radius); background: var(--cat-surface); box-shadow: var(--cat-shadow); }
.push-title { margin: 0 0 8px; font-weight: 700; color: var(--cat-text); }
.push-choices { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }
.push-choices label { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--cat-text); cursor: pointer; }
.push-add { width: 100%; max-width: 280px; height: 36px; padding: 0 10px; border-radius: var(--cat-radius-sm); border: 1px solid var(--cat-line-strong); background: var(--cat-surface); color: var(--cat-text); font: inherit; font-size: 14px; }
.push-what { margin: 10px 0 0; color: var(--cat-text-2); font-size: 13.5px; line-height: 1.5; }
.push-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.push-status { margin: 10px 0 0; min-height: 1.2em; color: var(--cat-text); font-size: 14px; font-weight: 600; }

/* "Was this resolved?" (resident-check.js) */
.rc { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--cat-line); border-radius: var(--cat-radius-sm); background: var(--cat-surface-2); }
.rc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rc-q { font-size: 13.5px; font-weight: 700; color: var(--cat-text); margin-right: 4px; }
body.cat .rc-btn { font: inherit; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--cat-line-strong); background: var(--cat-surface); color: var(--cat-text); cursor: pointer; }
body.cat .rc-btn:hover { border-color: var(--cat-accent); }
body.cat .rc-btn[aria-pressed="true"] { background: var(--cat-text); border-color: var(--cat-text); color: var(--cat-surface); }
body.cat .rc-btn:disabled { opacity: 0.6; cursor: default; }
.rc-say { margin: 0; font-size: 13px; color: var(--cat-text-2); }
.rc.has-say .rc-say { margin-top: 8px; }
.rc.is-good { border-color: var(--cat-green); background: var(--cat-green-soft); }
.rc.is-good .rc-say { color: var(--cat-text); font-weight: 600; }
.rc-compact { margin: 6px 0 0; padding: 0; border: 0; background: none; }
.rc-compact .rc-q { font-size: 12px; font-weight: 600; color: var(--cat-text-3); }
body.cat .rc-compact .rc-btn { font-size: 12px; padding: 2px 9px; }
.rc-compact.is-good { background: none; }
.rc-compact .rc-say { font-size: 12px; }

/* "When incidents happen" on suburb pages (suburb-patterns-lib.php) */
.area-pattern { margin: 6px 0 0; padding-left: 18px; color: var(--cat-text); font-size: 14.5px; line-height: 1.6; }
.area-tips { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--cat-radius-sm); background: var(--cat-surface-2); color: var(--cat-text-2); font-size: 14px; line-height: 1.55; }
.area-tips strong { color: var(--cat-text); }

/* ---------------------------------------------------------------- live and low-data (area-live-lib.php, area-live.js) */

/* Outage colours for "Outages this week": checked for colour blindness and contrast in both themes */
body.cat { --ow-water: #2a78d6; --ow-power: #eb6834; --ow-other: #1baf7a; }
[data-theme="dark"] body.cat { --ow-water: #3987e5; --ow-power: #d95926; --ow-other: #199e70; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) body.cat { --ow-water: #3987e5; --ow-power: #d95926; --ow-other: #199e70; } }

/* Status board: one tile per service, the state in words with a coloured edge */
.sb { margin: 14px 0 18px; }
.sb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sb-title { margin: 0; font-size: 16px; font-weight: 700; }
.sb-updated { display: inline-flex; align-items: center; gap: 6px; color: var(--cat-text-3); font-size: 12.5px; }
.sb-live { width: 7px; height: 7px; border-radius: 50%; background: var(--cat-green); animation: sb-pulse 2.4s ease-in-out infinite; }
@keyframes sb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.sb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
body.cat .sb-tile {
  display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 14px 16px 15px; border: 1px solid var(--cat-line); border-left-width: 4px;
  border-radius: var(--cat-radius-sm); background: var(--cat-surface); color: var(--cat-text); text-decoration: none; transition: background 0.15s ease;
}
body.cat .sb-tile:hover { background: var(--cat-surface-2); }
.sb-tile.is-ok { border-left-color: var(--cat-green); }
.sb-tile.is-info { border-left-color: var(--cat-accent); }
.sb-tile.is-warn { border-left-color: var(--cat-amber); }
.sb-tile.is-bad { border-left-color: var(--cat-red); }
.sb-tile.is-na { border-left-color: var(--cat-line-strong); }
.sb-flag { white-space: nowrap; }
.sb-label { display: flex; justify-content: space-between; gap: 8px; color: var(--cat-text-2); font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.sb-flag { font-size: 10.5px; letter-spacing: 0.05em; color: var(--cat-text-3); }
.sb-tile.is-ok .sb-flag { color: var(--cat-green); }
.sb-tile.is-warn .sb-flag { color: var(--cat-amber); }
.sb-tile.is-bad .sb-flag { color: var(--cat-red); }
.sb-word { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.sb-line { color: var(--cat-text-2); font-size: 13px; line-height: 1.4; }
.sb-foot { margin: 8px 0 0; color: var(--cat-text-2); font-size: 13px; }
.sb-tile.is-changed { animation: sb-changed 2.4s ease-out; }
@keyframes sb-changed { 0% { box-shadow: 0 0 0 3px var(--cat-accent-soft); background: var(--cat-accent-soft); } 100% { box-shadow: none; } }
.sb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .sb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .sb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sb-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 420px) { body.cat .sb-tile { padding: 12px; } .sb-word { font-size: 17px; } }

/* "Is my power off?" under the board */
.sb-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 10px; padding: 12px 16px; border: 1px solid var(--cat-line); border-radius: var(--cat-radius-sm); background: var(--cat-surface); }
.sb-ask-q { margin: 0; color: var(--cat-text); font-size: 14px; font-weight: 700; }
.sb-ask-q span { color: var(--cat-text-2); font-weight: 400; }
.sb-ask-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
body.cat .sb-ask-btn { height: 36px; padding: 0 14px; border: 1px solid var(--cat-line-strong); border-radius: 999px; background: var(--cat-surface); color: var(--cat-text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
body.cat .sb-ask-btn:hover { background: var(--cat-surface-2); }
body.cat .sb-ask-btn.is-back { border-color: var(--cat-green); color: var(--cat-green); }
body.cat .sb-ask-btn:disabled { opacity: 0.6; cursor: default; }
.sb-ask-said { flex: 1 1 100%; margin: 0; color: var(--cat-text-2); font-size: 13px; }
.sb-ask-said[hidden] { display: none; }
@media (max-width: 520px) { .sb-ask-buttons { width: 100%; } body.cat .sb-ask-btn { flex: 1 1 0; padding: 0 8px; } }

/* Buses and taxis panel */
.pub-transport .tr-notice { margin: 10px 0 12px; padding: 10px 12px; border-left: 3px solid var(--cat-amber); border-radius: 0 var(--cat-radius-sm) var(--cat-radius-sm) 0; background: var(--cat-amber-soft); }
.pub-transport .tr-notice p { margin: 0; color: var(--cat-text); font-size: 14px; line-height: 1.5; }
.pub-transport .tr-kicker { margin-bottom: 3px !important; color: var(--cat-amber) !important; font-size: 11px !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pub-transport .tr-head { margin: 10px 0 6px; color: var(--cat-text-2); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pub-transport .tr-list { margin: 0; padding: 0; list-style: none; }
.pub-transport .tr-list li { padding: 8px 0; border-top: 1px solid var(--cat-line); }
.pub-transport .tr-list li:first-child { border-top: 0; padding-top: 0; }
.pub-transport .tr-list p { margin: 0; color: var(--cat-text); font-size: 14px; line-height: 1.45; }
.pub-transport .tr-list time { color: var(--cat-text-3); font-size: 12px; }
.pub-transport .tr-none { margin: 8px 0 0; color: var(--cat-text-2); font-size: 14px; }
.pub-transport .tr-foot { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--cat-line); color: var(--cat-text-3); font-size: 12.5px; line-height: 1.5; }

/* Outage progress on a current outage: started, now, expected fix */
.op { margin: 12px 0 4px; }
.op-track { position: relative; height: 10px; border-radius: 999px; background: var(--cat-surface-2); border: 1px solid var(--cat-line); }
.op-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--cat-red); opacity: 0.8; }
.op-track.is-open .op-fill { background: repeating-linear-gradient(135deg, var(--cat-red) 0 6px, transparent 6px 10px); opacity: 0.55; }
.op-over { position: absolute; top: 0; bottom: 0; border-radius: 0 999px 999px 0; background: repeating-linear-gradient(135deg, var(--cat-amber) 0 5px, transparent 5px 9px); }
.op-over[hidden] { display: none; }
.op-now { position: absolute; top: -4px; width: 3px; height: 18px; margin-left: -1.5px; border-radius: 2px; background: var(--cat-text); box-shadow: 0 0 0 2px var(--cat-surface); }
.op-eta { position: absolute; top: -3px; width: 2px; height: 16px; margin-left: -1px; background: var(--cat-text-3); }
.op-back { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--cat-green); box-shadow: 0 0 0 2px var(--cat-surface); }
.op-scale { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--cat-text-2); font-size: 12.5px; }
.op-so-far { color: var(--cat-text); font-weight: 700; }
.op-note { margin: 6px 0 0; color: var(--cat-text-2); font-size: 13px; }
.op-note[hidden] { display: none; }

/* Outages this week: bars on a 7-day line */
.ow-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 20px 0; color: var(--cat-text-2); font-size: 13px; }
.ow-key { display: inline-block; width: 12px; height: 12px; margin-right: 7px; vertical-align: -1px; border-radius: 3px; }
.ow-key.k-power, .ow-bar.k-power { background-color: var(--ow-power); }
.ow-key.k-water, .ow-bar.k-water { background-color: var(--ow-water); }
.ow-key.k-other, .ow-bar.k-other, .ow-key.k-roads, .ow-bar.k-roads { background-color: var(--ow-other); }
.ow-chart { position: relative; margin: 12px 20px 18px; padding-top: 26px; }
.ow-days { position: absolute; inset: 0; pointer-events: none; }
.ow-days span { position: absolute; top: 0; bottom: 0; padding-left: 5px; border-left: 1px solid var(--cat-line); color: var(--cat-text-3); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.ow-row { position: relative; height: 26px; margin-bottom: 2px; border-radius: 4px; outline: none; }
.ow-row:hover, .ow-row:focus-visible { background: var(--cat-surface-2); }
.ow-row:focus-visible { box-shadow: 0 0 0 2px var(--cat-accent); }
.ow-bar { position: absolute; top: 7px; height: 12px; border-radius: 0 4px 4px 0; box-shadow: 0 0 0 2px var(--cat-surface); }
.ow-bar.is-on { border-radius: 0; background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0 4px, transparent 4px 8px); }
.ow-bar.is-cut { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px); mask-image: linear-gradient(90deg, transparent 0, #000 14px); }
.ow-text { position: absolute; top: 4px; padding: 0 7px; color: var(--cat-text-2); font-size: 12.5px; white-space: nowrap; }
.ow-text b { color: var(--cat-text); font-weight: 700; }
.ow-more { margin: -8px 20px 16px; color: var(--cat-text-3); font-size: 12.5px; }
@media (max-width: 640px) { .ow-chart { margin: 12px 14px 16px; } .ow-days span { font-size: 10px; padding-left: 3px; } .ow-text { font-size: 11.5px; } }

/* Map timeline */
.mt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 0 20px 14px; }
.mt-bar[hidden] { display: none; }
body.cat .mt-play { min-width: 92px; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--cat-accent-solid); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
body.cat .mt-play:hover { background: var(--cat-accent-solid-hover); }
.mt-range { display: flex; gap: 6px; }
body.cat .mt-range .chip { padding: 5px 11px; font-size: 13px; }
.mt-slider { flex: 1 1 180px; min-width: 140px; accent-color: var(--cat-accent); }
.mt-label { flex: 1 1 100%; margin: 0; min-height: 20px; color: var(--cat-text-2); font-size: 13.5px; }
.mt-label strong { color: var(--cat-text); }
body.cat .mt-reset { padding: 0; border: 0; background: none; color: var(--cat-accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; }
body.cat .mt-reset[hidden] { display: none; }
.lp-key.new { width: 14px; height: 14px; background: transparent; border: 3px solid #d97706; }
.mt-key[hidden] { display: none; }
.leaflet-interactive.mt-fresh { animation: mt-ring 1s ease-out; }
@keyframes mt-ring { from { stroke-opacity: 0; } to { stroke-opacity: 1; } }

/* Map off in low-data mode */
.map-off { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 20px; padding: 22px; border: 1px dashed var(--cat-line-strong); border-radius: var(--cat-radius-sm); background: var(--cat-surface-2); }
.map-off[hidden] { display: none; }
.map-off p { margin: 0; color: var(--cat-text-2); font-size: 14px; }
.map-off strong { color: var(--cat-text); }
body.cat .map-off .lp-btn { cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; }
#scagMap[hidden] { display: none; }

/* When reports come in: 24 bars, one per hour */
.hours { padding: 4px 20px 20px; border-top: 1px solid var(--cat-line); }
.hours[hidden] { display: none; }
.hours-head h3 { margin: 14px 0 2px; font-size: 15px; }
.hours-head p { margin: 0 0 12px; color: var(--cat-text-2); font-size: 13.5px; }
.hours-chart { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; align-items: end; height: 110px; border-bottom: 1px solid var(--cat-line-strong); }
body.cat .hours-bar { position: relative; display: flex; align-items: flex-end; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
body.cat .hours-bar:disabled { cursor: default; }
.hours-bar span { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--cat-accent); opacity: 0.55; transition: opacity 0.15s ease; }
.hours-bar.is-top span { opacity: 0.9; }
.hours-bar:hover span, .hours-bar:focus-visible span { opacity: 1; }
.hours-bar[aria-pressed="true"] span { opacity: 1; background: var(--cat-text); }
.hours-bar:focus-visible { outline: 2px solid var(--cat-accent); outline-offset: 2px; border-radius: 4px; }
.hours-bar:not(:disabled):hover::after, .hours-bar:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5;
  padding: 5px 8px; border-radius: 6px; background: var(--cat-text); color: var(--cat-surface); font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none;
}
.hours-bar:nth-child(-n+3):hover::after, .hours-bar:nth-child(-n+3):focus-visible::after { left: 0; transform: none; }
.hours-bar:nth-last-child(-n+3):hover::after, .hours-bar:nth-last-child(-n+3):focus-visible::after { left: auto; right: 0; transform: none; }
.hours-axis { display: flex; justify-content: space-between; margin-top: 5px; color: var(--cat-text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.hours-pick { margin: 10px 0 0; color: var(--cat-text-2); font-size: 13.5px; }
.hours-pick[hidden] { display: none; }
body.cat .link-btn { padding: 0; border: 0; background: none; color: var(--cat-accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* New since the page opened */
.alert.is-new { animation: live-new 4s ease-out; }
#reportBody tr.is-new td { animation: live-new-row 6s ease-out; }
@keyframes live-new { 0%, 30% { box-shadow: 0 0 0 3px var(--cat-accent); } 100% { box-shadow: none; } }
@keyframes live-new-row { 0%, 40% { background: var(--cat-accent-soft); } 100% { background: transparent; } }
.live-toast {
  position: fixed; z-index: 61; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: min(360px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 10px;
  background: var(--cat-ink, #0a1020); color: #e9eef7; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 12px 40px rgba(10, 16, 32, 0.35);
  border-left: 4px solid #6b9bff; animation: live-in 0.25s ease-out;
}
.live-toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease; }
@keyframes live-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.live-toast p { margin: 0; }
.live-toast-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9dbcff; }
.live-toast-title { margin-top: 4px !important; font-size: 15px; font-weight: 700; color: #fff; }
.live-toast-actions { display: flex; gap: 14px; margin-top: 10px; }
body.cat .live-toast-go { color: #9dbcff; font-size: 13px; font-weight: 700; }
body.cat .live-toast-close { padding: 0; border: 0; background: none; color: #aab4c6; font: inherit; font-size: 13px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  .alert.is-new, #reportBody tr.is-new td, .sb-tile.is-changed, .sb-live, .live-toast, .leaflet-interactive.mt-fresh { animation: none; }
}

/* Low-data mode */
.lite-note { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--cat-accent); border-radius: 0 var(--cat-radius-sm) var(--cat-radius-sm) 0; background: var(--cat-accent-soft); color: var(--cat-text); font-size: 13.5px; }
.lite-note[hidden] { display: none; }
body.cat .lite-off, body.cat .lite-toggle { padding: 0; border: 0; background: none; color: var(--cat-accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
body.cat .lp-footer .lite-toggle { color: inherit; font-weight: 400; }
.biz-initial.is-alt { display: none; }
html.iw-lite .biz-card img, html.iw-lite .biz-row-media img, html.iw-lite .embed-card { display: none; }
html.iw-lite .biz-initial.is-alt { display: inline; }

/* ---------------------------------------------------------------- page tabs (page-tabs.js) */
.page-tabs { position: sticky; top: var(--tabs-top, 56px); z-index: 35; margin: 22px 0 0; padding: 8px 0; background: var(--cat-bg); transition: box-shadow 0.15s ease; }
.page-tabs.is-stuck { box-shadow: 0 8px 12px -10px rgba(16, 24, 40, 0.25); }
.page-tabs-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.page-tabs-inner::-webkit-scrollbar { display: none; }
body.cat .page-tabs a {
  flex: none; padding: 7px 14px; border: 1px solid var(--cat-line); border-radius: 999px; background: var(--cat-surface);
  color: var(--cat-text-2); font-size: 13.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; text-decoration: none; transition: background 0.15s ease, color 0.15s ease;
}
body.cat .page-tabs a:hover { color: var(--cat-text); border-color: var(--cat-line-strong); }
body.cat .page-tabs a[aria-current="true"] { background: var(--cat-text); border-color: var(--cat-text); color: var(--cat-surface); }
/* Local sponsors and businesses stand out in the tabs */
body.cat .page-tabs a.is-biz { border-color: var(--cat-accent); color: var(--cat-accent); background: var(--cat-accent-soft); }
body.cat .page-tabs a.is-biz[aria-current="true"] { background: var(--cat-accent-solid); border-color: var(--cat-accent-solid); color: #fff; }
@media (max-width: 760px) {
  .page-tabs { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 0; }
  .page-tabs-inner { padding-right: 24px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
}
/* Jumping to a part leaves its heading in view under the top bar and the tabs */
#now, #current, #roads, #transport, #outage-week, #incidents, #map, #sponsors, #businesses, #about-area, #areas, #status-board {
  scroll-margin-top: calc(var(--tabs-top, 56px) + var(--tabs-h, 52px) + 12px);
}
@media (prefers-reduced-motion: no-preference) { html:has(#page-tabs) { scroll-behavior: smooth; } }

/* ---------------------------------------------------------------- Local sponsors box: stands out at the top of the side column */
/* The theme fixes every panel's border and background with !important, so the sponsors box has to as well */
body.cat .panel.ad-box {
  border: 2px solid var(--cat-accent) !important; box-shadow: 0 8px 24px rgba(31, 79, 216, 0.14) !important;
  background: var(--cat-surface) !important; background-image: linear-gradient(180deg, var(--cat-accent-soft) 0, var(--cat-surface) 96px) !important;
}
.ad-box-head h2 { color: var(--cat-text); }
.ad-box .ad-note { color: var(--cat-text-2); }

/* ---------------------------------------------------------------- Local businesses and services: a tinted band */
body.cat .lp-card.biz-band { border: 1.5px solid var(--cat-accent); background: linear-gradient(180deg, var(--cat-accent-soft) 0, var(--cat-surface) 160px); box-shadow: 0 6px 20px rgba(31, 79, 216, 0.08); }
.biz-band .lp-card-head h2 { font-size: 19px; }
body.cat .biz-band .lp-card-head a { padding: 6px 12px; border-radius: 999px; background: var(--cat-accent-solid); color: #fff; text-decoration: none; }
body.cat .biz-band .lp-card-head a:hover { background: var(--cat-accent-solid-hover); text-decoration: none; }
.biz-band .biz-card { box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06); }

/* ---------------------------------------------------------------- map view of the board (area-hub-lib.php):
   the suburb on a small map with a ring of round buttons around its pin.
   Phones: the map replaces the tiles, with what needs attention listed under it.
   Computers: the map on the left, the tiles beside it. */
.hub-list, .hub-calm { display: none; }
.hub { container-type: inline-size; }
@media (max-width: 760px) {
  .sb .sb-grid { display: none; }
  .hub { margin: 0 -4px; }
  .hub-list { display: grid; }
  .hub-calm { display: block; }
}
@media (min-width: 761px) {
  .sb { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .sb > * { grid-column: 1 / -1; }
  .sb > .hub { grid-column: 1; }
  .sb > .sb-grid { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
  .sb > .sb-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hub-node:hover .hub-dot { transform: scale(1.06); }
}
@media (min-width: 1280px) { .sb > .sb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sb > .sb-grid > :last-child:nth-child(odd) { grid-column: auto; } }
@media all {
  .hub-stage {
    position: relative; container-type: inline-size; height: calc(72cqw + 116px); max-height: 560px; overflow: hidden;
    border: 1px solid var(--cat-line); border-radius: 18px; background: var(--cat-surface-2, var(--cat-surface));
    --r: 36cqw; --cy: calc(36cqw + 40px);
  }
  /* The map: muted so the buttons read first */
  .hub-map { position: absolute; inset: 0; }
  .hub-tiles { position: absolute; left: calc(50% - 256px - var(--px)); top: calc(var(--cy) - 256px - var(--py)); display: grid; grid-template-columns: repeat(3, 256px); grid-auto-rows: 256px; opacity: 0.75; filter: saturate(0.55); }
  .hub-tiles span { background-size: 256px 256px; }
  .hub-wash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% var(--cy), color-mix(in srgb, var(--cat-surface) 20%, transparent) 0, color-mix(in srgb, var(--cat-surface) 55%, transparent) 55%, color-mix(in srgb, var(--cat-surface) 88%, transparent) 100%); }
  html.iw-lite .hub-map { display: none; }
  html.iw-lite .hub-stage, .hub-stage:not(:has(.hub-map)) { background-image: radial-gradient(circle at 50% var(--cy), var(--cat-accent-soft) 0, transparent 70%); }
  html.iw-lite .hub-credit, .hub-stage:not(:has(.hub-map)) .hub-credit { display: none; }
  .hub-ring { position: absolute; left: calc(50% - var(--r)); top: calc(var(--cy) - var(--r)); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border: 1.5px dashed color-mix(in srgb, var(--cat-accent) 45%, transparent); border-radius: 50%; pointer-events: none; }
  .hub-ring::before { content: ""; position: absolute; inset: 28%; border-radius: 50%; background: color-mix(in srgb, var(--cat-accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--cat-accent) 30%, transparent); }

  /* The pin and the suburb's name */
  .hub-pin { position: absolute; left: 50%; top: var(--cy); width: 0; height: 0; pointer-events: none; }
  .hub-pin svg { position: absolute; left: -16px; top: -38px; filter: drop-shadow(0 3px 4px rgba(16, 24, 40, 0.3)); }
  .hub-pin svg path { fill: var(--cat-accent-solid, var(--cat-accent)); stroke: #fff; stroke-width: 1.5; }
  .hub-pin svg circle { fill: #fff; }
  .hub-pin-pulse { position: absolute; left: -9px; top: -4px; width: 18px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--cat-accent) 35%, transparent); }
  .hub-pin-name { position: absolute; left: 0; top: 8px; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: var(--cat-text); color: var(--cat-surface); font-size: 12.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 6px rgba(16, 24, 40, 0.2); }

  /* The buttons on the ring */
  body.cat .hub-node {
    position: absolute; left: calc(50% + var(--x) * var(--r)); top: calc(var(--cy) + var(--y) * var(--r)); width: 25cqw; max-width: 104px;
    transform: translate(-50%, -26px); display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; color: var(--cat-text); text-decoration: none; -webkit-tap-highlight-color: transparent;
  }
  .hub-dot {
    position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 3px; border-radius: 50%;
    border: 2.5px solid var(--cat-line-strong); background: var(--cat-surface); color: var(--cat-text-2); box-shadow: 0 3px 10px rgba(16, 24, 40, 0.14); transition: transform 0.12s ease;
  }
  .hub-node:active .hub-dot { transform: scale(0.94); }
  .hub-node:focus-visible { outline: none; }
  .hub-node:focus-visible .hub-dot { outline: 3px solid var(--cat-accent); outline-offset: 2px; }
  .hub-node.is-ok .hub-dot { border-color: var(--cat-green); color: var(--cat-green); }
  .hub-node.is-info .hub-dot { border-color: var(--cat-accent); color: var(--cat-accent); }
  .hub-node.is-warn .hub-dot { border-color: var(--cat-amber); color: var(--cat-amber); background: var(--cat-amber-soft); }
  .hub-node.is-bad .hub-dot { border-color: var(--cat-red); color: #fff; background: var(--cat-red); }
  .hub-node.is-plain .hub-dot { border-color: var(--cat-text-2); color: var(--cat-text); }
  .hub-node.is-biz .hub-dot { border-color: var(--cat-accent-solid, var(--cat-accent)); color: #fff; background: var(--cat-accent-solid, var(--cat-accent)); }
  .hub-badge { position: absolute; top: -5px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid var(--cat-surface); border-radius: 999px; background: var(--cat-text); color: var(--cat-surface); font-size: 11px; font-weight: 700; line-height: 16px; }
  .hub-node.is-bad .hub-badge { background: var(--cat-red); color: #fff; }
  .hub-cap, .hub-word { max-width: 100%; padding: 0 5px; border-radius: 6px; background: color-mix(in srgb, var(--cat-surface) 82%, transparent); line-height: 1.25; }
  .hub-cap { font-size: 12.5px; font-weight: 700; }
  .hub-word { color: var(--cat-text-2); font-size: 11.5px; font-weight: 600; }
  .hub-node.is-warn .hub-word { color: var(--cat-amber); }
  .hub-node.is-bad .hub-word { color: var(--cat-red); }
  .hub-node.is-biz .hub-word { color: var(--cat-accent); }
  .hub-credit { position: absolute; right: 8px; bottom: 6px; color: var(--cat-text-3); font-size: 10px; text-decoration: none; }

  /* Under the map: what needs attention, in full */
  .hub-list { gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
  body.cat .hub-list a { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border: 1px solid var(--cat-line); border-left: 4px solid var(--cat-amber); border-radius: var(--cat-radius-sm); background: var(--cat-surface); color: var(--cat-text); text-decoration: none; font-size: 14px; }
  .hub-list li.is-bad a { border-left-color: var(--cat-red) !important; }
  .hub-list span { color: var(--cat-text-2); font-size: 13px; line-height: 1.4; }
  .hub-calm { margin: 10px 2px 0; color: var(--cat-text-2); font-size: 13.5px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hub-pin-pulse { animation: hub-pulse 2.2s ease-out infinite; }
  .hub-node.is-bad .hub-dot { animation: hub-alarm 2s ease-out infinite; }
}
@keyframes hub-pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes hub-alarm { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cat-red) 55%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
/* Dark mode: a dark map */
@media all {
  html[data-theme="dark"] .hub-tiles { filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9) saturate(0.4); opacity: 0.6; }
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .hub-tiles { filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9) saturate(0.4); opacity: 0.6; }
}
.hub-node.is-missing { opacity: 0.45; pointer-events: none; }
/* Small phones (320 to 360 wide): smaller circles, and the neutral buttons drop their second line */
@container (max-width: 340px) {
  .hub-dot { width: 44px; height: 44px; border-width: 2px; }
  .hub-dot svg { width: 20px; height: 20px; }
  body.cat .hub-node { transform: translate(-50%, -22px); width: 27cqw; }
  .hub-cap { font-size: 11.5px; }
  .hub-word { font-size: 10.5px; }
  .hub-node.is-plain .hub-word, .hub-node.is-biz .hub-word { display: none; }
}
/* Very small phones: the "Where are you?" bar and the picture-size list stay inside the screen */
body.cat .iw-area-bar { box-sizing: border-box; }
body.cat .embed-options label { min-width: 0; max-width: 100%; }
body.cat .embed-options select { max-width: 100%; }
/* Outages this week: a bar that fills the row gets its label above it, so the label stays on the card */
.ow-row.is-tall { height: 42px; }
.ow-row.is-tall .ow-bar { top: 24px; }
.ow-text.is-above { top: 2px; padding-left: 0; }

/* ---------------------------------------------------------------- business listings: recommendations, codes, directory counts */
.biz-recs { margin: 2px 0 0; color: var(--cat-green); font-size: 12.5px; font-weight: 700; }
.biz-code-hint { margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--cat-surface); color: var(--cat-amber) !important; font-size: 11px; font-weight: 700; }
.bd-n { margin-left: 3px; color: var(--cat-text-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.bd-chip[aria-pressed="true"] .bd-n { color: inherit; opacity: 0.75; }
.bd-page-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0 0; font-size: 14px; font-weight: 600; }

/* ---------------------------------------------------------------- a business's own page (business.php) */
.bp-page { padding-bottom: 40px; }
.bp-crumbs { padding: 22px 0 0; color: var(--cat-text-3); font-size: 13.5px; }
.bp-crumbs a { color: var(--cat-text-2); }
.bp-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 14px; }
.bp-media { position: relative; aspect-ratio: 2 / 1; overflow: hidden; border: 1px solid var(--cat-line); border-radius: var(--cat-radius); background: var(--cat-surface-2); display: grid; place-items: center; }
.bp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.bp-initial { font-size: 64px; font-weight: 800; color: var(--cat-text-3); }
.bp-info h1 { margin: 4px 0 6px; font-size: 32px; line-height: 1.12; letter-spacing: -0.02em; }
.bp-recs { margin: 0 0 6px; color: var(--cat-green); font-size: 14.5px; font-weight: 700; }
.bp-recs[hidden] { display: none; }
.bp-text { margin: 6px 0; color: var(--cat-text-2); font-size: 15.5px; line-height: 1.6; }
.bp-where { margin: 4px 0 0; color: var(--cat-text-3); font-size: 13.5px; }
.bp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
body.cat .bp-actions .biz-cta { padding: 10px 16px; font-size: 14.5px; }
body.cat .biz-cta.is-main { background: var(--cat-accent-solid); border-color: var(--cat-accent-solid); color: #fff; }
body.cat .biz-cta.is-main:hover { background: var(--cat-accent-solid-hover); }
.bp-special { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 20px; padding: 16px 20px; border: 1.5px dashed var(--cat-amber); border-radius: var(--cat-radius); background: var(--cat-amber-soft); }
.bp-kicker { margin: 0; color: var(--cat-amber); font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.bp-special-text { margin: 2px 0 0; color: var(--cat-text); font-size: 19px; font-weight: 700; }
.bp-special-until { margin: 2px 0 0; color: var(--cat-text-2); font-size: 13px; }
.bp-code-box { display: grid; gap: 2px; margin: 0; text-align: center; }
.bp-code-box[hidden] { display: none; }
.bp-code-box span { color: var(--cat-text-2); font-size: 12px; }
.bp-code-box strong { padding: 6px 16px; border: 2px solid var(--cat-text); border-radius: 10px; background: var(--cat-surface); font-family: ui-monospace, Consolas, monospace; font-size: 26px; letter-spacing: 0.08em; }
.bp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 20px; }
.bp-card { padding: 20px 22px; }
.bp-card h2 { margin: 0 0 10px; font-size: 18px; }
.bp-recommend { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: var(--cat-radius-sm); background: var(--cat-green-soft); }
.bp-recommend h3 { margin: 0; font-size: 15px; }
.bp-recommend p { margin: 2px 0 0; color: var(--cat-text-2); font-size: 13.5px; }
body.cat .bp-rec-btn { padding: 10px 16px; border: 1.5px solid var(--cat-green); border-radius: 999px; background: var(--cat-surface); color: var(--cat-green); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
body.cat .bp-rec-btn.is-on { background: var(--cat-green); color: #fff; }
body.cat .bp-rec-btn:disabled { opacity: 0.6; cursor: default; }
.bp-rec-msg { grid-column: 1 / -1; margin: 0 !important; font-weight: 600; color: var(--cat-text) !important; }
.bp-rec-msg[hidden] { display: none; }
.bp-quote-note { margin: 0 0 12px; color: var(--cat-text-2); font-size: 14px; }
.bp-form { display: grid; gap: 12px; }
.bp-form[hidden] { display: none; }
.bp-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--cat-text); }
.bp-form input, .bp-form textarea { font: inherit; font-weight: 400; padding: 9px 11px; border-radius: var(--cat-radius-sm); border: 1px solid var(--cat-line-strong); background: var(--cat-surface); color: var(--cat-text); min-width: 0; }
.bp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bp-form label.bp-consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.bp-consent input { margin-top: 3px; }
body.cat .bp-form button[type=submit] { justify-self: start; }
.bp-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bp-small { margin: 0; color: var(--cat-text-3); font-size: 12.5px; }
.bp-msg { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--cat-radius-sm); font-size: 14.5px; font-weight: 600; color: var(--cat-text); }
.bp-msg[hidden] { display: none; }
.bp-msg.is-ok { background: var(--cat-green-soft); }
.bp-msg.is-bad { background: var(--cat-red-soft); }
.bp-related { margin-top: 30px; }
.bp-related h2 { margin: 0 0 12px; font-size: 18px; }
.bp-foot { margin: 24px 0 0; color: var(--cat-text-3); font-size: 13px; }
.bp.is-area .bp-media, .bp.is-featured .bp-media { border: 2px solid var(--cat-accent); }
#quote, #recommend { scroll-margin-top: 90px; }
@media (max-width: 860px) {
  .bp-hero, .bp-grid { grid-template-columns: 1fr; }
  .bp-info h1 { font-size: 26px; }
}
@media (max-width: 520px) {
  .bp-two { grid-template-columns: 1fr; }
  .bp-recommend { grid-template-columns: 1fr; }
  body.cat .bp-rec-btn { justify-self: start; }
  body.cat .bp-actions .biz-cta { flex: 1 1 calc(50% - 8px); }
}

/* ---------------------------------------------------------------- a business's private page (business-update.php) */
.bu-links { margin-top: 4px !important; }
.bu-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
body.cat .bu-nav a { padding: 6px 12px; border: 1px solid var(--cat-line); border-radius: 999px; background: var(--cat-surface); color: var(--cat-text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
body.cat .bu-nav a:hover { color: var(--cat-text); border-color: var(--cat-line-strong); }
.bu-card h2 { margin: 0 0 12px; font-size: 18px; }
.bu-card h3 { margin: 20px 0 8px; font-size: 15px; }
.bu-card[id] { scroll-margin-top: 80px; }
.bu-note { margin: 8px 0 0; color: var(--cat-text-2); font-size: 13.5px; }
.bu-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.bu-tile { display: grid; gap: 2px; align-content: start; padding: 12px 14px; border: 1px solid var(--cat-line); border-radius: var(--cat-radius-sm); background: var(--cat-surface); color: var(--cat-text-2); font-size: 12.5px; line-height: 1.35; }
.bu-tile.is-key { border-color: var(--cat-accent); background: var(--cat-accent-soft); }
.bu-n { color: var(--cat-text); font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bu-table-wrap { overflow-x: auto; }
.bu-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.bu-table th, .bu-table td { padding: 7px 10px; border-bottom: 1px solid var(--cat-line); text-align: right; white-space: nowrap; }
.bu-table th:first-child { text-align: left; }
.bu-table thead th { color: var(--cat-text-3); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.bu-table tbody th { font-weight: 600; color: var(--cat-text); }
.bu-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.bu-areas-month { margin: 0 0 4px; font-weight: 700; font-size: 13.5px; }
.bu-quotes { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.bu-quotes li { padding: 12px 14px; border: 1px solid var(--cat-line); border-left: 4px solid var(--cat-accent); border-radius: var(--cat-radius-sm); background: var(--cat-surface); }
.bu-q-head { margin: 0; font-size: 14.5px; }
.bu-q-head span { margin-left: 6px; color: var(--cat-text-3); font-size: 12.5px; }
.bu-q-text { margin: 6px 0; color: var(--cat-text); font-size: 14.5px; line-height: 1.5; }
.bu-q-reply { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 13.5px; font-weight: 600; }
.bu-code { padding: 2px 8px; border: 1.5px solid var(--cat-text); border-radius: 6px; font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.06em; }
.bu-used { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.bu-used form { margin: 0; }
.bu-used-n { margin: 0; font-size: 14.5px; }
.bu-used-n span { font-size: 26px; font-weight: 800; color: var(--cat-text); vertical-align: -3px; margin-right: 4px; }
.bu-renew, .bu-plan { display: grid; gap: 12px; }
.bu-plan { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--cat-line); }
.bu-renew p, .bu-plan p { margin: 0; color: var(--cat-text-2); font-size: 14px; }
.bu-renew label, .bu-plan label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--cat-text); }
.bu-plan select, .bu-plan textarea { font: inherit; font-weight: 400; padding: 9px 11px; border-radius: var(--cat-radius-sm); border: 1px solid var(--cat-line-strong); background: var(--cat-surface); color: var(--cat-text); }
.bu-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px; }
.bu-months label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 12px; border: 1px solid var(--cat-line-strong); border-radius: var(--cat-radius-sm); cursor: pointer; }
.bu-months label:has(input:checked) { border-color: var(--cat-accent); background: var(--cat-accent-soft); }
.bu-months span { flex-basis: 100%; color: var(--cat-text-2); font-weight: 400; font-size: 12.5px; }
.bu-renew .lp-btn, .bu-plan .lp-btn { justify-self: start; }
.bu-code-row { display: flex; gap: 8px; }
.bu-code-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.bu-form h3 { margin: 10px 0 0; font-size: 15px; }
@media (max-width: 860px) { .bu-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bu-tiles .bu-tile:last-child { grid-column: 1 / -1; } }

/* The advert maker (advert-maker.js) */
.am { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; margin-top: 14px; }
.am-fields { display: grid; gap: 10px; }
.am-fields label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--cat-text); }
.am-fields input, .am-fields textarea { font: inherit; font-weight: 400; padding: 8px 10px; border-radius: var(--cat-radius-sm); border: 1px solid var(--cat-line-strong); background: var(--cat-surface); color: var(--cat-text); min-width: 0; }
.am-designs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 10px 12px; border: 1px solid var(--cat-line); border-radius: var(--cat-radius-sm); }
.am-designs legend { padding: 0 4px; font-size: 13px; font-weight: 700; }
.am-fields .am-designs label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.am-preview canvas { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; border: 1px solid var(--cat-line); border-radius: var(--cat-radius-sm); background: var(--cat-surface-2); }
.am-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 860px) { .am { grid-template-columns: 1fr; } .am-preview { order: -1; } }
body.cat .bu-table tbody th { text-transform: none !important; letter-spacing: 0 !important; font-size: 13.5px !important; font-weight: 600 !important; color: var(--cat-text) !important; background: none !important; }
.bp-code [hidden] { display: none !important; }
/* Link to your page (business-update.php) */
.bu-link-rows { display: grid; gap: 16px; margin-top: 12px; }
.bu-link-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: start; }
.bu-link-row > p { grid-column: 1 / -1; margin: 0; font-size: 13.5px; }
.bu-link-row input, .bu-link-row textarea { font: inherit; font-size: 13px; padding: 8px 10px; border-radius: var(--cat-radius-sm); border: 1px solid var(--cat-line-strong); background: var(--cat-surface-2); color: var(--cat-text); min-width: 0; resize: vertical; }
.bu-link-row .bu-note { grid-column: 1 / -1; }
/* Service and area pages (business-area.php) */
.ba-head { padding: 10px 0 6px; }
.ba-head h1 { margin: 6px 0 8px; font-size: 32px; line-height: 1.12; letter-spacing: -0.02em; }
.ba-intro { margin: 0; max-width: 72ch; color: var(--cat-text-2); font-size: 15.5px; line-height: 1.6; }
.ba-context { margin: 16px 0 6px; padding: 12px 16px; border-left: 4px solid var(--cat-amber); border-radius: 0 var(--cat-radius-sm) var(--cat-radius-sm) 0; background: var(--cat-amber-soft); }
.ba-context p { margin: 2px 0; color: var(--cat-text); font-size: 14.5px; }
.ba-context .ba-context-link { margin-top: 6px; font-weight: 600; }
.ba-sub { margin: 22px 0 10px; font-size: 17px; }
.ba-page .biz-grid { margin-top: 16px; }
.ba-faq { margin-top: 26px; padding: 20px 22px; }
.ba-faq h2 { margin: 0 0 6px; font-size: 18px; }
.ba-faq h3 { margin: 14px 0 4px; font-size: 15px; }
.ba-faq p { margin: 0; color: var(--cat-text-2); font-size: 14.5px; line-height: 1.55; }
.ba-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px 28px; margin-top: 26px; }
.ba-links h2 { margin: 0 0 8px; font-size: 16px; }
.ba-links ul { margin: 0; padding: 0; list-style: none; columns: 2 180px; column-gap: 20px; }
.ba-links li { padding: 3px 0; font-size: 14px; break-inside: avoid; }
.ba-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; }
.ba-chips span { color: var(--cat-text-3); font-weight: 600; }
body.cat .ba-chips a { padding: 6px 12px; border: 1px solid var(--cat-line); border-radius: 999px; background: var(--cat-surface); font-weight: 600; text-decoration: none; }
.bd-browse { margin-top: 30px; }
@media (max-width: 520px) { .ba-head h1 { font-size: 26px; } }
/* Outage pages (outage.php) */
.og-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 16px; }
.og-card { padding: 20px 22px; margin-bottom: 16px; }
.og-card h2 { margin: 0 0 10px; font-size: 18px; }
.og-card h3 { margin: 16px 0 6px; font-size: 15px; }
.og-state { display: inline-block; margin: 6px 0 0; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--cat-surface-2); color: var(--cat-text-2); }
.og-state.is-now { background: var(--cat-red-soft); color: var(--cat-red); }
.og-state.is-overdue { background: var(--cat-amber-soft); color: var(--cat-amber); }
.og-state.is-upcoming { background: var(--cat-accent-soft); color: var(--cat-accent); }
.og-state.is-cleared { background: var(--cat-green-soft); color: var(--cat-green); }
.og-facts > div { grid-template-columns: 110px 1fr; }
.og-said { margin: 12px 0 0; padding: 8px 12px; border-radius: var(--cat-radius-sm); background: var(--cat-green-soft); font-size: 14px; font-weight: 600; }
.og-updates { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.og-updates li { padding: 5px 0; border-top: 1px solid var(--cat-line); }
.og-updates span { color: var(--cat-text-3); font-size: 12.5px; }
.og-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; font-size: 14px; font-weight: 600; }
.og-list { margin: 0; padding: 0; list-style: none; }
.og-item a { display: flex; flex-direction: column; gap: 2px; padding: 9px 0 9px 12px; border-top: 1px solid var(--cat-line); border-left: 3px solid var(--cat-line-strong); text-decoration: none; color: var(--cat-text); }
.og-item.is-power a { border-left-color: var(--ow-power, #eb6834); }
.og-item.is-water a { border-left-color: var(--ow-water, #2a78d6); }
.og-item.is-roads a { border-left-color: var(--cat-amber); }
.og-item strong { font-size: 14.5px; }
.og-item span { color: var(--cat-text-2); font-size: 13px; }
.og-item a:hover strong { text-decoration: underline; }
.og-more { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .og-cols { grid-template-columns: 1fr; } }
.og-item .og-streets { color: var(--cat-text); font-size: 13px; }

/* ---------------------------------------------------------------- map view, "live radar" look (area-hub-lib.php)
   A dark night map in light and dark mode alike, a glowing pin with ripples, a slow sweep, a line from the
   pin to each button in its colour, and glowing buttons. Movement stops for "reduce motion". */
body.cat .hub-stage {
  --cy: calc(36cqw + 80px); height: calc(72cqw + 156px); max-height: 620px;
  border: 1px solid #1d2a44; border-radius: 20px; background: #0b1222;
  box-shadow: 0 14px 34px rgba(8, 14, 30, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
body.cat .hub-stage .hub-tiles { opacity: 0.62; filter: invert(1) hue-rotate(195deg) brightness(0.92) contrast(1.15) saturate(0.7); }
body.cat .hub-stage .hub-wash {
  background: radial-gradient(circle at 50% var(--cy), rgba(11, 18, 34, 0.05) 0, rgba(11, 18, 34, 0.45) 46%, rgba(11, 18, 34, 0.94) 100%),
              linear-gradient(180deg, rgba(11, 18, 34, 0.75) 0, rgba(11, 18, 34, 0) 70px);
}
/* Radar rings, drawn faintly on the map */
.hub-grid { position: absolute; inset: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% var(--cy), transparent 0, transparent calc(var(--r) / 2 - 1px), rgba(125, 170, 255, 0.10) calc(var(--r) / 2 - 1px), rgba(125, 170, 255, 0.10) calc(var(--r) / 2)); }
html.iw-lite body.cat .hub-stage, body.cat .hub-stage:not(:has(.hub-map)) { background-image: radial-gradient(circle at 50% var(--cy), #142347 0, #0b1222 75%); }
/* The sweep turning around the pin */
.hub-sweep { position: absolute; left: calc(50% - var(--r) - 30px); top: calc(var(--cy) - var(--r) - 30px); width: calc(var(--r) * 2 + 60px); height: calc(var(--r) * 2 + 60px);
  border-radius: 50%; pointer-events: none; background: conic-gradient(from 0deg, rgba(96, 165, 250, 0) 0deg, rgba(96, 165, 250, 0) 290deg, rgba(96, 165, 250, 0.28) 358deg, rgba(147, 197, 253, 0.55) 360deg);
  -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 71%); mask-image: radial-gradient(circle, #000 60%, transparent 71%); }
body.cat .hub-stage .hub-ring { border: 1.5px solid rgba(96, 165, 250, 0.45); box-shadow: 0 0 24px rgba(59, 130, 246, 0.18), inset 0 0 24px rgba(59, 130, 246, 0.12); }
body.cat .hub-stage .hub-ring::before { inset: 26%; border: 1px dashed rgba(147, 197, 253, 0.45); background: radial-gradient(circle, rgba(59, 130, 246, 0.30) 0, rgba(59, 130, 246, 0.06) 70%); }
/* Lines from the pin to each button */
.hub-spoke { position: absolute; left: 50%; top: var(--cy); width: calc(var(--r) - 30px); height: 2px; transform-origin: 0 50%; transform: rotate(var(--a)); pointer-events: none;
  --c: rgba(148, 163, 184, 0.6); background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 30px, var(--c)); opacity: 0.55; }
.hub-spoke.is-ok { --c: #34d399; } .hub-spoke.is-info { --c: #60a5fa; } .hub-spoke.is-warn { --c: #fbbf24; opacity: 0.85; } .hub-spoke.is-bad { --c: #f87171; opacity: 1; height: 3px; }
.hub-spoke.is-biz { --c: #3b82f6; } .hub-spoke.is-plain, .hub-spoke.is-na { --c: #94a3b8; }
/* Across the top: Live, and the summary */
.hub-top { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; z-index: 2; }
.hub-live, .hub-sum { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.hub-live { background: rgba(255, 255, 255, 0.08); color: #e2e8f0; border: 1px solid rgba(255, 255, 255, 0.12); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.hub-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.hub-sum.is-ok { background: rgba(52, 211, 153, 0.16); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.35); }
.hub-sum.is-warn { background: rgba(251, 191, 36, 0.16); color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.4); }
.hub-sum.is-bad { background: #dc2626; color: #fff; border: 1px solid #f87171; box-shadow: 0 0 14px rgba(248, 113, 113, 0.55); }
/* The pin, glowing, with two ripples */
body.cat .hub-stage .hub-pin svg { filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.9)) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); }
body.cat .hub-stage .hub-pin svg path { fill: #3b82f6; stroke: #dbeafe; }
body.cat .hub-stage .hub-pin-pulse { left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: none; border: 2px solid rgba(96, 165, 250, 0.8); }
body.cat .hub-stage .hub-pin-name { background: #f8fafc; color: #0b1222; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35), 0 4px 10px rgba(0, 0, 0, 0.4); }
/* Glowing buttons in their state's colour */
body.cat .hub-stage .hub-node { --c: #94a3b8; }
body.cat .hub-stage .hub-node.is-ok { --c: #34d399; }
body.cat .hub-stage .hub-node.is-info { --c: #60a5fa; }
body.cat .hub-stage .hub-node.is-warn { --c: #fbbf24; }
body.cat .hub-stage .hub-node.is-bad { --c: #f87171; }
body.cat .hub-stage .hub-node.is-plain { --c: #cbd5e1; }
body.cat .hub-stage .hub-node.is-biz { --c: #3b82f6; }
body.cat .hub-stage .hub-dot {
  border: 2px solid var(--c); background: radial-gradient(circle at 50% 35%, rgba(30, 41, 59, 0.95), rgba(11, 18, 34, 0.95)); color: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 16%, transparent), 0 0 18px color-mix(in srgb, var(--c) 45%, transparent), 0 6px 14px rgba(0, 0, 0, 0.45);
}
body.cat .hub-stage .hub-node.is-bad .hub-dot { background: radial-gradient(circle at 50% 35%, #ef4444, #b91c1c); color: #fff; border-color: #fecaca; }
body.cat .hub-stage .hub-node.is-biz .hub-dot { background: radial-gradient(circle at 50% 35%, #3b82f6, #1d4ed8); color: #fff; border-color: #bfdbfe; }
body.cat .hub-stage .hub-node.is-warn .hub-dot { background: radial-gradient(circle at 50% 35%, rgba(120, 80, 10, 0.9), rgba(40, 28, 6, 0.95)); }
body.cat .hub-stage .hub-node:hover .hub-dot, body.cat .hub-stage .hub-node:focus-visible .hub-dot { transform: scale(1.08); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 24%, transparent), 0 0 26px color-mix(in srgb, var(--c) 65%, transparent); }
body.cat .hub-stage .hub-badge { border-color: #0b1222; background: #f8fafc; color: #0b1222; }
body.cat .hub-stage .hub-node.is-bad .hub-badge { background: #fff; color: #b91c1c; }
body.cat .hub-stage .hub-cap, body.cat .hub-stage .hub-word { background: rgba(11, 18, 34, 0.72); }
body.cat .hub-stage .hub-cap { color: #f8fafc; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
body.cat .hub-stage .hub-word { color: var(--c); font-weight: 700; }
body.cat .hub-stage .hub-credit { color: rgba(226, 232, 240, 0.55); }
@media (prefers-reduced-motion: no-preference) {
  .hub-sweep { animation: hub-sweep 7s linear infinite; }
  body.cat .hub-stage .hub-pin-pulse { animation: hub-ripple 2.6s ease-out infinite; }
  body.cat .hub-stage .hub-pin-pulse.is-late { animation-delay: 1.3s; }
  .hub-live-dot { animation: sb-pulse 1.6s ease-in-out infinite; }
  .hub-spoke.is-bad { animation: hub-flow 1.4s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) { .hub-sweep { display: none; } }
@keyframes hub-sweep { to { transform: rotate(360deg); } }
@keyframes hub-ripple { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(4.2); opacity: 0; } }
@keyframes hub-flow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@container (max-width: 340px) { .hub-sum { font-size: 11px; padding: 3px 8px; } .hub-live { padding: 3px 7px; } }

/* ---------------------------------------------------------------- map view: an oval ring, so captions under the buttons never meet
   the next button (taller than wide: the captions hang down). The spokes come from area-hub-lib.php (--a, --len). */
body.cat .hub-stage {
  --r: 36cqw; --ry: 40cqw; --cy: calc(40cqw + 82px);
  height: calc(80cqw + 168px); max-height: 640px;
}
body.cat .hub-stage .hub-node { top: calc(var(--cy) + var(--y) * var(--ry)); width: 30cqw; max-width: 116px; }
body.cat .hub-stage .hub-ring { left: calc(50% - var(--r)); top: calc(var(--cy) - var(--ry)); width: calc(var(--r) * 2); height: calc(var(--ry) * 2); }
body.cat .hub-stage .hub-sweep { left: calc(50% - var(--r) - 30px); top: calc(var(--cy) - var(--ry) - 30px); width: calc(var(--r) * 2 + 60px); height: calc(var(--ry) * 2 + 60px); }
body.cat .hub-stage .hub-spoke { width: calc(var(--len) * 1cqw - 30px); }
body.cat .hub-stage .hub-cap, body.cat .hub-stage .hub-word { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.cat .hub-stage .hub-cap { font-size: 12.5px; }
body.cat .hub-stage .hub-word { font-size: 11.5px; }
@container (max-width: 340px) {
  body.cat .hub-stage .hub-cap { font-size: 11.5px; }
  body.cat .hub-stage .hub-word { font-size: 10.5px; }
  body.cat .hub-stage .hub-node { transform: translate(-50%, -22px); }
}

/* ---------------------------------------------------------------- business cards that stand out */
body.cat .biz-card {
  border: 1px solid var(--cat-line); border-radius: 14px; background: var(--cat-surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 22px rgba(16, 24, 40, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
body.cat .biz-card:hover { transform: translateY(-3px); border-color: var(--cat-accent); box-shadow: 0 2px 4px rgba(16, 24, 40, 0.06), 0 16px 34px rgba(31, 79, 216, 0.16); }
body.cat .biz-media { background: linear-gradient(135deg, var(--cat-surface-2), var(--cat-accent-soft)); border-bottom: 1px solid var(--cat-line); }
.biz-card .biz-initial { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: var(--cat-accent-solid); color: #fff; font-size: 30px; box-shadow: 0 8px 18px rgba(31, 79, 216, 0.3); }
.biz-card .biz-initial.is-alt { display: none; }
html.iw-lite .biz-card .biz-initial.is-alt { display: grid; }
.biz-body { gap: 4px; padding: 14px 16px 16px; }
.biz-card h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.biz-cat { color: var(--cat-accent); }
.biz-card .biz-recs { display: inline-flex; align-self: flex-start; margin-top: 2px; padding: 2px 8px; border-radius: 999px; background: var(--cat-green-soft); font-size: 12px; }
.biz-actions { gap: 8px; padding-top: 12px; }
body.cat .biz-card .biz-cta { flex: 1; padding: 10px 12px; border-radius: 10px; border-color: var(--cat-accent-solid); background: var(--cat-accent-solid); color: #fff; font-size: 14px; box-shadow: 0 4px 10px rgba(31, 79, 216, 0.25); }
body.cat .biz-card .biz-cta:hover { background: var(--cat-accent-solid-hover); }
body.cat .biz-card .biz-more { padding: 10px 12px; border: 1px solid var(--cat-line-strong); border-radius: 10px; color: var(--cat-text); text-align: center; }
body.cat .biz-card .biz-more:hover { background: var(--cat-surface-2); text-decoration: none; }
/* Plans: a coloured band across the top of sponsor and featured cards */
body.cat .biz-card.is-area, body.cat .biz-card.is-featured { position: relative; }
body.cat .biz-card.is-area::before, body.cat .biz-card.is-featured::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; z-index: 1; }
body.cat .biz-card.is-area { border: 2px solid var(--cat-accent); }
body.cat .biz-card.is-area::before { background: linear-gradient(90deg, var(--cat-accent-solid), #60a5fa); }
body.cat .biz-card.is-featured { border: 2px solid var(--cat-amber); }
body.cat .biz-card.is-featured::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
body.cat .biz-card.is-featured .biz-cta { background: var(--cat-text); border-color: var(--cat-text); color: var(--cat-surface); box-shadow: 0 4px 10px rgba(16, 24, 40, 0.25); }
body.cat .biz-card.is-free .biz-cta { background: var(--cat-surface); color: var(--cat-text); border-color: var(--cat-line-strong); box-shadow: none; }
body.cat .biz-card.is-free .biz-cta:hover { background: var(--cat-surface-2); }
.biz-card .biz-special { border: 1px dashed var(--cat-amber); }
@media (prefers-reduced-motion: reduce) { body.cat .biz-card, body.cat .biz-card:hover { transition: none; transform: none; } }
.hub-cap-short { display: none; }
@container (max-width: 340px) { .hub-cap-long { display: none; } .hub-cap-short { display: inline; } }

/* ---------------------------------------------------------------- Local sponsors box, bolder: a blue header band across the top,
   a soft blue glow, and rows that lift. (The theme sets panel styles with !important, so these must too.) */
body.cat .panel.ad-box {
  border: 2px solid var(--cat-accent-solid) !important; border-radius: 16px !important; overflow: hidden;
  box-shadow: 0 0 0 4px var(--cat-accent-soft), 0 14px 34px rgba(31, 79, 216, 0.22) !important;
  background: var(--cat-surface) !important; background-image: none !important;
}
body.cat .panel.ad-box .ad-box-head {
  margin: -22px -24px 14px; padding: 16px 24px 15px; align-items: center;
  background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 55%, #4f46e5 100%); position: relative;
}
body.cat .panel.ad-box .ad-box-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% -30%, rgba(255, 255, 255, 0.28), transparent 55%);
}
body.cat .panel.ad-box .ad-box-head h2 { margin: 0 !important; color: #fff !important; font-size: 18px !important; letter-spacing: -0.01em !important; }
body.cat .panel.ad-box .ad-box-head a { position: relative; z-index: 1; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px; color: #fff; font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
body.cat .panel.ad-box .ad-box-head a:hover { background: rgba(255, 255, 255, 0.16); }
body.cat .ad-box .biz-row { padding: 12px; border: 1px solid var(--cat-line); border-left: 4px solid var(--cat-accent-solid); border-radius: 12px; box-shadow: 0 4px 12px rgba(16, 24, 40, 0.07); transition: transform 0.15s ease, box-shadow 0.15s ease; }
body.cat .ad-box a.biz-row:hover { transform: translateY(-2px); background: var(--cat-surface); box-shadow: 0 10px 22px rgba(31, 79, 216, 0.16); }
body.cat .ad-box .biz-row-media { width: 58px; height: 58px; border-radius: 10px; }
body.cat .ad-box .biz-row-text em { display: inline-block; justify-self: start; margin-top: 2px; padding: 3px 10px; border-radius: 999px; background: var(--cat-accent-solid); color: #fff; font-size: 12px; }
body.cat .ad-box .ad-note { margin-top: 12px; font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { body.cat .ad-box .biz-row, body.cat .ad-box a.biz-row:hover { transition: none; transform: none; } }

/* Local businesses on the homepage and suburb pages: wider cards, like the directory's top row */
.biz-grid.is-strip { grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 16px; }

/* ---------------------------------------------------------------- map view: sharper map, real points, details, compared to usual */
/* Ordinary screens: 3 x 3 tiles; sharp screens: 5 x 5 tiles of the next zoom at half size */
body.cat .hub-stage .hub-tiles.is-2x { display: none; left: calc(50% - 256px - var(--px)); top: calc(var(--cy) - 256px - var(--py)); grid-template-columns: repeat(5, 128px); grid-auto-rows: 128px; }
body.cat .hub-stage .hub-tiles.is-2x span { background-size: 128px 128px; }
@media (min-resolution: 1.5dppx) {
  body.cat .hub-stage .hub-tiles.is-1x { display: none; }
  body.cat .hub-stage .hub-tiles.is-2x { display: grid; }
}
/* The points: outages on their streets, reports to the nearest block */
.hub-pts { position: absolute; inset: 0; pointer-events: none; }
body.cat .hub-pt { position: absolute; left: calc(50% + var(--px)); top: calc(var(--cy) + var(--py)); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: auto; text-decoration: none; --c: #f87171; background: var(--c); box-shadow: 0 0 0 2px rgba(11, 18, 34, 0.85), 0 0 12px var(--c); }
body.cat .hub-pt.is-report { --c: #fb7185; }
body.cat .hub-pt.is-report.is-serious { width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; --c: #ef4444; }
body.cat .hub-pt.is-power { --c: #facc15; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 4px; }
body.cat .hub-pt.is-water { --c: #38bdf8; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 4px; }
.hub-pt-n { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #0b1222; font-size: 9px; font-weight: 800; line-height: 1; }
body.cat .hub-pt.is-report:has(.hub-pt-n) { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.hub-pt-label { display: none; }
@media (prefers-reduced-motion: no-preference) {
  body.cat .hub-pt.is-fresh::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--c); animation: hub-pt-ping 2.2s ease-out infinite; }
}
@keyframes hub-pt-ping { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(3); } }

/* Under the map: the key, this week against a usual week, and sharing */
.hub-under { display: grid; gap: 8px; margin: 10px 2px 0; }
.hub-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--cat-text-2); font-size: 12.5px; }
.hub-key { display: inline-flex; align-items: center; gap: 6px; }
.hub-key i { width: 10px; height: 10px; border-radius: 50%; background: #fb7185; }
.hub-key.is-power i { background: #facc15; border-radius: 2px; }
.hub-key.is-water i { background: #38bdf8; border-radius: 2px; }
.hub-key-off, .hub-key-none { color: var(--cat-text-3); }
.hub-usual { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-size: 12.5px; }
.hub-usual-title { flex-basis: 100%; color: var(--cat-text-3); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hub-usual-item { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--cat-line); background: var(--cat-surface); color: var(--cat-text-2); }
.hub-usual-item b { color: var(--cat-text); font-weight: 700; }
.hub-usual-item.is-up { border-color: var(--cat-amber); background: var(--cat-amber-soft); }
.hub-usual-item.is-down { border-color: var(--cat-green); background: var(--cat-green-soft); }
body.cat .hub-share { justify-self: start; padding: 9px 16px; border: 1px solid var(--cat-line-strong); border-radius: 999px; background: var(--cat-surface); color: var(--cat-text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
body.cat .hub-share:hover { background: var(--cat-surface-2); }
@media (max-width: 760px) { .hub-under { display: grid; } }

/* Compared to usual, on the tiles (computers) */
.sb-usual { margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--cat-line); color: var(--cat-text-2); font-size: 12.5px; line-height: 1.4; }

/* The details that slide up from a button (hub.js) */
.hub-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 560px; max-height: 80vh; margin: 0 auto; padding: 10px 20px 24px; border: 0; border-radius: 20px 20px 0 0; background: var(--cat-surface); color: var(--cat-text); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3); overflow-y: auto; transform: translateY(100%); transition: transform 0.2s ease; }
.hub-sheet.is-open { transform: none; }
.hub-sheet::backdrop { background: rgba(10, 16, 32, 0.5); }
.hs-grab { width: 44px; height: 5px; margin: 0 auto 8px; border-radius: 3px; background: var(--cat-line-strong); }
body.cat .hs-close { position: absolute; top: 12px; right: 14px; padding: 6px 12px; border: 1px solid var(--cat-line); border-radius: 999px; background: var(--cat-surface); color: var(--cat-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hs-title { margin: 6px 90px 10px 0; font-size: 19px; }
.hs-word { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.hs-word.is-bad { color: var(--cat-red); } .hs-word.is-warn { color: var(--cat-amber); } .hs-word.is-ok { color: var(--cat-green); } .hs-word.is-info { color: var(--cat-accent); }
.hs-line { margin: 4px 0; color: var(--cat-text-2); font-size: 15px; line-height: 1.5; }
.hs-usual { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--cat-surface-2); font-size: 14px; }
.hs-alert { display: grid; gap: 2px; margin: 0; padding: 10px 0; border-top: 1px solid var(--cat-line); font-size: 15px; font-weight: 600; }
.hs-alert span { color: var(--cat-text-3); font-size: 12.5px; font-weight: 500; }
.hs-more { margin: 16px 0 0; }
@media (prefers-reduced-motion: reduce) { .hub-sheet { transition: none; } }

/* Computers: the map shows where things are (the points, with their names on hover) and the tiles beside it
   give the detail, so the ring of buttons isn't repeated there */
@media (min-width: 761px) {
  body.cat .hub-stage .hub-node, body.cat .hub-stage .hub-spoke { display: none; }
  body.cat .hub-pt { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
  body.cat .hub-pt:hover, body.cat .hub-pt:focus-visible { z-index: 5; outline: none; box-shadow: 0 0 0 3px #fff, 0 0 16px var(--c); }
  body.cat .hub-pt:hover .hub-pt-label, body.cat .hub-pt:focus-visible .hub-pt-label {
    display: block; position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); padding: 5px 9px; border-radius: 8px;
    background: #f8fafc; color: #0b1222; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  }
}

/* "Map points" or "Buttons" above the map: computers only (hub.js) */
.hub-switch { display: none; }
@media (min-width: 761px) {
  .hub-switch { display: inline-flex; gap: 2px; margin: 0 0 8px; padding: 3px; border: 1px solid var(--cat-line); border-radius: 999px; background: var(--cat-surface); }
  body.cat .hub-switch button { padding: 6px 14px; border: 0; border-radius: 999px; background: none; color: var(--cat-text-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
  body.cat .hub-switch button:hover { color: var(--cat-text); }
  body.cat .hub-switch button[aria-pressed="true"] { background: var(--cat-text); color: var(--cat-surface); }
  html.hub-buttons body.cat .hub-stage .hub-node { display: flex; }
  html.hub-buttons body.cat .hub-stage .hub-spoke { display: block; }
}

/* ---------------------------------------------------------------- weather warning strip (city-extras-lib.php): suburb pages, homepage, outages */
body.cat .wx-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 12px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid; text-decoration: none; color: var(--cat-text); font-size: 14px; line-height: 1.4; }
body.cat .wx-strip:hover { filter: brightness(0.97); }
.wx-label { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.wx-strip.is-yellow { background: #fef9c3; border-color: #eab308; }
.wx-strip.is-yellow .wx-label { background: #facc15; color: #422006; }
.wx-strip.is-orange { background: #ffedd5; border-color: #f97316; }
.wx-strip.is-orange .wx-label { background: #f97316; color: #fff; }
.wx-strip.is-red { background: #fee2e2; border-color: #dc2626; }
.wx-strip.is-red .wx-label { background: #dc2626; color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.cat .wx-strip { background: var(--cat-surface); } }
:root[data-theme="dark"] body.cat .wx-strip { background: var(--cat-surface); }

/* ---------------------------------------------------------------- the "what people search for" pages (extras-page-lib.php) */
.xp-page { padding-bottom: 40px; }
.xp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin-top: 18px; }
.xp-stat { display: grid; gap: 3px; align-content: start; padding: 16px 18px; border: 1px solid var(--cat-line); border-radius: 14px; background: var(--cat-surface); color: var(--cat-text-2); font-size: 13px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
.xp-stat.is-main { border: 2px solid var(--cat-accent); background: linear-gradient(180deg, var(--cat-accent-soft), var(--cat-surface) 80%); }
.xp-label { color: var(--cat-text-3); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.xp-n { color: var(--cat-text); font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.xp-diff { justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--cat-surface-2); color: var(--cat-text-2); font-weight: 700; font-size: 12px; }
.xp-diff.is-up { background: var(--cat-red-soft); color: var(--cat-red); }
.xp-diff.is-down { background: var(--cat-green-soft); color: var(--cat-green); }
.xp-card { margin-top: 18px; padding: 20px 22px; }
.xp-card h2 { margin: 0 0 10px; font-size: 18px; }
.xp-card h3 { margin: 18px 0 8px; font-size: 15px; }
.xp-card p { color: var(--cat-text-2); line-height: 1.6; }
/* Dam bars: this week as a bar, a year ago as a mark */
.xp-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; font-size: 13px; color: var(--cat-text-2); }
.xp-key-bar { width: 22px; height: 10px; border-radius: 3px; background: #2a78d6; }
.xp-key-mark { width: 3px; height: 16px; margin-left: 10px; border-radius: 2px; background: var(--cat-text); }
.xp-dams { display: grid; gap: 10px; }
.xp-dam { display: grid; grid-template-columns: 150px minmax(0, 1fr) 96px; gap: 12px; align-items: center; font-size: 14px; }
.xp-dam-name { font-weight: 700; color: var(--cat-text); }
.xp-dam-track { position: relative; height: 16px; border-radius: 4px; background: var(--cat-surface-2); }
.xp-dam-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: #2a78d6; }
.xp-dam-mark { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--cat-text); box-shadow: 0 0 0 2px var(--cat-surface); }
.xp-dam-val { display: grid; text-align: right; font-weight: 800; color: var(--cat-text); font-variant-numeric: tabular-nums; }
.xp-dam-val small { color: var(--cat-text-3); font-weight: 600; font-size: 11.5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .xp-dam-fill, :root:not([data-theme="light"]) .xp-key-bar { background: #3987e5; } }
:root[data-theme="dark"] .xp-dam-fill, :root[data-theme="dark"] .xp-key-bar { background: #3987e5; }
.xp-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.xp-weeks li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--cat-line); }
@media (max-width: 560px) { .xp-dam { grid-template-columns: 1fr 70px; } .xp-dam-track { grid-column: 1 / -1; grid-row: 2; } }
/* Weather warnings */
.xp-warn { margin-top: 18px; padding: 20px 22px; border-left: 6px solid #eab308 !important; }
.xp-warn.is-orange { border-left-color: #f97316 !important; }
.xp-warn.is-red { border-left-color: #dc2626 !important; }
.xp-warn-label { display: inline-block; margin: 0; padding: 3px 10px; border-radius: 999px; background: #facc15; color: #422006; font-size: 12px; font-weight: 800; }
.xp-warn.is-orange .xp-warn-label { background: #f97316; color: #fff; }
.xp-warn.is-red .xp-warn-label { background: #dc2626; color: #fff; }
.xp-warn h2 { margin: 8px 0 4px; font-size: 22px; }
.xp-warn-when { margin: 0; font-weight: 700; color: var(--cat-text); }
.xp-warn-where { margin: 4px 0 0; color: var(--cat-text-2); }
.xp-warn h3 { margin: 14px 0 4px; font-size: 15px; }
.xp-warn ul { margin: 0; padding-left: 20px; color: var(--cat-text-2); line-height: 1.6; }
.xp-calm { margin-top: 18px; padding: 20px 22px; border-left: 6px solid var(--cat-green) !important; }
.xp-calm-title { margin: 0 0 6px; color: var(--cat-green); font-size: 19px; font-weight: 800; }
.xp-calm p { margin: 0; color: var(--cat-text-2); line-height: 1.6; }
/* Transport */
.xp-transport { margin-top: 18px; }
.xp-log { margin: 0; padding: 0; list-style: none; }
.xp-log li { padding: 10px 0; border-top: 1px solid var(--cat-line); }
.xp-log span { color: var(--cat-text-3); font-size: 12.5px; font-weight: 700; }
.xp-log p { margin: 4px 0 0; color: var(--cat-text); }
/* Links to the other pages */
.xp-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
body.cat .xp-more a { padding: 7px 14px; border: 1px solid var(--cat-line); border-radius: 999px; background: var(--cat-surface); font-size: 13.5px; font-weight: 600; text-decoration: none; }
body.cat .xp-more a:hover { border-color: var(--cat-accent); }
.og-dam { margin: 0 0 12px; color: var(--cat-text-2); font-size: 14px; }

/* ---------------------------------------------------------------- games (games.php, games.js) */
.gm-page { padding-bottom: 40px; }
.gm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 20px; }
body.cat .gm-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 250px; padding: 22px; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none;
  background: radial-gradient(circle at 80% 0%, rgba(96, 165, 250, 0.35), transparent 55%), linear-gradient(160deg, #13234a, #0b1222); box-shadow: 0 14px 30px rgba(8, 14, 30, 0.25); transition: transform 0.18s ease, box-shadow 0.18s ease; }
body.cat .gm-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(8, 14, 30, 0.35); }
body.cat .gm-card.is-suburb-spotter { background: radial-gradient(circle at 80% 0%, rgba(52, 211, 153, 0.32), transparent 55%), linear-gradient(160deg, #0f3a2e, #0b1a17); }
body.cat .gm-card.is-safety-smarts { background: radial-gradient(circle at 80% 0%, rgba(251, 191, 36, 0.32), transparent 55%), linear-gradient(160deg, #3a2a0b, #1a1206); }
.gm-kind { color: rgba(255, 255, 255, 0.7); font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.gm-name { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.gm-about { color: rgba(255, 255, 255, 0.82); font-size: 14.5px; line-height: 1.55; }
.gm-best { margin-top: auto; color: rgba(255, 255, 255, 0.7); font-size: 13px; font-weight: 600; }
.gm-play { align-self: flex-start; padding: 9px 20px; border-radius: 999px; background: #fff; color: #0b1222; font-weight: 800; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { body.cat .gm-card, body.cat .gm-card:hover { transition: none; transform: none; } }

.gm-wrap { margin-top: 10px; border-radius: 20px; overflow: hidden; color: #f8fafc;
  background: radial-gradient(circle at 50% 20%, #17295a 0, #0b1222 70%); box-shadow: 0 16px 36px rgba(8, 14, 30, 0.3); }
.gm-intro, .gm-over { padding: 34px 26px; text-align: center; }
.gm-intro h1 { margin: 0 0 8px; color: #fff; font-size: 34px; letter-spacing: -0.02em; }
.gm-intro p { max-width: 56ch; margin: 0 auto; color: #cbd5e1; font-size: 15.5px; line-height: 1.6; }
.gm-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
body.cat .gm-start { min-width: 200px; padding: 13px 22px; font-size: 16px; }
body.cat .gm-wrap .lp-btn:not(.primary) { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
body.cat .gm-wrap .lp-btn:disabled { opacity: 0.75; cursor: default; }
.gm-note, .gm-best-line { margin-top: 14px !important; color: #94a3b8 !important; font-size: 13.5px !important; }
.gm-more { display: flex; gap: 18px; margin-top: 16px; font-weight: 600; }
.gm-over-kicker { margin: 0; color: #fbbf24; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.gm-over-score { margin: 4px 0 8px; color: #fff; font-size: 56px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gm-over-line { margin: 4px 0; color: #cbd5e1; }
.gm-over-line.is-best { color: #94a3b8; font-size: 14px; }
.gm-over-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* Radar Rush */
.rr-hud { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 0; font-weight: 800; }
.rr-score { font-size: 26px; font-variant-numeric: tabular-nums; }
.rr-combo { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 15px; }
.rr-combo.is-hot { background: #f97316; color: #fff; box-shadow: 0 0 16px rgba(249, 115, 22, 0.6); }
.rr-lives { display: flex; gap: 5px; }
.rr-lives i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.rr-lives i.is-on { background: #34d399; box-shadow: 0 0 8px #34d399; }
.rr-ring { position: relative; container-type: inline-size; width: min(100%, 520px); margin: 0 auto; aspect-ratio: 1 / 1.08; --r: 37cqw; --cy: 52%; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.rr-ring.is-hurt { animation: rr-shake 0.35s ease; }
.rr-orbit { position: absolute; left: calc(50% - var(--r)); top: calc(var(--cy) - var(--r)); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border: 1.5px dashed rgba(96, 165, 250, 0.45); border-radius: 50%; }
.rr-sweep { position: absolute; left: calc(50% - var(--r)); top: calc(var(--cy) - var(--r)); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%; background: conic-gradient(from 0deg, transparent 0deg 300deg, rgba(96, 165, 250, 0.25) 358deg, rgba(147, 197, 253, 0.5) 360deg); }
.rr-centre { position: absolute; left: 50%; top: var(--cy); transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 999px; background: #f8fafc; color: #0b1222; font-size: 18px; font-weight: 800; white-space: nowrap; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.35); }
body.cat .rr-node { position: absolute; left: calc(50% + var(--x) * var(--r)); top: calc(var(--cy) + var(--y) * var(--r)); transform: translate(-50%, -32px); width: 26cqw; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font: inherit; --c: #475569; --left: 1; -webkit-tap-highlight-color: transparent; }
.rr-dot { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--c); background: radial-gradient(circle at 50% 35%, #1e293b, #0b1222);
  box-shadow: 0 0 0 calc(var(--left) * 6px) color-mix(in srgb, var(--c) 30%, transparent), 0 0 18px color-mix(in srgb, var(--c) 50%, transparent); transition: transform 0.08s ease; }
body.cat .rr-node:active .rr-dot { transform: scale(0.92); }
.rr-key { color: rgba(255, 255, 255, 0.35); font-size: 13px; font-weight: 800; }
.rr-cap { padding: 1px 6px; border-radius: 6px; background: rgba(11, 18, 34, 0.7); font-size: 12.5px; font-weight: 700; }
.rr-word { min-height: 15px; color: var(--c); font-size: 12px; font-weight: 800; }
body.cat .rr-node.is-bad { --c: #ef4444; }
body.cat .rr-node.is-bad .rr-dot { background: radial-gradient(circle at 50% 35%, #ef4444, #991b1b); }
body.cat .rr-node.is-warn { --c: #fbbf24; }
body.cat .rr-node.is-warn .rr-dot { background: radial-gradient(circle at 50% 35%, #b45309, #451a03); }
body.cat .rr-node.is-ok { --c: #34d399; }
body.cat .rr-node.is-ok .rr-dot { background: radial-gradient(circle at 50% 35%, #065f46, #022c22); }
body.cat .rr-node.is-gold { --c: #60a5fa; }
body.cat .rr-node.is-gold .rr-dot { background: radial-gradient(circle at 50% 35%, #3b82f6, #1e3a8a); }
body.cat .rr-node.is-bad .rr-key, body.cat .rr-node.is-warn .rr-key, body.cat .rr-node.is-ok .rr-key, body.cat .rr-node.is-gold .rr-key { color: #fff; }
.rr-pop { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 18px; font-weight: 800; white-space: nowrap; pointer-events: none; animation: rr-pop 0.7s ease-out forwards; }
.rr-pop.is-good { color: #6ee7b7; } .rr-pop.is-bad { color: #fca5a5; }
.rr-help { margin: 0; padding: 0 18px 18px; text-align: center; color: #94a3b8; font-size: 13px; }
@keyframes rr-pop { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -34px); } }
@keyframes rr-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@media (prefers-reduced-motion: no-preference) { .rr-sweep { animation: hub-sweep 4s linear infinite; } }
@container (max-width: 360px) { .rr-dot { width: 52px; height: 52px; } body.cat .rr-node { transform: translate(-50%, -26px); } .rr-cap { font-size: 11px; } }

/* The quiz (Suburb Spotter, Safety Smarts) */
.qz-hud { display: flex; justify-content: space-between; gap: 10px; padding: 16px 22px 8px; color: #cbd5e1; font-size: 14px; font-weight: 700; }
.qz-score { color: #fff; font-size: 22px; font-variant-numeric: tabular-nums; }
.qz-streak { color: #fbbf24; }
.qz-bar { height: 6px; margin: 0 22px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.qz-bar span { display: block; height: 100%; background: #34d399; transform-origin: left; }
.qz-bar.is-low span { background: #ef4444; }
.qz-card { padding: 22px 22px 28px; }
.qz-q { margin: 0 0 18px; color: #fff; font-size: 22px; font-weight: 800; line-height: 1.3; }
.qz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.cat .qz-opt { padding: 16px 14px; border: 2px solid rgba(255, 255, 255, 0.16); border-radius: 14px; background: rgba(255, 255, 255, 0.06); color: #fff; font: inherit; font-size: 15.5px; font-weight: 700; text-align: left; cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease; }
body.cat .qz-opt:hover:not(:disabled) { border-color: #60a5fa; background: rgba(96, 165, 250, 0.14); }
body.cat .qz-opt.is-right { border-color: #34d399; background: rgba(52, 211, 153, 0.22); }
body.cat .qz-opt.is-wrong { border-color: #ef4444; background: rgba(239, 68, 68, 0.22); }
body.cat .qz-opt:disabled { cursor: default; }
.qz-after { min-height: 24px; margin: 16px 0 0; color: #cbd5e1; font-size: 15px; line-height: 1.55; }
.qz-after .is-right { color: #6ee7b7; } .qz-after .is-wrong { color: #fca5a5; }
body.cat .qz-next { margin-top: 14px; }
@media (max-width: 520px) { .qz-options { grid-template-columns: 1fr; } .qz-q { font-size: 19px; } .gm-intro h1 { font-size: 28px; } }
.hub-play { margin: 0; color: var(--cat-text-2); font-size: 13px; }
.hub-play a { font-weight: 700; }

/* Games on the residents' page (index.php) */
.gm-band { margin: 22px 0; padding: 22px; border-radius: 20px; background: linear-gradient(135deg, #0b1222, #13234a); box-shadow: 0 14px 34px rgba(8, 14, 30, 0.25); color: #f8fafc; }
.gm-band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 20px; margin-bottom: 16px; }
.gm-band-kicker { margin: 0; color: #fbbf24; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.gm-band h2 { margin: 4px 0 6px; color: #fff; font-size: 24px; letter-spacing: -0.02em; }
.gm-band-head p:not(.gm-band-kicker) { margin: 0; max-width: 64ch; color: #cbd5e1; font-size: 14.5px; line-height: 1.55; }
body.cat .gm-band-all { padding: 8px 16px; border-radius: 999px; background: #fff; color: #0b1222; font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.gm-cards.is-compact { margin-top: 0; gap: 12px; }
body.cat .gm-cards.is-compact .gm-card { min-height: 0; padding: 18px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: none; }
.gm-cards.is-compact .gm-name { font-size: 22px; }
.gm-cards.is-compact .gm-about { font-size: 13.5px; }
body.cat .page-tabs a.is-game { border-color: #f59e0b; color: #b45309; background: #fef3c7; }
body.cat .page-tabs a.is-game[aria-current="true"] { background: #f59e0b; border-color: #f59e0b; color: #fff; }
#games { scroll-margin-top: calc(var(--tabs-top, 56px) + var(--tabs-h, 52px) + 12px); }
/* The theme sets heading colours with !important, so the dark games band needs it too */
body.cat .gm-band .gm-band-head h2 { color: #fff !important; }
