:root {
  --bg: #0b0d10;
  --fg: #e9eef5;
  --muted: #9fb0c6;
  --yes: #28c36e;
  --no: #d9534f;
  --wait: #f0ad4e;
  --card: #12161c;
  --card2: #0f141a;
  --border: #223047;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  background: radial-gradient(1200px 900px at 70% -10%, #132235 0%, var(--bg) 60%);
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.header h1 {
  font-weight: 750;
  letter-spacing: -0.4px;
  margin: 0 0 6px 0;
}
.sub { color: var(--muted); margin: 0 0 12px 0; }

.answer {
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: start;
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border-radius: 16px;
  margin: 10px 0 18px;
}

.badge {
  font-weight: 900;
  font-size: clamp(64px, 10vw, 120px);
  line-height: 1;
  padding: 8px 14px 0 0;
  letter-spacing: -1.5px;
  text-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

/* Flip colors: YES = red, NO = green */
.badge-yes { color: var(--no);  }   /* red */
.badge-no  { color: var(--yes); }   /* green */

.badge-waiting { color: var(--wait); }

.asof {
  color: var(--muted);
  font-size: 14px;
  margin-top: -8px;
}

.today {
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border-radius: 16px;
  margin-bottom: 16px;
}

.today h2 { margin: 0 0 6px 0; font-size: 18px; }
.today-status { color: var(--muted); margin-bottom: 8px; }

.list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 10px;
}
.li {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  border-radius: 12px; padding: 10px 12px;
}
.li .when { font-weight: 600; }
.li .desc { color: var(--muted); font-size: 14px; }

.details {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border-radius: 16px;
  padding: 10px 16px;
}
.details summary {
  cursor: pointer;
  font-weight: 600;
  outline: none;
}
.details-body { padding: 8px 2px 6px; }
.details a { color: #8fb7ff; }
.tiny { color: var(--muted); font-size: 12px; }

.footer {
  opacity: 0.7;
  color: var(--muted);
  font-size: 13px;
  padding: 20px 2px;
}

.hidden { display: none; }
.nowrap { white-space: nowrap; }


/* --- House banner component -------------------------------------------- */
.promo-banner {
  display: block;
  margin: 12px 0 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.promo-banner picture,
.promo-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Gentle hover/focus effect */
.promo-banner:hover,
.promo-banner:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  border-color: rgba(143,183,255,.35);
  outline: none;
}

/* Optional text fallback (hidden when image is present) */
.promo-fallback {
  position: absolute; inset: 0;
  display: none; /* gets shown only if you remove the <picture> */
  align-items: center; justify-content: space-between;
  padding: 14px 16px;
  gap: 12px;
}

.promo-copy {
  display: flex; flex-direction: column; gap: 2px;
  color: var(--fg);
}
.promo-copy strong { font-weight: 750; letter-spacing: -.2px; }
.promo-copy span { color: var(--muted); font-size: 14px; }

.promo-cta {
  background: #8fb7ff;
  color: #0a1220;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* If you ever want a text-only banner (no image), add 'is-text' class */
.promo-banner.is-text .promo-fallback { display: flex; }
.promo-banner.is-text { min-height: 120px; }
@media (min-width: 700px) {
  .promo-banner.is-text { min-height: 140px; }
}

