/* Styles for the newer content pages: /week, /apophis-2029 and /status.
   Loaded after base.css and catalog.css (which supplies the top bar, .wrap, .sec, .prose,
   .stat-strip, .panel-box, .cta and the table base). */

.lead { max-width: 760px; margin-bottom: 22px; }
.lead h1 { font-size: 28px; line-height: 1.2; font-weight: 650; margin-bottom: 12px; }
.lead p { color: var(--muted); font-size: 15px; }
.lead p b { color: var(--text); }
.updated { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* numbers and designations */
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- flyby table ---------- */
.fly-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fly-table th {
  text-align: left; font-weight: 600; font-size: 12px; color: var(--muted);
  padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.fly-table td { padding: 10px; border-bottom: 1px solid rgba(30,37,64,.6); vertical-align: top; }
.fly-table th.num, .fly-table td.num { text-align: right; }
.fly-table td.num { font-size: 13px; }
.fly-table td small { display: block; color: var(--muted); font-size: 11.5px; }
.fly-table tr.closest td { background: rgba(88,199,255,.05); }
.fly-table a { font-weight: 600; }
.fly-note { display: inline-block; font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; margin-left: 6px; }
.fly-note.moon { color: var(--hazard); border-color: rgba(255,84,112,.5); }
.fly-note.pha { color: var(--warn); border-color: rgba(255,179,71,.5); }
.table-scroll { overflow-x: auto; }
@media (max-width: 640px) {
  .fly-table .opt { display: none; }
  .fly-table td, .fly-table th { padding: 9px 6px; }
  .lead h1 { font-size: 23px; }
}

/* ---------- story pages ---------- */
.story { max-width: 760px; }
.story h2 { font-size: 19px; font-weight: 650; margin: 34px 0 10px; }
.story p, .story li { font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.story ul { padding-left: 20px; margin-bottom: 14px; }
.story li { margin-bottom: 6px; }
.story figure { margin: 22px 0; }
.story figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.story figcaption { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 22px 0; max-width: 520px; }
.countdown div { background: var(--panel); padding: 14px 10px; text-align: center; }
.countdown b { display: block; font-family: var(--mono); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.countdown span { color: var(--muted); font-size: 12px; }
.facts { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 18px; }
.facts th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1px solid rgba(30,37,64,.6); width: 44%; vertical-align: top; }
.facts td { padding: 8px 0; border-bottom: 1px solid rgba(30,37,64,.6); }
.faq dt { font-weight: 650; margin-top: 18px; font-size: 15px; }
.faq dd { color: var(--text); margin: 6px 0 0; font-size: 15px; line-height: 1.7; }

/* ---------- status page ---------- */
.status-list { list-style: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-width: 760px; }
.status-list li { display: flex; gap: 12px; align-items: baseline; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.status-list li:last-child { border-bottom: none; }
.status-list .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; transform: translateY(-1px); }
.status-list .ok .dot { background: var(--green); }
.status-list .late .dot { background: var(--warn); }
.status-list .down .dot { background: var(--hazard); }
.status-list b { font-weight: 600; min-width: 190px; }
.status-list span.what { color: var(--muted); font-size: 13px; }
.status-head { font-size: 17px; font-weight: 650; margin: 0 0 16px; }
@media (max-width: 640px) { .status-list li { flex-wrap: wrap; } .status-list b { min-width: 0; } }

/* ---------- mailing list signup ---------- */
.subscribe-box { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 18px 20px; max-width: 560px; margin: 26px 0; }
.subscribe-box h2, .subscribe-box h3 { font-size: 16px; font-weight: 650; margin: 0 0 6px; }
.subscribe-box p { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }
.subscribe-row { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe-row input[type="email"] {
  flex: 1 1 220px; min-width: 0; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  font-family: var(--font); font-size: 16px; padding: 9px 12px; border-radius: 7px;
}
.subscribe-row button {
  background: var(--accent); color: #06101c; border: 1px solid var(--accent); border-radius: 7px;
  font-family: var(--font); font-size: 14px; font-weight: 650; padding: 9px 16px; cursor: pointer;
}
.subscribe-row button:hover { background: #7cd4ff; }
.subscribe-row button[disabled] { opacity: .6; cursor: default; }
.subscribe-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.subscribe-status { font-size: 13px; color: var(--muted); margin-top: 8px; min-height: 18px; }
.subscribe-status.is-ok { color: var(--green); }
.subscribe-status.is-err { color: var(--warn); }
