/* The Jellyworks manual: the site's own look (warm paper, Fredoka and Lexend, jelly teal), set for reading.
   The pages are written by scripts/build-manual.mjs from manual-src/. This file and manual.js are edited by hand. */
:root {
  --paper: #F4EFEA; --paper-2: #FBF8F4; --card: #FFFFFF; --ink: #3E4458; --ink-soft: #585F72;
  --line: rgba(62, 68, 88, 0.14); --sea: #6FB3B1; --sea-soft: #DCEFEC; --sea-deep: #1F6E69; --on-sea: #12302F;
  --jelly: #0F7C7A; --apricot: #F0A983; --apricot-soft: #FBE6D8; --lantern: #FFD7A8;
  --night: #263171; --night-deep: #1B2357; --night-ink: #EEF0F2; --night-soft: #C3C8E6;
  --display: 'Fredoka', ui-rounded, 'Nunito', system-ui, sans-serif;
  --body: 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
a { color: var(--sea-deep); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font: 400 0.9em var(--mono); background: rgba(62, 68, 88, 0.08); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 10px; }
.m-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 20px; background: var(--ink); color: var(--paper); }
.m-skip:focus { top: 12px; }
.m-wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.m-grow { flex: 1; }
.m-kbd { display: inline-block; padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; background: #fff; color: var(--ink); font: 500 13px/1.5 'IBM Plex Mono', Menlo, 'SF Mono', 'Apple Symbols', monospace; white-space: nowrap; }
.m-cap { font-size: 14px; color: var(--ink-soft); }
.m-lead { font-size: 19px; line-height: 1.6; max-width: 36em; }

/* Icons: the app's own set, drawn on their own in the part's color */
.m-i { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.m-i-sm { width: 16px; height: 16px; }
.m-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--sea-deep); }
.m-ic .m-i { width: 24px; height: 24px; }
.m-ic.sm, .m-ic.sm .m-i { width: 20px; height: 20px; }
.m-ic.big, .m-ic.big .m-i { width: 38px; height: 38px; }
.m-ic.big .m-i { stroke-width: 1.4; }
.m-ic.huge, .m-ic.huge .m-i { width: 52px; height: 52px; }
.m-ic.huge .m-i { stroke-width: 1.3; }
.m-ic.t-start { color: #B25E1B; }
.m-ic.t-jw { color: var(--sea-deep); }
.m-ic.t-jd { color: var(--night); }
.m-ic.t-ref { color: #9A4A1E; }
.m-ic.hdr { color: var(--ink); }
.m-band-jd .m-ic.hdr { color: #fff; }

/* Top bar */
.m-draftbar { background: var(--night-deep); color: #fff; text-align: center; font-size: 13.5px; padding: 6px 16px; }
.m-top { position: sticky; top: 0; z-index: 50; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.m-top-row { display: flex; align-items: center; gap: 22px; height: 72px; }
.m-logo { display: inline-flex; flex: none; }
.m-logo img { height: 34px; width: auto; }
.m-top-rule { width: 1px; height: 28px; background: var(--line); }
.m-top-name { font: 600 22px/1 var(--display); color: var(--ink); text-decoration: none; }
.m-parts { display: flex; gap: 4px; margin-left: 12px; }
.m-parts a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 20px; font-size: 15px; color: var(--ink-soft); text-decoration: none; }
.m-parts a .m-i { width: 18px; height: 18px; }
.m-parts a:hover { background: rgba(62, 68, 88, 0.06); }
.m-parts a.on { background: var(--sea-soft); color: var(--on-sea); font-weight: 500; }
.m-search-pill { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 16px; border: 1px solid var(--line); border-radius: 21px; background: #fff; color: var(--ink-soft); font-size: 15px; min-width: 250px; }
.m-search-pill .m-i { width: 18px; height: 18px; }
.m-search-pill .m-kbd { margin-left: auto; }
.m-menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 22px; background: rgba(62, 68, 88, 0.08); align-items: center; justify-content: center; }

/* Header bands: the part you are in, with a thin line under it */
.m-band, .m-intro { border-bottom: 1px solid rgba(62, 68, 88, 0.22); }
.m-band-jw { background: var(--sea-soft); }
.m-band-jd { background: var(--night); color: var(--night-ink); border-bottom-color: var(--night-deep); }
.m-band-ref { background: var(--apricot-soft); }
.m-band-start { background: var(--paper-2); border-bottom: 1px solid rgba(62, 68, 88, 0.14); }
.m-head { display: flex; flex-direction: column; gap: 16px; padding-top: 36px; padding-bottom: 44px; }
.m-head h1, .m-hero h1 { font-size: clamp(38px, 4.6vw, 58px); }
.m-title-row { display: flex; align-items: center; gap: 18px; }
.m-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.m-crumbs a { color: inherit; text-decoration: none; opacity: 0.8; }
.m-crumbs a:hover { opacity: 1; text-decoration: underline; }
.m-crumbs .sep { opacity: 0.5; }
.m-intro { background: var(--paper); }
.m-updated { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; font-size: 14px; opacity: 0.85; }
.m-updated .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; }

/* Reading layout: contents tree, article, on this page */
.m-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 40px; padding-bottom: 96px; }
.m-side { flex: 1 1 280px; max-width: 300px; min-width: 240px; position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow: auto; padding-bottom: 24px; }
.m-main { flex: 999 1 560px; min-width: 0; }
.m-toc { flex: 0 0 210px; position: sticky; top: 96px; }
.m-toc:empty { display: none; }
.m-toc-title { font: 600 15px var(--display); margin-bottom: 10px; }
.m-toc-list { border-left: 1px solid var(--line); }
.m-toc-list a { display: block; padding: 5px 0 5px 16px; font-size: 14px; line-height: 1.4; color: var(--ink-soft); text-decoration: none; }
.m-toc-list a.sub { padding-left: 28px; font-size: 13.5px; }
.m-toc-list a:hover, .m-toc-list a.on { color: var(--ink); }
.m-toc-list a.on { font-weight: 500; }

/* Contents tree */
.m-side-part { display: flex; align-items: center; gap: 10px; margin: 24px 0 8px; padding-left: 12px; font: 600 17px var(--display); color: var(--ink); }
.m-side-part:first-child { margin-top: 0; }
.m-side-sec summary { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 8px; border-radius: 14px; font: 500 15px var(--body); color: var(--ink); cursor: pointer; list-style: none; }
.m-side-sec summary::-webkit-details-marker { display: none; }
.m-side-sec summary:hover { background: rgba(62, 68, 88, 0.06); }
.m-side-sec .chev { margin-left: auto; display: inline-flex; color: var(--ink-soft); }
.m-side-sec .m-chev { width: 12px; height: 12px; transition: transform 0.15s ease; }
.m-side-sec[open] .m-chev { transform: rotate(90deg); }
.m-side-page { display: block; margin-left: 46px; padding: 6px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.4; color: var(--ink-soft); text-decoration: none; }
.m-side-page:hover { color: var(--ink); }
.m-side-page.on { background: var(--sea-soft); color: var(--on-sea); font-weight: 500; }

/* Article */
.m-art h2 { font-size: 28px; margin: 56px 0 14px; }
.m-art h2.first, .m-art > h2:first-child { margin-top: 0; }
.m-art h3 { font-size: 20px; margin: 32px 0 8px; }
.m-art h4 { font-size: 17px; margin: 24px 0 6px; }
.m-art p { margin: 0 0 16px; max-width: 42em; }
.m-art ul, .m-art ol { margin: 0 0 18px; padding-left: 22px; max-width: 42em; }
.m-art li { margin-bottom: 6px; }
.m-art li > ul, .m-art li > ol { margin: 6px 0 0; }
.m-art strong { font-weight: 500; }

.m-steps { list-style: none; counter-reset: s; padding: 0 !important; margin: 28px 0 0 !important; max-width: none !important; }
.m-steps > li { counter-increment: s; position: relative; padding-left: 64px; margin-bottom: 44px; }
.m-steps > li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%; background: var(--jelly); color: #fff; font: 600 20px/44px var(--display); text-align: center; }
.m-steps h3 { margin: 0 0 8px; }

.m-fig { margin: 26px 0; }
.m-fig img { width: 100%; border-radius: 18px; border: 1px solid var(--line); }
.m-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.m-fig.m-half, .m-shot.m-half { max-width: 50%; }
.m-fig.m-small, .m-shot.m-small { max-width: 320px; }
.m-shot { display: flex; align-items: center; gap: 18px; min-height: 200px; margin: 26px 0; padding: 24px 28px; border: 2px dashed rgba(62, 68, 88, 0.3); border-radius: 18px; background: rgba(62, 68, 88, 0.04); color: var(--ink-soft); aspect-ratio: 2.2; }
.m-shot.m-small { min-height: 120px; aspect-ratio: auto; }
.m-shot b { display: block; margin-bottom: 4px; font: 600 16px var(--display); color: var(--ink); }
.m-shot small { display: block; margin-top: 8px; font: 400 13px var(--mono); }
.m-shot .ico { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.m-shot.tile { min-height: 0; aspect-ratio: 4 / 3; margin: 0; padding: 10px; justify-content: center; text-align: center; border-radius: 14px; }

.m-note { display: flex; gap: 14px; padding: 16px 20px; margin: 24px 0; border-radius: 18px; background: var(--sea-soft); max-width: 46em; }
.m-note > div { min-width: 0; }
.m-note.warm { background: var(--apricot-soft); }
.m-note .ico { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--sea-deep); }
.m-note .ico .m-i { width: 18px; height: 18px; }
.m-note.warm .ico { color: #9A4A1E; }
.m-note p { margin: 0 0 8px; }
.m-note p:last-child { margin: 0; }

.m-defs { margin: 18px 0 26px; border-top: 1px solid var(--line); max-width: 52em; }
.m-defs .row { display: grid; grid-template-columns: 170px 1fr; gap: 8px 28px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.m-defs .name { font: 600 16px var(--display); }
.m-defs .what p { margin: 0 0 4px; }
.m-defs .range { font: 400 13px var(--mono); color: var(--ink-soft); }
.m-keys .row { grid-template-columns: 250px 1fr; }
.m-keys .name { font-weight: 400; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.m-keys .plus, .m-keys .or { color: var(--ink-soft); padding: 0 2px; }
.m-keys .tag { display: inline-block; margin-left: 10px; padding: 0 10px; border-radius: 12px; background: var(--apricot-soft); font-size: 12.5px; line-height: 22px; color: #7A3A12; white-space: nowrap; }

.m-table { overflow-x: auto; margin: 18px 0 26px; max-width: 52em; }
.m-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.m-table th { text-align: left; font: 600 15px var(--display); padding: 10px 14px; border-bottom: 2px solid var(--line); }
.m-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }

.m-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; margin: 26px 0; }
.m-gallery figure { margin: 0; }
.m-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.m-gallery figcaption b { display: block; margin-top: 8px; font: 600 17px var(--display); }
.m-gallery figcaption span { display: block; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }

.m-cardlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 18px 0; }
.m-pg { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: 22px; background: #fff; box-shadow: 0 6px 20px rgba(62, 68, 88, 0.08); text-decoration: none; color: var(--ink); }
.m-pg:hover { box-shadow: 0 10px 28px rgba(62, 68, 88, 0.14); }
.m-pg .top { display: flex; align-items: center; gap: 12px; }
.m-pg b { font: 600 19px var(--display); }
.m-pg p { margin: 0 !important; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.m-pg small { margin-top: 4px; font-size: 13px; color: var(--ink-soft); }
.m-feature { display: flex; flex-wrap: wrap; gap: 24px; padding: 20px; border-radius: 26px; background: #fff; box-shadow: 0 10px 30px rgba(62, 68, 88, 0.10); text-decoration: none; color: var(--ink); }
.m-feature .pics { flex: 1 1 260px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.m-feature .pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.m-feature .txt { flex: 1 1 260px; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 8px 8px 8px 0; }
.m-feature .ttl { display: flex; align-items: center; gap: 12px; }
.m-feature .ttl b { font: 600 26px var(--display); }
.m-feature p { margin: 0 !important; color: var(--ink-soft); }

.m-pn { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 64px; }
.m-pn a { flex: 1 1 260px; display: block; padding: 18px 22px; border-radius: 20px; background: var(--card); box-shadow: 0 6px 20px rgba(62, 68, 88, 0.08); text-decoration: none; color: var(--ink); }
.m-pn a small { display: block; font-size: 13px; color: var(--ink-soft); }
.m-pn a b { font: 600 18px var(--display); }
.m-pn a.next { text-align: right; }
.m-updated-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); max-width: 46em; }
.m-updated-foot .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; }

.m-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 8px; font: 600 17px var(--display); }
.m-seg { display: inline-flex; padding: 4px; border-radius: 26px; background: rgba(62, 68, 88, 0.08); }
.m-seg button { height: 40px; padding: 0 20px; border: 0; border-radius: 20px; background: transparent; font: 400 15px var(--body); }
.m-seg button.on { background: var(--ink); color: var(--paper); font-weight: 500; }

/* Home */
.m-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 80px; }
.m-hero-copy { flex: 1 1 480px; display: flex; flex-direction: column; gap: 26px; }
.m-hero-pic { flex: 1 1 520px; }
.m-hero-pic img { width: 100%; aspect-ratio: 1.5; object-fit: cover; border-radius: 32px; box-shadow: 0 14px 40px rgba(62, 68, 88, 0.16); }
.m-hero-search { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 560px; height: 60px; padding: 0 20px; border: 0; border-radius: 30px; background: #fff; box-shadow: 0 10px 30px rgba(62, 68, 88, 0.12); color: var(--ink-soft); font-size: 17px; text-align: left; }
.m-hero-search .m-i { width: 22px; height: 22px; }
.m-hero-search .m-kbd { margin-left: auto; }
.m-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.m-popular span { font: 600 16px var(--display); margin-right: 4px; }
.m-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px; background: #fff; font-size: 14px; color: var(--ink); text-decoration: none; }
.m-chip:hover { background: var(--sea-soft); }
.m-begin { background: var(--paper-2); padding: 88px 0; }
.m-begin h2, .m-all h2, .m-stuck h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 12px; }
.m-begin .m-lead { color: var(--ink-soft); margin-bottom: 44px; }
.m-entries { display: flex; flex-wrap: wrap; gap: 28px; }
.m-entry { flex: 1 1 320px; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--card); box-shadow: 0 10px 30px rgba(62, 68, 88, 0.10); }
.m-entry img { width: 100%; aspect-ratio: 1.6; object-fit: cover; }
.m-entry .in { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.m-entry .ttl { display: flex; align-items: center; gap: 14px; }
.m-entry h3 { font-size: 26px; }
.m-entry p { color: var(--ink-soft); }
.m-entry .links { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; font-weight: 500; }
.m-entry-jd { background: var(--night); color: var(--night-ink); }
.m-entry-jd p { color: var(--night-soft); }
.m-entry-jd .links a { color: #fff; }
.m-entry-jd .m-ic.t-jd { color: #fff; }
.m-all { padding: 88px 0; }
.m-all .m-lead { color: var(--ink-soft); margin-bottom: 48px; }
.m-home-part { padding-bottom: 56px; }
.m-stuck { background: var(--sea-soft); padding: 80px 0; border-top: 1px solid rgba(62, 68, 88, 0.22); }
.m-stuck h2 { margin-bottom: 36px; }

/* Contents and section cards */
.m-cband { padding: 72px 0; }
.m-part-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 26px; }
.m-part-head h2 { font-size: clamp(30px, 3.4vw, 42px); }
.m-part-head p { font-size: 17px; opacity: 0.85; }
.m-sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.m-sec { background: #fff; color: var(--ink); border-radius: 22px; padding: 24px 26px; box-shadow: 0 6px 20px rgba(62, 68, 88, 0.07); }
.m-sec.wide { grid-column: 1 / -1; }
.m-sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; color: inherit; text-decoration: none; }
.m-sec h3 { font-size: 22px; }
.m-sec .blurb { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.m-sec .count { margin-top: 12px; font: 400 13px var(--mono); color: var(--ink-soft); }
.m-sec ul { list-style: none; margin: 16px 0 0; padding: 0; column-width: 230px; column-gap: 28px; }
.m-sec li { break-inside: avoid; }
.m-sec li a { display: block; padding: 4px 0; font-size: 15px; line-height: 1.4; text-decoration: none; }
.m-sec li a:hover { text-decoration: underline; }

/* Footer */
.m-foot { background: var(--night-deep); color: rgba(255, 255, 255, 0.86); font-size: 14px; }
.m-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; padding-bottom: 28px; }
.m-foot-left { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.m-foot-left img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.m-foot a { color: inherit; text-decoration: none; }
.m-foot-links { display: flex; flex-wrap: wrap; gap: 6px; }
.m-foot-links a { padding: 8px 14px; border-radius: 18px; }
.m-foot-links a:hover { background: rgba(255, 255, 255, 0.1); }
.m-foot-links a.on { background: rgba(255, 255, 255, 0.16); color: #fff; font-weight: 500; }

/* Search */
.m-search[hidden] { display: none; }
.m-search { position: fixed; inset: 0; z-index: 60; }
.m-search-veil { position: absolute; inset: 0; background: rgba(27, 35, 87, 0.5); }
.m-search-box { position: relative; width: min(760px, calc(100vw - 24px)); margin: 64px auto 0; padding: 20px 20px 14px; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(10, 16, 50, 0.4); max-height: calc(100vh - 96px); display: flex; flex-direction: column; }
.m-search-field { display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 18px; border-radius: 28px; background: var(--paper-2); border: 2px solid var(--sea); color: var(--ink-soft); }
.m-search-field input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.m-search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 18px var(--body); }
.m-results { overflow: auto; padding: 8px 0 4px; min-height: 60px; }
.m-results .grp { padding: 14px 16px 6px; font: 600 16px var(--display); }
.m-res { display: flex; gap: 16px; align-items: flex-start; padding: 12px 16px; border-radius: 16px; text-decoration: none; color: var(--ink); }
.m-res.sel, .m-res:hover { background: var(--sea-soft); }
.m-res .m-i { margin-top: 3px; color: var(--ink-soft); }
.m-res .tx { flex: 1; min-width: 0; }
.m-res .t { font: 500 17px var(--body); }
.m-res .p { font-size: 13.5px; color: var(--ink-soft); }
.m-res .s { font-size: 14.5px; line-height: 1.5; margin-top: 4px; }
.m-res .d { flex: none; font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.m-res mark { background: var(--lantern); color: var(--ink); border-radius: 3px; padding: 0; }
.m-none { padding: 22px 16px; color: var(--ink-soft); }
.m-search-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 12px 16px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); }

@media (max-width: 1180px) { .m-toc { display: none; } }
@media (max-width: 900px) {
  .m-parts, .m-top-rule { display: none; }
  .m-menu-btn { display: inline-flex; }
  .m-side { display: none; }
  .m-layout { gap: 0; }
  body.menu-open .m-side { display: block; position: fixed; inset: var(--menu-top, 72px) 0 0 0; max-width: none; max-height: none; z-index: 40; background: var(--paper); padding: 16px 20px 40px; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .m-wrap { padding-left: 16px; padding-right: 16px; }
  .m-defs .row, .m-keys .row { grid-template-columns: 1fr; }
  .m-search-pill { min-width: 0; }
  .m-search-pill span { display: none; }
  .m-search-pill .m-kbd { display: none; }
  .m-steps > li { padding-left: 0; padding-top: 52px; }
  .m-fig.m-half, .m-shot.m-half { max-width: none; }
  .m-shot { aspect-ratio: auto; }
  .m-top-row { gap: 12px; }
  .m-top-name { font-size: 19px; }
}
/* Hovers ease in and out, like the site's. */
.m-parts a, .m-side-sec summary, .m-chip, .m-foot-links a, .m-res { transition: background-color 0.24s ease, color 0.24s ease; }
.m-crumbs a { transition: opacity 0.24s ease; }
.m-toc-list a, .m-side-page { transition: color 0.24s ease; }
.m-pg { transition: box-shadow 0.36s cubic-bezier(.22, .8, .24, 1), transform 0.36s cubic-bezier(.22, .8, .24, 1); }
.m-pg:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
