/* Paperroom guides: Start here, the hosting guide and Connect an assistant.
   One page family, from the design's Paperroom Guide board drawn in the app's
   v5 tokens (web/src/styles/tokens.css): the fern accent, Bricolage Grotesque
   for titles, Figtree for text, JetBrains Mono for code. The markup is
   Commonplace's guide vocabulary (../commonplace/docs/guide.css); every class
   it styles is styled here too. The fonts sit beside this file in fonts/, under
   the SIL Open Font Licence (the OFL-*.txt files there); when a file is missing
   the system fallbacks take over. Nothing is fetched from anywhere else. Light
   and dark follow the system; print is always light and shows every page. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url("fonts/BricolageGrotesque-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url("fonts/BricolageGrotesque-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("fonts/Figtree-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("fonts/Figtree-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("fonts/Figtree-latin-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("fonts/Figtree-latin-ext-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/JetBrainsMono-Medium.woff2") format("woff2"); }

/* Tokens, light: the app's v5 values in fern, the default theme colour. */
:root {
  color-scheme: light dark;
  --display: "Bricolage Grotesque", "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --accent: #0b7a54; --onAccent: #ffffff; --accentInk: #0b7a54; --accentSoft: #dcf2e6;
  --sticker: #ffe45c; --onSticker: #17181a;
  --glow: 0 8px 20px rgba(11, 122, 84, 0.22);

  --page: #ffffff; --side: #f6f7f7; --soft: #f2f3f4; --card: #ffffff;
  --line: #e4e5e8; --line2: #d6d8dc; --tick: #b4b8be;
  --text: #17181a; --body: #33363a; --mute: #5e6369; --faint: #7c8187;
  --hover: rgba(23, 24, 26, 0.05); --press: rgba(23, 24, 26, 0.09);
  --lift-sm: 0 1px 2px rgba(23, 24, 26, 0.12), 0 4px 12px rgba(23, 24, 26, 0.06);
  --barbg: rgba(255, 255, 255, 0.97);
  --bar: #17181a; --onBar: #f2f3f5; --onBarMute: #b9bdc3;
  --code-bg: #17181a; --code-ink: #e8eaed; --code-line: transparent;
  --stripeA: #f2f3f4; --stripeB: #f8f9f9;

  --amber-bg: #fdf1cc; --amber-fg: #7a4b00; --amber-badge: #f5a524; --amber-onBadge: #17181a;
  --blue-bg: #e3e9ff; --blue-fg: #2a44b8; --blue-badge: #4c6ef5; --onBadge: #ffffff;
  --green-bg: #ddf3e6; --rose-bg: #ffe4e9;
  --focus: #0b7a54;

  --r-8: 8px; --r-12: 12px; --r-16: 16px; --r-20: 20px; --r-pill: 999px;
  --fast: 140ms; --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --barH: 64px; --barP: 28px; --h1: 48px; --lead: 19px; --body-fs: 16.5px; --tap: 40px;
  --title-stretch: 85%; --title-track: -0.035em;
}
@media screen and (prefers-color-scheme: dark) {
  :root {
    --accent: #3ddc97; --onAccent: #06281a; --accentInk: #5be3a8; --accentSoft: #16352a;
    --glow: none;
    --page: #141517; --side: #18191c; --soft: #26282c; --card: #212226;
    --line: #2d2f34; --line2: #3a3d43; --tick: #5a5e66;
    --text: #f2f3f5; --body: #d3d6da; --mute: #9ea3a9; --faint: #7d8289;
    --hover: rgba(255, 255, 255, 0.06); --press: rgba(255, 255, 255, 0.1);
    --lift-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --barbg: rgba(20, 21, 23, 0.97);
    --bar: #f2f3f5; --onBar: #17181a; --onBarMute: #4a4e54;
    --code-bg: #0e0f11; --code-ink: #e8eaed; --code-line: #2d2f34;
    --stripeA: #1d1e21; --stripeB: #18191c;
    --amber-bg: #3a2e10; --amber-fg: #f7cf6b;
    --blue-bg: #1d2547; --blue-fg: #a9b8ff;
    --green-bg: #133326; --rose-bg: #3a1820;
    --focus: #3ddc97;
  }
}
@media (max-width: 640px) {
  :root { --barH: 56px; --barP: 16px; --h1: 36px; --lead: 17.5px; --body-fs: 16px; --tap: 44px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.5; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
[hidden] { display: none !important; }
a { color: var(--accentInk); text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
strong, b { font-weight: 700; color: var(--text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 10px 16px; border-radius: var(--r-pill); background: var(--bar); color: var(--onBar); font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }

/* The bar */
.bar { position: sticky; top: 0; z-index: 10; min-height: var(--barH); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 var(--barP); border-bottom: 1px solid var(--line); background: var(--barbg); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; }
.mark { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--accent); color: var(--onAccent); }
.mark span { font-family: var(--display); font-size: 19px; font-weight: 800; line-height: 1; font-stretch: var(--title-stretch); }
.wordmark { font-family: var(--display); font-size: 21px; font-weight: 800; font-stretch: var(--title-stretch); letter-spacing: -0.03em; white-space: nowrap; }
.family { min-width: 0; padding-left: 11px; border-left: 1px solid var(--line2); color: var(--mute); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toplink { flex: none; min-height: var(--tap); display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; text-decoration: none; border: 1px solid var(--line2); }
.toplink:hover { background: var(--hover); }

/* The shell: the side nav and one column */
.shell { display: flex; justify-content: center; gap: 48px; max-width: 1180px; margin: 0 auto; padding: 44px 40px 72px; }
.side { width: 248px; flex: none; position: sticky; top: calc(var(--barH) + 28px); align-self: flex-start; max-height: calc(100vh - var(--barH) - 56px); overflow: auto; padding: 2px; }
.side-title, .menu-title { margin: 0; padding: 0 10px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.side ol + .side-title { margin-top: 22px; }
.side ol, .pages-menu ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side a, .pages-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-12); color: var(--body); font-size: 14.5px; font-weight: 500; line-height: 1.35; text-decoration: none; }
.side a:hover, .pages-menu a:hover { background: var(--hover); color: var(--text); }
.side a[aria-current="page"], .pages-menu a[aria-current="page"] { background: var(--accentSoft); color: var(--text); font-weight: 700; }
/* A step number in a nav link: <a><span class="side-n">1</span>Rent a server</a> */
.side-n { width: 22px; height: 22px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--mute); font-size: 11.5px; font-weight: 800; line-height: 1; }
[aria-current="page"] > .side-n { background: var(--accent); color: var(--onAccent); }
main { width: 100%; max-width: 740px; min-width: 0; }
.pages-menu { display: none; margin-bottom: 24px; }
.pages-menu summary { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line2); background: var(--card); font-weight: 700; font-size: 14.5px; cursor: pointer; list-style: none; }
.pages-menu summary::-webkit-details-marker { display: none; }
.pages-menu summary::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.pages-menu[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.pages-menu ol { margin-top: 10px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-20); background: var(--card); box-shadow: var(--lift-sm); }
.pages-menu a { font-size: 15.5px; min-height: 44px; }

/* A page */
.page { display: flex; flex-direction: column; gap: 22px; }
.page > * { margin: 0; }
html:not(.js) .page + .page { margin-top: 72px; padding-top: 48px; border-top: 2px dashed var(--line2); }
.js .page[hidden] { display: none; }
.page-head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
.page-head > * { margin: 0; }
.kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accentInk); }
.title { font-family: var(--display); font-size: var(--h1); font-weight: 800; font-stretch: var(--title-stretch); letter-spacing: var(--title-track); line-height: 1.04; color: var(--text); text-wrap: balance; }
.lead { font-size: var(--lead); line-height: 1.6; color: var(--body); text-wrap: pretty; }
.h { font-family: var(--display); font-size: 27px; font-weight: 800; font-stretch: var(--title-stretch); letter-spacing: -0.025em; line-height: 1.15; color: var(--text); margin: 18px 0 -4px; }
.h--sub { font-size: 20px; letter-spacing: -0.015em; margin: 6px 0 -6px; }
.flow { display: flex; flex-direction: column; gap: 18px; }
.flow > * { margin: 0; }
:where(.page, .flow, .tab-panel) p { font-size: var(--body-fs); line-height: 1.65; color: var(--body); text-wrap: pretty; }
[id] { scroll-margin-top: calc(var(--barH) + 16px); }

/* Inline code and keys */
code { font-family: var(--mono); font-size: .86em; padding: 1px 6px; border-radius: 6px; background: var(--soft); color: var(--text); overflow-wrap: anywhere; }
kbd { font-family: var(--sans); font-size: .86em; font-weight: 700; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line2); border-bottom-width: 2px; background: var(--card); }
samp { font-family: inherit; }

/* Lists */
.steps, .dots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps { counter-reset: step; gap: 16px; }
.steps > li, .dots > li { position: relative; min-width: 0; font-size: var(--body-fs); line-height: 1.6; color: var(--body); }
.steps > li { padding-left: 44px; counter-increment: step; }
.dots > li { padding-left: 26px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: var(--accentSoft); color: var(--accentInk); display: grid; place-items: center; font-size: 14px; font-weight: 800; line-height: 1; }
.dots > li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.steps li > * + *, .dots li > * + * { margin-top: 12px; }
.steps li > p, .dots li > p { margin-bottom: 0; }

/* Pictures. A pending picture says in words what it will show. */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.figure { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.figure img { display: block; width: 100%; height: auto; border-radius: var(--r-12); border: 1px solid var(--line); }
.figure--pending .frame { aspect-ratio: 16 / 10; max-height: 300px; border-radius: var(--r-12); border: 1px solid var(--line); background: repeating-linear-gradient(135deg, var(--stripeA) 0 8px, var(--stripeB) 8px 16px); display: grid; place-items: center; padding: 16px 18px; text-align: center; }
.figure--pending .frame p { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.55; color: var(--mute); max-width: 46ch; }
.figure figcaption { font-size: 14px; line-height: 1.5; color: var(--mute); }
/* A screenshot in a walkthrough: the column's full width, framed like the
   screen it shows. The file is img/hosting/<data-shot>.png. Until it exists
   the figure stays figure--pending, with the words of what it will show and
   no <img>, so a missing file never shows as a broken picture
   (docs/hosting_test.go holds both rules). */
.shot { gap: 10px; }
.shot img { box-shadow: var(--lift-sm); background: var(--soft); }
.shot.figure--pending .frame { aspect-ratio: 16 / 9; max-height: 340px; }
.shot--terminal.figure--pending .frame { aspect-ratio: 16 / 7; background: var(--code-bg); border-color: var(--code-line); }
.shot--terminal.figure--pending .frame p { color: var(--code-ink); opacity: .8; }

/* A walkthrough: one small action per step, its picture under it. */
.walk { list-style: none; margin: 0; padding: 0; counter-reset: walk; display: flex; flex-direction: column; gap: 34px; }
.walk > li { counter-increment: walk; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.walk > li > * { margin: 0; }
.walk-title { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--display); font-size: 21px; font-weight: 800; font-stretch: var(--title-stretch); letter-spacing: -0.015em; line-height: 1.25; color: var(--text); }
.walk-title::before { content: counter(walk); width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--onAccent); font-family: var(--sans); font-size: 14.5px; font-weight: 800; letter-spacing: 0; }
.walk > li > p, .walk > li > .dots, .walk > li > .steps { margin-left: 44px; }
.more .flow > p, .more .flow > .dots { margin: 0; }

/* Tabs. Without script the panels stack, each under its own label. */
.tabs { display: flex; flex-direction: column; gap: 22px; }
.tablist { display: flex; flex-wrap: wrap; gap: 4px; align-self: flex-start; max-width: 100%; padding: 4px; border-radius: var(--r-20); background: var(--soft); }
.tablist button { min-height: 36px; display: inline-flex; align-items: center; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--mute); font: inherit; font-size: 14.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color var(--fast) var(--ease-out), color var(--fast) var(--ease-out); }
.tablist button:hover { color: var(--text); }
.tablist button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: var(--lift-sm); }
.tab-panel { display: flex; flex-direction: column; gap: 20px; }
.tab-panel > * { margin: 0; }
.tab-label { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accentInk); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.js .tabs.is-ready > .tab-panel > .tab-label { display: none; }
.js .tab-panel[hidden] { display: none; }

/* The one command: the copy box. A command to paste is drawn as the design's
   code box: a quiet panel with its label and Copy. */
.copy { display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 14px 16px; border-radius: var(--r-16); background: var(--soft); border: 1px solid var(--line); color: var(--text); min-width: 0; }
.copy-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.copy-label { margin: 0; font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--mute); }
.copy-btn { min-height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--accentSoft); color: var(--accentInk); font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; flex: none; transition: background-color var(--fast) var(--ease-out); }
.copy-btn:hover { background: color-mix(in srgb, var(--accentSoft) 80%, var(--accent)); }
.copy pre { margin: 0; padding-right: 10px; white-space: pre-wrap; }
.copy code { padding: 0; border: 0; background: none; color: inherit; font-size: 14.5px; line-height: 1.6; word-break: break-all; }

/* What a program prints: the terminal, a dark island in both schemes. Code
   to read or paste into a file: the quiet panel. */
.out, .codeblock { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.out-label { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--mute); }
.out pre, .codeblock pre { tab-size: 2; margin: 0; padding: 14px 16px; border-radius: var(--r-12); font-family: var(--mono); font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.out pre { background: var(--code-bg); color: var(--code-ink); border: 1px solid var(--code-line); }
.codeblock pre { background: var(--soft); color: var(--text); border: 1px solid var(--line); }
.out code, .codeblock code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }

/* Notes: the app's callouts, a badge and a line in bold. */
.note { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 15px 58px; border-radius: var(--r-16); background: var(--blue-bg); }
.note::before { content: "i"; position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-badge); color: var(--onBadge); font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1; }
.note--warm { background: var(--amber-bg); }
.note--warm::before { content: "!"; background: var(--amber-badge); color: var(--amber-onBadge); }
.note > * { margin: 0; }
.note .note-label { font-weight: 800; font-size: 15.5px; line-height: 1.5; color: var(--blue-fg); }
.note--warm .note-label { color: var(--amber-fg); }
.note p:not(.note-label) { font-size: 15.5px; line-height: 1.6; color: var(--text); }
.note code { background: color-mix(in srgb, var(--page) 60%, transparent); }

/* Tables */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-12); overflow: hidden; font-size: 14.5px; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; vertical-align: top; line-height: 1.5; }
.tbl thead th { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); background: var(--side); }
.tbl tbody tr + tr > *, .tbl thead + tbody tr > * { border-top: 1px solid var(--line); }
.tbl tbody th { font-weight: 700; width: 210px; color: var(--text); }
.tbl td { color: var(--body); }
@media (max-width: 640px) {
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: auto; }
  .tbl thead { display: none; }
  .tbl tbody tr { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
  .tbl tbody tr + tr { border-top: 1px solid var(--line); }
  .tbl tbody tr > *, .tbl tbody tr + tr > *, .tbl thead + tbody tr > * { padding: 0; border-top: 0; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--mute); margin-top: 6px; }
}

/* Cards (Start here, the assistants) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 22px; border-radius: var(--r-20); border: 1px solid var(--line); background: var(--card); min-width: 0; }
.card--primary { border: 2px solid var(--accent); padding: 19px 19px 21px; }
.card > * { margin: 0; }
.card .figure--pending .frame { aspect-ratio: 4 / 3; }
.tag { align-self: flex-start; padding: 4px 11px; border-radius: var(--r-pill); background: var(--sticker); color: var(--onSticker); font-size: 12.5px; font-weight: 800; }
.card-title { font-family: var(--display); font-size: 23px; font-weight: 800; font-stretch: var(--title-stretch); letter-spacing: -0.025em; line-height: 1.15; color: var(--text); }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--body); }
.btn { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-height: 46px; padding: 0 22px; border-radius: var(--r-pill); font-weight: 700; font-size: 15px; text-decoration: none; text-align: center; border: 1px solid var(--line2); color: var(--text); background: var(--card); transition: background-color var(--fast) var(--ease-out); }
.card .btn { margin-top: auto; }
.btn:hover { background: var(--hover); }
.btn--primary { border-color: var(--accent); background: var(--accent); color: var(--onAccent); box-shadow: var(--glow); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 90%, var(--text)); }

/* The server picture: the front, then each app at its own address. */
.server { display: flex; flex-direction: column; gap: 0; padding: 18px; border-radius: var(--r-20); border: 1.5px solid var(--text); background: var(--card); }
.server > * { margin: 0; }
.server-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; margin-bottom: 14px; font-weight: 800; color: var(--text); }
.server-head span:last-child { font-family: var(--mono); font-size: 12.5px; font-weight: 400; color: var(--mute); }
.server-front { padding: 12px 14px; border-radius: var(--r-12); background: var(--bar); color: var(--onBar); font-size: 13.5px; line-height: 1.5; }
.server-front strong, .server-front b { color: inherit; }
.server-apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.server-apps li { position: relative; display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding: 12px 14px; border-radius: var(--r-12); background: var(--soft); min-width: 0; }
.server-apps li::before { content: ""; position: absolute; left: 50%; top: -18px; width: 2px; height: 18px; margin-left: -1px; background: var(--text); }
.server-apps li:nth-child(3n+1) { background: var(--green-bg); }
.server-apps li:nth-child(3n+2) { background: var(--blue-bg); }
.server-apps li:nth-child(3n+3) { background: var(--rose-bg); }
.server-apps strong { font-family: var(--display); font-size: 17px; font-weight: 800; font-stretch: var(--title-stretch); letter-spacing: -0.02em; }
.server-apps .addr { font-family: var(--mono); font-size: 12px; color: var(--body); overflow-wrap: anywhere; }
.server-apps span:last-child { font-size: 12.5px; color: var(--body); line-height: 1.45; }

/* More, for the details that do not belong on the main path */
.more { border: 1px solid var(--line); border-radius: var(--r-16); background: var(--card); }
.more > summary { min-height: var(--tap); display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: var(--r-16); font-weight: 700; color: var(--text); cursor: pointer; list-style: none; }
.more > summary:hover { background: var(--hover); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "+"; width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--mute); font-weight: 800; line-height: 1; }
.more[open] > summary::before { content: "\2212"; background: var(--accentSoft); color: var(--accentInk); }
.more > .flow { padding: 6px 18px 20px; gap: 14px; }
.more-list { display: flex; flex-direction: column; gap: 10px; }

/* The step progress strip */
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.strip a { display: flex; flex-direction: column; gap: 8px; color: var(--mute); text-decoration: none; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.strip a::before { content: ""; height: 5px; border-radius: var(--r-pill); background: var(--line); }
.strip .done a::before { background: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.strip .now a::before { background: var(--accent); }
.strip .now a { color: var(--text); font-weight: 800; }
.strip a:hover { color: var(--text); }

/* Previous and next */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.pager a { grid-column: 1; display: flex; flex-direction: column; gap: 3px; min-height: 44px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-16); text-decoration: none; color: var(--text); min-width: 0; transition: border-color var(--fast) var(--ease-out); }
.pager a:hover { border-color: var(--tick); }
.pager a span { font-size: 12.5px; font-weight: 600; color: var(--mute); }
.pager strong { font-weight: 700; }
.pager .next { grid-column: 2; text-align: right; }
.pager .next span { color: var(--accentInk); }

.foot { max-width: 740px; margin: 0 auto; padding: 0 20px 48px; color: var(--mute); font-size: 13.5px; text-align: center; }
.foot a { color: inherit; }

@media (max-width: 999px) {
  .side { display: none; }
  .shell { padding: 32px 28px 64px; }
  .pages-menu { display: block; }
}
@media (max-width: 640px) {
  .shell { padding: 22px 20px 48px; }
  .family { display: none; }
  .wordmark { font-size: 19px; }
  .mark { width: 30px; height: 30px; }
  .bar--start .toplink { display: none; }
  .h { font-size: 24px; }
  .copy-btn { min-height: 44px; }
  .copy { padding-top: 4px; }
  .tablist button { min-height: 40px; padding: 0 14px; }
  .note { padding-left: 54px; }
  .note::before { left: 14px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { grid-column: 1; }
  .server-apps { grid-template-columns: minmax(0, 1fr); }
  .figure--pending .frame { aspect-ratio: 16 / 9; max-height: 220px; }
  .walk > li > p, .walk > li > .dots, .walk > li > .steps { margin-left: 0; }
  .walk-title { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
@media print {
  .bar { position: static; background: none; }
  .side, .pages-menu, .pager, .copy-btn, .tablist, .skip, .toplink { display: none !important; }
  .js .page[hidden], .js .tab-panel[hidden] { display: flex !important; }
  .js .tabs.is-ready > .tab-panel > .tab-label { display: block !important; }
  .page + .page { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--line2); break-before: page; }
  .more::details-content { content-visibility: visible; display: block; }
  .more > summary::before { content: "\2212"; }
  .shell { padding: 0; max-width: none; }
  main { max-width: none; }
  .out pre { background: var(--soft); color: var(--text); border-color: var(--line); }
  .btn--primary { box-shadow: none; }
  pre, .note, .figure, .card, .tbl tr { break-inside: avoid; }
  .walk > li { break-inside: avoid; }
}
