/* ==========================================================================
   WISDOM — long-form reading page.
   Layout: sticky table of contents (left, desktop) + chapters (right).
   Below 1024px the table of contents becomes a sticky chip row.
   Extends ../style.css tokens only; no new fonts, colours or libraries.

   Apple-design notes (shared layer: window.PSSM springs, data-press, data-glass, html[data-nav-state]):
   - motion is transform / opacity / clip only; JS owns springs, CSS owns state and fallbacks
   - the sticky bars follow the floating nav (data-nav-state) instead of hiding behind it
   - every translucent surface carries data-glass and has an explicit solid / high-contrast fallback below
   - tracking is size-specific: tight display, ~0 body, open small caps
   ========================================================================== */

.section--read { padding-top: clamp(24px, 4vw, 56px); }

/* ---------- Reading frame ---------- */
.read { display: block;
  /* Where a chapter lands after a jump: below the floating nav if it will be showing, clear of the chip row on phones. */
  --anchor-down: 28px; --anchor-up: 104px; }
.read__body { min-width: 0; }

@media (min-width: 1024px) {
  .read { display: grid; grid-template-columns: 14rem minmax(0, 1fr); column-gap: clamp(48px, 6vw, 88px); align-items: start; }
}
@media (max-width: 1023.98px) { .read { --anchor-down: 88px; --anchor-up: 164px; } }

/* ---------- Table of contents ---------- */
.toc { position: sticky; top: 28px; z-index: 30; --read: 0; --fade-l: 0px; --fade-r: 0px;
  transition: top var(--dur-spring) var(--ease-spring); }
/* Wayfinding follows the nav: when the floating bar is showing, the contents sit below it (no overlap). */
html[data-nav-state='shown'] .toc { top: 104px; }

.toc__list { position: relative; list-style: none; margin: 0; padding: 0; }
.toc__link { position: relative; display: block; min-height: 44px; padding: 10px 0 10px 22px;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.3; letter-spacing: var(--track-body); color: rgba(255, 255, 255, 0.78);
  transition: color var(--dur-hover) var(--ease), transform var(--dur-spring) var(--ease-spring), background-color var(--dur-hover) var(--ease); }
.toc__link::before { content: ''; position: absolute; left: -3px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  transform: translateY(-50%) scale(0); transition: transform var(--dur-spring) var(--ease-spring); }
@media (hover: hover) { .toc__link:hover { color: var(--white); } }
.toc__link:active { color: var(--white); transition-duration: 0s; }
.toc__link[aria-current] { color: var(--white); transform: translateX(4px); }
.toc__link[aria-current]::before { transform: translate(-4px, -50%) scale(1); }

.toc__rail { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); overflow: hidden; pointer-events: none; }
.toc__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--read)); will-change: transform; }

/* One dot travels the rail between chapters (a spring, stretched a little by its own speed). It replaces the per-link
   dots; under reduced motion it is removed and the per-link dots come back (see the end of this file). */
.toc__dot { position: absolute; left: -3px; top: 0; z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0; pointer-events: none;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 28%, transparent); will-change: translate, scale, opacity; }
.toc.has-dot .toc__link::before { display: none; }

@media (max-width: 1023.98px) {
  /* A toolbar: a structural region, so the heavier material with a bright top edge. Content scrolls under it. */
  .toc { top: 0; margin: 0 calc(var(--gutter) * -1) clamp(48px, 9vw, 72px); padding: 10px var(--gutter) 12px;
    background: var(--glass-thick); box-shadow: var(--edge-top), 0 18px 36px -24px rgba(var(--tint-rgb), 0.9);
    backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); }
  html[data-nav-state='shown'] .toc { top: 76px; }
  /* Soft edges tell you the row scrolls (and which way) without a hard divider. JS feeds --fade-l / --fade-r. */
  .toc__list { display: flex; gap: 8px; overflow-x: auto; padding: 3px 3px; margin: 0 -3px; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%); }
  .toc__list::-webkit-scrollbar { display: none; }
  .toc__link { display: flex; align-items: center; flex: none; white-space: nowrap; padding: 0 18px; border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34); color: rgba(255, 255, 255, 0.92); transition: background-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease); }
  .toc__link::before, .toc__dot { display: none; }
  .toc__link:focus-visible { border-radius: 999px; }
  .toc__link:active { background: rgba(255, 255, 255, 0.18); }
  .toc__link[aria-current] { background: var(--white); color: var(--ink-soft); box-shadow: none; transform: none; }
  .toc__rail { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 2px; border-radius: 0; }
  .toc__fill { transform-origin: left; transform: scaleX(var(--read)); }
}

/* ---------- Chapters ---------- */
.chapter { scroll-margin-top: var(--anchor-down); }
html[data-nav-state='shown'] .chapter { scroll-margin-top: var(--anchor-up); }
.chapter__title:focus { outline: none; }
.chapter__title:focus-visible { outline: 2px solid var(--white); outline-offset: 10px; }
.chapter + .chapter, .chapter + .interlude, .interlude + .chapter { margin-top: clamp(104px, 15vw, 208px); }
.chapter__title { margin: 0 0 clamp(36px, 5vw, 64px); font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 500; line-height: 1; letter-spacing: var(--track-display); text-wrap: balance; }
.sub { margin: clamp(64px, 9vw, 112px) 0 22px; font-size: clamp(1.45rem, 2.8vw, 2.1rem); font-weight: 500; line-height: 1.08; letter-spacing: var(--track-title); }
.sub--tight { margin: 0 0 14px; }

/* Inline picture inside a heading (same move as the home page's "mind, [photo] energize"). */
.chapter__title--inline { display: block; }
.inline-img { display: inline-block; width: 1.45em; height: 0.82em; margin: 0 0.06em; vertical-align: -0.06em; border-radius: 0.14em; object-fit: cover; object-position: center 45%; }

/* Shared tinted-photo treatment: pulls the green source art toward the purple sky. */
.tenet__fig, .banner, .nots__item { isolation: isolate; }
.tenet__fig::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.12), rgba(var(--tint-rgb), 0.34)); }

/* ---------- Chapter: Anapanasati ---------- */
.roots { display: grid; gap: 12px; margin: 0 0 clamp(56px, 8vw, 104px); }
@media (min-width: 640px) { .roots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.roots__item { margin: 0; min-height: 190px; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--radius-card); display: flex; flex-direction: column; justify-content: space-between; gap: clamp(28px, 5vw, 56px); }
.roots__item--glass { background: var(--glass); box-shadow: var(--edge-top), var(--edge-ring), 0 30px 60px -40px rgba(var(--tint-rgb), 0.9); }
.roots__item--light { background: var(--card); color: var(--card-ink); }
.roots__word { margin: 0; font-size: clamp(2.7rem, 6.2vw, 4.3rem); font-weight: 500; line-height: 0.9; letter-spacing: var(--track-display); }
.roots__item--light .roots__word { color: var(--card-ink); }
.roots__mean { margin: 0; font-family: var(--font-body); font-size: 1.15rem; line-height: 1.25; letter-spacing: var(--track-body); }
.roots__mean span { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: var(--track-caps); text-transform: uppercase; opacity: 0.82; }
.roots__item--light .roots__mean { color: var(--item-ink); }
.roots__item--light .roots__mean span { opacity: 1; }

.tenet { display: grid; gap: 22px; align-items: center; }
@media (min-width: 720px) { .tenet { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); } }
.tenet__fig { position: relative; margin: 0; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 3; }
.tenet__fig img { width: 100%; height: 100%; object-fit: cover; }
.tenet__stem { margin: 0 0 14px; font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; color: rgba(255, 255, 255, 0.82); }
.tenet__big { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.65rem); font-weight: 500; line-height: 1.1; letter-spacing: var(--track-display); text-wrap: balance; }

.banner { position: relative; display: flex; align-items: flex-end; margin: clamp(20px, 3vw, 32px) 0 0; min-height: clamp(300px, 44vw, 460px); border-radius: var(--radius-card); overflow: hidden; }
.banner img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.banner::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(var(--tint-rgb), 0.95) 0%, rgba(var(--tint-rgb), 0.74) 36%, rgba(var(--tint-rgb), 0.16) 76%, rgba(var(--bg-rgb), 0.1) 100%); }
.banner__text { margin: 0; max-width: 22ch; padding: clamp(24px, 4vw, 48px); font-size: clamp(1.8rem, 3.8vw, 3rem); font-weight: 500; line-height: 1.04; letter-spacing: var(--track-display); text-wrap: balance; }

/* The four "what it does not involve" tiles. On a mouse the photo leans toward the pointer and settles back like a
   weight on a spring (page.js: [data-hover-img]); JS owns the scale / translate, so there is no CSS hover zoom. */
.nots { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-auto-flow: dense; }
.nots__item { position: relative; display: flex; align-items: flex-end; min-height: 260px; border-radius: var(--radius-card); overflow: hidden; }
.nots__item img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.nots__item::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(var(--tint-rgb), 0.95) 0%, rgba(var(--tint-rgb), 0.7) 40%, rgba(var(--tint-rgb), 0.12) 82%); }
.nots__text { margin: 0; padding: 22px 24px 24px; font-family: var(--font-body); font-size: clamp(1.1rem, 1.9vw, 1.35rem); line-height: 1.25; letter-spacing: var(--track-body); }
.nots__text strong { font-family: var(--font-display); font-weight: 500; letter-spacing: var(--track-body); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
@media (min-width: 700px) {
  .nots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .nots__item { grid-column: span 2; }
  .nots__item:nth-child(1) { grid-column: span 4; }
  .nots__item:nth-child(2) { grid-row: span 2; }
  .nots__item:nth-child(2) .nots__text { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
}

/* ---------- Chapter: the procedure ---------- */
.procedure { display: grid; gap: 14px; align-items: stretch; }
@media (min-width: 760px) { .procedure { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(16px, 2.4vw, 24px); } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 12px; }
@media (min-width: 760px) { .steps { grid-auto-rows: 1fr; } }
.step { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 2.4vw, 24px); padding: clamp(18px, 2.4vw, 26px) clamp(20px, 2.6vw, 28px); border-radius: 24px; }
.step::before { content: counter(step); min-width: 0.7em; font-size: clamp(2.8rem, 5vw, 4rem); font-weight: 500; line-height: 0.85; letter-spacing: var(--track-display); color: var(--accent); }
.step p { margin: 0; font-family: var(--font-body); font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.4; letter-spacing: var(--track-body); }
.step--essence { background: var(--white); color: var(--ink-soft); border-radius: 24px; box-shadow: 0 30px 60px -36px rgba(var(--tint-rgb), 0.9); }
.step--essence::before { color: var(--dial); }
.step--essence p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.12; letter-spacing: var(--track-title); }
/* The four steps arrive in order, each on its own spring (page.js initSteps). Held invisible until the list is in view. */
.js [data-seq='wait'] > .step { opacity: 0; }

.posture { margin: 0; overflow: hidden; border-radius: var(--radius-card); background: var(--card); color: var(--card-ink); }
.posture img { width: 100%; height: auto; aspect-ratio: 435 / 371; object-fit: cover; }
.posture figcaption { padding: clamp(20px, 2.6vw, 28px); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; letter-spacing: var(--track-body); color: var(--card-ink); }
.posture__label { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--item-ink); }

/* ---------- Chapter: what happens (progress path) ----------
   The line fills 1:1 with scroll. Each stage is lit by its own spring (--k, 0 to 1, set by page.js), which fades its
   text up, blooms its dot and settles from wherever it is, so scrolling back and forth never snaps. */
.path { --p: 0; --gap: clamp(36px, 6vw, 72px); position: relative; list-style: none; margin: 0; padding: 0 0 0 var(--gap); }
.path::before, .path::after { content: ''; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; }
.path::before { background: rgba(255, 255, 255, 0.22); }
.path::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--p)); will-change: transform; }
.path__item { position: relative; padding: 0 0 clamp(40px, 7vw, 88px); font-size: clamp(1.4rem, 2.7vw, 2rem); font-weight: 500; line-height: 1.13; letter-spacing: var(--track-title); text-wrap: balance; }
.path__item:last-child { padding-bottom: 0; }
.path__item::before, .path__item::after { content: ''; position: absolute; left: calc(var(--gap) * -1 + 4px); top: 0.3em; width: 16px; height: 16px; border-radius: 50%; pointer-events: none; }
.path__item::before { background: var(--bg); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
.path__item::after { background: var(--accent); box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 30%, transparent);
  opacity: var(--k, 0); scale: calc(0.45 + 0.55 * var(--k, 0)); }
.path__item:nth-child(2) { font-size: clamp(1.5rem, 3.1vw, 2.35rem); }
.path__item:nth-child(3) { font-size: clamp(1.6rem, 3.5vw, 2.7rem); letter-spacing: var(--track-display); }
.path__item:nth-child(4) { font-size: clamp(1.8rem, 4.2vw, 3.3rem); line-height: 1.05; letter-spacing: var(--track-display); }
.path__item:nth-child(4)::after { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 28px 6px color-mix(in srgb, var(--accent) 45%, transparent); }
.js .path__item { opacity: calc(0.55 + 0.45 * var(--k, 0)); }

/* ---------- Key statement between chapters ---------- */
.interlude { position: relative; margin-block: 0; margin-inline: 0; padding-top: clamp(8px, 2vw, 24px); }
.interlude::before { content: '\201C'; content: '\201C' / ''; display: block; margin-bottom: -0.2em; font-size: clamp(5rem, 11vw, 9rem); line-height: 0.8; font-weight: 500; color: var(--accent); opacity: 0.85; }
.interlude__text { margin: 0; font-size: clamp(2rem, 4.8vw, 3.9rem); font-weight: 500; line-height: 1.04; letter-spacing: var(--track-display); }
.interlude__cite { margin-top: clamp(24px, 3vw, 36px); }
.interlude__cite cite { font-style: normal; font-family: var(--font-body); font-size: 13px; letter-spacing: var(--track-caps); text-transform: uppercase; color: rgba(255, 255, 255, 0.86); }

/* ---------- Chapter: pyramid meditation ---------- */
.pyr { --pull: clamp(36px, 6vw, 64px); display: grid; margin: clamp(40px, 6vw, 72px) 0 var(--pull); }
.pyr > * { grid-area: 1 / 1; }
.pyr__fig { margin: 0; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 1 / 1; }
@media (min-width: 700px) { .pyr__fig { aspect-ratio: 16 / 11; } }
.pyr__fig img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.pyr__card { align-self: end; justify-self: start; z-index: 2; margin: 0 0 calc(var(--pull) * -1) clamp(12px, 3vw, 36px); max-width: min(27rem, calc(100% - 24px));
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-card); background: var(--card); color: var(--card-ink); box-shadow: 0 40px 70px -34px rgba(var(--tint-rgb), 0.95); }
.pyr__card p { margin: 0; font-size: clamp(1.35rem, 2.5vw, 1.9rem); font-weight: 500; line-height: 1.1; letter-spacing: var(--track-title); }

/* The video button: pressed in on pointer-down (shared press layer scales the whole button), the play disc dips a
   little further, and the shared modal opens from this button's own centre. Hover lift is for real hover only. */
.watch-wrap { margin: clamp(40px, 6vw, 64px) 0; }
.watch { display: flex; align-items: center; gap: 18px; width: 100%; padding: 16px 22px 16px 16px; border-radius: 24px; text-align: left;
  background: var(--glass); box-shadow: var(--edge-top), var(--edge-ring);
  transition: transform var(--dur-spring) var(--ease-spring), box-shadow var(--dur-hover) var(--ease), background-color var(--dur-hover) var(--ease); }
@media (hover: hover) {
  .watch:hover { transform: translateY(var(--lift-s)); box-shadow: var(--edge-top), inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 22px 40px -26px rgba(var(--tint-rgb), 0.95); }
  .watch:hover .watch__play { transform: scale(1.06); }
}
.watch__play { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; padding-left: 3px; background: var(--accent); color: var(--white); transition: transform var(--dur-spring) var(--ease-spring); }
.watch:active .watch__play { transform: scale(0.9); transition-duration: var(--dur-press); }
.watch:focus-visible { border-radius: 24px; }
.watch__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.watch__title { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 500; line-height: 1.1; letter-spacing: var(--track-title); }
.watch__meta { font-family: var(--font-body); font-size: 14px; letter-spacing: var(--track-small); color: rgba(255, 255, 255, 0.82); }
@media (min-width: 760px) { .watch { width: auto; min-width: 26rem; } }

.signif { display: grid; gap: 22px; align-items: center; }
@media (min-width: 720px) { .signif { grid-template-columns: 11rem minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); } }
.signif__svg { width: min(11rem, 60%); height: auto; justify-self: center; color: var(--accent); overflow: visible; }
.signif__svg path, .signif__svg circle { stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.signif__hidden { stroke-dasharray: 3 5; opacity: 0.6; }
.signif__face--a { fill: rgba(255, 255, 255, 0.08); }
.signif__face--b { fill: rgba(255, 255, 255, 0.2); }
.signif__apex { fill: var(--white); stroke: none; }
.signif__text p { margin: 0; font-family: var(--font-body); font-size: clamp(1rem, 1.1vw, 1.0625rem); line-height: 1.7; letter-spacing: var(--track-body); color: rgba(255, 255, 255, 0.92); max-width: 62ch; }

/* ---------- Chapter: plant-based diet ---------- */
.holistic__fig { margin: 0 0 clamp(14px, 2vw, 20px); border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 5; }
@media (min-width: 640px) { .holistic__fig { aspect-ratio: 16 / 10; } }
.holistic__fig img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.holistic { display: grid; gap: 14px; grid-auto-flow: dense; }
@media (min-width: 720px) { .holistic { grid-template-columns: repeat(2, minmax(0, 1fr)); } .holistic__p--lead, .holistic__p--close { grid-column: 1 / -1; } }
.holistic__p { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; letter-spacing: var(--track-body); color: rgba(255, 255, 255, 0.92); }
.holistic__p strong { font-family: var(--font-display); font-weight: 500; color: var(--white); letter-spacing: var(--track-body); }
.holistic__p--lead { font-family: var(--font-display); font-size: clamp(1.25rem, 2.5vw, 1.85rem); font-weight: 500; line-height: 1.22; letter-spacing: var(--track-title); color: var(--white); }
.holistic__p--close { padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radius-card); background: var(--card); color: var(--card-ink); font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.15; letter-spacing: var(--track-title); }

/* ---------- Chapter: 18 principles (accordion) ----------
   Each panel opens on a critically damped spring driven from page.js: height (a measured wrapper), the text fading in
   behind it, and the chevron's rotation all follow one value, so a click mid-way reverses from where it is. */
.acc-tools { display: none; justify-content: flex-end; margin: -12px 0 16px; }
.js .acc-tools { display: flex; }
.acc-tools .btn { min-height: 44px; }

.acc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acc__item { border-radius: 22px; background: rgba(255, 255, 255, 0.07); box-shadow: var(--edge-top), var(--edge-ring); transition: background-color var(--dur-hover) var(--ease); }
.acc__item.is-open { background: rgba(255, 255, 255, 0.12); }
.acc__h { margin: 0; font-size: inherit; font-weight: inherit; }
.acc__btn, .acc__row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 16px 16px 16px 20px; border-radius: 22px; text-align: left; }
.acc__row { grid-template-columns: 2.6rem minmax(0, 1fr); padding-right: 20px; }
.acc__btn { cursor: pointer; transition: background-color var(--dur-hover) var(--ease); }
@media (hover: hover) {
  .acc__btn:hover { background: rgba(255, 255, 255, 0.07); }
  .acc__btn:hover .acc__chev { background: rgba(255, 255, 255, 0.2); }
}
.acc__btn:active { background: rgba(255, 255, 255, 0.12); transition-duration: 0s; }
.acc__btn:active .acc__chev { background: rgba(255, 255, 255, 0.28); transition-duration: 0s; }
.acc__btn:focus-visible { border-radius: 22px; outline-offset: -4px; }
.acc__n { font-size: 1.7rem; font-weight: 500; line-height: 1; letter-spacing: var(--track-title); color: var(--accent); }
.acc__t { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.4; letter-spacing: var(--track-body); color: var(--white); }
.acc__chev { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); transition: background-color var(--dur-hover) var(--ease); }
/* The resting pose; while it moves, page.js writes the same independent `rotate` inline. */
.acc__item.is-open .acc__chev { rotate: 180deg; }
.js .acc__panel { overflow: hidden; }
.acc__inner { padding: 0 24px 24px calc(20px + 2.6rem + 14px); }
.acc__inner p { margin: 0; max-width: 62ch; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.75; letter-spacing: var(--track-body); color: rgba(255, 255, 255, 0.92); }
.acc__inner strong { color: var(--white); font-weight: 600; }
@media (max-width: 599.98px) {
  .acc__btn, .acc__row { grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 10px; padding-left: 16px; }
  .acc__row { grid-template-columns: 2rem minmax(0, 1fr); }
  .acc__inner { padding: 0 18px 22px 18px; }
}

/* ---------- Chapter: 13 practices ---------- */
.pr__intro { display: grid; gap: 24px; align-items: center; margin-bottom: clamp(36px, 5vw, 56px); }
@media (min-width: 720px) { .pr__intro { grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); } }
.pr__fig { margin: 0; width: min(15rem, 100%); aspect-ratio: 1 / 1; border-radius: var(--radius-card); overflow: hidden; }
.pr__fig img { width: 100%; height: 100%; object-fit: cover; }
.pr__big { margin: 0 0 14px; font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 500; line-height: 1.06; letter-spacing: var(--track-display); text-wrap: balance; }
.pr__small { margin: 0; max-width: 46ch; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; letter-spacing: var(--track-body); color: rgba(255, 255, 255, 0.9); }

.pr { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-auto-flow: dense; }
@media (min-width: 700px) { .pr { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pr__item--wide { grid-column: 1 / -1; } }
.pr__item { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.6vw, 28px); border-radius: 24px;
  background: var(--glass); box-shadow: var(--edge-top), var(--edge-ring); }
.pr__n { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 500; line-height: 0.85; letter-spacing: var(--track-display); color: var(--accent); }
.pr__t { margin: 0; font-family: var(--font-body); font-size: 1.125rem; line-height: 1.4; letter-spacing: var(--track-body); }
.pr__body { margin: 0; max-width: 56ch; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; letter-spacing: var(--track-body); }
.pr__item--wide .pr__t { font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 500; line-height: 1.12; letter-spacing: var(--track-title); max-width: 30ch; }
.pr__item--light { background: var(--card); color: var(--card-ink); box-shadow: none; }
.pr__item--light .pr__n { color: var(--dial); }
.pr__item--white { background: var(--white); color: var(--ink-soft); box-shadow: 0 30px 60px -36px rgba(var(--tint-rgb), 0.9); }
.pr__item--white .pr__n { color: var(--dial); }

/* Focus rings that stay visible on light surfaces. */
.roots__item--light :focus-visible, .pyr__card :focus-visible, .posture :focus-visible, .pr__item--light :focus-visible, .pr__item--white :focus-visible, .step--essence :focus-visible { outline-color: var(--card-ink); }

/* ---------- Accessibility: transparency and contrast ----------
   style.css already flattens .panel and [data-glass]. Page surfaces that set their own background load after it and
   would win on equal specificity, so they restate the fallbacks here (class + [data-glass]). */
@media (prefers-reduced-transparency: reduce) {
  .roots__item--glass[data-glass], .watch[data-glass], .acc__item[data-glass], .pr__item[data-glass] { background: rgb(var(--tint-rgb)); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .acc__item[data-glass].is-open { background: rgb(var(--bg-rgb)); }
  .acc__btn:hover, .acc__btn:active { background: rgb(var(--bg-rgb)); }
}
@media (prefers-reduced-transparency: reduce) and (max-width: 1023.98px) {
  .toc { background: rgb(var(--tint-rgb)); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .roots__item--glass[data-glass], .watch[data-glass], .acc__item[data-glass], .pr__item[data-glass] { background: rgb(var(--tint-rgb)); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 2px var(--white); }
  .acc__item[data-glass].is-open { background: rgb(var(--bg-rgb)); }
  .watch:hover { box-shadow: inset 0 0 0 2px var(--white); }
  .toc__link { color: var(--white); }
  .toc__rail { background: var(--white); }
  .step { box-shadow: inset 0 0 0 2px var(--white); }
  .step--essence { box-shadow: inset 0 0 0 2px var(--ink-soft); }
  .pr__item--white, .pyr__card { box-shadow: inset 0 0 0 2px var(--card-ink); }
  .pyr__card { background: var(--white); }
  .acc__t, .acc__inner p, .holistic__p, .signif__text p, .pr__small, .watch__meta { color: var(--white); }
}
@media (prefers-contrast: more) and (max-width: 1023.98px) {
  .toc { background: rgb(var(--tint-rgb)); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 -2px 0 var(--white); }
  .toc__link { box-shadow: inset 0 0 0 2px var(--white); }
  .toc__link[aria-current] { box-shadow: none; }
}

/* ---------- Reduced motion: no travel, no springs, everything fully visible ----------
   JS gives the accordion, steps and chip row cross-fades or plain jumps; here the CSS side goes static. */
@media (prefers-reduced-motion: reduce) {
  .js .path__item { opacity: 1; }
  .path__item::after { opacity: 1; scale: 1; }
  .path::after { transform: none; }
  .toc { transition: none; }
  .toc__fill { transition: none; }
  .toc__dot { display: none; }
  .toc__link[aria-current], .toc__link[aria-current]::before { transform: none; }
  .nots__item img { translate: none; scale: none; }
  .watch, .watch:hover, .watch__play, .watch:hover .watch__play, .watch:active .watch__play { transform: none; }
}
/* Desktop rail without the travelling dot: the per-link dots return and simply appear. */
@media (prefers-reduced-motion: reduce) and (min-width: 1024px) {
  .toc.has-dot .toc__link::before { display: block; }
  .toc.has-dot .toc__link[aria-current]::before { transform: translateY(-50%) scale(1); }
}
