.forecast-page { background: var(--navy); color: var(--cream); }
.forecast-page header { position: relative; }
.forecast-intro, .forecast-panel { width: min(1100px, 88%); margin-inline: auto; }
.forecast-intro { padding: clamp(32px, 6vw, 70px) 0 12px; }
.forecast-intro h1 { font-size: clamp(40px, 7vw, 76px); }
.forecast-intro .eyebrow { color: var(--gold); margin-bottom: 15px; }
.forecast-intro > p:last-child, .forecast-status, .forecast-method p { color: #c4cdd6; }
.forecast-panel { padding-bottom: 55px; }
.forecast-status { font-size: .9rem; }
.forecast-groups { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.forecast-groups a {
  color: var(--cream); border: 1px solid #788da2; padding: 6px 13px;
  border-radius: 4px; text-decoration: none; font-size: .9rem;
}
.forecast-groups [aria-current] { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.forecast-heading { font-size: clamp(32px, 5vw, 52px); margin: 0 0 16px; }
.tonight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.night { background: #142538; border: 1px solid #415971; padding: clamp(14px, 3vw, 24px); border-radius: 6px; }
.night h3 { font: 700 1.16rem 'DM Sans', sans-serif; letter-spacing: 0; line-height: 1.3; margin-bottom: 13px; }
.grade-pair { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.grade-item { display: grid; justify-items: start; gap: 2px; }
.grade-label { color: #d1dbe5; font-size: .8rem; font-weight: 400; }
.grade { display: inline-block; border-radius: 4px; padding: 1px 8px; font-size: .85rem; font-weight: 700; background: #354557; color: #f5f3ed; }
.sky-excellent { background: #2149a6; color: white; }
.sky-good { background: #a8d4ff; color: #0b2946; }
.sky-mixed, .sunset-maybe { background: #f2d68d; color: #382600; }
.sky-poor { background: #763d4b; color: #fff1f3; }
.sunset-hot { background: #f69b41; color: #381800; }
.sunset-good { background: #ffd0a1; color: #452400; }
.observer-note { margin: 13px 0 8px; }
.sunset-time { margin: 0 0 8px; color: #c4cdd6; font-size: .87rem; }
.night-details, .forecast-method { border-bottom: 0; }
.night-details summary, .forecast-method summary { list-style: revert; color: var(--gold); font-size: .88rem; }
.night-details summary::-webkit-details-marker, .forecast-method summary::-webkit-details-marker { display: inline; }
.night-details dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; font-size: .86rem; }
.night-details dt { color: #c4cdd6; }
.night-details dd { margin: 0; }
.upcoming { margin-top: 35px; }
.upcoming-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .9rem; }
.upcoming-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.upcoming-table th, .upcoming-table td { padding: 8px; text-align: left; border-bottom: 1px solid #415971; overflow-wrap: anywhere; }
.upcoming-table th:first-child { width: 26%; }
.upcoming-table .grade-pair { gap: 4px 10px; }
.location-control { display: inline-block; margin-bottom: 8px; }
.location-control[hidden] { display: none; }
.location-control select, .forecast-retry {
  min-height: 42px; padding: 5px 9px; font: inherit; color: var(--cream);
  background: #182b3e; border: 1px solid #788da2; border-radius: 4px;
}
.location-control select:focus-visible, .forecast-retry:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.forecast-method { margin-top: 24px; }
.forecast-page footer { border-top: 1px solid #ffffff25; }
@media (max-width: 580px) {
  .tonight-grid { grid-template-columns: 1fr; }
  .upcoming-table th, .upcoming-table td { padding: 6px 4px; font-size: .8rem; }
  .upcoming-table .grade { font-size: .76rem; padding-inline: 4px; }
}

.forecast-intro h1, .forecast-heading {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.forecast-intro h1 { font-size: clamp(36px, 6vw, 64px); }
.forecast-heading { font-size: clamp(27px, 4vw, 43px); }
.upcoming-note { margin: 5px 0 0; color: #c4cdd6; font-size: .85rem; }

.forecast-controls select,.forecast-controls button,.night,.overview li,
.location-control select,.forecast-retry { background:var(--panel); border-color:var(--border); }
.forecast-intro>p:last-child,#status,.forecast-method p,.forecast-status,
.grade-label,.observer-note+.sunset-time,.night-details dt,.upcoming-note { color:var(--muted); }
.upcoming-table th,.upcoming-table td { border-color:var(--border); }
