:root {
  --ink: #142d3c;
  --ink-deep: #0b202d;
  --yellow: #f4df4e;
  --yellow-soft: #fff7bd;
  --paper: #f6f8f7;
  --white: #ffffff;
  --line: #cad4d7;
  --muted: #5d6c74;
  --max: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.hero {
  color: var(--white);
  background: var(--ink);
  padding: 0 max(1.25rem, calc((100vw - var(--max)) / 2));
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  width: 24rem;
  height: 24rem;
  right: -9rem;
  bottom: -15rem;
  border: 3.5rem solid rgba(244, 223, 78, .15);
  border-radius: 50%;
}
.topbar {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--white);
  text-decoration: none;
  line-height: 1.12;
  font-size: .9rem;
}
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 900;
  letter-spacing: -.05em;
}
.nav-link { color: var(--yellow); font-weight: 750; text-underline-offset: .3rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, .6fr);
  align-items: end;
  gap: 4rem;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(4.5rem, 8vw, 7rem);
  position: relative;
  z-index: 1;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 850;
}
.eyebrow.dark { color: #735f00; }
.eyebrow.light { color: var(--yellow); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: .95;
  letter-spacing: -.06em;
}
h1 span { color: var(--yellow); }
.intro {
  max-width: 47rem;
  margin: 0;
  color: #dce5e7;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}
.position-card {
  padding: 1.75rem;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 14px 14px 0 rgba(255,255,255,.10);
}
.card-kicker {
  display: block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
  font-weight: 900;
}
.position-card p { font-size: 1.15rem; font-weight: 800; line-height: 1.4; }
.position-card .position-note { margin: 0; font-size: .95rem; font-weight: 600; }

main > section, footer {
  padding-left: max(1.25rem, calc((100vw - var(--max)) / 2));
  padding-right: max(1.25rem, calc((100vw - var(--max)) / 2));
}
.ask-section { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.section-heading { max-width: 45rem; }
.section-heading h2, .action-section h2 {
  margin-bottom: .8rem;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.ask-form {
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 2.5rem 0 1.25rem;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--yellow);
}
.ask-form input {
  min-width: 0;
  padding: 1.15rem 1.25rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 1.05rem;
  outline: none;
}
.ask-form:focus-within { outline: 4px solid rgba(20, 45, 60, .16); }
.ask-form button, .primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  color: var(--white);
  background: var(--ink);
  border: 0;
  font-weight: 850;
  text-decoration: none;
}
.quick-questions { display: flex; flex-wrap: wrap; gap: .65rem; }
.quick-questions button {
  padding: .7rem 1rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid #98a8ae;
  border-radius: 99rem;
  font-weight: 700;
}
.quick-questions button:hover, .quick-questions button:focus-visible { background: var(--yellow-soft); border-color: var(--ink); }
.answer-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border-left: .5rem solid var(--yellow);
  box-shadow: 0 1.2rem 3rem rgba(11,32,45,.1);
}
.answer-number {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  color: var(--yellow);
  background: var(--ink);
  font-weight: 900;
}
.answer-label { margin-bottom: .35rem; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-size: .72rem; font-weight: 850; }
.answer-panel h3 { margin-bottom: 1rem; font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.2; }
.answer-panel p { max-width: 52rem; }
.text-button { padding: 0; color: var(--ink); background: transparent; border: 0; text-decoration: underline; text-underline-offset: .25rem; font-weight: 800; }
.no-match { margin-top: 1.5rem; padding: 1.25rem; background: var(--yellow-soft); }
.no-match strong, .no-match span { display: block; }

.map-section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  color: var(--white);
  background: #24495d;
}
.map-intro {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: 2rem;
}
.map-intro h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.map-statement { color: #e5edef; font-size: 1.08rem; }
.map-statement p:last-child { margin-bottom: 0; color: var(--white); }
.map-card {
  overflow: hidden;
  background: var(--white);
  box-shadow: 14px 14px 0 rgba(11,32,45,.35);
}
.map-viewport { overflow: auto; background: #f4f1e9; }
.map-viewport img { display: block; width: 100%; min-width: 58rem; height: auto; }
.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.map-toolbar p { margin: 0; color: var(--muted); font-size: .92rem; }
.map-open-button {
  flex: none;
  padding: .75rem 1rem;
  color: var(--white);
  background: var(--ink);
  border: 0;
  font-weight: 850;
}
.map-key {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2rem;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.2);
}
.key-item {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: center;
  gap: .75rem;
  min-height: 5.4rem;
  padding: 1rem;
  background: rgba(11,32,45,.45);
}
.key-item small { display: block; color: #cdd9dc; font-size: .78rem; line-height: 1.3; }
.key-line { display: block; width: 1.85rem; height: .34rem; transform: rotate(-55deg); }
.key-line.buildout { background: #ff1616; }
.key-line.schoolstreet { background: #078dd5; }
.key-line.parking { background: #7a31ad; }
.key-line.yellowline { background: #ffc400; }
.key-block.narrow { display: block; width: 1.65rem; height: 1rem; background: #117998; border: 2px solid #081d27; transform: rotate(-24deg); }
.key-turn { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; color: #e31111; background: var(--white); border: 2px solid #e31111; border-radius: 50%; font-size: 1.2rem; font-weight: 900; }
.map-note { max-width: 60rem; margin: 1.3rem 0 0; color: #d2dfe2; font-size: .86rem; }

.map-dialog {
  width: min(96vw, 90rem);
  height: min(94vh, 62rem);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  box-shadow: 0 2rem 6rem rgba(0,0,0,.5);
}
.map-dialog::backdrop { background: rgba(6,20,29,.84); }
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1; }
.dialog-header .eyebrow { margin-bottom: .35rem; }
.dialog-close, .zoom-controls button {
  min-width: 3rem;
  min-height: 2.75rem;
  padding: .5rem .85rem;
  color: var(--white);
  background: var(--ink);
  border: 0;
  font-weight: 850;
}
.dialog-map {
  height: calc(100% - 9.5rem);
  overflow: auto;
  background: #dfe5e3;
}
.dialog-map img { display: block; width: 100%; height: auto; transform-origin: top left; }
.zoom-controls {
  display: flex;
  justify-content: center;
  gap: .35rem;
  padding: .7rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.answers-section { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); color: var(--white); background: var(--ink-deep); }
.answers-heading { margin-bottom: 2.5rem; }
.accordion { border-top: 1px solid rgba(255,255,255,.22); }
.accordion details { border-bottom: 1px solid rgba(255,255,255,.22); }
.accordion summary {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  align-items: start;
  gap: 1rem;
  padding: 1.5rem .25rem;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.05rem, 2.3vw, 1.4rem);
  font-weight: 800;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; grid-column: 3; color: var(--yellow); font-size: 1.7rem; line-height: .8; }
.accordion details[open] summary::after { content: "−"; }
.accordion summary span { color: var(--yellow); font-variant-numeric: tabular-nums; }
.detail-copy { max-width: 52rem; padding: 0 1rem 1.6rem 4.75rem; color: #d7e0e3; }
.detail-copy p:last-child { margin-bottom: 0; }

.action-section {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  background: var(--yellow);
}
.action-section > div { max-width: 43rem; }
.action-section p:last-child { margin-bottom: 0; font-size: 1.08rem; }
.primary-link { min-height: 3.8rem; gap: .6rem; box-shadow: 7px 7px 0 rgba(20,45,60,.2); }
.primary-link:hover, .primary-link:focus-visible { background: #24495d; }

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: #d9e2e5;
  background: var(--ink);
}
footer p { margin-bottom: .25rem; }
.footer-title { color: var(--white); font-weight: 800; }
.contact-links { display: flex; gap: 1rem; align-items: start; }
.contact-links a { color: var(--yellow); text-underline-offset: .25rem; }
.disclaimer { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .88rem; }

.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; }
:focus-visible { outline: 3px solid #ffef72; outline-offset: 3px; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .position-card { max-width: 32rem; }
  .ask-form { grid-template-columns: 1fr; }
  .ask-form button { min-height: 3.4rem; }
  .answer-panel { grid-template-columns: 1fr; }
  .accordion summary { grid-template-columns: 2.5rem 1fr; }
  .detail-copy { padding-left: 3.75rem; }
  .action-section { grid-template-columns: 1fr; }
  .primary-link { width: 100%; }
  .map-intro { grid-template-columns: 1fr; }
  .map-key { grid-template-columns: 1fr 1fr; }
  .map-toolbar { align-items: stretch; flex-direction: column; }
  footer { grid-template-columns: 1fr; }
  .disclaimer { grid-column: 1; }
}

@media (max-width: 480px) {
  .map-key { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
