:root {
  color-scheme: light;
  --accent: #1496b4;
  --accent-dark: #0a6f89;
  --border: #d9e3ea;
  --danger: #b43b4c;
  --ink: #10263a;
  --muted: #617487;
  --night: #0b1f33;
  --night-soft: #123b5d;
  --sky: #eef6fa;
  --sun: #f3a83b;
  --surface: #ffffff;
  --shadow: 0 18px 50px rgb(24 55 79 / 0.1);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, Aptos, "Segoe UI", system-ui, sans-serif;
  background: #f4f7f9;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.app-shell {
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 28px 64px;
}

.login-view {
  width: min(100%, 420px);
  margin: 9vh auto 0;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.94);
  box-shadow: 0 20px 55px rgb(26 76 83 / 0.13);
  animation: enter 380ms ease-out both;
}

.weather-mark {
  position: relative;
  width: 82px;
  height: 48px;
  margin-bottom: 28px;
  overflow: hidden;
  border-bottom: 3px solid var(--accent-dark);
}

.weather-mark span {
  position: absolute;
  right: 7px;
  bottom: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sun);
}

.weather-mark i,
.weather-mark b {
  position: absolute;
  left: 0;
  display: block;
  height: 3px;
  background: var(--accent);
}

.weather-mark i {
  bottom: 13px;
  width: 54px;
}

.weather-mark b {
  bottom: 4px;
  width: 70px;
}

.eyebrow,
.reading-label,
.metric p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.04;
}

h2 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.15;
}

.intro {
  margin: 0 0 29px;
  color: var(--muted);
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 9px;
}

.login-form label {
  margin-top: 12px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  background: #fbfefe;
}

.login-form input:focus {
  outline: 3px solid rgb(13 107 125 / 0.2);
  border-color: var(--accent);
}

.form-error,
.dashboard-message {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.form-error,
.dashboard-message.is-error {
  color: var(--danger);
}

.primary-button {
  min-height: 46px;
  margin-top: 19px;
  border: 1px solid var(--accent-dark);
  border-radius: 6px;
  color: #ffffff;
  font-weight: 700;
  background: var(--accent);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.dashboard-view {
  animation: enter 380ms ease-out both;
}

.dashboard-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin: 0 -28px;
  padding: 46px 28px 112px;
  overflow: hidden;
  color: #fff;
  border: 0;
  border-radius: 0 0 32px 32px;
  background:
    radial-gradient(circle at 82% 15%, rgb(243 168 59 / 0.28), transparent 22%),
    linear-gradient(135deg, var(--night), var(--night-soft));
  box-shadow: 0 22px 70px rgb(11 31 51 / 0.2);
}

.dashboard-header h1 {
  max-width: 760px;
  margin-bottom: 12px;
  color: #fff;
  font-family: Inter, Aptos, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.dashboard-header .eyebrow,
.dashboard-header .intro {
  color: rgb(255 255 255 / 0.72);
}

.dashboard-header .intro {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.text-button {
  min-height: 38px;
  padding: 7px 10px;
  padding: 9px 14px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgb(255 255 255 / 0.1);
  backdrop-filter: blur(10px);
}

.text-button:hover,
.text-button:focus-visible {
  border-color: rgb(255 255 255 / 0.46);
  background: rgb(255 255 255 / 0.18);
}

.reading-band {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: -76px 18px 0;
  padding: 28px 32px;
  border: 1px solid rgb(255 255 255 / 0.75);
  border-radius: 24px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.reading-value {
  margin: 5px 0 0;
  color: var(--night);
  font-family: Inter, Aptos, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(4rem, 12vw, 7.8rem);
  font-weight: 760;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.reading-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #4f9e78;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 28px;
}

.metric {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.9);
}

.metric-wide {
  grid-column: span 2;
}

.metric strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.12;
}

.history-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.history-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.history-form {
  display: grid;
  grid-template-columns: auto minmax(132px, 1fr) auto minmax(132px, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.history-form label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.history-form input {
  min-width: 0;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  background: rgb(255 255 255 / 0.76);
}

.history-form input:focus {
  outline: 3px solid rgb(13 107 125 / 0.2);
  border-color: var(--accent);
}

.history-button {
  min-height: 38px;
  margin: 0;
  padding: 7px 12px;
  font-size: 0.86rem;
}

.chart-frame {
  position: relative;
  height: 360px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.9);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 24px, 560px);
    padding-top: 22px;
  }

  .login-view {
    margin-top: 4vh;
    padding: 26px 22px;
  }

  .dashboard-header,
  .reading-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .reading-meta {
    padding-bottom: 0;
    text-align: left;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-form {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
  }
}

@media (max-width: 420px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metric-wide {
    grid-column: auto;
  }

  .history-form {
    grid-template-columns: auto 1fr;
  }

  .history-button {
    grid-column: 1 / -1;
  }

  .chart-frame {
    height: 300px;
  }
}

/* Modern weather dashboard */
.site-bar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--night);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 29px;
  height: 29px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--night);
}

.brand-mark::before {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  content: "";
}

.brand-mark::after {
  position: absolute;
  right: 6px;
  bottom: 7px;
  left: 6px;
  height: 3px;
  border-radius: 99px;
  background: #5ed1e8;
  box-shadow: 0 -6px 0 rgb(255 255 255 / 0.9);
  content: "";
}

.site-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-links a {
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.site-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.dashboard-header::before,
.dashboard-header::after {
  position: absolute;
  border: 1px solid rgb(111 204 226 / 0.16);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.dashboard-header::before {
  top: -195px;
  right: -90px;
  width: 500px;
  height: 500px;
}

.dashboard-header::after {
  right: 180px;
  bottom: -310px;
  width: 640px;
  height: 430px;
}

.header-actions {
  position: relative;
  z-index: 1;
  align-items: center;
}

.station-badge {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: rgb(255 255 255 / 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 999px;
  background: rgb(0 0 0 / 0.12);
}

.station-badge .status-dot {
  background: #59d69a;
  box-shadow: 0 0 0 4px rgb(89 214 154 / 0.12);
}

.reading-primary {
  min-width: 0;
}

.reading-details {
  min-width: 235px;
  padding: 8px 0 8px 28px;
  border-left: 1px solid var(--border);
}

.reading-detail-label {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reading-time {
  margin: 0;
  color: var(--night);
  font-size: 1rem;
  font-weight: 760;
}

.reading-location {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.dashboard-message {
  margin: 18px 18px 0;
  padding: 12px 15px;
  border: 1px solid #d4e2e9;
  border-radius: 12px;
  background: #fff;
}

.dashboard-message.is-error {
  border-color: #f1c8ce;
  background: #fff5f6;
}

.metrics-section,
.history-section,
.about-section {
  scroll-margin-top: 24px;
}

.metrics-section {
  padding: 72px 18px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: end;
  gap: 34px;
}

.section-heading h2,
.history-heading h2,
.about-section h2 {
  max-width: 660px;
  color: var(--night);
  font-family: Inter, Aptos, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.section-heading > p,
.history-heading p,
.about-copy {
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow,
.reading-label,
.metric-category,
.chart-kicker {
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 28px;
}

.metric {
  position: relative;
  min-height: 150px;
  justify-content: flex-start;
  gap: 8px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgb(24 55 79 / 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric:hover {
  border-color: #bdd5e0;
  box-shadow: 0 14px 36px rgb(24 55 79 / 0.1);
  transform: translateY(-2px);
}

.metric::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 4px;
  border-radius: 0 18px 0 8px;
  background: #cddbe3;
  content: "";
}

.metric:nth-child(3n + 1)::after {
  background: var(--accent);
}

.metric:nth-child(3n + 2)::after {
  background: var(--sun);
}

.metric:nth-child(3n)::after {
  background: #3b9876;
}

.metric-featured {
  grid-column: span 2;
  color: #fff;
  border-color: var(--night-soft);
  background: linear-gradient(135deg, var(--night), #153e5e);
  box-shadow: 0 18px 42px rgb(11 31 51 / 0.18);
}

.metric-featured::after {
  display: none;
}

.metric h3 {
  max-width: 190px;
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 650;
  line-height: 1.35;
}

.metric strong {
  margin-top: auto;
  color: var(--night);
  font-family: Inter, Aptos, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 760;
  letter-spacing: -0.045em;
}

.metric-featured h3,
.metric-featured .metric-category {
  color: rgb(255 255 255 / 0.66);
}

.metric-featured strong {
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.history-section {
  margin: 86px 18px 0;
  padding: 0;
  border: 0;
}

.history-heading {
  align-items: end;
  gap: 36px;
}

.history-heading > div {
  max-width: 660px;
}

.history-form {
  grid-template-columns: auto minmax(130px, 1fr) auto minmax(130px, 1fr);
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(24 55 79 / 0.07);
}

.history-form label {
  padding-left: 4px;
}

.history-form input {
  min-height: 42px;
  border-color: #d7e1e7;
  border-radius: 10px;
  background: #f7fafb;
}

.history-button {
  grid-column: 1 / -1;
  min-height: 43px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: var(--night);
}

.history-button:hover {
  background: var(--night-soft);
}

.chart-card {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 40px rgb(24 55 79 / 0.07);
}

.chart-card + .chart-card {
  margin-top: 16px;
}

.chart-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0 2px 18px;
}

.chart-card-heading h3 {
  margin: 4px 0 0;
  color: var(--night);
  font-size: 1.15rem;
}

.chart-card-heading > span {
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  border-radius: 999px;
  background: #eef4f7;
}

.chart-frame {
  height: 370px;
  margin-top: 0;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 64px;
  margin: 86px 18px 0;
  padding: 44px;
  color: #fff;
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 15%, rgb(39 180 209 / 0.16), transparent 30%),
    var(--night);
}

.about-section h2,
.about-section .eyebrow {
  color: #fff;
}

.about-section .eyebrow {
  opacity: 0.62;
}

.about-copy {
  color: rgb(255 255 255 / 0.7);
}

.about-copy p {
  margin: 0;
}

.about-copy p + p {
  margin-top: 16px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 18px;
  padding: 30px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.location-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  margin: 22px 18px 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 32px rgb(24 55 79 / 0.055);
}

.hike-section {
  margin: 86px 18px 0;
  scroll-margin-top: 24px;
}

.hike-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  padding: 44px;
  color: #fff;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 85% 20%, rgb(243 168 59 / 0.2), transparent 24%),
    linear-gradient(135deg, #133c36, #1d5c4d);
}

.hike-hero > div {
  max-width: 740px;
}

.hike-hero .eyebrow {
  color: #a7e2cd;
}

.hike-hero h2 {
  margin: 7px 0 16px;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 770;
  letter-spacing: -0.05em;
  line-height: 1;
}

.hike-lead {
  max-width: 700px;
  margin: 0;
  color: rgb(255 255 255 / 0.72);
  line-height: 1.65;
}

.route-button {
  flex: 0 0 auto;
  padding: 12px 16px;
  color: #123c34;
  font-size: 0.84rem;
  font-weight: 800;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
}

.route-button:hover {
  background: #e9f7f1;
}

.tour-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid #cfe0d9;
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background: #fff;
  box-shadow: 0 14px 36px rgb(24 55 79 / 0.07);
}

.tour-stats > div {
  padding: 20px;
  border-right: 1px solid #e1ebe7;
}

.tour-stats > div:last-child {
  border-right: 0;
}

.tour-stats dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tour-stats dd {
  margin: 6px 0 0;
  color: #163f37;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hike-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 20px;
  margin-top: 20px;
}

.route-description,
.tour-notes,
.hike-info {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 34px rgb(24 55 79 / 0.055);
}

.route-description {
  padding: 32px;
}

.route-description > h3,
.tour-notes h3,
.hike-info h3 {
  margin: 5px 0 0;
  color: var(--night);
  font-size: 1.35rem;
}

.route-steps {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.route-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 26px;
}

.route-steps li:last-child {
  padding-bottom: 0;
}

.route-steps li::before {
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 16px;
  width: 1px;
  background: #d6e5df;
  content: "";
}

.route-steps li:last-child::before {
  display: none;
}

.route-steps li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  border-radius: 50%;
  background: #287d68;
}

.route-steps h4 {
  margin: 2px 0 6px;
  color: var(--night);
  font-size: 1rem;
}

.route-steps p,
.tour-notes p,
.hike-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tour-notes {
  overflow: hidden;
}

.tour-notes section {
  padding: 26px;
}

.tour-notes section + section {
  border-top: 1px solid #e6edf0;
}

.tour-notes h3 {
  margin-bottom: 10px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 13px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  position: absolute;
  top: 0.48em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d9b7f;
  content: "";
}

.hike-info {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 34px;
  margin-top: 20px;
  padding: 28px 32px;
}

.hike-info h3 {
  margin-bottom: 8px;
}

.hike-links {
  display: grid;
  align-content: center;
  gap: 10px;
}

.hike-links a {
  padding: 11px 13px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 770;
  border-radius: 10px;
  background: #eef6f7;
  text-decoration: none;
}

.hike-links a:hover {
  background: #e2eff1;
}

.tour-disclaimer {
  margin: 16px 4px 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.location-copy {
  padding: 8px 6px;
}

.location-copy h2 {
  margin: 5px 0 10px;
  color: var(--night);
  font-family: Inter, Aptos, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 760;
  letter-spacing: -0.04em;
}

.location-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.location-facts {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.location-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8eef2;
}

.location-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.location-facts dd {
  margin: 0;
  color: var(--night);
  font-size: 0.9rem;
  font-weight: 760;
  text-align: right;
}

.map-link {
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 780;
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.map-frame {
  min-height: 290px;
  overflow: hidden;
  border: 1px solid #dce5ea;
  border-radius: 16px;
  background: #e9f0f3;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 290px;
  border: 0;
  filter: saturate(0.78) contrast(0.96);
}

.site-footer span:first-child {
  color: var(--night);
  font-weight: 800;
}

noscript section {
  width: min(100% - 32px, 720px);
  margin: 24px auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

@media (max-width: 900px) {
  .dashboard-header {
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .section-heading,
  .about-section,
  .location-section,
  .hike-content-grid,
  .hike-info {
    grid-template-columns: 1fr;
  }

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

  .metric-featured {
    grid-column: span 2;
  }

  .history-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hike-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .tour-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tour-stats > div:nth-child(3) {
    border-right: 0;
  }

  .tour-stats > div:nth-child(n + 4) {
    border-top: 1px solid #e1ebe7;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: 100%;
    padding: 0 14px 40px;
  }

  .site-bar {
    min-height: 62px;
  }

  .site-links {
    display: none;
  }

  .dashboard-header {
    margin: 0 -14px;
    padding: 36px 20px 96px;
    border-radius: 0 0 24px 24px;
  }

  .dashboard-header h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .header-actions {
    width: 100%;
  }

  .station-badge,
  .text-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .reading-band {
    align-items: flex-start;
    flex-direction: column;
    margin: -64px 0 0;
    padding: 24px;
  }

  .reading-value {
    font-size: clamp(4.5rem, 23vw, 7rem);
  }

  .reading-details {
    width: 100%;
    min-width: 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .dashboard-message,
  .metrics-section,
  .history-section,
  .about-section,
  .location-section,
  .site-footer {
    margin-right: 0;
    margin-left: 0;
  }

  .metrics-section {
    padding: 56px 0 0;
  }

  .section-heading {
    gap: 16px;
  }

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

  .metric,
  .metric-featured {
    min-height: 142px;
    grid-column: auto;
  }

  .metric-featured {
    grid-column: 1 / -1;
  }

  .history-section {
    margin-top: 68px;
  }

  .hike-section {
    margin: 68px 0 0;
  }

  .hike-hero {
    padding: 30px 24px;
    border-radius: 20px 20px 0 0;
  }

  .route-button {
    width: 100%;
    text-align: center;
  }

  .tour-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-stats > div,
  .tour-stats > div:nth-child(3) {
    border-right: 1px solid #e1ebe7;
  }

  .tour-stats > div:nth-child(even) {
    border-right: 0;
  }

  .tour-stats > div:nth-child(n + 3) {
    border-top: 1px solid #e1ebe7;
  }

  .tour-stats > div:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .route-description {
    padding: 26px 22px;
  }

  .hike-info {
    padding: 24px;
  }

  .history-form {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .chart-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .chart-card-heading > span {
    display: none;
  }

  .chart-frame {
    height: 310px;
  }

  .about-section {
    gap: 24px;
    margin-top: 68px;
    padding: 30px 24px;
  }

  .location-section {
    gap: 20px;
    padding: 20px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 240px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 400px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metric-featured {
    grid-column: auto;
  }

  .station-badge {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
