:root {
  --navy: #000078;
  --teal: #007884;
  --teal-dark: #005e68;
  --ink: #182033;
  --muted: #637083;
  --line: #dde5ec;
  --panel: #ffffff;
  --soft: #f4f8fb;
  --success-bg: #e7f6f2;
  --success-text: #0f5f55;
  --warning-bg: #fff4df;
  --warning-text: #7a4b00;
  --shadow: 0 18px 45px rgba(0, 0, 120, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--soft);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

button,
.office-link {
  align-items: center;
  background: var(--navy);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

button:hover,
.office-link:hover {
  background: var(--teal-dark);
  box-shadow: 0 10px 22px rgba(0, 120, 132, 0.18);
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible,
.office-link:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(0, 120, 132, 0.28);
  outline-offset: 3px;
}

.page-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(1rem, 3vw, 2rem);
}

.hero {
  background: var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #ffffff;
  margin-bottom: 1.2rem;
  overflow: hidden;
  padding: clamp(1.6rem, 4vw, 3rem);
  position: relative;
}

.hero::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(0, 120, 132, 0.74), rgba(0, 120, 132, 0));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero > div {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #86e2df;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.3rem, 7vw, 4.4rem);
}

h2 {
  color: var(--navy);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.intro {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 1rem 0 0;
  max-width: 68ch;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(221, 229, 236, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.checker-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin-bottom: 1rem;
}

.checker-card,
.help-card,
.street-list-card {
  padding: clamp(1rem, 2.6vw, 1.5rem);
}

.section-heading {
  margin-bottom: 1rem;
}

label {
  color: var(--ink);
  display: block;
  font-weight: 750;
  margin-bottom: 0.55rem;
}

.search-row {
  display: flex;
  gap: 0.65rem;
}

input[type="search"] {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  flex: 1;
  min-height: 48px;
  min-width: 0;
  padding: 0.75rem 0.9rem;
}

.result-panel {
  border-radius: 8px;
  font-weight: 700;
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
}

.result-panel.neutral {
  background: #eef4fa;
  color: #355169;
}

.result-panel.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.result-panel.warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.help-card {
  background:
    linear-gradient(180deg, rgba(0, 120, 132, 0.08), rgba(0, 120, 132, 0)),
    #ffffff;
}

.help-card p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.map-card {
  margin-bottom: 1rem;
  overflow: hidden;
}

.map-header {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: clamp(1rem, 2.6vw, 1.5rem) clamp(1rem, 2.6vw, 1.5rem) 1rem;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.map-actions button {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--navy);
}

.map-actions button:hover {
  background: #f1fbfb;
  color: var(--teal-dark);
}

.map-view {
  border-block: 1px solid var(--line);
  height: min(68vh, 620px);
  min-height: 420px;
  width: 100%;
}

.map-note {
  color: var(--muted);
  margin: 0;
  padding: 1rem clamp(1rem, 2.6vw, 1.5rem) 1.25rem;
}

.street-list-header {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.street-list-header p {
  color: var(--muted);
  margin: 0;
  max-width: 30rem;
}

.street-list {
  display: grid;
  gap: 0.7rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

summary {
  align-items: center;
  background: #f7fafc;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  font-weight: 850;
  justify-content: space-between;
  list-style: none;
  padding: 0.9rem 1rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  color: var(--teal);
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

.street-items {
  display: grid;
  gap: 0.5rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  list-style: none;
  margin: 0;
  padding: 1rem;
}

.street-items li {
  border-bottom: 1px solid #edf2f6;
  color: #273447;
  padding-bottom: 0.45rem;
}

.esri-view {
  --esri-ui-font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 820px) {
  .checker-grid,
  .street-list-header,
  .map-header {
    grid-template-columns: 1fr;
  }

  .checker-grid {
    display: grid;
  }

  .map-header,
  .street-list-header {
    align-items: stretch;
    flex-direction: column;
  }

  .map-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 0.7rem;
  }

  .hero,
  .card {
    border-radius: 8px;
  }

  .search-row {
    flex-direction: column;
  }

  .map-actions button,
  .search-row button {
    width: 100%;
  }

  .map-view {
    height: 64vh;
    min-height: 360px;
  }
}
