:root {
  --hub-navy: #1f3a5f;
  --hub-orange: #f28c28;
  --hub-red: #d64545;
}

.hub { padding-bottom: 5.5rem; }
.hub-hero { padding: 1.6rem 0 1rem; }
.hub-hero h1 { margin: 0.2rem 0 0.4rem; font-size: clamp(1.7rem, 5vw, 2.4rem); color: var(--hub-navy); }
.hub-hero p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.nav-cta { background: var(--hub-orange); color: #1b1300; padding: 0.45rem 0.9rem; border-radius: 999px; font-weight: 700; }
.nav-logout { display: inline; margin: 0; }
.nav-logout button { background: #c0392b; color: #fff; border: 0; padding: 0.45rem 0.9rem; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.nav-logout button:hover { background: #a02d21; }

.urgent-banner {
  display: block; margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 12px;
  background: var(--hub-red); color: #fff; font-weight: 600;
}

.concept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0.5rem 0 1.5rem; }
.concept-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.3rem; border-radius: 18px; color: #fff; min-height: 170px; box-shadow: var(--shadow); }
.concept-card h2 { margin: 0; font-size: 1.35rem; }
.concept-card p { margin: 0; opacity: 0.92; }
.concept-card__icon { font-size: 2rem; }
.concept-card__cta { margin-top: auto; font-weight: 700; }
.concept-card--updates { background: var(--hub-navy); }
.concept-card--shouts { background: #c2650a; }

.hub-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.hub-section-head { display: flex; justify-content: space-between; align-items: baseline; }
.hub-section-head h2, .hub-section h2 { font-size: 1.2rem; margin: 0.5rem 0; }
.hub-section { margin-top: 1.8rem; }
.hub-list { display: grid; gap: 0.9rem; }

.hub-card {
  background: var(--surface-strong); border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1.1rem; margin-bottom: 0.8rem;
}
.hub-card h3 { margin: 0.5rem 0 0.3rem; font-size: 1.1rem; }
.hub-card p { margin: 0.2rem 0; line-height: 1.5; }
.hub-card--update { border-left: 5px solid var(--hub-navy); }
.hub-card--update.is-urgent { border-left-color: var(--hub-red); }
.hub-card--shout { border-left: 5px solid var(--cat, var(--hub-orange)); }
.hub-card--shout.is-resolved { opacity: 0.7; }
.hub-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--muted); }
.hub-card__foot { font-size: 0.9rem; color: var(--muted); }

.badge { padding: 0.15rem 0.6rem; border-radius: 999px; font-weight: 700; font-size: 0.8rem; }
.badge--official { background: #dbe6f5; color: var(--hub-navy); }
.badge--cat { background: color-mix(in srgb, var(--cat, #888) 15%, white); color: var(--cat, #333); }
.badge--urgent { background: var(--hub-red); color: #fff; }
.badge--resolved { background: #dcfce7; color: var(--success); }

.hub-link { color: var(--hub-navy); font-weight: 700; text-decoration: underline; }
.hub-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.hub-actions form { margin: 0; }
.hub-actions button, .hub-card form button.is-quiet {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0.4rem 0.85rem;
  font: inherit; font-size: 0.9rem; cursor: pointer; min-height: 40px;
}
.hub-actions button.is-quiet { color: var(--muted); }
.hub-pill { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.9rem; min-height: 40px; display: inline-flex; align-items: center; }
.comment { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.comment p { margin: 0.2rem 0; }
.community-map-link { display: block; margin: 1rem 0 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--hub-navy); font-weight: 700; }
.community-map { padding-bottom: 5rem; }
.community-map__canvas { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #f3eddc; box-shadow: var(--shadow); }
.community-map__art { display: block; width: 100%; height: auto; }
.community-map__pin { position: absolute; transform: translate(-50%, -50%); z-index: 1; display: flex; align-items: center; gap: 0.35rem; max-width: min(220px, 45%); padding: 0.35rem 0.6rem; border: 2px solid #fff; border-radius: 999px; background: var(--hub-orange); color: #1b1300; box-shadow: 0 2px 8px #0003; font-size: 0.8rem; font-weight: 700; }
.community-map__pin-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-map__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.community-map__item { display: block; margin: 0; transition: transform 120ms ease, box-shadow 120ms ease; }
.community-map__item:hover, .community-map__item:focus-within { transform: translateY(-2px); box-shadow: var(--shadow); }
.community-map__item h2 { font-size: 1rem; }
.community-map__note { padding: 0.75rem 1rem; border-radius: 12px; background: #fff4e5; color: #713b12; font-size: 0.9rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 1rem; }
.chip {
  padding: 0.5rem 0.95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; min-height: 40px; display: inline-flex; align-items: center;
}
.chip.is-active { background: var(--hub-navy); color: #fff; border-color: var(--hub-navy); }
.hub--shouts .chip.is-active { background: #c2650a; border-color: #c2650a; }

.area-filter { margin-bottom: 1rem; }
.area-filter select { margin-left: 0.5rem; padding: 0.4rem; border-radius: 8px; }

.emergency-strip { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding: 0.7rem 1rem; margin: 0.8rem 0; background: #fff4e5; border: 1px solid #f7cf9d; border-radius: 12px; font-size: 0.95rem; }
.emergency-strip strong { font-size: 1.1rem; color: #9a3412; }
.safety-note { background: #fff4e5; border: 1px solid #f7cf9d; border-radius: 12px; padding: 0.9rem 1rem; margin-bottom: 1rem; }
.channel-list { list-style: none; padding: 0; display: grid; gap: 0.4rem; }

.notice-banner--error { background: #fee2e2; color: #991b1b; }

.category-picker { border: 0; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 0.5rem; }
.category-picker legend { font-weight: 700; margin-bottom: 0.4rem; }
.category-option { display: block; cursor: pointer; }
.category-option input { position: absolute; opacity: 0; }
.category-option span { display: block; padding: 0.75rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; }
.category-option input:checked + span { border-color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, white); }
.category-option input:focus-visible + span { outline: 3px solid var(--hub-navy); }

.member-privacy-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.75rem; }
.fab { position: fixed; right: 1.2rem; bottom: 1.2rem; background: var(--hub-orange); color: #1b1300; padding: 0.9rem 1.3rem; border-radius: 999px; font-weight: 800; box-shadow: var(--shadow); z-index: 20; }

.tab-bar { display: none; }

.hub-map-page { width: calc(100% + 2rem); margin: 0 0 0 -1rem; padding: 0 1rem 1rem; }
.hub-map-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; min-height: 62px; max-width: 1600px; margin: auto; }
.hub-map-brand { display: flex; align-items: center; gap: 0.45rem; white-space: nowrap; color: var(--hub-navy); font-size: 1.05rem; margin-right: auto; }
.hub-map-count { color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.hub-map-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.6rem; padding: 0.6rem; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.hub-map-filter { flex: 0 0 auto; padding: 0.45rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.83rem; font-weight: 650; }
.hub-map-filter.is-active { background: var(--hub-navy); color: #fff; border-color: var(--hub-navy); }
.hub-map-filter.is-disabled { border-color: #d5d8dc; background: #f1f2f3; color: #8b9198; cursor: not-allowed; }
.hub-map-post { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 48px; padding: 0.5rem 1.1rem; border-radius: 999px; background: var(--hub-orange); color: #1b1300; font-weight: 800; white-space: nowrap; }
.hub-map-post span[aria-hidden] { font-size: 1.5rem; line-height: 1; }
.hub-map-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; max-width: 1600px; margin: auto; }
.hub-map-live-toolbar { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 900; display: flex; align-items: center; gap: 0.5rem; }
.hub-map-live-button { min-height: 40px; padding: 0.4rem 1.25rem; border-radius: 999px; }
.hub-map-live-button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #168447; }
#hub-live-clock { padding: 0.55rem 0.7rem; border-radius: 9px; background: #fff; color: #163b65; font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 1px 5px #172b4d55; }
.hub-map-summary { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.hub-example-age-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.8rem; margin: 0; padding: 0.55rem 0.75rem 0; color: var(--muted); font-size: 0.75rem; }
.hub-example-age-legend span { white-space: nowrap; }
.hub-example-age-swatch { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #c45a12; }
.hub-example-age-swatch--one { opacity: 0.55; }
.hub-example-age-swatch--two { opacity: 0.18; }
.hub-category-swatch { display: inline-block; width: 0.7rem; height: 0.7rem; margin-right: 0.25rem; border-radius: 50%; }
.hub-map-summary table { width: 100%; min-width: 720px; table-layout: fixed; border-collapse: collapse; text-align: center; }
.hub-map-summary th { padding: 0.8rem 0.3rem 0.35rem; color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.hub-map-summary td { padding: 0.15rem 0.3rem 0.8rem; color: var(--hub-navy); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.hub-map-summary th + th, .hub-map-summary td + td { border-left: 1px solid var(--line); }
.hub-map-view-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; max-width: 1600px; margin: 0 auto 0.65rem; }
.hub-map-view-switch .hub-map-view-button--historic { grid-column: 1 / -1; justify-self: start; min-height: 34px; padding: 0.25rem 0.8rem; border-width: 1px; font-size: 0.78rem; font-weight: 600; opacity: 0.8; }
.hub-map-view-button { display: flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 48px; padding: 0.45rem 1rem; border: 2px solid #3976bd; border-radius: 12px; background: #edf5ff; color: #163b65; font: inherit; font-weight: 800; cursor: pointer; }
.hub-map-view-button small { color: #385b81; font-weight: 550; }
.hub-map-view-button.is-active[data-map-view="town"] { background: #dcecff; box-shadow: 0 0 0 2px #3976bd33; }
.hub-map-view-button[data-map-view="neighbour"] { border-color: #c29100; background: #fff9df; color: #634c00; }
.hub-map-view-button[data-map-view="neighbour"] small { color: #745d10; }
.hub-map-view-button.is-active[data-map-view="neighbour"] { background: #ffefad; box-shadow: 0 0 0 2px #c2910033; }
.hub-map-view-button[data-map-view="historic"] { border-color: #7652a5; background: #f5efff; color: #432a68; }
.hub-map-view-button[data-map-view="historic"] small { color: #624986; }
.hub-map-view-button.is-active[data-map-view="historic"] { background: #e8dcfa; box-shadow: 0 0 0 2px #7652a533; }
.hub-map-view-button:disabled,
.hub-map-view-button:disabled[data-map-view="neighbour"],
.hub-map-view-button:disabled[data-map-view="historic"] { border-color: #d5d8dc; background: #f1f2f3; color: #8b9198; box-shadow: none; cursor: not-allowed; }
.hub-map-view-button:disabled small { color: #8b9198; }
.hub-map-neighbourhood-note { max-width: 1600px; margin: 0 auto 0.65rem; padding: 0.65rem 0.9rem; border: 1px solid #f3ca45; border-radius: 10px; background: #fff8d6; color: #684e00; font-size: 0.88rem; font-weight: 650; }
.direct-neighbourhood-page, .direct-neighbourhood-admin { max-width: 1100px; margin: 0 auto; }
.direct-neighbourhood-map { height: min(62vh, 620px); min-height: 360px; margin: 1rem 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #e8edf0; }
.direct-neighbourhood-map--admin { height: min(68vh, 700px); }
.direct-neighbourhood-form { display: grid; gap: 1rem; margin: 1rem 0; }
.direct-neighbourhood-consent { display: flex; align-items: flex-start; gap: 0.65rem; padding: 1rem; border: 1px solid #d6dce5; border-radius: 12px; background: #fff; line-height: 1.5; }
.direct-neighbourhood-consent input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; }
.direct-neighbourhood-status { min-height: 1.5rem; color: #526070; }
.direct-neighbourhood-admin-list { display: grid; gap: 0.8rem; margin: 1rem 0; }
.direct-neighbourhood-admin-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(160px, 2fr) 4rem; align-items: center; gap: 1rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.direct-neighbourhood-admin-row input { width: 100%; }
.direct-neighbourhood-admin-list { display: grid; gap: 0.8rem; }
.direct-neighbourhood-customer-picker { display: grid; gap: 0.4rem; max-width: 620px; font-weight: 750; }
.direct-neighbourhood-customer-picker select { width: 100%; min-height: 44px; padding: 0.55rem 0.75rem; border: 1px solid var(--line); border-radius: 9px; background: white; font: inherit; }
.direct-neighbourhood-editor-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.direct-neighbourhood-editor-actions button:disabled { opacity: 0.5; cursor: not-allowed; }
.direct-neighbourhood-vertex-wrapper { border: 0; background: transparent; }
.direct-neighbourhood-vertex { display: block; width: 18px; height: 18px; border: 3px solid #7652a5; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px #172b4d88; cursor: grab; }
.direct-neighbourhood-vertex:active { cursor: grabbing; }
.hub-home-marker.is-selected { background: #7652a5; }
.hub-home-marker.is-direct-neighbour { background: #198754; }
.member-type-options { display: grid; gap: 0.65rem; margin: 0; padding: 0; border: 0; }
.member-type-options legend { margin-bottom: 0.45rem; font-weight: 800; }
.member-type-option { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.member-type-option input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; }
.member-type-option span { display: grid; gap: 0.2rem; }
.member-type-option small { color: var(--muted); line-height: 1.4; }
#direct-neighbour-registration[hidden] { display: none; }
.hub-map-canvas { position: relative; display: flex; flex-direction: column; height: min(76vh, 860px); min-height: 430px; overflow: hidden; border: 1px solid #d4d8dc; border-radius: 14px; background: #e8edf0; z-index: 0; }
.hub-map-display { position: relative; flex: 1; min-height: 0; }
.radar-banner { flex: 0 0 auto; color: #fff; background: #14539b; }
.radar-banner__view { display: none; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.8rem; padding: 0.55rem 0.85rem; font-size: 0.85rem; line-height: 1.35; }
.radar-banner__view strong { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; letter-spacing: 0.03em; text-transform: uppercase; }
.radar-banner__view strong::before { content: ""; flex: 0 0 auto; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor; }
.hub-map-canvas[data-map-state="town"] .radar-banner__view--town,
.hub-map-canvas[data-map-state="historic"] .radar-banner__view--historic,
.hub-map-canvas[data-map-state="neighbour"] .radar-banner__view--neighbour { display: flex; }
.hub-map-canvas[data-map-state="historic"] .radar-banner { background: #633d91; }
.hub-map-canvas[data-map-state="neighbour"] .radar-banner { background: #705400; }
.hub-map-layer { width: 100%; height: 100%; }
.hub-map-layer[hidden], .town-map-tools[hidden] { display: none; }
.town-map-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; max-width: 1600px; margin: 0 auto .65rem; }
.town-map-tools form { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.town-map-tools label { color: #1f3a5f; font-weight: 700; }
.town-map-tools input { min-width: 14rem; padding: .5rem; border: 1px solid #8090a1; border-radius: 8px; font: inherit; }
.town-map-tools [role="status"] { color: #40556c; font-size: .85rem; }
.leaflet-tooltip.illustrated-street-label { background: transparent; border: 0; padding: 0; box-shadow: none; color: #45413b; font-weight: 700; }
.leaflet-tooltip.illustrated-street-label::before { display: none; }
.illustrated-place-label { background: #fff; border: 1px solid #758ca0; box-shadow: none; color: #25485c; font-weight: 700; }
.illustrated-park-label { background: #effaf0; border-color: #80a78a; color: #14643e; }
.hub-map-canvas.is-town-view { border: 4px solid #3976bd; }
.hub-map-canvas.is-historic-view { border: 4px solid #7652a5; }
.hub-map-canvas.is-neighbour-view { border: 4px solid #c29100; }
.hub-map-canvas .leaflet-control-zoom a { color: var(--hub-navy); }

.radar-dashboard { background: #061f39; color: #e8f4fa; }
.radar-dashboard main { width: min(1600px, calc(100% - 2rem)); margin: 1rem auto 4rem; }
.radar-dashboard .hub-map-page { width: 100%; margin: 0; padding: 0 0 1rem; }
.radar-dashboard .hub-map-layout { gap: 1rem; }
.radar-dashboard .hub-map-canvas { border-width: 1px; border-radius: 12px; }
.radar-dashboard .hub-map-canvas.is-town-view { border-color: #31c5df; }
.radar-dashboard .hub-map-canvas.is-historic-view { border-color: #b690e1; }
.radar-dashboard .hub-map-canvas.is-neighbour-view { border-color: #e0b448; }
.radar-dashboard .radar-banner { background: #092c4d; border-bottom: 1px solid #31c5df; }
.radar-dashboard .radar-banner__view { align-items: center; padding: 0.8rem 1rem; gap: 0.35rem 1rem; }
.radar-dashboard .radar-banner__view strong { color: #8debf5; }
.radar-dashboard .hub-map-canvas[data-map-state="historic"] .radar-banner { background: #392858; border-color: #b690e1; }
.radar-dashboard .hub-map-canvas[data-map-state="historic"] .radar-banner__view strong { color: #ead9ff; }
.radar-dashboard .hub-map-canvas[data-map-state="neighbour"] .radar-banner { background: #59440d; border-color: #e0b448; }
.radar-dashboard .hub-map-canvas[data-map-state="neighbour"] .radar-banner__view strong { color: #fff1bd; }
.radar-dashboard .hub-map-live-button.is-active[data-map-view="town"] { background: #092c4d; border-color: #43d5e8; color: #fff; box-shadow: none; }
.radar-dashboard .hub-map-live-button::before { background: #35db87; }
.radar-dashboard #hub-live-clock { background: #092c4d; color: #e8f4fa; border: 1px solid #43708a; }
.radar-dashboard .hub-map-summary { border: 1px solid #2689a3; border-radius: 12px; background: #092c4d; }
.radar-dashboard .hub-example-age-legend { color: #c4dbe8; padding: 0.8rem 1rem 0; }
.radar-dashboard .hub-map-summary th { color: #d6eaf4; }
.radar-dashboard .hub-map-summary td { color: #fff; }
.radar-dashboard .hub-map-summary th + th, .radar-dashboard .hub-map-summary td + td { border-color: #28516b; }
.radar-dashboard .hub-map-brand, .radar-dashboard .hub-map-count { color: #e2f1f8; }
.radar-dashboard .town-map-tools label, .radar-dashboard .town-map-tools [role="status"] { color: #d6eaf4; }
.radar-dashboard .build-version { color: #abc2d0; }

.hub-map-feed { max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.radar-dashboard .hub-map-feed { color: #1f2937; }
.hub-map-feed[hidden] { display: none; }
.hub-map-feed__head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 1rem; background: #fff; border-bottom: 1px solid var(--line); z-index: 1000; }
.hub-map-feed__meta { display: flex; align-items: center; gap: 0.6rem; }
.hub-bin { position: relative; }
.hub-bin summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.7rem; border-radius: 999px; border: 1px solid #cfd6dd; background: #f1f3f5; color: #55606b; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.hub-bin summary::-webkit-details-marker { display: none; }
.hub-bin--soon summary { background: #fff3cd; border-color: #e0a800; color: #664d03; font-weight: 700; }
.hub-bin--tomorrow summary { background: #ff9f1a; border-color: #cc7a00; color: #1b1300; font-weight: 800; font-size: 0.88rem; animation: hub-bin-pulse 1.8s ease-in-out infinite; }
.hub-bin--today summary { background: #d92b2b; border-color: #8f1010; color: #fff; font-weight: 800; font-size: 0.95rem; animation: hub-bin-pulse 1s ease-in-out infinite; }
@keyframes hub-bin-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 43, 43, 0.5); } 50% { box-shadow: 0 0 0 6px rgba(217, 43, 43, 0); } }
@media (prefers-reduced-motion: reduce) { .hub-bin summary { animation: none !important; } }
.hub-bin__detail { position: absolute; right: 0; top: calc(100% + 0.4rem); min-width: 14rem; padding: 0.6rem 0.8rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-size: 0.85rem; }
.hub-bin__detail p { margin: 0 0 0.4rem; }
.hub-bin__next { color: var(--muted); }
.hub-map-feed-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem; border-bottom: 1px solid var(--line); }
.hub-map-feed-item.is-series-earlier:not(.is-series-open) { display: none; }
.hub-map-feed-item.is-series-earlier { margin-left: 1.4rem; background: #faf6ee; border-left: 3px dotted #c9b27a; }
.hub-map-feed-item.is-series-latest { cursor: pointer; }
.hub-map-series-badge { color: #7a5a00 !important; font-weight: 700; }
.hub-map-feed-item:hover { background: #f6f8fa; }
.hub-map-feed-item.is-direct-neighbourhood { background: #fff2b8; box-shadow: inset 4px 0 #e2aa00; }
.hub-map-feed-item.is-direct-neighbourhood:hover { background: #ffe99a; }
.hub-map-neighbourhood-badge { display: inline-block; width: fit-content; padding: 0.1rem 0.42rem; border-radius: 999px; background: #f4d35e; color: #503c00 !important; font-size: 0.68rem !important; font-weight: 800; }
.hub-map-feed-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 50%; background: #e8edf5; font-size: 1.35rem; }
.hub-map-feed-icon--townwide { background: #fff4d8; }
.hub-map-feed-icon--aircraft { background: #fff4d8; }
.hub-map-feed-icon--station { background: #e5eefc; }
.hub-map-feed-icon--shoutout { background: #fff0e3; }
.hub-map-feed-icon--historic { background: #eee5fa; }
.hub-marker--historic { border-radius: 50%; transform: none; font-size: 1.35rem; }
.hub-marker--historic-police { background: #175cd3; }
.hub-marker--historic-fire { background: #b42318; }
.hub-marker--historic-cold-caller { background: #c45a12; }
.hub-marker--historic-suspicious { background: #6941c6; }
.hub-map-demo-label { color: #9a3412 !important; font-size: 0.68rem !important; font-weight: 800; letter-spacing: 0.025em; }
.hub-map-feed-copy { display: grid; min-width: 0; gap: 0.18rem; }
.hub-map-feed-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; }
.hub-map-feed-copy small { color: var(--muted); font-size: 0.76rem; }
.hub-map-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.8rem; font-size: 0.75rem; color: var(--muted); }
.hub-map-empty { padding: 1rem; color: var(--muted); }
.hub-map-feed-item.is-townwide-notice { border-left: 4px solid #3976bd; }
.hub-map-feed.is-neighbour-view .hub-map-feed-item:not(.is-direct-neighbourhood) { opacity: 0.5; }
.hub-map-feed.is-neighbour-view .hub-map-feed-item.is-direct-neighbourhood { opacity: 1; }
.hub-map-feed--historic .hub-map-feed-copy small:last-child { white-space: normal; line-height: 1.35; }
.hub-map-error { position: absolute; z-index: 500; top: 1rem; left: 1rem; padding: 0.8rem 1rem; border-radius: 10px; background: white; color: #7f1d1d; }
.hub-marker-wrapper { background: transparent; border: 0; }
.hub-home-marker-wrapper { background: transparent; border: 0; }
.hub-home-marker { display: grid; place-items: center; width: 38px; height: 38px; border: 3px solid #fff; border-radius: 50%; background: #195e44; box-shadow: 0 2px 8px #172b4d66; font-size: 1.35rem; }
.hub-marker { display: grid; place-items: center; width: 42px; height: 42px; border: 3px solid #fff; border-radius: 50% 50% 50% 10%; background: #d97706; box-shadow: 0 2px 7px #172b4d66; font-size: 1.3rem; transform: rotate(-45deg); }
.hub-marker__emoji { transform: rotate(45deg); }
.hub-category-icon { display: inline-block; width: 1.55em; height: 1.55em; vertical-align: middle; object-fit: contain; }
.hub-marker .hub-category-icon { width: 30px; height: 30px; }
.hub-marker--shoutout { background: #c45a12; }
.hub-marker--lost-pet { border-radius: 6px; transform: none; }
.hub-marker--lost-pet .hub-marker__emoji { transform: none; }
.hub-marker--incident { background: #b42318; }
.hub-marker--station { background: #175cd3; }
.hub-marker--townwide { background: #e9a82c; border-radius: 50%; animation: hub-float 2.4s ease-in-out infinite; }
.hub-marker--aircraft { background: #e9a82c; border-radius: 50%; transform: none; }
.hub-marker--aircraft { width: 46px; height: 46px; overflow: visible; font-size: 1.45rem; }
.hub-marker--aircraft .hub-marker__emoji { font-size: 1.45rem; transition: transform 250ms linear; }
.hub-category--lost-pet-person { background: #0b7650; }
.hub-category--cold-caller { background: #dd6b00; }
.hub-category--anti-social { background: #8338b8; }
.hub-category--suspicious { background: #455a64; }
.hub-category--police-report { background: #1767c2; }
.hub-category--fire-report { background: #cc2f25; }
.hub-category--other-incident { background: #d42c83; }
.hub-category--council { background: #b28a00; }
.hub-marker--demo-middle { width: 31.5px; height: 31.5px; border-width: 2.25px; font-size: 0.975rem; }
.hub-marker--demo-middle .hub-category-icon { width: 22.5px; height: 22.5px; }
.hub-marker--demo-old { width: 21px; height: 21px; border-width: 1.5px; font-size: 0.65rem; }
.hub-marker--demo-old .hub-category-icon { width: 15px; height: 15px; }
.hub-marker__smoke { position: absolute; left: -2px; top: 17px; width: 12px; height: 12px; transform: rotate(var(--flight-heading, 0deg)); pointer-events: none; }
.hub-marker__puff { position: absolute; display: block; width: 7px; height: 7px; border-radius: 50%; background: #8b9299; opacity: 0; filter: blur(0.4px); animation: hub-puff 1.25s ease-out infinite; }
.hub-marker__puff--one { left: 1px; top: 1px; }
.hub-marker__puff--two { left: 5px; top: 5px; animation-delay: 0.62s; width: 6px; height: 6px; }
.hub-newspaper-marker-wrapper { background: transparent; border: 0; }
.hub-newspaper { display: grid; place-items: center; width: 30px; height: 28px; background: transparent; font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 2px #172b4d88); animation: hub-newspaper-fall 2.6s ease-in forwards; }
.hub-marker.is-urgent { outline: 4px solid #d6454570; }
.hub-map-popup { display: grid; gap: 0.4rem; min-width: 180px; max-width: 260px; }
.hub-map-popup strong { font-size: 1rem; }
.hub-map-popup small { color: #526070; }
.hub-map-popup p { margin: 0.1rem 0; white-space: normal; line-height: 1.4; }
.hub-map-popup a { color: #1f3a5f; font-weight: 700; text-decoration: underline; }
.hub-map-welcome-overlay { position: absolute; inset: 0; z-index: 1000; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); overflow-y: auto; background: rgb(15 27 43 / 72%); backdrop-filter: blur(3px); }
.hub-map-welcome { position: relative; display: grid; gap: 0.85rem; width: min(100%, 620px); max-height: 100%; overflow-y: auto; padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid #d6e0ec; border-radius: 20px; background: #fff; color: #1f2937; box-shadow: 0 18px 60px #0b172799; }
.hub-map-welcome h2 { margin: 0; padding-right: 2rem; color: var(--hub-navy); font-size: clamp(1.4rem, 3vw, 2rem); }
.hub-map-welcome p { margin: 0; line-height: 1.55; }
.hub-map-welcome__close { position: absolute; top: 0.6rem; right: 0.7rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: #edf1f5; color: var(--hub-navy); font-size: 1.6rem; cursor: pointer; }
.hub-map-welcome__links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }
.hub-map-welcome__links a { padding: 0.65rem 1rem; border-radius: 999px; background: var(--hub-navy); color: #fff; font-weight: 750; text-decoration: none; }
.hub-map-welcome__links a + a { background: var(--hub-orange); color: #1b1300; }
@keyframes hub-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes hub-puff { 0% { transform: translate(0, 0) scale(0.55); opacity: 0; } 18% { opacity: 0.42; } 100% { transform: translate(-10px, -3px) scale(1.15); opacity: 0; } }
@keyframes hub-newspaper-fall { 0% { transform: translate(0, -8px) rotate(-12deg) scale(0.75); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(var(--paper-drift-x, 20px), var(--paper-drift-y, 50px)) rotate(35deg) scale(0.9); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hub-marker__puff { animation: none; opacity: 0.28; }
}

@media (max-width: 760px) {
  .radar-dashboard main { width: 100%; margin: 0 auto 4rem; }
  .radar-dashboard .hub-map-page { width: 100%; margin: 0; padding: 0 0.65rem 5.5rem; }
  .radar-dashboard .hub-map-canvas { border-radius: 10px; border-left: 1px solid; border-right: 1px solid; }
  .radar-dashboard .hub-map-summary { margin: 0; }
  .hub-map-page { width: calc(100% + 2rem); margin-left: -1rem; padding: 0 0 5.5rem; }
  .hub-map-toolbar { flex-wrap: wrap; gap: 0.45rem; padding: 0.5rem 0.65rem; min-height: auto; }
  .hub-map-live-toolbar { top: 0.5rem; left: 0.5rem; }
  .hub-map-live-toolbar .hub-map-live-button { flex-direction: row; gap: 0.45rem; padding: 0.4rem 1.25rem; }
  .hub-map-summary { margin: 0.25rem 0.65rem; }
  .hub-map-summary th { font-size: 0.68rem; overflow-wrap: anywhere; }
  .hub-map-summary td { font-size: 1.3rem; }
  .hub-map-brand { width: auto; }
  .hub-map-view-switch { margin: 0 0.65rem 0.5rem; }
  .hub-map-view-button { flex-direction: column; gap: 0.05rem; padding: 0.4rem; font-size: 0.88rem; }
  .hub-map-view-switch .hub-map-view-button--historic { flex-direction: row; gap: 0.4rem; font-size: 0.76rem; padding: 0.25rem 0.7rem; }
  .hub-map-filters { padding: 0.5rem; margin: 0.5rem; }
  .hub-map-post { margin-left: auto; }
  .hub-map-layout { display: flex; flex-direction: column; gap: 0.5rem; }
  .hub-map-neighbourhood-note { margin: 0 0.65rem 0.5rem; }
  .hub-map-canvas { height: 62dvh; min-height: 330px; border-radius: 0; border-left: 0; border-right: 0; }
  .hub-map-feed { height: auto; min-height: 0; max-height: 60dvh; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .hub-map-feed__head { padding: 0.6rem 0.85rem; }
  .hub-map-feed-item { padding: 0.55rem 0.8rem; }
  .hub-map-legend { display: flex; overflow-x: auto; white-space: nowrap; }
  .concept-grid, .hub-columns { grid-template-columns: 1fr; }
  .community-map__list { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .fab { display: none; }
  .tab-bar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--line); padding: 0.3rem 0 calc(0.3rem + env(safe-area-inset-bottom));
  }
  .tab-bar a { display: flex; flex-direction: column; align-items: center; font-size: 1.2rem; padding: 0.3rem 0; }
  .tab-bar a span { font-size: 0.7rem; color: var(--muted); }
  .tab-bar__icon { width: 1.5rem; height: 1.5rem; object-fit: cover; border-radius: 50%; }
  .tab-bar__post { align-self: center; justify-self: center; width: 52px; height: 52px; margin-top: -1.2rem; border-radius: 50%; background: var(--hub-orange); color: #1b1300; font-size: 1.8rem !important; justify-content: center; box-shadow: var(--shadow); }
}
