/* LEARNLIB_1109 · learn.css — the Learn library's own pieces inside nourva.ai's docs frame. It stands on the docs' sheet
   (its --docs-* colours, its shell, index, search and reading typography) and adds what a film library needs: the home's
   art and cards, the film page's player (chapters on its bar, subtitles in 20 languages drawn by the page, a corner
   player while reading), the chapters under the film, the transcript, the guides to read and the next film; and the two
   mockups of the docs with their films. Buttons follow the Capsule rules: pills, one ink primary per card (white on the
   dark appearance, ink on the light one), tint · ghost · text secondaries, heights 52/44/36, chips 30, tags 22; no green.
   The player keeps the film's own left-to-right time in every language; its words take the page's language. */

/* ── shared ─────────────────────────────────────────────────────────────────────────────────── */
.nv[data-page=home] .learn-shell { --learn-gold: #e8b68e; --learn-ink: #101014; --learn-paper: #f6f4f2; }
.nv[data-page=home] .learn-shell :is(time, .learn-num) {
  font-family: var(--font-inter), sans-serif; font-variant-numeric: tabular-nums; unicode-bidi: isolate;
}
.nv[data-page=home] .learn-shell img { max-width: 100%; }
.nv[data-page=home] .learn-shell :is(h1, h2, h3, h4) { font-family: inherit; }
.nv[data-page=home] div.nv[dir=rtl] .learn-shell .docs-arrow,
div.nv[data-page=home][dir=rtl] .learn-shell .docs-arrow { transform: rotate(180deg); }
.nv[data-page=home] .learn-shell .learn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* buttons — Capsule */
.nv[data-page=home] .learn-btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--h); padding: 0 20px; border: 1px solid transparent; border-radius: 999px;
  color: var(--docs-ink); background: transparent; cursor: pointer; white-space: nowrap; text-decoration: none;
  font: 500 13px/1.25 var(--nourva-type), var(--font-inter), sans-serif;
  transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.nv[data-page=home] .learn-btn svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.nv[data-page=home] .learn-btn[data-size=s] { --h: 36px; padding: 0 15px; font-size: 12px; gap: 7px; }
.nv[data-page=home] .learn-btn[data-size=s] svg { width: 14px; height: 14px; }
.nv[data-page=home] .learn-btn[data-size=l] { --h: 52px; padding: 0 26px; font-size: 14px; }
.nv[data-page=home] .learn-btn[data-role=primary] { background: var(--learn-paper); border-color: var(--learn-paper); color: var(--learn-ink); }
.nv[data-page=home] .learn-btn[data-role=primary]:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px -14px #000c; }
.nv[data-page=home] .nourva-space[data-appearance=light] .learn-btn[data-role=primary] { background: var(--learn-ink); border-color: var(--learn-ink); color: #fff; }
.nv[data-page=home] .nourva-space[data-appearance=light] .learn-btn[data-role=primary]:hover { background: #24242b; box-shadow: 0 12px 28px -16px #1018; }
.nv[data-page=home] .learn-btn[data-role=tint] { background: color-mix(in srgb, var(--docs-ink) 6%, transparent); border-color: var(--docs-line); }
.nv[data-page=home] .learn-btn[data-role=tint]:hover { background: color-mix(in srgb, var(--docs-ink) 11%, transparent); }
.nv[data-page=home] .learn-btn[data-role=ghost] { border-color: color-mix(in srgb, var(--docs-ink) 22%, transparent); }
.nv[data-page=home] .learn-btn[data-role=ghost]:hover { background: color-mix(in srgb, var(--docs-ink) 6%, transparent); }
.nv[data-page=home] .learn-btn[data-role=text] { padding-inline: 10px; color: var(--docs-muted); }
.nv[data-page=home] .learn-btn[data-role=text]:hover { color: var(--docs-ink); }
.nv[data-page=home] .learn-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 30px; max-width: 100%; padding: 5px 12px 5px 10px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--docs-accent) 36%, transparent);
  background: color-mix(in srgb, var(--docs-accent) 9%, transparent); color: var(--docs-ink); text-align: start;
  font: 500 11.5px/1.2 var(--nourva-type), var(--font-inter), sans-serif; cursor: pointer; white-space: normal;
  transition: background .2s, border-color .2s, transform .2s;
}
.nv[data-page=home] .learn-chip > span { min-width: 0; overflow-wrap: anywhere; }
.nv[data-page=home] .learn-chip time { flex: none; white-space: nowrap; }
.nv[data-page=home] .learn-chip:hover { background: color-mix(in srgb, var(--docs-accent) 17%, transparent); border-color: color-mix(in srgb, var(--docs-accent) 60%, transparent); }
.nv[data-page=home] .learn-chip svg { width: 11px; height: 11px; fill: var(--docs-accent); flex: none; }
.nv[data-page=home] .learn-chip[aria-current=true] { border-color: var(--docs-accent); }
.nv[data-page=home] .learn-tag {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px;
  font: 500 10.5px/1 var(--nourva-type), var(--font-inter), sans-serif; letter-spacing: .02em; white-space: nowrap;
  color: var(--docs-accent); background: color-mix(in srgb, var(--docs-accent) 12%, transparent);
}
div.nv[data-page=home][dir=rtl] .learn-tag { letter-spacing: 0; }
.nv[data-page=home] .learn-tag[data-tone=quiet] { color: var(--docs-muted); background: var(--docs-wash); }

/* on a picture: the planned badge and the length */
.nv[data-page=home] .learn-badge, .nv[data-page=home] .learn-length {
  position: absolute; z-index: 1; display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px;
  color: #fff; background: #0b0c10b8; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 500 10.5px/1 var(--nourva-type), var(--font-inter), sans-serif; white-space: nowrap; pointer-events: none;
}
/* the posters are never mirrored and carry the wordmark top right: the badge keeps the top left in every direction */
.nv[data-page=home] .learn-badge { top: 10px; left: 10px; }
.nv[data-page=home] .learn-length { inset-block-end: 10px; inset-inline-end: 10px; font-family: var(--font-inter), sans-serif; font-variant-numeric: tabular-nums; }
.nv[data-page=home] .learn-play-disc {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 999px;
  display: grid; place-items: center; background: var(--learn-paper); color: var(--learn-ink);
  box-shadow: 0 16px 40px -10px #000d; transition: transform .25s;
}
.nv[data-page=home] .learn-play-disc svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; }
.nv[data-page=home] a:hover > .learn-play-disc, .nv[data-page=home] a:hover .learn-play-disc { transform: scale(1.08); }

/* the section headings the Learn pages add to the docs' own */
.nv[data-page=home] .learn-block { margin-top: 46px; }
.nv[data-page=home] .learn-block > .docs-section-heading { margin-bottom: 18px; }

/* the index: films with their length */
.nv[data-page=home] .learn-shell .docs-index-group a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.nv[data-page=home] .learn-shell .docs-index-group a small { color: var(--docs-dim); font: 10.5px/1 var(--font-inter), sans-serif; font-variant-numeric: tabular-nums; flex: none; }
.nv[data-page=home] .learn-shell .docs-index-group a[data-planned] small { font-family: inherit; }
.nv[data-page=home] .learn-index-docs { display: block; margin: 14px 11px 0; padding-top: 14px; border-top: 1px solid var(--docs-line); color: var(--docs-muted); font-size: 11px; text-decoration: none; }
.nv[data-page=home] .learn-index-docs:hover { color: var(--docs-ink); }

/* ── the home ───────────────────────────────────────────────────────────────────────────────── */
.nv[data-page=home] .learn-art { perspective: 800px; pointer-events: none; isolation: isolate; direction: ltr; height: 190px; position: relative; }
.nv[data-page=home] .learn-art::before { content: ""; position: absolute; inset: 18% -12% -6%; filter: blur(16px); background: radial-gradient(#c0886044, #0000 68%); }
.nv[data-page=home] .learn-art-frame {
  position: absolute; inset: 44px 6px 38px 22px; border-radius: 12px; border: 1px solid #ecd3ba3a;
  background: linear-gradient(135deg, #f1ddc31a, #d19d630a 45%, #12182078);
  box-shadow: 0 14px 25px #0002, inset 0 1px #fff1;
  transform: rotateY(-26deg) rotate(-8deg); animation: 8s ease-in-out infinite alternate learn-breathe;
}
.nv[data-page=home] .learn-art-frame:nth-child(2) { background: #be8e5922; transform: translate(-14px, -12px) rotateY(-26deg) rotate(-8deg); animation-delay: -2s; }
.nv[data-page=home] .learn-art-frame:nth-child(3) { background: linear-gradient(135deg, #d7bd9f2a, #38302a9c 70%); transform: translate(-28px, -24px) rotateY(-26deg) rotate(-8deg); animation-delay: -4s; }
.nv[data-page=home] .learn-art-frame i { position: absolute; left: 12%; right: 12%; bottom: 14%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #e9c39bcc 0 42%, #ffffff26 42%); }
.nv[data-page=home] .learn-art-frame b { position: absolute; bottom: calc(14% - 3px); width: 1px; height: 8px; background: #ecd3ba70; }
.nv[data-page=home] .learn-art-frame b:nth-of-type(1) { left: 30%; } .nv[data-page=home] .learn-art-frame b:nth-of-type(2) { left: 52%; } .nv[data-page=home] .learn-art-frame b:nth-of-type(3) { left: 71%; }
.nv[data-page=home] .learn-art-frame em { position: absolute; left: 50%; top: 42%; width: 0; height: 0; margin: -9px 0 0 -5px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #f3e2cfd9; filter: drop-shadow(0 0 10px #e9ad7e88); }
.nv[data-page=home] .learn-art-frame:not(:nth-child(3)) em { display: none; }
@keyframes learn-breathe { to { translate: 0 -5px; } }

/* the featured film: the poster and its words side by side, its chapters across the card under them */
.nv[data-page=home] .learn-feature {
  display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 0;
  border: 1px solid var(--docs-line); border-radius: 18px; overflow: hidden;
  background: linear-gradient(140deg, color-mix(in srgb, var(--docs-accent) 7%, transparent), #0000 60%);
}
.nv[data-page=home] .learn-feature-poster { position: relative; display: block; aspect-ratio: 16 / 9; background: #050506; overflow: hidden; }
.nv[data-page=home] .learn-feature-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.nv[data-page=home] .learn-feature-poster:hover img { transform: scale(1.025); filter: brightness(1.06); }
.nv[data-page=home] .learn-feature-poster .learn-play-disc { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
.nv[data-page=home] .learn-feature-poster .learn-play-disc svg { width: 24px; height: 24px; }
.nv[data-page=home] .learn-feature-body { display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 24px 28px; min-width: 0; }
.nv[data-page=home] .learn-card-kicker { margin: 0 0 9px; color: var(--docs-accent); font-size: 11px; line-height: 1.6; }
.nv[data-page=home] .learn-feature-body h3 { margin: 0 0 6px; font-size: 22px; font-weight: 450; letter-spacing: -.02em; line-height: 1.3; }
.nv[data-page=home] .learn-feature-body h3 a { color: inherit; text-decoration: none; }
.nv[data-page=home] .learn-feature-body h3 a:hover { color: var(--docs-accent); }
.nv[data-page=home] .learn-feature-sub { margin: 0 0 20px; color: var(--docs-muted); font-size: 13px; line-height: 1.75; }
.nv[data-page=home] .learn-mini {
  grid-column: 1 / -1; list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px;
  border-top: 1px solid var(--docs-line);
}
.nv[data-page=home] .learn-mini a {
  display: grid; gap: 4px; height: 100%; padding: 11px 14px; border-radius: 11px; color: var(--docs-muted); text-decoration: none;
  font-size: 12.5px; line-height: 1.55; transition: background .2s, color .2s;
}
.nv[data-page=home] .learn-mini a:hover { background: var(--docs-wash); color: var(--docs-ink); }
.nv[data-page=home] .learn-mini small { display: flex; align-items: baseline; gap: 9px; color: var(--docs-accent); font-size: 11px; }
.nv[data-page=home] .learn-mini b { font-weight: 500; }
.nv[data-page=home] .learn-mini time { opacity: .75; }
.nv[data-page=home] .learn-feature-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.nv[data-page=home] .learn-feature-foot small { color: var(--docs-dim); font-size: 11px; }

/* every film */
.nv[data-page=home] .learn-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; }
.nv[data-page=home] .learn-card { display: flex; flex-direction: column; gap: 12px; color: var(--docs-ink); text-decoration: none; height: 100%; }
.nv[data-page=home] .learn-card-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 13px; overflow: hidden; background: #050506;
  box-shadow: 0 0 0 1px var(--docs-line); transition: transform .25s, box-shadow .25s;
}
.nv[data-page=home] .learn-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.nv[data-page=home] .learn-card:hover .learn-card-thumb { transform: translateY(-2px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--docs-accent) 45%, transparent), 0 18px 34px -20px #000c; }
.nv[data-page=home] .learn-card:hover .learn-card-thumb img { transform: scale(1.03); filter: brightness(1.08); }
.nv[data-page=home] .learn-card-text { display: grid; gap: 4px; padding: 0 2px; }
.nv[data-page=home] .learn-card-text strong { font-size: 14px; font-weight: 500; line-height: 1.5; }
.nv[data-page=home] .learn-card:hover .learn-card-text strong { color: var(--docs-accent); }
.nv[data-page=home] .learn-card-text span { color: var(--docs-muted); font-size: 12px; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nv[data-page=home] .learn-card-text small { color: var(--docs-dim); font-size: 11px; line-height: 1.6; }
.nv[data-page=home] .learn-lookup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.nv[data-page=home] .learn-lookup .docs-start-card { min-height: 128px; }
.nv[data-page=home] .learn-lookup .docs-start-card p { margin: 0 0 14px; color: var(--docs-muted); font-size: 12px; line-height: 1.75; }

/* ── the film page ──────────────────────────────────────────────────────────────────────────── */
.nv[data-page=home] .learn-film { max-width: 1120px; margin: auto; padding: 30px clamp(20px, 3.4vw, 52px) 64px; }
.nv[data-page=home] .learn-film-head { max-width: 820px; }
.nv[data-page=home] .learn-film-head h1 {
  margin: 0 0 10px; font-size: clamp(30px, 3.3vw, 46px); font-weight: 400; letter-spacing: -.045em; line-height: 1.16; outline: none; text-wrap: balance;
}
.nv[data-page=home] .learn-film-sub { margin: 0 0 10px; color: var(--docs-ink); font-size: 16px; line-height: 1.6; opacity: .88; }
.nv[data-page=home] .learn-film-desc { margin: 0 0 18px; max-width: 660px; color: var(--docs-muted); font-size: 13.5px; line-height: 1.9; text-wrap: pretty; }
.nv[data-page=home] .learn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--docs-dim); font-size: 11.5px; line-height: 1.6; }
.nv[data-page=home] .learn-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.nv[data-page=home] .learn-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nv[data-page=home] .learn-meta .docs-copy { margin-inline-start: auto; }
div.nv[data-page=home][dir=rtl] .learn-film-head h1 { letter-spacing: 0; line-height: 1.6; }
div.nv[data-page=home][dir=rtl] .learn-shell .docs-overview h1 { letter-spacing: 0; }

/* the player */
.nv[data-page=home] .learn-player { position: relative; margin: 26px 0 0; }
.nv[data-page=home] .learn-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; background: #050506 var(--poster, none) center / cover no-repeat;
  box-shadow: 0 0 0 1px var(--docs-line), 0 34px 90px -44px #000;
}
.nv[data-page=home] .learn-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #050506d9; }
/* the stage does not clip: each layer that meets its edge takes the stage's own corners, so a menu can rise past a small film's top */
.nv[data-page=home] .learn-stage {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: #000; color: #fff;
  direction: ltr; isolation: isolate; outline: none; -webkit-tap-highlight-color: transparent; user-select: none;
}
.nv[data-page=home] .learn-stage:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--learn-gold); }
.nv[data-page=home] .learn-stage video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; border-radius: inherit; background: #000; }
.nv[data-page=home] .learn-stage[data-idle] { cursor: none; }
.nv[data-page=home] .learn-stage :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* the stage is black in both appearances: its controls keep the white ring even where the light sheet darkens every other ring */
.nv[data-page=home] .nourva-space[data-appearance] .learn-stage :is(a, button, [tabindex]):focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px #000; }

/* the big play (one Capsule circle, 52) and the wait */
.nv[data-page=home] .learn-big {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border: 0; border-radius: 999px;
  display: none; place-items: center; background: var(--learn-paper); color: var(--learn-ink); cursor: pointer;
  box-shadow: 0 20px 60px -12px #000d; transition: transform .22s, background .22s;
}
.nv[data-page=home] .learn-big svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.nv[data-page=home] .learn-big:hover { transform: scale(1.06); background: #fff; }
.nv[data-page=home] .learn-stage[data-state=fresh] .learn-big { display: grid; }
.nv[data-page=home] .learn-stage[data-state=paused] .learn-big { display: grid; background: #0b0c10a6; color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px #ffffff2a; }
/* the film could not load: its words and one way to try again, nothing else on the stage */
.nv[data-page=home] .learn-fail {
  position: absolute; z-index: 6; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; text-align: center;
  border-radius: inherit; background: radial-gradient(circle at 50% 45%, #000000b8, #000000ee);
}
.nv[data-page=home] .learn-fail[hidden] { display: none; }
.nv[data-page=home] .learn-fail p { margin: 0; color: #fff; font: 450 15px/1.6 var(--nourva-type), var(--font-inter), sans-serif; }
.nv[data-page=home] .learn-fail .learn-btn[data-role=tint] { color: #fff; background: #ffffff17; border-color: #ffffff2e; }
.nv[data-page=home] .learn-fail .learn-btn[data-role=tint]:hover { background: #ffffff26; }
.nv[data-page=home] .learn-stage[data-state=error] :is(.learn-big, .learn-controls, .learn-spin, .learn-cc) { display: none; }
.nv[data-page=home] .learn-stage[data-state=fresh]::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at 50% 50%, #0000 0 18%, #00000038 60%);
}
.nv[data-page=home] .learn-spin {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  border: 2px solid #ffffff2e; border-top-color: #fff; opacity: 0; pointer-events: none; animation: learn-turn .8s linear infinite; transition: opacity .2s;
}
.nv[data-page=home] .learn-stage[data-wait] .learn-spin { opacity: 1; }
@keyframes learn-turn { to { transform: rotate(1turn); } }

/* subtitles, drawn by the page in their own language and direction */
.nv[data-page=home] .learn-cc {
  position: absolute; z-index: 2; left: 50%; bottom: 7%; width: min(88%, 900px); transform: translateX(-50%);
  text-align: center; pointer-events: none; transition: bottom .25s;
}
.nv[data-page=home] .learn-cc:empty { display: none; }
.nv[data-page=home] .learn-stage:not([data-idle]):not([data-state=fresh]) .learn-cc { bottom: calc(92px + 2%); }
.nv[data-page=home] .learn-cc span {
  display: inline; padding: .14em .5em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  color: #fff; background: #08090bd4; white-space: pre-line;
  font: 500 clamp(14px, 2.05vw, 24px)/1.6 var(--nourva-type), var(--font-inter), system-ui, sans-serif;
}
.nv[data-page=home] .learn-cc[lang=ar] span { font-family: var(--nv-face-ar), var(--nourva-type), sans-serif; }
.nv[data-page=home] .learn-cc[lang=ur] span { font-family: var(--nv-face-ur), var(--nourva-type), sans-serif; line-height: 2.15; }
.nv[data-page=home] .learn-cc[lang=hi] span { font-family: var(--nv-face-hi), var(--nourva-type), sans-serif; }
.nv[data-page=home] .learn-cc[lang=bn] span { font-family: var(--nv-face-bn), var(--nourva-type), sans-serif; }
.nv[data-page=home] .learn-cc[lang=vi] span { font-family: var(--nv-face-vi), var(--nourva-type), sans-serif; }
.nv[data-page=home] .learn-cc:is([lang=zh-Hans], [lang=ja], [lang=ko]) span { font-family: var(--nourva-type), system-ui, sans-serif; }

/* the controls */
.nv[data-page=home] .learn-controls {
  position: absolute; z-index: 4; inset: auto 0 0; display: grid; gap: 2px; padding: 34px 14px 8px;
  border-bottom-left-radius: inherit; border-bottom-right-radius: inherit;
  background: linear-gradient(#0000, #0000008c 45%, #000000c4); transition: opacity .25s, transform .25s;
}
.nv[data-page=home] .learn-stage[data-idle] .learn-controls, .nv[data-page=home] .learn-stage[data-state=fresh] .learn-controls { opacity: 0; transform: translateY(8px); pointer-events: none; }
/* a key that reaches a hidden control shows the bar it sits in */
.nv[data-page=home] .learn-stage:is([data-idle], [data-state=fresh]) .learn-controls:has(:focus-visible) { opacity: 1; transform: none; pointer-events: auto; }
.nv[data-page=home] .learn-row { display: flex; align-items: center; gap: 2px; min-height: 42px; }
.nv[data-page=home] .learn-ctl {
  position: relative; display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px;
  color: #fff; background: transparent; cursor: pointer; transition: background .18s;
}
.nv[data-page=home] .learn-ctl:hover, .nv[data-page=home] .learn-ctl[aria-expanded=true] { background: #ffffff1f; }
.nv[data-page=home] .learn-ctl svg { width: 20px; height: 20px; fill: currentColor; }
.nv[data-page=home] .learn-ctl[data-on=false] .learn-ic-on, .nv[data-page=home] .learn-ctl[data-on=true] .learn-ic-off { display: none; }
.nv[data-page=home] .learn-ctl[data-key=cc][data-on=true]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--learn-gold); }
.nv[data-page=home] .learn-ctl b { font: 600 12px/1 var(--font-inter), sans-serif; font-variant-numeric: tabular-nums; }
.nv[data-page=home] .learn-clock { padding: 0 8px; color: #ffffffe0; white-space: nowrap; font: 500 12px/1 var(--font-inter), sans-serif; font-variant-numeric: tabular-nums; }
.nv[data-page=home] .learn-clock span { color: #ffffff8c; }
.nv[data-page=home] .learn-now {
  flex: 1; min-width: 0; padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; unicode-bidi: isolate;
  color: #ffffffc9; font: 12px/1.5 var(--nourva-type), var(--font-inter), sans-serif;
}
.nv[data-page=home] .learn-now[dir=rtl] { text-align: right; }
.nv[data-page=home] .learn-gap { flex: 1; }
/* the row answers the film's own width, not the screen's: a hand-wide film (a 320 phone beside the site's rail) lets the
   total length go first, then the sound key (the phone's own buttons, and the M key, still set the sound), then the clock
   (the bar still shows the place, and says the time to a screen reader) with the keys at 36 — the speed key always stays */
.nv[data-page=home] .learn-stage { container: learn-stage / inline-size; }
@container learn-stage (max-width: 300px) {
  .nv[data-page=home] .learn-clock span { display: none; }
  .nv[data-page=home] .learn-controls { padding-inline: 4px; }
}
@container learn-stage (max-width: 250px) {
  .nv[data-page=home] .learn-ctl[data-key=mute], .nv[data-page=home] .learn-clock { display: none; }
  .nv[data-page=home] .learn-ctl { width: 36px; height: 36px; }
}

/* the bar: one segment a chapter */
.nv[data-page=home] .learn-bar { position: relative; display: flex; align-items: center; gap: 3px; height: 22px; margin: 0 6px; cursor: pointer; touch-action: none; outline: none; border-radius: 6px; }
.nv[data-page=home] .learn-bar:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.nv[data-page=home] .learn-seg { position: relative; flex: var(--w) 1 0; height: 4px; border-radius: 3px; overflow: hidden; background: #ffffff3b; transition: height .16s; }
.nv[data-page=home] .learn-bar:hover .learn-seg, .nv[data-page=home] .learn-bar:focus-visible .learn-seg, .nv[data-page=home] .learn-stage[data-scrub] .learn-seg { height: 7px; }
.nv[data-page=home] .learn-seg i, .nv[data-page=home] .learn-seg u { position: absolute; inset: 0; transform-origin: 0 50%; }
.nv[data-page=home] .learn-seg u { background: #ffffff38; transform: scaleX(var(--b, 0)); }
.nv[data-page=home] .learn-seg i { background: var(--learn-gold); transform: scaleX(var(--p, 0)); }
.nv[data-page=home] .learn-knob {
  position: absolute; top: 50%; left: var(--x, 0%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px #e8b68e5c; transform: scale(0); transition: transform .16s; pointer-events: none;
}
.nv[data-page=home] .learn-bar:hover .learn-knob, .nv[data-page=home] .learn-bar:focus-visible .learn-knob, .nv[data-page=home] .learn-stage[data-scrub] .learn-knob { transform: scale(1); }
.nv[data-page=home] .learn-peek {
  position: absolute; z-index: 6; bottom: 30px; left: var(--px, 50%); width: 184px; padding: 6px 6px 8px; border-radius: 12px;
  background: #121317f4; box-shadow: 0 18px 44px -12px #000, 0 0 0 1px #ffffff1a; transform: translateX(-50%);
  opacity: 0; pointer-events: none; transition: opacity .14s;
}
.nv[data-page=home] .learn-bar[data-peek] .learn-peek { opacity: 1; }
.nv[data-page=home] .learn-peek img { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 7px; object-fit: cover; background: #000; }
.nv[data-page=home] .learn-peek small { display: block; margin: 8px 4px 0; color: var(--learn-gold); font: 500 10.5px/1.3 var(--font-inter), sans-serif; font-variant-numeric: tabular-nums; }
.nv[data-page=home] .learn-peek b { display: block; margin: 3px 4px 0; color: #fff; font: 500 12px/1.45 var(--nourva-type), var(--font-inter), sans-serif; unicode-bidi: isolate; }
.nv[data-page=home] .learn-peek b[dir=rtl] { text-align: right; }

/* the menus: subtitles and speed */
.nv[data-page=home] .learn-menu {
  position: absolute; z-index: 7; right: 12px; bottom: 64px; width: 236px; max-height: min(340px, 56vh); overflow: auto;
  padding: 6px; border-radius: 14px; background: #141519f5; border: 1px solid #ffffff1c; box-shadow: 0 24px 54px -14px #000;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); scrollbar-width: thin; scrollbar-color: #ffffff30 transparent;
}
.nv[data-page=home] .learn-menu-title { margin: 0; padding: 8px 12px 6px; color: #ffffff85; font: 500 11px/1.4 var(--nourva-type), var(--font-inter), sans-serif; }
.nv[data-page=home] .learn-menu [role=menuitemradio] {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 7px 14px; border: 0; border-radius: 16px;
  color: #ececef; background: none; cursor: pointer; text-align: start; font: 13px/1.35 var(--nourva-type), var(--font-inter), sans-serif;
}
.nv[data-page=home] .learn-menu [role=menuitemradio]::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px #ffffff40; }
.nv[data-page=home] .learn-menu [role=menuitemradio][aria-checked=true]::before { background: var(--learn-gold); box-shadow: 0 0 0 3px #e8b68e30; }
.nv[data-page=home] .learn-menu [role=menuitemradio]:hover, .nv[data-page=home] .learn-menu [role=menuitemradio]:focus-visible { background: #ffffff14; }
.nv[data-page=home] .nourva-space[data-appearance] .learn-menu [role=menuitemradio]:focus-visible { outline: 2px solid #fff; outline-offset: -2px; box-shadow: none; }
.nv[data-page=home] .learn-menu [role=menuitemradio] small { margin-inline-start: auto; color: #ffffff8c; font: 10.5px/1 var(--font-inter), sans-serif; }

/* the end of the film */
.nv[data-page=home] .learn-end {
  position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; border-radius: inherit;
  background: radial-gradient(circle at 50% 45%, #000000a8, #000000e6);
}
.nv[data-page=home] .learn-end-in { display: grid; justify-items: center; gap: 14px; max-width: 520px; }
.nv[data-page=home] .learn-end small { color: #ffffff9e; font: 12px/1.5 var(--nourva-type), var(--font-inter), sans-serif; }
.nv[data-page=home] .learn-end strong { color: #fff; font: 450 clamp(17px, 2vw, 24px)/1.4 var(--nourva-type), var(--font-inter), sans-serif; }
.nv[data-page=home] .learn-end-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.nv[data-page=home] .learn-end .learn-btn[data-role=tint] { color: #fff; background: #ffffff17; border-color: #ffffff2e; }
.nv[data-page=home] .learn-end .learn-btn[data-role=tint]:hover { background: #ffffff26; }
.nv[data-page=home] .learn-end .learn-btn[data-role=primary],
.nv[data-page=home] .nourva-space[data-appearance=light] .learn-end .learn-btn[data-role=primary] { background: var(--learn-paper); border-color: var(--learn-paper); color: var(--learn-ink); }
.nv[data-page=home] .learn-end .learn-btn[data-role=primary]:hover,
.nv[data-page=home] .nourva-space[data-appearance=light] .learn-end .learn-btn[data-role=primary]:hover { background: #fff; box-shadow: 0 12px 28px -14px #000c; }

/* the corner player while reading */
.nv[data-page=home] .learn-ctl[data-key=back], .nv[data-page=home] .learn-ctl[data-key=close] { display: none; }
.nv[data-page=home] .learn-player[data-docked] .learn-frame::before {
  content: attr(data-away); position: absolute; z-index: 2; inset: auto 0 50%; transform: translateY(50%); text-align: center; color: #ffffffb3;
  font: 13px/1.6 var(--nourva-type), var(--font-inter), sans-serif;
}
.nv[data-page=home] .learn-player[data-docked] .learn-stage {
  position: fixed; z-index: 9; inset: auto 22px 22px auto; width: min(384px, calc(100% - 32px)); height: auto; aspect-ratio: 16 / 9;
  border-radius: 14px; box-shadow: 0 26px 60px -16px #000e, 0 0 0 1px #ffffff24; animation: learn-dock .34s cubic-bezier(.2, .8, .2, 1);
}
div.nv[data-page=home][dir=rtl] .learn-player[data-docked] .learn-stage { inset: auto auto 22px 22px; }
/* the corner keeps its shadow and still shows where the keyboard stands */
.nv[data-page=home] .learn-player[data-docked] .learn-stage:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--learn-gold), 0 26px 60px -16px #000e; }
@keyframes learn-dock { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.nv[data-page=home] .learn-player[data-docked] :is(.learn-now, .learn-ctl[data-key=cc], .learn-ctl[data-key=speed], .learn-ctl[data-key=full], .learn-ctl[data-key=mute], .learn-menu) { display: none; }
.nv[data-page=home] .learn-player[data-docked] :is(.learn-ctl[data-key=back], .learn-ctl[data-key=close]) { display: grid; }
.nv[data-page=home] .learn-player[data-docked] .learn-controls { padding: 24px 8px 4px; }
.nv[data-page=home] .learn-player[data-docked] .learn-row { min-height: 36px; }
.nv[data-page=home] .learn-player[data-docked] .learn-ctl { width: 34px; height: 34px; }
.nv[data-page=home] .learn-player[data-docked] .learn-ctl svg { width: 17px; height: 17px; }
.nv[data-page=home] .learn-player[data-docked] .learn-cc { bottom: 9%; width: 94%; }
.nv[data-page=home] .learn-player[data-docked] .learn-stage:not([data-idle]) .learn-cc { bottom: calc(66px + 2%); }
.nv[data-page=home] .learn-player[data-docked] .learn-cc span { font-size: 12px; }
.nv[data-page=home] .learn-player[data-docked] .learn-big { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.nv[data-page=home] .learn-player[data-docked] .learn-big svg { width: 18px; height: 18px; margin-left: 2px; }
.nv[data-page=home] .learn-player[data-docked] .learn-fail { gap: 8px; padding: 10px; }
.nv[data-page=home] .learn-player[data-docked] .learn-fail p { font-size: 12px; }
/* the reading pane leaves room under its last lines for the corner player */
.nv[data-page=home] .docs-reading-pane:has(.learn-player[data-docked]) { scroll-padding-bottom: 240px; }
.nv[data-page=home] .learn-player[data-docked] .learn-end strong { font-size: 14px; }
.nv[data-page=home] .learn-player[data-docked] .learn-end small, .nv[data-page=home] .learn-player[data-docked] .learn-end .learn-btn[data-role=primary] { display: none; }

/* full screen */
.nv[data-page=home] .learn-stage:fullscreen { border-radius: 0; }
.nv[data-page=home] .learn-stage:fullscreen .learn-cc span { font-size: clamp(18px, 2.3vw, 36px); }
.nv[data-page=home] .learn-stage:fullscreen .learn-controls { padding: 44px 24px 14px; }
.nv[data-page=home] .learn-stage:fullscreen .learn-menu { max-height: min(340px, calc(100% - 84px)); }

/* the planned film */
.nv[data-page=home] .learn-planned { position: relative; margin: 26px 0 0; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #050506; box-shadow: 0 0 0 1px var(--docs-line); }
.nv[data-page=home] .learn-planned img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv[data-page=home] .learn-planned figcaption {
  position: absolute; inset: auto 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 70px 26px 22px;
  color: #ffffffd9; background: linear-gradient(#0000, #000000d0); font-size: 13px; line-height: 1.7;
}
.nv[data-page=home] .learn-planned figcaption .learn-tag { color: #fff; background: #ffffff26; }

/* chapters under the film */
.nv[data-page=home] .learn-chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(214px, 100%), 1fr)); gap: 12px; }
.nv[data-page=home] .learn-chapter { position: relative; }
.nv[data-page=home] .learn-chapter-go {
  display: grid; gap: 10px; width: 100%; height: 100%; padding: 7px 7px 12px; border: 1px solid var(--docs-line); border-radius: 15px;
  color: var(--docs-ink); background: linear-gradient(140deg, color-mix(in srgb, var(--docs-accent) 5%, transparent), #0000 65%);
  text-align: start; cursor: pointer; font: inherit; transition: border-color .2s, background .2s, transform .2s;
}
.nv[data-page=home] .learn-chapter-go:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--docs-accent) 42%, transparent); background: color-mix(in srgb, var(--docs-accent) 7%, transparent); }
.nv[data-page=home] .learn-chapter-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #050506; }
.nv[data-page=home] .learn-chapter-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.nv[data-page=home] .learn-chapter-go:hover .learn-chapter-thumb img { transform: scale(1.04); }
.nv[data-page=home] .learn-chapter-thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -8px 0 0 -5px; border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff; filter: drop-shadow(0 2px 8px #000a); opacity: 0; transition: opacity .2s;
}
.nv[data-page=home] .learn-chapter-go:hover .learn-chapter-thumb::after { opacity: .95; }
.nv[data-page=home] .learn-chapter-text { display: grid; gap: 5px; padding: 0 7px; }
.nv[data-page=home] .learn-chapter-text small { display: flex; align-items: center; gap: 8px; color: var(--docs-dim); font-size: 11px; }
.nv[data-page=home] .learn-chapter-text small b { color: var(--docs-accent); font: 500 11px/1 var(--font-inter), sans-serif; letter-spacing: .06em; }
.nv[data-page=home] .learn-chapter-text strong { font-size: 13px; font-weight: 450; line-height: 1.55; }
/* on the chapter's own frame, top left in every direction: the frames are never mirrored and carry the wordmark top right */
.nv[data-page=home] .learn-now-tag {
  position: absolute; top: 7px; left: 7px; z-index: 1; display: none; align-items: center; gap: 7px;
  min-height: 22px; padding: 0 9px; border-radius: 999px; color: #101014; background: var(--learn-gold);
  font: 600 10.5px/1 var(--nourva-type), var(--font-inter), sans-serif;
}
.nv[data-page=home] .learn-now-tag i { display: inline-flex; align-items: flex-end; gap: 2px; height: 9px; }
.nv[data-page=home] .learn-now-tag i::before, .nv[data-page=home] .learn-now-tag i::after, .nv[data-page=home] .learn-now-tag i span { content: ""; width: 2px; height: 100%; border-radius: 1px; background: currentColor; animation: learn-eq .9s ease-in-out infinite; transform-origin: bottom; }
.nv[data-page=home] .learn-now-tag i span { animation-delay: -.3s; }
.nv[data-page=home] .learn-now-tag i::after { animation-delay: -.6s; }
@keyframes learn-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.nv[data-page=home] .learn-chapter-go[aria-current=true] { border-color: var(--docs-accent); box-shadow: inset 0 0 0 1px var(--docs-accent); }
.nv[data-page=home] .learn-chapter-go[aria-current=true] .learn-now-tag { display: inline-flex; }
.nv[data-page=home] .learn-chapter-go[aria-current=true] .learn-chapter-thumb::after { display: none; }
.nv[data-page=home] .learn-chapter-link {
  position: absolute; z-index: 2; inset-block-start: 13px; inset-inline-end: 13px; width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 999px; color: #fff; background: #0b0c10a8; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  cursor: pointer; opacity: 0; transition: opacity .2s, background .2s;
}
.nv[data-page=home] .learn-chapter:hover .learn-chapter-link, .nv[data-page=home] .learn-chapter-link:focus-visible, .nv[data-page=home] .learn-chapter-link[data-done] { opacity: 1; }
.nv[data-page=home] .learn-chapter-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nv[data-page=home] .learn-chapter-link[data-done] { background: var(--learn-gold); color: #101014; }
/* a planned film's chapters: rows that lead to their guide */
.nv[data-page=home] .learn-chapters[data-planned] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.nv[data-page=home] .learn-chapter-row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 2px;
  border-top: 1px solid var(--docs-line); color: var(--docs-ink); text-decoration: none; font-size: 13px; line-height: 1.6;
}
.nv[data-page=home] .learn-chapter-row b { color: var(--docs-accent); font: 500 11px/1 var(--font-inter), sans-serif; letter-spacing: .06em; }
.nv[data-page=home] .learn-chapter-row:hover { color: var(--docs-accent); }
.nv[data-page=home] .learn-chapter-row .docs-arrow { opacity: .55; }

/* the transcript */
.nv[data-page=home] .learn-transcript { margin-top: 30px; border: 1px solid var(--docs-line); border-radius: 15px; background: var(--docs-wash); }
.nv[data-page=home] .learn-transcript > summary {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; list-style: none; color: var(--docs-ink); font-size: 13px; font-weight: 500;
}
.nv[data-page=home] .learn-transcript > summary::-webkit-details-marker { display: none; }
.nv[data-page=home] .learn-transcript > summary svg { width: 16px; height: 16px; fill: none; stroke: var(--docs-accent); stroke-width: 1.5; stroke-linecap: round; flex: none; }
.nv[data-page=home] .learn-transcript > summary small { margin-inline-start: auto; color: var(--docs-dim); font-size: 11px; font-weight: 400; }
.nv[data-page=home] .learn-transcript > summary::after { content: "+"; color: var(--docs-dim); font-size: 18px; line-height: 1; }
.nv[data-page=home] .learn-transcript[open] > summary::after { content: "−"; }
.nv[data-page=home] .learn-cues { list-style: none; margin: 0; padding: 4px 10px 14px; display: grid; gap: 1px; border-top: 1px solid var(--docs-line); }
.nv[data-page=home] .learn-cue {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: baseline; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 16px;
  border-inline-start: 3px solid transparent;
  color: var(--docs-muted); background: none; text-align: start; cursor: pointer; font: 13px/1.85 var(--nourva-type), var(--font-inter), sans-serif;
}
.nv[data-page=home] .learn-cue time { color: var(--docs-dim); font-size: 11px; }
.nv[data-page=home] .learn-cue:hover { background: var(--docs-wash); color: var(--docs-ink); }
.nv[data-page=home] .learn-cue[aria-current=true] { color: var(--docs-ink); font-weight: 500; border-inline-start-color: var(--docs-accent); background: color-mix(in srgb, var(--docs-accent) 10%, transparent); }
.nv[data-page=home] .learn-cue[aria-current=true] time { color: var(--docs-accent); }
.nv[data-page=home] .learn-cue q { quotes: none; font-style: italic; color: var(--docs-ink); }
.nv[data-page=home] .learn-cue[data-chapter]::before { content: attr(data-chapter); grid-column: 1 / -1; margin: 8px 0 -2px; color: var(--docs-accent); font-size: 11px; font-style: normal; }
.nv[data-page=home] .learn-transcript[lang^=ur] .learn-cue { line-height: 2.3; }

/* the guides: in the film, then to read */
.nv[data-page=home] .learn-steps-lead { margin: -6px 0 20px; max-width: 660px; color: var(--docs-muted); font-size: 13px; line-height: 1.85; }
/* one column no wider than the page: an opened guide's table scrolls inside its own frame instead of widening the card past a phone's edge */
.nv[data-page=home] .learn-guides { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.nv[data-page=home] .learn-guide {
  min-width: 0;
  padding: 20px 22px; border: 1px solid var(--docs-line); border-radius: 16px; scroll-margin-top: 24px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--docs-accent) 4%, transparent), #0000 55%);
}
.nv[data-page=home] .learn-guide:target { border-color: color-mix(in srgb, var(--docs-accent) 60%, transparent); }
.nv[data-page=home] .learn-guide-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.nv[data-page=home] .learn-guide h3 { margin: 0 0 8px; font-size: 16px; font-weight: 500; line-height: 1.55; letter-spacing: -.01em; outline: none; }
.nv[data-page=home] .learn-guide-summary { margin: 0; max-width: 700px; color: var(--docs-muted); font-size: 13px; line-height: 1.85; }
.nv[data-page=home] .learn-guide-summary a { color: var(--docs-ink); text-underline-offset: 4px; text-decoration-color: #cfaa8260; }
.nv[data-page=home] .learn-guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 15px; }
.nv[data-page=home] .learn-guide-actions small { margin-inline-start: auto; color: var(--docs-dim); font-size: 11px; }
.nv[data-page=home] .learn-guide-actions .learn-btn[aria-expanded=true] svg { transform: rotate(180deg); }
.nv[data-page=home] .learn-guide-actions .learn-btn svg { transition: transform .2s; }
.nv[data-page=home] .learn-guide-body { margin: 18px 0 0 !important; padding-top: 22px; border-top: 1px solid var(--docs-line); max-width: none !important; }
.nv[data-page=home] .learn-guide-body > .docs-prose-section:last-child { margin-bottom: 4px; }
.nv[data-page=home] .learn-guide-body h4 { margin: 0 0 12px !important; font-size: 15.5px !important; }
.nv[data-page=home] .learn-guide-body h6 { margin: 20px 0 10px; font-size: 14px; font-weight: 500; line-height: 1.8; }
.nv[data-page=home] .learn-guide-body .docs-source-notice { margin: 0 0 18px; }
.nv[data-page=home] .learn-guide[data-more] .learn-guide-tags { display: none; }

/* the next film */
.nv[data-page=home] .learn-next { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--docs-line); }
.nv[data-page=home] .learn-next a {
  display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 12px; border: 1px solid var(--docs-line);
  border-radius: 17px; color: var(--docs-ink); text-decoration: none; transition: background .2s, border-color .2s;
}
.nv[data-page=home] .learn-next a:hover { background: var(--docs-wash); border-color: color-mix(in srgb, var(--docs-accent) 40%, transparent); }
.nv[data-page=home] .learn-next img { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 11px; object-fit: cover; background: #050506; }
.nv[data-page=home] .learn-next small { display: block; margin-bottom: 6px; color: var(--docs-accent); font-size: 11px; }
.nv[data-page=home] .learn-next strong { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 450; line-height: 1.45; }
.nv[data-page=home] .learn-next span { color: var(--docs-muted); font-size: 12px; line-height: 1.7; }
.nv[data-page=home] .learn-next .docs-arrow { width: 22px; height: 22px; margin-inline-end: 10px; }

/* ── the docs, with their films (the two mockups) ─────────────────────────────────────────── */
.nv[data-page=home] .learn-banner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); align-items: center; gap: 28px; margin: 0 0 36px; padding: 22px;
  border: 1px solid color-mix(in srgb, var(--docs-accent) 30%, transparent); border-radius: 18px;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--docs-accent) 13%, transparent), #0000 58%), var(--docs-wash);
}
div.nv[data-page=home][dir=rtl] .learn-banner { background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--docs-accent) 13%, transparent), #0000 58%), var(--docs-wash); }
.nv[data-page=home] .learn-banner-text { padding: 4px 6px; min-width: 0; }
.nv[data-page=home] .learn-banner .docs-kicker { margin-bottom: 14px; }
.nv[data-page=home] .learn-banner h2 { margin: 0 0 10px; font-size: clamp(20px, 2vw, 27px); font-weight: 400; letter-spacing: -.03em; line-height: 1.3; white-space: pre-line; }
div.nv[data-page=home][dir=rtl] .learn-banner h2 { letter-spacing: 0; line-height: 1.65; }
.nv[data-page=home] .learn-banner p:not(.docs-kicker) { margin: 0 0 18px; max-width: 520px; color: var(--docs-muted); font-size: 13px; line-height: 1.85; }
.nv[data-page=home] .learn-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nv[data-page=home] .learn-banner-poster { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 13px; overflow: hidden; background: #050506; box-shadow: 0 0 0 1px var(--docs-line), 0 22px 44px -26px #000; }
.nv[data-page=home] .learn-banner-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.nv[data-page=home] .learn-banner-poster:hover img { transform: scale(1.03); }
.nv[data-page=home] .learn-watch {
  display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 22px 0 0; padding: 10px;
  border: 1px solid color-mix(in srgb, var(--docs-accent) 32%, transparent); border-radius: 15px; color: var(--docs-ink); text-decoration: none;
  background: linear-gradient(110deg, color-mix(in srgb, var(--docs-accent) 9%, transparent), #0000 70%); transition: background .2s, border-color .2s;
}
/* inside the guide's own article: none of the article's underline, colour or word breaking on the card */
.nv[data-page=home] .docs-article a.learn-watch, .nv[data-page=home] .docs-article a.learn-watch:hover { color: var(--docs-ink); text-decoration: none; overflow-wrap: normal; }
.nv[data-page=home] .learn-watch:hover { border-color: var(--docs-accent); background: linear-gradient(110deg, color-mix(in srgb, var(--docs-accent) 15%, transparent), #0000 70%); }
.nv[data-page=home] .learn-watch-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #050506; }
.nv[data-page=home] .learn-watch-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv[data-page=home] .learn-watch-thumb .learn-play-disc { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
.nv[data-page=home] .learn-watch-thumb .learn-play-disc svg { width: 13px; height: 13px; margin-left: 2px; }
.nv[data-page=home] .learn-watch-text { display: grid; gap: 3px; min-width: 0; }
.nv[data-page=home] .learn-watch-text small { color: var(--docs-accent); font-size: 11px; }
.nv[data-page=home] .learn-watch-text strong { font-size: 14px; font-weight: 500; line-height: 1.5; }
.nv[data-page=home] .learn-watch-text span { color: var(--docs-dim); font-size: 11px; }
.nv[data-page=home] .learn-watch .docs-arrow { margin-inline-end: 8px; opacity: .7; }
/* the mockup's mark, in the top bar after the trail */
.nv[data-page=home] .learn-mock-note { display: flex; align-items: center; gap: 14px; min-width: 0; font-size: 11px; line-height: 1.7; white-space: nowrap; }
.nv[data-page=home] .learn-mock-note a { display: inline-flex; align-items: center; gap: 6px; color: var(--docs-muted); text-decoration: none; transition: color .2s; }
.nv[data-page=home] .learn-mock-note a:hover { color: var(--docs-ink); }
.nv[data-page=home] .learn-mock-note .docs-arrow { width: 13px; height: 13px; }
/* the code element inside a code block draws in its block's own face: the browser's default monospace drew the Arabic examples letter by letter in Courier New */
.nv[data-page=home] .docs-code pre code { font: inherit; }

/* ── narrower screens ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .nv[data-page=home] .learn-grid { gap: 20px 12px; }
  .nv[data-page=home] .learn-feature-body { padding: 20px 20px; }
}
@media (max-width: 920px) {
  .nv[data-page=home] .learn-feature { grid-template-columns: 1fr; }
  .nv[data-page=home] .learn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv[data-page=home] .learn-banner { grid-template-columns: 1fr; }
  .nv[data-page=home] .learn-banner-poster { max-width: 420px; }
}
@media (max-width: 800px) {
  .nv[data-page=home] .learn-art { transform-origin: 50%; scale: .78; }
  .nv[data-page=home] .learn-next a { grid-template-columns: 150px minmax(0, 1fr); }
  .nv[data-page=home] .learn-next .docs-arrow { display: none; }
  .nv[data-page=home] .learn-chapters[data-planned] { grid-template-columns: 1fr; }
  /* a narrow poster has no room for the note over it: the note goes under the picture */
  .nv[data-page=home] .learn-planned { aspect-ratio: auto; }
  .nv[data-page=home] .learn-planned img { height: auto; aspect-ratio: 16 / 9; }
  .nv[data-page=home] .learn-planned figcaption { position: static; padding: 14px 18px 18px; background: none; font-size: 12.5px; }
  /* the idea page's film plan: each row one card (the name and its state, then its facts, then what it shows); the headers stay for screen readers */
  .nv[data-page=home] .docs-table-wrap.learn-plan { overflow: visible; }
  .nv[data-page=home] .docs-table-wrap.learn-plan table, .nv[data-page=home] .docs-table-wrap.learn-plan tbody { display: block; min-width: 0; }
  .nv[data-page=home] .docs-table-wrap.learn-plan thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nv[data-page=home] .docs-table-wrap.learn-plan tr { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; padding: 14px 16px; border-bottom: 1px solid var(--docs-line); }
  .nv[data-page=home] .docs-table-wrap.learn-plan tr:last-child { border-bottom: 0; }
  .nv[data-page=home] .docs-table-wrap.learn-plan tr::before { content: ""; order: 3; flex-basis: 100%; height: 6px; }
  .nv[data-page=home] .docs-table-wrap.learn-plan td { display: block; min-width: 0; padding: 0; border: 0; }
  .nv[data-page=home] .docs-table-wrap.learn-plan td:nth-child(1) { order: 1; flex: 1 1 auto; font-size: 14px; }
  .nv[data-page=home] .docs-table-wrap.learn-plan td:nth-child(2) { order: 2; }
  .nv[data-page=home] .docs-table-wrap.learn-plan td:nth-child(3) { order: 4; }
  .nv[data-page=home] .docs-table-wrap.learn-plan td:nth-child(6) { order: 5; }
  .nv[data-page=home] .docs-table-wrap.learn-plan td:nth-child(6)::before { content: "·"; content: "·" / ""; margin-inline-end: 10px; color: var(--docs-dim); }
  .nv[data-page=home] .docs-table-wrap.learn-plan td:nth-child(4) { order: 6; flex-basis: 100%; }
  .nv[data-page=home] .docs-table-wrap.learn-plan td:nth-child(5) { order: 7; flex-basis: 100%; margin-top: 4px; color: var(--docs-dim); }
}
@media (max-width: 600px) {
  .nv[data-page=home] .learn-art { display: none; }
  .nv[data-page=home] .learn-film { padding: 22px 15px 44px; }
  .nv[data-page=home] .learn-film-head h1 { font-size: 30px; }
  .nv[data-page=home] .learn-film-sub { font-size: 14px; }
  .nv[data-page=home] .learn-film-desc { font-size: 12.5px; }
  .nv[data-page=home] .learn-frame, .nv[data-page=home] .learn-planned { border-radius: 13px; margin-inline: -4px; }
  .nv[data-page=home] .learn-player { margin-top: 20px; }
  .nv[data-page=home] .learn-controls { padding: 26px 6px 2px; }
  .nv[data-page=home] .learn-now { display: none; }
  .nv[data-page=home] .learn-stage:not([data-idle]):not([data-state=fresh]) .learn-cc { bottom: calc(76px + 2%); }
  .nv[data-page=home] .docs-reading-pane:has(.learn-player[data-docked]) { scroll-padding-bottom: 190px; }
  .nv[data-page=home] .learn-fail p { font-size: 13px; }
  /* a phone's film is a hand wide: the lines stay small enough to leave the picture seen (full screen keeps its own size) */
  .nv[data-page=home] .learn-cc { width: 92%; }
  .nv[data-page=home] .learn-cc span { font-size: 12.5px; line-height: 1.5; padding: .12em .45em; }
  /* a hand-wide film: the menus rise from its controls over the page above it; the end card stays compact and the bar rests under it */
  .nv[data-page=home] .learn-stage:not(:fullscreen) .learn-menu { right: 6px; bottom: 50px; width: min(236px, calc(100% - 12px)); }
  .nv[data-page=home] .learn-stage:not(:fullscreen) .learn-end { padding: 10px 12px; }
  .nv[data-page=home] .learn-stage:not(:fullscreen) .learn-end-in { gap: 4px; }
  .nv[data-page=home] .learn-stage:not(:fullscreen) .learn-end small { font-size: 11px; line-height: 1.4; }
  .nv[data-page=home] .learn-stage:not(:fullscreen) .learn-end strong { font-size: 15px; line-height: 1.35; }
  .nv[data-page=home] .learn-stage:not(:fullscreen) .learn-end-row { gap: 8px; margin-top: 8px; }
  .nv[data-page=home] .learn-stage:not(:fullscreen) .learn-end .learn-btn { --h: 36px; padding: 0 14px; gap: 7px; font-size: 12px; }
  .nv[data-page=home] .learn-stage:not(:fullscreen) .learn-end .learn-btn svg { width: 14px; height: 14px; }
  .nv[data-page=home] .learn-stage[data-state=ended]:not(:fullscreen) .learn-controls { opacity: 0; pointer-events: none; visibility: hidden; }
  .nv[data-page=home] .learn-grid { grid-template-columns: 1fr; gap: 18px; }
  .nv[data-page=home] .learn-lookup { grid-template-columns: 1fr; }
  .nv[data-page=home] .learn-lookup .docs-start-card p { grid-column: 2; }
  .nv[data-page=home] .learn-feature-body { padding: 18px 16px; }
  .nv[data-page=home] .learn-feature-body h3 { font-size: 19px; }
  .nv[data-page=home] .learn-mini { grid-template-columns: 1fr; padding: 6px; }
  .nv[data-page=home] .learn-mini a { grid-template-columns: 76px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 10px; }
  .nv[data-page=home] .learn-chapters { grid-template-columns: 1fr; gap: 8px; }
  .nv[data-page=home] .learn-chapter-go { grid-template-columns: 124px minmax(0, 1fr); align-items: center; padding: 6px; }
  .nv[data-page=home] .learn-chapter-text { padding: 0 4px; }
  .nv[data-page=home] .learn-chapter-link { opacity: 1; inset-block-start: 50%; margin-top: -17px; inset-inline-end: 8px; background: transparent; color: var(--docs-dim); }
  .nv[data-page=home] .learn-chapter-text { padding-inline-end: 38px; }
  .nv[data-page=home] .learn-now-tag { top: 5px; left: 5px; padding: 0 7px; gap: 5px; font-size: 10px; }
  .nv[data-page=home] .learn-guide { padding: 16px 15px; }
  .nv[data-page=home] .learn-guide-actions small { flex-basis: 100%; margin: 4px 0 0; }
  .nv[data-page=home] .learn-cue { grid-template-columns: 46px minmax(0, 1fr); font-size: 12.5px; }
  .nv[data-page=home] .learn-next a { grid-template-columns: 1fr; gap: 12px; }
  .nv[data-page=home] .learn-watch { grid-template-columns: 112px minmax(0, 1fr); }
  .nv[data-page=home] .learn-watch .docs-arrow { display: none; }
  .nv[data-page=home] .learn-meta .docs-copy { margin-inline-start: 0; }
  .nv[data-page=home] .learn-player[data-docked] .learn-stage { inset: auto 10px 10px auto; width: min(300px, calc(100% - 20px)); }
  div.nv[data-page=home][dir=rtl] .learn-player[data-docked] .learn-stage { inset: auto auto 10px 10px; }
  .nv[data-page=home] .learn-mock-note a { display: none; }
}

/* ── forced colours: every state keeps a shape the system's own colours draw ──────────────────── */
@media (forced-colors: active) {
  .nv[data-page=home] .learn-seg { background: GrayText; forced-color-adjust: none; }
  .nv[data-page=home] .learn-seg u { background: Canvas; }
  .nv[data-page=home] .learn-seg i { background: Highlight; }
  .nv[data-page=home] .learn-knob { background: Highlight; box-shadow: 0 0 0 2px CanvasText; forced-color-adjust: none; }
  .nv[data-page=home] .learn-menu [role=menuitemradio]::before { box-shadow: inset 0 0 0 1px CanvasText; forced-color-adjust: none; }
  .nv[data-page=home] .learn-menu [role=menuitemradio][aria-checked=true]::before { background: Highlight; box-shadow: 0 0 0 2px CanvasText; }
  .nv[data-page=home] .learn-ctl[data-key=cc][data-on=true]::after { background: Highlight; forced-color-adjust: none; }
  .nv[data-page=home] :is(.learn-chip, .learn-cue, .learn-chapter-go)[aria-current=true] { outline: 2px solid Highlight; outline-offset: 1px; }
  .nv[data-page=home] .learn-stage :focus-visible, .nv[data-page=home] .learn-stage:focus-visible { outline: 2px solid Highlight; }
}
