/* =========================================================================
   AY+ audio-lesson template (connector edition)
   Ported from ay-content/_overhaul-scratch/mockups/styles.css (post 2026-06-17
   review). Key change from the mockup: every selector is scoped under .ayp, and
   the design tokens / base type live on .ayp, NOT on <body>. The connector
   injects this into the LMS page, so it must not restyle the LMS's own body or
   collide with the LMS's class names. .ayp is the course's self-contained surface.
   Dropped vs the mockup: decorative shapes, video, region switch, course nav
   (not used by a single audio lesson; flagged as weakest brand element in review).
   ========================================================================= */

/* Outfit, self-hosted (latin) so a locked-down client network can't strip a
   third-party font fetch. Files live in the shared CDN folder cdn/_shared/fonts/,
   reused by every template (not duplicated per course). Paths are relative to this
   stylesheet: ../../_shared/ resolves to the CDN root. */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../_shared/fonts/outfit-400.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('../../_shared/fonts/outfit-500.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../_shared/fonts/outfit-600.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('../../_shared/fonts/outfit-700.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 800; font-display: swap; src: url('../../_shared/fonts/outfit-800.woff2') format('woff2'); }

.ayp {
  /* Core palette */
  --navy:   #0c355c;
  --bg:      #f9f8f6;
  --surface: #ffffff;
  --ink:     #0c355c;
  --ink-soft:#41566e;
  --line:    #e7e4df;                 /* hairline dividers (decorative) */
  --line-strong: #7d8794;            /* interactive control boundaries; est. ~3.3:1 on white for WCAG 1.4.11 (verify with a contrast tool) */

  /* Audio-lesson accent (baked from body[data-type="audio-lesson"] in the mockup).
     --accent-deep is text-grade (>=4.5:1 on the off-white bg). */
  --accent:      #f0a830;
  --accent-deep: #8a5608;   /* darkened from #9c6209 so it clears 4.5:1 on --accent-tint too (verify) */
  --accent-tint: #feecc9;
  --accent-ink:  #0c355c;
  --accent-soft: #f6cd86;

  /* Type scale */
  --fs-eyebrow: 0.8125rem;
  --fs-body:    1.0625rem;   /* ~17px */
  --fs-h3:      1.375rem;
  --fs-h2:      1.875rem;
  --fs-h1:      clamp(2.4rem, 1.6rem + 2.6vw, 3.1rem);

  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 18px 40px -22px rgba(12, 53, 92, 0.35);
  --shadow-sm:0 6px 18px -10px rgba(12, 53, 92, 0.30);
  --ring:     0 0 0 3px var(--bg), 0 0 0 5px var(--navy);   /* navy ring: high-contrast on the light surface (WCAG 2.4.7/2.4.13) */
  --maxw:     920px;

  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
.ayp *, .ayp *::before, .ayp *::after { box-sizing: border-box; }

/* ---- Layout shell ---- */
.ayp .page { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 80px; }
.ayp .skip-link {
  position: absolute; left: 12px; top: -48px; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 10px; z-index: 50; transition: top .15s ease; text-decoration: none;
}
.ayp .skip-link:focus { top: 12px; }

/* ---- Lesson card ---- */
.ayp .card {
  position: relative; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px clamp(20px, 4vw, 44px) 38px;
  border: 1px solid rgba(255,255,255,0.6);
}
.ayp .card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}
.ayp .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-deep); margin: 0 0 8px;
}
.ayp .eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--accent); }
.ayp h1.title { font-size: var(--fs-h1); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 6px; }
.ayp .subtitle { color: var(--ink-soft); margin: 0 0 26px; max-width: 60ch; }

/* ---- Assemble You branding (masthead + footer), every lesson type ---- */
.ayp .ay-brandbar {
  display: flex; align-items: center;
  margin: 0 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.ayp .ay-brandbar .ay-logo { height: 30px; width: auto; display: block; }
.ayp .ay-brandfoot {
  display: flex; align-items: center;
  margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line);
}
.ayp .ay-brandfoot .ay-logo { height: 24px; width: auto; display: block; opacity: 0.85; }

/* ---- Learning objectives ---- */
.ayp .objectives {
  margin: 0 0 26px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
}
.ayp .objectives h2 {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-deep); margin: 0 0 10px;
}
.ayp .objectives ol { margin: 0; padding-left: 0; list-style: none; counter-reset: o; display: grid; gap: 8px; }
.ayp .objectives li { position: relative; padding-left: 34px; counter-increment: o; }
.ayp .objectives li::before {
  content: counter(o); position: absolute; left: 0; top: -1px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
}

/* ---- Hero (cover + player) ---- */
.ayp .hero { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 48px; align-items: stretch; }
@media (max-width: 680px) { .ayp .hero { grid-template-columns: 1fr; } }
.ayp .cover {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm); background: var(--accent-tint); margin: 0;
  /* Stay a fixed square; without this the hero's align-items:stretch pulls the cover
     taller (and wider) whenever the player grows, e.g. when Read along adds the caption
     line, distorting the artwork and overlapping the player. */
  align-self: start;
}
.ayp .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Audio player (signature component) ---- */
.ayp .player {
  background: radial-gradient(135% 135% at 0% 0%, var(--accent-tint), #fff 68%);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: var(--radius); padding: 20px 20px 16px; box-shadow: var(--shadow-sm);
}
.ayp .player__wave { display: flex; align-items: center; gap: 3px; height: 72px; margin-bottom: 14px; cursor: pointer; }
.ayp .player__wave span {
  flex: 1; min-height: 6px; border-radius: 3px; background: var(--accent-soft);
  transition: background .12s, transform .12s;
}
.ayp .player__wave span.on { background: var(--accent); }
.ayp .player__chapters { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; }
.ayp .chapter {
  border: 1px solid var(--line-strong); background: #fff; color: var(--navy);
  border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.ayp .chapter:hover, .ayp .chapter:focus-visible { border-color: var(--accent); }
.ayp .chapter .ct { font-variant-numeric: tabular-nums; color: var(--accent-deep); }
.ayp .chapter[aria-current="true"] { background: var(--accent-tint); border-color: var(--accent); }
.ayp .player__controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ayp .iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--navy); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.ayp .iconbtn:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.ayp .iconbtn svg { width: 20px; height: 20px; }
.ayp .iconbtn--play { width: 52px; height: 52px; background: var(--navy); color: #fff; border-color: var(--navy); }
.ayp .iconbtn--play svg { width: 24px; height: 24px; }
.ayp .player__scrub { display: flex; align-items: center; gap: 10px; flex: 1 1 240px; min-width: 200px; }
.ayp .player__time { font-variant-numeric: tabular-nums; font-size: 0.85rem; color: var(--ink-soft); min-width: 44px; }
.ayp input[type="range"].seek {
  -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--p,0%), #d9e2ec var(--p,0%)); cursor: pointer;
}
.ayp input[type="range"].seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--navy);
  border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.ayp input[type="range"].seek::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: var(--navy); }
.ayp .pill {
  border: 1px solid var(--line-strong); background: #fff; color: var(--navy); border-radius: 999px;
  padding: 8px 15px; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.ayp .pill[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.ayp .player__meta { display: flex; align-items: center; gap: 14px; row-gap: 12px; margin-top: 16px; font-size: 0.85rem; color: var(--ink-soft); flex-wrap: wrap; }
.ayp .caption-line {
  margin-top: 12px; background: rgba(12,53,92,0.9); color: #fff; border-radius: 10px;
  padding: 10px 14px; font-size: 0.95rem; min-height: 1.2em; display: none;
}
.ayp .caption-line.on { display: block; }

/* ---- Accordions (native details) ---- */
.ayp .stack { margin: 24px 0; display: grid; gap: 12px; }
.ayp details.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.ayp details.acc > summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); }
.ayp details.acc > summary::-webkit-details-marker { display: none; }
.ayp .acc__ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-tint); color: var(--accent-deep); flex: none; }
.ayp .acc__ico svg { width: 18px; height: 18px; }
.ayp .acc__chev { margin-left: auto; transition: transform .2s ease; color: var(--ink-soft); }
.ayp details.acc[open] .acc__chev { transform: rotate(180deg); }
.ayp .acc__body { padding: 4px 18px 20px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.ayp .acc__body p { margin: 12px 0; }

/* Transcript: open-capped by default (a fixed scrollable height), full when expanded. */
.ayp .acc__body .transcript { max-height: 20rem; overflow-y: auto; }
.ayp .acc__body .transcript.is-full { max-height: none; overflow-y: visible; }
.ayp .transcript-full {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 6px 2px; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--accent-deep); text-decoration: underline;
}
.ayp .transcript-full:hover, .ayp .transcript-full:focus-visible { color: var(--navy); }

/* transcript cues - each is a clickable button that seeks the audio */
.ayp .transcript p { margin: 10px 0; }
.ayp .transcript .cue {
  display: flex; gap: 12px; width: 100%; text-align: left; align-items: baseline;
  padding: 6px 8px; margin: 2px 0; border: none; border-radius: 8px; background: none;
  font: inherit; color: inherit; cursor: pointer; transition: background .15s;
}
.ayp .transcript .cue:hover, .ayp .transcript .cue:focus-visible { background: color-mix(in srgb, var(--accent) 12%, #fff); }
.ayp .transcript .t { font-variant-numeric: tabular-nums; color: var(--accent-deep); font-weight: 600; min-width: 48px; }
.ayp .transcript .cue.active { background: var(--accent-tint); }
.ayp .transcript .cue.active .t { color: var(--accent-deep); }

/* Scroll affordance on the capped transcript pane. Non-technical learners were reading a
   full-but-clipped pane as broken (Richard). Two cues, both pure CSS:
   1. An always-visible thin scrollbar (a scrollbar only appearing on hover/scroll is the
      OS default that hid the signal). Thumb border matches the #fff pane so it reads slim.
   2. A self-hiding top/bottom fade (Lea Verou's background-attachment technique): the two
      white "cover" layers scroll WITH the content (local) and mask the two navy shadow
      layers pinned to the pane (scroll), so a soft shadow shows only when there is more to
      scroll in that direction, and disappears at each end. Applies to every type: all
      capped transcripts share the .transcript class on a white .acc__body. */
.ayp .transcript {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  background:
    linear-gradient(#fff 30%, rgba(255, 255, 255, 0)) center top,
    linear-gradient(rgba(255, 255, 255, 0), #fff 70%) center bottom,
    radial-gradient(farthest-side at 50% 0, rgba(12, 53, 92, 0.16), rgba(12, 53, 92, 0)) center top,
    radial-gradient(farthest-side at 50% 100%, rgba(12, 53, 92, 0.16), rgba(12, 53, 92, 0)) center bottom;
  background-repeat: no-repeat;
  background-size: 100% 34px, 100% 34px, 100% 12px, 100% 12px;
  background-attachment: local, local, scroll, scroll;
}
.ayp .transcript::-webkit-scrollbar { width: 11px; }
.ayp .transcript::-webkit-scrollbar-thumb {
  background: var(--line-strong); border-radius: 999px; border: 3px solid #fff;
}
.ayp .transcript::-webkit-scrollbar-track { background: transparent; }
/* When the accordion transcript is expanded to full height there is nothing to scroll, so
   drop the fade (the scrollbar rules are harmless with no overflow). */
.ayp .acc__body .transcript.is-full { background: none; }

/* Transcript search (all types): a pill input pinned above the scrolling cue pane.
   Matching lines are highlighted with <mark>; non-matches are hidden and .tx-empty
   shows when nothing matches. Wired by AYCore initTranscriptSearch. */
.ayp .tx__search { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
/* Direct child only: the search glyph. The arrow SVGs sit inside .tx-step buttons. */
.ayp .tx__search > svg {
  position: absolute; left: 12px; width: 17px; height: 17px;
  color: var(--ink-soft); pointer-events: none;
}
.ayp .tx-search {
  flex: 1 1 auto; min-width: 0;
  width: 100%; padding: 9px 14px 9px 36px; border: 1px solid var(--line-strong);
  border-radius: 999px; font: inherit; font-size: .95rem; background: #fff; color: var(--ink);
}
.ayp .tx-search::placeholder { color: var(--ink-soft); }
.ayp .tx-search:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.ayp .tx-empty { padding: 12px 4px; color: var(--ink-soft); font-size: .95rem; margin: 0; }
.ayp .cue mark { background: var(--accent-tint); color: var(--accent-ink); border-radius: 3px; padding: 0 1px; }

/* Match stepping: a live "n of N" count plus previous/next arrows, revealed once a
   search has hits. .cue--current marks the hit the media is parked on; it uses an inset
   ring rather than a fill so it reads clearly even on the .active read-along line. */
.ayp .tx-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: none; }
.ayp .tx-nav[hidden] { display: none; }   /* the class's display would otherwise beat the UA [hidden] rule */
.ayp .tx-count { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }
.ayp .tx-step {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
  color: var(--accent-deep); cursor: pointer; transition: border-color .15s, background .15s;
}
.ayp .tx-step:hover, .ayp .tx-step:focus-visible { border-color: var(--accent); background: var(--accent-tint); }
.ayp .transcript .cue--current { box-shadow: inset 0 0 0 2px var(--accent); }

/* ---- Key points / infographic (surfaced inline) ---- */
.ayp .takeaways { margin-top: 28px; }
.ayp .takeaways .sec-h { margin-top: 0; }
.ayp .takeaways figure { margin: 0; }
.ayp .takeaways img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; }
.ayp .takeaways figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 8px; }
/* Text-mode key points (no infographic asset): ticked list, styled like the objectives card */
.ayp .takeaways .kp-list {
  margin: 0; padding: 18px 20px; list-style: none; display: grid; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.ayp .takeaways .kp-list li { position: relative; padding-left: 32px; }
.ayp .takeaways .kp-list li::before {
  content: "\2713"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700;
}
.ayp .placeholder-img {
  width: 100%; aspect-ratio: 16/10; border-radius: 10px; margin-top: 0;
  border: 2px dashed var(--line); display: grid; place-items: center; color: var(--ink-soft);
  background: repeating-linear-gradient(45deg, #fbfaf8, #fbfaf8 12px, #f4f2ee 12px, #f4f2ee 24px); text-align: center; padding: 16px;
}

/* ---- Knowledge check ---- */
.ayp .kc { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #fff, var(--accent-tint) 260%); padding: 24px; }
.ayp .kc h2 { font-size: var(--fs-h2); margin: 0 0 4px; }
.ayp .kc__progress { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.ayp .q { margin: 18px 0; border: none; padding: 0; }
.ayp .q__stem { font-weight: 600; margin-bottom: 10px; }
.ayp .opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; margin: 8px 0; cursor: pointer; background: #fff; transition: border-color .12s, background .12s; }
.ayp .opt:hover { border-color: var(--accent); }
.ayp .opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent-deep); }
.ayp .opt.correct { border-color: #14795f; border-width: 2px; background: #eafaf4; }
.ayp .opt.incorrect { border-color: #c0392b; border-width: 2px; background: #fbeceb; }
.ayp .opt:has(input:disabled) { cursor: default; }
.ayp .opt__tag {
  margin-left: auto; align-self: center; font-size: 0.78rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.ayp .opt.correct .opt__tag { background: #d2f1e6; color: #0f5e49; }
.ayp .opt.incorrect .opt__tag { background: #f7dbd7; color: #9e2f27; }
.ayp .fb { margin-top: 8px; font-size: 0.95rem; padding: 10px 14px; border-radius: 10px; display: none; }
.ayp .fb.on { display: block; }
.ayp .fb.ok { background: #f0fcf8; color: #14795f; }
.ayp .fb.no { background: #fdf2f1; color: #b23b32; }
.ayp .fb__seek {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; font: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--accent-deep); cursor: pointer; text-decoration: underline;
}

/* Lesson completion / saved-state feedback (shown on pass; now backed by a real LMS call). */
.ayp .kc__complete {
  margin-top: 16px; display: none; align-items: center; gap: 12px;
  background: #eafaf4; border: 1px solid #9fdcc6; color: #0f5e49;
  border-radius: 12px; padding: 14px 16px; font-weight: 600;
}
.ayp .kc__complete.on { display: flex; }
.ayp .kc__complete svg { width: 22px; height: 22px; flex: none; }
/* Fail variant: rose, matching the incorrect-option palette. No tick icon on a fail. */
.ayp .kc__complete--fail { background: #fbeceb; border-color: #e3a59e; color: #9e2f27; }
.ayp .kc__complete--fail svg { display: none; }
/* Completion certificate call-to-action (revealed on passing the graded assessment). */
.ayp .cert-cta { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ayp .cert-cta .btn[disabled] { opacity: .6; cursor: default; }
.ayp .cert-note { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* Returning-learner notice: shown at the top of a lesson already passed, so the saved
   result and certificate are reachable without scrolling to the quiz at the foot. */
.ayp .ay-return-notice {
  margin: 0 0 22px; display: flex; align-items: flex-start; gap: 12px;
  background: #eafaf4; border: 1px solid #9fdcc6; color: #0f5e49;
  border-radius: 12px; padding: 14px 16px; font-weight: 600;
}
.ayp .ay-return-notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.ayp .ay-return-notice__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ayp .ay-return-notice__msg { margin: 0; }
.ayp .ay-return-notice .cert-cta { margin-top: 4px; }

/* ---- Buttons ---- */
.ayp .btn {
  display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 700; cursor: pointer;
  border: none; border-radius: 999px; padding: 14px 24px; background: var(--navy); color: #fff;
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.ayp .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.ayp .btn--accent { background: var(--accent); color: var(--accent-ink); }
.ayp .btn--ghost { background: #fff; color: var(--navy); border: 1px solid var(--line-strong); }
.ayp .btn svg { width: 18px; height: 18px; }
.ayp .btn-row { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---- Reflection prompt ---- */
.ayp .reflect { margin-top: 24px; padding: 18px 20px; border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: var(--radius-sm); background: #fff; }
.ayp .reflect h2 { font-size: var(--fs-h3); margin: 0 0 6px; }
.ayp .reflect label { font-weight: 600; display: block; margin-bottom: 8px; }
.ayp .reflect textarea { width: 100%; min-height: 80px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; }
.ayp .reflect .hint { font-size: 0.82rem; color: var(--ink-soft); margin: 8px 0 0; }
.ayp .reflect .saved { color: var(--accent-deep); font-weight: 600; }

/* ---- a11y note ribbon ---- */
.ayp .a11y-note { margin-top: 30px; font-size: 0.85rem; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; }
.ayp .a11y-note svg { width: 18px; height: 18px; color: #2cd1b1; flex: none; margin-top: 2px; }

/* section heading inside card */
.ayp .sec-h { font-size: var(--fs-h3); font-weight: 700; margin: 28px 0 6px; }

/* focus visibility */
.ayp a:focus-visible, .ayp button:focus-visible, .ayp summary:focus-visible,
.ayp input:focus-visible, .ayp textarea:focus-visible, .ayp [tabindex]:focus-visible {
  outline: none; box-shadow: var(--ring); border-radius: 8px;
}
/* programmatic focus targets (the content region we .focus() on load and on nav-swap to
   move the reading point for assistive tech) are not user-tabbable, so they carry no
   visible ring; the interactive controls above keep theirs. */
.ayp [tabindex="-1"]:focus, .ayp [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }

/* page-load reveal + reduced motion */
@keyframes ay-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ayp .reveal { animation: ay-rise .5s ease both; }
@media (prefers-reduced-motion: reduce) {
  .ayp * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* phone: centre wrapped player rows */
@media (max-width: 480px) {
  .ayp .player__controls { justify-content: center; }
  .ayp .player__meta { justify-content: center; }
  .ayp .player__scrub { flex-basis: 100%; }
}

/* Vimeo-embed hero (Static SCORM "vimeo" variant): fill the aspect-ratio .vstage box
   set per type (16:9 video/ms-course, 9:16 ms-shorts). The custom <video> chrome is
   absent in this variant; Vimeo's native player provides transport + captions. */
.ayp .vstage .vimeo-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* audio accent overrides (populated in Phase 2) */
