@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;600;700&family=Spectral:wght@400;500;600&display=swap');

:root {
  --bg: #f5efe6;
  --surface: #fff7ee;
  --surface-alt: #efe6d9;
  --text: #1b1a16;
  --muted: #5f5a50;
  --accent: #0f766e;
  --accent-2: #b45309;
  --accent-3: #8ed4cc;
  --border: rgba(27, 26, 22, 0.16);
  --shadow: 0 24px 60px rgba(37, 31, 20, 0.18);
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Spectral", serif;
}

body {
  background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 55%),
    linear-gradient(180deg, #f5efe6 0%, #fff7ee 48%, #efe6d9 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  z-index: 0;
  opacity: 0.45;
}

body::before {
  width: 240px;
  height: 240px;
  background: rgba(180, 83, 9, 0.16);
  top: 120px;
  right: 10%;
}

body::after {
  width: 180px;
  height: 180px;
  background: rgba(15, 118, 110, 0.18);
  bottom: 120px;
  left: 8%;
}

.hero-art {
  position: relative;
  height: 300px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(15, 118, 110, 0.14), rgba(180, 83, 9, 0.18));
  border: 1px solid rgba(27, 26, 22, 0.18);
  overflow: hidden;
}

.hero-art .tile {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  box-shadow: 0 18px 36px rgba(37, 31, 20, 0.15);
}

.hero-art .tile.one { top: 40px; left: 30px; }
.hero-art .tile.two { bottom: 50px; right: 30px; }

.scoring-toggle {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}

.toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: #d7d0c4;
  border-radius: 999px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle span {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.toggle input:checked + span {
  transform: translateX(24px);
  background: var(--accent);
}

.scoring-panel {
  display: none;
}

body.scoring-on .scoring-panel {
  display: block;
}

.slider-row {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.slider-row input[type="range"] {
  width: 100%;
}

.route-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.route-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.2rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
}

.route-card.is-top {
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(15, 118, 110, 0.25);
}

.route-card .rank {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  display: none;
}

.route-card.is-top .rank {
  display: inline-flex;
}

.score-banner {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(15, 118, 110, 0.12);
  border: 1px solid rgba(15, 118, 110, 0.2);
  margin-bottom: 1rem;
}

.justification {
  font-size: 0.9rem;
  color: var(--muted);
}

.decision-table {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.decision-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.decision-table th,
.decision-table td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.mini-links a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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