/* SHADEQUEST FIELD GUIDE STYLESHEET */
@font-face {
  font-family: 'Geist';
  src: url('https://musechain.io/fonts/geist/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-page: #f8f5ee;
  --bg-card: #ffffff;
  --bg-alt: #f1ecdf;
  --text-main: #1d1c1a;
  --text-muted: #645f56;
  --text-dim: #8c8577;
  --border-field: #dfd8cb;
  --border-strong: #c2b8a3;
  --sun-blaze: #e65100;
  --sun-warm: #f97316;
  --sun-glare: #fbbf24;
  --leaf-green: #2e7d32;
  --leaf-bright: #38a169;
  --leaf-bg: #e8f5e9;
  --water-blue: #0284c7;
  --water-bg: #e0f2fe;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-journal: 0 4px 14px rgba(45, 38, 25, 0.08);
  --shadow-hover: 0 8px 24px rgba(45, 38, 25, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.field-header {
  background-color: #fffdf9;
  border-bottom: 2px solid var(--border-field);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-badge .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--sun-blaze);
  background: #ffedd5;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

.logo-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.expedition-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-item {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-main);
  background-color: var(--bg-alt);
}

.nav-item.scout-badge {
  background: #e2f2e5;
  color: var(--leaf-green);
  border: 1px solid #b7dfbe;
}

.nav-item.scout-badge:hover {
  background: #ccff00;
  color: #111;
  border-color: #111;
}

/* CARDS COMMON */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-field);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-journal);
}

.section-block {
  margin: 56px 0;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--leaf-green);
  text-transform: uppercase;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 2px 0 6px 0;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 680px;
}

/* HERO */
.hero-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-field);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-journal);
  margin: 32px 0 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.hero-visual {
  position: relative;
  background-color: #f0e6d6;
  min-height: 360px;
}

.cover-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay-callout {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-field);
  font-size: 12px;
  font-weight: 700;
}

.therm-badge.hot {
  color: var(--sun-blaze);
}

.therm-badge.cool {
  color: var(--leaf-green);
}

.arrow-trans {
  color: var(--text-dim);
  font-size: 11px;
}

.hero-text {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-pill {
  background-color: var(--bg-page);
  border: 1px solid var(--border-field);
  padding: 12px 10px;
  border-radius: var(--radius-sm);
}

.stat-num {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--sun-blaze);
  line-height: 1.2;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* BUTTONS */
.btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-leaf {
  background-color: var(--leaf-green);
  color: #fff;
}
.btn-leaf:hover {
  background-color: #256628;
}

.btn-roof {
  background-color: #0284c7;
  color: #fff;
}
.btn-roof:hover {
  background-color: #0369a1;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-main);
}
.btn-outline:hover {
  background: var(--bg-alt);
}

/* INTERACTIVE MAP & SIMULATOR */
.interactive-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.1fr;
  gap: 20px;
}

.map-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.map-hud {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-field);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.ambient-dot { background-color: var(--sun-warm); }
.sun-dot { background-color: var(--sun-glare); }

#city-map-svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background-color: #fcf9f2;
  border: 1px solid var(--border-field);
  cursor: crosshair;
}

.clickable-surface {
  cursor: pointer;
  transition: opacity 0.2s, stroke-width 0.2s;
}

.clickable-surface:hover {
  stroke: #ff9800 !important;
  stroke-width: 2.5px !important;
}

.route-poly {
  cursor: pointer;
  transition: opacity 0.3s, stroke-width 0.3s;
}

.route-poly.active-path {
  opacity: 1 !important;
  stroke-width: 8px !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.pulsing-tree {
  animation: treePop 0.4s ease-out;
}

@keyframes treePop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.hidden {
  display: none !important;
}

.map-legend {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  align-items: center;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.color-box {
  width: 14px;
  height: 10px;
  border-radius: 2px;
}

.route-hot { background-color: #e03e11; }
.route-cool { background-color: #1f8b4c; }
.route-mid { background-color: #d97706; }

.legend-item.tip {
  margin-left: auto;
  font-weight: 600;
  color: var(--leaf-green);
}

/* SIDEBAR METRICS */
.sidebar-diagnostics {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.diag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.diag-header h3 {
  font-size: 16px;
  font-weight: 800;
}

.pill-badge {
  font-size: 11px;
  font-weight: 700;
  background-color: var(--leaf-bg);
  color: var(--leaf-green);
  padding: 3px 8px;
  border-radius: 12px;
}

.route-selector-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.route-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-field);
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.route-btn:hover {
  background: var(--bg-alt);
}

.route-btn.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.gauge-box {
  background-color: var(--bg-page);
  border: 1px solid var(--border-field);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}

.gauge-bar-bg {
  height: 10px;
  background-color: #e2dbce;
  border-radius: 5px;
  overflow: hidden;
}

.gauge-bar-fill {
  height: 100%;
  transition: width 0.4s ease, background-color 0.4s ease;
}

.gauge-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
}

.metric-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-field);
  padding-top: 12px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.metric-key {
  color: var(--text-muted);
}

.metric-val {
  font-weight: 700;
  color: var(--text-main);
}

.inspector-box {
  background-color: #fffdf5;
  border: 1.5px solid #e6d3a3;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-top: auto;
}

.inspector-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #b45309;
}

.inspector-box h4 {
  font-size: 14px;
  font-weight: 800;
  margin: 3px 0 8px 0;
}

.inspect-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 8px;
}

.inspect-data-grid .lbl {
  color: var(--text-muted);
  display: block;
}

.inspect-notes-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* SURFACE SHOWDOWN */
.showdown-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.surface-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-field);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-journal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.surface-card.best-surface {
  border: 2px solid var(--leaf-green);
}

.surface-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  text-align: center;
}

.hot-surface { background: #fee2e2; color: #b91c1c; }
.mid-surface { background: #fef3c7; color: #b45309; }
.cool-surface { background: #dcfce7; color: #15803d; }
.champion-surface { background: #ccff00; color: #111; }

.surface-art {
  height: 90px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 8px;
}

.asphalt-art { background: #373330; }
.concrete-art { background: #c5beb4; }
.grass-art { background: #68aa4a; }
.shade-art { background: #235221; }

.sim-label {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.35);
  padding: 2px 6px;
  border-radius: 2px;
}

.sim-heat-waves {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(239, 68, 68, 0.15) 10px, rgba(239, 68, 68, 0.15) 20px);
}

.dappled-light {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.4) 0%, transparent 40%),
              radial-gradient(circle at 70% 70%, rgba(255,255,255,0.3) 0%, transparent 35%);
}

.surface-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.temp-readout {
  margin-bottom: 12px;
}

.temp-readout .val {
  display: block;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-main);
}

.temp-readout .sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.spec-table {
  border-top: 1px solid var(--border-field);
  border-bottom: 1px solid var(--border-field);
  padding: 8px 0;
  margin-bottom: 12px;
  font-size: 11px;
}

.spec-cell {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.spec-cell span { color: var(--text-muted); }

.surface-body .desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: auto;
}

.unit-toggle-group {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.unit-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border: none;
  background: var(--bg-card);
  cursor: pointer;
}

.unit-btn.active {
  background: var(--text-main);
  color: #fff;
}

/* BASICS GRID */
.basics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.basic-box {
  background: var(--bg-card);
  border: 1px solid var(--border-field);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-journal);
  position: relative;
}

.box-num {
  font-size: 28px;
  font-weight: 900;
  color: #dfd4c0;
  line-height: 1;
  margin-bottom: 10px;
}

.basic-box h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.basic-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FIELD NOTES */
.field-notes-grid {
  display: grid;
  grid-template-