:root {
  --ink: #101820;
  --ink-soft: #24313d;
  --muted: #5a6670;
  --paper: #f4f2ea;
  --paper-deep: #e7e3d7;
  --white: #fffefa;
  --signal: #dcff45;
  --signal-strong: #b9df18;
  --cobalt: #2857ff;
  --cobalt-dark: #1438c4;
  --sea: #bdf2e8;
  --sea-strong: #0a887d;
  --coral: #ff725e;
  --coral-soft: #ffe1db;
  --line: #c9c9c1;
  --line-dark: #89939b;
  --success: #176c48;
  --success-soft: #dff4e7;
  --danger: #a53229;
  --danger-soft: #ffe5df;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 30px;
  --shadow-contact: 0 2px 3px rgba(16, 24, 32, 0.12);
  --shadow-ambient: 0 28px 80px rgba(16, 24, 32, 0.14);
  --font-display: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --font-code: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  min-width: 280px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-width: 280px;
  min-height: 100svh;
  margin: 0;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  background-color: var(--paper);
  background-image: radial-gradient(circle at center, rgba(16, 24, 32, 0.13) 0 1px, transparent 1.5px);
  background-size: 24px 24px;
  overflow-x: clip;
}

button,
input,
select { font: inherit; }

button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  border: 0;
  padding: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 100;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius-s);
  background: var(--signal);
  padding: 12px 16px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
}

.skip-link:focus { top: 12px; }
.ribbon-short { display: none; }

.project-ribbon {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--ink);
  padding: 7px 16px;
  color: #dfe7e9;
  font-family: var(--font-code);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ribbon-dot {
  color: var(--signal);
  font-size: 8px;
}

.version-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--signal);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  min-height: 76px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(16, 24, 32, 0.14);
  background: rgba(244, 242, 234, 0.92);
  padding: 12px max(16px, calc((100vw - 1240px) / 2 + 24px));
  backdrop-filter: blur(18px) saturate(1.08);
}

.brand {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--signal);
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.1);
}

.brand strong,
.brand small { display: block; }

.brand strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
  font-size: 23px;
  font-weight: 600;
  cursor: pointer;
}

.install-hidden { display: none; }

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  min-height: 78px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 24, 32, 0.98);
  padding: 7px max(10px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  backdrop-filter: blur(18px);
}

.nav-item {
  display: grid;
  min-height: 56px;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #bfc9ce;
  cursor: pointer;
}

.nav-item span {
  font-family: var(--font-code);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.nav-item small {
  font-size: 11px;
  font-weight: 750;
}

.nav-item[aria-current="page"] {
  background: var(--signal);
  color: var(--ink);
}

main {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 16px;
}

.view { display: none; }
.view.active { display: block; }

@keyframes view-enter {
  from { opacity: 0.4; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-panel {
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin: 18px 0 12px;
  border: 1px solid #000;
  border-radius: var(--radius-l);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-contact), var(--shadow-ambient);
}

.hero-panel::before {
  position: absolute;
  right: -104px;
  bottom: -150px;
  z-index: -1;
  width: 390px;
  height: 390px;
  border: 74px solid var(--cobalt);
  border-radius: 50%;
  content: "";
  opacity: 0.78;
}

.hero-panel::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.hero-layout { display: grid; }

.hero {
  position: relative;
  padding: 30px 22px 28px;
}

.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-left: 3px solid var(--signal);
  padding: 3px 0 3px 10px;
  color: #d9e2e5;
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.area-chip span {
  color: var(--signal);
  font-size: 8px;
}

.hero h1,
.section-head h1 {
  margin: 20px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(44px, 13vw, 84px);
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.86;
  text-wrap: balance;
}

.hero h1 span { display: block; }
.hero h1 .hero-accent { color: var(--signal); }

.hero p,
.section-head p {
  max-width: 620px;
  margin: 0;
  color: #c6d0d4;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-action {
  position: relative;
  align-self: end;
  padding: 0 16px 24px;
}

.search-box {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 14px;
  border: 2px solid #fff;
  border-radius: 22px;
  background: var(--white);
  padding: 14px;
  color: var(--ink);
  cursor: text;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.search-box:focus-within {
  border-color: var(--signal);
  box-shadow: 0 0 0 5px rgba(220, 255, 69, 0.3), 0 18px 38px rgba(0, 0, 0, 0.28);
}

.search-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  font-family: var(--font-code);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.search-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.search-copy strong {
  color: var(--cobalt-dark);
  font-family: var(--font-code);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-box input {
  min-width: 0;
  min-height: 44px;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.search-box input::placeholder { color: #747e85; }

.search-hint {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 2px 0;
}

.search-hint span {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 5px 8px;
  color: #d5dfe2;
  font-family: var(--font-code);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.assurance-row {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.16);
}

.assurance-row > span {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
}

.assurance-row > span + span { border-top: 1px solid rgba(255, 255, 255, 0.13); }

.assurance-row b {
  color: var(--signal);
  font-family: var(--font-code);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.assurance-row strong {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.safety-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 42px;
  border: 1px solid #d95e4d;
  border-radius: var(--radius-m);
  background: var(--coral-soft);
  padding: 10px 16px;
  color: #5b211a;
  font-size: 13px;
  line-height: 1.45;
}

.safety-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-code);
  font-weight: 900;
}

.safety-strip a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: #751f16;
  font-weight: 900;
}

.service-section { margin-top: 0; }

.section-kicker,
.eyebrow {
  color: var(--cobalt-dark);
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0 18px;
}

.category-toolbar h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 56px);
  font-weight: 820;
  letter-spacing: -0.06em;
  line-height: 0.95;
  text-wrap: balance;
}

.category-meta {
  min-height: 18px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.text-button {
  min-height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  padding: 9px 14px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.text-button[hidden] { display: none; }

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.category-card {
  position: relative;
  display: grid;
  min-height: 138px;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  overflow: clip;
  border: 1px solid var(--ink);
  border-radius: var(--radius-m);
  background: var(--white);
  padding: 20px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-contact);
}

.category-card:nth-child(6n + 1),
.category-card:nth-child(6n + 6) { background: var(--signal); }

.category-card:nth-child(6n + 3) { background: var(--sea); }

.category-arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
}

.category-icon {
  display: grid;
  width: 44px;
  height: 30px;
  place-items: center;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-code);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.category-copy {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding-right: 18px;
}

.category-card strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.category-card small {
  color: #4d5a63;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: pretty;
}

.secondary-wide {
  width: 100%;
  min-height: 54px;
  margin: 14px 0 44px;
  border: 1px dashed var(--ink);
  border-radius: var(--radius-m);
  background: rgba(255, 254, 250, 0.72);
  padding: 14px 18px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.councillor-help-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  overflow: clip;
  margin: 0 0 16px;
  border: 1px solid #000;
  border-radius: var(--radius-l);
  background: var(--cobalt);
  padding: 24px;
  color: #fff;
  box-shadow: var(--shadow-contact), 0 22px 52px rgba(40, 87, 255, 0.2);
}

.councillor-help-card::after {
  position: absolute;
  right: -40px;
  bottom: -80px;
  width: 180px;
  height: 180px;
  border: 34px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.help-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: var(--signal);
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 850;
}

.help-copy,
.councillor-help-card .primary { position: relative; z-index: 1; }
.councillor-help-card .eyebrow { color: var(--signal); }

.help-copy h2 {
  margin: 7px 0 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.help-copy p {
  margin: 0;
  color: #dbe3ff;
  font-size: 13px;
  line-height: 1.5;
  text-wrap: pretty;
}

.councillor-help-card .primary { grid-column: 1 / -1; }

.project-card,
.info-card {
  border: 1px solid var(--ink);
  border-radius: var(--radius-l);
  background: var(--white);
  padding: 24px;
}

.project-card {
  display: grid;
  gap: 18px;
  margin: 0 0 28px;
  background: var(--sea);
}

.project-card h2,
.info-card h2 {
  margin: 8px 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

.project-card p,
.info-card p {
  max-width: 760px;
  margin: 9px 0;
  color: #3f5058;
  font-size: 14px;
  line-height: 1.6;
}

.route-review,
.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #78af8f;
  background: var(--success-soft);
  color: var(--success);
  font-family: var(--font-code);
  font-weight: 750;
}

.route-review {
  margin-top: 12px;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 10px;
}

.feedback-link,
.route-feedback {
  color: var(--cobalt-dark);
  font-weight: 850;
  text-decoration: none;
}

.feedback-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: start;
  border-bottom: 1px solid currentColor;
  padding: 8px 0;
  font-size: 13px;
}

.flow-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0 16px;
}

.back-button {
  min-width: 76px;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  padding: 10px 14px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.progress-wrap {
  height: 8px;
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-deep);
}

.progress-wrap span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cobalt);
}

.flow-card {
  max-width: 860px;
  margin: 0 auto 28px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-l);
  background: var(--white);
  padding: 24px;
  box-shadow: var(--shadow-contact), var(--shadow-ambient);
}

.flow-card::before {
  display: block;
  width: 68px;
  height: 8px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--signal);
  content: "";
}

.flow-card h1 {
  margin: 10px 0 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(38px, 10vw, 64px);
  font-weight: 840;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-wrap: balance;
}

.flow-card h2 {
  margin: 24px 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.flow-card > p {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.6;
  text-wrap: pretty;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.choice-button {
  display: grid;
  width: 100%;
  min-height: 84px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-m);
  background: #f8f7f1;
  padding: 16px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.choice-symbol {
  display: grid;
  width: 40px;
  height: 28px;
  place-items: center;
  border-bottom: 2px solid var(--cobalt);
  color: var(--cobalt-dark);
  font-family: var(--font-code);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.choice-button strong,
.choice-button small { display: block; }

.choice-button strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.choice-button small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.primary,
.secondary,
.link-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  border: 1px solid var(--ink);
  background: var(--signal);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.primary.compact {
  min-height: 50px;
  padding: 12px 18px;
}

.secondary {
  margin-top: 12px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.field {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.field label {
  color: var(--ink);
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-m);
  background: #f8f7f1;
  padding: 15px 16px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
}

.field input:focus,
.field select:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(40, 87, 255, 0.16);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(165, 50, 41, 0.14);
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.location-status,
.privacy-note,
.privacy-mini {
  border: 1px solid #80b9af;
  border-radius: var(--radius-m);
  background: #e6f8f4;
  color: #244d48;
  line-height: 1.5;
}

.location-status { margin: 16px 0; padding: 16px; }
.location-status strong,
.location-status small { display: block; }
.location-status small { margin-top: 4px; }
.privacy-note { margin: -6px 0 18px; padding: 14px 16px; font-size: 13px; }
.privacy-mini { margin-top: 16px; padding: 12px 14px; font-size: 12px; }

.official-note {
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.alert {
  margin: 16px 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius-m);
  padding: 15px 16px;
  font-size: 14px;
  line-height: 1.5;
}

.alert.warning { background: #fff0c9; color: #5c3b08; }
.alert.danger { background: var(--danger-soft); color: #6c231d; }
.alert.success { background: var(--success-soft); color: var(--success); }

.verified-chip {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 10px;
  line-height: 1.35;
}

.result-org {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.org-badge {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 900;
}

.result-org small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.checklist {
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.route-feedback {
  display: block;
  min-height: 44px;
  margin: 12px 0 0;
  padding: 12px;
  font-size: 12px;
  text-align: center;
}

.section-head { padding: 44px 0 24px; }

.section-head h1 {
  color: var(--ink);
  font-size: clamp(44px, 12vw, 82px);
}

.section-head p { color: var(--muted); }

.empty-state {
  border: 1px dashed var(--ink);
  border-radius: var(--radius-l);
  background: var(--white);
  padding: 36px 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state p { margin: 9px 0 0; }

.empty-icon {
  margin-bottom: 12px;
  color: var(--cobalt-dark);
  font-family: var(--font-code);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.grid-span { grid-column: 1 / -1; }

.report-card {
  margin-bottom: 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-m);
  background: var(--white);
  padding: 20px;
  box-shadow: var(--shadow-contact);
}

.report-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.report-top strong {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.025em;
}

.status-pill {
  height: fit-content;
  flex: 0 0 auto;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: var(--paper-deep);
  padding: 6px 9px;
  color: #3d4b54;
  font-family: var(--font-code);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill.reported {
  border-color: #78af8f;
  background: var(--success-soft);
  color: var(--success);
}

.report-meta {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.report-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.report-editor {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.report-editor h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.2; }
.report-editor p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.report-meta { overflow-wrap: anywhere; }

.mini-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  padding: 9px 13px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.info-card {
  display: block;
  margin-bottom: 16px;
}

.info-card .primary { margin-top: 18px; }
.prose h2 { margin: 26px 0 9px; font-size: 22px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0; line-height: 1.68; }

.toast {
  position: fixed;
  bottom: calc(98px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 99;
  max-width: min(90%, 520px);
  transform: translateX(-50%) translateY(18px);
  border: 1px solid var(--signal);
  border-radius: 999px;
  background: var(--ink);
  padding: 12px 16px;
  color: #fff;
  opacity: 0;
  font-size: 13px;
  line-height: 1.4;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (min-width: 620px) {
  main { padding: 0 24px; }
  .hero-panel { margin-top: 28px; }
  .hero { padding: 42px 38px 36px; }
  .hero p { font-size: 17px; }
  .hero-action { padding: 0 28px 34px; }
  .assurance-row { grid-template-columns: repeat(3, 1fr); }
  .assurance-row > span + span { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.13); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { min-height: 156px; }
  .choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-card { padding: 38px; }
  .councillor-help-card { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 30px; }
  .councillor-help-card .primary { grid-column: auto; width: auto; min-width: 190px; }
  .project-card { grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.7fr); align-items: end; padding: 30px; }
  .feedback-link { justify-self: end; text-align: right; }
}

@media (min-width: 780px) {
  body { padding-bottom: 0; }

  .app-header {
    min-height: 86px;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    padding-block: 14px;
  }

  .bottom-nav {
    position: static;
    min-height: auto;
    width: auto;
    grid-template-columns: repeat(4, auto);
    gap: 4px;
    border: 1px solid rgba(16, 24, 32, 0.16);
    border-radius: 999px;
    background: rgba(255, 254, 250, 0.78);
    padding: 4px;
    backdrop-filter: none;
  }

  .nav-item {
    min-height: 44px;
    grid-template-columns: auto auto;
    align-content: center;
    gap: 7px;
    border-radius: 999px;
    padding: 8px 13px;
    color: var(--muted);
  }

  .nav-item small { font-size: 12px; }
  .nav-item[aria-current="page"] { background: var(--ink); color: #fff; }
  .toast { bottom: 28px; }
}

@media (min-width: 920px) {
  .hero-layout { grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr); min-height: 470px; }
  .hero { display: flex; flex-direction: column; justify-content: center; padding: 54px 50px; }
  .hero h1 { font-size: clamp(66px, 7.4vw, 100px); }
  .hero-action { align-self: center; width: 100%; padding: 48px 46px 48px 0; }
  .search-box { min-height: 118px; padding: 20px; }
  .search-symbol { width: 60px; height: 60px; }
  .search-box input { font-size: 19px; }
  .assurance-row > span { min-height: 58px; padding-inline: 24px; }
}

@media (min-width: 1080px) {
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-card { min-height: 190px; grid-template-columns: 1fr; align-content: space-between; }
  .category-card strong { max-width: 260px; font-size: 21px; }
}

@media (max-width: 779px) {
  .brand small { display: none; }
  .app-header { grid-template-columns: minmax(0, 1fr) auto; backdrop-filter: none; }
}

@media (max-width: 420px) {
  .ribbon-full { display: none; }
  .ribbon-short { display: inline; }
  .project-ribbon { gap: 8px; padding-inline: 10px; font-size: 9px; }
  .brand strong { font-size: 15px; }
  .hero { padding: 28px 20px 24px; }
  .hero h1 { font-size: clamp(43px, 13.5vw, 58px); }
  .hero-action { padding: 0 12px 20px; }
  .search-box { min-height: 86px; border-radius: 19px; }
  .search-symbol { width: 44px; height: 44px; }
  .search-hint { margin-left: 4px; }
  .assurance-row > span { padding-inline: 16px; }
  .category-toolbar { align-items: center; }
  .category-toolbar h2 { font-size: 36px; }
  .category-card { min-height: 132px; padding: 18px; }
  .flow-card { padding: 22px 18px; }
  .flow-card h1 { font-size: clamp(38px, 12vw, 50px); }
  .project-card,
  .info-card { padding: 22px 18px; }
}

@media (max-width: 340px) {
  .ribbon-service { display: none; }
  .project-ribbon { min-height: 34px; }
  .brand-mark { width: 44px; height: 44px; }
  .hero h1 { font-size: 40px; }
  .category-toolbar { align-items: flex-start; flex-direction: column; gap: 4px; }
  .text-button { align-self: flex-start; }
  .category-card { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .category-icon { width: 34px; }
}

@media (hover: hover) and (pointer: fine) {
  .nav-item:hover { background: var(--paper-deep); color: var(--ink); }
  .nav-item[aria-current="page"]:hover { background: var(--ink); color: #fff; }
  .text-button:hover,
  .mini-button:hover,
  .back-button:hover { background: var(--ink); color: #fff; }
  .category-card:hover { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt), var(--shadow-contact); }
  .choice-button:hover { border-color: var(--cobalt); background: #edf1ff; }
  .primary:hover { background: #ecff91; }
  .secondary:hover { background: var(--ink); color: #fff; }
  .feedback-link:hover,
  .route-feedback:hover { color: var(--ink); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .view { animation: view-enter 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
  .search-box { transition: border-color 160ms ease-out, box-shadow 160ms ease-out; }
  .nav-item,
  .text-button,
  .mini-button,
  .back-button,
  .category-card,
  .choice-button,
  .primary,
  .secondary { transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out, transform 100ms ease-out; }
  .category-card:active,
  .choice-button:active,
  .primary:active,
  .secondary:active { transform: scale(0.97); }
  .progress-wrap span { transition: width 220ms ease-out; }
  .toast { transition: opacity 180ms ease-out, transform 180ms ease-out; }
}

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

@media (forced-colors: active) {
  .brand-mark,
  .search-symbol,
  .category-icon,
  .choice-symbol,
  .help-icon,
  .org-badge,
  .safety-icon { border: 1px solid currentColor; }
}
