:root {
  --ink:#16202a; --muted:#5b6470; --line:#e3e6ea; --bg:#f7f8fa; --card:#fff;
  --accent:#f2a900; --accent-ink:#16202a; --link:#0b5cad;
  --open:#1f7a3f; --open-bg:#e7f5ec; --soon:#0b5cad; --soon-bg:#e8f0fb;
  --closed:#7b828a; --closed-bg:#eef0f2; --warn:#a4361f;
  --radius:10px;
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; }
a { color:var(--link); text-underline-offset:2px; }
a:hover { text-decoration-thickness:2px; }
img { max-width:100%; }
.wrap { max-width:1000px; margin:0 auto; padding:0 18px; }
.narrow { max-width:680px; }

/* header */
.top { background:var(--ink); color:#fff; }
.top .wrap { display:flex; justify-content:space-between; align-items:center; padding-top:13px; padding-bottom:13px; gap:12px; flex-wrap:wrap; }
.brand { font-weight:800; color:#fff; text-decoration:none; letter-spacing:.01em; display:flex; align-items:center; gap:8px; }
.brand .mark { display:inline-block; width:22px; height:22px; border-radius:5px; background:var(--accent); position:relative; }
.brand .mark::after { content:""; position:absolute; left:5px; top:9px; width:12px; height:4px; background:var(--ink); border-radius:1px; }
nav a { margin-left:16px; color:#d6dbe1; text-decoration:none; font-size:.95rem; }
nav a:hover { color:#fff; }

/* type */
h1 { font-size:2rem; line-height:1.2; margin:30px 0 12px; letter-spacing:-.01em; }
h2 { font-size:1.25rem; margin:34px 0 12px; }
h3 { font-size:1.05rem; margin:22px 0 8px; }
p, li { max-width:72ch; }
.small, small { color:var(--muted); font-size:.88rem; }
.crumbs { margin:18px 0 -14px; font-size:.88rem; color:var(--muted); }
.crumbs a { color:var(--muted); }

/* hero */
.hero { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:26px 26px 20px; margin-top:24px; border-top:5px solid var(--accent); }
.hero h1 { margin-top:0; font-size:2.25rem; }
.hero .lead { font-size:1.1rem; color:#2c3641; }

/* buttons */
.btn { display:inline-block; background:var(--accent); color:var(--accent-ink); padding:12px 18px; border-radius:8px; text-decoration:none; font-weight:700; border:1px solid #d99600; }
.btn:hover { filter:brightness(1.04); text-decoration:none; }
.btn.dark { background:var(--ink); color:#fff; border-color:var(--ink); }
.btn.off { background:var(--closed-bg); color:var(--closed); border-color:var(--line); }

/* stats, steps, cards */
.stats { display:flex; gap:10px; flex-wrap:wrap; margin:22px 0 4px; padding:0; list-style:none; }
.stats li { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:10px 14px; }
.stats strong { font-size:1.35rem; display:block; line-height:1.2; }
.steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; padding:0; list-style:none; counter-reset:s; }
.steps li { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; counter-increment:s; }
.steps li::before { content:counter(s); display:inline-grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--ink); color:#fff; font-weight:700; font-size:.9rem; margin-bottom:6px; }
.box { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; margin:26px 0; }
.box.cta { border-left:5px solid var(--accent); }
.chips { display:flex; flex-wrap:wrap; gap:8px; padding:0; list-style:none; }
.chips a { display:inline-block; background:var(--card); border:1px solid var(--line); border-radius:999px; padding:5px 12px; text-decoration:none; color:var(--ink); font-size:.92rem; }
.chips a:hover { border-color:var(--ink); }
.cols { columns:3 210px; padding-left:18px; }
.faq dt { font-weight:700; margin-top:14px; } .faq dd { margin:4px 0 0; color:#2c3641; }

/* tables */
table.list { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
table.list th, table.list td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
table.list th { font-size:.8rem; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); background:#fbfcfd; }
table.list tr:last-child td { border-bottom:0; }
table.list td a { font-weight:600; }

/* badges */
.badge { display:inline-block; font-weight:700; font-size:.8rem; padding:2px 9px; border-radius:999px; margin-top:3px; }
.badge.open { color:var(--open); background:var(--open-bg); }
.badge.upcoming { color:var(--soon); background:var(--soon-bg); }
.badge.closed, .badge.unknown { color:var(--closed); background:var(--closed-bg); }
.badge.big { font-size:1rem; padding:4px 12px; }

/* program facts */
dl.facts { display:grid; grid-template-columns:max-content 1fr; gap:8px 18px; background:var(--card); border:1px solid var(--line); padding:16px 18px; border-radius:var(--radius); }
dl.facts dt { color:var(--muted); } dl.facts dd { margin:0; }

/* articles */
article.guide h2 { margin-top:30px; }
article.guide .sources { font-size:.85rem; color:var(--muted); border-top:1px solid var(--line); margin-top:30px; padding-top:10px; }
article.guide .sources li { word-break:break-word; }

.foot { margin-top:56px; padding-top:18px; padding-bottom:36px; border-top:1px solid var(--line); color:var(--muted); font-size:.88rem; }
button { font:inherit; background:var(--ink); color:#fff; border:0; border-radius:8px; padding:10px 16px; cursor:pointer; }

@media (max-width:640px) {
  h1, .hero h1 { font-size:1.6rem; }
  .hero { padding:20px 18px 16px; }
  nav a { margin-left:0; margin-right:14px; }
  table.list thead { display:none; }
  table.list td { display:block; border:0; padding:3px 12px; }
  table.list tr { display:block; border-bottom:1px solid var(--line); padding:8px 0; }
  dl.facts { grid-template-columns:1fr; gap:2px; } dl.facts dd { margin-bottom:8px; }
}
