:root {
  color-scheme: dark;
  --bg: #111512;
  --surface: #181d19;
  --surface-2: #202721;
  --surface-3: #2a332c;
  --text: #edf2ec;
  --muted: #a9b4a9;
  --line: #384239;
  --gold: #d7ad3f;
  --gold-2: #f0d36e;
  --green: #8fc08a;
  --red: #d97862;
  --shadow: 0 18px 48px rgb(0 0 0 / 0.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold-2);
  outline-offset: 3px;
}

.page-shell {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 38px;
}

.topbar,
.brand,
.topbar nav,
.footer,
.footer nav,
.hero-actions,
.card-actions,
.tray-items,
.related-links {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 18px;
}

.brand {
  width: 340px;
  max-width: 58vw;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: block;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgb(0 0 0 / 0.24));
}

.brand-copy {
  display: block;
  min-width: 0;
}

.brand-name {
  color: var(--text);
  font-size: 1.72rem;
  font-weight: 900;
  line-height: 1;
}

.brand-name span,
.brand-tagline span {
  color: #a8bb4a;
}

.brand-tagline {
  margin-top: 7px;
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
}

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

.brand small,
.footer,
.city-card dt,
.metric-card p,
.signal-board p,
.signal-board span,
.roadmap-card p,
.hero p,
.content-band p,
.policy-card p,
.compare-table th,
label {
  color: var(--muted);
}

.topbar nav,
.footer nav {
  gap: 12px;
  flex-wrap: wrap;
}

.topbar nav a,
.footer nav a,
.related-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 760;
}

.topbar nav a:hover,
.footer nav a:hover,
.related-links a:hover,
.city-card a:hover {
  color: var(--gold-2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 22px;
  align-items: stretch;
  padding: clamp(24px, 5vw, 54px) 0 28px;
}

.compact-hero {
  grid-template-columns: 1fr;
}

.hero h1 {
  margin: 0;
  font-size: 4.85rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.home-shell {
  min-height: 100vh;
}

.home-hero {
  min-height: min(560px, calc(100vh - 180px));
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(22px, 4.5vw, 56px) 0 24px;
}

.home-hero-copy h1 {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(3.1rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.home-hero-copy p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.home-hero-copy .hero-actions {
  justify-content: center;
}

.home-feature,
.home-paths {
  margin: 18px 0;
}

.home-feature {
  display: grid;
}

.featured-city-card,
.home-paths {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.featured-city-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.42fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.featured-city-card h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
}

.featured-city-card p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

.featured-stats {
  display: grid;
  gap: 8px;
  margin: 0;
}

.featured-stats div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.featured-stats dt {
  color: var(--muted);
  font-weight: 800;
}

.featured-stats dd {
  margin: 0;
  font-weight: 900;
}

.home-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.policy-card h1 {
  margin: 0;
  font-size: 2.75rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 780px;
  font-size: 1.06rem;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel,
.rank-panel,
.policy-card,
.control-panel,
.compare-tray,
.city-card,
.metric-card,
.roadmap-card,
.content-card,
.side-panel,
.index-section,
.content-band,
.compare-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel,
.rank-panel {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 22px;
}

.hero-panel span,
.rank-panel span {
  color: var(--muted);
  font-weight: 740;
}

.hero-panel strong,
.rank-panel strong {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.button.primary,
.button.active {
  border-color: var(--gold);
  background: var(--gold);
  color: #1d1708;
}

.button.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.icon-button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.icon-button.active,
.icon-button:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

.hero-actions,
.card-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 760px;
  margin: 20px 0 16px;
}

.hero-search input {
  min-height: 56px;
  font-size: 1.05rem;
}

.control-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 18px;
  padding: 18px;
  margin: 18px 0;
}

.control-panel h2,
.content-band h2,
.roadmap-card h2,
.policy-card h1,
.policy-card h2 {
  margin: 0 0 8px;
}

.controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
}

.panel-note {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.55;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 12px;
}

.compare-tray {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.compare-tray span {
  color: var(--muted);
  font-size: 0.86rem;
}

.tray-items {
  gap: 8px;
  flex-wrap: wrap;
}

.tray-items span,
.tray-items a,
.city-card-head span,
.roadmap-card span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.tray-items a {
  text-decoration: none;
}

.city-grid,
.metrics-grid,
.section-grid,
.link-grid {
  display: grid;
  gap: 14px;
}

.city-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.empty-state p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.55;
}

.zip-result {
  display: none;
  margin: 18px 0;
}

.zip-result.active {
  display: block;
}

.catalog-results-head,
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
}

.catalog-results-head span,
.calculator-city-status {
  color: var(--muted);
  font-size: 0.86rem;
}

.catalog-pagination {
  justify-content: center;
  margin: 18px 0;
}

.catalog-pagination .button {
  min-width: 112px;
}

.map-panel {
  margin: 18px 0;
}

.city-map {
  position: relative;
  min-height: 390px;
  aspect-ratio: 959 / 593;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
}

.city-map::before {
  content: "Representative Census place coordinates";
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  z-index: 3;
}

.city-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/brand/us-map.webp?v=0.6.0") center / 100% 100% no-repeat;
  opacity: 0.98;
  z-index: 0;
}

.map-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 1.5px solid #111512;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18), 0 8px 18px rgb(0 0 0 / 0.28);
  padding: 0;
  z-index: 2;
}

.map-dot.good {
  background: var(--green);
}

.map-dot.watch {
  background: var(--gold-2);
}

.map-dot.caution {
  background: var(--red);
}

.map-dot span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  max-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 6px 8px;
  font-size: 0.78rem;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

.map-dot:hover span,
.map-dot:focus-visible span {
  opacity: 1;
}

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
}

.section-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.city-card,
.metric-card,
.roadmap-card,
.content-card,
.side-panel,
.index-section,
.policy-card {
  padding: 16px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 14px;
  align-items: start;
  margin: 18px 0;
}

.content-card,
.side-panel {
  line-height: 1.7;
}

.content-card h2,
.side-panel h2,
.index-section h2 {
  margin: 0 0 10px;
}

.check-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.check-list li + li {
  margin-top: 8px;
}

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

.faq-list dt {
  font-weight: 900;
  color: var(--text);
}

.faq-list dd {
  margin: 0 0 8px;
  color: var(--muted);
}

.index-section {
  margin: 18px 0;
}

.index-section > p,
.index-section > div:first-child p {
  color: var(--muted);
  margin-top: 0;
}

.link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.index-link {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  text-decoration: none;
}

.index-link strong {
  color: var(--text);
}

.index-link span {
  color: var(--muted);
  font-size: 0.86rem;
}

.city-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.city-card h3 {
  min-height: 58px;
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.city-card h3 a {
  text-decoration: none;
}

.city-card dl {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.city-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.city-card dd {
  margin: 0;
  font-weight: 850;
  text-align: right;
}

.metric-card strong {
  display: block;
  margin: 8px 0;
  font-size: 1.55rem;
}

.metric-card.verified {
  border-color: rgb(143 192 138 / 0.7);
}

.metric-card.derived {
  border-color: rgb(240 211 110 / 0.58);
}

.metric-card.next {
  border-color: rgb(215 173 63 / 0.55);
}

.metric-card.queued {
  border-color: rgb(215 173 63 / 0.42);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
}

.score-pill {
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: #201b0f;
  color: var(--gold-2);
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 900;
}

.young-grad-panel {
  margin: 18px 0;
}

.signal-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.signal-board article {
  min-height: 152px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 13px;
}

.signal-board strong {
  display: block;
  margin: 7px 0;
  font-size: 1.05rem;
}

.signal-board p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.profile-grid article {
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 13px;
}

.profile-grid article.verified {
  border-color: rgb(143 192 138 / 0.7);
}

.profile-grid article.derived {
  border-color: rgb(240 211 110 / 0.58);
}

.profile-grid article.queued {
  border-color: rgb(215 173 63 / 0.42);
}

.profile-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.profile-grid strong {
  display: block;
  margin: 7px 0;
  font-size: 1.04rem;
}

.profile-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.content-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 18px;
  align-items: center;
  padding: 18px;
  margin: 20px 0;
}

.content-band > :only-child {
  grid-column: 1 / -1;
}

.compare-builder {
  margin: 18px 0;
}

.compare-builder-form {
  display: grid;
  gap: 12px;
}

.compare-city-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compare-builder-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.compare-builder-actions span {
  color: var(--muted);
  font-size: 0.9rem;
}

.student-compare-callout {
  margin: 18px 0;
}

.affordability-calculator {
  margin: 18px 0;
}

.calculator-city-select {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin-bottom: 14px;
}

.calculator-city-status {
  font-weight: 650;
}

.calculator-grid,
.calculator-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.currency-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.currency-input > span {
  padding-left: 12px;
  color: var(--muted);
  font-weight: 900;
}

.currency-input input {
  border: 0;
  background: transparent;
}

.calculator-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.calculator-results article {
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
}

.calculator-results article.comfortable {
  border-color: rgb(143 192 138 / 0.78);
}

.calculator-results article.watch {
  border-color: rgb(240 211 110 / 0.68);
}

.calculator-results article.tight {
  border-color: rgb(217 120 98 / 0.78);
}

.calculator-results span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.calculator-results strong {
  display: block;
  margin: 9px 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.calculator-results p,
.calculator-disclaimer {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.calculator-disclaimer {
  margin-top: 12px;
  font-size: 0.86rem;
}

.ranking-method .button {
  justify-self: end;
}

.related-links {
  gap: 8px;
  flex-wrap: wrap;
}

.related-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-2);
}

.compare-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table th[scope="row"] {
  background: var(--surface);
  white-space: nowrap;
}

.policy-card {
  width: min(860px, 100%);
  margin: 34px auto;
  line-height: 1.7;
}

.footer {
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero,
  .home-hero,
  .featured-city-card,
  .control-panel,
  .content-band {
    grid-template-columns: 1fr;
  }

  .city-grid,
  .metrics-grid,
  .section-grid,
  .signal-board,
  .profile-grid,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .calculator-grid,
  .calculator-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-tray {
    grid-template-columns: 1fr;
  }

  .home-paths {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    width: 100%;
    max-width: 100%;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .brand-name {
    font-size: 1.45rem;
  }

  .home-hero {
    min-height: auto;
  }

  .controls,
  .city-grid,
  .metrics-grid,
  .section-grid,
  .signal-board,
  .profile-grid,
  .link-grid,
  .calculator-grid,
  .calculator-results {
    grid-template-columns: 1fr;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .city-map {
    min-height: 0;
  }

  .map-dot {
    width: 10px;
    height: 10px;
  }

  .section-head {
    display: grid;
  }

  .catalog-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .home-hero-copy h1 {
    font-size: 3rem;
  }

  .policy-card h1 {
    font-size: 2.2rem;
  }

  .hero-actions .button,
  .card-actions .button,
  .compare-builder-form .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .compare-city-fields {
    grid-template-columns: 1fr;
  }

  .compare-builder-actions {
    align-items: stretch;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
  }

  .topbar,
  .footer,
  .hero-actions,
  .compare-tray,
  .map-panel {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .hero,
  .content-card,
  .compare-table-wrap,
  .roadmap-card {
    box-shadow: none;
    border-color: #ccc;
    background: #fff;
    color: #111;
  }

  .compare-table {
    min-width: 0;
    font-size: 0.82rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 8px;
    color: #111;
  }
}


/* City atlas refresh: source-led typography and ruled data rows replace the dark dashboard card grid. */
:root {
  color-scheme: light;
  --bg: #f4f1e8;
  --surface: #fffdf8;
  --surface-2: #eeeadd;
  --surface-3: #e4e5d9;
  --text: #202c24;
  --muted: #58645c;
  --line: #d7d2c4;
  --gold: #956f2c;
  --gold-2: #805d25;
  --green: #426b4a;
  --red: #9a493d;
  --shadow: none;
  font-family: "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body { background: var(--bg); color: var(--text); }
h1, h2, h3, .featured-city-card h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -0.025em; }
.page-shell { width: min(1240px, calc(100vw - 40px)); padding-top: 14px; }
.topbar { border-bottom: 1px solid var(--line); }
.brand-name, .brand-main { color: var(--text); }
.brand-name span, .brand-tagline span { color: var(--green); }
.brand-mark { filter: none; }
.brand-tagline { color: var(--muted); }
.topbar nav a, .footer nav a, .related-links a { color: var(--muted); font-weight: 650; }
.topbar nav a:hover, .footer nav a:hover, .related-links a:hover, .city-card a:hover { color: var(--green); }
.hero { gap: 28px; padding: clamp(24px, 4vw, 42px) 0 24px; border-bottom: 1px solid var(--line); }
.hero h1, .home-hero-copy h1 { color: var(--text); font-size: clamp(2.7rem, 6vw, 5.6rem); line-height: 1.01; }
.home-hero { min-height: 0; text-align: left; grid-template-columns: minmax(0, 840px); justify-content: start; }
.home-hero-copy h1 { margin-left: 0; }
.home-hero-copy p { margin-left: 0; margin-right: 0; }
.home-hero-copy .hero-actions { justify-content: flex-start; }
.hero p, .content-band p, .policy-card p { color: var(--muted); }
.eyebrow { color: var(--green); letter-spacing: 0.08em; }
.hero-panel, .rank-panel, .policy-card, .control-panel, .compare-tray,
.city-card, .metric-card, .roadmap-card, .content-card, .side-panel,
.index-section, .content-band, .compare-table-wrap, .featured-city-card, .home-paths {
  border: 0;
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
}
.hero-panel, .rank-panel { align-content: start; padding: 14px 0; border-top: 2px solid var(--green); border-bottom: 1px solid var(--line); }
.rank-panel strong, .hero-panel strong { color: var(--text); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.button { border-radius: 3px; background: transparent; color: var(--text); font-weight: 700; }
.button.primary, .button.active { border-color: var(--green); background: var(--green); color: #fffdf8; }
.button:hover { border-color: var(--green); background: var(--surface-2); color: var(--text); }
.button.primary:hover, .button.active:hover { background: #31553a; color: #fffdf8; }
.home-feature, .home-paths, .index-section, .young-grad-panel, .map-panel { margin-top: 28px; }
.featured-city-card { grid-template-columns: minmax(0, 1fr) minmax(230px, 0.42fr); padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.featured-city-card h2 { color: var(--text); }
.featured-stats div { border-color: var(--line); }
.featured-stats dt, .city-card dt { color: var(--muted); }
.home-paths { gap: 0 24px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.index-section { padding: 16px 0; border-top: 1px solid var(--line); }
.city-grid, .section-grid, .link-grid { gap: 0 18px; }
.metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 18px; margin: 18px 0 28px; border-top: 2px solid var(--green); border-bottom: 1px solid var(--line); }
.metric-card { min-width: 0; padding: 14px 6px 16px; border-bottom: 1px solid var(--line); }
.metric-card strong { color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 400; }
.metric-card.verified, .metric-card.derived, .metric-card.next, .metric-card.queued { border-color: var(--line); }
.metric-card p { color: var(--muted); }
.city-card { padding: 14px 8px; border-bottom: 1px solid var(--line); }
.city-card h3 { min-height: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.city-card-head span, .tray-items span, .tray-items a, .roadmap-card span { min-height: 0; border: 0; border-radius: 0; padding: 2px 0; background: transparent; color: var(--muted); }
.article-layout { gap: 26px; margin: 28px 0; }
.content-card, .side-panel { padding: 18px 0; border-top: 1px solid var(--line); }
.side-panel { border-top: 2px solid var(--gold); }
.content-card h2, .side-panel h2, .index-section h2 { color: var(--text); }
.section-grid > *, .roadmap-card, .index-link { border-radius: 0; box-shadow: none; }
.roadmap-card { padding: 14px 0; border-top: 1px solid var(--line); }
.index-link { padding: 12px 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.index-link strong { color: var(--text); }
.score-pill { border: 0; border-bottom: 1px solid var(--gold); border-radius: 0; background: transparent; color: var(--text); padding: 5px 0; }
.control-panel, .compare-tray, .content-band { padding: 16px 0; border-top: 1px solid var(--line); }
.policy-card { padding: 24px 0; }
.policy-card h1, .policy-card h2 { color: var(--text); }
.city-map { border-radius: 2px; border-color: var(--line); background-color: var(--surface-2); }
.map-dot { border-color: var(--surface); box-shadow: 0 0 0 1px var(--surface); }
.map-dot span { border-radius: 2px; background: var(--surface); color: var(--text); }
.footer { border-top: 1px solid var(--line); }
.footer a { color: var(--green); }
@media (max-width: 900px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .page-shell { width: calc(100vw - 28px); }
  .hero h1, .home-hero-copy h1 { font-size: clamp(2.45rem, 11vw, 4rem); }
  .metrics-grid { gap: 0 12px; }
}

@media screen and (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111512;
    --surface: #181d19;
    --surface-2: #202721;
    --surface-3: #2a332c;
    --text: #edf2ec;
    --muted: #a9b4a9;
    --line: #384239;
    --gold: #d7ad3f;
    --gold-2: #f0d36e;
    --green: #8fc08a;
    --red: #d97862;
    --shadow: 0 18px 48px rgb(0 0 0 / 0.32);
  }
  body { background: var(--bg); color: var(--text); }
  input, select, textarea { color-scheme: dark; color: var(--text); }
}

