/* Meebo build guide. Loaded after style.css and uses its tokens. A reading page: paper ground, ink text,
   pictures on --ground cards (the renders' backdrop is exactly --ground, so they have no edge). */

.guide { background: var(--paper); }
.mono, .guide code, .guide pre, .guide kbd { font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; letter-spacing: 0; }
.guide .top-cta { opacity: 1; visibility: visible; }

/* ---- opening ---- */
.ghero { background: var(--hero); padding: 120px 0 0; overflow: hidden; }
.ghero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.ghero-copy { display: grid; justify-items: start; padding-bottom: clamp(40px, 6vw, 88px); }
.ghero h1 { margin-top: 24px; font-size: 60px; font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.ghero h1 .pxd { margin-top: 10px; font-size: 72px; color: var(--red); }
.ghero-sub { max-width: 34ch; margin-top: 24px; font-size: 20px; line-height: 1.4; color: var(--slate); text-wrap: pretty; }
.ghero .btns { margin-top: 28px; }
.ghero-pic { align-self: end; display: block; }
.ghero-pic img { width: 100%; }
.gfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.gfacts div { display: grid; gap: 8px; align-content: start; padding: 22px 20px 26px 0; }
.gfacts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.gfacts dt { font: 400 32px/1 var(--px); font-synthesis: none; -webkit-font-smoothing: none; word-spacing: -.4em; white-space: nowrap; }
.gfacts dd { font-size: 14px; line-height: 1.35; color: var(--slate); }

/* ---- body: contents beside the article ---- */
.gbody { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; padding: clamp(56px, 7vw, 104px) 0 clamp(72px, 9vw, 136px); }
.toc { position: sticky; top: 92px; max-height: calc(100svh - 112px); overflow-y: auto; scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc summary { display: none; }
.toc h2 { margin-bottom: 14px; }
.toc ol { counter-reset: t; display: grid; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 26px 1fr; align-items: baseline; padding: 7px 10px 7px 8px; border-radius: 8px; font-size: 15px; line-height: 1.25; color: var(--slate); transition: color .2s var(--ease), background-color .2s var(--ease); }
.toc a::before { content: counter(t, decimal-leading-zero); font: 400 8px/1 var(--px); -webkit-font-smoothing: none; color: var(--mute); transform: translateY(-2px); }
.toc a.is-on { color: var(--ink); background: var(--ground); font-weight: 500; }
.toc a.is-on::before { color: var(--red); }
@media (hover: hover) { .toc a:hover { color: var(--ink); } }
.toc-foot { display: grid; gap: 6px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.toc-foot a { grid-template-columns: 1fr; color: var(--red-deep); font-weight: 500; }
.toc-foot a::before { content: none; }

.art { min-width: 0; max-width: 840px; }
.sec { scroll-margin-top: 92px; }
.sec + .sec { margin-top: clamp(88px, 10vw, 144px); }
.sec-head { display: grid; justify-items: start; gap: 16px; margin-bottom: 28px; }
.sec-head .label { color: var(--red); }
.sec h2 { font-size: 44px; font-weight: 500; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.lede { max-width: 60ch; font-size: 20px; line-height: 1.45; color: var(--slate); text-wrap: pretty; }
.sec h3 { margin: 48px 0 14px; font-size: 26px; font-weight: 500; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; scroll-margin-top: 92px; }
.sec h4 { margin: 28px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.sec p, .sec .list { max-width: 68ch; line-height: 1.6; }
.sec p + p, .sec p + .list, .sec .list + p { margin-top: 14px; }
.sec a:not(.btn):not(.dl) { color: var(--red-deep); text-decoration: underline; text-decoration-color: var(--pink-line); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease); }
@media (hover: hover) { .sec a:not(.btn):not(.dl):hover { text-decoration-color: var(--red); } }
.sec strong, .sec b { font-weight: 600; }
.list { display: grid; gap: 8px; }
.list li { position: relative; padding-left: 22px; }
.list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; background: var(--red); }
ol.list { counter-reset: n; }
ol.list li { counter-increment: n; padding-left: 30px; }
ol.list li::before { content: counter(n); top: .28em; left: 0; width: auto; height: auto; background: none; font: 400 16px/1 var(--px); -webkit-font-smoothing: none; color: var(--red); }
.guide code { padding: 2px 6px; border-radius: 6px; background: var(--ground); font-size: .86em; white-space: nowrap; }
.guide kbd { display: inline-block; min-width: 24px; padding: 2px 6px; border-radius: 6px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 1px var(--line); font-size: .82em; text-align: center; }

/* ---- pictures, with numbered pins that match a list ---- */
.fig { margin: 28px 0 0; }
.fig-img { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--ground); }
.fig-img img, .fig-img video { width: 100%; }
.fig-img.is-shot { padding: clamp(10px, 1.6vw, 18px); }
.fig-img.is-shot img { border-radius: 10px; box-shadow: 0 1px 0 var(--line), 0 18px 48px rgb(27 36 48 / .12); }
.fig figcaption { max-width: 68ch; margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--slate); }
.fig .pin { box-shadow: 0 0 0 4px rgb(206 49 56 / .22), 0 2px 6px rgb(27 36 48 / .3); }
.fig .pin.is-hot { background: var(--ink); color: #fff; box-shadow: 0 0 0 6px rgb(27 36 48 / .2); }
.fig .pin[hidden] { display: none; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.pair .fig { margin-top: 0; }
.plist { counter-reset: p; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin-top: 18px; }
.plist.one { grid-template-columns: 1fr; }
.plist li { counter-increment: p; display: grid; grid-template-columns: 30px 1fr; gap: 0 4px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.plist li::before { content: counter(p); grid-row: span 2; font: 400 16px/1.3 var(--px); -webkit-font-smoothing: none; color: var(--red); }
.plist b { font-size: 16px; font-weight: 500; letter-spacing: -.015em; }
.plist span { color: var(--slate); }
.plist li.is-hot b { color: var(--red-deep); }

/* ---- the build steps ---- */
.bsteps { counter-reset: b; display: grid; gap: clamp(48px, 6vw, 80px); margin-top: 40px; }
.bstep { counter-increment: b; scroll-margin-top: 92px; }
.bstep .fig { margin-top: 0; }
.bstep-text { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 8px; margin-top: 22px; }
.bstep-text::before { content: counter(b, decimal-leading-zero); grid-row: 1 / span 9; font: 400 32px/1 var(--px); -webkit-font-smoothing: none; color: var(--red); }
.bstep-text > * { grid-column: 2; }
.bstep h3 { margin: 0 0 10px; }
.bstep .check { margin-top: 16px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px 0 10px; border: 0; border-radius: var(--r-s); background: var(--ground); font-size: 15px; font-weight: 500; justify-self: start; transition: background-color .2s var(--ease), color .2s var(--ease); }
.check i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--mute); }
.check[aria-pressed="true"] { background: #e3f4ea; color: var(--ok-ink); }
.check[aria-pressed="true"] i { background: var(--ok-ink); box-shadow: none; }
.check[aria-pressed="true"] i::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }

/* ---- code ---- */
.code { position: relative; max-width: 100%; margin-top: 18px; border-radius: 14px; background: var(--ink-deep); color: #e8ebf1; }
.code-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; padding: 0 8px 0 16px; border-bottom: 1px solid rgb(255 255 255 / .09); font-size: 13px; color: rgb(250 250 252 / .6); }
.code pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; font-size: 14px; line-height: 1.65; tab-size: 2; }
.code pre code { padding: 0; background: none; font-size: inherit; white-space: pre; color: inherit; }
.code .c { color: rgb(250 250 252 / .46); }
.code .o { color: #9be3b5; }
.copy { min-height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: rgb(255 255 255 / .1); color: #fff; font-size: 13px; font-weight: 500; transition: background-color .2s var(--ease); }
.code > .copy { position: absolute; top: 8px; right: 8px; }
@media (hover: hover) { .copy:hover { background: rgb(255 255 255 / .2); } }
.copy.is-done { background: #1f7a52; }

/* ---- notes ---- */
.note { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 12px; max-width: 72ch; margin-top: 22px; padding: 16px 18px 17px 16px; border-radius: 14px; background: var(--ground); font-size: 16px; line-height: 1.5; }
.note::before { content: ""; width: 20px; height: 20px; margin-top: 2px; background: url("../brand/meebo-bubble-icon.svg") center / contain no-repeat; }
.note > * { grid-column: 2; }
.note b:first-child { display: block; margin-bottom: 2px; font-weight: 600; letter-spacing: -.015em; }
.note p { max-width: none; }
.note.warn { background: #fff3da; }
.note.warn::before { background: none; content: "!"; display: grid; place-items: center; border-radius: 6px; background-color: var(--warn-ink); color: #fff; font: 400 16px/1 var(--px); -webkit-font-smoothing: none; padding-left: 4px; }
.note.real { background: var(--pink); }

/* ---- tables ---- */
.tbl-wrap { max-width: 100%; margin-top: 22px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.tbl th { padding: 0 14px 10px 0; text-align: left; vertical-align: bottom; font-size: 13px; font-weight: 500; color: var(--slate); white-space: nowrap; }
.tbl td { padding: 11px 14px 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.tbl td:first-child { font-weight: 500; letter-spacing: -.01em; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl th.num { text-align: right; }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }
.tbl tfoot td { font-weight: 600; border-top: 2px solid var(--ink); }
.tbl small { display: block; font-size: 13px; font-weight: 350; color: var(--slate); }
.port { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 6px 0 8px; border-radius: 6px; background: var(--ink); color: #fff; font: 400 16px/1 var(--px); -webkit-font-smoothing: none; }

/* ---- downloads ---- */
.dls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 16px; padding: 18px 18px 16px 20px; border-radius: var(--r-m); background: var(--ground); transition: background-color .25s var(--ease), color .25s var(--ease); }
.dl b { font-size: 18px; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.dl span { grid-column: 1; font-size: 14px; line-height: 1.4; color: var(--slate); transition: color .25s var(--ease); }
.dl em { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; background: var(--paper); font: 400 16px/1 var(--px); font-style: normal; -webkit-font-smoothing: none; color: var(--ink); white-space: nowrap; }
.dl em::before { content: ""; width: 8px; height: 8px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 50%); }
.dl.is-main { grid-column: 1 / -1; background: var(--red); color: #fff; padding-block: 22px 20px; }
.dl.is-main b { font-size: 24px; }
.dl.is-main span { color: rgb(255 255 255 / .82); }
@media (hover: hover) { .dl:hover { background: var(--pink); } .dl.is-main:hover { background: var(--red-deep); } }
.files { margin-top: 14px; }
.files td:first-child { font-weight: 400; }
.files a { white-space: nowrap; }

/* ---- how the pieces talk ---- */
.arch { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.25fr) 56px minmax(0, 1fr); align-items: stretch; margin-top: 28px; }
.arch-box { display: grid; align-content: start; gap: 10px; padding: 18px 18px 20px; border-radius: var(--r-m); background: var(--ground); }
.arch-box.is-brain { background: var(--ink); color: var(--on-dark); }
.arch-box .label { color: var(--red); }
.arch-box.is-brain .label { color: #ff9da1; }
.arch-box b { font-size: 19px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.arch-box ul { display: grid; gap: 5px; font-size: 14px; line-height: 1.35; color: var(--slate); }
.arch-box.is-brain ul { color: var(--on-dark-quiet); }
.arch-wire { display: grid; align-content: center; justify-items: center; gap: 8px; font-size: 11px; line-height: 1.2; text-align: center; color: var(--slate); }
.arch-wire i { display: block; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 10px); }
.arch-side { display: grid; gap: 8px; }
.arch-side .arch-box { padding: 12px 14px 13px; gap: 3px; }
.arch-side b { font-size: 16px; }
.arch-side span { font-size: 13px; line-height: 1.3; color: var(--slate); }

/* ---- the port map: the board as it lies in front of you ---- */
.pmap { display: grid; grid-template-columns: 1.1fr repeat(6, minmax(0, 1fr)) 1.1fr; grid-template-rows: auto auto auto auto; gap: 6px; margin-top: 22px; padding: clamp(12px, 2vw, 22px); border-radius: var(--r-l); background: var(--ground); }
.pm-mod { display: grid; align-content: space-between; gap: 14px; min-height: 84px; padding: 10px 10px 9px; border-radius: 10px; background: var(--ink); color: #fff; }
.pm-mod.pm-tall { min-height: 120px; }
.pm-mod.is-red { background: var(--red); }
.pm-mod.is-empty { background: none; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--mute); }
.pm-mod b { font-size: 14px; font-weight: 500; line-height: 1.15; letter-spacing: -.015em; }
.pm-mod span { display: flex; gap: 4px; }
.pm-mod .port { background: #fff; color: var(--ink); font-style: normal; }
.pm-mod.is-empty .port { background: none; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--mute); }
.pm-chip { display: grid; place-items: center; min-height: 64px; border-radius: 10px; background: repeating-linear-gradient(135deg, #e4e4ea 0 8px, #dcdce3 8px 16px); font: 400 16px/1 var(--px); -webkit-font-smoothing: none; color: var(--slate); }
.pm-edge { justify-self: center; margin-top: 8px; font: 400 16px/1 var(--px); -webkit-font-smoothing: none; text-transform: uppercase; color: var(--slate); }
.pm-edge::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--red); clip-path: polygon(0 0, 100% 0, 50% 100%); }

/* ---- the box's screen, as it is on the box: 160x80, its own font ---- */
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.screen-card { display: grid; gap: 12px; align-content: start; padding: 12px 12px 14px; border-radius: var(--r-m); background: var(--ground); }
.lcd { position: relative; aspect-ratio: 2 / 1; container-type: inline-size; border-radius: 8px; background: #05070a; color: #fff; overflow: hidden; font-family: var(--px); -webkit-font-smoothing: none; text-transform: uppercase; }
.lcd span { position: absolute; left: 5cqw; white-space: nowrap; font-size: 5cqw; line-height: 1; }
.lcd i { font-style: normal; }
.lcd .l1 { top: 7.5cqw; font-size: 10cqw; }
.lcd .l2 { top: 25cqw; }
.lcd .l3 { top: 32.5cqw; }
.lcd .kl { top: 40cqw; }
.lcd .kr { top: 40cqw; left: auto; right: 5cqw; }
.lcd .big { top: 14cqw; left: auto; right: 5cqw; font-size: 20cqw; }
.screen-card b { font-size: 16px; font-weight: 500; letter-spacing: -.02em; }
.screen-card p { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--slate); }
.c-green { color: #22c55e; } .c-amber { color: #f59e0b; } .c-red { color: #ef4444; } .c-purple { color: #a78bfa; } .c-grey { color: #9aa3b2; } .c-blue { color: #60a5fa; }
.kchip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 6px; border-radius: 6px; background: var(--ink-deep); font: 400 16px/1 var(--px); -webkit-font-smoothing: none; white-space: nowrap; text-transform: uppercase; }
.kchip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.kdark { color: var(--mute); font-size: 14px; }

/* ---- the closing checklist, credits ---- */
.done-box { margin-top: 28px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-l); background: var(--red); color: #fff; }
.done-box h3 { margin: 0 0 8px; font-size: 30px; color: #fff; }
.done-box p { color: rgb(255 255 255 / .88); }
.done-box .btns { margin-top: 20px; }
.done-box .btn-paper { box-shadow: none; }
.credit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 22px; }
.credit-grid li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.credit-grid b { font-size: 16px; font-weight: 500; letter-spacing: -.015em; }
.credit-grid span { color: var(--slate); }

.gfoot { background: var(--ink-deep); }

@media (max-width: 1279px) {
  .ghero h1 { font-size: 50px; }
  .ghero h1 .pxd { font-size: 56px; }
  .sec h2 { font-size: 40px; }
  .gbody { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 959px) {
  .ghero { padding-top: 104px; }
  .ghero-in { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ghero-copy { padding-bottom: 0; }
  .gfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gfacts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .gfacts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .gbody { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; }
  .toc { position: static; max-height: none; padding: 4px; border-radius: var(--r-m); background: var(--ground); }
  .toc summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px; font-size: 16px; font-weight: 500; cursor: pointer; list-style: none; }
  .toc summary::-webkit-details-marker { display: none; }
  .toc summary::after { content: ""; width: 8px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
  .toc[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .toc h2 { display: none; }
  .toc ol { padding: 4px 4px 8px; }
  .toc a.is-on { background: var(--paper); }
  .toc-foot { margin: 0 4px 8px; }
  .arch { grid-template-columns: 1fr; gap: 0; }
  .arch-wire { grid-template-columns: 2px 1fr; align-items: center; justify-items: start; gap: 12px; min-height: 44px; padding-left: 28px; text-align: left; }
  .arch-wire i { width: 2px; height: 100%; min-height: 44px; background: repeating-linear-gradient(0deg, var(--red) 0 6px, transparent 6px 10px); }
  .arch-wire br { display: none; }
}
@media (max-width: 760px) {
  .sec h2 { font-size: 32px; }
  .sec h3 { font-size: 22px; }
  .lede { font-size: 18px; }
  .plist, .dls, .credit-grid, .pair { grid-template-columns: 1fr; }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bstep-text { grid-template-columns: 1fr; }
  .bstep-text::before { grid-row: auto; margin-bottom: 12px; }
  .bstep-text > * { grid-column: 1; }
  .dl em { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
  .dl.is-main b { font-size: 20px; }
}
@media (max-width: 599px) {
  .pmap { gap: 4px; padding: 8px; }
  .pm-mod { min-height: 72px; padding: 7px 6px; }
  .pm-mod.pm-tall { min-height: 96px; }
  .pm-mod b { font-size: 11px; letter-spacing: 0; }
  .pm-mod .port { min-width: 20px; height: 20px; padding: 0 3px 0 5px; font-size: 16px; }
  .pm-chip { min-height: 44px; }
  .ghero h1 { font-size: 36px; }
  .ghero h1 .pxd { font-size: 40px; }
  .ghero-sub { font-size: 18px; }
  .gfacts dt { font-size: 24px; }
  .code pre { font-size: 13px; padding: 14px; }
  .screens { grid-template-columns: 1fr; }
  .fig-img { border-radius: var(--r-m); }
  .fig .pin { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 16px; }
}
@media print {
  .top, .toc, .copy, .check, .gfoot { display: none !important; }
  .gbody { display: block; padding: 0; }
  .sec { break-inside: auto; } .bstep, .fig, .code, .note { break-inside: avoid; }
  .code { background: #f3f3f6; color: #111; } .code .c { color: #666; }
}

.foot-build { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.foot-build .btn-paper { background: rgb(255 255 255 / .09); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); }
@media (hover: hover) { .foot-build .btn-paper:hover { background: rgb(255 255 255 / .16); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); } }

/* ================= two paths, little text, a lot of air ================= */
.path-ai [data-path="hand"], .path-hand [data-path="ai"] { display: none !important; }

.ghero-sub { max-width: 26ch; font-size: 22px; }
.paths { display: grid; gap: 16px; padding: 8px 0 clamp(40px, 5vw, 64px); }
.paths > .label { color: var(--slate); }
.paths-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.path { position: relative; display: grid; justify-items: start; gap: 8px; padding: 24px 26px 26px; border: 0; border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.path b { font-size: 30px; font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.path > span:last-child { max-width: 34ch; font-size: 16px; line-height: 1.4; color: var(--slate); transition: color .25s var(--ease); }
.path-tag { color: var(--red); }
.path[aria-pressed="true"] { background: var(--red); color: #fff; box-shadow: none; }
.path[aria-pressed="true"] > span:last-child { color: rgb(255 255 255 / .86); }
.path[aria-pressed="true"] .path-tag { color: #fff; }
.path[aria-pressed="true"]::after { content: ""; position: absolute; top: 26px; right: 26px; width: 14px; height: 8px; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(-45deg); }
@media (hover: hover) { .path[aria-pressed="false"]:hover { box-shadow: inset 0 0 0 1.5px var(--red); } }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 10px; padding: 3px; border-radius: 10px; background: var(--ground); }
.seg button { min-height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: none; font-size: 14px; font-weight: 500; color: var(--slate); transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--red); color: #fff; }

.gbody { padding-top: clamp(64px, 8vw, 120px); }
.art { max-width: 780px; }
.sec + .sec { margin-top: clamp(120px, 14vw, 200px); }
.sec-head { gap: 14px; margin-bottom: 40px; }
.sec-head .label { font-size: 32px; }
.sec h2 { font-size: 56px; }
.lede { font-size: 22px; max-width: 30ch; }
.sec .fig { margin-top: 40px; }
.sec > .dls, .sec > .chips { margin-top: 0; }
.how { margin: 0 0 16px; font-size: 19px; color: var(--ink); }
.sec > p.how:not(:first-child), [data-path] > .code + .how { margin-top: 20px; }
.sec .fine { margin-top: 14px; color: var(--slate); }

.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.needs li { display: grid; align-content: start; gap: 4px; min-height: 124px; padding: 18px 18px 16px; border-radius: var(--r-m); background: var(--ground); }
.needs b { font-size: 19px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.needs span { font-size: 15px; line-height: 1.35; color: var(--slate); }
.needs a { justify-self: start; margin-top: 6px; font-size: 15px; font-weight: 500; }
.needs li[data-path] { background: var(--pink); }

.chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 12px !important; }
.chips div { display: grid; gap: 8px; align-content: start; padding: 16px 14px 14px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); }
.chips dt { font: 400 24px/1 var(--px); font-synthesis: none; -webkit-font-smoothing: none; word-spacing: -.4em; white-space: nowrap; }
.chips dd { font-size: 14px; color: var(--slate); }

.plist.tight { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; margin-top: 14px; }
.plist.tight li { grid-template-columns: 26px 1fr auto; align-items: baseline; padding: 9px 0; }
.plist.tight li::before { grid-row: auto; }
.plist.tight b { font-size: 15px; }
.plist.tight span { font-size: 14px; white-space: nowrap; }
.bstep-text .plist.tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.bsteps { gap: clamp(72px, 9vw, 120px); margin-top: 0; }
.bstep-text { margin-top: 26px; row-gap: 10px; }
.bstep h3 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.bstep-text > p { font-size: 19px; line-height: 1.45; color: var(--slate); max-width: 44ch; }
.bstep .pmap { margin-top: 18px; }
.bstep .check { margin-top: 10px; }

.prompt { border-radius: var(--r-l); background: var(--pink); box-shadow: inset 0 0 0 1px var(--pink-line); overflow: hidden; }
.prompt-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 12px 22px; }
.prompt-bar .label { color: var(--red-deep); }
.prompt pre { margin: 0; padding: 4px 22px 22px; max-height: 260px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.6; color: #4a2a2d; }
.prompt pre code { padding: 0; background: none; font-size: inherit; white-space: inherit; }
.prompt .copy { min-height: 44px; padding: 0 22px; border-radius: var(--r-s); background: var(--red); color: #fff; font-size: 16px; }
@media (hover: hover) { .prompt .copy:hover { background: var(--red-deep); } }
.prompt .copy.is-done { background: var(--ok-ink); }

.expect { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 22px; margin-top: 20px; padding: 14px; border-radius: var(--r-l); background: var(--ground); }
.expect p { font-size: 17px; line-height: 1.4; color: var(--slate); }
.expect b { display: block; color: var(--ink); }
.lcd .dot { position: absolute; top: 5cqw; right: 5cqw; width: 4cqw; height: 4cqw; border-radius: 50%; background: #9aa3b2; }

.dots { display: grid; gap: 0; margin-top: 24px; }
.dots li { display: grid; grid-template-columns: 22px 130px 1fr; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: currentColor; }
.dots b { font-weight: 500; color: var(--ink); }
.dots span { color: var(--slate); }

.walk { counter-reset: w; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.walk li { counter-increment: w; display: grid; align-content: start; justify-items: start; gap: 12px; min-height: 150px; padding: 14px 14px 16px; border-radius: var(--r-m); background: var(--ground); }
.walk li::before { content: counter(w); font: 400 16px/1 var(--px); -webkit-font-smoothing: none; color: var(--red); }
.walk b.px { display: inline-flex; align-items: center; height: 24px; }
.walk p { font-size: 15px; line-height: 1.35; color: var(--slate); }
.screens { margin-top: 12px; }

.fold { margin-top: 28px; border-top: 1px solid var(--line); }
.fold + .fold { margin-top: 0; }
.fold:last-of-type { border-bottom: 1px solid var(--line); }
.fold > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px; border: solid var(--red); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); }
.fold[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.fold > :not(summary):last-child { margin-bottom: 28px; }
.fold > :not(summary) { margin-top: 14px; }
.fold > summary + * { margin-top: 4px; }
.fold .fig { margin-top: 16px; }
.fold .dls { margin-top: 8px; }
#more .fold > summary { min-height: 68px; font-size: 22px; }
#more .sec-head { margin-bottom: 24px; }
.bstep-text .fold { margin-top: 8px; }
.done-box { margin-top: 56px; }
.done-box h3 { font-size: 40px; }

@media (max-width: 1279px) { .sec h2 { font-size: 48px; } }
@media (max-width: 959px) {
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .walk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc-foot .seg { margin: 6px 0 0; }
}
@media (max-width: 760px) {
  .sec h2 { font-size: 40px; }
  .paths-row { grid-template-columns: 1fr; }
  .path b { font-size: 26px; }
  .plist.tight, .bstep-text .plist.tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expect { grid-template-columns: 1fr; }
  .expect .lcd { max-width: 240px; }
  .dots li { grid-template-columns: 22px 1fr; } .dots span { grid-column: 2; }
  .bstep h3 { font-size: 28px; }
}
@media (max-width: 599px) {
  .sec h2 { font-size: 36px; }
  .lede, .ghero-sub { font-size: 19px; }
  .needs li { min-height: 0; }
  .prompt-bar { padding-left: 16px; } .prompt pre { padding: 4px 16px 18px; }
}

@media (max-width: 599px) { .ghero { padding-top: 92px; } .ghero .kicker { margin-top: 4px; } }
@media (max-width: 959px) { .ghero { padding-top: 112px; } }
@media (max-width: 599px) { .ghero { padding-top: 96px; } }
