/* Product manuals: one hand-written stylesheet, no build step. Reads the brand tokens
   (/brand/css/tokens.css). Hierarchy is a fill ladder (ground < card < key < accent),
   never an outline; links are coloured, never underlined. */

:root {
  --m-ground: #0E100F;
  --m-card: #171A19;
  --m-key: #222725;
  --m-key-2: #2C3330;
  --m-text: #ECE6D8;
  --m-soft: #B7B0A0;
  --m-mute: #8C877C;
  --m-accent: var(--blue, #69AFBF);
  --m-accent-ink: #0B0B0C;
  --m-radius: 10px;
  --m-top: 64px;
}
[data-brand="box-of-synths"] { --m-accent: #5FD08A; }

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--m-top) + 16px); }
html, body { margin: 0; padding: 0; background: var(--m-ground); color: var(--m-text); }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 2.4rem; letter-spacing: 0.01em; }
h2 { font-size: 1.55rem; margin-top: 2.4em; }
h3 { font-size: 1.2rem; margin-top: 1.8em; }
p { margin: 0 0 1em; }
a { color: var(--m-accent); text-decoration: none; }
a:hover { filter: brightness(1.2); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
kbd { font-family: var(--font-body); font-size: 0.8em; font-weight: 600; background: var(--m-key-2); border-radius: 5px; padding: 1px 7px; }
code { font-size: 0.9em; background: var(--m-key); border-radius: 5px; padding: 1px 5px; margin: 0 1px; }
:focus-visible { outline: 2px solid var(--m-accent); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--m-accent); color: var(--m-accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* top bar */
.m-top { position: sticky; top: 0; z-index: 30; height: var(--m-top); display: flex; align-items: center; gap: 24px; padding: 0 24px; background: var(--m-card); }
.m-brand { display: flex; align-items: center; gap: 12px; color: var(--m-text); flex: none; }
.m-brand img { width: 32px; height: 32px; display: block; }
.m-brand-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.02em; }
.m-search { position: relative; flex: 1; max-width: 620px; margin-left: auto; }
.m-search input { width: 100%; height: 42px; border: 0; border-radius: 21px; background: var(--m-key); color: var(--m-text); font: inherit; padding: 0 44px 0 18px; }
.m-search input::placeholder { color: var(--m-mute); }
.m-search input:focus { outline: 2px solid var(--m-accent); outline-offset: 0; }
.m-search kbd { position: absolute; right: 12px; top: 9px; pointer-events: none; }
.m-results { position: absolute; left: 0; right: 0; top: 50px; margin: 0; padding: 8px; list-style: none; background: var(--m-key); border-radius: var(--m-radius); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); max-height: min(70vh, 560px); overflow: auto; }
.m-results li { border-radius: 8px; }
.m-results a { display: block; padding: 9px 12px; color: var(--m-text); border-radius: 8px; }
.m-results li[aria-selected="true"] a, .m-results a:hover { background: var(--m-key-2); filter: none; }
.m-results .r-title { font-weight: 600; }
.m-results .r-kind { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--m-accent-ink); background: var(--m-accent); border-radius: 4px; padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
.m-results .r-where { display: block; font-size: 0.82rem; color: var(--m-mute); }
.m-results .r-text { display: block; font-size: 0.9rem; color: var(--m-soft); }
.m-results mark { background: none; color: var(--m-accent); font-weight: 600; }
.m-results .r-none { padding: 10px 12px; color: var(--m-soft); }
.m-menu { display: none; background: var(--m-key); border-radius: 8px; padding: 8px 14px; font-weight: 600; }

/* shell */
.m-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); max-width: 1560px; margin: 0 auto; }
.m-nav { position: sticky; top: var(--m-top); align-self: start; height: calc(100vh - var(--m-top)); overflow: auto; padding: 24px 16px 48px 24px; }
.m-nav-title { font-family: var(--font-heading); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--m-mute); margin: 22px 0 6px 12px; }
.m-nav-link { display: block; padding: 6px 12px; border-radius: 8px; color: var(--m-soft); font-weight: 500; }
.m-nav-link:hover { background: var(--m-card); color: var(--m-text); filter: none; }
.m-nav-link.is-on { background: var(--m-accent); color: var(--m-accent-ink); font-weight: 600; }
.m-main { padding: 40px 40px 120px; min-width: 0; }
.m-article { max-width: 1180px; }
.m-article > h1, .m-article > .m-lede, .m-article > .m-crumb, .markdown > :not(.screen):not(.walk):not(.recipe):not(table) { max-width: 760px; }
.m-crumb { font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
.m-lede { font-size: 1.2rem; color: var(--m-soft); }
.m-onpage { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0 8px; }
.m-onpage span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--m-mute); margin-right: 6px; }
.m-onpage a { background: var(--m-card); color: var(--m-soft); border-radius: 16px; padding: 4px 14px; font-size: 0.92rem; font-weight: 500; }
.m-onpage a:hover { background: var(--m-key); color: var(--m-text); filter: none; }

/* prose */
.markdown ul, .markdown ol { padding-left: 1.3em; margin: 0 0 1em; }
.markdown li { margin-bottom: 0.35em; }
.markdown strong { color: #fff; }
.markdown blockquote { margin: 0 0 1em; padding: 14px 18px; background: var(--m-card); border-radius: var(--m-radius); color: var(--m-soft); }
.markdown blockquote p:last-child { margin: 0; }
.markdown table { border-collapse: separate; border-spacing: 0 4px; width: 100%; margin: 0 0 1.4em; font-size: 0.95rem; }
.markdown th { text-align: left; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--m-mute); padding: 4px 14px; }
.markdown td { background: var(--m-card); padding: 10px 14px; vertical-align: top; }
.markdown tr td:first-child { border-radius: 8px 0 0 8px; font-weight: 600; }
.markdown tr td:last-child { border-radius: 0 8px 8px 0; }
.markdown h2 .anchor, .markdown h3 .anchor { margin-left: 8px; color: var(--m-key-2); font-weight: 400; }
.markdown h2:hover .anchor, .markdown h3:hover .anchor { color: var(--m-accent); }

/* home */
.m-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 32px; }
.m-toc-group { background: var(--m-card); border-radius: var(--m-radius); padding: 22px 24px; }
.m-toc-group h2 { margin: 0 0 12px; font-size: 1.15rem; color: var(--m-accent); }
.m-toc-group ul { list-style: none; margin: 0; padding: 0; }
.m-toc-group li { margin-bottom: 12px; }
.m-toc-group a { display: block; font-weight: 600; color: var(--m-text); }
.m-toc-group a:hover { color: var(--m-accent); filter: none; }
.m-toc-group span { display: block; font-size: 0.9rem; color: var(--m-mute); line-height: 1.4; }
.linklist { list-style: none; padding: 0; }

/* pager */
.m-pager { display: flex; gap: 16px; margin-top: 64px; max-width: 760px; }
.m-pager a { flex: 1; background: var(--m-card); border-radius: var(--m-radius); padding: 14px 18px; color: var(--m-text); font-weight: 600; }
.m-pager a:hover { background: var(--m-key); filter: none; }
.m-pager span { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--m-accent); }
.m-pager-next { text-align: right; margin-left: auto; }

/* the clickable picture */
.screen { margin: 28px 0 40px; padding: 0; background: var(--m-card); border-radius: 14px; overflow: hidden; }
.screen-bar { display: flex; align-items: center; gap: 16px; padding: 12px 18px; }
.screen-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.03em; color: var(--m-accent); }
.screen-hint { color: var(--m-mute); font-size: 0.92rem; flex: 1; }
.screen-wide { background: var(--m-key); border-radius: 8px; padding: 6px 14px; font-weight: 600; font-size: 0.9rem; }
.screen-wide:hover { background: var(--m-key-2); }
.screen-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; background: #08090A; }
.screen.has-pick .screen-body { grid-template-columns: minmax(0, 1fr) 320px; }
.screen-stage { position: relative; line-height: 0; align-self: start; }
.screen-stage img { display: block; width: 100%; height: auto; }
.hot { position: absolute; background: transparent; border-radius: 6px; padding: 0; transition: background 0.12s, box-shadow 0.12s; }
.hot:hover, .hot:focus-visible { background: color-mix(in srgb, var(--m-accent) 20%, transparent); box-shadow: 0 0 0 2px var(--m-accent); outline: 0; }
.hot.is-on { background: color-mix(in srgb, var(--m-accent) 14%, transparent); box-shadow: 0 0 0 3px var(--m-accent), 0 0 0 9999px rgba(0, 0, 0, 0.45); z-index: 2; }
.hot-n, .part-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--m-accent); color: var(--m-accent-ink); font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; line-height: 1; }
.hot-n { position: absolute; left: -8px; top: -8px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 0.66rem; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.7); opacity: 0.92; }
.screen.no-numbers .hot:not(.is-on):not(:hover) .hot-n { opacity: 0; }
.screen-stage { overflow: hidden; }
.screen-detail { background: var(--m-key); padding: 20px; display: flex; flex-direction: column; gap: 16px; line-height: 1.5; font-size: 0.98rem; }
.screen-detail[hidden] { display: none; }
.screen-detail-body { flex: 1; }
.screen-detail-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.screen-detail-nav button, .walk-nav button { background: var(--m-key-2); border-radius: 8px; padding: 7px 14px; font-weight: 600; font-size: 0.9rem; }
.screen-detail-nav button:hover, .walk-nav button:hover { background: var(--m-accent); color: var(--m-accent-ink); }
.screen-detail-count, .walk-count { color: var(--m-mute); font-size: 0.85rem; }
.screen-intro { padding: 16px 18px 0; color: var(--m-soft); max-width: 800px; }
.parts { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; }
.part { margin: 0; scroll-margin-top: calc(var(--m-top) + 16px); }
.part-card { height: 100%; background: var(--m-key); border-radius: var(--m-radius); padding: 14px 16px; font-size: 0.95rem; line-height: 1.5; cursor: pointer; transition: background 0.12s; }
.part-card:hover { background: var(--m-key-2); }
.part.is-on .part-card { box-shadow: inset 4px 0 0 var(--m-accent); background: var(--m-key-2); }
.part-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; }
.part-label { flex: 1; }
.part-kind { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--m-mute); background: var(--m-ground); border-radius: 4px; padding: 2px 7px; }
.part-does p:last-child, .part-note p:last-child, .part-facts dd p:last-child { margin-bottom: 0; }
.part-does ul, .part-facts ul { padding-left: 1.2em; margin: 0 0 0.6em; }
.part-facts { margin: 10px 0 0; display: grid; gap: 6px; }
.part-facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--m-accent); }
.part-facts dd { margin: 0; color: var(--m-soft); }
.part-note { margin-top: 10px; padding: 8px 12px; background: var(--m-ground); border-radius: 8px; color: var(--m-soft); font-size: 0.9rem; }
.screen-detail .part-card { background: none; padding: 0; cursor: default; }
.screen.is-wide { position: fixed; inset: 0; z-index: 40; margin: 0; border-radius: 0; overflow: auto; }

/* walkthrough */
.walk { margin: 28px 0 40px; background: var(--m-card); border-radius: 14px; overflow: hidden; scroll-margin-top: calc(var(--m-top) + 16px); }
.walk-bar { display: flex; align-items: baseline; gap: 14px; padding: 14px 18px; }
.walk-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--m-accent); color: var(--m-accent-ink); border-radius: 4px; padding: 2px 8px; }
.walk-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; }
.walk-intro { padding: 0 18px; color: var(--m-soft); max-width: 800px; }
.walk-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.walk.is-live .walk-body { grid-template-columns: minmax(0, 1fr) 340px; background: #08090A; }
.walk-stage { position: relative; line-height: 0; overflow: hidden; align-self: start; }
.walk-stage[hidden] { display: none; }
.walk-stage img { display: block; width: 100%; height: auto; }
.walk-spot { position: absolute; border-radius: 8px; box-shadow: 0 0 0 3px var(--m-accent), 0 0 0 9999px rgba(0, 0, 0, 0.4); transition: all 0.35s var(--ease, ease); pointer-events: none; }
.walk-steps { list-style: none; margin: 0; padding: 14px 18px 18px; display: grid; gap: 8px; }
.walk-step { background: var(--m-key); border-radius: var(--m-radius); padding: 14px 16px; font-size: 0.98rem; line-height: 1.5; }
.walk-step h4 { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.walk-step p:last-child { margin: 0; }
.walk.is-live .walk-steps { padding: 0; background: var(--m-key); }
.walk.is-live .walk-step { display: none; border-radius: 0; padding: 20px; }
.walk.is-live .walk-step.is-on { display: block; }
.walk-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; }
.walk-nav[hidden] { display: none; }
.walk-nav .is-primary { background: var(--m-accent); color: var(--m-accent-ink); }
.walk-nav button:disabled { opacity: 0.35; cursor: default; }

/* video: a card that loads YouTube only when clicked */
.video { margin: 28px 0 40px; padding: 0; background: var(--m-card); border-radius: 14px; overflow: hidden; }
.video-card { position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--m-key), var(--m-key-2)); color: var(--m-text); overflow: hidden; }
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card:hover { filter: none; }
.video-title { position: relative; z-index: 1; padding: 16px 20px; font-family: var(--font-heading); font-weight: 600; font-size: 1.25rem; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }
.video-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--m-accent); color: var(--m-accent-ink); transition: transform 0.15s; }
.video-card:hover .video-play { transform: scale(1.08); }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 18px; font-size: 0.92rem; }
.video-caption { color: var(--m-soft); flex: 1 1 auto; }
.video-credit { color: var(--m-mute); }
.video-links { display: flex; flex-wrap: wrap; gap: 8px; }
.video-links a { background: var(--m-key); color: var(--m-text); border-radius: 8px; padding: 4px 12px; font-weight: 600; font-size: 0.85rem; }
.video-links a:hover { background: var(--m-key-2); filter: none; }

@media (max-width: 1180px) {
  .screen.has-pick .screen-body, .walk.is-live .walk-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .m-shell { grid-template-columns: minmax(0, 1fr); }
  .m-nav { display: none; position: fixed; inset: 0; height: auto; padding-top: calc(var(--m-top) + 12px); background: var(--m-ground); z-index: 25; }
  .m-nav.is-open { display: block; }
  .m-menu { display: block; }
  .m-brand-name { display: none; }
  .m-main { padding: 24px 16px 96px; }
  .m-top { padding: 0 16px; gap: 12px; }
  .m-search kbd, .screen-hint { display: none; }
  .m-results { position: fixed; left: 8px; right: 8px; top: calc(var(--m-top) - 4px); }
  h1 { font-size: 1.9rem; }
  .parts { grid-template-columns: minmax(0, 1fr); padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* a screen that shows one region of its picture */
.screen-stage.is-cropped img, .walk-stage.is-cropped img { position: absolute; max-width: none; height: auto; }

/* ---- colour, icons and pictures (22 Nov): each section has a colour of its own (--sec), every page and
   control kind an icon, and the home page shows the app itself. Fills and tints, never outlines. ---- */
body { --sec: var(--m-accent); }
.ico { flex: none; vertical-align: -3px; }
.m-main { --m-accent: var(--sec); }

.m-search-ico { position: absolute; left: 14px; top: 11px; color: var(--m-mute); pointer-events: none; }
.m-search input { padding-left: 42px; }

/* contents */
.m-nav-home { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--m-text); font-weight: 600; background: var(--m-card); }
.m-nav-home:hover { background: var(--m-key); filter: none; }
.m-nav-home.is-on { background: var(--m-accent); color: var(--m-accent-ink); }
.m-nav-group { --sec: var(--m-accent); margin-top: 20px; }
.m-nav-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px 12px; color: var(--sec); }
.m-nav-link { display: flex; align-items: flex-start; gap: 10px; padding: 6px 12px; line-height: 1.35; }
.m-nav-link .ico { margin-top: 3px; color: var(--m-mute); }
.m-nav-link:hover .ico { color: var(--sec); }
.m-nav-link.is-on { background: color-mix(in srgb, var(--sec) 20%, var(--m-card)); color: #fff; box-shadow: inset 4px 0 0 var(--sec); }
.m-nav-link.is-on .ico { color: var(--sec); }

/* page head */
.m-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; max-width: 900px; }
.m-head h1 { margin: 0; }
.m-head-ico { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; color: var(--sec); background: color-mix(in srgb, var(--sec) 18%, var(--m-card)); }
.m-crumb { display: flex; gap: 10px; align-items: center; margin: 0 0 4px; font-size: 0.85rem; }
.m-crumb a { color: var(--m-mute); }
.m-crumb span { color: var(--m-accent-ink); background: var(--sec); border-radius: 5px; padding: 1px 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.72rem; }
.m-onpage a:hover { background: color-mix(in srgb, var(--sec) 22%, var(--m-card)); }

/* prose with some life in it */
.markdown h2 { display: flex; align-items: center; gap: 12px; }
.markdown h2::before { content: ""; flex: none; width: 6px; height: 1.1em; border-radius: 3px; background: var(--sec); }
.markdown h3 { color: color-mix(in srgb, var(--sec) 55%, #fff); }
.markdown th { color: var(--sec); }
.markdown tr td:first-child { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--sec) 60%, transparent); }
.markdown blockquote { background: color-mix(in srgb, var(--sec) 12%, var(--m-card)); box-shadow: inset 4px 0 0 var(--sec); color: var(--m-text); }
.markdown ul li::marker { color: var(--sec); }
.markdown ol li::marker { color: var(--sec); font-weight: 700; }
.markdown kbd, kbd { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.55); }
.markdown code { color: color-mix(in srgb, var(--sec) 45%, #fff); }
.m-pager a { box-shadow: inset 0 3px 0 var(--sec); }

/* clickable pictures and walkthroughs */
.screen, .walk { box-shadow: inset 0 3px 0 var(--sec); }
.screen-title { display: flex; align-items: center; gap: 8px; }
.walk-kicker { display: inline-flex; align-items: center; gap: 6px; }
.part-kind { display: inline-flex; align-items: center; gap: 5px; color: var(--k, var(--m-soft)); background: color-mix(in srgb, var(--k, #888) 16%, var(--m-ground)); }
.part-kind[data-kind="dial"], .part-kind[data-kind="slider"] { --k: #5FD08A; }
.part-kind[data-kind="key"] { --k: #69AFBF; }
.part-kind[data-kind="switch"], .part-kind[data-kind="choice"], .part-kind[data-kind="menu"], .part-kind[data-kind="tabs"] { --k: #F2A20C; }
.part-kind[data-kind="text-box"] { --k: #B58CFF; }
.part-kind[data-kind="status"], .part-kind[data-kind="display"] { --k: #F27BA5; }
.part-kind[data-kind="link"] { --k: #5FB4C4; }
.part-facts dt { color: var(--sec); }

/* home */
.m-home { max-width: 1280px; }
.m-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; margin-bottom: 56px; }
.m-hero h1 { font-size: 3rem; }
.m-hero .markdown > * { max-width: none; }
.m-ways { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.m-ways li { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: center; background: var(--m-card); border-radius: 12px; padding: 10px 14px; }
.m-ways li > span:last-child { grid-column: 2; color: var(--m-soft); font-size: 0.94rem; }
.m-ways b { grid-column: 2; }
.m-ways-ico { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; }
.m-ways li:nth-child(1) .m-ways-ico { color: #5FD08A; background: rgba(95, 208, 138, 0.16); }
.m-ways li:nth-child(2) .m-ways-ico { color: #F2A20C; background: rgba(242, 162, 12, 0.16); }
.m-ways li:nth-child(3) .m-ways-ico { color: #B58CFF; background: rgba(181, 140, 255, 0.16); }
.m-hero-shot { position: relative; display: block; perspective: 1600px; padding: 30px 10px 44px; }
.m-hero-shot img { display: block; width: 100%; height: auto; border-radius: 10px; transform: rotateX(14deg) rotateY(-12deg) rotateZ(3deg); box-shadow: 0 0 0 2px rgba(95, 208, 138, 0.55), 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 120px rgba(95, 208, 138, 0.18); transition: transform 0.5s var(--ease, ease); }
.m-hero-shot:hover { filter: none; }
.m-hero-shot:hover img { transform: rotateX(4deg) rotateY(-4deg) rotateZ(1deg); }
.m-hero-shot span { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; background: var(--m-accent); color: var(--m-accent-ink); font-weight: 700; font-size: 0.9rem; border-radius: 20px; padding: 6px 16px; }

.m-sec { --sec: var(--m-accent); margin-bottom: 44px; }
.m-sec-head { position: relative; display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 18px; border-radius: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--sec) 22%, var(--m-card)), var(--m-card) 70%); box-shadow: inset 0 3px 0 var(--sec); overflow: hidden; }
.m-sec-head h2 { margin: 0; font-size: 1.6rem; color: var(--sec); }
.m-sec-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--sec); background: color-mix(in srgb, var(--sec) 20%, var(--m-ground)); }
.m-sec-n { position: absolute; right: 18px; top: -18px; font-family: var(--font-heading); font-weight: 700; font-size: 6rem; line-height: 1; color: color-mix(in srgb, var(--sec) 22%, transparent); }
.m-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.m-card { display: flex; flex-direction: column; background: var(--m-card); border-radius: 14px; overflow: hidden; color: var(--m-text); transition: transform 0.15s, background 0.15s, box-shadow 0.15s; }
.m-card:hover { filter: none; transform: translateY(-3px); background: var(--m-key); box-shadow: 0 0 0 2px var(--sec), 0 14px 30px rgba(0, 0, 0, 0.5); }
.m-card-shot { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #08090A; overflow: hidden; }
.m-card-shot.is-plain { color: var(--sec); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--sec) 32%, #08090A), #08090A 75%); }
.m-card-frame { position: relative; display: block; width: 100%; overflow: hidden; }
.m-card-frame img { display: block; width: 100%; height: auto; }
.m-card-frame img.is-cropped { position: absolute; max-width: none; }
.m-card-title { display: flex; align-items: center; gap: 9px; padding: 13px 16px 4px; font-weight: 700; font-size: 1.04rem; line-height: 1.3; }
.m-card-title .ico { color: var(--sec); }
.m-card-sum { padding: 0 16px 16px; color: var(--m-mute); font-size: 0.9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1100px) { .m-hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .m-head-ico { width: 48px; height: 48px; border-radius: 12px; } .m-hero h1 { font-size: 2.2rem; } .m-sec-n { font-size: 4.5rem; } }

/* number badges always in front and never cut off at the picture's edge */
.screen-body { padding: 14px; }
.screen-stage { overflow: visible; clip-path: inset(-13px); }
.hot-n { z-index: 3; }
.hot.is-on .hot-n, .hot:hover .hot-n { z-index: 4; transform: scale(1.15); }
.screen.is-wide .screen-body { padding: 18px; }

/* drawings a reader can play with */
.demo { margin: 28px 0 36px; padding: 0 0 18px; background: var(--m-card); border-radius: 14px; overflow: hidden; box-shadow: inset 0 3px 0 var(--sec); max-width: 900px; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 20px 12px; }
.demo-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--sec); color: var(--m-accent-ink); border-radius: 5px; padding: 3px 9px; }
.demo-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; color: var(--sec); }
.demo-hint { color: var(--m-mute); font-size: 0.92rem; }
.demo-stage { padding: 6px 20px 0; }
.demo-stage svg { display: block; max-width: 720px; margin: 0 auto; user-select: none; -webkit-user-select: none; }
.demo-note { margin: 14px 20px 0; padding: 12px 16px; background: var(--m-key); border-radius: 10px; color: var(--m-soft); font-size: 0.95rem; line-height: 1.5; }
.demo:not(.is-live) .demo-stage { display: none; }
.demo-tools { display: grid; gap: 10px; max-width: 720px; margin: 12px auto 0; }
.demo-slider, .demo-choice { display: grid; grid-template-columns: 110px minmax(0, 1fr) 84px; align-items: center; gap: 14px; }
.demo-choice { grid-template-columns: 110px minmax(0, 1fr); }
.demo-slider-name { font-weight: 600; font-size: 0.92rem; color: var(--m-soft); }
.demo-slider output { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; color: var(--sec); }
.demo-slider input[type="range"] { width: 100%; accent-color: var(--sec); cursor: pointer; }
.demo-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-seg button, .demo-play { background: var(--m-key); border-radius: 8px; padding: 6px 14px; font-weight: 600; font-size: 0.9rem; color: var(--m-soft); }
.demo-seg button:hover, .demo-play:hover { background: var(--m-key-2); color: var(--m-text); }
.demo-seg button.is-on, .demo-play { background: var(--sec); color: var(--m-accent-ink); }
.demo-play { justify-self: start; padding: 8px 22px; }

/* the map of a sound's path */
.flow { max-width: 1180px; }
.flow-row { display: flex; align-items: stretch; gap: 6px; padding: 6px 20px 0; }
.flow-row.is-movers { gap: 12px; }
.flow-box { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 16px 14px 14px; border-radius: 12px; background: var(--m-key); color: var(--m-text); transition: transform 0.15s, background 0.15s, box-shadow 0.15s; }
.flow-box:hover { filter: none; transform: translateY(-3px); background: var(--m-key-2); box-shadow: 0 0 0 2px var(--c); }
.flow-box b { font-size: 1.02rem; color: var(--c); }
.flow-box > span:last-child { color: var(--m-soft); font-size: 0.88rem; line-height: 1.4; }
.flow-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 18%, var(--m-ground)); }
.flow-n { position: absolute; right: 12px; top: 6px; font-family: var(--font-heading); font-weight: 700; font-size: 2.4rem; line-height: 1; color: color-mix(in srgb, var(--c) 28%, transparent); }
.flow-arrow { flex: none; align-self: center; color: var(--m-mute); }
.flow-row .flow-box:nth-of-type(1) { --c: #FF7A6B; }
.flow-row .flow-box:nth-of-type(2) { --c: #F2A20C; }
.flow-row .flow-box:nth-of-type(3) { --c: #5FD08A; }
.flow-row .flow-box:nth-of-type(4) { --c: #F2A20C; }
.flow-row .flow-box:nth-of-type(5) { --c: #5FB4C4; }
.flow-row.is-movers .flow-box:nth-of-type(1) { --c: #B58CFF; }
.flow-row.is-movers .flow-box:nth-of-type(2) { --c: #5FD08A; }
.flow-row.is-movers .flow-box:nth-of-type(3) { --c: #F27BA5; }
.flow-row.is-movers .flow-box { flex-direction: row; align-items: center; flex-wrap: wrap; }
.flow-row.is-movers .flow-box > span:last-child { flex-basis: 100%; }
.flow-label { display: flex; align-items: center; gap: 8px; margin: 18px 20px 8px; color: var(--m-mute); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* the moving model on the home page */
.m-hero-shot.is-video { perspective: none; padding: 0 0 44px; }
.m-hero-shot video { display: block; width: 100%; height: auto; border-radius: 14px; }

@media (max-width: 900px) {
  .flow-row { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .demo-slider { grid-template-columns: 84px minmax(0, 1fr) 70px; }
  .demo-choice { grid-template-columns: minmax(0, 1fr); }
}
.m-hero-shot.is-video { overflow: hidden; border-radius: 16px; padding: 0; margin-bottom: 0; background: #0e1011; aspect-ratio: 16 / 11; display: grid; place-items: center; }
.m-hero-shot.is-video video { transform: scale(1.5); border-radius: 0; }
.m-hero-shot.is-video span { bottom: 16px; }

/* ---- 22 Nov: sticky hero on the home, product switcher, phone fixes ---- */
html { -webkit-text-size-adjust: 100%; }
.m-main { overflow-wrap: break-word; }

/* the picture of the plugin: top of the right column, level with the first line, and it follows the scroll */
.m-hero { align-items: stretch; --m-hero-room: calc(100vh - var(--m-top) - 40px); }
.m-hero-side { min-width: 0; }
.m-hero-side .m-hero-shot { position: sticky; top: calc(var(--m-top) + 20px); margin: 0 auto; padding: 14px 10px 54px; max-width: 100%; }
.m-hero-side .m-hero-shot img { width: auto; max-width: 100%; max-height: calc(var(--m-hero-room) - 90px); margin: 0 auto; object-fit: contain; }
.m-hero-side .m-hero-shot.is-video { padding: 0; margin: 0 auto; width: min(100%, calc((var(--m-hero-room) - 24px) * 16 / 11)); max-height: calc(var(--m-hero-room) - 24px); }
.m-hero-side .m-hero-shot:not([href]) { cursor: default; }
.m-hero-text { min-width: 0; }

/* product switcher */
.m-brand-group { display: flex; align-items: center; gap: 6px; min-width: 0; flex: none; }
.m-brand-group .m-brand { padding: 6px; border-radius: 10px; }
.m-brand-group .m-brand:hover { background: var(--m-key); filter: none; }
.m-switch { position: relative; min-width: 0; }
.m-switch-link, .m-switch-btn { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 6px 12px; border-radius: 10px; background: transparent; color: var(--m-text); font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.02em; line-height: 1.2; text-align: left; }
.m-switch-link:hover, .m-switch-btn:hover, .m-switch.is-open .m-switch-btn { background: var(--m-key); filter: none; }
.m-switch-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-switch .ico { color: var(--m-mute); transition: transform 0.15s; }
.m-switch.is-open .m-switch-btn .ico { transform: rotate(180deg); color: var(--m-accent); }
.m-switch.has-js .m-switch-link { display: none; }
.m-switch-menu { display: none; }
.m-switch.is-open .m-switch-menu { display: block; position: absolute; z-index: 40; left: 0; top: calc(100% + 8px); width: 340px; max-width: calc(100vw - 16px); padding: 8px; background: var(--m-key); border-radius: var(--m-radius); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); max-height: calc(100vh - var(--m-top) - 24px); overflow: auto; }
.m-switch-menu ul { list-style: none; margin: 0; padding: 0; }
.m-switch-menu a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: 8px; color: var(--m-text); font-weight: 600; line-height: 1.3; }
.m-switch-menu a:hover, .m-switch-menu a:focus-visible { background: var(--m-key-2); filter: none; }
.m-switch-menu a[aria-current] { background: color-mix(in srgb, var(--m-accent) 20%, var(--m-key)); box-shadow: inset 4px 0 0 var(--m-accent); }
.m-switch-menu img, .m-switch-nomark { flex: none; width: 28px; height: 28px; display: block; }
.m-switch-title { flex: 1; min-width: 0; }
.m-switch-here { flex: none; color: var(--m-accent); }
.m-switch-menu .m-switch-all { margin-top: 6px; padding-top: 12px; border-radius: 8px; color: var(--m-accent); box-shadow: inset 0 1px 0 var(--m-key-2); }
.m-switch-menu .m-switch-all::after { content: "\2192"; margin-left: auto; }

/* without JavaScript the contents simply sit above the page */
html:not(.js) .m-menu { display: none; }
.m-menu { min-height: 44px; }

@media (max-width: 900px) {
  html:not(.js) .m-nav { display: block; position: static; height: auto; background: transparent; }
  .m-switch-name { max-width: 34vw; }
  .m-brand-group { flex: 0 1 auto; }
  .m-search input { font-size: 16px; }
  .markdown table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .markdown pre { overflow-x: auto; max-width: 100%; }
  .m-nav.is-open { padding-bottom: 96px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .m-nav-link, .m-nav-home { min-height: 44px; align-items: center; }
  .m-menu[aria-expanded="true"] { background: var(--m-accent); color: var(--m-accent-ink); }
}

/* hero above the intro once the page is a single column; no sticky there */
@media (max-width: 1100px) {
  .m-hero { gap: 24px; }
  .m-hero-side { order: -1; }
  .m-hero-side .m-hero-shot { position: relative; top: auto; }
  .m-hero-side .m-hero-shot img { max-height: 46vh; }
  .m-hero-side .m-hero-shot.is-video { width: min(100%, calc(46vh * 16 / 11)); max-height: none; }
}

@media (max-width: 640px) {
  :root { --m-top: 112px; }
  .m-top { flex-wrap: wrap; align-content: center; gap: 6px 8px; height: var(--m-top); padding: 6px 12px; }
  .m-brand-group { order: 1; flex: 1 1 0; }
  .m-menu { order: 2; flex: none; }
  .m-search { order: 3; flex: 1 0 100%; max-width: none; margin: 0; }
  .m-switch-name { max-width: none; }
  .m-switch-link, .m-switch-btn { font-size: 1rem; padding: 6px 8px; }
  .m-switch.is-open .m-switch-menu { position: fixed; left: 8px; right: 8px; top: calc(var(--m-top) - 4px); width: auto; max-width: none; }
  .m-results { top: calc(var(--m-top) - 4px); }
  .m-main { padding: 20px 14px 80px; }
  h1, .m-hero h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .m-hero { margin-bottom: 36px; }
  .m-hero-shot { padding: 8px 4px 46px; }
  .m-hero-shot img { transform: none !important; }
  .m-hero-side .m-hero-shot { padding: 0 0 70px; }
  .m-hero-side .m-hero-shot img { max-height: 40vh; }
  .m-hero-side .m-hero-shot.is-video { width: 100%; max-height: none; }
  .m-hero-shot span { max-width: calc(100% - 16px); white-space: normal; text-align: center; line-height: 1.3; font-size: 0.85rem; bottom: 4px; }
  .m-sec-head { padding: 12px 14px; }
  .m-sec-head h2 { font-size: 1.3rem; }
  .m-sec-n { font-size: 3.6rem; right: 10px; }
  .m-cards { grid-template-columns: minmax(0, 1fr); }
  .m-toc { grid-template-columns: minmax(0, 1fr); }
  .m-head { gap: 12px; }
  .m-pager { flex-direction: column; margin-top: 40px; }
  .m-pager-next { text-align: left; margin-left: 0; }
  .m-onpage a { padding: 8px 14px; }

  /* clickable pictures: bigger numbers, a 44px tap area, and the description under the picture */
  .screen, .walk, .video, .demo { margin-left: -4px; margin-right: -4px; }
  .screen-bar { flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; }
  .screen-wide { min-height: 44px; padding: 8px 16px; margin-left: auto; }
  .screen-body { padding: 8px; }
  .screen.has-pick .screen-body { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hot-n { min-width: 22px; height: 22px; font-size: 0.74rem; left: -9px; top: -9px; opacity: 1; }
  .hot::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
  .screen.no-numbers .hot:not(.is-on):not(:hover) .hot-n { opacity: 1; }
  .screen-detail { padding: 16px; font-size: 1rem; border-radius: 10px; }
  .screen-detail-nav button, .walk-nav button { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
  .screen-intro, .walk-intro { padding-left: 14px; padding-right: 14px; }
  .part-card { padding: 14px; font-size: 1rem; }
  .parts { padding: 8px; }
  .screen.is-wide .screen-body { padding: 10px; overflow-x: hidden; }
  .screen.is-wide .screen-pane { overflow-x: auto; padding: 12px; margin: -12px; }
  .screen.is-wide .screen-stage { width: max(100%, 860px); }

  /* walkthrough: the steps and the buttons are thumb sized */
  .walk-bar { flex-wrap: wrap; gap: 6px 12px; padding: 12px 14px; }
  .walk.is-live .walk-step { padding: 16px; }
  .walk-nav { gap: 8px; padding: 10px 12px; position: sticky; bottom: 0; background: var(--m-card); }
  .walk-nav button { flex: 1; }
  .walk-count { flex: none; }

  .video-title { padding: 12px 14px; font-size: 1.02rem; }
  .video-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .video-meta { padding: 12px 14px; }
  .video-links a { padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .m-hero-shot:hover img { transform: rotateX(14deg) rotateY(-12deg) rotateZ(3deg); }
}
.screen-pane { min-width: 0; align-self: start; }
.m-switch-menu img, .m-switch-nomark { width: 64px; height: 28px; object-fit: contain; object-position: left center; }
@media (max-width: 640px) {
  /* a wide wordmark would eat the row: keep the icon end of it */
  .m-brand-group .m-brand img { width: 34px !important; max-width: 34px !important; height: 34px !important; object-fit: cover; object-position: left center; }
  .m-brand-group .m-brand { padding: 4px; }
}

/* recipe card: a picture of the plugin with only the controls the recipe sets lit, a value badge on each, and the
   same settings as a short numbered list. Badges are placed on the server; manual.js re-places them at real size. */
.recipe { margin: 24px 0 36px; max-width: 1180px; background: var(--m-card); border-radius: 14px; overflow: hidden; box-shadow: inset 0 3px 0 var(--sec); scroll-margin-top: calc(var(--m-top) + 16px); }
.recipe-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 18px 4px; }
.recipe-head { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.recipe-kicker { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--m-accent); color: var(--m-accent-ink); border-radius: 4px; padding: 2px 8px; }
.recipe-title { margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.01em; }
.recipe-summary { order: 3; flex: 1 1 100%; margin: 0; color: var(--m-soft); font-size: 0.95rem; }
.recipe-start { display: inline-flex; align-items: center; gap: 6px; flex: none; background: var(--m-key); color: var(--m-text); border-radius: 16px; padding: 3px 12px; font-size: 0.86rem; font-weight: 600; }
.recipe-start > span { color: var(--m-mute); font-weight: 500; }
a.recipe-start:hover { background: var(--m-accent); color: var(--m-accent-ink); filter: none; }
a.recipe-start:hover > span { color: inherit; }
.recipe-body { display: block; padding: 14px 18px 16px; }
.recipe-body.has-picture { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: 22px; align-items: start; }
.recipe-body.is-tall { grid-template-columns: minmax(0, 400px) minmax(250px, 320px); }
.recipe-pic { background: #08090A; border-radius: 10px; padding: 14px; }
.recipe-stage { position: relative; line-height: 0; clip-path: inset(-12px); }
.recipe-stage img { display: block; width: 100%; height: auto; }
.recipe-stage.is-cropped img { position: absolute; max-width: none; }
/* a picture is never drawn wider than its own pixels (the views set max-width); centre it when that bites */
.screen-stage, .walk-stage, .recipe-stage { margin-inline: auto; }
.rc-dim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rc-part { position: absolute; border-radius: 6px; background: transparent; box-shadow: 0 0 0 2px color-mix(in srgb, var(--m-accent) 80%, transparent); cursor: pointer; transition: background 0.12s, box-shadow 0.12s; }
.rc-badge { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 2px; border-radius: 11px; background: var(--m-accent); color: var(--m-accent-ink); font-family: var(--font-body); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65); cursor: pointer; transition: transform 0.12s, background 0.12s; }
.rc-n { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--m-accent-ink); color: var(--m-accent); font-size: 11px; font-weight: 700; }
.rc-badge.is-dot { width: 20px; height: 20px; padding: 0; justify-content: center; border-radius: 10px; }
.rc-badge.is-dot .rc-val { display: none; }
.rc-badge.is-dot .rc-n { min-width: 0; width: 100%; height: 100%; background: none; color: var(--m-accent-ink); }
.markdown .recipe-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-width: 340px; }
.rc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; width: 100%; text-align: left; background: var(--m-key); border-radius: 9px; padding: 8px 12px; line-height: 1.3; transition: background 0.12s; }
.rc-row:hover, .rc-row.is-hot, .rc-row.is-pin { background: var(--m-key-2); }
.rc-row.is-pin { box-shadow: inset 4px 0 0 var(--m-accent); }
.rc-row:focus-visible { outline: 2px solid var(--m-accent); outline-offset: 1px; }
.rc-row .part-n { flex: none; }
.rc-label { font-weight: 700; font-size: 0.95rem; }
.rc-value { color: var(--m-accent); font-weight: 700; font-size: 0.95rem; }
.rc-note { flex: 1 1 100%; padding-left: 32px; color: var(--m-mute); font-size: 0.84rem; line-height: 1.35; }
.rc-row.is-loose .part-n { background: var(--m-key-2); color: var(--m-soft); box-shadow: inset 0 0 0 1px var(--m-mute); }
.recipe-tips { padding: 0 18px 16px; color: var(--m-soft); font-size: 0.95rem; }
.recipe-tips p { margin: 0 0 0.5em; max-width: 720px; }
.recipe-tips p:last-child { margin-bottom: 0; }
.recipe-body:not(.has-picture) + .recipe-tips { padding-top: 0; }
/* hover, focus and pin: the chosen control stands out, the others step back */
.recipe.has-hot .rc-part:not(.is-hot) { box-shadow: 0 0 0 1px color-mix(in srgb, var(--m-accent) 45%, transparent); background: transparent; }
.recipe.has-hot .rc-badge:not(.is-hot) { opacity: 0.55; }
.rc-part.is-hot { background: color-mix(in srgb, var(--m-accent) 26%, transparent); box-shadow: 0 0 0 3px var(--m-accent); z-index: 1; }
.rc-badge.is-hot { z-index: 4; transform: scale(1.12); background: #fff; }
.rc-badge.is-hot .rc-n { background: var(--m-accent-ink); color: #fff; }

@media (max-width: 760px) {
  .recipe-body.has-picture, .recipe-body.is-tall { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 10px; }
  .recipe-pic { padding: 12px 10px; }
  .markdown .recipe-list { max-width: none; }
  .recipe-bar { padding: 12px 14px 2px; }
  .recipe-tips { padding: 0 14px 14px; }
}
/* a small picture shows numbered dots; the values stay in the list. Without JavaScript this is a width rule, with it the script decides. */
@media (max-width: 560px) {
  .recipe:not([data-mode]) .rc-badge { width: 20px; padding: 0; justify-content: center; }
  .recipe:not([data-mode]) .rc-badge .rc-val { display: none; }
  .recipe:not([data-mode]) .rc-badge .rc-n { background: none; color: var(--m-accent-ink); }
}
.recipe[data-mode="dots"] .rc-badge { width: 20px; height: 20px; padding: 0; justify-content: center; }
.recipe[data-mode="dots"] .rc-badge .rc-val { display: none; }
.recipe[data-mode="dots"] .rc-badge .rc-n { min-width: 0; width: 100%; height: 100%; background: none; color: var(--m-accent-ink); }
.rc-badge.is-dot.is-hot, .recipe[data-mode="dots"] .rc-badge.is-hot { transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .rc-badge, .rc-part, .rc-row { transition: none; } .rc-badge.is-hot { transform: none; } }

.markdown .recipe-list li { margin: 0; }

/* the full logo in the header: sized here, not inline; the box may shrink on a phone */
.m-brand img.m-brand-mark { width: auto; height: 32px; max-width: 44vw; }
.m-brand-full + .m-brand-name { opacity: 0.85; }

/* calmer contents list: one section open at a time, thin scrollbar, the page's section marked.
   Without JavaScript nothing folds, so everything stays open. */
.m-nav { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--m-text) 18%, transparent) transparent; }
.m-nav::-webkit-scrollbar { width: 8px; }
.m-nav::-webkit-scrollbar-track { background: transparent; }
.m-nav::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--m-text) 16%, transparent); border-radius: 8px; }
.m-nav::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--m-text) 30%, transparent); }
.m-nav-group { margin-top: 8px; }
.m-nav.is-ready .m-nav-title { cursor: pointer; padding: 8px 12px; margin: 0; border-radius: 8px; user-select: none; }
.m-nav.is-ready .m-nav-title:hover { background: var(--m-card); }
.m-nav.is-ready .m-nav-title:focus-visible { outline: 2px solid var(--sec); outline-offset: 2px; }
.m-nav.is-ready .m-nav-title::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: 0.7; transition: transform 0.15s ease; }
.m-nav.is-ready .m-nav-group.is-closed .m-nav-title::after { transform: rotate(-45deg); }
.m-nav.is-ready .m-nav-group.is-closed .m-nav-link { display: none; }
.m-nav.is-ready .m-nav-group.is-closed .m-nav-title { color: color-mix(in srgb, var(--sec) 70%, var(--m-mute)); }
.m-nav-group.is-here .m-nav-title { background: color-mix(in srgb, var(--sec) 14%, var(--m-card)); }
.m-nav-link { font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { .m-nav.is-ready .m-nav-title::after { transition: none; } }
@media (max-width: 900px) { .m-nav.is-ready .m-nav-title { min-height: 44px; display: flex; align-items: center; } }
@media (max-width: 900px) { .m-nav.is-open { height: 100vh; height: 100dvh; } }

/* ---- partner: a co-branded manual (manual.json "partner", partials/manual-partner). Matte black, one keyline in the
   partner's colour (--partner), the partner's mark in white and never crowded: the space around it is at least its own
   height (--mark). Colour changes ease out over 220 ms; nothing moves or bounces. ---- */
.m-partner { --partner: #fff; --partner-ink: #0B0B0C; --mark: 16px; }
.m-partner img { display: block; width: auto; height: var(--mark); max-width: none; }
.m-partner-name { font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; font-size: calc(var(--mark) * 1.05); line-height: 1; }
.m-partner-label { margin: 0; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }
.m-partner-go { display: inline-flex; align-items: center; gap: 7px; color: var(--partner); font-weight: 700; white-space: nowrap; }
.m-partner a:hover, a.m-partner:hover { filter: none; }
.m-partner a:focus-visible, a.m-partner:focus-visible { outline: 2px solid var(--partner); outline-offset: 3px; }

/* the band: the home's co-brand moment, and [[partner:band]] in a page */
.m-partner-band { container-type: inline-size; margin: 28px 0 44px; background: #000; border-radius: 14px; box-shadow: inset 0 3px 0 var(--partner); }
.m-home > .m-partner-band { margin-top: 26px; }
.m-partner-band-in { --mark: clamp(40px, 5.2cqw, 56px); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "label say" "logo say"; column-gap: clamp(40px, 7cqw, 88px); align-items: center; padding: 30px max(var(--mark), 4.6cqw) 34px; }
.m-partner-band .m-partner-label { grid-area: label; }
.m-partner-logo { grid-area: logo; display: block; padding: var(--mark) 0; border-radius: 6px; }
.m-partner-say { grid-area: say; min-width: 0; padding: 2px 0 0; }
.m-partner-band .m-partner-line { margin: 0 0 14px; max-width: 34em; font-size: 1.2rem; line-height: 1.42; color: #fff; }
.m-partner-band .m-partner-points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 6px; max-width: 38em; }
.m-partner-band .m-partner-points li { position: relative; margin: 0; padding-left: 26px; color: rgba(255, 255, 255, 0.72); font-size: 0.98rem; line-height: 1.5; }
.m-partner-band .m-partner-points li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 2px; background: var(--partner); }
.m-partner-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 10px; background: var(--partner); color: var(--partner-ink); font-weight: 700; font-size: 1.04rem; letter-spacing: 0.01em; transition: background-color 0.22s ease-out; }
.m-partner-cta:hover { background: color-mix(in srgb, var(--partner) 86%, #000); }
.m-partner-cta:focus-visible { outline-offset: 4px; }
@container (max-width: 760px) {
  .m-partner-band-in { --mark: 38px; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "label" "logo" "say"; justify-items: start; padding: 26px var(--mark) 32px; }
  .m-partner-logo { padding: var(--mark) 0; }
  .m-partner-say { padding: 0; }
  .m-partner-band .m-partner-line { font-size: 1.12rem; }
}
@container (max-width: 520px) {
  .m-partner-band-in { --mark: 28px; padding: 22px var(--mark) 28px; }
  .m-partner-band .m-partner-line { font-size: 1.04rem; margin-bottom: 20px; }
  .m-partner-band .m-partner-points { display: none; }
  .m-partner-say { width: 100%; }
  .m-partner-cta { display: flex; width: 100%; min-height: 52px; }
}

/* a co-branded home: the title on its own, then the band, then the intro beside the picture */
.m-home-head h1 { font-size: 3rem; }
.m-home-head .m-lede { max-width: 760px; margin-bottom: 0; }
.m-hero-stick { position: sticky; top: calc(var(--m-top) + 20px); }
.m-hero-side .m-hero-stick .m-hero-shot { position: relative; top: auto; }
.m-hero-side .m-hero-stick .m-hero-shot.is-video { width: min(100%, calc((var(--m-hero-room) - 96px) * 16 / 11)); max-height: calc(var(--m-hero-room) - 96px); }

/* the lockup under the picture: partner mark, the two names, our mark */
.m-partner-lockup { --mark: 22px; display: flex; align-items: center; justify-content: center; gap: var(--mark); margin: 22px 0 0; font-family: var(--font-heading); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; color: var(--m-soft); }
.m-partner-lockup-half { display: inline-flex; align-items: center; gap: var(--mark); color: #fff; white-space: nowrap; }
a.m-partner-lockup-half { padding: 8px 0; border-radius: 6px; transition: color 0.22s ease-out; }
a.m-partner-lockup-half:hover { color: var(--partner); }
.m-partner-x { color: var(--m-mute); font-family: var(--font-body); font-weight: 400; font-size: 1.05rem; line-height: 1; }

/* header, desktop only: after the product switcher */
.m-partner-top { --mark: 14px; flex: none; display: inline-flex; align-items: center; gap: var(--mark); min-height: 44px; padding: 0 var(--mark); border-radius: 10px; transition: background-color 0.22s ease-out; }
.m-partner-top:hover { background: var(--m-key); }
.m-partner-top .m-partner-x { font-size: 1.1rem; }
.m-brand-group + .m-partner-top, .m-brand + .m-partner-top { margin-left: -14px; }

/* the strip at the end of every page */
.m-partner-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mark); max-width: 760px; margin-top: 56px; padding: 20px 22px; background: #000; border-radius: var(--m-radius); box-shadow: inset 3px 0 0 var(--partner); color: var(--m-soft); font-size: 0.95rem; line-height: 1.3; transition: background-color 0.22s ease-out; }
.m-partner-strip:hover { background: #060606; color: var(--m-text); }
.m-partner-strip .m-partner-go { margin-left: auto; padding-left: 8px; }
.m-partner-strip + .m-pager { margin-top: 16px; }

/* the card at the foot of the contents list, desktop only */
.m-nav-partner { --mark: 18px; display: none; }
.m-nav-partner-card { display: grid; justify-items: start; gap: var(--mark); padding: 16px 16px 16px; background: #000; border-radius: var(--m-radius); box-shadow: inset 0 2px 0 var(--partner); font-size: 0.9rem; line-height: 1.2; }
.m-nav-partner .m-partner-label { font-size: 0.66rem; letter-spacing: 0.16em; }
.m-nav-partner-card .m-partner-go { transition: color 0.22s ease-out; }
.m-nav-partner-card:hover .m-partner-go { color: #fff; }
@media (min-width: 901px) {
  .m-nav:has(.m-nav-partner) { display: flex; flex-direction: column; padding-bottom: 0; }
  .m-nav:has(.m-nav-partner) > * { flex: none; }
  .m-nav-partner { display: block; margin-top: auto; padding: 18px 0 24px; background: var(--m-ground); }
}
@media (min-width: 901px) and (min-height: 640px) { .m-nav-partner { position: sticky; bottom: 0; } }

@media (max-width: 1100px) {
  .m-hero-stick { position: static; }
  .m-partner-lockup { margin-top: 18px; }
}
@media (max-width: 900px) {
  .m-partner-top { display: none; }
  .m-home-head h1 { font-size: 2.2rem; }
}
@media (max-width: 640px) {
  .m-home-head h1 { font-size: 1.75rem; }
  .m-home > .m-partner-band { margin: 20px 0 28px; }
  .m-partner-lockup { --mark: 18px; font-size: 0.76rem; letter-spacing: 0.1em; }
  .m-partner-strip { margin-top: 40px; padding: 18px; }
  .m-partner-strip .m-partner-go { margin-left: 0; padding-left: 0; flex-basis: 100%; min-height: 28px; }
}
@media (prefers-reduced-motion: reduce) { .m-partner a, a.m-partner { transition: none; } }

/* a product's own icon in its own colour: the manual switcher (22 Nov 2026: no logo repeated on every row) */
.m-switch-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--pi, var(--m-accent)); background: color-mix(in srgb, var(--pi, var(--m-accent)) 16%, transparent); }
.m-switch .m-switch-ico .ico { color: inherit; transform: none; transition: none; }
.m-switch.is-open .m-switch-btn .m-switch-ico .ico { transform: none; color: inherit; }
.m-switch-btn .m-switch-ico { width: 28px; height: 28px; border-radius: 8px; }
.m-switch-menu a[aria-current] { background: color-mix(in srgb, var(--m-text) 8%, var(--m-key)); box-shadow: none; }

/* Mounted on the store's site (App\Support\Docs\Mount): the way from a manual's home to the plugin's own page. */
.m-get { margin: 18px 0 22px; }
.m-get-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; background: var(--m-accent); color: var(--m-accent-ink); font-weight: 700; transition: background-color 220ms ease-out; }
.m-get-link:hover { background: color-mix(in srgb, var(--m-accent) 86%, #000); color: var(--m-accent-ink); filter: none; text-decoration: none; }
.m-get-link:focus-visible { outline: 2px solid var(--m-text); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .m-get-link { transition: none; } }
