: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:
    linear-gradient(180deg, rgb(215 173 63 / 0.12), transparent 360px),
    var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.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 {
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--gold);
  background: #201b0f;
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0;
}

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

.brand small,
.footer,
.city-card dt,
.metric-card p,
.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,
.policy-card h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.8rem);
  line-height: 0.96;
  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;
}

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

.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(3, minmax(0, 1fr));
  gap: 10px;
}

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

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

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

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

.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.next {
  border-color: rgb(215 173 63 / 0.55);
}

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

.ad-box {
  min-height: 120px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--surface-2);
  text-align: center;
  padding: 14px;
}

.ad-unit {
  display: block;
  min-height: 120px;
  margin: 18px 0;
  border-radius: 8px;
  overflow: hidden;
}

.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%;
  border-collapse: collapse;
}

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

.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,
  .control-panel,
  .content-band {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .controls,
  .city-grid,
  .metrics-grid,
  .section-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

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