:root {
  --ink: #eef6ff;
  --muted: #8ea1b7;
  --panel: #0c1827;
  --panel2: #101f31;
  --line: rgba(168, 193, 218, 0.14);
  --cyan: #57d4dc;
  --green: #78d7a5;
  --amber: #f1c46b;
  --red: #ef7b7e;
  --navy: #07111f;
  --serif: #9de4db;
}

/* Forecast view routing, current score and signed-in location tools */
.forecast-subnav a.active {
  background: rgba(116, 215, 207, 0.15);
  color: var(--accent);
}
.recent-locations {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.recent-locations[hidden] {
  display: none !important;
}
.recent-locations > span {
  color: var(--muted);
  font-size: 11px;
}
.recent-locations > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.recent-locations button {
  border: 1px solid #29445a;
  border-radius: 999px;
  background: transparent;
  color: #9fb4c3;
  padding: 5px 9px;
  font:
    600 11px "DM Sans",
    sans-serif;
  cursor: pointer;
}
.recent-locations button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.best-score-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(116, 215, 207, 0.18);
  border-radius: 12px;
  background: rgba(116, 215, 207, 0.06);
}
.best-score-summary span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.best-score-summary strong {
  grid-row: 1/3;
  grid-column: 2;
  font: 800 30px/1 Manrope;
  color: var(--accent);
}
.best-score-summary strong small {
  font-size: 12px;
  color: var(--muted);
}
.best-score-summary b {
  font: 600 13px Manrope;
  color: #d6e5ed;
}
.daylight-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.score-ring.daylight {
  background: rgba(240, 193, 95, 0.09);
}
.score-ring.daylight strong {
  font-size: 38px;
  color: #f1c56a;
}
.best-hour-label {
  white-space: nowrap;
}
.daylight-hour {
  opacity: 0.62;
}
.sun-value {
  color: #f1c56a !important;
}
.daylight-bar {
  height: 10% !important;
  background: linear-gradient(#f1c56a, #b67537) !important;
}
.save-location-button.saved {
  border-color: rgba(107, 211, 168, 0.55);
  color: #8bdcab;
  background: rgba(107, 211, 168, 0.08);
}
body[data-forecast-view="map"] .events-home-section,
body[data-forecast-view="map"] .forecast-shell,
body[data-forecast-view="map"] .target-section,
body[data-forecast-view="map"] .best-targets-section,
body[data-forecast-view="map"] .split-section,
body[data-forecast-view="map"] .moon-calendar-section,
body[data-forecast-view="map"] #week {
  display: none;
}
body[data-forecast-view="moon"] .events-home-section,
body[data-forecast-view="moon"] .forecast-shell,
body[data-forecast-view="moon"] .weather-map-section,
body[data-forecast-view="moon"] .target-section,
body[data-forecast-view="moon"] .best-targets-section,
body[data-forecast-view="moon"] #week {
  display: none;
}
body[data-forecast-view="targets"] .events-home-section,
body[data-forecast-view="targets"] .forecast-shell,
body[data-forecast-view="targets"] .weather-map-section,
body[data-forecast-view="targets"] .split-section,
body[data-forecast-view="targets"] .moon-calendar-section,
body[data-forecast-view="targets"] #week {
  display: none;
}
body[data-forecast-view="tonight"] .weather-map-section,
body[data-forecast-view="tonight"] .target-section,
body[data-forecast-view="tonight"] .best-targets-section,
body[data-forecast-view="tonight"] .moon-card,
body[data-forecast-view="tonight"] .moon-calendar-section {
  display: none;
}
body[data-forecast-view="tonight"] .split-section {
  grid-template-columns: 1fr;
}
.stars {
  animation: star-drift 70s ease-in-out infinite alternate;
  will-change: transform;
}
.stars i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(238, 253, 255, var(--opacity));
  box-shadow: 0 0 var(--halo) rgba(107, 226, 239, 0.8);
  animation: star-twinkle var(--duration) ease-in-out var(--delay) infinite
    alternate;
}
@keyframes star-drift {
  to {
    transform: translate3d(24px, -18px, 0);
  }
}
@keyframes star-twinkle {
  from {
    opacity: 0.28;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1.22);
  }
}
@keyframes nebula-drift {
  to {
    transform: translate3d(55px, -30px, 0) scale(1.16);
  }
}
.glow {
  animation: nebula-drift 25s ease-in-out infinite alternate;
}
.glow-two {
  animation-delay: -11s;
}
.stars-paused .stars,
.stars-paused .stars i,
.stars-paused .glow {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
  .stars,
  .stars i,
  .glow {
    animation: none;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    circle at 50% -10%,
    #173252 0,
    #0a1727 38%,
    #07111f 72%
  );
}
.stars {
  position: absolute;
  inset: -3%;
  overflow: hidden;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
}
.glow-one {
  width: 380px;
  height: 380px;
  background: #22a1bd;
  top: 5%;
  left: -180px;
}
.glow-two {
  width: 460px;
  height: 460px;
  background: #405fc9;
  top: 28%;
  right: -280px;
}
.site-header {
  min-height: 132px;
  max-width: 1240px;
  margin: auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  width: 270px;
  height: 124px;
  text-decoration: none;
  overflow: hidden;
}
.brand img {
  display: block;
  width: auto;
  height: 112px;
  max-width: 270px;
  object-fit: contain;
}
.star-motion-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(123, 211, 220, 0.34);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(7, 17, 31, 0.9);
  color: #cfeff2;
  font: 600 12px DM Sans;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}
.public-footer {
  max-width: 1160px;
  margin: 70px auto 0;
  padding: 30px 28px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.public-footer > div {
  display: flex;
  align-items: center;
  gap: 18px;
}
.public-footer img {
  width: 160px;
  height: auto;
}
.public-footer p {
  max-width: 560px;
  margin: 0;
}
.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 22px 0;
}
.public-footer nav a + a::before {
  content: "·";
  margin: 0 14px;
  color: #52677b;
}
.public-footer a {
  color: #c8d8e8;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.public-footer a:hover {
  color: var(--cyan);
}
.site-header nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}
.site-header .header-actions {
  justify-self: end;
  gap: 7px;
}

@media (max-width: 1280px) and (min-width: 1101px) {
  .site-header {
    padding-left: 20px;
    padding-right: 20px;
  }
  .site-header nav {
    gap: 12px;
  }
  .site-header nav a {
    font-size: 13px;
  }
  .header-actions .create-account-link,
  .header-actions .account-link {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
  }
}
.site-header nav a {
  color: #879bb2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.site-header nav a:hover,
.site-header nav a.active {
  color: #f2fbff;
}
.site-header nav a {
  white-space: nowrap;
}
.site-header nav a.requires-account::after {
  content: " · Sign in";
  font-size: 9px;
  color: #60758c;
  white-space: nowrap;
}
.site-header nav a.requires-account:hover::after {
  color: #72d3d7;
}
.forecast-subnav {
  display: none;
  position: sticky;
  top: 10px;
  z-index: 700;
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 7px;
  gap: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 22, 37, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}
.location-selected .forecast-subnav {
  display: flex;
}
.forecast-subnav a {
  flex: 1;
  min-width: max-content;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.forecast-subnav a:hover,
.forecast-subnav a:focus {
  background: rgba(116, 215, 207, 0.12);
  color: var(--accent);
}
.registered-user .hero-intro,
.registered-user .location-start,
.registered-user .guest-home-section,
.registered-user .guest-only-section,
.registered-user .future-section {
  display: none;
}
.registered-user .hero {
  padding-top: 34px;
  padding-bottom: 42px;
}
.registered-location-switcher {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.registered-location-switcher > label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.registered-location-switcher > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.registered-location-switcher select {
  min-width: 0;
  flex: 1;
  height: 44px;
  border: 1px solid #28435b;
  border-radius: 10px;
  background: #091827;
  color: #edf7ff;
  padding: 0 12px;
  font: 600 14px DM Sans;
}
.registered-location-switcher a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.saved-location-actions button {
  height: 44px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  padding: 0 17px;
  background: #74d7cf;
  color: #07111f;
  font: 700 13px DM Sans;
  cursor: pointer;
}
.saved-location-actions button:hover {
  background: #9ce7e1;
}
.saved-location-actions button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.saved-location-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}
.outline-button {
  border: 1px solid #2a445d;
  color: #c8d8e8;
  background: rgba(10, 25, 40, 0.5);
  padding: 10px 16px;
  border-radius: 8px;
  font: 600 13px DM Sans;
  cursor: pointer;
}
.hero {
  max-width: 950px;
  margin: 0 auto;
  padding: 92px 28px 62px;
  text-align: center;
}
.eyebrow,
.section-label {
  color: #72d3d7;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
}
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.eyebrow span {
  height: 1px;
  width: 28px;
  background: #72d3d7;
}
.hero h1 {
  font:
    800 clamp(42px, 7vw, 76px)/1.02 Manrope,
    sans-serif;
  letter-spacing: -0.055em;
  margin: 22px 0 20px;
}
.hero h1 em {
  font-style: normal;
  color: #a6e4dc;
}
.hero > p {
  max-width: 630px;
  margin: 0 auto;
  color: #9caec0;
  font-size: 17px;
}
.search-card {
  max-width: 730px;
  margin: 42px auto 0;
  padding: 18px 20px 14px;
  background: rgba(15, 31, 49, 0.86);
  border: 1px solid rgba(141, 187, 210, 0.2);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  border-radius: 14px;
  text-align: left;
  backdrop-filter: blur(12px);
}
.search-card label {
  display: block;
  color: #aebed0;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.search-row {
  display: flex;
  gap: 10px;
}
.search-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #091523;
  border: 1px solid #21384e;
  border-radius: 9px;
  padding: 0 14px;
}
.search-input span {
  color: #69cfd8;
  font-size: 20px;
}
.search-input input {
  width: 100%;
  height: 46px;
  border: 0;
  outline: 0;
  color: #f1f6fb;
  background: none;
  font: 500 15px DM Sans;
}
.search-row button {
  border: 0;
  border-radius: 9px;
  padding: 0 20px;
  color: #07131f;
  background: linear-gradient(135deg, #83e1da, #66c7d9);
  font: 700 14px DM Sans;
  cursor: pointer;
}
.search-row button:hover {
  filter: brightness(1.08);
}
.location-link {
  margin: 9px 0 0 3px;
  color: #7f98ad;
  background: none;
  border: 0;
  padding: 0;
  font: 500 11px DM Sans;
  cursor: pointer;
}
.forecast-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 28px 70px;
}
.forecast-head,
.card-heading,
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.forecast-head {
  margin-bottom: 22px;
}
.forecast-head p,
.card-heading p {
  margin: 0 0 5px;
}
.forecast-head h2 {
  font: 700 25px Manrope;
  margin: 0 0 3px;
}
.forecast-head > div > p:last-child {
  color: var(--muted);
  font-size: 13px;
}
.updated {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7f94a9;
  font-size: 12px;
  margin-top: 18px;
}
.live-dot {
  width: 7px;
  height: 7px;
  background: #69d2ac;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(105, 210, 172, 0.1);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.65fr;
  gap: 18px;
}
.score-card,
.window-card,
.hourly-card,
.moon-card,
.dark-card {
  background: linear-gradient(
    145deg,
    rgba(16, 33, 51, 0.94),
    rgba(10, 24, 39, 0.94)
  );
  border: 1px solid var(--line);
  border-radius: 15px;
}
.score-card {
  padding: 28px;
  text-align: center;
}
.score-card .section-label {
  text-align: left;
  margin: 0;
}
.score-ring {
  --score: 0;
  display: grid;
  place-items: center;
  width: 172px;
  height: 172px;
  margin: 23px auto 17px;
  border-radius: 50%;
  background: conic-gradient(
    var(--green) calc(var(--score) * 1%),
    rgba(108, 139, 161, 0.13) 0
  );
  position: relative;
  transition: background 0.6s;
}
.score-ring:before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #0c1928;
  box-shadow: inset 0 0 30px rgba(39, 82, 102, 0.22);
}
.score-ring div {
  z-index: 1;
}
.score-ring strong {
  font: 800 52px Manrope;
  letter-spacing: -0.06em;
}
.score-ring span {
  color: #71899e;
  font-size: 12px;
}
.rating {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(115, 214, 167, 0.12);
  color: #82dcad;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.score-card > p:last-child {
  color: #8fa3b6;
  font-size: 13px;
  max-width: 275px;
  margin: 16px auto 0;
}
.window-card {
  padding: 28px;
}
.card-heading h3 {
  font: 700 21px Manrope;
  margin: 0;
}
.pill {
  padding: 6px 10px;
  border: 1px solid #284158;
  border-radius: 20px;
  color: #8da4b8;
  font-size: 11px;
}
.timeline {
  margin: 28px 0 27px;
}
.timeline-track {
  height: 8px;
  border-radius: 8px;
  background: #1a2a3c;
  position: relative;
  overflow: hidden;
}
.timeline-track:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #293847,
    #315768,
    #2d6a74,
    #315768,
    #293847
  );
}
.timeline-track span {
  position: absolute;
  top: 0;
  height: 100%;
  background: #80ded1;
  box-shadow: 0 0 15px #4ac5c4;
  border-radius: 8px;
}
.timeline-labels {
  display: flex;
  justify-content: space-between;
  color: #657d92;
  font-size: 10px;
  margin-top: 8px;
}
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.conditions-grid > div {
  padding: 15px;
  background: rgba(7, 18, 30, 0.55);
  border: 1px solid rgba(137, 175, 202, 0.1);
  border-radius: 10px;
}
.metric-icon {
  display: block;
  color: #76cfda;
  font-size: 19px;
  height: 25px;
}
.conditions-grid p {
  color: #758ba0;
  font-size: 10px;
  margin: 4px 0 2px;
}
.conditions-grid strong {
  font: 700 15px Manrope;
}
.hourly-card {
  margin-top: 18px;
  padding: 28px;
}
.legend {
  display: flex;
  gap: 15px;
  color: #71889c;
  font-size: 10px;
  margin-top: 8px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.legend .good {
  background: var(--green);
}
.legend .fair {
  background: var(--amber);
}
.legend .poor {
  background: var(--red);
}
.hourly-chart {
  height: 195px;
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-bottom: 1px solid #26394c;
  padding: 12px 4px 0;
}
.hour-col {
  min-width: 66px;
  position: relative;
}
.hour-weather {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #8ea1b7;
}
.best-window-hour {
  border-radius: 12px;
  background: rgba(131, 225, 218, 0.055);
  box-shadow: inset 0 2px 0 rgba(131, 225, 218, 0.24);
}
.peak-hour {
  background: rgba(131, 225, 218, 0.11);
  outline: 1px solid rgba(131, 225, 218, 0.42);
  padding-top: 18px;
}
.best-hour-label {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #83e1da;
}
.moon-calendar-section[hidden] {
  display: none !important;
}
.moon-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.moon-day {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(12, 25, 40, 0.72);
  padding: 12px;
  text-align: center;
}
.moon-day > span,
.moon-day > small {
  display: block;
  color: #8ea1b7;
  font-size: 11px;
}
.moon-day > strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}
.moon-day > i {
  display: block;
  width: 34px;
  height: 34px;
  margin: 10px auto;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    #d7ded8 var(--moon-light),
    #263444 var(--moon-light)
  );
  box-shadow: 0 0 12px rgba(213, 230, 223, 0.12);
}
.moon-day > b {
  display: block;
  color: #eef6ff;
}
.moon-day.excellent {
  border-color: rgba(131, 225, 218, 0.28);
}
.moon-day.bright {
  border-color: rgba(248, 184, 102, 0.2);
}
.moon-day.today {
  border: 2px solid #83e1da;
  background: linear-gradient(
    180deg,
    rgba(36, 93, 101, 0.55),
    rgba(12, 25, 40, 0.82)
  );
  box-shadow: 0 0 0 3px rgba(131, 225, 218, 0.1);
}
.moon-day.today > span {
  color: #83e1da;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.map-picker-dialog {
  width: min(860px, calc(100% - 24px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 0;
  background: #0b1929;
  color: #eef6ff;
}
.map-picker-dialog::backdrop {
  background: rgba(2, 8, 17, 0.78);
  backdrop-filter: blur(5px);
}
.map-picker-panel {
  padding: 22px;
}
.map-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.map-picker-head h2 {
  margin: 4px 0;
}
.map-picker-head p {
  color: #9bb0c2;
}
.map-picker-head > button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: white;
  font-size: 24px;
}
.map-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.map-picker-footer span {
  display: block;
  color: #8ea1b7;
  font-size: 12px;
}
.map-picker-footer button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: #83e1da;
  color: #07111f;
  font-weight: 800;
}
.map-picker-footer button:disabled {
  opacity: 0.45;
}
#location-picker-map {
  height: 430px;
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 760px) {
  .moon-calendar-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .moon-day {
    min-width: 108px;
  }
  .map-picker-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .location-choice {
    flex-wrap: wrap;
  }
}
.hour-col {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 46px;
}
.hour-col .value {
  font: 600 11px Manrope;
  margin-bottom: 5px;
  color: #a9bbca;
}
.bar {
  width: min(32px, 60%);
  min-height: 8px;
  border-radius: 5px 5px 1px 1px;
  background: linear-gradient(180deg, #75d5d4, #327d8d);
  position: relative;
}
.bar.fair {
  background: linear-gradient(#e6bd65, #886d34);
}
.bar.poor {
  background: linear-gradient(#dc7478, #71383f);
}
.hour {
  color: #60778c;
  font-size: 10px;
  margin-top: 8px;
}
.chart-loading,
.week-loading {
  margin: auto;
  color: #70869b;
  font-size: 13px;
}
.split-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.moon-card,
.dark-card {
  padding: 34px;
  min-height: 280px;
}
.moon-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}
.moon-visual {
  height: 190px;
  display: grid;
  place-items: center;
  position: relative;
}
.moon-disc {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e9e7d3, #a7abb0 60%, #636b78);
  box-shadow:
    -24px 0 0 3px #0c1928 inset,
    0 0 34px rgba(213, 230, 223, 0.16);
}
.orbit-line {
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(120, 176, 193, 0.14);
  border-radius: 50%;
}
.moon-card h2,
.dark-card h2,
.week-section h2,
.future-section h2 {
  font: 700 27px/1.2 Manrope;
  margin: 8px 0 12px;
}
.moon-copy {
  color: #879bae;
  font-size: 13px;
}
.moon-stats {
  display: flex;
  gap: 34px;
  margin-top: 23px;
}
.moon-stats div {
  display: flex;
  flex-direction: column;
}
.moon-stats span {
  color: #6e859a;
  font-size: 10px;
}
.moon-stats strong {
  font: 700 16px Manrope;
  margin-top: 2px;
}
.moon-condition-metric {
  border-color: rgba(244, 201, 111, 0.25) !important;
  background: linear-gradient(145deg, rgba(244, 201, 111, 0.08), rgba(8, 23, 38, 0.72)) !important;
}
.metric-icon.moon {
  color: #f4c96f;
  text-shadow: 0 0 16px rgba(244, 201, 111, 0.55);
}
.moon-score-impact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(244, 201, 111, 0.28);
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(244, 201, 111, 0.11), rgba(18, 38, 57, 0.82));
}
.score-card .moon-score-impact {
  grid-template-columns: auto minmax(0, 1fr);
  width: 100%;
  margin-top: 24px;
  text-align: left;
}
.moon-impact-disc {
  --moon-illumination: 50%;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(90deg, #dce2df var(--moon-illumination), #223344 var(--moon-illumination));
  box-shadow: 0 0 22px rgba(244, 220, 160, 0.28);
}
.moon-impact-copy > span,
.moon-score-comparison span {
  display: block;
  color: #b9a778;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.moon-impact-copy strong {
  display: block;
  margin-top: 3px;
  color: #fff7df;
  font: 700 15px Manrope;
}
.moon-impact-copy p {
  margin: 4px 0 0;
  color: #aebdca;
  font-size: 12px;
  line-height: 1.5;
}
.moon-score-comparison {
  min-width: 132px;
  padding-left: 16px;
  border-left: 1px solid rgba(244, 201, 111, 0.2);
  text-align: right;
}
.score-card .moon-score-comparison {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-width: 0;
  padding: 13px 0 0;
  border-top: 1px solid rgba(244, 201, 111, 0.2);
  border-left: 0;
  text-align: left;
}
.score-card .moon-score-comparison > div + div {
  padding-left: 14px;
  border-left: 1px solid rgba(244, 201, 111, 0.2);
}
.score-card .moon-score-comparison strong {
  font-size: 18px;
}
.moon-score-comparison strong {
  display: block;
  margin-top: 4px;
  color: #f4c96f;
  font: 800 22px Manrope;
}
@media (max-width: 680px) {
  .moon-score-impact {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .moon-score-comparison {
    grid-column: 1 / -1;
    padding: 12px 0 0;
    border-top: 1px solid rgba(244, 201, 111, 0.2);
    border-left: 0;
    text-align: left;
  }
}
.darkness-line {
  display: flex;
  align-items: center;
  margin-top: 52px;
}
.darkness-line > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.sunset {
  background: #efad64;
  box-shadow: 0 0 12px #efad64;
}
.sunrise {
  background: #f1c88c;
  box-shadow: 0 0 12px #f1c88c;
}
.darkness-line > div:not(.night-band) {
  min-width: 64px;
  margin: 0 9px;
}
.darkness-line .right {
  text-align: right;
}
.darkness-line small {
  display: block;
  color: #698096;
  font-size: 9px;
}
.darkness-line strong {
  font: 700 14px Manrope;
}
.night-band {
  height: 5px;
  flex: 1;
  background: linear-gradient(
    90deg,
    #a25d44,
    #436682 18%,
    #294960 50%,
    #436682 82%,
    #c79359
  );
  border-radius: 5px;
  position: relative;
}
.night-band i {
  position: absolute;
  left: 18%;
  right: 18%;
  top: -2px;
  height: 9px;
  border-radius: 5px;
  background: #70d0d0;
  box-shadow: 0 0 13px rgba(92, 216, 215, 0.6);
}
.fine-print {
  color: #667d92;
  font-size: 10px;
  margin-top: 35px;
}
.week-section {
  max-width: 1180px;
  margin: auto;
  padding: 0 28px 84px;
}
.section-intro {
  align-items: flex-end;
  margin-bottom: 24px;
}
.section-intro p {
  margin: 0;
}
.section-intro > p {
  max-width: 410px;
  color: #8095a8;
  font-size: 13px;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.day-card {
  padding: 18px 12px;
  border: 1px solid var(--line);
  background: rgba(13, 29, 45, 0.78);
  border-radius: 11px;
  text-align: center;
}
.day-card.best {
  border-color: rgba(99, 212, 193, 0.55);
  background: linear-gradient(
    180deg,
    rgba(45, 112, 112, 0.25),
    rgba(13, 29, 45, 0.9)
  );
  transform: translateY(-4px);
}
.day-card small {
  display: block;
  color: #6f879b;
  font-size: 10px;
}
.day-card h3 {
  font: 700 13px Manrope;
  margin: 3px 0 15px;
}
.day-score {
  font: 800 24px Manrope;
}
.day-card p {
  margin: 5px 0 0;
  color: #758da1;
  font-size: 10px;
}
.future-section {
  max-width: 1180px;
  margin: 0 auto 80px;
  padding: 56px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  background: linear-gradient(
    135deg,
    rgba(25, 57, 73, 0.58),
    rgba(10, 24, 40, 0.8)
  );
  border: 1px solid rgba(129, 194, 203, 0.18);
  border-radius: 18px;
}
.guest-home-section {
  max-width: 1180px;
  margin: 18px auto 64px;
  padding: 42px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  border: 1px solid rgba(129, 194, 203, 0.18);
  border-radius: 18px;
  background: rgba(8, 22, 37, 0.62);
}
.guest-home-copy h2 {
  margin: 8px 0 14px;
  font: 700 30px/1.18 Manrope;
}
.guest-home-copy > p:last-child {
  margin: 0;
  color: #91a7b9;
  font-size: 14px;
  line-height: 1.7;
}
.guest-home-points {
  display: grid;
  gap: 12px;
}
.guest-home-points article {
  padding: 16px 18px;
  border-left: 2px solid rgba(116, 215, 207, .62);
  background: rgba(116, 215, 207, .045);
}
.guest-home-points strong,
.guest-home-points span { display: block; }
.guest-home-points strong { margin-bottom: 5px; font: 700 14px Manrope; }
.guest-home-points span { color: #8299ac; font-size: 12px; line-height: 1.55; }

.events-home-section {
  max-width: 1180px;
  margin: 0 auto 34px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(210px, .55fr) minmax(0, 1.45fr);
  gap: 22px;
  border: 1px solid rgba(125, 211, 252, .18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 35, 55, .88), rgba(7, 17, 31, .94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .2);
}
.events-home-intro h2 { margin: 6px 0 8px; font: 700 clamp(20px, 2vw, 26px)/1.15 Manrope; color: #f4f8fb; }
.events-home-intro > p { color: #9bb0c1; line-height: 1.7; }
.events-home-intro .events-region { margin-top: 14px; color: #74d4d8; font-size: 13px; font-weight: 700; }
.events-home-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.events-home-list a { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 10px; min-height: 72px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.035); color: inherit; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.events-home-list a:hover { border-color: rgba(125,211,252,.45); background: rgba(125,211,252,.07); transform: translateY(-1px); }
.events-home-list img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(125,211,252,.18)); }
.events-home-list span, .events-home-list strong, .events-home-list small, .events-home-list em { display: block; }
.events-home-list small { margin-bottom: 4px; color: #74d4d8; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.events-home-list strong { color: #f4f8fb; font: 700 13px Manrope; }
.events-home-list em { margin-top: 4px; color: #8299ac; font-size: 12px; font-style: normal; }

.planning-home-section,
.equipment-home-section {
  max-width: 1180px;
  margin: 0 auto 64px;
  padding: 42px;
  border: 1px solid rgba(129, 194, 203, 0.18);
  border-radius: 18px;
  background: rgba(8, 22, 37, 0.62);
}
.planning-home-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.planning-home-copy h2,
.equipment-home-copy h2 {
  margin: 8px 0 14px;
  font: 700 30px/1.18 Manrope;
}
.planning-home-copy > p:not(.section-label),
.equipment-home-copy > p:not(.section-label) {
  margin: 0;
  color: #91a7b9;
  font-size: 14px;
  line-height: 1.7;
}
.home-primary-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}
.planning-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.planning-home-grid article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(129, 194, 203, 0.13);
  border-radius: 13px;
  background: rgba(116, 215, 207, .045);
}
.planning-home-grid article > span {
  color: #67cfd1;
  font: 800 12px Manrope;
}
.planning-home-grid strong {
  display: block;
  font: 700 14px Manrope;
}
.planning-home-grid p {
  margin: 6px 0 0;
  color: #8299ac;
  font-size: 12px;
  line-height: 1.55;
}
.equipment-home-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.equipment-home-content {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}
.equipment-frame-example {
  display: block;
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(129, 194, 203, .16);
  border-radius: 15px;
  background: #071321;
}
.equipment-frame-example img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform .2s ease, filter .2s ease;
}
.equipment-frame-example:hover img,
.equipment-frame-example:focus img {
  transform: scale(1.02);
  filter: brightness(1.08);
}
.equipment-frame-example span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(4, 12, 21, .78);
  color: #dceaf5;
  font-size: 11px;
  font-weight: 700;
}
.equipment-guide-links {
  display: grid;
  gap: 10px;
}
.equipment-guide-links a {
  padding: 16px;
  border: 1px solid rgba(129, 194, 203, .14);
  border-radius: 13px;
  background: rgba(116, 215, 207, .045);
}
.equipment-guide-links strong,
.equipment-guide-links span {
  display: block;
}
.equipment-guide-links strong {
  color: #eff8ff;
  font: 700 14px Manrope;
}
.equipment-guide-links span {
  margin-top: 5px;
  color: #8299ac;
  font-size: 11px;
  line-height: 1.45;
}
@media (max-width: 760px) {
  .guest-home-section { margin: 14px 18px 48px; padding: 28px 22px; grid-template-columns: 1fr; gap: 26px; }
  .events-home-section { margin: 0 18px 36px; padding: 22px 20px; grid-template-columns: 1fr; gap: 18px; }
  .events-home-list { grid-template-columns: 1fr; }
  .events-home-list a { grid-template-columns: 58px 1fr; padding: 11px 12px; }
  .events-home-list img { width: 52px; height: 52px; }
  .guest-home-copy h2 { font-size: 24px; }
  .planning-home-section,
  .equipment-home-section { margin: 0 18px 48px; padding: 28px 22px; grid-template-columns: 1fr; gap: 26px; }
  .planning-home-copy h2,
  .equipment-home-copy h2 { font-size: 24px; }
  .equipment-home-content { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .planning-home-grid { grid-template-columns: 1fr; }
}
.future-copy > p {
  color: #8ca1b4;
  font-size: 14px;
}
.text-link {
  display: inline-block;
  color: #8ce0d5;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  margin-top: 16px;
}
.feature-list > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list > div:last-child {
  border-bottom: 0;
}
.feature-list > div > span {
  color: #4d8791;
  font: 600 11px Manrope;
}
.feature-list h3 {
  font: 700 15px Manrope;
  margin: 0 0 5px;
}
.feature-list p {
  color: #7f94a7;
  font-size: 12px;
  margin: 0;
}
footer {
  max-width: 1180px;
  margin: auto;
  padding: 30px 28px 45px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  color: #61798e;
  font-size: 11px;
}
footer p {
  flex: 1;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 30px);
  background: #15283a;
  border: 1px solid #2f5269;
  color: #d7e9f2;
  padding: 11px 17px;
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  font-size: 13px;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    min-height: auto;
    padding-top: 8px;
    padding-bottom: 15px;
  }
  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
    width: 250px;
    height: 96px;
  }
  .site-header .brand img {
    height: 88px;
    max-width: 250px;
  }
  .site-header .header-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .site-header nav {
    grid-column: 1/-1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding: 2px 0 5px;
    scrollbar-width: none;
  }
  .site-header nav::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 850px) {
  .dashboard-grid,
  .split-section,
  .future-section {
    grid-template-columns: 1fr;
  }
  .week-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .future-section {
    gap: 30px;
  }
  .moon-card {
    grid-template-columns: 150px 1fr;
  }
  .hourly-chart {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .hour-col {
    flex: 0 0 52px;
  }
}
@media (max-width: 560px) {
  .site-header {
    min-height: 88px;
    padding: 0 18px;
  }
  .site-header .brand {
    width: 190px;
    height: 82px;
  }
  .site-header .brand img {
    height: 70px;
    max-width: 190px;
  }
  .outline-button {
    display: inline-flex;
    white-space: nowrap;
    padding: 9px 12px;
  }
  .site-header nav {
    gap: 16px;
  }
  .site-header nav a {
    font-size: 13px;
  }
  .registered-location-switcher > div.saved-location-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .saved-location-actions select {
    flex-basis: 100%;
  }
  .saved-location-actions button {
    flex: 1;
  }
  .saved-location-actions a {
    align-self: center;
  }
  .hero {
    padding: 66px 18px 45px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero > p {
    font-size: 15px;
  }
  .search-row {
    flex-direction: column;
  }
  .search-row button {
    height: 46px;
  }
  .forecast-shell,
  .split-section,
  .week-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .forecast-head {
    gap: 15px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-section {
    display: block;
  }
  .moon-card {
    grid-template-columns: 1fr;
    text-align: center;
    margin-bottom: 16px;
  }
  .moon-visual {
    height: 150px;
  }
  .moon-stats {
    justify-content: center;
  }
  .dark-card {
    min-height: 250px;
  }
  .section-intro {
    display: block;
  }
  .section-intro > p {
    margin-top: 8px;
  }
  .week-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .future-section {
    margin: 0 16px 50px;
    padding: 32px 24px;
  }
  .future-section h2 {
    font-size: 25px;
  }
  footer {
    margin: 0 16px;
    display: block;
  }
  footer p {
    margin: 16px 0;
  }
  .public-footer > div {
    align-items: flex-start;
    flex-direction: column;
  }
  .star-motion-toggle span {
    display: none;
  }
}
@media (max-width: 420px) {
  .site-header {
    padding-left: 12px;
    padding-right: 12px;
  }
  .site-header .brand {
    width: 132px;
    height: 72px;
  }
  .site-header .brand img {
    height: 58px;
    max-width: 132px;
  }
}


.framing-shortcut { display: flex; align-items: center; gap: 18px; margin: 22px 0; padding: 20px; border: 1px solid rgba(125,211,252,.35); border-radius: 18px; background: rgba(125,211,252,.08); color: #dcecf6; text-decoration: none; }
.framing-shortcut:hover, .framing-shortcut:focus-visible { border-color: #7dd3fc; background: rgba(125,211,252,.13); }
.framing-shortcut > span:last-child { min-width: 0; }
.framing-shortcut small, .framing-shortcut strong, .framing-shortcut span span, .framing-shortcut b { display: block; }
.framing-shortcut small { color: #7dd3fc; font-size: 12px; font-weight: 700; }
.framing-shortcut strong { margin: 6px 0; font-size: 20px; line-height: 1.3; }
.framing-shortcut span span { color: #a7bbcb; font-size: 14px; line-height: 1.6; }
.framing-shortcut b { margin-top: 12px; color: #7dd3fc; font-size: 14px; }
.framing-shortcut-icon { flex-shrink: 0; color: #7dd3fc; font-size: 40px; }
@media(max-width: 767px) { .framing-shortcut { align-items: flex-start; gap: 12px; padding: 16px; } .framing-shortcut-icon { font-size: 28px; } }
