/* SeeJelly – website and user guide
   The app's own look: dark blurred backdrop, Liquid Glass panels, the icon's gradient
   (violet → pink → cyan → blue), cyan accents, tvOS-style focus (lift, tilt, sheen). */

:root {
  --bg: #050709;
  --text: #f2f5f7;
  --muted: rgba(235, 240, 245, .64);
  --faint: rgba(235, 240, 245, .40);
  --accent: #3FE0F7;
  --accent-ink: #061f33;
  --violet: #8B3FF0;
  --pink: #E57CF7;
  --blue: #1F7CF0;
  --warn: #f0a24a;
  --danger: #ff6b6b;
  --brand: linear-gradient(100deg, #8B3FF0 0%, #E57CF7 35%, #3FE0F7 70%, #1F7CF0 100%);
  --focus: linear-gradient(135deg, #8B3FF0, #1F7CF0);
  --glass: rgba(28, 33, 38, .58);
  --glass-strong: rgba(24, 28, 33, .86);
  --edge: rgba(255, 255, 255, .10);
  --edge-hi: rgba(255, 255, 255, .22);
  --radius: 28px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: var(--accent-ink); }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 12px; }

/* ---------- Blurred, drifting backdrop (like the app's libraries) ---------- */
.backdrop {
  position: fixed; inset: -10vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45vmax 45vmax at 18% 12%, rgba(139, 63, 240, .55), transparent 70%),
    radial-gradient(40vmax 40vmax at 88% 30%, rgba(63, 224, 247, .30), transparent 70%),
    radial-gradient(42vmax 42vmax at 55% 105%, rgba(31, 124, 240, .50), transparent 70%),
    var(--bg);
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(4vmax, 3vmax) scale(1.08); } }

/* ---------- Header: brand, sections, language ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; gap: 24px; padding: 0 28px;
  background: rgba(10, 12, 15, .55); border-bottom: 1px solid var(--edge);
  backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand .word { font-weight: 800; font-size: 21px; letter-spacing: -.4px; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: flex; gap: 4px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  white-space: nowrap; padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.site-nav a:hover { color: var(--text); text-decoration: none; background: rgba(255, 255, 255, .08); }
.site-nav a.on { background: #fff; color: #000; }
/* Developer pages: set apart from the chapters by a thin line. */
.site-nav a.dev { margin-left: 10px; position: relative; }
.site-nav a.dev::before { content: ""; position: absolute; left: -7px; top: 25%; bottom: 25%; width: 1px; background: var(--edge); }
.lang { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--edge); flex: none; }
.lang a { padding: 4px 11px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.lang a:hover { color: var(--text); text-decoration: none; }
.lang a.on { background: var(--focus); color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--edge-hi); background: rgba(255, 255, 255, .08); color: var(--text); cursor: pointer; place-items: center; }
.menu-btn .ic { width: 24px; height: 24px; }

/* ---------- Page layout: chapter list + content ---------- */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; max-width: 1380px; margin: 0 auto; padding: 32px 28px 0; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 24px; }
.toc .grp { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 14px 12px 4px; }
.toc .grp:first-child { margin-top: 4px; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 12px; color: var(--muted); font-size: 15px; }
.toc a .n { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .08); color: var(--muted); }
.toc a:hover { background: rgba(255, 255, 255, .07); color: var(--text); text-decoration: none; }
.toc a.on { background: rgba(255, 255, 255, .12); color: var(--text); font-weight: 650; }
.toc a.on .n { background: var(--brand); color: var(--accent-ink); }
.toc a.home { margin-bottom: 4px; }
.toc a.home .ic { width: 22px; height: 22px; margin: 0 1px; }

main { min-width: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ---------- Glass panels ---------- */
.panel {
  position: relative; padding: 44px 48px 48px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--edge);
  backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .35);
}
.kicker { display: flex; align-items: center; gap: 12px; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.kicker .n { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--accent-ink); display: grid; place-items: center; letter-spacing: 0; font-size: 14px; }
h1, h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -1px; line-height: 1.1; margin: 12px 0 8px; font-weight: 800; }
.panel h2 { font-size: clamp(25px, 2.8vw, 34px); letter-spacing: -.6px; margin-top: 44px; }
.lead { color: var(--muted); font-size: 19px; margin: 0 0 28px; max-width: 800px; }
h3 { font-size: 21px; margin: 34px 0 12px; letter-spacing: -.2px; }
h3 small { font-weight: 500; color: var(--faint); font-size: 15px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin: 6px 0; }
li::marker { color: var(--accent); }
b, strong { font-weight: 650; }
code { font: 14.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255, 255, 255, .08); border: 1px solid var(--edge); padding: 1px 7px; border-radius: 6px; }
kbd { display: inline-block; padding: 1px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid var(--edge-hi); font: 600 13.5px/1.6 inherit; white-space: nowrap; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 44px; }
.cols > div > h3:first-child { margin-top: 6px; }
.small-note { color: var(--faint); font-size: 14px; margin-top: -4px; }
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; fill: currentColor; }

/* Tips */
.callout { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 18px 22px; border-radius: 20px; margin: 20px 0; background: rgba(63, 224, 247, .10); border: 1px solid rgba(63, 224, 247, .32); }
.callout .ci { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
.callout .ci .ic { width: 20px; height: 20px; }
.callout.warn { background: rgba(240, 162, 74, .12); border-color: rgba(240, 162, 74, .4); }
.callout.warn .ci { background: var(--warn); color: #2a1600; }
.callout b:first-child { display: block; }
.callout p:last-child { margin: 0; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps > li { counter-increment: s; position: relative; padding: 18px 20px 18px 74px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid var(--edge); margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 20px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; }
.steps ul { margin-top: 8px; }

/* Tables */
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin: 4px 0 16px; font-size: 16px; }
.table th { text-align: left; color: var(--faint); font-weight: 600; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; padding: 0 18px; }
.table td { background: rgba(255, 255, 255, .055); padding: 14px 18px; vertical-align: top; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.table td:first-child { border-left: 1px solid var(--edge); border-radius: 16px 0 0 16px; font-weight: 600; white-space: nowrap; }
.table td:last-child { border-right: 1px solid var(--edge); border-radius: 0 16px 16px 0; color: var(--muted); }
.table td.ico { font-size: 20px; width: 56px; text-align: center; }
.table td.ico .ic { width: 24px; height: 24px; margin: 0 2px; }
.table.ratings td.ico { width: 76px; padding: 12px 16px; vertical-align: middle; }
.table.ratings td { vertical-align: middle; }
.table.ratings td.ico img { width: 44px; height: 44px; max-width: none; object-fit: contain; display: block; margin: 0 auto; }

/* Settings rows (like the app's list rows) */
.rows { display: grid; gap: 10px; margin: 8px 0 18px; }
.srow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 22px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid var(--edge); transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s; outline: none; }
.srow .sicon { font-size: 22px; text-align: center; }
.srow .sicon .ic { width: 26px; height: 26px; }
.srow .stext b { display: block; font-size: 17px; }
.srow .stext span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.45; margin-top: 2px; }
.srow:hover, .srow:focus-visible { background: #fff; color: #000; transform: scale(1.025); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.srow:hover .stext span, .srow:focus-visible .stext span { color: #555; }
.srow:hover .sval, .srow:focus-visible .sval { color: #333; }
.sval { color: var(--muted); font-size: 15px; white-space: nowrap; }
.sval.danger { color: var(--danger); }
.switch { width: 58px; height: 34px; border-radius: 999px; background: rgba(140, 140, 140, .45); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch.on { background: linear-gradient(90deg, #8B3FF0, #3FE0F7); }
.switch.on::after { left: 28px; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 10px 0 22px; }
.tile { padding: 22px 24px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid var(--edge); }
.tile .ti { font-size: 28px; color: var(--accent); }
.tile .ti .ic { width: 32px; height: 32px; }
.tile b { display: block; font-size: 18px; margin: 8px 0 4px; }
.tile p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* Decision flowcharts (track selection) – the SVGs carry their own colors */
.flowcharts { display: grid; gap: 18px; margin: 10px 0 22px; max-width: 760px; }
.flow { margin: 0; padding: 20px 22px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid var(--edge); }
.flow figcaption { font-weight: 600; font-size: 18px; margin-bottom: 10px; }
.flow svg { display: block; width: 100%; height: auto; }

/* Playback modes */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 10px 0 20px; }
.mode { padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid var(--edge); }
.mode .dot { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; margin-bottom: 8px; }
.mode .dot .ic { width: 20px; height: 20px; }
.mode .dot.direct { background: rgba(47, 158, 90, .25); color: #4cd07d; }
.mode .dot.remux { background: rgba(42, 159, 196, .25); color: #5ccfee; }
.mode .dot.transcode { background: rgba(240, 162, 74, .25); color: var(--warn); }
.mode b { display: block; }
.mode span:not(.dot) { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* Remote */
.remote-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center; }
.remote-grid svg { width: 100%; max-width: 220px; display: block; margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6)); }

/* Release cards (like season / episode cards) */
.versions { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 10px; }
.ver { border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid var(--edge); overflow: hidden; outline: none; }
.ver .vart { position: relative; aspect-ratio: 16 / 8; padding: 18px 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.ver .vart::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .55)); }
.ver .vart * { position: relative; }
.ver .vno { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; opacity: .85; }
.ver .vname { font-size: 26px; font-weight: 800; letter-spacing: -.4px; line-height: 1.1; margin-top: 2px; }
.ver ul { margin: 0; padding: 16px 20px 18px 38px; font-size: 14.5px; color: var(--muted); }
.ver li { margin: 4px 0; }

/* Previous / next chapter */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 0; }
.pager a { display: block; padding: 18px 22px; border-radius: 20px; background: var(--glass); border: 1px solid var(--edge); color: var(--text); transition: transform .3s var(--ease), background .3s; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.pager a:hover, .pager a:focus-visible { text-decoration: none; transform: translateY(-3px); background: rgba(255, 255, 255, .12); }
.pager small { display: block; color: var(--faint); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pager b { font-size: 18px; }
.pager .next { text-align: right; grid-column: 2; }

/* ---------- Landing page ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 64px 0 40px; }
.hero .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.hero h1 { font-size: clamp(52px, 7.5vw, 100px); line-height: .98; letter-spacing: -2.5px; margin: 14px 0 16px; }
.hero h1 span { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.meta { color: var(--muted); font-size: 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.badge { border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 7px; padding: 1px 9px; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.hero p.lede { color: var(--muted); font-size: 19px; max-width: 560px; margin: 20px 0 0; }
.buttons { display: flex; gap: 14px; margin-top: 30px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; font-weight: 700; color: var(--text); background: rgba(255, 255, 255, .12); border: 1px solid var(--edge-hi); transition: transform .3s var(--ease), background .3s, box-shadow .3s; }
.btn .ic { width: 22px; height: 22px; }
.btn:hover, .btn:focus-visible { text-decoration: none; transform: scale(1.06); background: var(--focus); box-shadow: 0 16px 34px rgba(139, 63, 240, .45); outline: none; }
.btn.primary { background: var(--focus); }
/* Apple's official “Download on Apple TV” badge (www/assets/img), unchanged as Apple requires; only lifts on hover. */
.store { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--edge-hi); }
.store-note { color: var(--muted, rgba(255, 255, 255, .65)); font-size: .95rem; }
.store-badge { display: inline-flex; border-radius: 10px; transition: transform .3s var(--ease), box-shadow .3s; }
.store-badge img { display: block; height: 54px; width: auto; }
.store-badge:hover, .store-badge:focus-visible { transform: scale(1.06); box-shadow: 0 16px 34px rgba(139, 63, 240, .45); outline: none; }
.hero-art { position: relative; max-width: 560px; justify-self: center; width: 100%; }
.appicon { width: 100%; perspective: 1000px; animation: bob 7s ease-in-out infinite; }
.appicon .layers { position: relative; aspect-ratio: 5 / 3; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 80px rgba(139, 63, 240, .3); background: #1b1f7a; }
.appicon img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; transition: transform .35s var(--ease); will-change: transform; }
@keyframes bob { 50% { transform: translateY(-14px); } }

.shelf-title { font-size: 24px; font-weight: 800; letter-spacing: -.4px; margin: 34px 0 6px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; padding: 18px 0 20px; }
.lcard { color: var(--text); display: block; }
.lcard .art { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.lcard .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .45)); }
.lcard .art .ic { width: 60px; height: 60px; position: relative; z-index: 1; }
.lcard .art .num { position: absolute; left: 14px; bottom: 10px; z-index: 1; font-weight: 800; font-size: 13px; letter-spacing: .1em; opacity: .9; }
.lcard b { display: block; margin-top: 12px; font-size: 16px; }
.lcard small { color: var(--muted); font-size: 14px; }
.lcard:hover { text-decoration: none; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 10px 0 30px; }
.latest { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: center; }

/* tvOS-style focus: lift, tilt and sheen */
.tilt { transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .35s var(--ease); will-change: transform; position: relative; }
.tilt .sheen { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, .28), transparent 42%); z-index: 2; }
.focused .tilt, .tilt.focused { box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.focused .tilt .sheen, .tilt.focused .sheen { opacity: 1; }

/* Card gradients */
.g1 { background: linear-gradient(160deg, #3f7f8c, #142a33); }
.g2 { background: linear-gradient(160deg, #8c5a3f, #2a1712); }
.g3 { background: linear-gradient(160deg, #5a3f8c, #17122a); }
.g4 { background: linear-gradient(160deg, #3f8c5a, #122a19); }
.g5 { background: linear-gradient(160deg, #8c3f55, #2a1219); }
.g6 { background: linear-gradient(160deg, #7a7f3f, #262a12); }
.g7 { background: linear-gradient(160deg, #3f5a8c, #12192a); }
.g8 { background: linear-gradient(135deg, #8B3FF0, #E57CF7 40%, #3FE0F7 75%, #1F7CF0); }

/* Language chooser (root page) */
.choose { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px 16px; }
.choose img { width: 140px; height: 140px; }
.choose h1 { margin: 10px 0 4px; font-size: clamp(44px, 9vw, 72px); background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.choose p { color: var(--muted); }
.choose .buttons { justify-content: center; }

footer.site-footer { color: var(--faint); font-size: 14px; text-align: center; padding: 40px 16px 60px; }
footer.site-footer a { color: var(--muted); }

/* ---------- Narrow screens ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .site-header { padding: 0 16px; gap: 12px; }
  .brand img { width: 34px; height: 34px; }
  .lang { margin-left: auto; }
  .menu-btn { display: grid; }
  .site-nav { position: fixed; top: var(--header-h); left: 0; right: 0; display: none; flex-direction: column; gap: 2px; margin: 0; padding: 12px 16px 18px; background: #0e1014; border-bottom: 1px solid var(--edge); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-header.open .site-nav { display: flex; }
  /* A blurred header would show the page through the open menu (nested backdrop filter). */
  .site-header.open { background: #0b0d10; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-nav a { padding: 12px 16px; font-size: 17px; }
  .site-nav a.dev { margin: 10px 0 0; border-top: 1px solid var(--edge); border-radius: 0 0 10px 10px; padding-top: 18px; }
  .site-nav a.dev::before { display: none; }
  .layout, .wrap { padding-left: 16px; padding-right: 16px; }
  .layout { padding-top: 20px; }
  .panel { padding: 28px 20px 30px; border-radius: 22px; }
  .lead { font-size: 17px; }
  .hero { grid-template-columns: 1fr; padding: 32px 0 10px; gap: 10px; }
  .hero-art { max-width: 340px; order: -1; }
  .cols, .tiles, .remote-grid, .modes, .features, .latest { grid-template-columns: 1fr; }
  .srow { grid-template-columns: 34px minmax(0, 1fr); padding: 14px 16px; }
  .srow > :last-child:not(.stext) { grid-column: 2; justify-self: start; }
  .table td:first-child { white-space: normal; }
  .steps > li { padding-left: 64px; }
  .shelf { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .backdrop, .toc, .pager { display: none !important; }
  body { background: #fff; color: #000; }
  .layout { display: block; }
  .panel { background: none; box-shadow: none; border-color: #ccc; }
}
