/* Round 5: today's identity, a fresh treatment for each section. On top of style.css, docs.css
   and round 4's r4.css. The palette, fonts, wordmark, mark, waves and terminals are today's. */

/* The severity colours as one system: sev0 red, sev1 yellow, sev2 sky, sev3 white. Warnings,
   the --yes step and sev1 share yellow; notes, the plan and sev2 share sky. Monitoring is sky,
   security teal, wherever the two sit side by side. */
:root {
  --sev0: #f87171; --sev1: #facc15; --sev2: #0ea5e9; --sev3: #eaf7ff;
  --mon: #0ea5e9; --sec: #2dd4bf;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Every section's heading: the command that prints what it shows, then the plain title. */
.cmdline { margin: 0 0 10px; font: 500 14px/1.4 var(--mono); color: var(--muted); font-variant-ligatures: none; }
.cmdline .cur { display: inline-block; width: .55em; height: 1.1em; margin-left: .3em; vertical-align: -3px; background: var(--teal); opacity: .55; animation: blink 1.1s steps(1) infinite; }

/* Hero: the wordmark stands on the water, its reflection under it. */
.hero h1.wordmark.sea { margin-bottom: 0; }
.reflect {
  position: relative; height: .52em; margin: -.15em 0 20px; overflow: hidden;
  font: 700 clamp(56px, 9vw, 96px)/1.02 var(--mono); letter-spacing: -0.04em;
  pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .25) 45%, transparent 92%);
          mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .25) 45%, transparent 92%);
}
.reflect span { display: block; width: max-content; margin-top: -.87em; transform-origin: 0 .87em; transform: scaleY(-1); filter: url(#ripple); opacity: .4; }
/* The waterline: where the wall meets the sea. */
.reflect::before {
  content: ""; position: absolute; z-index: 1; left: -6px; top: 0; width: 4.35em; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, .8) 12%, rgba(14, 165, 233, .7) 70%, transparent);
  box-shadow: 0 0 12px rgba(45, 212, 191, .5);
}

/* Intro: the simple question in full size, the questions after it as ways into the page. */
.intro-q { margin: 0 0 14px; font: 750 clamp(30px, 3.4vw, 42px)/1.1 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.intro-asks { list-style: none; margin: 0 0 24px; padding: 0; max-width: 40em; border-top: 1px solid var(--line); }
.intro-asks li { border-bottom: 1px solid var(--line); }
.intro-asks a {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 52px; padding: 8px 6px; color: var(--muted); text-decoration: none; font-size: 18px; line-height: 1.45;
}
.intro-asks a:hover, .intro-asks a:focus-visible { color: var(--text); background: rgba(45, 212, 191, .05); }
.intro-asks .go { flex: none; font: 600 13px var(--mono); color: var(--teal); white-space: nowrap; }
.intro-asks .go::after { content: " \2193"; }
.intro-copy > .intro-body:first-child { margin-bottom: 8px; color: var(--muted); }

/* Monitoring and security: the host as a wall of layers, what watches each on the left and
   what guards it on the right, then where an alert goes. */
.wall {
  margin: 4px 0 34px; padding: 24px 26px 26px; border: 1px solid var(--line-2); border-radius: 18px;
  background: radial-gradient(760px 260px at 50% 0%, rgba(14, 165, 233, .09), transparent 70%), var(--panel);
}
.wall-cols, .course { display: grid; grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr); gap: 0 22px; align-items: center; }
.wall-cols { margin-bottom: 14px; font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.wall-cols span { display: inline-flex; align-items: center; gap: 8px; }
.wc-mon { grid-column: 1; justify-self: end; color: var(--mon); }
.wc-sec { grid-column: 3; color: var(--sec); }
.wall-cols svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.courses { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.course { position: relative; }
/* A thin line from each side's tools to its layer. */
.course::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(14, 165, 233, .45) 30%, rgba(14, 165, 233, .45) 50%, rgba(45, 212, 191, .45) 50%, rgba(45, 212, 191, .45) 70%, transparent 96%);
}
.course ul { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.course .watch { justify-content: flex-end; }
/* The stones: narrower at the top, as a sea wall is built. */
.stone {
  position: relative; justify-self: center; display: grid; place-items: center; height: 56px;
  font: 600 16px var(--mono); color: var(--white); border-radius: 9px;
  background: linear-gradient(180deg, #16344f, #0d2236); border: 1px solid rgba(148, 197, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 12px 24px -16px rgba(0, 0, 0, .9);
}
.course:nth-child(1) .stone { width: 150px; }
.course:nth-child(2) .stone { width: 180px; }
.course:nth-child(3) .stone { width: 210px; background: linear-gradient(180deg, #123048, #0a1c2d); }
.chip-t {
  display: inline-flex; align-items: center; min-height: 30px; padding: 3px 11px; border-radius: 999px;
  font: 13px var(--mono); color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2);
  font-variant-ligatures: none;
}
.chip-t.mon { border-color: rgba(14, 165, 233, .5); color: #c4e8fb; }
.chip-t.sec { border-color: rgba(45, 212, 191, .5); color: #b9f5ec; }
.flow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 22px; align-items: start; margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.flow-from { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 40px; }
.flow-from::after { content: "\2192"; margin-left: 6px; color: var(--faint); font: 16px var(--mono); }
.arr { color: var(--faint); font: 16px var(--mono); }
.sevscale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 4px; }
.sv { display: flex; align-items: center; justify-content: center; height: 40px; padding: 0; border-radius: 7px; font: 700 13px var(--mono); }
.sv.s0 { background: rgba(248, 113, 113, .16); color: var(--sev0); box-shadow: inset 0 -3px 0 var(--sev0); }
.sv.s1 { background: rgba(250, 204, 21, .13); color: var(--sev1); box-shadow: inset 0 -3px 0 var(--sev1); }
.sv.s2 { background: rgba(14, 165, 233, .15); color: #38bdf8; box-shadow: inset 0 -3px 0 var(--sev2); }
.sv.s3 { background: rgba(234, 247, 255, .07); color: var(--sev3); box-shadow: inset 0 -3px 0 rgba(234, 247, 255, .6); }
.sv-route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 6px 0 0; padding-top: 10px; font-size: 15px; color: var(--text); border-top: 2px solid; }
.sv-route.r01 { grid-column: 1 / 3; border-image: linear-gradient(90deg, var(--sev0), var(--sev1)) 1; }
.sv-route.r23 { grid-column: 3 / 5; border-image: linear-gradient(90deg, var(--sev2), rgba(234, 247, 255, .6)) 1; color: var(--muted); }
.pcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 44px; }
.pcol { scroll-margin-top: 90px; padding-top: 20px; border-top: 2px solid var(--mon); }
#security.pcol { border-top-color: var(--sec); }
.pcol h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 24px; }
.pcol h3 svg { width: 38px; height: 38px; padding: 8px; border-radius: 10px; fill: none; stroke: var(--mon); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; background: rgba(14, 165, 233, .10); border: 1px solid rgba(14, 165, 233, .3); }
#security.pcol h3 svg { stroke: var(--sec); background: rgba(45, 212, 191, .10); border-color: rgba(45, 212, 191, .3); }
.pcol > p { margin: 0 0 18px; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.pcol .ticks { margin: 0; }
#monitoring .ticks li::before { border-color: var(--mon); }

/* Features: a command explorer. Every command in a list; one open beside it, with what it prints. */
.explorer { border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); overflow: hidden; }
.ex-on .explorer { display: grid; grid-template-columns: 286px minmax(0, 1fr); }
.ex-list { display: none; }
.ex-on .ex-list { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--line); background: rgba(5, 13, 22, .45); }
.ex-list button {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px;
  border: 0; border-radius: 10px; background: none; color: var(--muted); font: 14.5px/1.3 var(--sans); text-align: left; cursor: pointer;
}
.ex-list button svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ex-list button code { padding: 0; background: none; color: inherit; font-size: 13.5px; }
.ex-list button:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.ex-list button[aria-selected="true"] { color: var(--text); background: rgba(45, 212, 191, .10); box-shadow: inset 2px 0 0 var(--teal); }
.ex-list button[aria-selected="true"] svg { stroke: var(--teal); }
.ex-panels { min-width: 0; }
.ex-panel { padding: 26px 28px 28px; }
.ex-panel + .ex-panel { border-top: 1px solid var(--line); }
.ex-on .ex-panel + .ex-panel { border-top: 0; }
.ex-on .ex-panel[hidden] { display: none; }
.ex-panel h3 { margin: 0 0 10px; font: 700 26px/1.2 var(--mono); letter-spacing: -0.02em; color: var(--muted); }
.ex-panel h3 code { padding: 0; background: none; color: var(--teal); font-size: 1em; }
.ex-panel > p { margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 46em; }
.ex-panel > p a { color: var(--teal); }
.ex-term { display: none; }
.ex-on .ex-term { display: block; }
.ex-out { height: 290px; min-height: 0; padding: 14px 16px; overflow: auto; font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 32px), transparent); }
.ex-run.cmd { display: flex; justify-content: space-between; width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: rgba(5, 13, 22, .5); }

/* Screenshots: the TUI's own tab bar over the shot, the caption as its status line. */
.tui { padding: 4px 14px 14px; border: 1px solid var(--line-2); border-radius: 16px; background: #0a1521; box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9); }
.tui .tabs { flex-wrap: nowrap; gap: 0; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tui .tabs::-webkit-scrollbar { display: none; }
.tui .tabs button {
  position: relative; flex: none; padding: 0 14px; border: 0; border-radius: 0; background: none;
  font: 500 14px var(--mono); color: var(--muted); white-space: nowrap;
}
.tui .tabs button b { margin-right: .7ch; color: var(--teal); font-weight: 600; }
.tui .tabs button + button::before { content: "\00b7"; position: absolute; left: -3px; color: var(--faint); }
.tui .tabs button[aria-selected="true"] { color: var(--white); font-weight: 700; background: none; border: 0; box-shadow: inset 0 -2px 0 var(--teal); }
.tui .shot img { box-shadow: 0 0 0 1px var(--line); }
.tui .shot figcaption { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; }

/* Try it: one window, the commands in a pane beside the output. */
.demo.term { display: grid; grid-template-columns: 312px minmax(0, 1fr); grid-template-rows: auto auto; }
.demo .demo-out { white-space: pre-wrap; overflow-wrap: anywhere; }
.demo > .term-bar { grid-column: 1 / -1; }
.demo:focus-within { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(45, 212, 191, .35), 0 0 80px -30px rgba(14, 165, 233, .35); }
.demo .demo-picks {
  grid-column: 1; grid-row: 2; display: block; margin: 0; padding: 12px 10px;
  height: min(620px, 74vh); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent);
  border-right: 1px solid var(--line); background: rgba(5, 13, 22, .45);
}
.demo .demo-screen { grid-column: 2; grid-row: 2; height: min(620px, 74vh); }
.demo .pick-group + .pick-group { margin-top: 12px; }
.demo .pick-group h3 { margin: 0 0 4px; padding: 0 8px; }
.demo .pick-group div { display: grid; gap: 2px; }
.demo .pick { display: flex; align-items: center; width: 100%; padding: 4px 8px; border: 0; border-radius: 8px; text-align: left; font-size: 12px; overflow-wrap: anywhere; }
.demo .pick::before { content: "$\00a0"; color: var(--teal); }
.demo noscript { grid-column: 1 / -1; }

/* Memory: a map, each area in proportion to its size. */
.memory { grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.memory-copy { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0 56px; align-items: end; }
.memory-copy .cmdline, .memory-copy h2 { grid-column: 1; }
.memory-copy h2 { margin-bottom: 0; }
/* style.css sizes every paragraph here at 18 px. */
.memory-copy p.cmdline { font-size: 14px; color: var(--muted); }
.memory-copy p:not(.cmdline) { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.membar { padding: 22px 22px 20px; }
.membar-head { margin-bottom: 14px; }
.membar-head span:first-child { color: var(--teal); }
.memmap { position: relative; height: 320px; }
.mm {
  position: absolute; display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; overflow: hidden;
  color: #f2f8fc; box-shadow: inset 0 0 0 1px var(--panel);
}
.mm.on-light { color: #031018; }
.mm b { font: 650 13.5px/1.25 var(--sans); }
.mm em { font: 12px/1.3 var(--mono); font-style: normal; }
.mm-used { position: absolute; z-index: 2; box-shadow: 0 0 0 2px var(--teal); border-radius: 2px; pointer-events: none; }
.membar .legend { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 20px; font-size: 14px; }

/* Safety: the plan, then --yes, then the undo, as one run left to right. */
.safety .section-head { margin-bottom: 30px; }
.run { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 14px 20px; }
.run::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; background: linear-gradient(90deg, var(--sev2), var(--sev1) 50%, var(--teal)); opacity: .5; }
.step { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
.step-h { display: flex; align-items: center; gap: 12px; margin: 0; }
.step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 700 15px var(--mono); color: var(--sev2); background: var(--bg-2); border: 2px solid var(--sev2); }
.s-yes .step-n { color: var(--sev1); border-color: var(--sev1); }
.s-undo .step-n { color: var(--teal); border-color: var(--teal); }
.step-h code { position: relative; z-index: 1; padding: 2px 10px; background: var(--bg-2); color: var(--white); font: 700 18px var(--mono); }
.step .term { align-self: stretch; }
.step .term-body { min-height: 0; padding: 14px 16px; font-size: 12.5px; white-space: pre-wrap; }
.s-undo .term-body { display: flex; align-items: center; height: 100%; font-size: 14px; }
.s-undo .term-body .c-dim { color: #b9f5ec; }
.step-p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.step-p code { white-space: nowrap; }
.built { display: flex; align-items: flex-start; gap: 14px; margin: 26px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 13, 22, .45); color: var(--muted); font-size: 15.5px; }
.built svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Roadmap and Journey: one timeline. The plan in lanes, "you are here", then how it was built,
   newest first, down one rail. */
.roadmap .section-head { max-width: 760px; }
.lanes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lane { position: relative; padding-top: 40px; }
.lane::before { content: ""; position: absolute; left: 8px; right: -18px; top: 9px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.lane.now::before { background: linear-gradient(90deg, var(--teal), rgba(14, 165, 233, .45)); }
.lane:last-child::before { right: 0; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.lane::after { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.lane.now::after { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 0 4px var(--bg), 0 0 18px rgba(45, 212, 191, .6); }
.lane.next::after { border-color: var(--sky); }
.lane-h { position: absolute; top: 0; left: 28px; margin: 0; }
/* The chip stands on the rail: an opaque ground under its tint. */
.lane-h .chip { box-shadow: 0 0 0 4px var(--bg); }
.lane-h .chip.now { background: linear-gradient(rgba(45, 212, 191, .14), rgba(45, 212, 191, .14)), var(--bg); }
.lane-h .chip.next { background: linear-gradient(rgba(14, 165, 233, .16), rgba(14, 165, 233, .16)), var(--bg); }
.lane-h .chip.later { background: linear-gradient(rgba(234, 247, 255, .08), rgba(234, 247, 255, .08)), var(--bg); }
.lane ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lanes .rm-card { margin: 0; min-height: 0; padding: 18px 18px 20px; }
.lanes .rm-card h3 { margin: 0 0 6px; font-size: 19px; }
.lane.now .rm-card { border-color: rgba(45, 212, 191, .3); background: linear-gradient(180deg, rgba(45, 212, 191, .07), transparent 60%), var(--panel); }
.lane.next .rm-card { border-color: rgba(14, 165, 233, .28); }
.lane.later .rm-card { background: rgba(11, 26, 41, .55); border-style: dashed; }
.rm-hinge { position: relative; display: flex; align-items: center; gap: 18px; margin: 46px 0 0; }
.rm-hinge::before { content: ""; position: absolute; left: 21px; bottom: 100%; width: 2px; height: 46px; background: linear-gradient(0deg, var(--teal), rgba(45, 212, 191, .15)); }
.rm-hinge::after { content: ""; position: absolute; left: 21px; top: 100%; width: 2px; height: calc(var(--half) + 2px); background: var(--teal); }
.rm-hinge .rm-node { position: relative; left: auto; top: auto; flex: none; width: 44px; height: 44px; background: var(--teal); border: 9px solid var(--bg); box-shadow: 0 0 0 2px var(--teal), 0 0 34px rgba(45, 212, 191, .55); }
.rm-hinge p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0; }
.rm-hinge .rm-here-label { position: static; font: 600 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.rm-hinge .rm-here-text { position: static; color: var(--text); font-size: 18px; }
.journey { padding-block: 0 var(--space); }
.journey .wrap { position: relative; }
.journey .wrap::before { content: ""; position: absolute; left: 45px; top: 0; bottom: 30px; width: 2px; background: linear-gradient(180deg, var(--teal), var(--deep) 65%, rgba(2, 132, 199, .12)); }
.journey .jr-head { position: static; padding: 34px 0 26px 66px; }
.jr { gap: 0; }
.jr::before { display: none; }
.jr-item { grid-template-columns: 44px minmax(0, 250px) minmax(0, 1fr); gap: 0 24px; align-items: start; padding: 12px 0; }
.jr-item h3 { margin: 9px 0 0; font-size: 20px; }
.jr-item p { margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.jr-item:last-child .jr-num { background: var(--bg); color: var(--teal); border-color: rgba(45, 212, 191, .45); }
.jr-item:last-child::after { display: none; }
.jr-item:first-child .jr-num { background: var(--teal); color: var(--bg); border-color: var(--teal); }
.jr-item:first-child::after { content: ""; position: absolute; left: 0; top: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(45, 212, 191, .55); animation: halo 2.4s infinite; --grow: 1.35; }
.jr-root { margin: 8px 0 0 66px; font: 13.5px var(--mono); color: var(--faint); }

/* Footer: the waves once more, the page ending at sea (the home page; a docs page's footer has none). */
.foot:has(> .foot-waves) { position: relative; padding: 0 0 30px; border-top: 0; background: linear-gradient(180deg, transparent 0 64px, rgba(2, 132, 199, .07) 64px, rgba(5, 13, 22, 0)); }
.foot-waves { position: relative; left: auto; bottom: auto; transform: none; width: 100%; height: 72px; margin-bottom: 18px; }

/* Docs: a head for each page, warnings and notes, commands with what they print, and where
   the page sits in the list. */
.doc-head {
  position: relative; margin: 0 0 6px; padding: 20px 26px 34px; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 18px;
  background: radial-gradient(520px 220px at 0% 0%, rgba(14, 165, 233, .14), transparent 70%), radial-gradient(420px 220px at 100% 0%, rgba(45, 212, 191, .10), transparent 70%), var(--panel);
}
.docs-body .doc-head h1 { margin: 6px 0 10px; }
/* A setting's name as a heading is one word, wider than a phone: it breaks rather than run past the edge. */
.docs-sec h2 code, .docs-sec h3 code { overflow-wrap: anywhere; }
.doc-head .lede { margin-bottom: 0; }
.doc-wave { position: absolute; left: 0; bottom: 8px; width: 100%; height: 18px; fill: none; stroke: var(--teal); stroke-opacity: .45; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.doc-cmds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 18px 0 0; }
.dc-h { margin-right: 6px; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.doc-cmds a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 9px; background: rgba(5, 13, 22, .45); text-decoration: none; }
.doc-cmds a:hover { border-color: rgba(45, 212, 191, .45); }
.doc-cmds a code { padding: 0; background: none; color: #b9f5ec; font-size: 13px; }
.doc-find {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px; min-height: 52px; margin: 22px 0 0; padding: 0 12px 0 16px;
  font: 16px var(--sans); color: var(--muted); background: rgba(5, 13, 22, .55); border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer;
}
.doc-find:hover { border-color: var(--teal); color: var(--text); }
.doc-find svg { width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; }
.doc-find kbd { margin-left: auto; font: 12px var(--mono); }
.route { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.route li { padding: 12px 16px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.route li:hover { border-color: rgba(45, 212, 191, .35); }
.docs-sec .route > li > a { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text); text-decoration: none; font: 650 18px var(--display); }
.rt-n { font: 600 13px var(--mono); color: var(--teal); }
.route p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.route p a { color: var(--teal); }
.needs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.needs li { position: relative; padding: 12px 14px 12px 40px; border: 1px solid var(--line); border-radius: 10px; background: rgba(5, 13, 22, .35); }
.needs li::before { content: "\2713"; position: absolute; left: 15px; top: 12px; color: var(--green); font-weight: 700; }
.docs-sec .callout { margin: 16px 0; padding: 12px 16px 14px; border: 1px solid; border-left-width: 3px; border-radius: 10px; }
.docs-sec .callout.co-warn { border-color: rgba(250, 204, 21, .32); border-left-color: var(--sev1); background: rgba(250, 204, 21, .06); }
.docs-sec .callout.co-note { border-color: rgba(14, 165, 233, .32); border-left-color: var(--sev2); background: rgba(14, 165, 233, .06); }
.callout p { margin: 0; }
.callout .co-h { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.callout.co-warn .co-h { color: var(--sev1); }
.callout.co-note .co-h { color: #7dd3fc; }
.co-h svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.docs-body .code:has(+ .out-box) { margin-bottom: 0; border-radius: 10px 10px 0 0; }
.out-box { margin: 0 0 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; background: rgba(5, 13, 22, .55); }
.out-bar { margin: 0; padding: 8px 16px; font: 12px var(--mono); color: var(--faint); border-bottom: 1px dashed var(--line); }
.docs-sec pre.out { margin: 0; padding: 12px 16px 14px; border: 0; border-radius: 0; background: none; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.side-prog { display: grid; gap: 7px; margin: 0 0 16px; padding: 0 12px; font: 12px var(--mono); color: var(--faint); }
.side-prog progress { appearance: none; -webkit-appearance: none; width: 100%; height: 3px; border: 0; border-radius: 2px; background: var(--line); overflow: hidden; }
.side-prog progress::-webkit-progress-bar { background: var(--line); }
.side-prog progress::-webkit-progress-value { background: linear-gradient(90deg, var(--deep), var(--teal)); }
.side-prog progress::-moz-progress-bar { background: linear-gradient(90deg, var(--deep), var(--teal)); }
.docs-side a.passed { border-left-color: rgba(45, 212, 191, .4); }

/* Tablets and phones. */
@media (max-width: 960px) {
  .pcols { grid-template-columns: minmax(0, 1fr); }
  .wall-cols, .course { grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); gap: 0 14px; }
  .course:nth-child(n) .stone { width: 100%; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .run { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .run::before { display: none; }
  .step { grid-template-rows: none; grid-row: auto; display: grid; gap: 12px; }
  .s-undo .term-body { height: auto; }
  .memory-copy { grid-template-columns: minmax(0, 1fr); }
  .memory-copy p:not(.cmdline) { grid-column: 1; grid-row: auto; margin-top: 14px; }
  .membar .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ex-on .explorer { grid-template-columns: minmax(0, 1fr); }
  .ex-on .ex-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--line); }
  .ex-list button { gap: 8px; padding: 6px 8px; font-size: 13.5px; }
  .ex-list button svg { display: none; }
  .ex-panel { padding: 20px 16px 18px; }
  .ex-panel h3 { font-size: 21px; }
  .ex-out { height: 260px; }
  .demo.term { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .demo .demo-picks { grid-column: 1; grid-row: 2; height: auto; max-height: 232px; border-right: 0; border-bottom: 1px solid var(--line); }
  .demo .demo-screen { grid-column: 1; grid-row: 3; }
  .demo .pick-group div { display: flex; flex-wrap: wrap; gap: 6px; }
  .demo .pick { width: auto; border: 1px solid var(--line); }
  .lanes { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .lane::before { display: none; }
  .jr-item { grid-template-columns: 44px minmax(0, 1fr); gap: 0 18px; }
  .jr-item p { grid-column: 2; }
  .route, .needs { grid-template-columns: minmax(0, 1fr); }
  .doc-head { padding: 16px 16px 30px; }
}
@media (max-width: 640px) {
  /* One column, so no part's name is cut. */
  .membar .legend { grid-template-columns: minmax(0, 1fr); }
  /* The tab row scrolls sideways: its right edge fades. */
  .tui .tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .wall { padding: 18px 14px 20px; }
  .wall-cols { grid-template-columns: auto auto; justify-content: space-between; }
  .wc-mon { grid-column: 1; justify-self: start; }
  .wc-sec { grid-column: 2; }
  .course { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; padding-bottom: 10px; }
  .course::before { display: none; }
  .course .stone { grid-column: 1 / -1; grid-row: 1; height: 44px; }
  .course .watch { justify-content: flex-start; }
  .course .guard { justify-content: flex-end; }
  .sv-route { font-size: 14px; }
  .intro-asks a { font-size: 16.5px; }
  .memmap { height: 440px; }
  .membar { padding: 18px 14px; }
  .cmdline { font-size: 13px; }
  .journey .jr-head { padding-left: 62px; }
}
