.astro-section {
  --astro-ink: var(--ink);
  --astro-paper: var(--paper);
  --astro-soft: var(--soft);
  --astro-muted: var(--muted);
  --astro-line: var(--line);
  --astro-accent: var(--blue);
  margin: 20px 0 8px;
  min-width: 0;
}
body[data-theme=blue] .astro-section {
  --astro-ink: #15354f;
  --astro-paper: #f8fbff;
  --astro-soft: #e6f1fb;
  --astro-muted: #435f74;
  --astro-line: #cbdfef;
  --astro-accent: #125c93;
}
.astro-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 9px;
}
.astro-heading h2 { margin: 0; font: 500 24px/1.2 Oswald,sans-serif; }
.astro-heading span {
  display: inline-flex;
  justify-content: end;
  gap: 4px;
  text-align: right;
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.astro-heading .icon { width: 15px; height: 15px; flex: none; }
.astro-tabs {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 4px;
  padding: 3px;
  margin-bottom: 8px;
  border-radius: 11px;
  border: 1px solid var(--astro-line);
  color: var(--astro-ink);
  background: var(--astro-soft);
}
.astro-tabs button {
  min-height: 37px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
}
.astro-tabs button[aria-pressed=true] {
  background: var(--astro-paper);
  box-shadow: 0 1px 4px #001e3922;
  font-weight: 750;
}
body[data-theme=blue] .astro-tabs { background: #0a3158; color: #e5f1fb; border-color: #5786aa; }
body[data-theme=blue] .astro-tabs button[aria-pressed=true] { color: #15354f; }
.astro-sky {
  color: #f5faff;
  border: 1px solid #6686a5;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(112deg,#07203be6,#0e2a46a0),url('assets/astronomy-stars.webp') center / cover #102b46;
}
.astro-lunar { padding: 14px 16px 12px; }
.astro-lunar-main {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(88px,34%);
  gap: 10px;
  align-items: center;
}
.astro-kicker { color: #c5dcec; font-size: 12px; font-weight: 650; }
.astro-sky h3 {
  margin: 5px 0 6px;
  font: 550 clamp(25px,5vw,35px)/1.14 Oswald,sans-serif;
  color: #fff;
  overflow-wrap: break-word;
}
.astro-fraction { display: block; font-size: clamp(28px,6vw,42px); font-weight: 750; line-height: 1.12; }
.astro-lunar-main small { color: #c5dcec; font-size: 12px; }
.astro-moon-disc {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #142131;
}
.astro-lunar-main>.astro-moon-disc {
  width: 100%;
  max-width: 159px;
  justify-self: center;
  box-shadow: 0 0 19px #b0cff329;
}
.astro-moon-times {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  border-top: 1px solid #6e8da65e;
  margin-top: 12px;
  padding-top: 10px;
}
.astro-moon-times>div {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #c9dfef;
  font-size: 11px;
}
.astro-moon-times>div+div { border-left: 1px solid #6e8da65e; padding-left: 11px; }
.astro-moon-times .icon { width: 16px; height: 16px; flex: none; }
.astro-moon-times strong { display: block; color: #fff; font-size: 13px; margin-top: 2px; }
.astro-calendar,.astro-aurora-info {
  margin-top: 8px;
  background: var(--astro-paper);
  color: var(--astro-ink);
  border: 1px solid var(--astro-line);
  border-radius: 12px;
  overflow: hidden;
}
.astro-calendar summary {
  display: grid;
  grid-template-columns: 49px minmax(0,1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  list-style: none;
  cursor: pointer;
}
.astro-calendar summary::-webkit-details-marker { display: none; }
.astro-calendar summary:focus-visible,.astro-phases button:focus-visible { outline-offset: -3px; }
.astro-calendar summary strong { display: block; font: 550 20px/1.15 Oswald,sans-serif; margin: 1px 0; }
.astro-calendar summary small,.astro-calendar summary span>span { font-size: 12px; color: var(--astro-muted); }
.astro-calendar summary>.icon,.astro-map .icon { width: 15px; height: 15px; }
.astro-calendar[open] summary>.icon { transform: rotate(90deg); }
.astro-phase-disc {
  display: grid;
  place-items: center;
  margin: 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #193752;
}
.astro-phase-disc .astro-moon-disc { width: 73%; }
.astro-calendar-body { padding: 9px 12px 12px; border-top: 1px solid var(--astro-line); }
.astro-calendar-body h3 { margin: 0 0 7px; font: 550 21px/1.15 Oswald,sans-serif; }
.astro-phases {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px,1fr);
  gap: 5px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  padding: 2px 1px 4px;
}
.astro-phases button {
  padding: 6px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.astro-phases button[aria-pressed=true] {
  background: var(--astro-soft);
  border-color: var(--astro-line);
}
.astro-phases button strong,.astro-phases button small { display: block; margin-top: 3px; font-size: 11px; }
.astro-phases button small { color: var(--astro-muted); line-height: 1.3; }
.astro-phase-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 9px 13px;
}
.astro-phase-detail strong { display: block; font: 550 24px/1.15 Oswald,sans-serif; }
.astro-phase-detail small { color: #c5dcec; font-size: 12px; }
.astro-phase-detail>.astro-moon-disc { width: 55px; flex: none; }
.astro-stargazing { margin: 8px 0 0; font-size: 12px; color: var(--astro-muted); }
.astro-aurora {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 155px;
  padding: 14px 16px 12px;
  background: linear-gradient(110deg,#091b37ed,#0e203353),url('assets/astronomy-aurora.webp') center 74% / cover #102b46;
}
.astro-illustration {
  margin-top: auto;
  border: 1px solid #9db4cf7a;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 10px;
  background: #10233cd9;
}
.astro-aurora-info dl { margin: 0; padding: 3px 13px 0; }
.astro-aurora-info dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--astro-line);
  font-size: 12px;
}
.astro-aurora-info dt { color: var(--astro-muted); }
.astro-aurora-info dd { text-align: right; margin: 0; font-weight: 700; }
.astro-map,.astro-retry {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 13px;
  color: var(--astro-accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.astro-map:focus-visible,.astro-retry:focus-visible { outline-offset: -3px; }
.astro-retry { border-bottom: 1px solid var(--astro-line); }
.astro-foot { margin: 6px 1px 0; font-size: 11px; color: var(--muted); }
body[data-theme=blue] .astro-foot { color: #cbdfee; }
@media (min-width:721px) {
  .astro-lunar { padding: 16px 22px; }
  .astro-moon-times>div+div { padding-left: 16px; }
}
@media (forced-colors:active) {
  .astro-sky { background: Canvas; color: CanvasText; }
  .astro-sky :is(h3,small,span,strong) { color: CanvasText; }
  .astro-tabs button[aria-pressed=true],.astro-phases button[aria-pressed=true] { border: 1px solid Highlight; }
}
