/* Boss Man website v2 (BOS-780), built from the approved BOS-779 design. Tokens are at the top of :root; no inline styles are used anywhere, because the Content-Security-Policy forbids them. */
@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Surfaces: the app's own sidebar navy for product sections, a whiteboard white for the art. */
  --night: #17202c;      /* app sidebar; dark sections */
  --night-2: #222c3a;    /* raised panels on dark */
  --board: #eef1f5;      /* whiteboard; light sections */
  --paper: #ffffff;      /* art and figures on light */
  --ink: #17202c;        /* text on light: 15.8:1 on --board */
  --ink-2: #3d4757;      /* secondary text on light: 8.6:1 on --board */
  --chalk: #eef2f6;      /* text on dark: 14.9:1 on --night */
  --chalk-2: #c3cbd6;    /* secondary text on dark: 9.6:1 on --night */
  --amber: #f0b75c;      /* "waiting on you", the same colour the app uses */
  --amber-deep: #8a5a00; /* amber as text on light: 5.6:1 on --board */
  --tie: #c8282f;        /* the mascot's tie: pins and the brand mark only */
  --line-dark: #354153;
  --line-light: #cdd4de;
  --display: "Archivo", "IBM Plex Sans", system-ui, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--board); min-height: 100vh; display: flex; flex-direction: column; }
body > main, body > .guide { flex: 1; }
main:focus { outline: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-stretch: 112%; font-weight: 750; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-family: var(--display); font-stretch: 100%; font-weight: 650; font-size: 22px; line-height: 1.25; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.skip { position: absolute; left: 20px; top: -80px; z-index: 10; background: var(--amber); color: var(--ink); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
.dark { background: var(--night); color: var(--chalk); }
.dark .muted { color: var(--chalk-2); }
.muted { color: var(--ink-2); }

/* Header */
.top { background: var(--night); color: var(--chalk); }
.top .wrap { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-stretch: 112%; font-weight: 750; font-size: 22px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 700; font-size: 16px; color: var(--chalk-2); }
.top nav a:hover, .top nav a[aria-current] { color: var(--chalk); }
.top nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--amber); }
.top nav a.btn { color: var(--ink); margin-left: 12px; padding: 0 18px; }
.menu { display: none; }
/* Links that leave the site (the feedback portal) carry a visible arrow; screen readers hear where it goes. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.arrow { margin-left: 4px; font-weight: 400; }
.menu-sub { display: none; }
/* Boss Man's own roadmap, under the portal notes on the home page */
.own-portal { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 28px 32px; border-radius: 16px; background: var(--board); border: 2px solid var(--amber); }
.own-portal p { max-width: 720px; }

/* Buttons: amber is "do this", as in the app's own "waiting on you". */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 10px; background: var(--amber); color: var(--ink); font-weight: 700; font-size: 17px; text-decoration: none; border: 0; }
.btn:hover { background: #f5c97f; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 16px; }
.textlink { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--amber); }

/* Hero */
.hero { padding: 56px 0 0; overflow: hidden; }
.hero-text { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px 64px; align-items: end; }
.hero h1 { font-size: 60px; grid-column: 1 / -1; max-width: 1080px; }
.hero .lead { font-size: 20px; line-height: 1.55; max-width: 680px; color: var(--chalk); }
.hero .cta-col { padding-bottom: 6px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero .facts { margin-top: 16px; font-size: 15px; color: var(--chalk-2); }
.flag { display: inline-block; padding: 1px 8px; margin-right: 8px; border-radius: 4px; background: var(--amber); color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; vertical-align: 1px; }
.stage { position: relative; margin-top: 48px; }
.window { position: relative; border-radius: 14px 14px 0 0; background: #0f151d; padding: 12px 12px 0; box-shadow: 0 -2px 0 var(--line-dark), 0 30px 80px rgba(5, 9, 15, 0.55); }
.window::before { content: ""; display: block; height: 10px; margin: 2px 0 12px 4px; width: 52px; background: radial-gradient(circle, #4a5567 4px, transparent 5px) 0 0 / 18px 10px repeat-x; }
.window img { border-radius: 6px 6px 0 0; }
.stage .board-shot { margin-right: -180px; }
/* The hero drawing, blended into the scene rather than stuck on: no white sticker halo (his own outline is the
   edge), colours eased to sit with the screenshot, a warm amber glow behind him from the page's accent, a soft
   floor shadow under the table so the group stands on something, and the board dimmed where he stands so he
   is not drawn over busy columns. */
.stage .mascot { position: absolute; z-index: 2; right: -60px; bottom: -8px; width: 330px; }
.stage .mascot::before { content: ""; position: absolute; inset: -14% -18% -4% -18%; background: radial-gradient(closest-side, rgba(240, 183, 92, 0.3), rgba(240, 183, 92, 0.12) 55%, rgba(240, 183, 92, 0) 100%); }
.stage .mascot::after { content: ""; position: absolute; left: 12%; right: 10%; bottom: 0; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(5, 9, 15, 0.7), rgba(5, 9, 15, 0)); }
.stage .mascot img { position: relative; z-index: 1; filter: saturate(0.86) brightness(0.95) contrast(1.02); }
.stage .board-shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 30% 78% at 92% 100%, rgba(15, 21, 29, 0.94), rgba(15, 21, 29, 0.8) 50%, rgba(15, 21, 29, 0) 100%); }
.stage .card-shot { position: absolute; left: -24px; bottom: 40px; width: 330px; border-radius: 22px; background: #0f151d; padding: 10px; box-shadow: 0 0 0 2px var(--amber), 0 24px 60px rgba(5, 9, 15, 0.6); }
.stage .card-shot img { border-radius: 14px; }
.stage .card-label { position: absolute; left: 22px; top: -18px; background: var(--amber); color: var(--ink); font-weight: 700; font-size: 15px; padding: 4px 12px; border-radius: 6px; }
.caption { font-size: 15px; color: var(--chalk-2); padding: 16px 0 40px; }

/* Section rhythm */
.band { padding: 104px 0 112px; overflow-x: clip; } /* the install head's glow reaches past the screen edge on a phone: this was the 5 px sideways scroll the design note asked to find */
.band h2 { font-size: 52px; max-width: 900px; }
.band .intro { margin-top: 24px; font-size: 20px; max-width: 700px; }

/* The board, annotated */
.annotated { margin-top: 56px; position: relative; border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--line-light), 0 20px 50px rgba(23, 32, 44, 0.14); }
.annotated img { width: 100%; }
.canvas { position: relative; }
.canvas .pin { top: 2px; }
.pin.p1 { left: calc(8.6% - 20px); }
.pin.p2 { left: calc(22% - 20px); }
.pin.p3 { left: calc(37% - 20px); }
.pin.p4 { left: calc(50.2% - 20px); }
.pin.p5 { left: calc(95.2% - 20px); }
.paper { background: var(--paper); }
.swipe { display: none; }
.pin { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: var(--tie); color: #fff; font-family: var(--display); font-weight: 750; font-size: 20px; display: grid; place-items: center; box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(0, 0, 0, 0.3); }
.notes .phone-only { display: none; }
.notes { margin-top: 40px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; counter-reset: n; list-style: none; padding: 0; }
.notes li { counter-increment: n; position: relative; padding-top: 52px; }
.notes li::before { content: counter(n); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--tie); color: #fff; font-family: var(--display); font-weight: 750; display: grid; place-items: center; }
.notes h3 { margin-bottom: 8px; }

/* The decision queue, dissected */
.queue { display: grid; grid-template-columns: 1fr; gap: 56px; margin-top: 64px; }
.queue-shot { border-radius: 14px; padding: 12px 12px 12px; background: #252c36; max-width: 1040px; }
.queue-shot::before { display: none; }
.queue-shot img { border-radius: 6px; }
.parts { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.parts li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; }
.parts .tag { width: 56px; height: 56px; border-radius: 14px; background: var(--night-2); border: 2px solid var(--line-dark); display: grid; place-items: center; font-family: var(--display); font-weight: 750; font-size: 22px; color: var(--amber); }
.parts h3 { color: var(--chalk); }
.parts p { margin-top: 6px; color: var(--chalk-2); }
.aside { margin-top: 40px; padding: 20px 24px; border-radius: 12px; background: var(--night-2); border: 1px solid var(--line-dark); color: var(--chalk); }

/* Product management: the roadmap on a desktop window, the public portal on a phone overlapping it */
.pm { background: var(--paper); }
.pm-stage { position: relative; margin-top: 56px; padding-right: 220px; }
.roadmap-shot { border-radius: 14px; padding: 12px; background: #252c36; box-shadow: 0 0 0 1px var(--line-light), 0 24px 60px rgba(23, 32, 44, 0.18); }
.roadmap-shot::before { display: none; }
.roadmap-shot img { border-radius: 6px; }
.portal-shot { position: absolute; right: 0; top: 64px; width: 300px; border-radius: 30px; background: #0f151d; padding: 10px; box-shadow: 0 0 0 2px var(--amber), 0 24px 60px rgba(23, 32, 44, 0.35); }
.portal-shot img { border-radius: 22px; aspect-ratio: 390 / 600; object-fit: cover; object-position: top; }
.portal-shot .card-label { position: absolute; left: 22px; top: -18px; background: var(--amber); color: var(--ink); font-weight: 700; font-size: 15px; padding: 4px 12px; border-radius: 6px; }
.pm .caption { color: var(--ink-2); padding: 20px 0 0; }
.pm-notes { margin-top: 56px; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 40px; }
.pm-notes li { padding-top: 16px; border-top: 3px solid var(--ink); }
.pm-notes .kicker { font-family: var(--display); font-weight: 650; font-size: 15px; color: var(--amber-deep); margin-bottom: 6px; }
.pm-notes h3 { margin-bottom: 8px; }
.pm-notes li > p:last-child { font-size: 17px; }


/* How the work goes (BOS-1080): three ways to spend your time, told with the art at full size.
   Each card steps further down as the time grows; the bar is decoration only (the words say the time). */
.week { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; padding: 0; align-items: start; }
.week li { background: var(--paper); border-radius: 20px; padding: 28px 32px 36px; box-shadow: 0 0 0 1px var(--line-light); display: flex; flex-direction: column; }
.week li:nth-child(2) { margin-top: 72px; }
.week li:nth-child(3) { margin-top: 144px; }
.week img { height: 280px; width: auto; align-self: center; margin: 24px 0 28px; }
.week .day { display: grid; gap: 8px; }
.week .dur { font-family: var(--display); font-stretch: 112%; font-weight: 750; font-size: 24px; line-height: 1.1; color: var(--amber-deep); }
.week .bar { display: block; height: 8px; border-radius: 4px; background: #e2e7ee; overflow: hidden; }
.week .bar i { display: block; height: 100%; border-radius: 4px; background: var(--amber); }
.week .bar .w12 { width: 12%; }
.week .bar .w45 { width: 45%; }
.week .bar .w100 { width: 100%; }
.week h3 { font-size: 26px; margin-bottom: 10px; }
/* While you're away: what keeps going without you, on navy like the product sections */
.away { margin-top: 56px; padding: 32px 36px; border-radius: 20px; background: var(--night); color: var(--chalk); display: grid; grid-template-columns: 220px 1fr; gap: 24px 40px; align-items: start; }
.away h3 { font-size: 26px; color: var(--amber); }
.away ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px; }
.away li { padding-top: 14px; border-top: 2px solid var(--line-dark); font-size: 16px; color: var(--chalk-2); }

/* Everything else: a reference list, not a card grid */
.more { margin-top: 64px; display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
.more .shot { border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-light), 0 20px 50px rgba(23, 32, 44, 0.16); aspect-ratio: 1000 / 774; background: #252c36; }
.more .shot img { width: 230%; max-width: none; }
.more .shot-cap { margin-top: 14px; font-size: 15px; }
.facts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; }
.facts-list dt { font-family: var(--display); font-weight: 650; font-size: 20px; line-height: 1.3; padding-top: 14px; border-top: 3px solid var(--ink); }
.facts-list dd { margin-top: 8px; font-size: 17px; }
.more .all { margin-top: 40px; }

/* Where the data goes */
.flow { margin-top: 64px; display: grid; grid-template-columns: 1.3fr auto 1fr; gap: 0; align-items: stretch; }
.home-box { border: 2px solid var(--amber); border-radius: 18px; padding: 32px; background: var(--night-2); }
.home-box h3 { color: var(--amber); }
.home-box ul { margin-top: 18px; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home-box li { padding: 14px 16px; border-radius: 10px; background: var(--night); border: 1px solid var(--line-dark); font-weight: 700; font-size: 16px; }
.home-box li span { display: block; font-weight: 400; color: var(--chalk-2); font-size: 15px; }
.home-box .box-note { margin-top: 20px; font-size: 16px; color: var(--chalk-2); }
.arrows { display: grid; align-content: center; gap: 92px; padding: 0 20px; color: var(--chalk-2); font-size: 15px; text-align: center; }
.arrows div::after { content: ""; display: block; margin-top: 6px; height: 2px; width: 140px; background: var(--chalk-2); mask: linear-gradient(90deg, #000 85%, transparent 85%); }
.out { display: grid; gap: 20px; align-content: center; }
.out div { border: 2px solid var(--line-dark); border-radius: 14px; padding: 22px 24px; }
.out p { margin-top: 4px; color: var(--chalk-2); font-size: 16px; }
.out .none { border-style: dashed; }
.out .none h3 { text-decoration: line-through; text-decoration-color: var(--tie); text-decoration-thickness: 3px; }

/* Install */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 0; }
.install .need { margin-top: 32px; padding: 0; list-style: none; display: grid; gap: 14px; }
.install .need li { padding-left: 34px; position: relative; }
.install .need li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 8px; height: 14px; border: solid var(--amber-deep); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.install .why { margin-top: 32px; padding: 20px 24px; border-left: 4px solid var(--amber); background: var(--paper); border-radius: 0 12px 12px 0; font-size: 16px; color: var(--ink-2); }
.install .why h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.install .why p + p { margin-top: 10px; }
.install .why .beta { color: var(--ink); }
.install .actions { margin-top: 40px; display: flex; gap: 16px 28px; flex-wrap: wrap; align-items: center; }
/* Boss Man on the corner of the steps card (the owner's preferred spot), blended the same way as the hero drawing,
   which the owner preferred to a round badge: no white sticker halo (his own outline is the edge), a soft amber
   glow behind him, colours eased a little, and the picture's cut-off collar faded out instead of ending in a line. */
.route { background: var(--paper); border-radius: 20px; padding: 36px 40px; box-shadow: 0 0 0 1px var(--line-light); position: relative; }
.route .boss { position: absolute; right: -40px; top: -72px; width: 150px; height: 150px; }
.route .boss::before { content: ""; position: absolute; inset: -26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 183, 92, 0.42), rgba(240, 183, 92, 0.16) 55%, rgba(240, 183, 92, 0) 100%); }
.route .boss img { position: relative; width: 100%; filter: saturate(0.86) brightness(0.97); -webkit-mask-image: linear-gradient(#000 78%, transparent 97%); mask-image: linear-gradient(#000 78%, transparent 97%); }
.route h3 { padding-right: 96px; }
.route h3 { margin-bottom: 18px; }
.route ol { padding: 0; list-style: none; counter-reset: s; display: grid; gap: 2px; }
.route li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; align-items: baseline; padding: 9px 0; border-bottom: 1px solid #e2e7ee; font-size: 17px; }
.route li::before { content: counter(s); font-family: var(--display); font-weight: 650; color: var(--ink-2); }
.route li:last-child { border-bottom: 0; }
.route li.goal { font-weight: 700; }
.route li.goal::before { color: var(--amber-deep); }

/* Footer */
.foot { padding: 56px 0 64px; }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot nav a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; font-size: 16px; text-decoration: none; color: var(--chalk-2); }
.foot p { font-size: 15px; color: var(--chalk-2); max-width: 520px; margin-top: 12px; }

/* Foldable (the owner's unfolded phone is 840 px wide) and tablets */
@media (max-width: 1100px) {
  .wrap { padding: 0 32px; }
  .top .wrap { gap: 16px; }
  .top nav a { padding: 0 9px; }
  .top nav a.btn { margin-left: 6px; padding: 0 16px; }
  .hero h1 { font-size: 50px; }
  .hero-text { grid-template-columns: 1fr; }
  .stage .mascot { width: 220px; right: -20px; }
  .stage .board-shot { margin-right: -32px; }
  .stage .card-shot { width: 260px; left: -8px; bottom: 24px; }
  .band { padding: 80px 0 88px; }
  .band h2 { font-size: 42px; }
  .notes { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .queue { grid-template-columns: 1fr; gap: 48px; }
  .parts { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pm-stage { padding-right: 150px; }
  .portal-shot { width: 220px; top: 48px; border-radius: 24px; }
  .portal-shot img { border-radius: 16px; }
  .pm-notes { grid-template-columns: 1fr 1fr; }
  .pm .caption { padding-right: 240px; }
  .week { grid-template-columns: 1fr; gap: 24px; }
  .week li, .week li:nth-child(2), .week li:nth-child(3) { margin-top: 0; display: grid; grid-template-columns: 240px 1fr; grid-template-rows: auto auto 1fr; gap: 0 32px; align-content: center; }
  .week img { height: auto; width: 240px; margin: 0; grid-row: 1 / 4; align-self: center; }
  .week .day { align-self: end; margin-bottom: 14px; grid-column: 2; }
  .week h3, .week li > p:last-child { grid-column: 2; }
  .away { grid-template-columns: 1fr; }
  .away ul { grid-template-columns: 1fr 1fr; }
  .more { grid-template-columns: 1fr; gap: 48px; }
  .more .shot { aspect-ratio: 16 / 8.1; }
  .more .shot img { width: 150%; }
  .flow { grid-template-columns: 1fr; gap: 20px; }
  .arrows { display: none; }
  .out { grid-template-columns: repeat(3, 1fr); }
  .install { grid-template-columns: 1fr; gap: 56px; }
  .route .boss { right: 8px; }
  /* Footer: stack the brand and its line above the links. Side by side, the seven links squeezed the brand
     column to a sliver at 840 (owner, 9 Nov). */
  .foot .wrap { grid-template-columns: 1fr; gap: 20px; }
  .foot p { max-width: 560px; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .top .wrap { min-height: 64px; gap: 12px; }
  .top .wrap { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .top nav { margin-left: 0; flex-wrap: wrap; }
  .js .top nav { display: none; }
  .js .menu { display: inline-flex; margin-left: auto; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 2px solid var(--line-dark); background: transparent; color: var(--chalk); font: inherit; font-weight: 700; font-size: 16px; }
  /* Open menu: a panel under the header, one big row per link, Install last and full width. The page stays put. */
  .top { position: relative; }
  .top.open .menu { border-color: var(--amber); }
  .top.open nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; z-index: 20; left: 0; right: 0; top: 64px; padding: 4px 20px 24px; background: var(--night); border-bottom: 2px solid var(--line-dark); box-shadow: 0 24px 48px rgba(5, 9, 15, 0.5); }
  .top.open nav a { min-height: 56px; padding: 0; font-size: 18px; color: var(--chalk); border-bottom: 1px solid var(--line-dark); flex-wrap: wrap; align-content: center; }
  .top.open nav a[aria-current] { box-shadow: inset 4px 0 0 var(--amber); padding-left: 14px; }
  .top.open nav .menu-sub { display: block; width: 100%; font-weight: 400; font-size: 15px; color: var(--chalk-2); padding-bottom: 8px; }
  .top.open nav a.btn { margin: 20px 0 0; border-bottom: 0; justify-content: center; color: var(--ink); }
  .own-portal { padding: 22px 20px; }
  .own-portal .btn { width: 100%; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 18px; margin-top: 20px; }
  .hero .actions { margin-top: 28px; }
  .hero .actions .btn { width: 100%; }
  .stage { margin-top: 40px; }
  .stage .board-shot { margin-right: -60%; }
  .stage .mascot { width: 140px; right: -8px; bottom: auto; top: 40px; }
  .stage .card-shot { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -60px; }
  .band { padding: 64px 0 72px; }
  .band h2 { font-size: 32px; }
  .band .intro { font-size: 18px; }
  .annotated { margin-left: -20px; margin-right: -20px; border-radius: 0; overflow-x: auto; }
  .canvas { width: 1050px; }
  .swipe { display: block; margin-top: 10px; font-size: 15px; }
  .notes { grid-template-columns: 1fr; gap: 24px; }
  .notes .wide-only { display: none; }
  .notes .phone-only { display: block; }
  .queue { grid-template-columns: 1fr; gap: 48px; }
  .parts { grid-template-columns: 1fr; gap: 28px; }
  .queue-shot { margin: 0 -20px; border-radius: 0; padding: 8px 8px 8px; }
  .window::before { display: none; }
  .parts li { grid-template-columns: 44px 1fr; gap: 16px; }
  .parts .tag { width: 44px; height: 44px; font-size: 18px; border-radius: 10px; }
  .stage .board-shot::after { background: radial-gradient(ellipse 34% 60% at 84% 38%, rgba(15, 21, 29, 0.92), rgba(15, 21, 29, 0.7) 50%, rgba(15, 21, 29, 0) 100%); }
  .pm-stage { padding-right: 0; }
  .pm .caption { padding-right: 0; }
  .roadmap-shot { margin: 0 -20px; border-radius: 0; padding: 8px; overflow-x: auto; }
  .roadmap-shot img { width: 760px; max-width: none; }
  .portal-shot { position: relative; top: auto; right: auto; width: 78%; margin: -40px 0 0 auto; }
  .pm-notes { grid-template-columns: 1fr; gap: 24px; }
  .week { grid-template-columns: minmax(0, 1fr); }
  .week li, .week li:nth-child(2), .week li:nth-child(3) { display: flex; padding: 24px; min-width: 0; }
  .week img { width: 180px; margin: 16px auto 20px; }
  .week .day { margin-bottom: 0; align-self: stretch; }
  .away { padding: 24px 20px; margin-top: 32px; }
  .away ul { grid-template-columns: 1fr; gap: 16px; }
  .facts-list { grid-template-columns: 1fr; gap: 28px; }
  .more .shot { aspect-ratio: 8 / 7; }
  .more .shot img { width: 260%; }
  .home-box { padding: 22px; }
  .home-box ul { grid-template-columns: 1fr; }
  .out { grid-template-columns: 1fr; }
  .route { padding: 28px 22px; }
  .route { margin-top: 24px; }
  .route .boss { right: 4px; top: -56px; width: 112px; height: 112px; }
  .route h3 { padding-right: 104px; }
  .install .actions .btn { width: 100%; }
  .foot .wrap { grid-template-columns: 1fr; }
}

.guide-page { background: var(--paper); }
.guide { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 56px; padding-top: 48px; padding-bottom: 96px; max-width: 1360px; }
.g-nav { position: sticky; top: 24px; align-self: start; font-size: 16px; }
.g-toggle summary { display: none; }
.g-group { font-family: var(--display); font-weight: 650; font-size: 14px; color: var(--ink-2); margin: 24px 0 6px; }
.g-nav .g-group:first-of-type { margin-top: 0; }
.g-nav ul, .g-toc ul { list-style: none; padding: 0; }
.g-nav a, .g-toc a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.g-nav a:hover, .g-toc a:hover { background: var(--board); }
.g-nav a[aria-current="page"] { background: var(--night); color: var(--chalk); font-weight: 700; }

.g-main { max-width: 720px; }
.crumbs { font-size: 15px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.g-main h1 { margin-top: 12px; font-size: 48px; }
.g-lead { margin-top: 20px; font-size: 21px; line-height: 1.55; }
.g-meta { margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.g-main > h2 { margin-top: 56px; font-size: 30px; font-stretch: 105%; scroll-margin-top: 24px; }
.g-main > p { margin-top: 16px; }
.note { margin-top: 32px; padding: 20px 24px; border-radius: 12px; background: #fdf3e1; border: 2px solid var(--amber); }
.note h2 { font-family: var(--display); font-stretch: 100%; font-size: 18px; letter-spacing: 0; }
.note p { margin-top: 6px; }
.g-steps { margin-top: 20px; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 14px; }
.g-steps li { counter-increment: g; position: relative; padding-left: 50px; min-height: 32px; }
.g-steps li::before { content: counter(g); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%; background: var(--night); color: var(--chalk); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; }
.check { margin-top: 20px; padding: 14px 18px; border-radius: 10px; background: #e6f4ec; color: #14532d; display: flex; gap: 12px; }
.check .tick { font-weight: 700; }
.check p + p, .note p + p, .note p + .g-code { margin-top: 8px; }
.g-list { margin-top: 16px; padding-left: 22px; display: grid; gap: 10px; }
.g-fig { margin: 40px -32px 0 0; } /* wide figures run 32 px past the text column, to the right only: to the left they would cover the guide list, and further right the "On this page" column */
.g-fig img { border-radius: 12px; box-shadow: 0 0 0 1px var(--line-light), 0 16px 40px rgba(23, 32, 44, 0.14); }
.g-fig.small { margin: 28px 0 0; }
.g-fig figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); padding: 0 32px 0 0; }
.g-fig.small figcaption { padding: 0; }
.g-trouble { margin-top: 20px; display: grid; gap: 6px; }
.g-trouble dt { font-weight: 700; margin-top: 12px; }
.g-code { margin-top: 32px; position: relative; border-radius: 12px; background: var(--night); color: var(--chalk); padding: 16px 20px 20px; }
.g-code-label { font-size: 14px; color: var(--chalk-2); }
.g-code pre { margin: 8px 0 0; font-size: 16px; overflow-x: auto; }
.g-code .copy { position: absolute; top: 12px; right: 12px; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 2px solid var(--line-dark); background: transparent; color: var(--chalk); font: inherit; font-size: 15px; font-weight: 700; }
.g-next { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g-next a { display: block; padding: 18px 20px; border-radius: 12px; border: 2px solid var(--line-light); text-decoration: none; font-weight: 700; font-size: 18px; }
.g-next a:hover { border-color: var(--ink); }
.g-next span { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); }
.g-next .next { text-align: right; }
.g-edit { margin-top: 24px; font-size: 15px; }

.g-toc { position: sticky; top: 24px; align-self: start; font-size: 15px; }
.g-toc .g-group { margin-top: 0; }
.g-toc a { min-height: 36px; border-left: 3px solid var(--line-light); border-radius: 0; }
.g-toc a[aria-current] { border-left-color: var(--amber); font-weight: 700; }
.g-toc img { margin-top: 40px; width: 200px; }

/* What the guides' Markdown produces beyond the mock-up's sample */
.guide { width: 100%; }
.g-main h3 { margin-top: 36px; font-size: 22px; scroll-margin-top: 24px; }
.g-main > h3 + p, .g-main > h2 + p { margin-top: 12px; }
.g-main > ul, .g-main > ol, .g-main > blockquote { margin-top: 16px; }
.g-main li + li { margin-top: 6px; }
.g-main li > ul, .g-main li > ol { margin-top: 8px; }
.g-main code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.88em; padding: 1px 6px; border-radius: 5px; background: var(--board); overflow-wrap: anywhere; }
.g-main .g-code code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.g-main .note code { background: #fbe6bf; }
.g-main .g-code { margin-top: 20px; }
.g-main .g-code pre { padding-right: 76px; }
.g-main .g-code-label { padding-right: 76px; }
.g-main blockquote { padding: 4px 0 4px 20px; border-left: 4px solid var(--amber); color: var(--ink-2); }
.g-main blockquote p + p { margin-top: 10px; }
.g-steps ul, .g-list ul { padding-left: 20px; }
.g-main .g-steps li > ul { list-style: disc; display: block; }
.g-table { margin-top: 20px; overflow-x: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-light); }
.g-table table { border-collapse: collapse; width: 100%; font-size: 16px; }
.g-table th, .g-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line-light); }
.g-table th { background: var(--board); font-family: var(--display); font-weight: 650; }
.g-table tr:last-child td { border-bottom: 0; }
.g-main .copy:hover { border-color: var(--chalk-2); }
.g-main .copy[data-state="done"] { border-color: var(--amber); color: var(--amber); }
.g-main figure img { width: 100%; }
.index .g-main h1 { font-size: 48px; margin-top: 0; }
.index .g-main > h2 { font-size: 24px; margin-top: 44px; }
.g-cards { margin-top: 16px; padding: 0; list-style: none; display: grid; gap: 12px; }
.g-cards a { display: block; padding: 16px 20px; border-radius: 12px; border: 2px solid var(--line-light); text-decoration: none; }
.g-cards a:hover { border-color: var(--ink); }
.g-cards strong { display: block; font-family: var(--display); font-size: 19px; }
.g-cards span { display: block; margin-top: 2px; color: var(--ink-2); font-size: 16px; }
.guide .g-toc li a[aria-current="true"] { border-left-color: var(--amber); font-weight: 700; }

/* 404 */
.notfound { padding-top: 96px; padding-bottom: 120px; display: grid; justify-items: start; gap: 20px; }
.notfound h1 { font-size: 48px; }
.notfound .lead { font-size: 20px; }
.notfound img { width: 150px; }

@media (max-width: 1100px) {
  .guide { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .g-toc { display: none; }
  .g-fig { margin-left: 0; margin-right: 0; }
  .g-fig figcaption { padding: 0; }
}
/* Diagrams have a tall narrow drawing for 900 px and below (the wide one's text is too small by then); on a foldable it is kept to a readable width */
@media (max-width: 900px) {
  .g-fig.diagram img { max-width: 440px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; }
  .g-nav { position: static; }
  .g-toggle summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; border-radius: 10px; border: 2px solid var(--line-light); font-weight: 700; cursor: pointer; }
  .g-toggle[open] summary { margin-bottom: 16px; }
  .g-main h1 { font-size: 34px; }
  .g-lead { font-size: 18px; }
  .g-main > h2 { font-size: 24px; margin-top: 44px; }
  .g-fig { margin: 32px -20px 0; }
  .g-fig img { border-radius: 0; }
  .g-fig figcaption { padding: 0 20px; }
  .g-fig.diagram { margin-left: 0; margin-right: 0; } /* the diagrams have no margin of their own, so they stay inside the text column */
  .g-fig.diagram figcaption { padding: 0; }
  .g-next { grid-template-columns: 1fr; }
  .g-next .next { text-align: left; }
}
