/*
 * Crime Data Australia (PHP/MySQL edition) - stylesheet.
 * Design tokens ported verbatim from the Next.js version's
 * src/app/globals.css. No build step / preprocessor - plain CSS only, to
 * keep this deployable on shared hosting with zero tooling.
 */

:root {
  --background: #f9f9f7;
  --surface: #ffffff;
  --foreground: #0b1f3a;
  --text-primary: #14213a;
  --text-secondary: #52514e;
  --text-muted: #6b7280;
  --brand-blue: #2a78d6;
  --brand-blue-dark: #184f95;
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --border: rgba(11, 31, 58, 0.1);
  --gridline: #e1e0d9;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #4a3aa7;
  --series-8: #e34948;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 2px rgba(11,31,58,0.04), 0 1px 12px rgba(11,31,58,0.03);
  --shadow-md: 0 4px 16px rgba(11,31,58,0.07), 0 1px 3px rgba(11,31,58,0.05);
  --shadow-lg: 0 12px 32px rgba(11,31,58,0.10), 0 2px 6px rgba(11,31,58,0.06);
  --radius-card: 1rem;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
a { color: inherit; text-decoration: none; }
.hover-underline:hover, .link:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.block { display: block; }
.flex-col { display: flex; flex-direction: column; }
.h-full { height: 100%; }
.min-h-full { min-height: 100%; }
.text-foreground { color: var(--foreground); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }
.ta-right, .text-right { text-align: right; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.card-link { display: block; }
.card-link:hover { border-color: rgba(42,120,214,0.35); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---------- icons ---------- */
.icon { display: block; flex-shrink: 0; }
.icon-circle {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px;
  flex-shrink: 0;
}
.icon-circle-sm { width: 28px !important; height: 28px !important; }
.icon-inline { display: inline-flex; vertical-align: -0.35em; margin-right: 0.35rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-blue); font-size: 0.75rem; font-weight: 500; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link { color: var(--brand-blue); }
.btn-outline {
  font-size: 0.75rem; font-weight: 500; border-radius: 0.5rem; border: 1px solid var(--border);
  padding: 0.5rem 0.75rem; background: var(--surface); cursor: pointer;
}
.btn-outline:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.btn-primary {
  display: inline-block; border-radius: 0.75rem; background: var(--brand-blue); color: #fff;
  padding: 0.75rem 1.25rem; font-size: 0.875rem; font-weight: 500;
}
.btn-primary:hover { background: var(--brand-blue-dark); }

/* ---------- header / footer ---------- */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: flex; flex-direction: column; line-height: 1.15; flex-shrink: 0; }
.brand-name { font-weight: 700; font-size: 1.05rem; color: var(--foreground); letter-spacing: -0.01em; }
.brand-sub { font-size: 0.625rem; letter-spacing: 0.12em; color: var(--brand-blue); font-weight: 600; }
.header-search { flex: 1; max-width: 22rem; }
.header-nav { display: flex; gap: 1.4rem; font-size: 0.875rem; font-weight: 500; flex-shrink: 0; }
.header-nav a { padding: 0.3rem 0; border-bottom: 2px solid transparent; transition: color 0.15s ease, border-color 0.15s ease; }
.header-nav a:hover { color: var(--brand-blue); border-bottom-color: rgba(42,120,214,0.4); }

/* Mobile nav: below 720px the inline nav links give way to a hamburger
   button + slide-down panel, so Compare/Methodology/Sources (and the state
   links) stay reachable on a phone instead of silently disappearing. */
.nav-toggle {
  display: none; flex-shrink: 0; width: 2.25rem; height: 2.25rem; border: 1px solid var(--border);
  border-radius: 0.5rem; background: var(--surface); padding: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 1.1rem; height: 2px; background: var(--foreground); border-radius: 1px; }
.mobile-nav { display: flex; flex-direction: column; border-top: 1px solid var(--border); padding: 0.5rem 0; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 0.65rem 0; font-size: 0.9rem; font-weight: 500; border-bottom: 1px solid var(--gridline); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--brand-blue); }
@media (max-width: 720px) {
  .header-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-search { max-width: none; }
}
@media (min-width: 721px) { .mobile-nav { display: none !important; } }

.site-main { flex: 1; padding-bottom: 4rem; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 3rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); padding: 3rem 0 2rem; font-size: 0.875rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-heading { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--foreground); margin-bottom: 0.75rem; }
.footer-grid .text-secondary { margin-bottom: 0.5rem; }
.footer-source-row { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.4rem; }
.footer-source-row .icon-circle { margin-top: 0.1rem; }
.footer-note-card {
  display: flex; align-items: flex-start; gap: 0.6rem; background: var(--background); border-radius: 0.75rem;
  padding: 0.75rem 0.85rem; margin-top: 0.75rem; font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5;
}
.footer-disclaimer-wrap { border-top: 1px solid var(--border); }
.footer-disclaimer { padding: 1.25rem 0; font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; }
.footer-bottom-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 0 1.5rem; font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid var(--border);
}
.footer-bottom-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: var(--brand-blue); text-decoration: underline; }

/* ---------- suburb search ---------- */
.suburb-search { position: relative; width: 100%; }
.suburb-search .search-icon { position: absolute; top: 50%; transform: translateY(-50%); left: 0.85rem; color: var(--text-muted); pointer-events: none; }
.suburb-search:has(.search-input-large) .search-icon { left: 1.25rem; color: var(--brand-blue); }
.search-input {
  width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 9999px;
  outline: none;
}
.search-input:focus { box-shadow: 0 0 0 3px rgba(42,120,214,0.18); border-color: var(--brand-blue); }
.search-input-compact { padding: 0.55rem 1rem 0.55rem 2.5rem; font-size: 0.875rem; }
.search-input-large { padding: 1.1rem 1.75rem 1.1rem 3.25rem; font-size: 1.125rem; border-radius: 1rem; box-shadow: var(--shadow-md); }
.search-results {
  position: absolute; z-index: 40; margin-top: 0.5rem; width: 100%; max-height: 20rem; overflow: auto;
  border-radius: 0.75rem; border: 1px solid var(--border); background: var(--surface);
  box-shadow: 0 8px 24px rgba(11,31,58,0.12);
}
.search-results li button, .search-results .search-result-item {
  display: block; width: 100%; text-align: left; padding: 0.65rem 1rem; font-size: 0.875rem;
  background: none; border: 0; cursor: pointer;
}
.search-results li button:hover, .search-results li button.active, .search-results .search-result-item:hover { background: rgba(42,120,214,0.1); }
.search-results .search-empty { padding: 0.65rem 1rem; font-size: 0.875rem; color: var(--text-secondary); }

/* ---------- hero / home ---------- */
.hero-section {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, #fff, var(--background));
  position: relative;
  overflow: hidden;
}
.hero-section::before, .hero-section::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0; pointer-events: none;
}
.hero-section::before {
  width: 26rem; height: 26rem; top: -10rem; left: 50%; margin-left: -22rem;
  background: radial-gradient(circle, rgba(42,120,214,0.16), transparent 70%);
}
.hero-section::after {
  width: 24rem; height: 24rem; top: -8rem; right: 50%; margin-right: -20rem;
  background: radial-gradient(circle, rgba(124,92,219,0.14), transparent 70%);
}
.hero-inner { max-width: 48rem; padding-top: 4rem; padding-bottom: 3.5rem; text-align: center; position: relative; z-index: 1; }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; color: var(--brand-blue); margin-bottom: 1rem; }
.hero-title { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--foreground); margin-bottom: 1rem; }
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
.hero-subtitle { font-size: 1.125rem; font-weight: 500; margin-bottom: 0.75rem; }
.hero-lede { color: var(--text-secondary); max-width: 42rem; margin: 0 auto 2.5rem; }
.hero-search { max-width: 36rem; margin: 0 auto; }
.section { padding: 4rem 0; }
.section-title { font-size: 1.25rem; font-weight: 600; color: var(--foreground); margin-bottom: 1rem; }
.section-title-sm { font-size: 1rem; font-weight: 600; color: var(--foreground); margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-secondary); margin-bottom: 2rem; }
.section-card { margin-bottom: 2.5rem; }
.alt-section { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid-cards { display: grid; gap: 1rem; }
.grid-cards-2 { grid-template-columns: 1fr; }
.grid-cards-3 { grid-template-columns: 1fr; }
.grid-cards-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-cards-2 { grid-template-columns: repeat(2,1fr); } .grid-cards-3 { grid-template-columns: repeat(2,1fr); } .grid-cards-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .grid-cards-3 { grid-template-columns: repeat(3,1fr); } .grid-cards-4 { grid-template-columns: repeat(4,1fr); } }
.grid-span-all { grid-column: 1 / -1; text-align: right; }
.feature-card { display: flex; flex-direction: column; gap: 0.9rem; }
.state-card { display: flex; align-items: center; gap: 0.85rem; }
.state-card-body { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; min-width: 0; }
.state-pill { font-size: 0.7rem; font-weight: 600; border-radius: 9999px; padding: 0.2rem 0.6rem; align-self: flex-start; }
.state-pill-active { color: var(--good); background: rgba(12,163,12,0.1); }
.state-pill-soon { color: var(--text-muted); background: rgba(0,0,0,0.05); }
.research-card { display: flex; flex-direction: column; gap: 0.85rem; }

/* ---------- generic page shells ---------- */
.page-narrow { padding-top: 3rem; padding-bottom: 3rem; }
.page-suburb { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.page-title { font-size: 2rem; font-weight: 600; letter-spacing: -0.01em; color: var(--foreground); margin-bottom: 0.5rem; }
@media (min-width: 640px) { .page-title { font-size: 2.25rem; } }
.page-lede { color: var(--text-secondary); max-width: 46rem; margin-bottom: 0.75rem; }
.page-caveat { max-width: 40rem; margin-bottom: 1.5rem; }
.plain-list li { margin-bottom: 0.25rem; }
.plain-list { display: flex; flex-direction: column; gap: 0.25rem; }

.breadcrumb-nav { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.breadcrumb-nav .icon { color: var(--text-muted); }
.breadcrumb-nav a:hover { color: var(--brand-blue); }
.breadcrumb-sep { color: var(--gridline); }

.fixture-banner {
  border: 2px dashed var(--critical); border-radius: 0.75rem; background: rgba(208,59,59,0.05);
  color: var(--critical); font-weight: 500; font-size: 0.875rem; padding: 0.75rem 1rem; margin-bottom: 1.5rem;
}

.risk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.risk-badge { display: inline-flex; align-items: center; gap: 0.4rem; border-radius: 9999px; padding: 0.3rem 0.75rem; font-size: 0.8rem; font-weight: 600; }
.risk-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; display: inline-block; }

.safety-score-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 900px) { .safety-score-row { grid-template-columns: 2fr 1fr; } }
.safety-score-card { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 0; }
.safety-score-number { font-size: 2.75rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.safety-score-max { font-size: 1.1rem; font-weight: 500; opacity: 0.6; }
.safety-score-pill { display: inline-block; min-width: 2rem; border-radius: 9999px; padding: 0.15rem 0.6rem; font-size: 0.8rem; font-weight: 700; }

.percentile-card { display: flex; flex-direction: column; gap: 0.5rem; justify-content: center; }
.percentile-track { width: 100%; height: 8px; border-radius: 9999px; background: rgba(11,31,58,0.08); position: relative; overflow: hidden; }
.percentile-fill { height: 100%; border-radius: 9999px; background: linear-gradient(90deg, var(--good), #1baf7a); }

.suburb-top-grid { grid-template-columns: 1fr; margin-bottom: 1.5rem; }
@media (min-width: 1024px) { .suburb-top-grid { grid-template-columns: 2fr 1fr; } }
.suburb-source-card { display: grid; gap: 1rem; grid-template-columns: 1fr; font-size: 0.875rem; }
@media (min-width: 640px) { .suburb-source-card { grid-template-columns: repeat(2,1fr); } }
.info-chip { display: flex; align-items: flex-start; gap: 0.65rem; }
.info-chip .text-muted { margin-bottom: 0.15rem; }
.suburb-map-card { padding: 0; overflow: hidden; min-height: 140px; display: flex; flex-direction: column; }
.suburb-map-iframe { border: 0; width: 100%; flex: 1; min-height: 140px; }
.suburb-map-attribution { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.7rem; color: var(--text-muted); padding: 0.5rem 0.75rem; flex-wrap: wrap; }
.suburb-map-attribution a:hover { text-decoration: underline; }

/* ---------- snapshot cards ---------- */
.snapshot-card { display: flex; flex-direction: column; gap: 0.5rem; }
.snapshot-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.1rem; }
.snapshot-title { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }
.snapshot-number { font-size: 1.75rem; font-weight: 700; color: var(--foreground); display: flex; align-items: baseline; gap: 0.4rem; }
.snapshot-unit { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }
.snapshot-badges { display: flex; flex-direction: column; gap: 0.25rem; }
.snapshot-badge-row { font-size: 0.75rem; }
.sparkline { width: 100%; height: 28px; display: block; margin-top: 0.25rem; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.data-table th { text-align: left; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--border); padding: 0.5rem 1rem 0.5rem 0; }
.data-table td { padding: 0.5rem 1rem 0.5rem 0; border-bottom: 1px solid var(--gridline); }
.data-table th.ta-right, .data-table td.ta-right { padding-right: 0; padding-left: 1rem; }

/* ---------- pills / tabs ---------- */
.pill-row, .tab-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.pill {
  font-size: 0.8rem; font-weight: 500; border-radius: 9999px; border: 1px solid var(--border);
  background: var(--surface); padding: 0.4rem 0.9rem; cursor: pointer; transition: all 0.15s ease;
}
.pill:hover { border-color: rgba(42,120,214,0.4); }
.pill-active, .pill.pill-active { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); box-shadow: 0 2px 8px rgba(42,120,214,0.28); }
.tab-row { border-bottom: 1px solid var(--border); gap: 1.5rem; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 0.5rem 0; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); cursor: pointer; margin-bottom: -1px; }
.tab-active, .tab.tab-active { color: var(--brand-blue); border-bottom-color: var(--brand-blue); }

/* ---------- security recommendations ---------- */
.reco-card { display: flex; flex-direction: column; gap: 0.15rem; }
.reco-because { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.reco-product { font-weight: 600; color: var(--foreground); margin-bottom: 0.35rem; }
.reco-reason { font-size: 0.85rem; margin-bottom: 0.75rem; }
.reco-cta { font-size: 0.8rem; font-weight: 600; color: var(--brand-blue); }

/* ---------- "what's changing" section headers ---------- */
.subhead-icon { display: flex; align-items: center; gap: 0.5rem; }

/* ---------- crime explorer ---------- */
.explorer-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.control-label { display: block; font-size: 0.75rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.25rem; }
.explorer-controls select {
  border-radius: 0.5rem; border: 1px solid var(--border); padding: 0.5rem 0.75rem; font-size: 0.875rem; background: var(--surface);
}
.explorer-actions { display: flex; gap: 0.5rem; margin-left: auto; flex-wrap: wrap; }
.explorer-chart-card { padding: 1rem; }
.explorer-chart { width: 100%; height: 320px; position: relative; }
.explorer-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }

.comparison-bar-chart-card { padding: 1.25rem 1rem 0.75rem; margin-bottom: 1.25rem; }
.bar-chart-legend { display: flex; gap: 1.25rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.bar-chart-legend-item { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }
.bar-chart-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.comparison-bar-chart { width: 100%; height: auto; display: block; }
.bar-chart-caption { margin: 0.35rem 0 0.5rem; line-height: 1.5; }

.nearby-map-card { padding: 1rem; }
.nearby-map { width: 100%; border: 1px solid var(--border); }
.nearby-map-legend { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 0.75rem; }
.nearby-map-legend-item { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; color: var(--text-secondary); }
.nearby-map-swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.explorer-insight {
  margin-top: 1rem; font-size: 0.875rem; color: var(--text-secondary); background: rgba(42,120,214,0.05);
  border: 1px solid rgba(42,120,214,0.2); border-radius: 0.75rem; padding: 0.75rem 1rem;
}
.explorer-history { margin-top: 1.5rem; }
.explorer-history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }

.chart-tooltip {
  position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.5rem; box-shadow: 0 4px 16px rgba(11,31,58,0.12); padding: 0.5rem 0.65rem;
  font-size: 0.75rem; line-height: 1.5; z-index: 5; white-space: nowrap; opacity: 0; transition: opacity 0.1s ease;
}
.chart-tooltip.visible { opacity: 1; }
.chart-crosshair { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }

/* ---------- compare page ---------- */
.compare-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.compare-pill {
  font-size: 0.75rem; border-radius: 9999px; background: rgba(42,120,214,0.1); color: var(--brand-blue);
  padding: 0.35rem 0.75rem; display: flex; align-items: center; gap: 0.5rem;
}
.compare-pill button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 0.9rem; line-height: 1; }

/* ---------- browse / sources / methodology ---------- */
.browse-grid { grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .browse-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .browse-grid { grid-template-columns: repeat(4,1fr); } }
.browse-link {
  border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; display: block;
}
.browse-link:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.method-section { margin-bottom: 2.5rem; }
.method-heading { font-size: 1.125rem; font-weight: 600; color: var(--foreground); margin-bottom: 0.5rem; }
.method-body { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; display: flex; flex-direction: column; gap: 0.75rem; }
.source-list { display: flex; flex-direction: column; gap: 1.5rem; }
.fixture-card { border: 2px dashed var(--critical); }
.source-dl { display: grid; gap: 0.25rem 1.5rem; grid-template-columns: 1fr; font-size: 0.875rem; }
@media (min-width: 640px) { .source-dl { grid-template-columns: repeat(2,1fr); } }
.source-dl dt { color: var(--text-muted); }

/* ---------- suburb-page FAQ accordion (native <details>/<summary>) ---------- */
.faq-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
  border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.9rem 1.1rem; background: var(--surface);
}
.faq-item + .faq-item { margin-top: 0; }
.faq-question {
  font-weight: 600; color: var(--foreground); cursor: pointer; list-style: none; display: flex;
  align-items: center; justify-content: space-between; gap: 0.75rem;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+"; font-size: 1.1rem; color: var(--brand-blue); flex-shrink: 0; transition: transform 0.15s ease;
}
.faq-item[open] .faq-question::after { content: "\2212"; }
.faq-answer { margin-top: 0.65rem; line-height: 1.6; font-size: 0.925rem; }

/* ---------- lead-capture forms (added 2026-08-21 for "get a recommendation") ---------- */
.form-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: repeat(2,1fr); } }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
.form-label-optional { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
.form-input, .form-textarea {
  width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 0.65rem;
  padding: 0.7rem 0.9rem; font-size: 0.925rem; outline: none; color: var(--text-primary);
}
.form-input:focus, .form-textarea:focus { box-shadow: 0 0 0 3px rgba(42,120,214,0.18); border-color: var(--brand-blue); }
.form-textarea { resize: vertical; min-height: 5rem; line-height: 1.5; }
.form-address-row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.form-address-row .form-input { flex: 1; min-width: 12rem; }
.suburb-chip {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600;
  color: var(--brand-blue); background: rgba(42,120,214,0.1); border-radius: 9999px; padding: 0.55rem 0.9rem;
  white-space: nowrap;
}
.checkbox-pill-group { display: grid; gap: 0.6rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .checkbox-pill-group { grid-template-columns: repeat(2,1fr); } }
.checkbox-pill {
  display: flex; align-items: center; gap: 0.65rem; border: 1px solid var(--border); border-radius: 0.75rem;
  padding: 0.7rem 0.9rem; cursor: pointer; background: var(--surface); transition: border-color 0.15s ease, background 0.15s ease;
}
.checkbox-pill:has(input:checked) { border-color: var(--brand-blue); background: rgba(42,120,214,0.06); }
.checkbox-pill input[type="checkbox"] { accent-color: var(--brand-blue); width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.checkbox-pill-label { font-size: 0.875rem; font-weight: 500; }
.form-consent {
  display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.8rem; color: var(--text-secondary);
  line-height: 1.5; padding-top: 0.25rem;
}
.form-consent input[type="checkbox"] { accent-color: var(--brand-blue); width: 1.05rem; height: 1.05rem; flex-shrink: 0; margin-top: 0.15rem; }
.form-required-note { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.form-submit-row { display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; flex-wrap: wrap; }
.crime-context-card { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 2rem; }
/* Honeypot field (api/lead-enquiry.php) - hidden from sighted users AND
   screen readers (aria-hidden + tabindex="-1" on the input itself handle
   the latter; this positions it off-screen rather than display:none,
   since some bot scripts specifically skip display:none/visibility:hidden
   fields when auto-filling a form). */
.form-honeypot { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* :not([hidden]) is required here, not just .lead-success-card - a plain
   class selector has the same (0,1,0) specificity as the browser's default
   [hidden]{display:none} rule, and this external stylesheet loads after
   the UA stylesheet, so an unconditional `display:flex` here would win
   the tie and defeat the native hidden attribute entirely (confirmed via
   a real screenshot during design review - the success card showed up
   before the form was even submitted). */
.lead-success-card:not([hidden]) { display: flex; gap: 1rem; align-items: flex-start; }
/* Same fix, same reason, for the lighter "email me this report" capture
   (templates/partials/security-recommendations.php) - added 2026-08-21. */
.report-request-success:not([hidden]) { display: flex; gap: 0.6rem; align-items: center; }
