/* Nebraska TIF Hub — mock landing (match tif-* family tokens) */

:root {
  --navy: #0f2a44;
  --navy-mid: #1a3f5f;
  --navy-soft: #243f5c;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-pale: #f7f0d8;
  --ink: #1a2332;
  --muted: #5a6577;
  --line: #d8dee6;
  --bg: #f7f8fa;
  --card: #ffffff;
  --success: #1f6b4a;
  --shadow: 0 1px 3px rgba(15, 42, 68, 0.08), 0 8px 24px rgba(15, 42, 68, 0.06);
  --radius: 12px;
  --max: 1120px;
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1.05rem;
}

a {
  color: var(--navy-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--gold);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: #fff;
}

.brand:hover {
  color: #fff;
}

.brand-title {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.78rem;
  opacity: 0.8;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--gold-light);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 2.75rem 0;
}

.section-tight {
  padding: 2rem 0 2.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.4rem;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 42rem;
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(15, 42, 68, 0.96), rgba(26, 63, 95, 0.92)),
    radial-gradient(ellipse at 80% 20%, rgba(201, 162, 39, 0.22), transparent 50%);
  color: #fff;
  padding: 3.25rem 0 3.5rem;
  border-bottom: 3px solid var(--gold);
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold-pale);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  opacity: 0.92;
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* City cards */
.city-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .city-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .city-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.city-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.2rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  min-height: 100%;
}

.city-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 4px 16px rgba(15, 42, 68, 0.12);
  color: inherit;
}

.city-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.city-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}

.badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #e8f5ee;
  color: var(--success);
  border: 1px solid rgba(31, 107, 74, 0.25);
}

.city-role {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.city-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.city-stat {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.city-cta {
  margin-top: auto;
  padding-top: 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-mid);
}

.city-card:hover .city-cta {
  color: var(--gold);
}

/* Placeholder / expandability */
.placeholder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .placeholder-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.placeholder-card {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  padding: 1.35rem 1.2rem;
  color: var(--muted);
  text-align: center;
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  user-select: none;
  pointer-events: none;
}

.placeholder-card strong {
  color: var(--navy-soft);
  font-size: 1.05rem;
}

.placeholder-card span {
  font-size: 0.88rem;
}

/* About / sources */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
}

.panel p {
  margin: 0 0 0.85rem;
}

.panel p:last-child {
  margin-bottom: 0;
}

.panel ul {
  margin: 0.4rem 0 0.85rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.panel li {
  margin-bottom: 0.35rem;
}

.disclaimer {
  font-size: 0.92rem;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding-left: 0.9rem;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.75rem 0 2rem;
  margin-top: 0.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-inner strong {
  color: #fff;
}

.footer-note {
  font-size: 0.88rem;
  opacity: 0.85;
  max-width: 28rem;
  margin: 0.35rem 0 0;
}

.footer-meta {
  font-size: 0.82rem;
  opacity: 0.7;
  margin: 0;
}

@media (max-width: 639px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }
}

/* Production additions: metrics, soon cards, howto, states */

.section-title-spaced {
  margin-top: 2.5rem;
}

.metrics {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.metric {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.metric-label {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric-value {
  flex: 1 1 auto;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: visible;
}

.city-updated {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.city-card-soon {
  border-style: dashed;
  border-width: 2px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  opacity: 0.92;
}

.city-card-soon:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.badge-soon {
  background: var(--gold-pale);
  color: var(--navy);
  border-color: rgba(201, 162, 39, 0.4);
}

.city-grid-soon {
  margin-bottom: 0.5rem;
}

@media (min-width: 960px) {
  .city-grid-soon {
    grid-template-columns: repeat(3, 1fr);
  }
}

.howto-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink);
}

.howto-list li {
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.howto-list li strong {
  color: var(--navy);
}

.loading-msg,
.error-msg {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
}

.error-msg {
  border-color: rgba(180, 60, 60, 0.35);
  color: #8a2a2a;
}
