/* Loreeya Platform. Values come from tokens.css (the Loreeya design system); type scale from its README. The pages
   follow Steve's review of 25 October 2026 (docs/decisions.md, Phase 1): the client and the content's author at the top,
   Loreeya in the footer and in the player's bar, a navy band on the path's home, the capsule in a cinema mode. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins/poppins-latin-400-normal.9212f6f9860f.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/poppins/poppins-latin-500-normal.a09f2fccfee3.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins/poppins-latin-600-normal.72993dddf88a.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins/poppins-latin-700-normal.25b0e113ca7c.woff2") format("woff2"); }

/* "Done": the brand's terracotta (the orange token, 5.1:1 with white); "in progress": the action teal. */
:root { --done: var(--orange); --doing: var(--teal); --line-strong: #d5dde2; --wide: 1440px; }
/* Motion (Steve, 28 October 2026, seen again the same evening): subtle, never long, never so quick it goes unseen.
   One curve to settle (fades, gestures), one to travel (the cover's flight, the cinema, a page turning), and three
   durations, read by player.js too. Nothing moves for a person who asks for less motion (the block at the end). */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --ease-move: cubic-bezier(.45, 0, .15, 1); --fast: 180ms; --base: 320ms; --slow: 560ms; }
/* Pages change with the browser's own view transitions (js/motion.js): the header and the footer stay, the content
   fades and zooms in. On a computer the cover one clicks flies into the capsule's page, and the next capsule of the
   path slides in from the side; on a phone, only fades and zooms. */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
main { view-transition-name: page; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--base); animation-timing-function: var(--ease); }
::view-transition-group(page) { animation-duration: var(--slow); animation-timing-function: var(--ease-move); }
::view-transition-old(page) { animation: page-out var(--base) var(--ease) both; }
::view-transition-new(page) { animation: page-in var(--slow) var(--ease) both; }
::view-transition-group(capsule-cover), ::view-transition-old(capsule-cover), ::view-transition-new(capsule-cover) {
  animation-duration: var(--slow); animation-timing-function: var(--ease-move); }
@media (min-width: 900px) {
  :root:active-view-transition-type(forward)::view-transition-old(page) { animation: turn-out-left var(--slow) var(--ease-move) both; }
  :root:active-view-transition-type(forward)::view-transition-new(page) { animation: turn-in-right var(--slow) var(--ease-move) both; }
  :root:active-view-transition-type(backward)::view-transition-old(page) { animation: turn-out-right var(--slow) var(--ease-move) both; }
  :root:active-view-transition-type(backward)::view-transition-new(page) { animation: turn-in-left var(--slow) var(--ease-move) both; }
}
@keyframes page-out { to { opacity: 0; transform: scale(.99); } }
@keyframes page-in { from { opacity: 0; transform: scale(.985); } }
@keyframes turn-out-left { to { opacity: 0; transform: translateX(-56px); } }
@keyframes turn-in-right { from { opacity: 0; transform: translateX(56px); } }
@keyframes turn-out-right { to { opacity: 0; transform: translateX(56px); } }
@keyframes turn-in-left { from { opacity: 0; transform: translateX(-56px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.theater-open { overflow: hidden; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--white); }
/* The staging says so on every page (docs/plans/2026-10-29-staging-et-production-conception.md): bright orange on navy, the
   brand's pair that passes 4.5:1. */
.env-banner { margin: 0; padding: 4px 16px; background: var(--navy); color: var(--orange-bright); font-size: 13px;
  font-weight: 600; line-height: 1.4; text-align: center; }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 19.2px; }
a { color: var(--teal); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 2px; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.eyebrow { display: block; margin: 0 0 6px; font-size: 13.6px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.lead { margin: 10px 0 0; color: var(--muted); }
.help { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.h3 { font-size: 19.2px; line-height: 1.2; }

.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 20px;
  border: 2px solid var(--teal); border-radius: var(--radius-pill); background: var(--teal); color: var(--white);
  font: 600 16px/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color var(--fast), border-color var(--fast), color var(--fast), transform var(--fast) var(--ease); }
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.link-button { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--teal);
  text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--navy); }

label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); }
input[type="email"], input[type="text"] { margin-top: 6px; width: 100%; height: 48px; padding: 0 16px;
  border: 1px solid var(--muted); border-radius: var(--radius-sm); font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); }
input[aria-invalid="true"] { border: 2px solid var(--orange); }
.field-error { margin: 8px 0 0; font-size: 14px; font-weight: 500; color: var(--orange); }
.messages { margin: 20px 0 0; padding: 0; list-style: none; }
.messages li { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* Sign-in pages: the Connexion board of the MVP mockup, with the client's logo and Loreeya's, the code's sender (27 October 2026). */
.page-login { background: var(--cream); }
.login { display: flex; flex-direction: column; min-height: 80vh; max-width: 480px; margin: 0 auto; padding: 0 24px 48px; }
.brand-logos { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 36px; }
.brand-logos img { display: block; width: auto; }
.brand-logos .logo-main { height: 34px; }
.brand-logos .logo-org { height: 48px; }
.brand-logos .logo-platform { height: 22px; }
.login-main { flex-grow: 1; padding-top: 36px; }
.login h1 { font-size: 33.6px; }
.login-card { margin-top: 26px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.login-card .btn { margin-top: 14px; }
.login-card .sent { margin: 0 0 14px; font-size: 14px; line-height: 1.55; }
.login-card .resend { margin-top: 4px; }
.code-input { height: 56px !important; font-size: 24px !important; font-weight: 600; letter-spacing: .4em; text-align: center; color: var(--navy) !important; }
.notice { margin: 8px 0 0; font-size: 12.5px; }
.members-only { margin: 18px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* Header: the client on the left; on the right, Loreeya, the platform one is signed in to, and the account. The content's
   author is credited on the content: the path's band and the capsules (decisions, 27 October 2026). */
.app-header { position: sticky; top: 0; z-index: 10; background: var(--header-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; min-width: 0; text-decoration: none; }
.brand .logo-org { display: block; width: auto; height: 40px; }
.brand-name { color: var(--navy); font-weight: 700; font-size: 18px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-right .logo-platform { display: block; width: auto; height: 18px; }
.header-right .sep { width: 1px; height: 32px; background: var(--line); }
.account { position: relative; }
.account summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-round);
  background: var(--navy); color: var(--white); font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
.account summary::-webkit-details-marker { display: none; }
.account-menu { position: absolute; right: 0; top: 52px; min-width: 240px; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--card-hover); }
.account-name { margin: 0 0 2px; color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }
.account-email { margin: 0 0 10px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.account-link { margin: 0 0 10px; font-size: 14px; }

/* Footer: the navy band of loreeya.com. */
.site-footer { margin-top: 24px; padding: 56px 0 28px; background: var(--navy-2); color: var(--on-footer); font-size: 15px; line-height: 1.6; }
.footer-cols { display: grid; gap: 28px; }
.footer-logo { display: block; width: auto; height: 30px; margin-bottom: 16px; }
.footer-brand p { margin: 0; max-width: 440px; }
.site-footer a { color: var(--on-footer-link); text-decoration: none; }
.site-footer a:hover { color: var(--teal-2); }
.footer-h { margin: 0 0 12px; color: var(--white); font-size: 16px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer .teach { display: inline-block; max-width: 380px; margin-top: 16px; padding: 9px 18px; line-height: 1.4; border: 1px solid var(--ghost-line);
  border-radius: var(--radius-cta); color: var(--white); font-weight: 600; font-size: 14px; }
.site-footer .teach:hover { border-color: var(--teal-2); color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--dark-rule); font-size: 13px; }

/* Covers: the capsule's first screen; without one, its title on navy. */
.card-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-2); }
.cover-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-fallback { display: flex; align-items: center; width: 100%; height: 100%; padding: 8%;
  background: radial-gradient(120% 120% at 85% 10%, var(--navy-glow), transparent 60%), linear-gradient(135deg, var(--navy-2), var(--navy)); }
.cover-fallback span { color: var(--white); font-weight: 700; font-size: clamp(16px, 2.2vw, 26px); line-height: 1.2; }

/* The path's home: a navy band, then a grid of outlined cards. */
.home-band { position: relative; padding: 56px 0 64px; color: var(--white);
  background: radial-gradient(1100px 520px at 85% 10%, var(--navy-glow), transparent 60%), linear-gradient(135deg, var(--navy-2), var(--navy)); }
.home-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--teal-2), var(--orange-bright)); }
.band-grid { display: grid; gap: 32px; align-items: center; }
.home-band .eyebrow { color: var(--orange-bright); }
.home-band h1 { color: var(--white); line-height: 1.05; }
.band-author { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; color: var(--on-dark); font-size: 15px; }
.band-author img { display: block; width: auto; height: 22px; }
.home-band .lead { max-width: 640px; color: var(--on-dark); font-size: 18px; }
.band-progress { max-width: 520px; margin-top: 26px; }
.band-progress p { display: flex; justify-content: space-between; margin: 0 0 8px; font-weight: 600; }
.home-band .bar { background: var(--dark-tint); }
.home-band .bar span { background: var(--teal-2); }
.resume-card { display: block; overflow: hidden; border-radius: var(--radius); background: var(--white); color: var(--ink);
  text-decoration: none; box-shadow: var(--hero-image); }
.resume-card:hover { color: var(--ink); }
.resume-body { display: block; padding: 18px 22px 22px; }
.resume-body .eyebrow { font-size: 12px; }
.resume-title { display: block; color: var(--navy); font-size: 20px; font-weight: 700; line-height: 1.25; }
.resume-body .meta { display: block; margin: 4px 0 14px; color: var(--muted); font-size: 14px; }

.band-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.band-facts li { padding: 5px 14px; border: 1px solid var(--ghost-line); border-radius: var(--radius-pill); color: var(--on-dark); font-size: 14px; }

/* The route (decisions, 28 October 2026): one line per capsule on a vertical thread, like a course outline. Each step
   draws its half of the thread above and below its node, so the thread follows rows of any height; the part leading
   out of a finished step is teal and grows in a cascade; the step to resume pulses in orange. */
.home-path { padding: 56px 0; }
.route { margin: 26px 0 0; padding: 0; list-style: none; }
.route-step { --node: 40px; --split: calc(22px + var(--node) / 2); position: relative; display: grid; grid-template-columns: var(--node) minmax(0, 1fr); gap: 16px; padding: 10px 0; }
.route-step::before, .route-step::after { content: ""; position: absolute; left: calc(var(--node) / 2 - 1.5px); width: 3px; background: var(--line); }
.route-step::before { top: 0; height: var(--split); }
.route-step::after { top: var(--split); bottom: 0; }
.route-step:first-child::before, .route-step:last-child::after { display: none; }
.route-step.status-done::after, .route-step.status-done + .route-step::before { background: var(--teal); transform-origin: top;
  animation: route-grow var(--slow) var(--ease) both; animation-delay: calc(.15s + var(--i) * 60ms); }
.route-node { position: relative; z-index: 1; display: grid; place-items: center; align-self: start; margin-top: 12px; width: var(--node); height: var(--node);
  border: 2px solid var(--line-strong); border-radius: var(--radius-round); background: var(--white); color: var(--muted); font-weight: 700; font-size: 15px; }
.status-done .route-node { border-color: var(--teal); background: var(--teal); color: var(--white); }
.is-current .route-node { border-color: var(--orange-bright); background: var(--orange-bright); color: var(--white); animation: route-pulse 1.8s infinite; }
.route-card { display: grid; gap: 12px; padding: 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none;
  transition: background-color var(--base), transform var(--base) var(--ease); }
.route-card:hover { color: var(--ink); background: #f4f7f9; transform: translateX(4px); }
.is-current .route-card { background: linear-gradient(90deg, rgba(252, 124, 44, .09), rgba(252, 124, 44, 0) 75%); }
.route-cover { border: 1px solid var(--line); border-radius: 10px; }
.status-done .route-cover .cover-img { filter: saturate(.55); opacity: .8; }
.is-current .route-cover { box-shadow: 0 0 0 3px rgba(252, 124, 44, .35); }
/* The number of demos, under the cover: its line is kept even when empty, so no card differs (Steve, 29 October). */
.route-media { display: flex; flex-direction: column; }
.demo-count { display: flex; align-items: center; gap: 6px; min-height: 22px; margin-top: 8px; color: var(--teal);
  font-size: 13.5px; font-weight: 600; line-height: 1; }
.demo-count svg { flex: none; }
.capsule-main .demo-count { min-height: 26px; margin-top: 12px; font-size: 15px; }
.cover-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.35); }
.cover-progress span { display: block; height: 100%; background: var(--doing); }
.route-text { display: flex; flex-direction: column; gap: 4px; }
.route-label { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.status-done .route-label { color: var(--teal); }
.is-current .route-label { color: var(--orange); }
.route-action { color: var(--teal); font-weight: 600; font-size: 15px; white-space: nowrap; }
.route-action .btn { min-height: 46px; }
.badge { align-self: flex-start; padding: 2px 10px; border-radius: var(--radius-chip); background: var(--orange);
  color: var(--white); font-size: 12.5px; font-weight: 600; }
.card-title { color: var(--navy); font-size: 19px; font-weight: 700; line-height: 1.3; }
.card-sub { color: var(--muted); font-size: 15px; line-height: 1.5; }
@keyframes route-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes route-pulse { 0% { box-shadow: 0 0 0 0 rgba(252, 124, 44, .55); } 100% { box-shadow: 0 0 0 12px rgba(252, 124, 44, 0); } }

.sheet-card { display: grid; gap: 18px; align-items: center; margin-top: 32px; padding: 18px; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; transition: box-shadow var(--base), border-color var(--base); }
.sheet-card:hover { color: var(--ink); border-color: var(--teal); box-shadow: var(--card-hover); }
.sheet-cover { display: block; width: 120px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(1,57,94,.12); }
.sheet-cover img { display: block; width: 100%; height: auto; }
.sheet-text { display: flex; flex-direction: column; gap: 6px; }
.sheet-title { display: flex; align-items: center; gap: 10px; color: var(--navy); font-size: 20px; font-weight: 700; }
.sheet-title .pdf-icon { width: 24px; height: 30px; }
.sheet-btn { align-self: flex-start; width: auto; min-height: 44px; margin-top: 8px; padding: 0 22px; font-size: 15px; }

.home-skills { padding: 0 0 56px; }
.checks { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: var(--radius-round); background: var(--teal); }
.checks li::after { content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 5px; border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white); transform: rotate(-45deg); }

.bar { height: 10px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--teal); }
.path-progress p { display: flex; justify-content: space-between; margin: 0 0 8px; color: var(--navy); font-weight: 600; font-size: 14.5px; }

/* The capsule page: title, description, the cover that opens the cinema; the path and the resources beside it. */
.capsule-layout { display: grid; gap: 32px; padding-top: 22px; padding-bottom: 48px; }
.capsule-main { min-width: 0; }
.crumbs { margin-bottom: 14px; font-size: 15px; font-weight: 500; }
.crumbs a { text-decoration: none; }
.capsule-h1 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.capsule-desc { margin: 8px 0 0; color: var(--muted); font-size: 18px; }
.capsule-intro { margin: 12px 0 0; max-width: 68ch; font-size: 16px; line-height: 1.65; }
.capsule-meta-line { margin: 4px 0 20px; color: var(--muted); font-size: 14px; }
.done-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 12px 0 0; padding: 12px 16px;
  border-radius: var(--radius-sm); background: rgba(173, 85, 30, .08); }
.done-line p { margin: 0; color: var(--done); font-weight: 600; }
.replay { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--done);
  border-radius: var(--radius-chip); background: var(--white); color: var(--done); font: 600 14px var(--font-sans); cursor: pointer; }
.replay:hover { background: var(--done); color: var(--white); }
.capsule-meta-line .status-in_progress { color: var(--doing); font-weight: 600; }
.capsule-meta-line .status-done { color: var(--done); font-weight: 600; }
.capsule-cover { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; aspect-ratio: 16 / 9; border: 0;
  border-radius: var(--radius); background: var(--navy-2); cursor: pointer; box-shadow: 0 22px 50px rgba(1,57,94,.25);
  view-transition-name: capsule-cover; }
@media (max-width: 899px) { .capsule-cover { view-transition-name: none; } }  /* a phone: the page fades, nothing flies */
.capsule-cover .cover-img { transition: transform var(--slow) var(--ease); }
.capsule-cover:hover .cover-img { transform: scale(1.015); }
.big-play { position: absolute; inset: 0; margin: auto; display: flex; align-items: center; justify-content: center;
  width: clamp(64px, 8vw, 104px); height: clamp(64px, 8vw, 104px); border-radius: var(--radius-round); background: var(--orange-bright);
  box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.big-play::after { content: ""; margin-left: 12%; border-left: 30px solid var(--white); border-top: 19px solid transparent; border-bottom: 19px solid transparent; }
.cover-duration { position: absolute; right: 16px; bottom: 16px; padding: 4px 12px; border-radius: var(--radius-chip);
  background: rgba(0,0,0,.65); color: var(--white); font-size: 14px; font-weight: 600; }
.capsule-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.option-toggle { min-height: 42px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-chip); background: var(--white);
  color: var(--navy); font: 500 15px var(--font-sans); cursor: pointer; }
.option-toggle:hover { border-color: var(--teal); }
.option-toggle[aria-pressed="true"], .option-toggle[aria-expanded="true"] { border-color: var(--teal); background: var(--teal-tint); color: var(--teal); }
.transcript-panel { margin-top: 12px; padding: 8px 10px; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.transcript-panel .help { margin: 4px 6px 6px; }
.transcript { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.phrase { display: flex; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: none;
  color: var(--ink); font: 400 15px/1.55 var(--font-sans); text-align: left; cursor: pointer; }
.phrase:hover { background: var(--cream); }
.phrase.is-current { background: var(--teal-tint); }
.phrase-time { flex: none; color: var(--teal); font-weight: 600; font-variant-numeric: tabular-nums; }
.learn { margin-top: 30px; }
.learn .checks { font-size: 17px; }

.feedback { margin-top: 30px; padding: 20px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--cream); }
.feedback-votes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.vote { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-chip); background: var(--white); color: var(--navy); font: 600 15px var(--font-sans); cursor: pointer; }
.vote:hover { border-color: var(--teal); }
#vote-up[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: var(--white); }
#vote-down[aria-pressed="true"] { border-color: var(--done); background: var(--done); color: var(--white); }
.feedback-more { margin-top: 16px; }
.feedback-more textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 14px; border: 1px solid var(--muted);
  border-radius: var(--radius-sm); font: 15px/1.5 var(--font-sans); color: var(--ink); resize: vertical; }
.feedback-more .btn { width: auto; min-height: 44px; margin-top: 10px; padding: 0 22px; font-size: 15px; }
.feedback-thanks { margin: 12px 0 0; color: var(--teal); font-weight: 600; }

.capsule-aside { display: flex; flex-direction: column; gap: 18px; }
.aside-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.aside-card .path-progress { margin-top: 12px; }
.mini-path { display: grid; gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; }
.mini-path a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink);
  font-size: 14.5px; line-height: 1.45; text-decoration: none; }
.mini-path a:hover { background: var(--cream); color: var(--ink); }
.mini-path a.is-current { background: var(--teal-tint); font-weight: 600; color: var(--navy); }
.mini-path a.status-done { color: var(--muted); }
.capsule-check { flex: none; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 1px;
  border: 2px solid var(--line-strong); border-radius: var(--radius-round); }
.status-in_progress .capsule-check { border-color: var(--doing); }
.status-in_progress .capsule-check::after { content: ""; width: 7px; height: 7px; border-radius: var(--radius-round); background: var(--doing); }
.status-done .capsule-check { border-color: var(--done); background: var(--done); }
.status-done .capsule-check::after { content: ""; width: 8px; height: 5px; margin-top: -3px; border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white); transform: rotate(-45deg); }
.resource-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.resource-row:hover { color: var(--ink); border-color: var(--teal); }
.resource-row .pdf-icon { flex: none; width: 34px; height: 42px; }
.resource-text { display: flex; flex-direction: column; min-width: 0; }
.resource-title { color: var(--navy); font-weight: 700; }
.resource-sub { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.resource-action { margin-left: auto; color: var(--teal); font-weight: 600; font-size: 14px; }

/* The cinema mode: the capsule almost full screen on black; Loreeya in the player's bar, never over the capsule. */
.theater { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  padding: 16px; border: 0; background: #000; color: var(--white); }
.theater[open] { display: flex; align-items: center; justify-content: center; }
.theater::backdrop { background: transparent; }  /* the dialog itself is the black: it darkens as the cinema grows */
.theater-inner { display: flex; flex-direction: column; align-items: center; }
.theater .stage, .theater-bar { width: min(calc(100vw - 32px), calc((100vh - 120px) * 16 / 9));
  width: min(calc(100vw - 32px), calc((100dvh - 120px) * 16 / 9)); }
@media (min-width: 900px) { /* room on the sides for the close button, never over the capsule */
  .theater .stage, .theater-bar { width: min(calc(100vw - 160px), calc((100vh - 120px) * 16 / 9));
    width: min(calc(100vw - 160px), calc((100dvh - 120px) * 16 / 9)); }
}
.stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--navy-2); transform-origin: 0 0; }
.stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  transition: opacity var(--base) var(--ease); }
.stage-poster.is-gone { opacity: 0; }
.subtitle-line { position: absolute; left: 50%; bottom: 7%; max-width: 90%; margin: 0; padding: 6px 16px; transform: translateX(-50%);
  border-radius: 8px; background: rgba(0,0,0,.78); color: var(--white); font-size: clamp(14px, 1.6vw, 26px); line-height: 1.35; text-align: center; pointer-events: none; }
.subtitle-line:empty { visibility: hidden; }
.theater-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; color: var(--white); }
.theater-close { position: absolute; top: 14px; right: 18px; z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: var(--radius-round); background: rgba(255,255,255,.14); color: var(--white); cursor: pointer; }
.theater-close:hover { background: rgba(255,255,255,.26); }
.play { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: var(--radius-round);
  background: var(--teal); color: var(--white); cursor: pointer; }
.play:hover { background: var(--teal-2); color: var(--navy-2); }
.play .icon-pause, .play.is-playing .icon-play { display: none; }
.play.is-playing .icon-pause { display: block; }
.seek { flex: 1 1 160px; min-width: 120px; accent-color: var(--orange-bright); }
.time { color: rgba(255,255,255,.85); font-size: 14px; font-variant-numeric: tabular-nums; }
.ctl { min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: rgba(255,255,255,.12);
  color: var(--white); font: 600 14px var(--font-sans); cursor: pointer; }
.ctl:hover { background: rgba(255,255,255,.22); }
.ctl[aria-pressed="true"] { background: var(--teal); }
.ctl-icon { display: flex; align-items: center; justify-content: center; width: 44px; padding: 0; }
.click-hint { flex: 1 1 260px; margin: 0; color: rgba(255,255,255,.8); font-size: 15px; }
/* The click on a capsule with a voice: play or pause, confirmed by a symbol in the middle (Steve, 26 October 2026). */
.stage-flash { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(1, 57, 94, .72); color: #fff; opacity: 0; pointer-events: none; }
.stage-flash svg { display: none; }
.stage-flash[data-etat="lecture"] .icon-play, .stage-flash[data-etat="pause"] .icon-pause { display: block; }
.stage-flash.on { animation: stage-flash .7s ease-out; }
@keyframes stage-flash { from { opacity: 1; transform: scale(.9); } to { opacity: 0; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .stage-flash.on { animation-duration: .01s; } }
.hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) { /* a touch screen: no mouse, no arrow keys */
  .hint-pointer { display: none; }
  .hint-touch { display: block; }
}
.theater-mark { display: block; width: auto; height: 22px; margin-left: auto; opacity: .9; }
.theater-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; width: 100%; margin-top: 14px;
  padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(255,255,255,.1); }
.theater-feedback p { flex: 1 1 260px; margin: 0; font-weight: 600; }
.theater:fullscreen { padding: 0; }

/* Legal texts: one readable column. */

@media (min-width: 640px) {
  .sheet-card { grid-template-columns: 120px minmax(0, 1fr); }
  .brand .logo-org { height: 52px; }
  .header-right .logo-platform { height: 20px; }
}
@media (min-width: 900px) {
  .login-main { padding-top: 56px; }
  .footer-cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
  .band-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--gap-wide); }
  .home-band { padding: 72px 0 80px; }
  .home-path { padding: 72px 0; }
  .route-step { --node: 44px; --split: 50%; gap: 22px; }
  .route-node { align-self: center; margin-top: 0; }
  .route-card { grid-template-columns: 220px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 12px 18px 12px 12px; }
  .capsule-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; padding-top: 28px; }
  .capsule-aside { position: sticky; top: 96px; align-self: start; padding-top: 6px; }
  .brand .logo-org { height: 60px; }
  .header-right .logo-platform { height: 22px; }
  .header-right .sep { height: 40px; }
  .header-row { min-height: 88px; }
}
@media (min-width: 1100px) {
  .band-grid { grid-template-columns: minmax(0, 1fr) 420px; }
}
@media (max-width: 899px) {
  /* On a phone the resources come before the path, right under the capsule. */
  .capsule-aside .resources { order: -1; }
}

/* « Ma page » (decisions, 27 October 2026): the band takes the cover of the capsule to resume, blurred and tinted from
   the navy towards luminous blue (WGSN and Coloro's colour of 2027), slowly zooming; the content rises in a cascade;
   the progress is one segment per capsule, the one to resume pulsing in orange. */
.my-band { position: relative; overflow: hidden; padding: 44px 0 52px; color: var(--white); background: var(--navy-2); }
.my-band-photo { position: absolute; inset: -30px; background-position: center; background-size: cover;
  filter: blur(16px) saturate(1.3); opacity: .55; animation: my-zoom 22s ease-in-out infinite alternate; }
.my-band::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(2, 42, 71, .95) 0%, rgba(1, 57, 94, .82) 45%, rgba(47, 107, 255, .35) 100%); }
.my-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 4px;
  background: linear-gradient(90deg, var(--teal-2), var(--orange-bright)); }
.my-band-grid { position: relative; z-index: 2; display: grid; gap: 28px; align-items: center; }
.my-band .eyebrow { color: var(--orange-bright); }
.my-band h1 { color: var(--white); font-weight: 800; line-height: 1.05; }
.my-band .lead { max-width: 600px; color: var(--on-dark); font-size: 18px; }
.my-badge { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 5px 12px; font-size: 13.5px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .14); }
.my-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-bright); animation: my-ping 1.8s infinite; }
.my-resume { display: block; overflow: hidden; border-radius: var(--radius); background: var(--white); color: var(--ink);
  text-decoration: none; box-shadow: 0 26px 54px rgba(0, 0, 0, .35); transition: transform var(--base) var(--ease); }
.my-resume:hover { transform: translateY(-3px); color: var(--ink); }
.my-resume-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 18px; }
.my-resume-body .eyebrow { margin: 0; color: var(--orange); }
.my-resume-title { color: var(--navy); font-size: 18px; font-weight: 700; line-height: 1.3; }
.btn-orange { gap: 8px; border-color: var(--orange); background: var(--orange); }
.btn-orange:hover, .my-resume:hover .btn-orange { border-color: var(--orange-hover); background: var(--orange-hover); color: var(--white); }
.btn-orange .arrow { transition: transform var(--base) var(--ease); }
.btn-orange:hover .arrow, .my-resume:hover .arrow { transform: translateX(4px); }
.seg-head { display: flex; justify-content: space-between; gap: 12px; color: var(--navy); font-size: 13.5px; font-weight: 600; }
.segs { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 4px; margin-top: 6px; }
.segs i { height: 8px; border-radius: var(--radius-pill); background: #e2e9ee; }
.segs .seg-done { background: var(--teal); transform-origin: left;
  animation: my-seg var(--slow) var(--ease) both; animation-delay: calc(.2s + var(--i) * 50ms); }
.segs .seg-current { background: linear-gradient(90deg, var(--orange-bright), var(--orange)); animation: my-pulse 1.8s ease-in-out infinite; }
.my-paths { padding: 44px 0 60px; }
.my-category { margin: 22px 0 0; }
.path-line { display: grid; gap: 14px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: transform var(--base) var(--ease), box-shadow var(--base); }
.path-line:hover { transform: translateY(-3px); box-shadow: var(--card-hover); }
.path-line-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.path-line h3 a { color: var(--navy); text-decoration: none; }
.path-line-author { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.path-line-author img { display: block; width: auto; height: 16px; }
.path-line-link { display: inline-block; margin-top: 6px; font-size: 14px; }
.rise { animation: my-rise var(--slow) var(--ease) both; }
.rise.d1 { animation-delay: .03s; } .rise.d2 { animation-delay: .08s; } .rise.d3 { animation-delay: .13s; }
.rise.d4 { animation-delay: .2s; } .rise.d5 { animation-delay: .27s; }
@keyframes my-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes my-zoom { to { transform: scale(1.12) translate(-20px, -10px); } }
@keyframes my-seg { from { opacity: .3; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes my-pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes my-ping { 70% { box-shadow: 0 0 0 8px rgba(252, 124, 44, 0); } 0% { box-shadow: 0 0 0 0 rgba(252, 124, 44, .7); } 100% { box-shadow: 0 0 0 0 rgba(252, 124, 44, 0); } }
.trail { border-bottom: 1px solid var(--line); background: #f4f7f9; font-size: 14px; font-weight: 600; }
.trail .wrap-wide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 42px; }
.trail a { text-decoration: none; }
.trail-sep { color: var(--muted); }
@media (min-width: 900px) {
  .my-band { padding: 64px 0 72px; }
  .my-band-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
  .path-line { grid-template-columns: 180px minmax(0, 1fr) 240px 170px; align-items: center; gap: 22px; }
  .path-line .btn { min-height: 46px; }
}

/* Gestures (Steve, 28 October 2026): a press gives way a little, what opens drops in, the account menu grows from its
   button, the play button leans forward under the mouse. */
.vote, .option-toggle, .replay, .ctl, .play, .theater-close, .mini-path a, .phrase, .resource-row {
  transition: background-color var(--fast), border-color var(--fast), color var(--fast), transform var(--fast) var(--ease); }
:is(.btn, .vote, .option-toggle, .replay, .ctl, .play, .theater-close):active { transform: scale(.97); }
.big-play { transition: transform var(--base) var(--ease); }
.capsule-cover:hover .big-play { transform: scale(1.06); }
.account[open] .account-menu { transform-origin: top right; animation: pop-in var(--fast) var(--ease) both; }
.transcript-panel, .feedback, .feedback-more, .feedback-thanks, .theater-feedback, .messages li { animation: drop-in var(--base) var(--ease) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.96); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } }
/* Back from the cinema (player.js): the page comes out of the black, the cover settles back in its place. */
html.cinema-back body::after { content: ""; position: fixed; inset: 0; z-index: 200; background: #000; pointer-events: none;
  animation: veil-off var(--base) var(--ease) both; }
html.cinema-back .capsule-cover { animation: settle var(--slow) var(--ease) both; }
@keyframes veil-off { to { opacity: 0; } }
@keyframes settle { from { transform: scale(1.03); } }

@media (prefers-reduced-motion: reduce) {
  .my-band-photo, .rise, .segs i, .my-badge span { animation: none; }
  .my-resume, .path-line, .btn-orange .arrow { transition: none; }
  .route-step::before, .route-step::after, .route-node { animation: none !important; }
  .route-card, .big-play, .capsule-cover .cover-img, .stage-poster { transition: none; }
  :is(.btn, .vote, .option-toggle, .replay, .ctl, .play, .theater-close):active { transform: none; }
  .account[open] .account-menu, .transcript-panel, .feedback, .feedback-more, .feedback-thanks, .theater-feedback, .messages li { animation: none; }
}

/* The reference sheet's page (templates/learning/reference_page.html): back, the title, the button that prints, and the
   studio's page below at its full height, white on cream (decisions, Phase 1, 29 October 2026). */
.sheet-view { padding-block: 24px 56px; background: var(--cream); }
.sheet-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.sheet-back { flex-basis: 100%; color: var(--teal); font-weight: 600; text-decoration: none; }
.sheet-back:hover { text-decoration: underline; }
.sheet-heading .eyebrow { margin: 0 0 4px; }
.sheet-heading h1 { margin: 0; }
.sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sheet-pdf { color: var(--teal); font-weight: 600; }
.sheet-frame { display: block; width: 100%; min-height: 80vh; border: 0; background: var(--white); box-shadow: 0 2px 16px rgba(1, 57, 94, .12); }
