:root {
  --ink: #1c2733;
  --muted: #5a6a7a;
  --line: #c9d2da;
  --bg: #eef1f4;
  --panel: #ffffff;
  --navy: #10375c;
  --navy-dark: #0b2942;
  --navy-light: #16528a;
  --link: #0b57b8;
  --ok: #1d7a4c;
  --warn: #9a6100;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font: 15px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 0.88em;
  background: #f2f5f8;
  border: 1px solid #dce3e9;
  border-radius: 3px;
  padding: 0.05rem 0.35rem;
}
pre { padding: 0.7rem 0.9rem; overflow-x: auto; }
h1 { font-size: 1.5rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 0 0 0.35rem; }
p { margin: 0 0 0.75rem; }
ul, ol { margin: 0 0 0.75rem 1.25rem; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1rem; }

/* Utility strip + header: classic tab bar */
.utility {
  background: var(--navy-dark);
  color: #c3d5e8;
  font-size: 0.78rem;
  padding: 0.3rem 0;
}
.utility .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.utility a { color: #9fd0ff; }

header.masthead { background: var(--navy); border-bottom: 3px solid var(--navy-dark); }
header.masthead .wrap {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  flex-wrap: wrap;
  min-height: 54px;
}
.brand {
  display: flex;
  align-items: center;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.brand:hover { text-decoration: none; }
.brand span { color: #7fd4ff; }
.brand small {
  margin-left: 0.55rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #9ec3e4;
}
nav.tabs { display: flex; align-items: stretch; margin-left: auto; flex-wrap: wrap; }
nav.tabs a {
  display: flex;
  align-items: center;
  padding: 0 0.95rem;
  color: #dbe9f7;
  font-weight: 600;
  font-size: 0.92rem;
}
nav.tabs a:hover { background: var(--navy-light); text-decoration: none; color: #fff; }
nav.tabs a.active {
  background: var(--navy-dark);
  color: #fff;
  box-shadow: inset 0 -3px 0 #7fd4ff;
}
nav.tabs a.cta {
  background: #1f7a4d;
  color: #fff;
  margin-left: 0.5rem;
}
nav.tabs a.cta:hover { background: #268f5b; }

/* Two-column layout */
main { flex: 1; padding: 1.4rem 0 2.4rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 1.1rem; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

article.content { min-width: 0; }
section.box, aside .box {
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 1.1rem;
}
.box > h2.boxhead, .box > h3.boxhead {
  margin: 0;
  padding: 0.5rem 0.85rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.box > .body { padding: 0.85rem 1rem; }
.box > .body > :last-child { margin-bottom: 0; }

/* Hero (quiet, informational) */
.hero { border-left: 4px solid var(--navy); }
.hero h1 { margin-bottom: 0.3rem; }
.hero .tagline { color: var(--muted); font-size: 1.02rem; margin-bottom: 0.8rem; }
.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.6rem; }
.btn {
  display: inline-block;
  padding: 0.5rem 1.05rem;
  border-radius: 4px;
  border: 1px solid var(--link);
  font-weight: 600;
  font-size: 0.92rem;
  background: #fff;
  color: var(--link);
}
.btn:hover { background: #eaf2fc; text-decoration: none; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-light); }
.btn.ok { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.btn.ok:hover { background: #268f5b; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 0.45rem 0.6rem; border-bottom: 1px solid #e3e9ee; text-align: left; }
th {
  background: #f0f4f8;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
tr:last-child td { border-bottom: none; }
td.mono, .mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.84rem; }

/* Program cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; }
.card { border: 1px solid var(--line); background: #fbfcfd; padding: 0.75rem 0.85rem; }
.card h3 { font-size: 0.95rem; }
.card p { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.45rem; }
.card .path { font-family: ui-monospace, Consolas, monospace; font-size: 0.74rem; color: var(--warn);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { font-size: 0.78rem; color: var(--muted); }
.meta .pill {
  display: inline-block; border: 1px solid var(--line); border-radius: 99px;
  padding: 0 0.5rem; margin-right: 0.3rem; background: #f6f8fa;
}
.meta .pill.live { color: var(--ok); border-color: #a9d8bf; background: #eefaf3; }

/* Form controls */
input[type="search"] {
  width: 100%;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

/* Homepage posts */
.post { border-bottom: 1px dashed #e3e9ee; padding: 0.7rem 0; }
.post:last-child { border-bottom: none; padding-bottom: 0; }
.post h3 { margin: 0 0 0.2rem; font-size: 1.02rem; }
.post .meta { margin-bottom: 0.35rem; }
.post-body { white-space: pre-wrap; }

/* Steps */
ol.steps { margin-left: 1.1rem; }
ol.steps li { margin-bottom: 0.45rem; }

/* Sidebar */
aside .box .body { font-size: 0.88rem; }
aside ul { list-style: none; margin: 0; }
aside ul li { padding: 0.22rem 0; border-bottom: 1px dashed #e3e9ee; }
aside ul li:last-child { border-bottom: none; }
.live-list li { display: flex; justify-content: space-between; gap: 0.5rem; }

footer.site {
  background: var(--navy-dark);
  color: #a9c1d9;
  font-size: 0.82rem;
  padding: 1.2rem 0;
}
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
footer.site h4 {
  color: #fff; font-size: 0.72rem; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 0.4rem;
}
footer.site a { color: #9fd0ff; }
footer.site ul { list-style: none; margin: 0; }
footer.site .fine { border-top: 1px solid #1d3d5c; margin-top: 1rem; padding-top: 0.7rem; font-size: 0.76rem; }
