/* Swiss Design, for /worlds/lego/ and /instructions/ (style: swiss).

   LEGO's building instructions are among the best-known wordless documents
   in the world: numbered steps on a strict grid, the parts for each step in
   a box beside its number. Swiss design is the same discipline, so the two
   meet here. The world page is the black Swiss poster (Müller-Brockmann's
   concert posters were white grotesque on black) laid on a baseplate: the
   studs are the grid, the step numerals run at poster scale, and LEGO red
   is the one accent. The Instruction Booklet keeps its white paper and
   takes the same stud grid, the same numerals and the same parts box, and
   its box front becomes the poster in miniature. The spec's card:
   docs/superpowers/specs/2026-10-11-page-styles-design.md, section 9,
   "LEGO: Swiss Design".

   Work's Swiss was reverted for looking "chopped", and this file keeps its
   lessons: no rule runs through content (the grid is studs in the backdrop,
   never lines across a section), every card keeps its box, the backdrop
   stays, and the big numerals use Space Grotesk's plain figures (the
   tabular "1" left a seam at poster size) with no negative tracking (its
   flagged "1" ran into the digit before it, so "11" read as one glyph).

   One file for the pair, in three parts: (1) what both pages share, (2) the
   world page, (3) the booklet. Everything is scoped to
   :root[data-style="swiss"]; material rules on shared components use
   :where() for the scope, so each page's own hover, focus, open and playing
   states still win. */

/* ── 1. shared: one red, the stud grid, the numerals ──────────────────── */
:root[data-style="swiss"] {
  /* LEGO red, the one accent: a fill under white type (4.9:1), a stroke or
     a numeral on black (4:1) or on the booklet's paper (4.6:1) */
  --sw-red: #e3000b;
  --sw-black: #0a0a0a;
  /* one stud is the grid's unit on both pages */
  --sw-pitch: 48px;
  /* the step numeral: poster scale, four to six and a half times the body */
  --sw-num: clamp(4rem, 7.5vw, 6.5rem);
  /* a 2x1 brick seen from the side, in red: the part in every parts box */
  --sw-brick:
    linear-gradient(var(--sw-red), var(--sw-red)) 0 100% / 100% 64% no-repeat,
    linear-gradient(var(--sw-red), var(--sw-red)) 14% 0 / 30% 40% no-repeat,
    linear-gradient(var(--sw-red), var(--sw-red)) 86% 0 / 30% 40% no-repeat;
  /* a 2x2 brick seen from above, the poster's red square: four studs, each
     a disc with a shadowed rim, on the red */
  --sw-stud2: radial-gradient(circle, #f2333b 0 46%, #a8000a 47% 56%, transparent 57%);
  --sw-top: var(--sw-stud2) 0 0 / 50% 50% repeat, var(--sw-red);

  /* the booklet's own face, which is the world page's heading face too:
     an interface defines no --serif, so the stack is literal */
  --s-display: "Space Grotesk", system-ui, sans-serif;
  --s-display-w: 700;
  --s-display-ls: -0.04em;
  --s-focus: var(--sw-red);
  /* square, flat, still: nothing lifts and nothing casts a shadow */
  --s-r: 0px;
  --s-r-sm: 0px;
  --s-shadow: none;
  --s-shadow-hi: none;
  --s-lift: 0px;
}

/* ── 2. the world page: the black poster on a baseplate ────────────────── */

/* Neutral black, no blue cast. These sit on the world page's body, not on
   :root, so the booklet (which defines no --bg) is never judged against a
   black it does not have. --mute carries text and holds 5.9:1. */
:root[data-style="swiss"] body[data-fan="lego"] {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --ink: #f4f4f2;
  --ink-dim: #b3b3ae;
  --mute: #8c8c88;
  --line: #262626;
  /* the world's colour moves from yellow to red; items keep their own --a */
  --a: #e3000b;

  /* a card is a solid block with a quiet edge: boxes kept, no glass */
  --s-surface: #121212;
  --s-surface-hi: #171717;
  --s-edge: #2a2a2a;
  --s-bw: 1px;

  /* the bars keep their boxes and become solid, square and flat */
  --s-bar: #0a0a0a;
  --s-bar-edge: #2a2a2a;
  --s-bar-r: 0px;
  --s-bar-shadow: none;
  --s-bar-blur: none;

  /* no texture but the studs: the grain, the vignette, the circuit field and
     the HUD lattice (lines across the page) all go */
  --s-grain: 0;
  --s-vignette: 0;
  --s-field: 0;
  --hud-grid: transparent;
  --hud-scan: transparent;
  --hud-sweep: transparent;
  --hud-lit: transparent;
  --hud-halo: transparent;
}
@media (prefers-contrast: more) {
  :root[data-style="swiss"] body[data-fan="lego"] { --ink-dim: #c8c8c4; --mute: #a8a8a4; --line: #404040; --s-edge: #4a4a4a; }
}
:root[data-style="swiss"] .tabbar { --s-accent: #fff; }

/* The baseplate. The sky's warm gradient and its scatter of coloured studs
   give way to one black plate with a stud on every 48px, lit a little more
   near the top. The bricks along the foot stay, flat, in the poster's
   colours: white, greys and one red. The whole sky is capped at .36
   (fanpages.css), so these are drawn bright to land faint. */
:root[data-style="swiss"] .lg-sky { background: var(--sw-black); }
:root[data-style="swiss"] .lg-sky::before { background-image: none; }
:root[data-style="swiss"] .lg-plate {
  background-color: var(--sw-black);
  background-image: radial-gradient(circle, rgba(255, 255, 255, .13) 0 8px, rgba(255, 255, 255, .05) 8.5px 10px, transparent 10.5px);
  background-size: var(--sw-pitch) var(--sw-pitch);
  background-position: center top;
}
:root[data-style="swiss"] .lg-studfield {
  background-image: radial-gradient(circle, rgba(255, 255, 255, .14) 0 8px, transparent 8.5px);
  background-size: var(--sw-pitch) var(--sw-pitch);
  background-position: center top;
  animation: none;
}
:root[data-style="swiss"] .lg-glow { background: none; }
:root[data-style="swiss"] .lgb-y rect { fill: #5c5c5a; }
:root[data-style="swiss"] .lgb-r rect { fill: var(--sw-red); }
:root[data-style="swiss"] .lgb-b rect { fill: #2c2c2c; }
:root[data-style="swiss"] .lgb-g rect { fill: #404040; }
:root[data-style="swiss"] .lg-bricks rect:first-child { rx: 0; }

/* Square everywhere: the poster has no round corners. Pictures of round
   things keep theirs (a stud, a tube, the falling studs, photographs). */
:root[data-style="swiss"] body[data-fan="lego"] main :not(img, picture, canvas, video, iframe, svg, .lg-shape--stud, .lg-studs i, .lg-under i),
:root[data-style="swiss"] body[data-fan="lego"] main :not(.lg-shape--stud)::before,
:root[data-style="swiss"] body[data-fan="lego"] main :not(.lg-shape--stud)::after { border-radius: 0; }

/* ── the title: LEGO at poster scale, and the red square ───────────────── */
:root[data-style="swiss"] .fan-title {
  font-family: var(--s-display); font-weight: 700;
  font-size: clamp(5rem, 15vw, 12rem); line-height: .8; letter-spacing: -0.04em;
  text-transform: none; text-shadow: none; color: var(--ink);
  margin: 0.1em 0 2.2rem;
}
/* the full stop is a 2x2 brick seen from above, sat on the baseline */
:root[data-style="swiss"] .fan-title::after {
  content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .08em;
  background: var(--sw-top);
}
:root[data-style="swiss"] .fan-kicker { color: var(--ink); }

/* the way to the booklet: the page's one solid red block */
:where(:root[data-style="swiss"]) .fan-iface { background: var(--sw-red); border-color: var(--sw-red); color: #fff; }
:where(:root[data-style="swiss"]) :is(.fan-iface-k, .fan-iface-a) { color: #fff; }
:where(:root[data-style="swiss"]) .fan-iface-a { border-color: rgba(255, 255, 255, .7); }
@media (hover: hover) {
  :where(:root[data-style="swiss"]) .fan-iface:hover { background: #fff; border-color: #fff; color: var(--sw-black); }
  :where(:root[data-style="swiss"]) .fan-iface:hover :is(.fan-iface-k, .fan-iface-a) { color: var(--sw-black); border-color: var(--sw-black); }
}

/* The booklet fragment is a corner of the booklet's own page: its paper, its
   ink, its red, and the same stud grid embossed faintly behind the rows. */
:root[data-style="swiss"] .fan-peek {
  border: 2px solid #16181c; box-shadow: none;
  background:
    radial-gradient(circle, rgba(22, 24, 28, .03) 0 9px, transparent 9.5px) center top / var(--sw-pitch) var(--sw-pitch),
    #f7f7f4;
  --s-focus: var(--sw-red);
}
:root[data-style="swiss"] .fan-peek-bar { background: #16181c; border-bottom: 0; color: #f7f7f4; }
:root[data-style="swiss"] .fan-peek-dot { background: var(--sw-red); box-shadow: none; }
:root[data-style="swiss"] .fan-peek-live { color: #f7f7f4; }
:root[data-style="swiss"] .fan-peek-rows > div { border-bottom: 1px solid rgba(22, 24, 28, .16); }
:root[data-style="swiss"] .fan-peek-rows dt { color: #4a4e56; }
:root[data-style="swiss"] .fan-peek-rows dd { color: #16181c; font-weight: 500; }
:root[data-style="swiss"] .fan-peek-n { color: #4a4e56; }
:root[data-style="swiss"] .fan-peek-go { color: #b8000a; border-bottom: 2px solid var(--sw-red); }

/* the outside links: square, with an edge you can see */
:where(:root[data-style="swiss"]) .fan-link { border-color: #6b6b6b; }
@media (hover: hover) {
  :where(:root[data-style="swiss"]) .fan-link:hover { color: #fff; border-color: #fff; background: var(--s-surface-hi); }
}

/* ── the signature: every section heading is a numbered step ─────────────
   The numeral at poster scale on the left, the step's name beside it, and
   under the name the parts box: the section's note in a box, with its part
   drawn in red, the way a booklet sets the parts for a step beside its
   number. A heading with no note still gets its box, holding the part. */
:root[data-style="swiss"] body[data-fan="lego"] main { counter-reset: sw-step; }
:root[data-style="swiss"] :is(main .subsec--fan, .lg-stud-panel > h2, .lg-note > h2) {
  counter-increment: sw-step;
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(0.9rem, 2vw, 1.6rem); row-gap: 0.6rem; align-items: start;
  font-family: var(--s-display); font-weight: 700;
  font-size: clamp(1.4rem, 2.3vw, 1.95rem); line-height: 1.08; letter-spacing: -0.025em;
  text-transform: none; color: var(--ink);
  margin: clamp(3.8rem, 7vw, 5.5rem) 0 2rem;
}
/* "The studs" was Inter and reading faces never move, so it keeps Inter */
:root[data-style="swiss"] .lg-stud-panel > h2 { font-family: var(--sans); letter-spacing: -0.03em; margin-top: 0; }
:root[data-style="swiss"] .lg-note > h2 { margin-top: 0; }
:root[data-style="swiss"] .fan-fold-sum .subsec--fan { margin: 0; }
:root[data-style="swiss"] .fan-fold { margin-top: clamp(3.8rem, 7vw, 5.5rem); }
/* on a phone the folded step's count and arrow drop under its parts box */
@media (max-width: 560px) {
  :root[data-style="swiss"] .fan-fold-sum { flex-wrap: wrap; row-gap: 0.8rem; }
  :root[data-style="swiss"] .fan-fold-sum .subsec--fan { flex: 1 1 100%; }
}

:root[data-style="swiss"] :is(main .subsec--fan, .lg-stud-panel > h2, .lg-note > h2)::before {
  content: counter(sw-step);
  grid-column: 1; grid-row: 1 / span 2;
  min-width: 1.12em;
  font-family: var(--s-display); font-weight: 700; font-size: var(--sw-num);
  font-variant-numeric: normal; line-height: .74; letter-spacing: 0;
  color: var(--ink);
}
/* the parts box: the note, set in its label face, with the red part */
:root[data-style="swiss"] main .subsec--fan .subsec-yr {
  grid-column: 2; justify-self: start;
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.45rem 0.75rem 0.45rem 0.6rem;
  background: #161616; border: 1px solid #3a3a3a;
  font-family: var(--mono); font-weight: 400; font-size: 0.68rem; line-height: 1.35;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim);
}
:root[data-style="swiss"] main .subsec--fan .subsec-yr::before {
  content: ""; flex: none; width: 24px; height: 15px; background: var(--sw-brick);
}
/* every other step's part is a longer brick, so the parts change as you go */
:root[data-style="swiss"] main .fan-sec:nth-child(even) .subsec-yr::before { width: 40px; }
/* the rule beside the heading goes, and on a heading with no note it
   becomes the parts box itself, holding only the part */
:root[data-style="swiss"] :is(main .subsec--fan, .lg-stud-panel > h2, .lg-note > h2)::after {
  content: none;
}
:root[data-style="swiss"] :is(main .subsec--fan:not(:has(.subsec-yr)), .lg-stud-panel > h2, .lg-note > h2)::after {
  content: ""; grid-column: 2; grid-row: 2; width: 52px; height: 32px; flex: none;
  border: 1px solid #3a3a3a;
  background:
    linear-gradient(var(--sw-red), var(--sw-red)) 50% 70% / 26px 10px no-repeat,
    linear-gradient(var(--sw-red), var(--sw-red)) calc(50% - 6.5px) 30% / 7px 5px no-repeat,
    linear-gradient(var(--sw-red), var(--sw-red)) calc(50% + 6.5px) 30% / 7px 5px no-repeat,
    #161616;
}

/* ── blocks: solid, square, flat ───────────────────────────────────────── */
:where(:root[data-style="swiss"]) :is(.fan-stat, .fan-tb-wrap, .fan-shot, .fan-land, .fan-linkcard, .wsib-i a, .fan-beenset a) {
  background: var(--s-surface); border-color: var(--s-edge); box-shadow: none;
}
:where(:root[data-style="swiss"]) .fan-intro-when {
  background: var(--s-surface); border: 1px solid var(--s-edge); box-shadow: none;
}
:where(:root[data-style="swiss"]) .fan-when-k { color: var(--ink-dim); }
:where(:root[data-style="swiss"]) .fan-intro-when b { color: var(--ink); }
@media (hover: hover) {
  :where(:root[data-style="swiss"]) :is(.fan-card, .fan-tile, .fan-stat, .fan-linkcard, .fan-land, .wsib-i a):hover {
    transform: none; box-shadow: none; border-color: var(--ink);
  }
}

/* the figures: plain facts at a size that reads as a decision */
:root[data-style="swiss"] .fan-stat b {
  font-family: var(--s-display); font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: 0;
  color: var(--ink);
}
:root[data-style="swiss"] .fan-stat i { color: var(--ink-dim); }
/* Six across, a poster figure broke in the middle ("16 of / 26"). Fewer,
   wider columns keep every figure on one line at full size: two to a row on
   a tablet, three over two rows on a desktop. A phone's two narrow columns
   still let a figure wrap rather than shrink it. */
@media (min-width: 720px) {
  :root[data-style="swiss"] body[data-fan="lego"] .fan-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root[data-style="swiss"] body[data-fan="lego"] .fan-stat b { white-space: nowrap; }
}
@media (min-width: 1100px) {
  :root[data-style="swiss"] body[data-fan="lego"] .fan-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Each item keeps its own colour where colour is data (the swatch, a
   licence's bar), and its words go to the poster's inks, so red stays the
   page's only accent. :where keeps these at the shared rules' weight, so
   hovering and playing still win. */
:where(:root[data-style="swiss"]) .fan-swatch { box-shadow: none; }
:root[data-style="swiss"] :is(.fan-tiletext i, .fan-card .fan-sub) { color: var(--ink-dim); opacity: 1; }
:where(:root[data-style="swiss"]) :is(.fan-tag, .fan-visit, .fan-hear) { color: var(--ink); border-color: #6b6b6b; }
:where(:root[data-style="swiss"]) .fan-hear { background: transparent; }
/* a card's tag is a label box at its own width, not a bar across the card */
:where(:root[data-style="swiss"]) .fan-card > .fan-tag { justify-self: start; }

/* the sort row: square keys, the chosen one a red block */
:where(:root[data-style="swiss"]) .fan-sortbtn { border-color: #3a3a3a; background: transparent; }
:where(:root[data-style="swiss"]) .fan-sortbtn.is-on { color: var(--sw-black); background: var(--ink); border-color: var(--ink); }
/* the tallies, the table's years and sorted column, the folded section's
   arrow and the photographs' titles were in the world's colour; small type
   in red would fall under 4.5:1, so they take the poster's white */
:where(:root[data-style="swiss"]) .fan-tally--rate { border-color: #3a3a3a; background: transparent; }
:root[data-style="swiss"] :is(.fan-tally--rate b, .fan-tb tbody th, .fan-tb thead [aria-sort] button, .fan-fold-i, .fan-shot figcaption b) { color: var(--ink); }
:root[data-style="swiss"] :is(.fan-land-sub, .fan-ride i, .fan-linkhead i, .wsib-k, .wsib-a) { color: var(--ink-dim); }
:where(:root[data-style="swiss"]) .fan-tb thead th { border-bottom-color: #3a3a3a; }
@media (max-width: 720px) {
  :root[data-style="swiss"] :is(.fan-tb tbody th, .fan-tb thead th:first-child) { background: var(--s-surface); }
}
/* the note under the hero ran a column wider than the sections below it;
   as a solid box that shows, so it ends where they end */
@media (min-width: 720px) {
  :where(:root[data-style="swiss"]) .fan-intro-when { max-width: calc(var(--maxw) - 2 * var(--gutter)); }
}

/* ── the stud fountain: the readout as a poster figure ─────────────────── */
:root[data-style="swiss"] .lg-stud-val {
  font-family: var(--s-display); font-weight: 700; font-size: var(--sw-num);
  line-height: .8; letter-spacing: 0; font-variant-numeric: normal;
}
:root[data-style="swiss"] .lg-stud-total b { color: var(--ink); }
:where(:root[data-style="swiss"]) .lg-studbtn { border-color: #3a3a3a; background: var(--s-surface); }
/* each stud button's ring was its own stud's colour; it is the page's red */
:root[data-style="swiss"] .lg-studbtn:focus-visible { outline-color: var(--s-focus); }
:root[data-style="swiss"] .lg-fountain {
  border: 1px solid var(--s-edge);
  background:
    radial-gradient(circle, rgba(255, 255, 255, .05) 0 8px, transparent 8.5px) center bottom / var(--sw-pitch) var(--sw-pitch),
    var(--s-surface);
}

/* ── the brick, drawn the way a booklet draws it: flat, no shine ───────── */
:root[data-style="swiss"] .lg-studs i { background: var(--sw-red); box-shadow: inset 0 -4px 0 #b4000a; }
:root[data-style="swiss"] .lg-slab { background: var(--sw-red); box-shadow: inset 0 -14px 0 #b4000a; }
:root[data-style="swiss"] .lg-under { background: #7a0006; box-shadow: none; }
:root[data-style="swiss"] .lg-under i { border-color: var(--sw-red); background: var(--sw-black); box-shadow: none; }
:root[data-style="swiss"] .lg-dims span { font-size: 0.66rem; color: var(--ink-dim); }

/* ── the bars ──────────────────────────────────────────────────────────────
   The current tab is a red block, the one place red sits in the chrome. */
:root[data-style="swiss"] .tabbar a.is-current,
:root[data-style="swiss"] .tabbar a.is-going { background: var(--sw-red); box-shadow: none; color: #fff; }

/* ── 3. the Instruction Booklet: the same grid and numerals, on paper ─────
   The paper stays; the studs under it move to the world page's 48px; the
   box front becomes the poster; every heading is a numbered step with its
   parts box; the booklet's yellow gives way to the one red; and nothing
   lifts or casts its hard offset shadow, because a Swiss page is flat. */
:root[data-style="swiss"] .lg-table > .lg-studs {
  background-image:
    radial-gradient(circle at 50% 46%, rgba(22, 24, 28, .06) 0 9px, transparent 9.5px),
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, .85) 0 9px, transparent 9.5px);
  background-size: var(--sw-pitch) var(--sw-pitch);
  background-position: center top;
}

/* the booklet's grey for captions sat at exactly 4.5:1 on its paper and
   rounded under; a shade darker holds 5.4:1 */
:root[data-style="swiss"] .lg { --mute: #62666f; }

/* the box front: the world page in miniature, black, studded, white type,
   the red square after the name; the minifigure keeps a paper window */
:root[data-style="swiss"] .lg-box {
  border: 3px solid var(--sw-black); box-shadow: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .07) 0 8px, transparent 8.5px) center top / var(--sw-pitch) var(--sw-pitch),
    var(--sw-black);
  color: #f4f4f2;
}
:root[data-style="swiss"] .lg-box-art { background: #f7f7f4; border: 0; }
:root[data-style="swiss"] .lg-box-age { background: #f7f7f4; border-color: #f7f7f4; color: #16181c; }
:root[data-style="swiss"] .lg-box-k { color: #b3b3ae; font-size: 0.66rem; }
:root[data-style="swiss"] .lg-box-t {
  font-size: clamp(2rem, 4.6vw, 2.7rem); line-height: .92; letter-spacing: 0; margin-top: 0.4rem;
}
:root[data-style="swiss"] .lg-box-t::after {
  content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .1em;
  background: var(--sw-top);
}
:root[data-style="swiss"] .lg-box-s { color: #b3b3ae; }

/* square and flat: every box keeps its ink outline and loses its corners,
   its offset shadow and its lift */
:root[data-style="swiss"] .lg :is(.lg-box, .lg-box-art, .lg-btn, .lg-model, .lg-model-plate, .lg-prog, .lg-pbar, .lg-bags li, .lg-callout, .lg-feat, .lg-step, .lg-tick, .lg-box-age) {
  border-radius: 0;
}
:root[data-style="swiss"] .lg :is(.lg-btn, .lg-model, .lg-callout, .lg-feat, .lg-step) { box-shadow: none; transform: none; }

/* the buttons: the main one a red block, the other paper */
:root[data-style="swiss"] .lg .lg-btn { background: var(--sw-red); border-color: var(--sw-red); color: #fff; }
:root[data-style="swiss"] .lg .lg-btn--ghost { background: #f7f7f4; border-color: #16181c; color: #16181c; }
@media (hover: hover) {
  :root[data-style="swiss"] .lg .lg-btn:hover { background: #16181c; border-color: #16181c; color: #fff; }
}

/* the set's figures, at poster scale */
:root[data-style="swiss"] .lg-specs { border-top-width: 3px; }
:root[data-style="swiss"] .lg-specs dt { font-size: 0.66rem; color: #4a4e56; }
:root[data-style="swiss"] .lg-specs dd {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: 0; margin-top: 0.35rem;
}

/* the headings: numbered steps, with the parts box under the name */
:root[data-style="swiss"] .lg-main { counter-reset: sw-step; }
:root[data-style="swiss"] .lg-main { --sw-gap: clamp(0.9rem, 2vw, 1.6rem); --sw-hsize: clamp(1.5rem, 3vw, 2.1rem); }
:root[data-style="swiss"] .lg-h {
  counter-increment: sw-step;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sw-gap);
  align-items: start;
  font-size: var(--sw-hsize); line-height: 1.05; letter-spacing: -0.03em;
}
:root[data-style="swiss"] .lg-h::before {
  content: counter(sw-step);
  min-width: 1.12em;
  font-weight: 700; font-size: var(--sw-num); font-variant-numeric: normal;
  line-height: .74; letter-spacing: 0; color: #16181c;
}
:root[data-style="swiss"] .lg-h-sub {
  display: flex; align-items: center; gap: 0.75rem; width: fit-content;
  max-width: calc(100% - var(--sw-num) * 1.12 - var(--sw-gap));
  /* pulled up beside the numeral, under the name, where the world page's
     parts box sits */
  margin: calc(var(--sw-hsize) * 1.05 + 0.6rem - var(--sw-num) * .74) 0 2rem calc(var(--sw-num) * 1.12 + var(--sw-gap));
  padding: 0.55rem 0.8rem 0.55rem 0.65rem;
  background: #e9e9e4; border: 2px solid #16181c;
  color: #4a4e56;
}
/* on a phone a long name wraps beside the numeral, so the box drops
   below the heading instead of rising beside it, still under the name */
@media (max-width: 560px) {
  :root[data-style="swiss"] .lg-h-sub { margin-top: 0.8rem; }
}
:root[data-style="swiss"] .lg-h-sub::before {
  content: ""; flex: none; width: 24px; height: 15px; background: var(--sw-brick);
}

/* the model and its readout */
:root[data-style="swiss"] .lg-model { background: #fff; }
:root[data-style="swiss"] .lg-prog-top { font-size: 0.66rem; }
:root[data-style="swiss"] .lg-prog-top b { font-family: var(--s-display); font-size: 2.2rem; letter-spacing: 0; }
:root[data-style="swiss"] .lg-pbar i { background: var(--sw-red); }
:root[data-style="swiss"] .lg-bags b { border-radius: 0; font-size: 0.66rem; }
:root[data-style="swiss"] .lg-bags li.is-done { background: var(--sw-red); border-color: var(--sw-red); color: #fff; }
:root[data-style="swiss"] .lg-bags li.is-done em { color: #fff; }
:root[data-style="swiss"] .lg-bags li.is-done b { color: #16181c; }

/* the callout, which the parts boxes above copy */
:root[data-style="swiss"] .lg-callout { background: #e9e9e4; }
:root[data-style="swiss"] .lg-callout-t b { color: #4a4e56; }

/* The bags: each number a red 1x1 tile, one stud wide */
:root[data-style="swiss"] .lg-bag-h { border-bottom-style: solid; border-bottom-color: #16181c; color: #16181c; font-size: 0.74rem; }
:root[data-style="swiss"] .lg-bag-n {
  width: var(--sw-pitch); height: var(--sw-pitch); border: 0; border-radius: 0;
  background: var(--sw-red); color: #fff;
  font-family: var(--s-display); font-size: 1.9rem; font-weight: 700; letter-spacing: 0;
}

/* the steps: each number in the booklet's face, large, as a booklet sets it */
:root[data-style="swiss"] .lg-step { background: #fff; }
:root[data-style="swiss"] .lg-step-n {
  width: 1.5em; font-family: var(--s-display); font-weight: 700;
  font-size: 1.6rem; letter-spacing: 0; line-height: 1; color: #16181c;
}
:root[data-style="swiss"] .lg-step-t i { color: #5a5f68; }
:root[data-style="swiss"] .lg-step-p { font-size: 0.66rem; }
:root[data-style="swiss"] .lg-step.is-built { background: #fff; }
:root[data-style="swiss"] .lg-step.is-built .lg-step-n { color: var(--sw-red); }
:root[data-style="swiss"] .lg-step.is-built .lg-step-n::after { content: none; }
:root[data-style="swiss"] .lg-tick { border-radius: 0; }
:root[data-style="swiss"] .lg-tick[aria-pressed="true"] { background: var(--sw-red); border-color: var(--sw-red); color: #fff; }
@media (hover: hover) {
  :root[data-style="swiss"] .lg .lg-step:hover { border-color: var(--sw-red); }
  :root[data-style="swiss"] .lg .lg-step:hover .lg-step-n { color: var(--sw-red); }
}

/* the back of the box: each panel numbered at poster scale in red */
:root[data-style="swiss"] .lg-feat { padding-top: 1rem; background: #fff; }
:root[data-style="swiss"] .lg-feat-n {
  position: static; display: block; width: auto; height: auto; margin-bottom: 0.7rem;
  border: 0; border-radius: 0; background: none; place-items: initial;
  font-family: var(--s-display); font-size: 4rem; font-weight: 700; line-height: .78;
  letter-spacing: 0; color: var(--sw-red);
}
:root[data-style="swiss"] .lg-feat a { border-bottom-color: var(--sw-red); }

/* every ring on the booklet is the one red */
:root[data-style="swiss"] .lg :focus-visible { outline: 3px solid var(--s-focus); outline-offset: 2px; }

/* The world button, purple on every interface until a style sets it, is a
   red block here, square, with white type: the booklet's one loud thing,
   leading back to the poster. Its border and padding stay, so the header
   keeps its height. */
:root[data-style="swiss"] .lg .iw {
  --iw-a: #e3000b; --iw-on: #16181c;
  border-radius: 0; border-color: var(--sw-red); background: var(--sw-red); color: #fff;
}
:root[data-style="swiss"] .lg .iw-i { border-radius: 0; background: #16181c; color: #fff; }
:root[data-style="swiss"] .lg :is(.iw-k, .iw-t b, .iw-a) { color: #fff; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  :root[data-style="swiss"] .lg .iw:hover { background: #16181c; border-color: #16181c; box-shadow: none; transform: none; }
}
:root[data-style="swiss"] .lg .iw:focus-visible { outline: 3px solid var(--s-focus); outline-offset: 3px; }
