:root {
  --ink: #07161c;          /* the dark teal behind the helmets */
  --ink-2: #10303b;
  --cyan: #0eccfe;         /* JustBOZ */
  --blue: #0040fa;         /* BOZ HUB */
  --orange: #fd8201;       /* BOZ */
  --mist: #e6f3f8;
  --paper: #fff;
  --quiet: #48626c;
  --line: #d3e2e9;
  --on-ink: #f3fbfe;
  --on-ink-quiet: #c6dbe4;
  --glass: rgb(226 239 245 / 0.86);
  --dark-glass: rgb(5 17 22 / 0.8);

  --display: 'Funnel Display', 'Trebuchet MS', sans-serif;
  --text: 'Funnel Sans', 'Segoe UI', system-ui, sans-serif;
  --gap: clamp(0.5rem, 1.1vw, 1rem);
  --pad: clamp(1.25rem, 6vw, 7rem);
  --frame-r: clamp(1.25rem, 2vw, 1.9rem);
  --bar-h: 4.25rem;
  --lift: 0 1.75rem 3.5rem -1.25rem rgb(8 50 68 / 0.2);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { position: relative; margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--text); overflow-x: clip; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
button, input { font: inherit; color: inherit; }
button, a, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--cyan); }
main:focus { outline: none; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 1.5rem; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 50; left: 1rem; top: -5rem; padding: 0.75rem 1rem; background: var(--paper); border-radius: 0.5rem; }
.skip:focus { top: 1rem; }

/* ---------- menu bar: floats over the top of every page ---------- */
.bar { position: absolute; z-index: 30; inset: calc(2 * var(--gap)) var(--pad) auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--bar-h); padding: 0.6rem 0.6rem 0.6rem 1.25rem; border-radius: 1.4rem; background: rgb(255 255 255 / 0.86); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1rem 2.5rem -1.25rem rgb(8 50 68 / 0.3); color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; font: 700 1.35rem/1 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.brand img { width: auto; height: 2.5rem; }
.bar nav { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.bar nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.bar nav a:hover { text-decoration: underline; }
.bar nav a[aria-current] { box-shadow: inset 0 -2px var(--ink); }
.bar .search { flex: 1; min-width: 0; max-width: 34rem; }

/* Two-part buttons: the label, then an icon on its own tile. */
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; padding: 0.3rem 0.3rem 0.3rem 1.1rem; border: 0; border-radius: 1rem; background: var(--ink); color: var(--on-ink); font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 0.18s, transform 0.12s var(--ease); }
.button:hover { background: var(--ink-2); }
.button:active { transform: scale(0.97); }
.tile { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 0.75rem; background: var(--cyan); color: var(--ink); transition: transform 0.2s var(--ease); }
.tile svg { width: 1.15rem; height: 1.15rem; }
.button:hover .tile { transform: scale(0.92); }
.button-plain { padding-inline: 1.25rem; }
.button-watch { min-height: 3.9rem; padding-left: 1.5rem; border-radius: 1.2rem; background: var(--cyan); color: var(--ink); font-size: 1.1875rem; }
.button-watch:hover { background: #6fe0ff; }
.button-watch .tile { width: 3.25rem; height: 3.25rem; border-radius: 0.95rem; background: var(--ink); color: var(--cyan); }

/* ---------- search ---------- */
.search { position: relative; }
.search-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.3rem 0.3rem 0.3rem 1rem; border: 1px solid #7f9aa6; border-radius: 0.9rem; background: var(--paper); color: var(--ink); }
.search-row:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.search-row svg { flex: none; }
.search input { flex: 1; width: 100%; min-width: 0; min-height: 2.75rem; border: 0; background: none; outline: none; appearance: none; text-overflow: ellipsis; }
.search input::placeholder { color: var(--quiet); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.search-row button { min-height: 2.75rem; padding: 0 1.1rem; border: 0; border-radius: 0.65rem; background: var(--cyan); color: var(--ink); font-weight: 600; cursor: pointer; transition: background-color 0.18s; }
.search-row button:hover { background: #6fe0ff; }

.search-hero { width: min(100%, 56rem); margin-inline: auto; padding: 0.5rem; border-radius: 1.6rem; background: rgb(3 12 16 / 0.86); color: var(--on-ink); text-align: center; }
.search-hero label { display: block; padding: 0.75rem 1rem 1rem; font-weight: 600; font-size: 1.1875rem; }
.search-hero .search-row { padding: 0.35rem 0.35rem 0.35rem 1.4rem; border-color: #6d8b97; border-radius: 1.2rem; background: #172a32; color: var(--on-ink); }
.search-hero .search-row:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan); }
.search-hero input { min-height: 3.9rem; font-size: 1.1875rem; }
.search-hero input::placeholder { color: var(--on-ink-quiet); }
.search-hero button { min-height: 4.1rem; padding-inline: clamp(1.1rem, 2.5vw, 2.1rem); border-radius: 0.95rem; font-size: 1.125rem; }

.suggest { position: absolute; z-index: 30; inset: calc(100% + 0.5rem) 0 auto; max-height: min(27rem, 60dvh); overflow-y: auto; overscroll-behavior: contain; padding: 0.4rem; border-radius: 1.1rem; background: var(--paper); color: var(--ink); text-align: left; box-shadow: 0 1.5rem 3.5rem rgb(3 12 16 / 0.4); }
.suggest a { display: grid; grid-template-columns: 7rem 1fr; align-items: center; gap: 1rem; padding: 0.45rem; border-radius: 0.75rem; text-decoration: none; }
.suggest a:hover, .suggest a[aria-selected='true'] { background: var(--mist); }
.suggest a[aria-selected='true'] { box-shadow: inset 0 0 0 2px var(--blue); }
.suggest img { width: 7rem; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0.5rem; background: var(--mist); }
.suggest strong { display: block; font-weight: 600; line-height: 1.3; }
.suggest small { color: var(--quiet); font-size: 0.9375rem; }

/* ---------- frames: rounded sections that fill the window ---------- */
.frame { position: relative; margin: var(--gap); border-radius: var(--frame-r); }
.dark { background: var(--ink); color: var(--on-ink); }
/* A dark frame takes its color from one of our thumbnails, blurred. The dark layer
   on top keeps text readable over any picture. Don't add transform, filter, z-index
   or isolation to a frame: that would trap the video that follows the page. */
.ambient { position: absolute; isolation: isolate; inset: 0; overflow: hidden; border-radius: inherit; background: var(--ink); pointer-events: none; }
.ambient img { position: absolute; inset: -12%; width: 124%; max-width: none; height: 124%; object-fit: cover; filter: blur(44px) saturate(2.4); }
.topic .ambient img { filter: blur(22px) saturate(2.4); }
.ambient::before, .ambient::after { content: ''; position: absolute; z-index: 1; inset: 0; }
.ambient::before { background: rgb(0 112 214 / 0.46); mix-blend-mode: color; }
.ambient::after { background: linear-gradient(180deg, rgb(7 22 28 / 0.6), rgb(7 22 28 / 0.76)); }
.ambient ~ :not(.floats, .topic-pic) { position: relative; }

/* ---------- home hero ---------- */
.hero { z-index: 2; display: flex; flex-direction: column; min-height: calc(100dvh - 2 * var(--gap)); padding: calc(var(--bar-h) + 2 * var(--gap)) calc(var(--pad) - var(--gap)) var(--gap); }
.wall { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: var(--ink); }
.wall-grid { position: absolute; left: 50%; top: 50%; width: max(112%, 78rem, 150vh); display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem; transform: translate(-50%, -50%) rotate(-9deg) scale(1.22); }
.wall-grid img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0.7rem; background: var(--ink-2); transition: opacity 0.16s linear; }
.wall-grid img.out { opacity: 0; }
.wall::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(7 22 28 / 0.66), rgb(7 22 28 / 0.8)); }
.hero-main { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(1.5rem, 4.5vh, 3.5rem); padding-block: clamp(2rem, 5vh, 4rem) clamp(1.5rem, 4vh, 3rem); }
.stagger span { display: block; }
.stagger span + span { text-align: right; }
.hero h1 { font-size: clamp(3.1rem, min(10.2vw, 19.5vh), 10.5rem); line-height: 1; letter-spacing: -0.05em; }
.examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.75rem; }
.examples a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.examples a:hover { color: var(--cyan); }

/* ---------- tops of the other pages ---------- */
.intro { display: grid; align-content: center; min-height: clamp(26rem, 58vh, 36rem); padding: calc(var(--bar-h) + 2 * var(--gap) + clamp(2rem, 5vh, 4rem)) var(--pad) clamp(2.5rem, 7vh, 5rem); overflow: clip; background: var(--mist) url('/assets/img/lines.svg') center / cover; text-align: center; }
.intro.dark { background: var(--ink); }
.intro-text { position: relative; display: grid; justify-items: center; gap: 1.1rem; width: min(100%, 44rem); margin-inline: auto; }
.intro h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); letter-spacing: -0.045em; }
.intro-text > p { max-width: 34ch; font-size: clamp(1.125rem, 1.7vw, 1.4375rem); line-height: 1.45; }
.intro .button { margin-top: 0.5rem; }
.floats img { position: absolute; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 1.1rem; box-shadow: 0 1.5rem 3rem -0.75rem rgb(3 20 28 / 0.45); }
.floats img:nth-child(1) { left: 3.5%; top: 31%; width: 16%; }
.floats img:nth-child(2) { right: 3.5%; top: 27%; width: 18%; }
.floats img:nth-child(3) { left: 8%; bottom: 10%; width: 12.5%; }
.floats img:nth-child(4) { right: 9%; bottom: 11%; width: 11.5%; }
.helmets { display: flex; justify-content: center; gap: 0.75rem; }
.helmets img { width: auto; height: clamp(6rem, 13vh, 9rem); }
.helmets img:nth-child(2) { order: -1; margin-top: 1.5rem; }
.helmets img:nth-child(3) { margin-top: 1.5rem; }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 8vw, 7.5rem) var(--pad) 0; }
.section-head { display: grid; justify-items: center; gap: 0.35rem; margin-bottom: clamp(1.75rem, 3.5vw, 3.25rem); text-align: center; }
.section h2, .featured h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.04em; }
.section-head a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.topic { position: relative; display: flex; flex-direction: column; min-height: clamp(11rem, 17vw, 15rem); overflow: hidden; padding: 1.25rem 1.4rem; border-radius: var(--frame-r); background: var(--ink); color: var(--on-ink); text-decoration: none; }
.topics li:first-child { grid-column: span 2; }
.topic strong { position: relative; font: 500 clamp(1.5rem, 2.2vw, 2.25rem)/1.08 var(--display); letter-spacing: -0.035em; }
.topic > span { position: relative; margin-top: 0.35rem; font-variant-numeric: tabular-nums; }
.topic .topic-pic { position: absolute; right: -1.25rem; bottom: -1.1rem; width: min(64%, 17rem); height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0.9rem; transform: rotate(-5deg); transition: transform 0.35s var(--ease); }
.topic:hover .topic-pic { transform: rotate(-2deg) translate(-0.5rem, -0.5rem); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); gap: clamp(1rem, 1.6vw, 1.5rem); }
.card { display: flex; flex-direction: column; padding: 0.5rem; border-radius: 1.5rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--lift); transition: transform 0.25s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card a { display: block; flex: 1; border-radius: 1.1rem; text-decoration: none; }
.card-img { position: relative; display: block; overflow: hidden; border-radius: 1.1rem; background: var(--mist); }
.card-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.time { position: absolute; right: 0.5rem; bottom: 0.5rem; padding: 0.1rem 0.5rem; border-radius: 0.5rem; background: var(--ink); color: var(--on-ink); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.section .card :is(h2, h3), .featured .card h3 { margin: 1rem 0.75rem 1.25rem; font: 600 1.125rem/1.35 var(--text); letter-spacing: -0.005em; text-wrap: pretty; }
.card a:hover :is(h2, h3) { text-decoration: underline; text-underline-offset: 0.2em; }
.channel { display: flex; align-items: center; gap: 0.5rem; padding: 0 0.75rem 0.65rem; color: var(--quiet); font-size: 1rem; }
.channel::before { content: ''; width: 0.6rem; height: 0.85rem; background: var(--cyan); clip-path: polygon(50% 0, 100% 25%, 85% 65%, 50% 100%, 15% 65%, 0 25%); }
[data-channel='bozhub'] .channel::before { background: var(--blue); }
[data-channel='boz'] .channel::before { background: var(--orange); }

/* ---------- featured row on the homepage ---------- */
.featured { margin-top: clamp(4rem, 8vw, 7.5rem); padding-block: clamp(3rem, 7vw, 6rem); }
.featured .section-head { padding-inline: var(--pad); }
.rail { display: flex; gap: clamp(0.75rem, 1.4vw, 1.25rem); padding: 0.5rem calc(var(--pad) - var(--gap)) 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: calc(var(--pad) - var(--gap)); overscroll-behavior-x: contain; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { flex: 0 0 min(80%, 25rem); scroll-snap-align: start; background: var(--dark-glass); box-shadow: none; }
.rail .card h3 { font-size: 1.25rem; }
.rail .channel { color: var(--on-ink-quiet); }
.rail [data-channel='bozhub'] .channel::before { background: #5c86ff; }
.rail-nav { display: flex; justify-content: center; gap: 0.5rem; }
.rail-nav button { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 0; border-radius: 1rem; background: var(--glass); color: var(--ink); cursor: pointer; transition: background-color 0.18s; }
.rail-nav button:hover { background: var(--cyan); }
.rail-nav button:disabled { opacity: 0.4; background: var(--glass); cursor: default; }

/* ---------- channels ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.chan { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: clamp(1rem, 2vw, 2rem); padding: clamp(1.25rem, 2.2vw, 2.25rem); border-radius: var(--frame-r); }
.chan > img { width: auto; height: clamp(10rem, 17vw, 17rem); }
.chan h3 { font-size: clamp(1.75rem, 2.6vw, 2.6rem); letter-spacing: -0.04em; overflow-wrap: normal; }
.chan h3 a { text-decoration: none; }
.chan h3 a:hover { text-decoration: underline; }
.chan p { margin: 0.5rem 0 1.25rem; }
.chan-justboz { background: var(--cyan); }
.chan-bozhub { background: var(--blue); color: #fff; }
.chan-boz { background: var(--orange); }
:is(.chan, .intro-chan) :focus-visible { outline-color: var(--ink); }
:is(.chan, .intro-chan).chan-bozhub :focus-visible { outline-color: #fff; }
.intro-chan { color: var(--ink); }
.intro-chan.chan-justboz { background: var(--cyan); }
.intro-chan.chan-bozhub { background: var(--blue); color: #fff; }
.intro-chan.chan-boz { background: var(--orange); }
.intro-helmet { position: absolute; left: clamp(1rem, 7vw, 9rem); bottom: -14%; width: auto; max-width: none; height: 92%; transform: rotate(-9deg); }
.intro-chan .floats img:nth-child(1) { left: auto; right: 4%; top: 24%; width: 20%; }
.intro-chan .floats img:nth-child(2) { right: 11%; top: auto; bottom: 9%; width: 15%; }

/* ---------- video page ---------- */
.watch { padding: calc(var(--bar-h) + 2 * var(--gap) + clamp(1.75rem, 4.5vh, 2.75rem)) var(--pad) clamp(2rem, 5vw, 4.5rem); }
.watch-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 1fr); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: start; }
.watch h1 { max-width: 20ch; font-size: clamp(2.1rem, 4.2vw, 4.25rem); letter-spacing: -0.04em; line-height: 1.04; }
/* The slot keeps its space, so the page doesn't jump when the video follows the
   scroll. Nothing may cover a YouTube player: its buttons sit in a bar above it,
   and the glass border is drawn around it, never on top. */
.player-slot { position: relative; grid-column: 1 / -1; width: min(100%, calc(58dvh * 16 / 9)); min-height: 200px; margin-inline: auto; aspect-ratio: 16 / 9; }
.player-slot::before { content: ''; position: absolute; inset: -0.6rem; border-radius: 1.1rem; background: rgb(226 239 245 / 0.3); box-shadow: 0 2rem 5rem rgb(3 12 16 / 0.45); }
.player-dock { position: relative; width: 100%; height: 100%; }
.player { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; background: var(--ink-2); }
.player-bar { display: none; }
.docked .player-dock { position: fixed; z-index: 40; right: var(--gap); bottom: var(--gap); width: 25rem; height: auto; background: var(--ink); color: var(--on-ink); box-shadow: 0 1rem 2.5rem rgb(3 12 16 / 0.35); }
.docked .player { height: auto; aspect-ratio: 16 / 9; }
.docked .player-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 0.9rem; }
.player-bar a, .player-bar button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
body.has-dock { padding-bottom: 19rem; }
html:has(body.has-dock) { scroll-padding-bottom: 19rem; }
.watch-side { display: grid; gap: 1rem; padding: clamp(1.1rem, 1.8vw, 1.75rem); border-radius: 1.6rem; background: var(--glass); color: var(--ink); }
.watch-side :focus-visible { outline-color: var(--blue); }
.watch-side > p { font-size: 1.125rem; }
.watch-side .button-watch { margin-top: 0.4rem; }
.by { display: flex; align-items: center; gap: 0.9rem; }
.by img { width: auto; height: 3.25rem; }
.by p { display: grid; line-height: 1.35; }
.by time { color: #35505b; white-space: nowrap; }
.by a { display: inline-flex; align-items: center; min-height: 2.75rem; margin-left: auto; }

.crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: flex; align-items: center; min-height: 2.75rem; }
.crumbs li + li::before { content: '/'; margin-inline: 0.6rem; opacity: 0.6; }
.crumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---------- written guides ---------- */
.guide-wrap { display: grid; grid-template-columns: minmax(0, 42rem); gap: 1.5rem clamp(2rem, 5vw, 6rem); align-items: start; }
.toc { padding: 1.25rem 1.5rem; border-radius: 1.4rem; background: var(--mist); }
.toc p { font-weight: 600; }
.toc a { display: flex; align-items: center; min-height: 2.75rem; line-height: 1.25; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc li + li { border-top: 1px solid #c3d9e3; }
.guide { font-size: 1.125rem; line-height: 1.65; }
.guide > h2:first-child { margin-top: clamp(1rem, 2vw, 2rem); }
.guide h2 { margin: clamp(3rem, 5vw, 4.5rem) 0 1.1rem; font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.guide p + p { margin-top: 1rem; }
.answer { padding: clamp(1.25rem, 2.4vw, 2rem); border-radius: 1.6rem; background: #cfefff; box-shadow: var(--lift); }
.answer svg { margin-bottom: 0.75rem; }
.answer p { font-size: clamp(1.1875rem, 1.7vw, 1.4375rem); line-height: 1.5; }
.guide ol, .guide ul { margin: 1.25rem 0; padding: 0; list-style: none; }
.guide ol { display: grid; gap: 0.6rem; counter-reset: step; }
.guide ol > li { position: relative; counter-increment: step; min-height: 3.95rem; padding: 1.1rem 1.25rem 1.1rem 4.35rem; border-radius: 1.2rem; box-shadow: 0 0 0 1px var(--line), var(--lift); line-height: 1.5; }
.guide ol > li::before { content: counter(step); position: absolute; left: 0.6rem; top: 0.6rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.8rem; background: var(--ink); color: var(--cyan); font: 500 1.25rem/1 var(--display); }
.guide ul:not(.sources) > li { position: relative; padding: 0.85rem 0 0.85rem 1.75rem; border-top: 1px solid var(--line); }
.guide ul:not(.sources) > li::before { content: ''; position: absolute; left: 0.15rem; top: 1.3rem; width: 0.7rem; height: 1rem; background: var(--cyan); clip-path: polygon(50% 0, 100% 25%, 85% 65%, 50% 100%, 15% 65%, 0 25%); }
.guide a { overflow-wrap: anywhere; }
.guide .table { overflow-x: auto; margin: 1.25rem 0; padding: 0.35rem 1.25rem; border-radius: 1.4rem; box-shadow: 0 0 0 1px var(--line), var(--lift); }
.guide table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; text-align: left; }
.guide th, .guide td { padding: 0.85rem 1rem 0.85rem 0; vertical-align: top; }
.guide th { white-space: nowrap; }
.guide td { border-top: 1px solid var(--line); }
.guide td:first-child { font-weight: 600; }
.guide details { margin-top: 0.6rem; border-radius: 1.2rem; box-shadow: 0 0 0 1px var(--line), var(--lift); }
.guide summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; padding: 0.6rem 0.6rem 0.6rem 1.25rem; border-radius: 1.2rem; font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary h3 { font: inherit; letter-spacing: 0; }
.guide details[open] .tile svg { transform: rotate(45deg); }
.guide details p { padding: 0 1.25rem 1.25rem; }
.made { margin-top: clamp(3rem, 5vw, 4.5rem); padding: clamp(1.25rem, 2.4vw, 2rem); border-radius: 1.6rem; background: var(--mist); font-size: 1rem; }
.guide .made h2 { margin: 0 0 0.75rem; font-size: 1.5rem; letter-spacing: -0.02em; }
.guide .sources { margin: 0.75rem 0 0; }
.sources a { display: inline-block; padding-block: 0.35rem; }

.ad { display: grid; align-content: start; justify-items: center; gap: 0.35rem; min-height: 19rem; margin: clamp(3rem, 5vw, 4.5rem) 0; padding: 0.5rem; background: var(--mist); color: var(--quiet); font-size: 0.875rem; }
.ad ins { width: 100%; }

/* ---------- text pages and results ---------- */
.group + .group { margin-top: clamp(4rem, 7vw, 6.5rem); }
.results .section > .button { display: flex; width: fit-content; margin: 2.5rem auto 0; }
.results .section { min-height: 24rem; }
.prose { width: min(100% - 2 * var(--gap), 52rem); margin: clamp(-5rem, -5vw, -2.5rem) auto 0; position: relative; padding: clamp(1.5rem, 5vw, 4rem); border-radius: var(--frame-r); background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--lift); font-size: 1.125rem; line-height: 1.65; }
.prose h2 { margin: 2.75rem 0 0.75rem; font-size: clamp(1.5rem, 2.2vw, 2rem); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose :is(p, ul) { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose li + li { margin-top: 0.4rem; }
.intro-prose { padding-bottom: clamp(6rem, 11vw, 9rem); }

/* ---------- footer ---------- */
.footer { margin-top: clamp(5rem, 10vw, 9rem); padding: clamp(2.5rem, 6vw, 5.5rem) calc(var(--pad) - var(--gap)) var(--gap); }
.footer h2 { font-size: clamp(3rem, 9vw, 8.5rem); line-height: 1; letter-spacing: -0.05em; }
.footer .search { z-index: 2; margin-block: clamp(2rem, 5vw, 4rem); }
.foot-panels { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(16rem, 1fr); gap: 0.4rem; }
.foot-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: clamp(1.25rem, 2.6vw, 2.5rem); border-radius: var(--frame-r); background: var(--glass); color: var(--ink); }
.foot-links :focus-visible { outline-color: var(--blue); }
.foot-links p { font-weight: 600; }
.foot-links a { display: flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-links .legal { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid #a9c3cf; font-size: 0.9375rem; font-weight: 400; }
.foot-sub { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: clamp(1.25rem, 2vw, 2rem); border-radius: var(--frame-r); background: var(--dark-glass); }
.foot-sub img { width: auto; height: 10rem; align-self: center; }
.foot-sub .button { background: var(--glass); color: var(--ink); }
.foot-sub .button:hover { background: #fff; }
.foot-sub p { font: 500 1.5rem/1.15 var(--display); letter-spacing: -0.03em; }

/* ---------- smaller screens ---------- */
@media (max-width: 75rem) {
  .bar-search nav { display: none; }
}
@media (max-width: 68rem) {
  .channels { grid-template-columns: 1fr; }
  .chan > img { height: 10rem; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .foot-panels { grid-template-columns: minmax(0, 1fr); }
  .foot-sub { flex-direction: row; align-items: center; }
  .foot-sub img { height: 5rem; }
}
@media (max-width: 60rem) {
  /* No room at the sides, so the pictures sit in a row under the text. */
  .floats { position: relative; display: flex; justify-content: center; gap: 0.6rem; margin-top: 2rem; }
  .floats img, .intro-chan .floats img { position: static; flex: 0 1 11rem; width: 30%; min-width: 0; border-radius: 0.8rem; }
  .floats img:nth-child(n + 4) { display: none; }
  .intro-helmet { position: static; height: 8rem; margin: 0 auto 0.5rem; transform: none; }
  .watch-main { grid-template-columns: minmax(0, 1fr); }
  .watch h1 { max-width: none; }
  .watch-side .button-watch { order: -1; margin: 0; }
}
@media (max-width: 44rem) {
  :root { --bar-h: 3.75rem; }
  body:has(> .bar-search) { --bar-h: 7.4rem; }
  .bar { inset-inline: calc(2 * var(--gap)); gap: 0.6rem 0.75rem; padding: 0.4rem 0.4rem 0.4rem 0.85rem; border-radius: 1.1rem; }
  .bar nav { display: none; }
  .bar-search { flex-wrap: wrap; }
  .bar-search .search { order: 3; flex: 1 0 100%; margin-left: -0.45rem; }
  .search-hero label { padding-block: 0.6rem 0.75rem; font-size: 1.0625rem; }
  .search-hero .search-row { gap: 0.5rem; padding-left: 0.85rem; }
  .search-hero input { min-height: 3.25rem; font-size: 1.0625rem; }
  .search-hero button { min-height: 3.25rem; padding-inline: 0.95rem; font-size: 1rem; }
  .hero h1 { font-size: clamp(2.6rem, 14.2vw, 6rem); }
  .wall-grid { width: max(62rem, 165vh); transform: translate(-50%, -50%) rotate(-9deg) scale(1.3); }
  .suggest a { grid-template-columns: 5.5rem 1fr; gap: 0.75rem; }
  .suggest img { width: 5.5rem; }
  .intro:not(.dark, .intro-chan) { min-height: 0; background-position: 4% 50%; background-size: auto 150%; }
  .by { gap: 0.6rem; }
  .topic { min-height: 10.5rem; padding: 1rem 1.1rem; }
  .topic .topic-pic { width: 78%; }
  .topics li:first-child .topic-pic { width: 56%; }
  .watch-side .button-watch { justify-self: stretch; }
  .guide .table { padding: 0 1.1rem; }
  .guide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .guide tr { display: block; padding: 0.9rem 0; }
  .guide tr + tr { border-top: 1px solid var(--line); }
  .guide td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.2rem 0; border: 0; }
  .guide td::before { content: attr(data-label); color: var(--quiet); }
  .guide td:first-child { display: block; }
  .guide td:first-child::before { content: none; }
  .foot-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .foot-sub { flex-wrap: wrap; }
  .foot-sub p { flex: 1; }
  .foot-sub .button { flex: 1 0 100%; }
}

/* Wide screens: the page links stay beside the guide, above the video. */
@media (min-width: 75.01rem) {
  .guide-wrap { grid-template-columns: minmax(0, 42rem) minmax(0, 25rem); justify-content: space-between; }
  .guide { grid-column: 1; }
  .toc { grid-area: 1 / 2 / span 2; position: sticky; top: 1.5rem; max-height: calc(100dvh - 20.5rem); overflow-y: auto; }
}
/* No room beside the text: the video follows along the top instead. */
@media (max-width: 75rem) {
  .docked .player-dock { inset: 0 0 auto; width: 100%; }
  .docked .player, .docked .player-bar { width: min(100%, 30rem); margin-inline: auto; }
  body.has-dock { padding-bottom: 0; }
  html:has(body.has-dock) { scroll-padding: 20.5rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
