:root {
  --ink: #16372f;
  --ink-deep: #0e2a24;
  --paper: #f7f5ed;
  --paper-deep: #eeeade;
  --white: #fffef9;
  --line: #d8d7cb;
  --muted: #56635e;
  --accent: #e5f08a;
  --accent-deep: #cbd867;
  --sage: #d8e2d6;
  --clay: #dc9b79;
  --shadow: 0 22px 60px rgba(24, 51, 43, 0.12);
  --serif: "Iowan Old Style", Baskerville, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", Avenir, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-deep);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

body.dialog-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

button {
  color: inherit;
  font-family: var(--ui);
}

svg {
  display: block;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 6px;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Dark sections need a light focus ring to keep 3:1 contrast. */
.hero :focus-visible,
.task-band :focus-visible,
footer :focus-visible {
  outline-color: var(--accent);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  height: 78px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(22, 55, 47, 0.12);
  background: rgba(247, 245, 237, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  line-height: 1.05;
  text-decoration: none;
}

.brand-logo {
  width: 103px;
  height: auto;
}

.brand-guide {
  max-width: 7.5rem;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

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

.brand strong {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 39px);
  margin: 0 auto;
}

.desktop-nav > a {
  position: relative;
  color: #385149;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.desktop-nav > a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.desktop-nav > a:hover::after,
.desktop-nav > a:focus-visible::after {
  transform: scaleX(1);
}

/* "More" holds the sections that don't fit in the bar (FAQ, Documents). */
.nav-more {
  position: relative;
}

.nav-more-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #385149;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
}

.nav-more-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.nav-more-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: -14px;
  z-index: 20;
  min-width: 170px;
  margin: 0;
  padding: 6px 0;
  border: 1px solid var(--line);
  background: var(--white);
  list-style: none;
}

.nav-more-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

/* Contacts moves into "More" only when the bar hides it (980px and narrower). */
.nav-more-narrow {
  display: none;
}

.nav-more-menu a:hover {
  background: var(--paper);
  text-decoration: underline;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 650;
}

.nav-search svg,
.dialog-header svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

kbd {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.75rem;
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(420px, 56vh, 560px);
  max-width: none;
  margin: 0 auto;
  padding: 80px max(28px, calc((100vw - var(--max)) / 2)) 72px;
  overflow: hidden;
  color: var(--white);
}

.hero-copy {
  z-index: 2;
  align-self: center;
  max-width: 720px;
}

.hero-photo-image,
.hero-photo-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Above 760px the hero uses a wide crop of the photo's visible band, so it's centered. */
.hero-photo-image {
  object-fit: cover;
  object-position: center 50%;
}

.hero-photo-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 25, 20, 0.84) 0%, rgba(7, 25, 20, 0.62) 41%, rgba(7, 25, 20, 0.13) 73%, rgba(7, 25, 20, 0.08) 100%),
    linear-gradient(0deg, rgba(7, 25, 20, 0.36), transparent 45%);
}


.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(44px, 5.4vw, 72px);
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.18);
}

.hero h1 em {
  color: var(--accent);
  font-weight: 400;
}

.hero-intro {
  max-width: 520px;
  margin: 22px 0 0;
  color: #e1e9e6;
  font-size: 1.125rem;
  line-height: 1.6;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 28px;
  scroll-margin-top: 70px;
}

.section + .section {
  border-top: 1px solid var(--line);
}

/* Section backgrounds break up the long cream page: a sand tint on a few
   sections and one dark band for the ACC process. The box-shadow and
   clip-path stretch the color to the full window width. */
.section-tint,
.section-dark {
  box-shadow: 0 0 0 100vmax var(--section-bg);
  clip-path: inset(0 -100vmax);
  background: var(--section-bg);
}

.section-tint {
  --section-bg: var(--paper-deep);
}

.section-dark {
  --section-bg: var(--ink);
  color: var(--white);
}

.section.section-tint,
.section.section-dark,
.section-tint + .section,
.section-dark + .section {
  border-top: 0;
}

.section-dark :focus-visible {
  outline-color: var(--accent);
}

.section-dark .section-heading > p,
.section-dark .small-note {
  color: #d3ddd9;
}

.section-dark .approval-panel {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.section-dark .approval-steps li::marker {
  color: var(--accent);
}

.section-dark .approval-steps a {
  color: var(--accent);
}

.section-dark .button {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink-deep);
}

.section-dark .button-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
  color: var(--white);
}

.section-heading {
  margin-bottom: 26px;
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 460px);
  gap: 48px;
  align-items: end;
}

.section-heading h2 {
  font-size: clamp(32px, 3.6vw, 44px);
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.small-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.small-note a {
  color: var(--ink);
}

/* Get involved */
.involved-overview {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.involved-overview > div {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.involved-overview h3 {
  margin: 0 0 6px;
  font-family: var(--ui);
  font-size: 1.0625rem;
  font-weight: 700;
}

.involved-overview p {
  margin: 0;
  font-size: 0.9375rem;
}

.involved-overview .small-note {
  margin-top: 12px;
}

.plain-list {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 0.9375rem;
}

.plain-list li + li {
  margin-top: 4px;
}

.involved-overview .cta-panel {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.cta-panel .button {
  margin-top: 16px;
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.cta-panel .button:focus-visible {
  outline-color: var(--accent);
}

.cta-panel .cta-role {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 25%);
}

/* The one Get involved entry point to the neighbors' page. */
.neighbors-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

.neighbors-panel > div {
  flex: 1 1 320px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.card h2,
.card h3,
.link-groups h3,
.contact-row h3 {
  margin: 0 0 6px;
  font-family: var(--ui);
  font-size: 1.0625rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Text links only; buttons inside cards keep their own colors. */
.card a:not(.button) {
  color: var(--ink);
  font-weight: 600;
}

/* Around the neighborhood */
.link-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.link-groups h3 {
  margin-bottom: 10px;
}

.map-panel {
  margin-top: 32px;
}

.neighborhood-map {
  height: 560px;
}

.neighborhood-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-fallback {
  display: grid;
  height: 100%;
  margin: 0;
  padding: 24px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.link-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink);
  font-weight: 700;
}

.link-list span {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Rules */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.topic-card {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 160ms ease;
}

.topic-card:hover {
  border-color: var(--ink);
}

/* The heading's button stretches over the whole card so the card stays one click target. */
.topic-card-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
}

.topic-card-button::before {
  position: absolute;
  inset: 0;
  content: "";
}

.topic-card-button:focus-visible {
  outline: 0;
}

.topic-card:has(.topic-card-button:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.topic-card h3 {
  margin: 0 0 4px;
  font-family: var(--ui);
  font-size: 1.0625rem;
  font-weight: 700;
}

.topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Exterior changes */
.approval-panel {
  padding: 26px 28px;
  border: 1px solid var(--line);
  background: var(--white);
}

.approval-steps {
  margin: 0;
  padding-left: 22px;
}

.approval-steps li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.approval-steps li::marker {
  color: var(--ink);
  font-weight: 700;
}

.approval-steps a {
  color: var(--ink);
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--ui);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

/* Contacts */
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contact-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.contact-row h3 {
  margin: 0;
}

.contact-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-row p strong {
  color: var(--ink-deep);
}

.contact-row > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 16px 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.faq-question strong {
  font-family: var(--ui);
  font-size: 1.0625rem;
  font-weight: 700;
}

.faq-toggle {
  color: var(--ink);
  font-size: 1.375rem;
  line-height: 1;
  text-align: center;
}

.faq-question[aria-expanded="true"] .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-width: 760px;
  padding: 0 2px 18px;
  color: var(--muted);
  font-size: 1rem;
}

.faq-answer p {
  margin: 0 0 12px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.document-card {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.document-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.8125rem;
  font-weight: 600;
}

.pdf-mark {
  display: grid;
  width: 36px;
  height: 42px;
  place-items: center;
  border: 1px solid #b7b9af;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.document-card h3 {
  margin: 14px 0 6px;
  font-family: var(--ui);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.document-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.document-date {
  margin-top: auto;
  padding: 19px 0 10px;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.8125rem;
  font-weight: 600;
}

.document-actions {
  display: flex;
  align-items: center;
  border-top: 1px solid #d5d2c5;
}

.document-actions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding: 14px 10px 0 0;
  font-family: var(--ui);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

.document-actions a:last-child {
  max-width: 128px;
  padding-right: 0;
  padding-left: 12px;
  border-left: 1px solid #d5d2c5;
}

.document-actions small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 132px;
  padding: 25px max(28px, calc((100vw - var(--max)) / 2));
  background: var(--ink-deep);
  color: white;
}

.footer-brand {
  color: white;
}

.footer-logo {
  width: 142px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.footer-brand small,
footer p {
  color: #96aaa3;
}

footer p {
  font-size: 0.8125rem;
}

footer p small {
  color: #b9c8c3;
  font-size: 0.75rem;
}

footer p strong {
  color: #dbe3e0;
  font-weight: 650;
}

/* Quieter footer for small utility pages, on the page background instead of the dark band */
.footer-quiet {
  min-height: 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.footer-quiet .footer-logo {
  width: 110px;
  filter: none;
  opacity: 1;
}

.footer-quiet p,
.footer-quiet p strong {
  color: var(--muted);
}

.footer-quiet .footer-links a {
  color: var(--ink);
}

.footer-quiet :focus-visible {
  outline-color: var(--ink);
}

.footer-legal {
  display: grid;
  gap: 6px;
  max-width: 600px;
  text-align: right;
}

.footer-legal p {
  margin: 0;
}

.footer-links .nowrap {
  white-space: nowrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #dbe3e0;
}

dialog {
  padding: 0;
  border: 0;
}

dialog::backdrop {
  background: rgba(7, 25, 20, 0.63);
  backdrop-filter: blur(5px);
}

.search-dialog {
  top: 10vh;
  width: min(720px, calc(100% - 32px));
  max-height: 75vh;
  margin: 0 auto;
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.dialog-header {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.dialog-header svg {
  width: 21px;
}

.dialog-header input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.125rem;
}

.dialog-header button {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.search-help {
  padding: 22px;
  color: var(--muted);
  font-size: 0.875rem;
}

.search-results {
  max-height: 58vh;
  overflow-y: auto;
}

.search-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  width: 100%;
  padding: 18px 22px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--paper);
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result strong {
  margin-bottom: 3px;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 400;
}

.search-result small {
  color: var(--muted);
  font-size: 0.875rem;
}

.result-type {
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.no-results {
  padding: 48px 22px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

.topic-dialog {
  width: min(700px, calc(100% - 32px));
  max-height: min(84vh, 780px);
  overflow-y: auto;
  background: var(--white);
  box-shadow: var(--shadow);
}

.dialog-close {
  position: sticky;
  z-index: 2;
  top: 18px;
  float: right;
  width: 36px;
  height: 36px;
  margin: 18px 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.dialog-close svg {
  width: 18px;
  margin: auto;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 1.5;
}

.topic-detail {
  padding: 62px 60px 55px;
}

.topic-detail h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.topic-detail > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1rem;
}

.topic-detail ul {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.topic-detail li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.topic-detail li:last-child {
  border-bottom: 1px solid var(--line);
}

.topic-detail li::before {
  position: absolute;
  top: 19px;
  left: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clay);
  content: "";
}

.topic-caution {
  margin: 0 0 26px;
  padding: 16px 18px;
  border-left: 3px solid var(--clay);
  background: var(--paper-deep);
  color: #5e5749;
  font-size: 0.875rem;
}

.topic-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.topic-sources a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

/* Task router: replaces the old notice band directly under the hero. */
.task-band {
  background: var(--ink);
  color: var(--white);
}

.task-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 28px 38px;
}

.task-title {
  margin: 0 0 14px;
  font-family: var(--ui);
  font-size: 1.125rem;
  font-weight: 700;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.task-card:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.task-card strong {
  color: var(--accent);
  font-family: var(--ui);
  font-size: 1rem;
}

.task-card span {
  color: #d3ddd9;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.topic-related {
  margin: 18px 0 0;
  font-size: 0.875rem;
}

.topic-related a {
  color: var(--ink);
  font-weight: 700;
}

.mobile-search {
  display: none;
}


.event-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.event-item:first-child {
  padding-top: 8px;
  border-top: 0;
}

.events-empty {
  margin: 0;
  color: var(--muted);
}

.event-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.event-date {
  display: grid;
  height: 60px;
  place-content: center;
  background: var(--ink);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
}

.event-date small {
  margin-bottom: 3px;
  color: var(--accent);
  font-family: var(--ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.event-item h3 {
  margin: 0;
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 700;
}

.event-item p {
  margin: 4px 0 0;
  font-size: 0.9375rem;
}

.event-item .event-when {
  color: var(--muted);
  font-weight: 600;
}

/* Neighbor sign-in and the neighbors' page */
.nav-neighbors {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-left: 10px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--ui);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

.header-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: 44px;
  margin-left: auto;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 0.875rem;
  font-weight: 650;
}

.sign-out-form {
  margin: 0 0 0 20px;
}

.site-header-compact .header-back-link {
  white-space: nowrap;
}

.sign-in-page {
  max-width: 560px;
  padding-top: 64px;
  padding-bottom: 80px;
}

.sign-in-page h1,
#neighbors-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.legal-page {
  max-width: 720px;
  padding-top: 64px;
  padding-bottom: 80px;
}

.legal-page h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.legal-intro {
  margin: 16px 0 8px;
  color: var(--muted);
}

.legal-page h2 {
  margin: 32px 0 8px;
  font-size: 1.125rem;
}

.legal-page p {
  margin: 0 0 12px;
}

.legal-page a {
  color: var(--ink);
}

.sign-in-intro {
  margin: 16px 0 24px;
  color: var(--muted);
}

.sign-in-form {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.sign-in-form label {
  font-family: var(--ui);
  font-weight: 700;
}

.sign-in-form input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #7d8a85;
  border-radius: 4px;
  background: var(--white);
}

.sign-in-form input[aria-invalid="true"] {
  border-color: #a3341f;
}

.sign-in-form .button {
  justify-self: start;
  margin-top: 8px;
  cursor: pointer;
}

.form-error {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 3px solid #a3341f;
  background: var(--white);
  color: #8a2a17;
  font-weight: 600;
}

.neighbors-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: start;
}

.newsletter-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.newsletter-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.newsletter-list li:first-child {
  border-top: 0;
}

.newsletter-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.newsletter-date {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}

.board-list {
  margin: 6px 0 0;
  padding-left: 20px;
}

.disclaimer-note {
  margin: 28px 0 0;
  padding: 18px 22px;
  border-left: 3px solid var(--clay);
  background: var(--paper-deep);
  font-size: 0.9375rem;
}


@media (max-width: 980px) {
  .desktop-nav {
    gap: 20px;
  }

  .desktop-nav > a:nth-child(5) {
    display: none;
  }

  .nav-more-narrow {
    display: block;
  }

  .topic-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .involved-overview,
  .neighbors-grid,
  .link-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 68px;
    padding: 0 20px;
  }

  .desktop-nav,
  .nav-search,
  .nav-neighbors {
    display: none;
  }

  .menu-button {
    display: grid;
    width: 38px;
    height: 38px;
    margin-left: auto;
    padding: 10px 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button > span:not(.sr-only) {
    display: block;
    width: 21px;
    height: 1px;
    margin: auto;
    background: var(--ink);
  }

  .mobile-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: grid;
    padding: 18px 20px 26px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 18px 30px rgba(22, 55, 47, 0.12);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--ui);
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
  }

  .hero {
    display: grid;
    min-height: 420px;
    padding: 60px 20px 64px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-photo-image {
    object-position: 50% 55%;
  }

  .hero-photo-shade {
    background:
      linear-gradient(90deg, rgba(7, 25, 20, 0.83), rgba(7, 25, 20, 0.3)),
      linear-gradient(0deg, rgba(7, 25, 20, 0.55), transparent 60%);
  }


  .section {
    padding: 48px 20px;
  }

  .split-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 10px;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .neighborhood-map {
    height: 820px;
  }

  .approval-panel {
    padding: 20px;
  }

  .contact-row {
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
  }

  .contact-row > a {
    grid-column: 2;
    min-height: 32px;
  }

  .document-grid {
    grid-template-columns: 1fr;
  }

  footer {
    gap: 25px;
    align-items: start;
    flex-direction: column;
    padding: 38px 20px;
  }

  footer p {
    margin: 0;
  }

  .footer-legal {
    text-align: left;
  }

  .topic-detail {
    padding: 58px 27px 36px;
  }
}

/* Headers with a back link (sign-in, neighbors, privacy): on phones drop the label and shorten the link */
@media (max-width: 600px) {
  .site-header-compact .brand-guide {
    display: none;
  }

  .site-header-compact .back-link-long {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

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

  .faq-answer {
    padding-right: 4px;
    padding-left: 4px;
  }

}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Small inline links and buttons get at least a 44px tall hit area. */
.topic-sources a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 980px) {
  .task-grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 760px) {
  .task-inner {
    padding: 28px 20px 30px;
  }

  .task-grid {
    grid-template-columns: 1fr;
  }

  .task-card {
    min-height: 0;
  }

  .mobile-search {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    margin-bottom: 6px;
    padding: 0 14px;
    border: 1px solid #c9ccc1;
    border-radius: 4px;
    background: var(--white);
    cursor: pointer;
    font-size: 1rem;
    text-align: left;
  }

  .mobile-search svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
  }
}

