/*
  Wonders (/wonders/, decision 045), from design/screens/wonder-and-pathways/css/wonders.css.
  Classes only (CSP). The dark bands use fixed Night Pond colors in both themes.
*/

.wd-band { padding-block: 56px; }
.wd-band--white { background: var(--wc-surface); border-block: var(--wc-border-width) solid var(--wc-border); }
.wd-band--night { background: var(--wc-night-pond); color: var(--wc-graph-paper); }
.wd-head { display: grid; gap: 6px; }
.wd-head h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -0.03em; }
.wd-head p { font-size: 1.0625rem; color: var(--wc-text-muted); }
.wd-band--night .wd-head p { color: var(--wc-mist); }
.wd-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; }
.wd-head--split > div { display: grid; gap: 6px; }
.wd-head__aside { font-family: var(--wc-font-label); font-size: 0.75rem; color: var(--wc-mist); }

/* ---------- Hero and Tonight ---------- */
.wd-hero { padding-block: 48px 40px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 28px 40px; }
.wd-hero__text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--wc-space-4); }
.wd-hero__text .display { font-size: clamp(3rem, 7vw, 5.5rem); }
.wd-hero__text .lede { max-width: 38rem; }

.tonight {
  flex: 1 1 400px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 22px;
  background: var(--wc-night-pond);
  color: var(--wc-graph-paper);
  border: var(--wc-border-width) solid var(--wc-spy-pond);
  border-radius: var(--wc-radius-panel);
}
.tonight > * { position: relative; }
.tonight__stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.tonight__stars circle { fill: var(--wc-graph-paper); }
.tonight__stars .tw { animation: wd-twinkle 3.2s ease-in-out infinite; }
.tonight__stars .tw:nth-of-type(2) { animation-delay: 1.1s; }
.tonight__stars .tw:nth-of-type(3) { animation-delay: 2.2s; }
@keyframes wd-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.tonight__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--wc-space-4); }
.tonight__top > div { display: grid; gap: 4px; }
.tonight h2 { font-family: var(--wc-font-label); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wc-lantern); }
.tonight__verdict { font-family: var(--wc-font-display); font-weight: 800; font-size: 1.875rem; line-height: 1.05; letter-spacing: -0.02em; }
.tonight__moon { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 999px; background: var(--wc-lantern-tint); box-shadow: 0 0 0 6px rgb(255 240 194 / 0.18), 0 0 28px rgb(255 240 194 / 0.45); }
.tonight__detail { font-size: 1.0625rem; line-height: 1.5; }
.tonight__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wc-space-2); }
.tonight__tiles li { display: grid; gap: 2px; padding: 10px 12px; background: var(--wc-pond-panel); border-radius: 12px; }
.tonight__tiles .label { font-size: 0.6875rem; color: var(--wc-mist); }
.tonight__tiles b { font-weight: 700; }
.tonight__tiles span:last-child { font-size: 0.8125rem; color: var(--wc-mist); }
@media (min-width: 52rem) {
  .wd-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
@media (max-width: 26rem) { .tonight__tiles { grid-template-columns: 1fr; } }

/* ---------- Coming up ---------- */
.coming { display: grid; gap: 22px; }
.months { display: grid; gap: 26px; }
.month { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.month h3 { flex: 0 0 150px; padding-top: 10px; font-size: 1.625rem; font-weight: 800; }
.month ol { flex: 999 1 560px; min-width: 0; list-style: none; margin: 0; padding: 0; border-left: 3px dashed var(--wc-border); }
.when-item { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 18px; padding: 12px 0 12px 26px; transition: transform 140ms ease-out; }
.when-item:hover { transform: translateX(3px); }
.when-item::before { content: ""; position: absolute; left: -10px; top: 20px; width: 14px; height: 14px; border: 2.5px solid var(--wc-spy-pond); border-radius: 999px; background: var(--cat-bg); }
.when-item__date { flex: 0 0 132px; display: grid; gap: 1px; }
.when-item__date b { font-family: var(--wc-font-display); font-weight: 800; font-size: 1.375rem; line-height: 1; letter-spacing: -0.01em; }
.when-item__date span { font-family: var(--wc-font-label); font-weight: 700; font-size: 0.75rem; color: var(--wc-link); }
.when-item__body { flex: 1 1 300px; min-width: 0; display: grid; gap: 4px; }
.when-item__name { font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.when-item__note { font-size: 1rem; line-height: 1.45; color: var(--wc-text-muted); }
.when-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.cat-chip { padding: 1px 8px; border: 1.5px solid var(--wc-spy-pond); border-radius: 999px; background: var(--cat-bg); color: var(--wc-spy-pond); font-family: var(--wc-font-label); font-size: 0.6875rem; font-weight: 700; }
.how { font-family: var(--wc-font-label); font-size: 0.72rem; color: var(--wc-text-muted); }
.on-now { padding: 1px 8px; border: 1.5px solid var(--wc-spy-pond); border-radius: 999px; background: var(--wc-lantern); color: var(--wc-spy-pond); font-family: var(--wc-font-label); font-size: 0.6875rem; font-weight: 700; }
.path-pill { flex: 0 0 auto; align-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; background: var(--wc-surface); color: var(--wc-text); border: var(--wc-border-width) solid var(--wc-border); border-radius: 999px; font-weight: 700; font-size: 0.8125rem; text-decoration: none; }
.path-pill:hover { color: var(--wc-text); background: var(--wc-bg); }
.cat--sky { --cat-bg: var(--wc-bubbler); }
.cat--nature { --cat-bg: var(--wc-bubbler-tint); }
.cat--history { --cat-bg: var(--wc-lantern-tint); }
.wd-kicker { color: var(--wc-link); }
.wd-empty { color: var(--wc-text-muted); }

/* ---------- Up there ---------- */
.upthere { display: grid; gap: 28px; }
.sky-group { display: grid; gap: 14px; }
.sky-group h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 1.625rem; font-weight: 800; }
.sky-group h3 span { font-family: var(--wc-font-label); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--wc-lantern); }
.sky-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.sky-card { display: flex; flex-direction: column; gap: var(--wc-space-2); padding: 16px; background: var(--wc-pond-panel); border: var(--wc-border-width) solid var(--wc-mist); border-radius: var(--wc-radius-card); }
.sky-card--now { border-color: var(--wc-lantern); }
.sky-card svg { width: 100%; height: 64px; }
.sky-card .pat-glow { fill: var(--wc-mist); opacity: 0.35; }
.sky-card .pat-lines { fill: none; stroke: var(--wc-mist); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.sky-card .pat-ring { fill: none; stroke: var(--wc-lantern); stroke-width: 3; }
.sky-card .pat-star { fill: var(--wc-graph-paper); }
.sky-card .pat-bright { fill: var(--wc-white); }
.sky-card__name { font-family: var(--wc-font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.15; }
.sky-card__when { font-family: var(--wc-font-label); font-weight: 700; font-size: 0.75rem; color: var(--wc-lantern); }
.sky-card__note { font-size: 0.9375rem; line-height: 1.45; color: var(--wc-mist); }
.sky-card__tags { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sky-card__tags li { padding: 1px 8px; border: 1.5px solid var(--wc-mist); border-radius: 999px; font-family: var(--wc-font-label); font-size: 0.6875rem; font-weight: 700; color: var(--wc-graph-paper); }

/* ---------- Eclipses ---------- */
.eclipses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--wc-space-4); }
.eclipse { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--wc-surface); border: var(--wc-border-width) solid var(--wc-border); border-radius: var(--wc-radius-card); }
.eclipse svg { flex: 0 0 52px; width: 52px; height: 52px; }
.eclipse > span { display: grid; gap: 2px; }
.eclipse__when { font-family: var(--wc-font-label); font-weight: 700; font-size: 0.75rem; color: var(--wc-link); }
.eclipse__name { font-weight: 700; font-size: 1.0625rem; }
.eclipse__note { font-size: 0.875rem; color: var(--wc-text-muted); }
.eclipse__disc { fill: var(--wc-lantern-tint); stroke: var(--wc-spy-pond); stroke-width: 2; }
.eclipse__bite { fill: var(--wc-spy-pond); opacity: 0.8; }
/* After the night band: the bands' top space, Coming up's heading gap, and no bottom
   padding of its own (the email card's 32px top is the space below). */
.wd-eclipses { display: grid; gap: 22px; padding-bottom: 0; }

/* ---------- Thursday email ---------- */
.wd-email { padding-block: 32px 64px; }
.wd-email__card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wc-space-3) var(--wc-space-6); padding: 22px 24px; background: var(--wc-bunsen); color: var(--wc-spy-pond); border: var(--wc-border-width) solid var(--wc-spy-pond); border-radius: var(--wc-radius-panel); }
.wd-email__card h2 { font-size: 1.625rem; letter-spacing: -0.02em; }
.wd-email__card > div { display: grid; gap: var(--wc-space-2); }
