/* CivOps Academy course player. Dark, cinematic, readable: the CivOps palette, big type, film grain on chapter
   openers, and an LMS-grade frame (outline rail, progress, glossary, references, notes). Works inside an LMS iframe,
   offline, on a phone at 360 px, with keyboard only, and with reduced motion. */
:root {
  --ink: #0A0F14; --panel: #111A20; --panel2: #162028; --grid: #25404A; --line: rgba(182,200,209,.16);
  --text: #F2F6F8; --muted: #B6C8D1; --dim: #8FA3AD;
  --green: #3DDC97; --cyan: #00A7C8; --amber: #F4B942; --rose: #FF8A7A;
  --display: "Geist", "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rail: 304px; --top: 60px;
  color-scheme: dark;
}
:root[data-page="light"] { --ink: #F5F7F8; --panel: #FFFFFF; --panel2: #EEF2F4; --grid: #C9D5DA; --line: rgba(10,15,20,.12);
  --text: #0B1217; --muted: #3F515B; --dim: #5B6D77; --green: #0A7F52; --cyan: #00748B; --amber: #8A5E00; --rose: #A8352A; color-scheme: light; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Frame: top bar, outline rail, stage ---- */
.top { position: fixed; inset: 0 0 auto 0; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 30; }
.top .brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top .mark { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, var(--green), var(--cyan)); flex: none; }
.top .ctitle { font: 600 15px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .ctitle small { display: block; font: 500 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.top .spacer { flex: 1; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 10px;
  border-radius: 8px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14px; }
.iconbtn:hover { border-color: var(--grid); background: var(--panel); }
.iconbtn svg { width: 18px; height: 18px; }
.ring { width: 44px; height: 44px; flex: none; }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: var(--grid); } .ring .fg { stroke: var(--green); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .6s ease; }
.ring text { font: 600 11px var(--mono); fill: var(--text); }

.rail { position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--rail); overflow-y: auto; border-right: 1px solid var(--line);
  background: var(--panel); padding: 16px 12px 40px; z-index: 20; }
.rail h2 { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 8px 8px 12px; }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail a { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.3; }
.rail a:hover { background: var(--panel2); }
.rail a[aria-current="true"] { background: var(--panel2); box-shadow: inset 3px 0 0 var(--amber); }
.rail .num { font: 600 12px var(--mono); color: var(--muted); text-align: center; }
.rail .dur { font: 500 11px var(--mono); color: var(--dim); }
.rail .done .num { color: var(--ink); background: var(--green); border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; justify-self: center; }
.rail .meta { margin: 20px 8px 0; font-size: 13px; color: var(--muted); display: grid; gap: 6px; }

.stage { margin-left: var(--rail); padding-top: var(--top); min-height: 100%; }
@media (max-width: 960px) {
  .rail { transform: translateX(-100%); transition: transform .25s ease; width: min(88vw, 340px); box-shadow: 0 0 40px rgba(0,0,0,.5); }
  body.rail-open .rail { transform: none; }
  .stage { margin-left: 0; }
}
@media (min-width: 961px) { .menu-btn { display: none; } }

/* ---- Chapter opener: the cinematic title card (or the chapter's film when one exists) ---- */
.opener { position: relative; isolation: isolate; overflow: hidden; min-height: min(78vh, 680px); display: flex; align-items: flex-end;
  background: #05080B; color: #F2F6F8; }
.opener video, .opener .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.opener::before { content: ""; position: absolute; inset: -20%; z-index: -2; pointer-events: none;
  background: radial-gradient(60% 40% at 70% 35%, color-mix(in srgb, var(--accent, #3DDC97) 22%, transparent), transparent 70%),
              radial-gradient(40% 30% at 15% 80%, rgba(0,167,200,.12), transparent 70%); animation: drift 24s ease-in-out infinite alternate; }
.opener .sweep { position: absolute; left: -40%; right: -40%; height: 2px; top: 34%; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--accent, #3DDC97), transparent); filter: blur(.5px); box-shadow: 0 0 24px 6px color-mix(in srgb, var(--accent, #3DDC97) 40%, transparent);
  animation: sweep 9s ease-in-out infinite; opacity: .8; }
.opener .grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }
.opener .vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(0,0,0,.75)),
  linear-gradient(180deg, rgba(5,8,11,0) 40%, rgba(5,8,11,.9)); }
.opener .bars::before, .opener .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 6%; background: #000; z-index: 2; }
.opener .bars::before { top: 0; } .opener .bars::after { bottom: 0; }
.opener .titles { position: relative; z-index: 3; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px) clamp(56px, 9vh, 96px); }
.opener .eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent, #3DDC97); }
.opener h1 { font: 700 clamp(34px, 6vw, 72px)/1.02 var(--display); letter-spacing: -.02em; margin: 14px 0 0; max-width: 16ch; text-wrap: balance; }
.opener .lede { margin-top: 18px; max-width: 58ch; font-size: clamp(17px, 1.6vw, 20px); color: #C9D7DE; }
.opener .facts { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; font: 500 13px var(--mono); color: #B6C8D1; }
.opener .titles > * { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.opener .titles > *:nth-child(2) { animation-delay: .15s; } .opener .titles > *:nth-child(3) { animation-delay: .3s; } .opener .titles > *:nth-child(4) { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sweep { 0% { transform: translateX(-30%) scaleX(.6); opacity: 0; } 30% { opacity: .9; } 70% { opacity: .9; } 100% { transform: translateX(30%) scaleX(1.1); opacity: 0; } }
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 1%, 0) scale(1.06); } }

/* ---- Reading column ---- */
.chapter { display: none; }
.chapter.on { display: block; }
.body { max-width: 860px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px) 40px; }
.body h2 { font: 700 clamp(26px, 3vw, 34px)/1.15 var(--display); letter-spacing: -.01em; margin: 56px 0 14px; text-wrap: balance; scroll-margin-top: 80px; }
.body h2:first-child { margin-top: 0; }
.body h3 { font: 600 20px/1.3 var(--display); margin: 32px 0 8px; }
.body p, .body li { max-width: 70ch; }
.body ul, .body ol { padding-left: 1.2em; }
.body li { margin: 6px 0; }
.body code { font: 500 .9em var(--mono); background: var(--panel2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.body pre { background: #070B0F; color: #DCE7EC; border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow-x: auto; font: 500 14px/1.55 var(--mono); }
.body pre code { background: none; border: 0; padding: 0; }
.kicker { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.objectives { margin: 0 0 32px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.objectives h2 { font: 600 16px var(--display); margin: 0 0 8px; }
.objectives ul { margin: 0; }

.callout { margin: 24px 0; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); border-left: 4px solid var(--cyan); }
.callout.lesson { border-left-color: var(--amber); } .callout.warn { border-left-color: var(--rose); } .callout.key { border-left-color: var(--green); }
.callout .t { font: 600 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.callout p { margin: 6px 0; }

figure.fig { margin: 32px 0; }
figure.fig .art { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 12px; overflow-x: auto; }
figure.fig svg { display: block; width: 100%; height: auto; min-width: 520px; }
figure.fig.narrow svg { min-width: 0; }
figure.fig figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 70ch; }
figure.fig figcaption b { color: var(--text); font-weight: 600; }

.tablewrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--panel2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 24px 0; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.stat b { display: block; font: 700 30px/1.1 var(--display); color: var(--green); font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }

/* Exercises: numbered steps the learner ticks off; kept in progress. */
.exercise { margin: 32px 0; border: 1px solid color-mix(in srgb, var(--green) 45%, var(--line)); border-radius: 14px; background: var(--panel); overflow: hidden; }
.exercise header { padding: 16px 18px; background: color-mix(in srgb, var(--green) 10%, var(--panel)); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.exercise header b { font: 700 18px var(--display); }
.exercise header span { font: 500 12px var(--mono); color: var(--muted); }
.exercise .inner { padding: 8px 18px 18px; }
.exercise ol.steps { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.exercise ol.steps label { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 10px; border-radius: 8px; cursor: pointer; min-height: 44px; }
.exercise ol.steps label:hover { background: var(--panel2); }
.exercise input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); }
.exercise .result { font-size: 15px; color: var(--muted); }

/* Knowledge checks */
.check { margin: 32px 0; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.check .q { font: 600 18px/1.4 var(--display); margin: 0 0 12px; }
.check .opts { display: grid; gap: 8px; }
.check .opt { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; text-align: left; padding: 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel2); cursor: pointer; min-height: 48px; font-size: 16px; }
.check .opt:hover { border-color: var(--grid); }
.check .opt .k { font: 600 13px var(--mono); color: var(--muted); padding-top: 2px; }
.check .opt[aria-pressed="true"] { border-color: var(--amber); }
.check .opt.right { border-color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--panel2)); }
.check .opt.wrong { border-color: var(--rose); background: color-mix(in srgb, var(--rose) 10%, var(--panel2)); }
.check .why { margin-top: 12px; font-size: 15px; color: var(--muted); }
.check .why b { color: var(--text); }

.refs { margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.refs h2 { font: 600 16px var(--display); margin: 0 0 10px; }
.refs ol { font-size: 14px; color: var(--muted); padding-left: 1.4em; }
.refs li { margin: 6px 0; overflow-wrap: anywhere; }
sup.r a { font: 600 11px var(--mono); text-decoration: none; padding: 0 2px; }

.nav { max-width: 860px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 80px; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); cursor: pointer; font-weight: 600; text-decoration: none; color: var(--text); }
.btn:hover { border-color: var(--grid); }
.btn.primary { background: var(--amber); color: #0A0F14; border-color: var(--amber); }
.btn.primary:hover { filter: brightness(1.06); }

/* Drawers: glossary, references, notes */
.drawer { position: fixed; top: var(--top); right: 0; bottom: 0; width: min(440px, 100vw); background: var(--panel); border-left: 1px solid var(--line); z-index: 40;
  transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; box-shadow: -20px 0 40px rgba(0,0,0,.4); }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--line); }
.drawer header b { font: 600 16px var(--display); }
.drawer .scroll { overflow-y: auto; padding: 12px 18px 40px; }
.drawer dl { margin: 0; } .drawer dt { font-weight: 600; margin-top: 14px; } .drawer dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.drawer input[type=search] { width: 100%; min-height: 44px; font-size: 16px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); }
.drawer textarea { width: 100%; min-height: 50vh; font: 16px/1.5 var(--body); padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--grid); padding: 10px 16px; border-radius: 10px; z-index: 50; font-size: 15px; display: none; }
.toast.on { display: block; }

/* Final assessment */
.assess .score { font: 700 48px var(--display); color: var(--green); }
.cert { margin: 24px 0; padding: 28px; border-radius: 16px; border: 1px solid var(--grid); background: linear-gradient(135deg, color-mix(in srgb, var(--green) 10%, var(--panel)), var(--panel)); text-align: center; }
.cert h3 { font: 700 28px var(--display); margin: 8px 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .top, .rail, .nav, .drawer { display: none !important; } .stage { margin: 0; padding: 0; } .chapter { display: block !important; break-after: page; } .opener { min-height: 0; padding-top: 40px; } }

/* ---- Diagram classes (figures are inline SVG and follow the page theme) ---- */
.f-bg { fill: var(--panel); }
.f-box { fill: var(--panel2); stroke: var(--grid); stroke-width: 1.5; }
.f-box.g { stroke: var(--green); } .f-box.c { stroke: var(--cyan); } .f-box.a { stroke: var(--amber); } .f-box.r { stroke: var(--rose); }
.f-fill-g { fill: color-mix(in srgb, var(--green) 18%, var(--panel2)); stroke: var(--green); stroke-width: 1.5; }
.f-fill-c { fill: color-mix(in srgb, var(--cyan) 18%, var(--panel2)); stroke: var(--cyan); stroke-width: 1.5; }
.f-fill-a { fill: color-mix(in srgb, var(--amber) 18%, var(--panel2)); stroke: var(--amber); stroke-width: 1.5; }
.f-fill-r { fill: color-mix(in srgb, var(--rose) 16%, var(--panel2)); stroke: var(--rose); stroke-width: 1.5; }
.f-zone { fill: none; stroke: var(--grid); stroke-width: 1.5; stroke-dasharray: 6 5; }
.f-zone.a { stroke: var(--amber); } .f-zone.r { stroke: var(--rose); } .f-zone.g { stroke: var(--green); } .f-zone.c { stroke: var(--cyan); }
.f-line { stroke: var(--muted); stroke-width: 1.6; fill: none; }
.f-line.g { stroke: var(--green); } .f-line.c { stroke: var(--cyan); } .f-line.a { stroke: var(--amber); } .f-line.r { stroke: var(--rose); }
.f-line.thin { stroke-width: 1; opacity: .55; } .f-line.dash { stroke-dasharray: 5 4; }
.f-t { fill: var(--text); font: 600 15px var(--body); }
.f-t.s { font-size: 13.5px; font-weight: 500; } .f-t.xs { font-size: 12px; font-weight: 500; } .f-t.l { font-size: 18px; font-weight: 700; }
.f-t.m { fill: var(--muted); } .f-t.mono { font-family: var(--mono); }
.f-t.g { fill: var(--green); } .f-t.c { fill: var(--cyan); } .f-t.a { fill: var(--amber); } .f-t.r { fill: var(--rose); }
.f-dot { fill: var(--muted); } .f-dot.g { fill: var(--green); } .f-dot.c { fill: var(--cyan); } .f-dot.a { fill: var(--amber); } .f-dot.r { fill: var(--rose); }
.f-bar { fill: var(--cyan); } .f-bar.g { fill: var(--green); } .f-bar.a { fill: var(--amber); } .f-bar.r { fill: var(--rose); } .f-bar.m { fill: var(--grid); }
.f-arrowhead { fill: var(--muted); }

/* ---- Final assessment rows, code blocks, calculator, top-bar labels ---- */
.aq { margin: 24px 0; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.aq legend.q { font: 600 18px/1.4 var(--display); padding: 0 6px; }
.aq .opts { display: grid; gap: 8px; margin-top: 8px; }
.aq .opt { display: grid; grid-template-columns: 24px 28px 1fr; gap: 8px; align-items: start; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; min-height: 48px; font-size: 16px; }
.aq .opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--amber); }
.aq .opt .k { font: 600 13px var(--mono); color: var(--muted); padding-top: 2px; }
.aq .opt:has(input:checked) { border-color: var(--amber); }
.aq .opt.right { border-color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--panel2)); }
.aq .opt.wrong { border-color: var(--rose); background: color-mix(in srgb, var(--rose) 10%, var(--panel2)); }
.aq .why { margin-top: 12px; font-size: 15px; color: var(--muted); } .aq .why b { color: var(--text); }
.assess-result { margin-top: 32px; padding: 24px; border-radius: 14px; border: 1px solid var(--grid); background: var(--panel); }
.cnote { font-size: 15px; color: var(--muted); }
figure.codeblock { margin: 24px 0; } figure.codeblock figcaption { margin-bottom: 8px; }
.calc { margin: 24px 0; padding: 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--amber) 45%, var(--line)); background: var(--panel); }
.calc .cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.calc .cf { display: grid; gap: 4px; font-size: 15px; }
.calc .cf small { color: var(--dim); font-size: 13px; }
.calc input, .calc select { min-height: 44px; font-size: 16px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); width: 100%; }
.calc .cout { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.calc .cout div { padding: 14px; border-radius: 10px; background: var(--panel2); }
.calc .cout b { display: block; font: 700 26px/1.1 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; }
.calc .cout span { font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .top .lbl { display: none; } .top .ctitle { font-size: 14px; } .top { gap: 6px; padding: 0 8px; } .top .brand .mark { display: none; } }

/* Diagrams: wider than the text column on large screens; on phones they keep a readable size and scroll sideways. */
@media (min-width: 1280px) { figure.fig { margin-left: -110px; margin-right: -110px; } figure.fig figcaption { margin-left: 110px; margin-right: 110px; } }
@media (max-width: 720px) { figure.fig svg { min-width: 820px; } figure.fig .art::after { content: "Swipe sideways to see the whole diagram"; display: block; position: sticky; left: 0; font-size: 13px; color: var(--dim); margin-top: 6px; } }
.opener h1:focus { outline: none; }

/* Way back to the Academy page, shown only when the course is opened on its own (not inside an LMS). */
.rail .home-crumb { display: flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 8px 8px; padding: 0 8px; border-radius: 8px; font-size: 15px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); }
.rail .home-crumb:hover { color: var(--text); border-color: var(--grid); }
.rail .home-crumb[hidden] { display: none; }
.rail .home-crumb span { color: var(--dim); }
