/* The home page: "N1. Home page v8" on the design canvas, v6 ("L. Builders page v6", flattened in site/index.html) drawn
   as a sheet of the drawing set. Loaded after styles.css, which holds the tokens, the typemark, the status mark (.led),
   buttons, the RAP tag, the signup dialog, the drawing frame and the drawing kit (.dwg-*, .tblock).
   At 1440: 12 columns, 80px margins, 40px gutters. Section bands run the full width; their content stops at 1280. */

.band {
  position: relative;
  padding-left: max(var(--margin), calc(50% - 720px + var(--margin)));
  padding-right: max(var(--margin), calc(50% - 720px + var(--margin)));
}
.anchor-alias { position: absolute; top: 0; }

/* A text link: soft, underlined in the line color, 44px to tap. */
.tlink { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--soft); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
.tlink:hover { color: var(--ink); text-decoration-color: var(--soft); }
.tlink-sm { font-size: 13px; }
.links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; column-gap: var(--s3); }

/* Header */
/* The header row stays on screen as the page scrolls (Chris, Nov 6), under the frame's top band from 1200px. */
.hd { position: sticky; top: 0; z-index: 30; background: var(--paper); display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; height: 72px; border-bottom: 1px solid var(--line); }
.hd-nav { grid-column: 5 / span 4; display: flex; justify-content: center; gap: var(--s4); font-size: 13px; }
.hd-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); text-decoration: none; }
.hd-nav a:hover { color: var(--ink); }
.hd-cta { grid-column: 10 / span 3; display: flex; align-items: center; justify-content: flex-end; gap: var(--s1); }
.hd-cta .btn { min-height: 44px; }

/* The install line: the command and an outlined Copy, in a well. Commands never wrap; a long one scrolls. */
.cmd { display: flex; align-items: center; gap: var(--s2); min-width: 0; max-width: 100%; height: 56px; padding: 0 var(--s1) 0 20px; border: 1px solid var(--line-3); border-radius: 0; background: var(--well); }
.cmd code { min-width: 0; overflow-x: auto; font-size: 16px; line-height: 24px; letter-spacing: 0; color: var(--ink); scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd-dollar { color: var(--muted); }
/* 40px tall, 44px to tap: the hit area reaches 2px above and below. */
.cmd-copy { position: relative; flex-shrink: 0; height: 40px; padding: 0 var(--s2); border: 1px solid var(--line-2); border-radius: 0; background: var(--panel); color: var(--ink); font: 500 13px/1 var(--sans); cursor: pointer; }
.cmd-copy::before { content: ""; position: absolute; inset: -3px 0; }
.cmd-copy:hover { border-color: var(--line-3); }

/* Hero */
.hero6 { padding-top: 128px; }
/* The headline between two center-line marks (℄ and a dash-dot line), 100px in from the margins. */
.h6-cl { grid-column: 1 / -1; position: relative; padding: 0 100px; }
.cl { position: absolute; top: 40px; font-size: 20px; line-height: 20px; color: var(--muted); }
.cl::after { content: ""; position: absolute; top: 11px; width: 64px; height: 1px; background: repeating-linear-gradient(to right, var(--muted) 0 18px, transparent 18px 24px, var(--muted) 24px 28px, transparent 28px 34px); }
.cl-l { left: -2px; }
.cl-l::after { left: 28px; }
.cl-r { right: -2px; }
.cl-r::after { right: 28px; transform: scaleX(-1); }
.h6-ink { position: relative; height: 112px; overflow: hidden; }
.h6-title { padding-top: 4px; font-size: 92px; line-height: 0.95; font-weight: 700; letter-spacing: -0.045em; white-space: nowrap; text-align: center; }
.h6-br { display: none; }
.h6-ink canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.h6-sub { grid-column: 1 / -1; margin-top: 28px; text-align: center; font-size: 28px; line-height: 36px; font-weight: 500; letter-spacing: -0.02em; color: var(--soft); text-wrap: balance; }
.h6-install { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 72px; }

/* The tools strip: a dimension line over a parts list, each tool numbered in a circle. */
.tools { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; margin-top: 88px; }
.tools-rule { display: flex; align-items: center; height: 20px; }
.tools-rule svg { flex-shrink: 0; fill: var(--muted); }
.tr-end { flex-shrink: 0; width: 1px; height: 20px; background: var(--muted); }
.tr-line { flex-grow: 1; height: 1px; background: var(--line-3); }
.tr-label { padding: 0 var(--s2); font: 13px/20px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--muted-2); }
/* The cells' borders are the list's background showing through 1px gaps, so any number of columns keeps its rules. */
.tools-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line-2); background: var(--line-2); }
.tools-list li { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 160px; padding-bottom: 32px; background: var(--paper); }
.tl-no { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid var(--muted); border-radius: 50%; font: 11px/1 var(--mono); color: var(--soft); }
.tl-logo { flex-shrink: 0; color: var(--ink); }
.tl-name { font: 13px/20px var(--mono); color: var(--soft); white-space: nowrap; }
/* Each tool's sources, a strip along the cell's foot; the strips' rules line up into one row. */
.tl-src { position: absolute; left: 0; right: 0; bottom: 0; height: 32px; border-top: 1px solid var(--line-2); font: 9px/31px var(--label); letter-spacing: 0.1em; text-transform: uppercase; text-align: center; color: var(--muted); }
.tools-cap { display: flex; justify-content: space-between; gap: var(--s2); font: 9px/14px var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* The demo: an illustrative Codex session, fixed text, as Fig. 1. Each terminal line is a cell in columns 1 to 9 with
   its numbered callout beside it in 10 to 12, on a leader that ends in a dot on the terminal, so a line that wraps
   keeps its callout level. */
.demo { grid-column: 1 / -1; margin-top: 96px; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); font: 14px/22px var(--mono); letter-spacing: 0; color: var(--soft); }
.demo-bar, .demo-cell, .demo figcaption { grid-column: 1 / span 9; }
.demo-bar { display: flex; justify-content: space-between; gap: var(--s2); padding: 8px var(--s2); border: 1px solid var(--line-2); background: var(--panel); font-size: 12px; line-height: 18px; color: var(--muted); }
.demo-cell { padding: 10px var(--s3); border: solid var(--line-2); border-width: 0 1px; background: var(--well); }
.demo-first { padding-top: 20px; }
.demo-last { padding-bottom: 22px; border-bottom-width: 1px; }
.demo-ans { padding-top: 6px; }
.demo-note { --pt: 10px; --lead: 44px; grid-column: 10 / span 3; position: relative; display: flex; align-items: flex-start; gap: 12px; padding-top: var(--pt); font: 14px/22px var(--sans); color: var(--soft); }
.demo-bar + .demo-cell + .demo-note, .demo-in { --pt: 20px; }
.demo-in { --lead: 68px; }
.demo-note::before { content: ""; position: absolute; top: calc(var(--pt) + 10px); left: calc(-1 * var(--lead)); width: var(--lead); height: 1px; background: var(--muted); }
.demo-note::after { content: ""; position: absolute; top: calc(var(--pt) + 7px); left: calc(-1 * var(--lead) - 3px); width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.demo-note .dwg-balloon { border-color: var(--soft); color: var(--ink); }
.demo-line { display: grid; grid-template-columns: 24px minmax(0, 1fr); }
.demo-check { align-items: center; }
.demo-check .rap-tag { padding: 0 6px; margin-right: 4px; font-size: 12px; line-height: 20px; }
.demo-ink { color: var(--ink); }
.demo-dim { color: var(--muted); }
/* The spinner: its eight braille frames stacked, one line showing, stepped up a line each 80 ms. */
.demo-spin { align-self: start; height: 1lh; overflow: hidden; }
.demo-spin > span { display: block; animation: demo-spin 640ms steps(8) infinite; }
@keyframes demo-spin { to { transform: translateY(-8lh); } }
@media (prefers-reduced-motion: reduce) { .demo-spin > span { animation: none; } }
.demo-answer { display: flex; flex-direction: column; gap: var(--s1); margin-left: 24px; padding: 14px var(--s2); border: 1px solid var(--line-3); border-radius: 0; }
.demo-known { color: var(--accent); }
.demo-facts { display: grid; row-gap: 2px; margin: 0; }
.demo-facts > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); }
.demo-facts dt { color: var(--muted); }
.demo-facts dd { margin: 0; color: var(--ink); }
.demo figcaption { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); margin-top: var(--s3); }
.demo figcaption .dwg-fig { flex-shrink: 0; }
.demo-ask { max-width: 52ch; font: 13px/20px var(--mono); color: var(--muted); text-align: right; }

/* Sections: a numbered label with a rule, a heading, then the section's own parts, 40px apart. */
.sec { row-gap: var(--s4); align-items: start; padding-top: var(--s6); padding-bottom: 112px; }
.sec-well { margin-top: 112px; background: var(--well); }
.sec-panel { background: var(--panel); }
.sec-label { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s2); font: 10px/16px var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sec-no { color: var(--ink); }
.sec-line { flex-grow: 1; height: 1px; background: var(--line); }
.sec-h2 { grid-column: 1 / span 9; font-size: 44px; line-height: 50px; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }

/* 01 Why it matters */
.steps { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); font-size: 16px; line-height: 24px; }
.steps-run { display: flex; flex-direction: column; gap: 14px; max-width: 100%; }
.steps-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; }
.step { padding: 12px var(--s2); border: 1px dashed var(--line-3); color: var(--muted-2); white-space: nowrap; }
.step-arrow { padding: 0 14px; color: var(--muted); }
.step-rap { display: inline-flex; align-items: center; gap: 10px; width: max-content; border: 1px solid var(--ink); color: var(--ink); }
.steps-rap { min-width: 202px; }
.dim-soft { color: var(--soft); }
.why-quote { grid-column: 1 / span 10; margin: var(--s3) 0 0; padding-left: 32px; border-left: 2px solid var(--ink); font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -0.03em; color: var(--muted); text-wrap: balance; }
.why-quote span { color: var(--ink); }
.why-h3 { grid-column: 1 / span 5; margin-top: var(--s3); font-size: 36px; line-height: 42px; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.why-body { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); font-size: 19px; line-height: 30px; color: var(--muted-2); }

/* 02 How your agent decides: When, then Check RAP, forking to Known and New, each with its Then. */
.flow { grid-column: 1 / -1; display: grid; grid-template-columns: 260px 40px 220px 120px minmax(0, 1fr) 40px minmax(0, 1fr); grid-template-rows: 140px 140px; row-gap: 60px; }
.fl-branches, .fl-branch { display: contents; }
.fl-box { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: var(--s2) 20px; border: 1px solid var(--line-3); background: var(--paper); }
.fl-box .dwg-balloon { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; font-size: 10px; }
.fl-k { font: 10px/16px var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fl-t { font-size: 18px; line-height: 26px; font-weight: 500; color: var(--ink); }
.fl-d { font-size: 14px; line-height: 20px; color: var(--muted-2); }
.fl-line { align-self: center; height: 1px; background: var(--muted); }
.fl-when { grid-column: 1; grid-row: 1 / span 2; align-self: center; height: 140px; }
.fl-l1 { grid-column: 2; grid-row: 1 / span 2; }
.fl-check { grid-column: 3; grid-row: 1 / span 2; align-self: center; height: 140px; border-color: var(--ink); }
/* The fork: a wire in from Check RAP to a junction dot 40px on, up and down to the rows' middles, then on to each box. */
.fl-fork { grid-column: 4; grid-row: 1 / span 2; position: relative; }
.fl-fork i { position: absolute; background: var(--muted); }
.ff-in { left: 0; top: 170px; width: 40px; height: 1px; }
.ff-v { left: 40px; top: 70px; width: 1px; height: 200px; }
.ff-out { left: 40px; width: 72px; height: 1px; }
.ff-out::after { content: ""; position: absolute; right: -8px; top: -4px; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; border-left: 8px solid var(--muted); }
.ff-out.ff-t { top: 70px; }
.ff-out.ff-b { top: 270px; }
.fl-fork .ff-dot { left: 35px; top: 165px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.ff-k { position: absolute; left: 52px; font: 9px/14px var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.ff-k.ff-t { top: 52px; }
.ff-k.ff-b { top: 278px; }
.how-fig { grid-column: 1 / span 6; }
.how-links { grid-column: 7 / span 6; justify-content: flex-end; align-self: start; }
.fl-known { grid-column: 5; grid-row: 1; }
.fl-l2 { grid-column: 6; grid-row: 1; }
.fl-use { grid-column: 7; grid-row: 1; }
.fl-new { grid-column: 5; grid-row: 2; }
.fl-l3 { grid-column: 6; grid-row: 2; }
.fl-file { grid-column: 7; grid-row: 2; }

/* 03 RAP Sheets: the live total, then a card per sheet. home.js writes each card's list and the total. */
.sh-h2 { grid-column: 1 / span 7; }
.sh-total { grid-column: 8 / span 5; align-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 16px; line-height: 24px; color: var(--muted-2); text-align: right; }
.sh-total-n { font-size: 64px; line-height: 60px; font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--ink); }
.sh-find { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: var(--s2); }
.sh-find .srch { flex: 1 1 auto; min-width: 0; }
.sh-find .tlink { flex-shrink: 0; min-height: 56px; white-space: nowrap; }
.scard { grid-column: span 4; align-self: stretch; display: flex; flex-direction: column; border: 1px solid var(--line-3); }
.scard-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 20px 20px var(--s2); }
.scard-head h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; }
.scard-head svg { flex-shrink: 0; }
.scard-sub { margin: 0 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); font: 9px/14px var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.scard-list { flex-grow: 1; list-style: none; padding: 0; }
/* A row: its rank (its marker), its people, then its name, quote and 6-week line. It opens its theme or issue page from
   anywhere on it, so it taps well past 44px. */
.scard-list li { position: relative; display: grid; grid-template-columns: 44px 52px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: var(--s2) 20px; }
.scard-list li + li { border-top: 1px solid var(--line); }
.scard-list .dwg-marker { margin-top: -10px; }
.scard-n { display: flex; flex-direction: column; font: 9px/14px var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.scard-n b { font: 400 18px/24px var(--mono); letter-spacing: 0; color: var(--ink); }
.scard-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.scard-name { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.scard-name::after { content: ""; position: absolute; inset: 0; }
.scard-list li:hover .scard-name { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
.scard-list q { font-size: 13px; line-height: 20px; color: var(--muted-2); quotes: "“" "”"; overflow-wrap: anywhere; }
.scard-txt .spark { margin-top: 6px; }
/* The card's title block: its drawing number, its place in the set, and the link to the full sheet. */
.scard-tb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 1px; border-top: 1px solid var(--line-3); background: var(--line-2); }
.scard-tb > * { background: var(--paper); }
.scard-tb .tb-cell { padding: var(--s1) 12px; font-size: 9px; letter-spacing: 0.1em; }
.scard-tb a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; font: 10px/16px var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.scard-tb a:hover { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.spark { flex-shrink: 0; overflow: visible; }
.spark polyline { fill: none; stroke: var(--soft); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--ink); }
.spark polyline.vote { stroke: var(--muted); stroke-dasharray: 2 3; }

/* 04 For engineers: the general notes, numbered 1 to 12 down two columns. The one thing not built yet is hatched. */
.gnotes { grid-column: 1 / -1; padding: 28px 32px 32px; border: 1px solid var(--line-3); background: var(--paper); }
.gn-h { margin-bottom: var(--s3); font: 400 11px/16px var(--label); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; }
.gn-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); grid-auto-flow: column; column-gap: 56px; padding: 0; list-style: none; counter-reset: gn; font-size: 16px; line-height: 25px; color: var(--soft); }
.gn-list li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); counter-increment: gn; }
.gn-list li:nth-child(6), .gn-list li:nth-child(12) { border-bottom: 0; }
.gn-list li::before { content: counter(gn) "."; position: absolute; left: 0; top: 14px; font: 11px/25px var(--label); color: var(--muted); }
.gn-k { font: 10px/25px var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.gn-not { padding: 1px 6px; border: 1px solid var(--line-2); color: var(--ink); }

/* The install band */
.inst { row-gap: 28px; padding-top: var(--s6); padding-bottom: var(--s6); background: var(--well); }
.inst .sec-h2 { grid-column: 1 / -1; font-size: 56px; line-height: 60px; letter-spacing: -0.04em; }
.inst-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.inst-note { grid-column: 1 / -1; font: 13px/20px var(--mono); color: var(--muted-2); }

/* Footer: links and what RAP stands for on the left; on the right the revision block over the title block. */
.ft { align-items: end; padding-top: 56px; padding-bottom: var(--s4); border-top: 1px solid var(--line); }
.ft-side { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: var(--s3); }
.ft-links { display: flex; flex-direction: column; align-items: flex-start; font: 11px/16px var(--label); letter-spacing: 0.06em; }
.ft-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--soft); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
.ft-links a:hover { color: var(--ink); }
.ft-rap { font: 10px/16px var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ft-dwg { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: var(--s2); }
.dwg-revs { width: 100%; border-collapse: collapse; border: 1px solid var(--line-2); font: 10px/16px var(--label); letter-spacing: 0.06em; color: var(--muted); text-align: left; }
.dwg-revs th { padding: 6px 10px; border-bottom: 1px solid var(--line-2); font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
.dwg-revs td { padding: 4px 10px; text-transform: uppercase; vertical-align: top; white-space: nowrap; }
.dwg-revs th + th, .dwg-revs td + td { border-left: 1px solid var(--line-2); }
.dwg-revs th:first-child { width: 56px; }
.dwg-revs th:nth-child(2) { width: 88px; }
.dwg-revs td:last-child { font: 13px/16px var(--sans); letter-spacing: 0; text-transform: none; white-space: normal; }
.dwg-revs tr:last-child td { padding-bottom: 6px; }
.dwg-revs .now { color: var(--ink); }

@media (min-width: 1200px) { .hd { top: 48px; } }

/* 768 to 1199: 8 columns, 40px margins (styles.css), same order. The flow and the cards stack; the tools go 5 by 2. */
@media (max-width: 1199px) {
  .hd-nav { grid-column: 3 / span 4; gap: var(--s3); }
  .hd-cta { grid-column: 7 / span 2; }
  .hd-cta .btn { padding: 0 var(--s1); white-space: nowrap; }
  .brand { grid-column: 1 / span 2; }
  .hero6 { padding-top: var(--s6); }
  .h6-cl { padding: 0; }
  .cl { display: none; }
  .h6-ink { height: auto; aspect-ratio: 1280 / 128; }
  .h6-title { font-size: 7.4vw; }
  .h6-sub { font-size: 24px; line-height: 32px; }
  .h6-install { margin-top: var(--s5); }
  .tools { margin-top: var(--s5); }
  .tools-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tools-list li { height: 144px; }
  .demo { margin-top: var(--s5); }
  .demo-bar, .demo-cell { grid-column: 1 / span 6; }
  .demo-note { grid-column: 7 / span 2; }
  .demo figcaption { grid-column: 1 / -1; }
  .sec-h2, .why-quote { grid-column: 1 / -1; }
  .why-quote { font-size: 36px; line-height: 44px; }
  .why-h3 { grid-column: 1 / span 3; font-size: 32px; line-height: 38px; }
  .why-body { grid-column: 4 / span 5; font-size: 18px; line-height: 28px; }
  .flow { display: flex; flex-direction: column; row-gap: 0; margin-top: 0; }
  .fl-fork { display: none; }
  .fl-when, .fl-check { align-self: stretch; height: auto; }
  .fl-line { align-self: auto; width: 1px; height: var(--s3); margin-left: var(--s3); }
  /* The fork: a rule down from Check RAP, its two branches side by side beside it. */
  .fl-branches { display: flex; gap: var(--s3); margin-left: var(--s3); padding: var(--s3) 0 0 var(--s3); border-left: 1px solid var(--muted); }
  .fl-branch { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; }
  .fl-branch .fl-box { flex-grow: 1; }
  .how-fig, .how-links { grid-column: 1 / -1; }
  .how-links { justify-content: flex-start; }
  .sh-h2, .sh-total { grid-column: 1 / -1; }
  .sh-total { align-items: flex-start; text-align: left; }
  .scard { grid-column: 1 / -1; }
  .gn-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .gn-list li:nth-child(6) { border-bottom: 1px solid var(--line); }
  .ft-side, .ft-dwg { grid-column: 1 / -1; }
  .ft-links a { min-height: 44px; }
  .ft-dwg { margin-top: var(--s4); }
}

/* Under 768: one column, 20px margins (styles.css). The headline takes two lines, left-aligned with the hero. */
@media (max-width: 767px) {
  .hd { height: auto; grid-template-columns: auto 1fr; grid-template-rows: 64px auto; column-gap: var(--s2); }
  .brand { grid-column: 1; }
  .hd-cta { grid-column: 2; }
  .hd-nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; justify-content: flex-start; gap: 0 var(--s3); }
  .hero6 { padding-top: var(--s5); }
  .h6-ink { aspect-ratio: 335 / 128; }
  .h6-br { display: inline; }
  .h6-title { font-size: 15vw; line-height: 0.92; white-space: normal; text-align: left; }
  .h6-sub { margin-top: var(--s3); text-align: left; font-size: 20px; line-height: 28px; text-wrap: pretty; }
  .h6-install { align-items: stretch; margin-top: var(--s4); }
  .h6-install .tlink { align-self: flex-start; }
  .cmd { padding-left: var(--s2); gap: 12px; }
  .cmd code { font-size: 14px; }
  .tools { margin-top: var(--s5); }
  .tools-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-list li { height: 128px; gap: 10px; }
  .tools-list .tl-logo { width: 24px; height: 24px; }
  .demo { margin-top: var(--s5); }
  .demo { font-size: 13px; line-height: 20px; }
  .demo-bar, .demo-cell { grid-column: 1 / -1; }
  .demo-cell { padding-left: var(--s2); padding-right: var(--s2); }
  .demo-note { display: none; }
  .demo-line { grid-template-columns: 20px minmax(0, 1fr); }
  .demo-answer { margin-left: 20px; padding: 12px 14px; }
  .demo-facts { row-gap: 8px; }
  .demo-facts > div { grid-template-columns: minmax(0, 1fr); }
  .demo figcaption { flex-direction: column; gap: var(--s2); }
  .demo-ask { font-size: 12px; line-height: 18px; text-align: left; }
  .sec { row-gap: var(--s3); padding-top: var(--s5); padding-bottom: var(--s5); }
  .sec-well { margin-top: var(--s5); }
  .sec-h2 { font-size: 36px; line-height: 40px; letter-spacing: -0.035em; }
  .step { padding: 8px 12px; font-size: 15px; white-space: normal; }
  .steps-row { gap: 8px 0; }
  .step-arrow { padding: 0 8px; }
  .why-quote { margin-top: var(--s2); padding-left: 20px; font-size: 26px; line-height: 32px; letter-spacing: -0.025em; }
  .why-h3 { margin-top: var(--s2); font-size: 28px; line-height: 32px; }
  .why-body { margin-top: 0; font-size: 17px; line-height: 26px; }
  .fl-t { font-size: 17px; line-height: 24px; }
  .fl-branches { flex-direction: column; margin-left: var(--s2); padding-left: var(--s2); }
  .fl-line { margin-left: var(--s2); height: var(--s2); }
  .sh-total-n { font-size: 48px; line-height: 48px; }
  .sh-find { flex-direction: column; align-items: stretch; gap: 0; }
  .sh-find .tlink { align-self: flex-start; min-height: 44px; }
  .scard-head { padding: var(--s2) var(--s2) 12px; }
  .scard-head h3 { font-size: 20px; line-height: 28px; }
  .scard-sub { margin: 0 var(--s2); }
  .scard-list li { grid-template-columns: 44px 44px minmax(0, 1fr); padding: var(--s2); }
  .gnotes { padding: 20px var(--s2) var(--s2); }
  .gn-list li { padding-left: 28px; }
  .inst { padding-top: var(--s5); padding-bottom: var(--s5); }
  .inst-row { flex-direction: column; align-items: stretch; gap: var(--s1); }
  .inst-row .tlink { align-self: flex-start; }
  .ft { padding-top: var(--s4); padding-bottom: var(--s3); }
  .dwg-revs th:first-child, .dwg-revs th:nth-child(2) { width: auto; }
}

/* Under 360, the smallest phones: the brand, Search and Install the skill still fit on one row, the search icon 12px
   from each. */
@media (max-width: 359px) {
  .hd { column-gap: 0; }
  .hd-cta { gap: 0; }
  .hd-cta .btn { padding: 0 6px; }
}
