:root {
  --stage: #111111; --panel: #262626; --panel-2: #333333; --sink: #ffffff; --muted: #aea79f; --line: #4d4d4d; --accent: #e95420; --cable: #ffffff; --danger: #e36a5c;
  --font-ui: "Ubuntu", system-ui, sans-serif; --font-mono: "Ubuntu Mono", ui-monospace, monospace;
  --hi-fill: #3d2419; --app-fill: #3a3a3a; --term-fill: #0d0d0d; --district: #3a3a3a; --road: #5a5a5a; --node-line: #6a6a6a;
  /* journeys: a line in --journey over a casing in --journey-case; the special
     one ("start here") in --journey-special, wider and with a soft glow. The
     ink colours are the badge numbers drawn on those fills. */
  --journey: var(--accent); --journey-ink: #ffffff; --journey-special: #ffc83d; --journey-special-ink: #1a1a1a; --journey-case: var(--stage);
  /* audience colours (--aud-<id>) and .aud-<id> classes are generated from site.json */
}
.slide svg text { font-family: var(--font-ui); font-size: 16px; fill: var(--sink); }
.slide svg .title { font-weight: 300; font-size: 54px; }
.slide svg .kicker { font-weight: 500; font-size: 20px; fill: var(--accent); letter-spacing: 0.08em; }
.slide svg .big { font-weight: 400; font-size: 30px; }
.slide svg .mono { font-family: var(--font-mono); font-size: 16px; white-space: pre; }
.slide svg .mono.sm { font-size: 14px; }
.slide svg .muted { fill: var(--muted); }
.slide svg .box { fill: var(--panel-2); stroke: var(--line); stroke-width: 1.5; }
.slide svg .snapbox { fill: none; stroke: var(--sink); stroke-width: 2; }
.slide svg .app { fill: var(--app-fill); stroke: var(--sink); stroke-width: 1.5; }
.slide svg .hi { fill: var(--hi-fill); stroke: var(--accent); stroke-width: 2; }
.slide svg .plug { fill: var(--stage); stroke: var(--cable); stroke-width: 2; }
.slide svg .plug.off { stroke: var(--line); }
.slide svg .sys { fill: var(--panel-2); stroke: var(--muted); stroke-width: 1.5; }
.slide svg .cable { stroke: var(--cable); stroke-width: 2.5; fill: none; }
.slide svg .cable.off { stroke: var(--line); stroke-dasharray: 3 5; }
.slide svg .edge { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.slide svg .accent { fill: var(--accent); }
.slide svg .badtext { fill: var(--danger); }
.slide svg .term { fill: var(--term-fill); stroke: var(--line); }
.slide svg .cut { stroke: var(--danger); stroke-width: 4; }
.slide svg .attach { stroke: var(--accent); stroke-width: 2.5; fill: none; stroke-dasharray: 8 5; }

/* ---- reading pages (dist/<topic>/index.html): one deck as a static page, every step shown ---- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--stage); color: var(--sink); font-family: var(--font-ui); font-size: 17px; line-height: 1.55; border-top: 4px solid var(--accent); }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px 60px; }
a { color: var(--accent); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--muted); padding: 14px 0 10px; border-bottom: 1px solid var(--line); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--sink); }
.deckhead h1 { font-weight: 300; font-size: 2rem; line-height: 1.2; margin: 18px 0 4px; }
.deckhead .kind { color: var(--muted); font-size: 15px; margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.deckhead .lead { font-size: 1.1rem; margin: 6px 0; max-width: 75ch; }
.deckhead .place { color: var(--muted); font-size: 15px; margin: 4px 0 12px; }
.chip { font-size: 13px; color: #fff; background: var(--aud, var(--panel-2)); border-radius: 999px; padding: 2px 10px; vertical-align: middle; font-weight: 400; white-space: nowrap; }
.chip.alt { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
a.watch { display: inline-block; font-weight: 500; color: var(--stage); background: var(--accent); border-radius: 8px; padding: 8px 16px; text-decoration: none; margin: 4px 0 8px; }
a.watch:hover { filter: brightness(1.1); }
.before, .journeys { margin: 10px 0; padding: 10px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.before h2, .journeys h2 { font-size: 1rem; font-weight: 500; margin: 0 0 4px; }
.before ul, .journeys ul { margin: 0; padding-left: 1.2em; }
.scene { margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.scene > h2 { font-weight: 500; font-size: 1.3rem; margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.scene > h2 .n { color: var(--accent); font-size: 0.95rem; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.slide { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.slide svg { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; background: var(--panel); }
.slide figcaption { font-size: 13px; color: var(--muted); padding: 6px 14px 8px; border-top: 1px solid var(--line); }
.scene .short { color: var(--muted); margin: 10px 0 6px; }
.scene .say { margin: 6px 0; max-width: 80ch; }
.scene audio { display: block; width: 100%; max-width: 480px; margin: 8px 0; }
.details { font-size: 15px; margin: 10px 0 0; padding: 4px 16px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.details > h3 { font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); margin: 6px 0; }
.ref-sec .for { margin: 8px 0 0; }
code, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre { font-size: 14px; background: var(--term-fill); color: var(--sink); padding: 10px 14px; border-radius: 8px; overflow-x: auto; }
.ref-table { overflow-x: auto; }
table { border-collapse: collapse; font-size: 14px; margin: 4px 0 10px; }
th, td { text-align: left; vertical-align: top; padding: 4px 12px 4px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 500; color: var(--muted); }
.reference, .roads { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line); }
.reference > h2, .roads > h2 { font-weight: 400; font-size: 1.5rem; margin: 0 0 8px; }
.reference h3, .reference h4 { font-weight: 500; margin: 18px 0 6px; }
.toc ol { margin: 0 0 8px; padding: 8px 14px 8px 2.2em; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; columns: 2 260px; column-gap: 28px; font-size: 14px; }
.toc li { break-inside: avoid; }
.toc a { color: var(--sink); }
.roads h3 { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); margin: 14px 0 4px; }
.roads ul { margin: 0; padding-left: 1.2em; }
footer { margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer p { margin: 4px 0; }
@media (max-width: 700px) { body { font-size: 15px; } .deckhead h1 { font-size: 1.6rem; } }
:root { --aud-users: #0e8420; --aud-app-developers: #e95420; --aud-core-developers: #0b7285; --aud-snapd-developers: #772953; --aud-admins: #8a7a5a; --aud-everyone: #6b6b6b; }
.aud-users { --aud: var(--aud-users); } .aud-app-developers { --aud: var(--aud-app-developers); } .aud-core-developers { --aud: var(--aud-core-developers); } .aud-snapd-developers { --aud: var(--aud-snapd-developers); } .aud-admins { --aud: var(--aud-admins); } .aud-everyone { --aud: var(--aud-everyone); }
/* snapd map theme: the engine defaults are the Ubuntu dark palette this map was drawn in. */
.catalogue summary .tag.cls-privilege { border-color: #772953; }

/* search: what a hit is and where it leads */
.search .results .kind { display: inline-block; font-family: var(--font-ui); font-size: 11px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 4px; padding: 1px 6px; margin-right: 8px; vertical-align: 1px; border: 1px solid var(--line); color: var(--muted); }
.search .results .k-deck { color: var(--stage); background: var(--accent); border-color: var(--accent); }
.search .results .k-iface { color: var(--sink); border-color: var(--aud-app-developers, var(--line)); }
.search .results .k-cmd { color: var(--sink); border-color: var(--aud-snapd-developers, var(--line)); }
.search .results .k-area { color: var(--sink); border-color: var(--aud-core-developers, var(--line)); }
.search .results .deckname { font-family: var(--font-ui); font-weight: 500; }
.search .results .to { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
