﻿:root {
  --blue: #173783;
  --blue2: #0f2247;
  --orange: #db6e2d;
  --orange-soft: rgba(219, 110, 45, 0.18);
  --bg: #0b1220;
  --card: #121a2b;
  --line: rgba(255,255,255,0.10);
  --text: #e8eefc;
  --muted: #9fb0d1;
  --accent: #6ea8ff;
  --good: #62d394;
  --page-max: 460px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(219,110,45,0.12), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(110,168,255,0.12), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hiking-header,
.hiking-wrap,
.site-footer {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--page-max);
  width: min(calc(100% - 18px), var(--page-max));
}

.hiking-header {
  align-items: center;
  background: linear-gradient(180deg, #122a5a, #0f2247);
  border: 1px solid rgba(110,168,255,0.18);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 18px 14px 14px;
}

.brand-title {
  color: var(--accent);
  font-size: 23px;
  font-weight: 800;
}

.brand-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.status-pill {
  background: rgba(219,110,45,0.16);
  border: 1px solid rgba(219,110,45,0.34);
  border-radius: 999px;
  color: #ffd9c4;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.panel-lightning {
  border-left-color: #ff8c1a;
  box-shadow: 0 0 0 1px rgba(255,184,90,0.08), 0 18px 52px rgba(124,38,0,0.34);
}

.lightning-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 190, 70, 0.46);
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 236, 168, 0.22), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(255, 160, 0, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(86, 18, 18, 0.98), rgba(46, 11, 12, 0.98));
  box-shadow: 0 16px 40px rgba(123, 18, 18, 0.42);
}

.lightning-banner::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 42%);
  opacity: 0.65;
  animation: lightningPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

.lightning-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 214, 117, 0.16);
  border: 1px solid rgba(255, 214, 117, 0.40);
  color: #ffe7a8;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.lightning-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.lightning-kicker {
  color: #ffdf8d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightning-copy h2 {
  color: #fff8e8;
  font-size: 20px;
  margin-top: 4px;
}

.lightning-copy p {
  color: #fff0cf;
  font-size: 14px;
  line-height: 1.55;
  margin-top: 8px;
}

.lightning-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: #ffe7a8;
  font-size: 12px;
  font-weight: 800;
}

.lightning-meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}

@keyframes lightningPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.98); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

.hiking-wrap {
  display: grid;
  gap: 13px;
  padding: 12px 0;
}

.hero,
.panel {
  background: linear-gradient(180deg, rgba(18,26,43,0.98), rgba(13,22,38,0.98));
  border: 1px solid rgba(110,168,255,0.16);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
  padding: 15px;
}

.panel-read { border-left-color: var(--orange); }
.panel-choice { border-left-color: var(--good); }
.panel-profile { border-left-color: var(--accent); }
.panel-compare { border-left-color: var(--orange); }
.panel-data { border-left-color: var(--orange); }
.panel-table { border-left-color: var(--good); }

.hero,
.hikerscore-hero {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.hikerscore-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(219,110,45,0.18), transparent 34%),
    linear-gradient(180deg, rgba(18,26,43,0.98), rgba(13,22,38,0.98));
}

.hikerscore-main {
  min-width: 0;
}

.score-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 10px;
}

.score-badge {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(110,168,255,0.34), transparent 58%),
    rgba(110,168,255,0.12);
  border: 1px solid rgba(110,168,255,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.score-badge strong {
  color: #f4f8ff;
  font-size: 38px;
  line-height: 0.95;
}

.score-badge span {
  color: var(--good);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-copy {
  min-width: 0;
}

.hero-status {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 9px;
}

.stat-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.stat-chip {
  min-width: 0;
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.stat-chip span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-chip strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.hiker-details {
  margin-top: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 10px 12px;
}

.hiker-details summary {
  color: #9fc5ff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.hiker-details p {
  margin-top: 10px;
  font-size: 14px;
}

.tldr-card {
  min-width: 0;
  border-radius: 16px;
  padding: 13px;
  background: rgba(5,12,27,0.34);
  border: 1px solid rgba(255,255,255,0.07);
}

.kicker,
.section-title span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title-row {
  display: grid;
  gap: 3px;
  grid-template-columns: minmax(0, 1fr);
}

.section-title-row em {
  color: #ffd9c4;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(22px, 7vw, 32px);
  line-height: 1.12;
  margin-top: 8px;
}

h2 {
  font-size: 18px;
  margin-top: 3px;
}

p {
  color: #dce6f7;
  font-size: 16px;
  line-height: 1.58;
  margin-top: 14px;
}

.meta {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
  padding-top: 10px;
}

ul {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

li {
  border-left: 3px solid var(--orange);
  color: #dce6f7;
  line-height: 1.4;
  padding-left: 10px;
}

.trail-grid,
.diagnostic-grid,
.comparison-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.mini-card,
.metric-card,
.comparison-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.028));
  border: 1px solid rgba(110,168,255,0.13);
  border-top: 2px solid var(--orange);
  border-radius: 12px;
  padding: 12px;
}

.mini-card:nth-child(even),
.metric-card:nth-child(even),
.comparison-card:nth-child(even) {
  border-top-color: var(--accent);
}

.mini-card strong,
.mini-card span,
.metric-card span,
.metric-card strong,
.comparison-card strong,
.comparison-card span {
  display: block;
}

.mini-card strong,
.comparison-card strong {
  color: var(--good);
  margin-bottom: 5px;
}

.mini-card span,
.comparison-card span,
.metric-card p,
td span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.metric-card strong {
  font-size: 25px;
  margin: 5px 0;
}

.station-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.station-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(110,168,255,0.10), rgba(255,255,255,0.035));
  border: 1px solid rgba(110,168,255,0.16);
  border-top: 2px solid var(--good);
  color: inherit;
  text-decoration: none;
}

.station-card:nth-child(3n + 2) {
  border-top-color: var(--accent);
}

.station-card:nth-child(3n) {
  border-top-color: var(--orange);
}

.station-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.station-card-top strong,
.station-card-top span,
.station-feel span,
.station-feel strong,
.station-metrics span,
.station-metrics b {
  display: block;
}

.station-card-top strong {
  color: #f4f8ff;
  font-size: 16px;
}

.station-card-top span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}

.station-card-top .station-elevation {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(110,168,255,0.13);
  border: 1px solid rgba(110,168,255,0.24);
  color: #9fc5ff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.station-temp {
  min-width: 58px;
  border-radius: 13px;
  padding: 9px 10px;
  background: rgba(98,211,148,0.10);
  border: 1px solid rgba(98,211,148,0.22);
  color: #f7fbff;
  font-size: 25px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.station-feel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(5,12,27,0.30);
  border: 1px solid rgba(255,255,255,0.07);
}

.station-feel span {
  color: var(--good);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.station-feel strong {
  color: #dce6f7;
  font-size: 13px;
  text-align: right;
}

.station-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.station-metrics span {
  min-width: 0;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
  color: #dce6f7;
  font-size: 12px;
  line-height: 1.25;
}

.station-metrics b {
  color: #8fbaff;
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.profile-intro {
  color: #b8c8e7;
  font-size: 14px;
  line-height: 1.48;
  margin-top: 8px;
}

.profile-art {
  border-radius: 16px;
  margin-top: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.profile-art svg {
  display: block;
  min-width: 920px;
  width: max(100%, 920px);
}

.profile-bg {
  fill: #0b1424;
  stroke: rgba(110,168,255,0.20);
  stroke-width: 1.5;
}

.profile-area {
  fill: url(#profileFill);
  opacity: 0.96;
}

.profile-ridge {
  fill: none;
  stroke: rgba(255,255,255,0.92);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.profile-forest {
  fill: rgba(25, 58, 35, 0.62);
}

.profile-axis,
.profile-tick,
.profile-stem {
  stroke: rgba(232,238,252,0.72);
  stroke-width: 1.5;
}

.profile-stem {
  stroke-dasharray: 7 7;
}

.profile-axis-title,
.profile-tick-label,
.profile-elev,
.profile-bottom-name,
.profile-label,
.profile-bottom-temp {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.profile-axis-title {
  fill: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.profile-tick-label {
  fill: #dce8ff;
  font-size: 15px;
}

.profile-label {
  fill: #ffffff;
  font-size: 15px;
  font-weight: 850;
}

.profile-elev {
  fill: #9fc5ff;
  font-size: 14px;
}

.profile-dot {
  fill: #f7fbff;
  stroke: #6ea8ff;
  stroke-width: 5;
}

.profile-base-dot {
  fill: #ffffff;
}

.profile-bottom-name {
  fill: #ffffff;
  font-size: 12px;
}

.profile-bottom-temp {
  fill: #8fbaff;
  font-size: 17px;
  font-weight: 850;
}

.table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 820px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.nowrap {
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

a {
  color: #9fc5ff;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  margin-top: 18px;
  padding-bottom: 24px;
}

.footer-inner {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  display: grid;
  gap: 14px;
  padding: 16px 14px;
}

.footer-logo {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}

.footer-tagline,
.footer-meta,
.footer-bottom {
  font-size: 13px;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer-links a {
  color: #d8e7ff;
  font-size: 13px;
}

.footer-disclaimer {
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

@media (min-width: 740px) {
  :root { --page-max: 760px; }
  .hero,
  .hikerscore-hero { grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.85fr); }
  .section-title-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .section-title-row span { grid-column: 1 / -1; }
  .section-title-row em { justify-self: end; }
  .trail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trail-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .diagnostic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .comparison-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .station-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile containment pass: keep wide data views inside their own scrollers. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.hiking-header,
.hiking-wrap,
.site-footer,
.hero,
.hikerscore-hero,
.panel,
.mini-card,
.metric-card,
.comparison-card,
.station-card,
.profile-art,
.table-wrap {
  min-width: 0;
  max-width: 100%;
}

.hiking-header > div:first-child,
.hero > *,
.hikerscore-hero > *,
.panel > *,
.trail-grid > *,
.diagnostic-grid > *,
.comparison-grid > *,
.station-grid > * {
  min-width: 0;
}

.brand-title,
.brand-sub,
.status-pill,
h1,
h2,
p,
li,
td,
.mini-card,
.metric-card,
.comparison-card,
.station-card {
  overflow-wrap: anywhere;
}

.brand-title {
  line-height: 1.16;
}

.brand-sub {
  line-height: 1.3;
}

.status-pill {
  max-width: 48%;
  text-align: center;
  white-space: normal;
}

.hero,
.hikerscore-hero,
.panel {
  overflow: hidden;
}

.profile-art,
.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 520px) {
  .hiking-header,
  .hiking-wrap,
  .site-footer {
    width: calc(100% - 20px);
  }

  .hiking-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 18px 14px 15px;
  }

  .brand-title {
    font-size: clamp(26px, 10vw, 34px);
  }

  .brand-sub {
    font-size: 15px;
  }

  .status-pill {
    align-self: flex-start;
    max-width: 100%;
  }

  .hero,
  .hikerscore-hero,
  .panel {
    padding: 14px 13px;
  }

  .score-row {
    grid-template-columns: 1fr;
  }

  .score-badge {
    width: 88px;
    height: 88px;
  }

  .stat-chip-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lightning-banner {
    grid-template-columns: 1fr;
  }

  .lightning-mark {
    width: 48px;
    height: 48px;
  }

  h1 {
    font-size: clamp(24px, 9vw, 31px);
    line-height: 1.16;
  }

  p,
  li {
    font-size: 15px;
  }

  .profile-art svg {
    min-width: 760px;
    width: 760px;
  }

  table {
    min-width: 720px;
  }
}
