/* ==========================================================================
   KuumbaPro / Joy Up 30 Second Joy Reset(TM)
   One stylesheet. One design system. Do not fork per page.

   Palette is drawn from the ebook's own cover: a bare tree at sunrise.
   Warm ink, warm paper, sunrise gold. Deliberately not the blue of the
   current Wix site, and deliberately not a clinical wellness palette.
   ========================================================================== */

:root {
  /* light is the default and is fully defined here */
  --paper:        #FBF8F3;
  --paper-2:      #F3EDE1;
  --paper-3:      #E9E0CF;
  --ink:          #1A1713;
  --ink-2:        #554C41;
  --ink-3:        #6B6052;   /* AA on --paper-2, where it is most used */
  --gold:         #A8681C;
  --gold-2:       #C98A2E;
  --gold-text:    #8A5313;   /* text-only, AA on paper (5.96), paper-2 (5.41), sage-soft (5.15) */
  --gold-soft:    #F6E7CC;
  --sage:         #2C4A3E;
  --sage-soft:    #E2EAE4;
  --line:         rgba(26, 23, 19, 0.13);
  --line-strong:  rgba(26, 23, 19, 0.26);
  --shadow:       0 1px 2px rgba(26,23,19,.05), 0 8px 28px rgba(26,23,19,.07);
  --shadow-lg:    0 2px 6px rgba(26,23,19,.06), 0 24px 60px rgba(26,23,19,.12);
  --hero-grad:    radial-gradient(120% 90% at 50% 8%, #FFF6E4 0%, #FBF1DC 38%, var(--paper) 78%);

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;

  --wrap: 1120px;
  --wrap-narrow: 720px;
  --radius: 14px;
  --radius-lg: 22px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:       #141210;
    --paper-2:     #1D1A16;
    --paper-3:     #26221C;
    --ink:         #F6F1E8;
    --ink-2:       #C3B9A9;
    --ink-3:       #978C7C;
    --gold:        #E3A945;
    --gold-2:      #F0BE64;
    --gold-text:   #E3A945;  /* dark ground: gold already passes AA */
    --gold-soft:   #33281a;
    --sage:        #A8CDB9;
    --sage-soft:   #1C2B24;
    --line:        rgba(246, 241, 232, 0.14);
    --line-strong: rgba(246, 241, 232, 0.30);
    --shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.5);
    --shadow-lg:   0 2px 6px rgba(0,0,0,.45), 0 24px 60px rgba(0,0,0,.6);
    --hero-grad:   radial-gradient(120% 90% at 50% 8%, #2A2118 0%, #1E1A14 42%, var(--paper) 80%);
  }
}

:root[data-theme="dark"] {
  --paper:       #141210;
  --paper-2:     #1D1A16;
  --paper-3:     #26221C;
  --ink:         #F6F1E8;
  --ink-2:       #C3B9A9;
  --ink-3:       #978C7C;
  --gold:        #E3A945;
  --gold-2:      #F0BE64;
  --gold-text:   #E3A945;
  --gold-soft:   #33281a;
  --sage:        #A8CDB9;
  --sage-soft:   #1C2B24;
  --line:        rgba(246, 241, 232, 0.14);
  --line-strong: rgba(246, 241, 232, 0.30);
  --shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.5);
  --shadow-lg:   0 2px 6px rgba(0,0,0,.45), 0 24px 60px rgba(0,0,0,.6);
  --hero-grad:   radial-gradient(120% 90% at 50% 8%, #2A2118 0%, #1E1A14 42%, var(--paper) 80%);
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p  { margin: 0 0 1.1em; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* -------------------------------------------------------------- layout -- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band { background: var(--paper-2); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink h1, .band-ink h2, .band-ink h3 { color: var(--paper); }
.band-ink .lede, .band-ink p { color: rgba(251,248,243,.82); }
.band-ink .eyebrow { color: var(--gold-2); }
.band-ink .btn-ghost { color: inherit; border-color: color-mix(in srgb, currentColor 45%, transparent); }
.band-ink .btn-ghost:hover { color: var(--gold-2); border-color: var(--gold-2); }
/* the .band-ink flip lives inside the dark-mode branches only. The old rule
   applied unconditionally because the site never sets data-theme, which
   dropped near-white text onto light beige on the guide, practice CTA, and
   work CTA bands. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band-ink { background: var(--paper-3); color: var(--ink); }
  :root:not([data-theme="light"]) .band-ink h1,
  :root:not([data-theme="light"]) .band-ink h2,
  :root:not([data-theme="light"]) .band-ink h3 { color: var(--ink); }
  :root:not([data-theme="light"]) .band-ink p,
  :root:not([data-theme="light"]) .band-ink .lede { color: var(--ink-2); }
}
:root[data-theme="dark"] .band-ink { background: var(--paper-3); color: var(--ink); }
:root[data-theme="dark"] .band-ink h1,
:root[data-theme="dark"] .band-ink h2,
:root[data-theme="dark"] .band-ink h3 { color: var(--ink); }
:root[data-theme="dark"] .band-ink p,
:root[data-theme="dark"] .band-ink .lede { color: var(--ink-2); }

/* --------------------------------------------------------- typography -- */
.eyebrow {
  font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text);
  margin: 0 0 1rem;
}
.lede { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }
/* .mark and .tm removed as one-offs; Wix rich text would drop them anyway. */

/* pull quote, used for his verbatim lines */
.quote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.9vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding: .1em 0 .1em 1.15em;
  margin: 2rem 0;
  max-width: 30ch;
}
.quote.wide { max-width: 46ch; }
.quote cite { display: block; font-family: var(--sans); font-size: .8rem; font-style: normal;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 1rem; }

/* ------------------------------------------------------------ buttons -- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-1.5px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--gold-2); color: #1A1713; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold-text); color: var(--gold-text); }
.btn-gold { background: var(--gold-2); color: #16130F; }        /* AA: 6.31:1 */
.btn-gold:hover { background: var(--gold-2); box-shadow: var(--shadow); }
.btn-sm { padding: .6rem 1.05rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* --------------------------------------------------------------- nav --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.1rem; padding: .85rem 0;
  width: min(100% - 2.5rem, 1280px); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(150deg, var(--gold-2), var(--gold));
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: #16130F;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-sub { font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.nav-links { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.nav-links > * { flex: 0 0 auto; white-space: nowrap; }
/* :not(.btn) matters. Without it this rule outranks .btn-sm on specificity
   (0,1,1 vs 0,1,0) and zeroes the CTA pill's horizontal padding. */
.nav-links a:not(.btn) {
  text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink-2);
  padding: .3rem 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line-strong);
  border-radius: 9px; padding: .5rem .7rem; cursor: pointer; color: var(--ink); }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow);
  }
  .nav-links:not(.open) { display: none; }
  .nav-links a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: .9rem; justify-content: center; }
}

/* -------------------------------------------------------------- hero --- */
.hero { background: var(--hero-grad); padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: end; }
.hero-copy { padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero h1 { margin-bottom: .55em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-photo { position: relative; align-self: end; margin-bottom: -2px; }
.hero-photo img { width: 100%; filter: drop-shadow(0 30px 50px rgba(26,23,19,.22)); }
.hero-photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%;
  background: linear-gradient(to top, var(--paper) 8%, transparent);
  pointer-events: none;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 1rem; }
  .hero-photo { max-width: 460px; margin-inline: auto; }
}

/* -------------------------------------------------- the reset module --- */
.reset {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow);
}
.reset-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem; justify-content: space-between; }
.reset-dial { display: grid; place-items: center; margin: 1rem auto .5rem; position: relative; width: 160px; height: 160px; }
.reset-dial svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.reset-dial .track { fill: none; stroke: var(--line); stroke-width: 8; }
.reset-dial .prog  { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 597; stroke-dashoffset: 597; transition: stroke-dashoffset .3s linear; }
.reset-count { font-family: var(--serif); font-size: 2.5rem; line-height: 1; }
.reset-count small { display: block; font-family: var(--sans); font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: .5rem; }
.reset-steps { display: grid; gap: .55rem; margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: s; }
.reset-steps > li {
  display: grid; grid-template-columns: 2rem 1fr; gap: .9rem; align-items: start;
  padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.reset-steps > li::before {
  counter-increment: s; content: counter(s);
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-3); color: var(--ink-2);
  font-size: .85rem; font-weight: 700; font-family: var(--sans);
}
.reset-steps > li.active { background: var(--paper); border-color: var(--gold); }
.reset-steps > li.active::before { background: var(--gold-2); color: #16130F; }
.reset-steps > li.done::before { background: var(--sage-soft); color: var(--sage); content: "\2713"; }
/* nested adaptation bullets must not inherit the step-circle treatment */
.reset-steps ul { list-style: disc; }
.reset-steps ul li { display: list-item; padding: 0; border: 0; grid-template-columns: none; }
.reset-steps ul li::before { content: none; counter-increment: none; }
.reset-steps b { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; display: block; }
.reset-steps span { color: var(--ink-2); font-size: .95rem; }
.reset-adapt { margin: .45rem 0 0; font-size: .87rem; color: var(--ink-3); }
.reset-adapt ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.reset-note { margin-top: 1.5rem; font-size: .88rem; color: var(--ink-3); }

/* ------------------------------------------------------------- cards --- */
.grid { display: grid; gap: 1.15rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.band .card { background: var(--paper); }
a.card { text-decoration: none; display: block; }
a.card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .eyebrow { margin-bottom: .55rem; }

/* nine principles */
.principles { counter-reset: p; }
.principle {
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.4rem; align-items: start;
  padding: 1.6rem 0; border-top: 1px solid var(--line);
}
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle-letter {
  font-family: var(--serif); font-size: 2.6rem; line-height: .9; color: var(--gold);
  font-weight: 600;
}
.principle h3 { margin-bottom: .25em; }
.principle .litany { font-family: var(--serif); font-size: 1.05rem; color: var(--ink-2); font-style: italic; }
.principle details { margin-top: .9rem; }
.principle summary {
  cursor: pointer; font-size: .87rem; font-weight: 600; color: var(--gold-text);
  letter-spacing: .03em; list-style: none;
}
.principle summary::-webkit-details-marker { display: none; }
.principle summary::before { content: "+ "; font-weight: 700; }
.principle details[open] summary::before { content: "\2212 "; }
.principle .drawer { padding: 1rem 0 .2rem; border-top: 1px dashed var(--line); margin-top: .8rem; }
.principle .drawer h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 .5rem; }
.principle .drawer ul { margin: 0 0 1.2rem; padding-left: 1.15rem; color: var(--ink-2); }
.principle .drawer ul li { margin-bottom: .3rem; }
.principle .drawer p { color: var(--ink-2); font-size: .96rem; }

/* video */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; background: var(--paper-3); border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* stat / credential row */
.creds { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.creds li {
  font-size: .82rem; padding: .45rem .85rem; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2);
}

/* form */
.form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; max-width: 520px; }
.form input[type=email] {
  flex: 1 1 240px; font: inherit; padding: .9rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink);
}
.form input::placeholder { color: var(--ink-3); }
.form-note { font-size: .82rem; color: var(--ink-3); margin-top: .8rem; }

/* disclaimer strip */
.disclaimer {
  background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: var(--radius); padding: 1.15rem 1.35rem; font-size: .92rem; color: var(--ink-2);
}
.disclaimer strong { color: var(--ink); }
.crisis { background: var(--sage-soft); border-color: color-mix(in srgb, var(--sage) 35%, transparent); }

/* todo / open-question flag, visible only in the internal preview build */
.flag {
  display: block; border-left: 3px solid var(--gold-2); background: var(--paper-2);
  padding: .7rem 1rem; margin: 1rem 0; font-size: .82rem; color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; border-radius: 0 8px 8px 0;
}
.flag b { color: var(--gold); font-family: var(--sans); letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; }
/* .flag sets margin-inline:0, which would kill .wrap centering when combined */
.flag.wrap { margin-inline: auto; }
body.live .flag { display: none; }

/* ------------------------------------------------------------ footer --- */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 .9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .5rem; }
.footer a { text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.footer a:hover { color: var(--gold-text); }
.footer-quote { font-family: var(--serif); font-size: 1.05rem; line-height: 1.45; color: var(--ink-2); max-width: 38ch; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.footer-disclaimer { font-size: .8rem; color: var(--ink-3); margin-top: 1.5rem; max-width: 70ch; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* page header for interior pages */
.page-head { background: var(--paper-2); border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem,6vw,4.5rem) 0 clamp(2rem,4vw,3rem); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { margin-top: 1rem; }

/* prose blocks on interior pages */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.4em; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2rem; color: var(--ink-2); }
.prose li { margin-bottom: .45rem; }
.prose blockquote { margin: 1.8rem 0; padding-left: 1.2rem; border-left: 3px solid var(--gold);
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.prose blockquote p:last-child { margin-bottom: 0; }

/* Cutouts are cropped at the original frame edge, which leaves a hard
   horizontal line under the subject. Fade the last few percent. */
.cutout {
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  filter: drop-shadow(0 24px 40px rgba(26,23,19,.2));
}

/* The clock follows you down the steps. Requested by the client: he did not
   want to lose sight of the thirty seconds while scrolling. Offset clears the
   sticky site nav above it. */
.reset-sticky {
  position: sticky;
  top: 64px;
  z-index: 6;
  background: color-mix(in srgb, var(--paper-2) 94%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  margin: -.5rem -.5rem .5rem;
  padding: .75rem .5rem .25rem;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 620px) {
  .reset-dial { width: 128px; height: 128px; }
  .reset-count { font-size: 2rem; }
  .reset-count small { font-size: .6rem; margin-top: .25rem; }
  .reset-sticky { top: 60px; }
}

/* screen-reader only, for heading structure without visual regression */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* footer link-list labels are not sections */
.footer-label {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 .9rem;
}



/* ---------- Session video player (used by js/player.js) ---------- */
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0e1210;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
}

.video mux-player {
  display: block;
  width: 100%;
  height: 100%;
  --controls-backdrop-color: rgba(0, 0, 0, 0.55);
}

.video-thumb {
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: var(--paper-2, #f2efe7);
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
  color: #f2efe7;
  background: linear-gradient(160deg, #1a2622 0%, #0e1210 100%);
}

.video-fallback-msg {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  max-width: 34ch;
}

.video-fallback-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.video-fallback-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #f2efe7;
  border: 1px solid rgba(242, 239, 231, 0.55);
  background: transparent;
  transition: background 120ms ease, border-color 120ms ease;
}

.video-fallback-btn:hover {
  border-color: #f2efe7;
  background: rgba(242, 239, 231, 0.08);
}

.video-fallback-btn:focus-visible {
  outline: 2px solid #f2efe7;
  outline-offset: 2px;
}

.video-fallback-btn-primary {
  background: #b98a2e;
  border-color: #b98a2e;
  color: #0e1210;
}

.video-fallback-btn-primary:hover {
  background: #cf9c37;
  border-color: #cf9c37;
}

.video-support {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-3, #5a554d);
}

/* ---------- Session library card locked-state ---------- */
.session-card {
  display: flex;
  flex-direction: column;
}
.session-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}
.session-meta {
  color: var(--ink-2, #5a554d);
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}
.card-lock {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line, #e3ddd1);
}
.lock-note {
  font-size: 0.9rem;
  color: var(--ink-2, #5a554d);
  margin: 0 0 0.6rem;
}
.section-heading {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.section-note {
  color: var(--ink-2, #5a554d);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

/* ---------- Session page layout ---------- */
.wrap-narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.reflect-list,
.related-list {
  padding-left: 1.25rem;
  line-height: 1.7;
}

/* ---------- Global focus ring (WCAG 2.4.7) ---------- */
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-gold:focus-visible,
.btn-sm:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-2, #b98a2e);
  outline-offset: 2px;
}

/* ---------- Visually-hidden utility (screen-reader only) ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
