/* =========================================================================
 * /junior-sadhaks: the Storytime Theater landing (v1.6.0)  (assets/css/junior-sadhaks.css; after guest.css)
 * templates/public/junior-sadhaks.php · behaviour: assets/js/junior-sadhaks.js · data: includes/junior-sadhaks.php
 *
 * The stage band (.jst-stage) is a deliberate always-dark theater in both themes: it sets its own Temple Dark tokens
 * (ivory #FCFBF7 and gold #F2B54C on #0D0B09 and on the #1A1214 cards: far above AA), so Temple Dawn only changes the
 * grown-ups' section below it, which uses the site tokens. Crimson velvet (#78122B family) with gold trim; site fonts only
 * (var(--serif) Cormorant Garamond for headings, var(--sans) for body).
 *   - .jst-backdrop is sticky inside the band (height 100svh, pulled up by a negative margin) so the medley stays behind
 *     the shelves while they scroll; a veil keeps text contrast steady. The medley is CSS 3D: .jst-medley (perspective:
 *     1000px; transform-style: preserve-3d) > .jst-medley__cam (the camera the script moves: translate3d + a slight
 *     rotation, transform only) > five .jst-layer at translateZ -1400 / -900 / -520 / -220 / 0px, each scaled back by
 *     (1000 - z) / 1000 so it shows at its natural size; moving the camera then shifts near layers more than far ones
 *     (true parallax). Each painted layer (.jst-art) is a 16:9 box sized like background-size: cover and anchored to the
 *     bottom, so its glows (.jst-glow, .jst-fly) sit on the art in % of the picture. Layers overscan by 8% so a shift never
 *     shows an edge; the backdrop clips (overflow: hidden) and the band clips too, so nothing widens the page at 320px.
 *     The lights breathe only while the stage is animating (.jst-stage.is-animated, set by the script; never under
 *     reduced motion).
 *   - Curtains, the valance and the marquee are decoration (aria-hidden or plain text); they never take part in layout
 *     width, and the band clips them (overflow-x: clip), so nothing scrolls sideways at 375px.
 *   - Carousels (.jst-rail) scroll inside themselves (scroll-snap); every control is at least 44px; buttons are
 *     position: relative.
 * Reduced motion: no curtain sweep, no twinkle, no card lift or tilt, no smooth scrolling.
 * ========================================================================= */

.jst { --jst-crimson: #78122B; --jst-crimson-deep: #3A0815; --jst-crimson-hi: #A3213F; --jst-gold: #E8B84A; --jst-gold-hi: #FFF1BF; --jst-drape: clamp(18px, 6.5vw, 132px); }

/* ---------------------------------------------------------------- the stage band */
.jst-stage {
  --ink: #FCFBF7; --muted: #D9C9B5; --accent: #F2B54C; --gold-text: #F2B54C; --focus: #FCD34D; --amber: #E8962A;
  --surface: #1A1214; --sunken: #120C0E; --champagne: rgba(245, 158, 11, 0.22); --champagne-strong: rgba(245, 158, 11, 0.5);
  --card-border: rgba(232, 184, 74, 0.34); --season-tint: rgba(120, 18, 43, 0.3);
  position: relative; isolation: isolate; color: var(--ink); color-scheme: dark; background: #0D0B09;
  overflow: hidden; overflow: clip; padding-block: 0 clamp(40px, 6vw, 88px);   /* (site.css gives main > section a padding) */
}
.jst-stage :where(h1, h2, h3, h4) { color: var(--ink); }
.jst-stage a:not([class]) { color: var(--accent); }

.jst-backdrop { position: sticky; top: 0; z-index: -1; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; pointer-events: none; }
.jst-sky { position: absolute; inset: 0; /* the medley's farthest layer (with .jst-stars) */
  background:
    radial-gradient(120% 70% at 50% -12%, rgba(120, 18, 43, 0.6), transparent 62%),
    radial-gradient(70% 50% at 85% 110%, rgba(217, 119, 6, 0.2), transparent 70%),
    radial-gradient(60% 45% at 8% 95%, rgba(76, 56, 120, 0.28), transparent 70%),
    linear-gradient(180deg, #0B0710 0%, #140A12 48%, #0D0B09 100%); }
.jst-stars { position: absolute; inset: 0; opacity: 0.85;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, #FFF8E1 60%, transparent 62%), radial-gradient(1.2px 1.2px at 28% 42%, #FFF1BF 60%, transparent 62%),
    radial-gradient(2px 2px at 47% 12%, #FFFFFF 55%, transparent 60%), radial-gradient(1.3px 1.3px at 63% 34%, #FCE9C1 60%, transparent 62%),
    radial-gradient(1.8px 1.8px at 81% 16%, #FFF8E1 60%, transparent 62%), radial-gradient(1.1px 1.1px at 92% 46%, #FFF1BF 60%, transparent 62%),
    radial-gradient(1.4px 1.4px at 6% 62%, #FFFFFF 60%, transparent 62%), radial-gradient(1.2px 1.2px at 36% 74%, #FCE9C1 60%, transparent 62%),
    radial-gradient(1.7px 1.7px at 71% 66%, #FFF8E1 60%, transparent 62%), radial-gradient(1.1px 1.1px at 55% 88%, #FFF1BF 60%, transparent 62%);
  background-size: 520px 420px; }
.jst-stars::after { content: ""; position: absolute; inset: 0; background: inherit; background-size: 380px 300px; background-position: 140px 90px; opacity: 0.6; animation: jst-twinkle 5.5s ease-in-out infinite alternate; }
@keyframes jst-twinkle { from { opacity: 0.15; } to { opacity: 0.75; } }

/* the medley: five layers in depth (see the header) */
.jst-medley { position: absolute; inset: 0; perspective: 1000px; perspective-origin: 50% 50%; transform-style: preserve-3d; }
.jst-medley__cam { position: absolute; inset: 0; transform-style: preserve-3d; }
.jst-medley__cam.is-moving { will-change: transform; }
.jst-layer { position: absolute; inset: -8%; transform-style: preserve-3d; }
.jst-layer--sky { transform: translateZ(-1400px) scale(2.4); }
.jst-layer--far { transform: translateZ(-900px) scale(1.9); }
.jst-layer--mid { transform: translateZ(-520px) scale(1.52); }
.jst-layer--near { transform: translateZ(-220px) scale(1.22); }
.jst-layer--fore { transform: translateZ(0); }
.jst-art { position: absolute; left: 50%; bottom: 0; width: max(100%, 177.78svh * 1.16); margin-left: calc(max(100%, 177.78svh * 1.16) / -2); aspect-ratio: 16 / 9; }
.jst-art > img { display: block; width: 100%; height: 100%; }
.jst-glow, .jst-fly { position: absolute; border-radius: 50%; aspect-ratio: 1; pointer-events: none; }
.jst-glow--sun { left: 30%; top: 36%; width: 40%; background: radial-gradient(closest-side, rgba(255, 228, 160, 0.42), rgba(247, 166, 90, 0.12) 55%, transparent); }
.jst-glow--tower { left: 75.1%; top: 51.4%; width: 6%; background: radial-gradient(closest-side, rgba(255, 236, 180, 0.7), transparent); }
.jst-glow--banyan { left: 6.6%; top: 73.4%; width: 18%; background: radial-gradient(closest-side, rgba(255, 248, 230, 0.55), rgba(246, 195, 91, 0.14) 60%, transparent); }
.jst-glow--river { left: 18%; top: 80%; width: 64%; aspect-ratio: 5 / 1; background: radial-gradient(closest-side, rgba(255, 206, 120, 0.22), transparent); }
.jst-fly { width: 0.5%; min-width: 4px; background: radial-gradient(closest-side, #FFF3C4, rgba(255, 231, 160, 0.4) 55%, transparent); }
.jst-fly--1 { left: 12%; top: 74%; } .jst-fly--2 { left: 44%; top: 80%; } .jst-fly--3 { left: 71%; top: 76%; } .jst-fly--4 { left: 88%; top: 82%; }
@media (prefers-reduced-motion: no-preference) {
  .jst-stage.is-animated .jst-glow--sun { animation: jst-breathe 9s ease-in-out infinite; }
  .jst-stage.is-animated .jst-glow--tower, .jst-stage.is-animated .jst-glow--banyan { animation: jst-breathe 6s ease-in-out infinite; }
  .jst-stage.is-animated .jst-glow--river { animation: jst-breathe 4.5s ease-in-out infinite alternate; }
  .jst-stage.is-animated .jst-fly { animation: jst-fly 8s ease-in-out infinite alternate; }
  .jst-stage.is-animated .jst-fly--2 { animation-duration: 10s; animation-delay: -4s; }
  .jst-stage.is-animated .jst-fly--3 { animation-duration: 12s; animation-delay: -7s; }
}
@keyframes jst-breathe { 0%, 100% { opacity: 0.7; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes jst-fly { 0% { transform: translate(0, 0); opacity: 0.25; } 50% { opacity: 1; } 100% { transform: translate(300%, -500%); opacity: 0.4; } }
.jst-veil { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 9, 0.22) 0%, rgba(13, 11, 9, 0.42) 38%, rgba(13, 11, 9, 0.72) 100%),
              radial-gradient(90% 60% at 50% 30%, transparent, rgba(13, 11, 9, 0.45)); }

/* ---------------------------------------------------------------- the proscenium: curtains, valance, marquee */
.jst-proscenium { position: relative; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(28px, 4vw, 56px); }
.jst-curtains { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.jst-drape { position: absolute; top: 0; bottom: 8%; width: var(--jst-drape); transform-origin: top left;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 22%, transparent 70%, rgba(0, 0, 0, 0.45)),
    repeating-linear-gradient(90deg, #4A0A1C 0, #78122B 9%, #A3213F 15%, #78122B 22%, #3A0815 33%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.jst-drape--l { left: 0; border-bottom-right-radius: 100% 26%; box-shadow: inset -4px 0 0 var(--jst-gold), inset -6px 0 0 rgba(110, 71, 16, 0.8), 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.jst-drape--r { right: 0; transform-origin: top right; border-bottom-left-radius: 100% 26%; box-shadow: inset 4px 0 0 var(--jst-gold), inset 6px 0 0 rgba(110, 71, 16, 0.8), 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
/* the valance: velvet with scalloped lobes; the gold trim follows the scallops (a drop-shadow of the masked fabric) */
.jst-valance { position: absolute; left: 0; right: 0; top: 0; height: clamp(40px, 5.5vw, 64px);
  filter: drop-shadow(0 3px 0 #E8B84A) drop-shadow(0 2px 0 #6E4710) drop-shadow(0 10px 12px rgba(0, 0, 0, 0.55)); }
.jst-valance::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 45%), repeating-linear-gradient(90deg, #5E0E24 0, #8A1634 30px, #5E0E24 60px);
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 14px) no-repeat, radial-gradient(30px 14px at 30px 0, #000 98%, transparent 100%) 0 100% / 60px 14px repeat-x;
          mask: linear-gradient(#000, #000) top / 100% calc(100% - 14px) no-repeat, radial-gradient(30px 14px at 30px 0, #000 98%, transparent 100%) 0 100% / 60px 14px repeat-x; }
.jst-valance::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 241, 191, 0.65), transparent); }

@media (prefers-reduced-motion: no-preference) {
  .jst-drape--l { animation: jst-open-l 1.6s cubic-bezier(.3, .7, .2, 1) both; }
  .jst-drape--r { animation: jst-open-r 1.6s cubic-bezier(.3, .7, .2, 1) both; }
}
@keyframes jst-open-l { from { transform: scaleX(2.4); } to { transform: none; } }
@keyframes jst-open-r { from { transform: scaleX(2.4); } to { transform: none; } }

.jst-hero { position: relative; z-index: 1; width: min(100% - 2 * (var(--jst-drape) + 16px), var(--wrap)); margin-inline: auto; text-align: center; }
.jst-hero .g-crumbs ol { justify-content: center; }
.jst-hero .g-crumbs a, .jst-hero .g-crumbs { color: var(--muted); }

.jst-marquee {
  position: relative; display: block; width: fit-content; max-width: 100%; margin: 6px auto 22px; padding: clamp(18px, 3vw, 30px) clamp(20px, 4vw, 48px);
  border-radius: 22px; border: 3px solid var(--jst-gold);
  background: radial-gradient(120% 140% at 50% 0%, rgba(163, 33, 63, 0.75), transparent 70%), linear-gradient(180deg, #3A0815, #1E0610);
  box-shadow: 0 0 0 2px #6E4710, 0 0 0 6px rgba(232, 184, 74, 0.25), 0 0 46px rgba(245, 158, 11, 0.35), inset 0 0 28px rgba(0, 0, 0, 0.55);
}
/* the marquee bulbs: two interleaved rows along the top and bottom edges, twinkling in turn */
.jst-marquee::before, .jst-marquee::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: 6px; bottom: 6px; pointer-events: none;
  background:
    radial-gradient(circle, #FFF6D6 0 2.5px, rgba(255, 214, 120, 0.85) 3.5px, rgba(245, 158, 11, 0) 7px) 0 0 / 26px 12px repeat-x,
    radial-gradient(circle, #FFF6D6 0 2.5px, rgba(255, 214, 120, 0.85) 3.5px, rgba(245, 158, 11, 0) 7px) 0 100% / 26px 12px repeat-x;
}
.jst-marquee::after { background-position: 13px 0, 13px 100%; }
@media (prefers-reduced-motion: no-preference) {
  .jst-marquee::before { animation: jst-bulbs 2.6s ease-in-out infinite alternate; }
  .jst-marquee::after { animation: jst-bulbs 2.6s ease-in-out -1.3s infinite alternate; }
}
@keyframes jst-bulbs { from { opacity: 0.45; } to { opacity: 1; } }
.jst-marquee__text {
  display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(2.3rem, 1.4rem + 4.6vw, 5.2rem); line-height: 1.02; letter-spacing: 0.01em;
  color: #FFE7A3; text-wrap: balance;
  background: linear-gradient(180deg, #FFF8E1 10%, #F6D27A 55%, #E8A93A 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.45)) drop-shadow(0 2px 0 rgba(58, 8, 21, 0.9));
}
@media (forced-colors: active) { .jst-marquee__text { -webkit-text-fill-color: CanvasText; background: none; filter: none; } }

.jst-lead { font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem); line-height: 1.45; max-width: 40rem; margin: 0 auto; color: var(--ink); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.jst-facts { justify-content: center; color: var(--muted); }
.jst-scene { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin: 24px auto 0; max-width: 44rem; }
.jst-scene__caption { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--muted); }
.jst-scene__label { color: var(--gold-text); font-weight: 600; }
.jst-motion {
  position: relative; display: inline-flex; align-items: center; gap: 0.55em; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--champagne-strong); background: rgba(26, 18, 20, 0.72); color: var(--ink); font: 600 0.92rem/1 var(--sans);
}
.jst-motion[aria-pressed="true"] { border-color: var(--jst-gold); background: rgba(120, 18, 43, 0.7); }
.jst-motion__icon { display: inline-grid; place-items: center; width: 1.4em; font-size: 0.95em; color: var(--accent); }
.jst-motion:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .jst-motion:hover { border-color: var(--jst-gold); } }
.jst-hero__go { margin: 26px 0 0; }

/* ---------------------------------------------------------------- the selector & shelves */
.jst-shelves { position: relative; z-index: 1; width: min(100% - 2 * max(var(--gutter), var(--safe-x, 0px)), var(--wrap)); margin-inline: auto; padding-top: clamp(24px, 4vw, 48px); scroll-margin-top: calc(var(--header-h, 80px) + 8px); }
.jst-shelves:focus { outline: none; }
.jst-selector { text-align: center; max-width: 52rem; margin: 0 auto clamp(18px, 3vw, 34px); }
.jst-selector__lead { margin: 0 auto 18px; color: var(--muted); font-size: 1.0625rem; line-height: 1.65; max-width: 44rem; }
.jst-chips { justify-content: center; }
.jst-chips .g-chip { background: rgba(26, 18, 20, 0.7); }
.jst-chips .g-chip[aria-pressed="true"] { background: var(--jst-crimson); border-color: var(--jst-gold); color: #FFF7EE; }

.jst-shelf { margin-top: clamp(26px, 4vw, 48px); scroll-margin-top: calc(var(--header-h, 80px) + 12px); }
.jst-shelf[hidden] { display: none; }
.jst-shelf__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.jst-shelf__head > div:first-child { min-width: 0; }
.jst-shelf__title { margin: 0 0 4px; font-family: var(--serif); font-size: clamp(1.45rem, 1.2rem + 1vw, 2.1rem); font-weight: 600; line-height: 1.15; }
.jst-shelf__icon { display: inline-block; margin-right: 0.15em; }
.jst-shelf__lead { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.jst-shelf__nav { display: flex; gap: 8px; flex: none; }
.jst-shelf__nav[hidden] { display: none; }
.jst-arrow {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--champagne-strong); background: rgba(26, 18, 20, 0.8); color: var(--ink); font: 400 1.7rem/1 var(--serif);
}
.jst-arrow:disabled { opacity: 0.4; cursor: default; }
.jst-arrow:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .jst-arrow:not(:disabled):hover { border-color: var(--jst-gold); background: rgba(120, 18, 43, 0.7); } }

.jst-rail {
  display: flex; gap: clamp(14px, 2vw, 22px); list-style: none; margin: 0; padding: 10px 4px 22px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px;
  scrollbar-width: thin; scrollbar-color: rgba(232, 184, 74, 0.45) transparent;
}
.jst-rail:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 12px; }
@media (prefers-reduced-motion: no-preference) { .jst-rail { scroll-behavior: smooth; } }

/* ---------------------------------------------------------------- story cards */
.jst-card { flex: 0 0 min(82%, 320px); scroll-snap-align: start; display: flex; min-width: 0; perspective: 900px; }
@media (min-width: 768px) { .jst-card { flex-basis: 300px; } }
@media (min-width: 1280px) { .jst-card { flex-basis: 312px; } }
.jst-card__inner {
  position: relative; display: flex; flex-direction: column; width: 100%; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #221619, #1A1214 40%); border: 1px solid var(--card-border);
  box-shadow: 0 1px 0 rgba(255, 241, 191, 0.06) inset, 0 18px 36px -22px rgba(0, 0, 0, 0.85);
  transition: transform 260ms var(--ease, ease), box-shadow 260ms var(--ease, ease), border-color 260ms var(--ease, ease);
}
.jst-card__cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #241319; }
.jst-card__cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jst-card__kind {
  position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 0.35em; padding: 4px 10px; border-radius: 999px;
  font: 700 0.74rem/1.3 var(--sans); letter-spacing: 0.04em; color: #FFF7EE; background: rgba(13, 11, 9, 0.78); border: 1px solid rgba(232, 184, 74, 0.5);
}

/* a storybook cover made of CSS (the story's own illustration replaces the picture when kids-art.js has drawn it) */
.jst-book { --b1: #2F6B4A; --b2: #1D4430; position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(80% 90% at 70% 20%, rgba(255, 241, 191, 0.28), transparent 60%), linear-gradient(135deg, var(--b1), var(--b2)); }
.jst-book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(255, 255, 255, 0.08) 60%, rgba(0, 0, 0, 0.2)); z-index: 2; }
.jst-book::after { content: ""; position: absolute; inset: 10px 10px 10px 22px; border: 1.5px solid rgba(255, 241, 191, 0.45); border-radius: 8px; z-index: 2; pointer-events: none; }
.jst-book--dhyan { --b1: #3E3A86; --b2: #1F1C4F; }
.jst-book--satya { --b1: #B5651D; --b2: #6E3410; }
.jst-book--ahimsa { --b1: #3F7D4E; --b2: #22492D; }
.jst-book--sewa { --b1: #A2442C; --b2: #5C2416; }
.jst-book--karuna { --b1: #2E7C82; --b2: #17474B; }
.jst-book__art { position: absolute; inset: 0; z-index: 0; }
.jst-book__art svg { display: block; width: 100%; height: 100%; }
.jst-book__icon { position: relative; z-index: 1; font-size: clamp(2.6rem, 9vw, 3.4rem); line-height: 1; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); transform: translateY(-14%); }
.jst-book__name { position: absolute; z-index: 1; left: 30px; right: 18px; bottom: 16px; font: 700 1.05rem/1.2 var(--serif); color: #FFF8E1; text-align: center; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); }
.jst-book.has-art .jst-book__icon { display: none; }
.jst-book.has-art .jst-book__name { left: 22px; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(13, 11, 9, 0.62); }

.jst-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; padding: 16px 18px 18px; }
.jst-card__value { margin: 0; font: 700 0.8rem/1.35 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-text); }
.jst-card__value .g-term { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; white-space: normal; }
.jst-card__title { margin: 0; font-family: var(--serif); font-size: 1.42rem; font-weight: 600; line-height: 1.15; }
.jst-card__link { color: var(--ink) !important; text-decoration: none; }
/* the whole card is the story's link (the sheet link sits above it) */
.jst-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
.jst-card__link:focus-visible { outline: none; }
.jst-card__link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; }
.jst-card__blurb { margin: 0; color: var(--ink); font-size: 0.98rem; line-height: 1.55; }
.jst-card__moral { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; font-style: italic; }
.jst-card__moral span { font-style: normal; font-weight: 700; color: var(--gold-text); }
.jst-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 0; font-size: 0.86rem; color: var(--muted); }
.jst-time { font-weight: 700; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.jst-card__source { margin: 0; font-size: 0.8rem; line-height: 1.45; color: var(--muted); opacity: 0.9; }
.jst-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: auto; padding-top: 8px; }
.jst-card__cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font: 700 0.92rem/1 var(--sans);
  color: #2A0A14; background: linear-gradient(135deg, #F8D888 0%, #E7AE45 52%, #C98A22 100%); }
.jst-card__sheet { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; font-weight: 600; font-size: 0.9rem; color: var(--accent); text-underline-offset: 0.2em; }
.jst-card__sheet:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.jst-card__scroll { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; font-weight: 600; font-size: 0.9rem; color: var(--accent); text-underline-offset: 0.2em; }
.jst-card__scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .jst-card:hover .jst-card__inner { transform: translateY(-6px) rotate(-0.6deg); border-color: var(--jst-gold); box-shadow: 0 0 0 1px rgba(232, 184, 74, 0.5), 0 26px 46px -22px rgba(245, 158, 11, 0.45); }
  .jst-card:nth-child(even):hover .jst-card__inner { transform: translateY(-6px) rotate(0.6deg); }
  .jst-card:hover .jst-card__cover > img, .jst-card:hover .jst-book { transform: scale(1.04); }
  .jst-card__cover > img, .jst-book { transition: transform 600ms var(--ease, ease); }
}
@media (prefers-reduced-motion: no-preference) {
  .jst-card:focus-within .jst-card__inner { transform: translateY(-4px); }
}
@media (hover: hover) and (pointer: fine) { .jst-card:hover .jst-card__inner { border-color: var(--jst-gold); } }

/* ---------------------------------------------------------------- for grown-ups (site tokens: Temple Dark and Dawn) */
.jst-grown .g-prose p { font-size: 1.0625rem; }
.jst-more { grid-template-columns: 1fr; }
.jst-grown .g-term { white-space: normal; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 599.98px) {
  .jst-proscenium { padding-top: 56px; }
  .jst-marquee { border-radius: 16px; border-width: 2px; }
  .jst-shelf__head { align-items: flex-start; flex-direction: column; }
  .jst-shelf__nav { align-self: flex-end; margin-top: -4px; }
  .jst-hero__go .g-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .jst-stars::after, .jst-marquee::before, .jst-marquee::after, .jst-drape { animation: none !important; }
  .jst-glow, .jst-fly { animation: none !important; }
  .jst-card__inner, .jst-card__cover > img, .jst-book { transition: none !important; }
  .jst-card:hover .jst-card__inner { transform: none !important; }
}
