/* MVP25 content pages */
:root {
  --bg: #0f1520; --panel: #182131; --panel2: #1f2a3d; --line: #2b3850;
  --text: #e7ecf4; --muted: #93a1ba; --accent: #6ea8ff; --accent2: #22e07a;
  --ok: #2fbf71; --bad: #ff5468; --warn: #ffb547; --code: #ffcf7a;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef1f6; --panel: #ffffff; --panel2: #f5f7fb; --line: #d9dfea;
    --text: #172033; --muted: #56637b; --accent: #2a62c9; --accent2: #12a557;
    --ok: #198a4f; --bad: #d42a40; --warn: #a86400; --code: #8a4b00;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.mono, code { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
code { color: var(--code); font-size: .92em; }

/* hero */
.hero { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%); }
.hero .in { max-width: 1180px; margin: 0 auto; padding: 46px 24px 34px; }
.hero .eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; font-size: 13px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 8px 0 12px; letter-spacing: -.3px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 760px; margin: 0; }
@media (max-width: 700px) { .hero h1 { font-size: 30px; } .hero p.lead { font-size: 17px; } .hero .in { padding: 30px 18px 24px; } }

/* layout */
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 24px 60px; }
.with-toc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: 72px; font-size: 14px; border-left: 2px solid var(--line); padding-left: 14px; max-height: calc(100vh - 90px); overflow: auto; }
.toc b { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: 11px; margin-bottom: 6px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.toc a:hover { color: var(--text); }
.toc a.sub { padding-left: 12px; font-size: 13px; }
@media (max-width: 980px) { .with-toc { grid-template-columns: minmax(0, 1fr); } .toc { position: static; max-height: none; border-left: 0; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; columns: 2; } }
@media (max-width: 560px) { .toc { columns: 1; } .wrap { padding: 20px 14px 50px; } }

article h2 { font-size: 27px; margin: 44px 0 10px; padding-top: 6px; letter-spacing: -.2px; }
article h2:first-child { margin-top: 0; }
article h3 { font-size: 20px; margin: 30px 0 8px; }
article h4 { font-size: 16px; margin: 22px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
article p, article li { max-width: 820px; }
article ul, article ol { padding-left: 22px; }
article li { margin: 4px 0; }

/* blocks */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0 0 8px; color: var(--muted); }
a.card { text-decoration: none; color: var(--text); display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-1px); }
a.card .go { color: var(--accent); font-weight: 600; font-size: 14px; }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--panel); border-radius: 10px; padding: 14px 18px; margin: 18px 0; max-width: 860px; }
.callout.warn { border-left-color: var(--warn); }
.callout.ok { border-left-color: var(--accent2); }
.callout p { margin: 4px 0; }
.callout b:first-child { display: block; margin-bottom: 2px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 18px 0; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.fact .k { font-size: 12px; text-transform: uppercase; letter-spacing: .9px; color: var(--muted); }
.fact .v { font-size: 22px; font-weight: 800; margin-top: 2px; }
.fact .s { font-size: 13px; color: var(--muted); }
.pill { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: var(--ok); }
.pill.bad { color: var(--bad); border-color: var(--bad); }
.pill.rx { color: var(--accent); border-color: var(--accent); }
.pill.vote { background: var(--accent2); color: #04230f; border-color: var(--accent2); }

/* tables */
.tbl { overflow-x: auto; margin: 14px 0 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel2); white-space: nowrap; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.mono { white-space: nowrap; }

/* figures */
figure { margin: 18px 0 24px; max-width: 860px; }
figure img { border: 1px solid var(--line); border-radius: 10px; background: #fff; display: block; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* FAQ */
details.faq { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; max-width: 900px; }
details.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; gap: 12px; align-items: baseline; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: '+'; color: var(--accent); font-weight: 800; width: 14px; flex: none; }
details.faq[open] summary::before { content: '–'; }
details.faq .a { padding: 0 18px 14px 44px; }
details.faq .a p { margin: 0 0 10px; color: var(--text); }

/* timeline */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.filters button { font: inherit; font-size: 14px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; cursor: pointer; }
.filters button.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.timeline { position: relative; margin: 0; padding: 0 0 0 28px; list-style: none; max-width: 900px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline > li { position: relative; margin: 0 0 22px; }
.timeline > li::before { content: ''; position: absolute; left: -27px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline > li.major::before { background: var(--accent); width: 14px; height: 14px; left: -28px; top: 6px; }
.timeline .when { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .3px; }
.timeline h3 { margin: 2px 0 4px; font-size: 18px; }
.timeline p { margin: 0; color: var(--muted); }
.tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; padding: 1px 8px; border-radius: 5px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); }
.tag.sites { color: var(--accent2); border-color: var(--accent2); }
.tag.system { color: var(--accent); border-color: var(--accent); }
.tag.programming { color: var(--warn); border-color: var(--warn); }

/* home */
.onair { display: flex; align-items: center; gap: 18px; }
.onair .lamp { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; letter-spacing: 1px; background: var(--panel2); border: 2px solid var(--line); color: var(--muted); flex: none; }
.onair.live .lamp { background: #ff5468; border-color: #ff5468; color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 84, 104, .55); } 50% { box-shadow: 0 0 0 12px rgba(255, 84, 104, 0); } }
.onair .who { font-size: 24px; font-weight: 800; font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.onair .what { color: var(--muted); font-size: 14px; }
.sched { list-style: none; padding: 0; margin: 0; }
.sched li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); max-width: none; }
.sched li:last-child { border-bottom: 0; }
.sched .d { font-weight: 800; min-width: 112px; }
.sched .t { color: var(--muted); }
.notice { background: rgba(110, 168, 255, .12); border: 1px solid var(--accent); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }

footer.site { border-top: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 14px; }
footer.site .in { max-width: 1180px; margin: 0 auto; padding: 28px 24px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer.site h4 { color: var(--text); margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
footer.site a { color: var(--muted); text-decoration: none; display: block; padding: 2px 0; }
footer.site a:hover { color: var(--text); }
@media (max-width: 800px) { footer.site .in { grid-template-columns: 1fr 1fr; } }
