/* Why 144? The Kundalini and the Spiral of the New Earth, on heavenonearth144.com/teachings/why-144 (2026-11-21).
   Loads after article.css and theme.css and keeps their tokens (light and dark). Its own pieces: the two-part title,
   the language pill, the In short list, the gold lines, the petals, the paintings, the three windows of light where
   the animations live, and the sources. Built by build_hoe.py, the Why 144? hub build. */

/* ---------- the title in two parts ---------- */
.ar-hero h1 .k-h1-big { display: block; }
.ar-hero h1 .k-h1-sub { display: block; max-width: 22ch; margin: .42em auto 0; font: italic 500 clamp(25px, 3.3vw, 40px)/1.18 var(--ar-serif);
  letter-spacing: -.005em; color: var(--ar-gold); text-wrap: balance; }

/* ---------- the language pill, top right of the hero (saved choice, ?lang=es|fr) ---------- */
.w144-lang { position: absolute; z-index: 3; top: 14px; right: max(14px, env(safe-area-inset-right)); display: flex; padding: 4px;
  border-radius: 999px; background: var(--ar-card); border: 1px solid var(--ar-line); box-shadow: 0 10px 30px rgba(168, 95, 0, .12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-align: left; }
.w144-lang .pref { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ar-ink); font: 800 12px/1 var(--ar-read); letter-spacing: .12em; cursor: pointer; }
.w144-lang .pref:hover, .w144-menu button:hover { background: rgba(255, 226, 160, .38); }
.w144-lang svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.w144-lang .pref-chev { width: 12px; height: 12px; margin-left: -2px; transition: transform .2s ease; }
.w144-lang [aria-expanded="true"] .pref-chev { transform: rotate(180deg); }
.w144-menu { position: absolute; top: calc(100% + 10px); right: -1px; min-width: 190px; margin: 0; padding: 6px; list-style: none;
  display: grid; gap: 2px; border-radius: 18px; background: var(--ar-ivory); border: 1px solid var(--ar-line); box-shadow: 0 14px 40px rgba(90, 54, 6, .2); }
.w144-menu li { margin: 0; padding: 0; }
.w144-menu button { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 14px;
  border: 0; border-radius: 12px; background: none; color: var(--ar-ink); font: 700 15px/1 var(--ar-read); text-align: left; cursor: pointer; }
.w144-menu small { font: 800 10px/1 var(--ar-read); letter-spacing: .14em; color: var(--ar-soft); }
.w144-menu button[aria-current="true"] { background: linear-gradient(180deg, #ffd77a, #e9a83a); color: #2a1a00; }
.w144-menu button[aria-current="true"] small { color: inherit; }
/* Spanish or French chosen: the words wait for their language instead of flashing English (2 s at most). */
.i18n-wait .ar { visibility: hidden; }

/* ---------- In short, as a list ---------- */
.ar-body .ar-short ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55em; }
.ar-body .ar-short li { position: relative; margin: 0; padding-left: 1.5em; font-size: 17.5px; line-height: 1.65; color: var(--ar-ink); }
.ar-body .ar-short li::before { content: ""; position: absolute; left: .15em; top: .62em; width: 7px; height: 7px; transform: rotate(45deg);
  border: 1px solid var(--ar-honey); background: var(--ar-ivory); }

/* ---------- the words ---------- */
.gold-line { color: var(--ar-gold); font-weight: 700; }
.ar-body .k-petals { list-style: none; padding-left: 0; }
.ar-body .k-petals li { position: relative; padding-left: 1.5em; }
.ar-body .k-petals li::before { content: ""; position: absolute; left: .25em; top: .74em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ar-honey); box-shadow: 0 0 10px rgba(227, 165, 58, .8); }

/* ---------- the paintings ---------- */
.k-fig { margin: 2em 0 2.2em; }
.k-fig img { display: block; width: 100%; height: auto; border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(168, 95, 0, .14), 0 34px 64px -42px rgba(27, 35, 50, .6); }
.k-fig figcaption, .k-anim figcaption { margin-top: .75em; font: italic 500 clamp(19px, 2vw, 21px)/1.4 var(--ar-serif); color: var(--ar-gold);
  text-align: center; text-wrap: balance; }
@media (min-width: 980px) { .k-fig, .k-anim { margin-left: -70px; margin-right: -70px; } }

/* ---------- the windows of light: the three animations ---------- */
.k-anim { margin: 2.2em 0 2.4em; }
.ar-body .anim-eyebrow { display: flex; align-items: center; gap: .8em; margin: 0 0 .8em; font: 700 12px/1.4 var(--ar-cinzel); letter-spacing: .22em;
  text-transform: uppercase; color: var(--ar-gold); }
.anim-eyebrow::before { content: ""; flex: none; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--ar-honey); }
.anim-frame { position: relative; overflow: hidden; border-radius: 24px; background: #0c1124;
  box-shadow: 0 0 0 1px rgba(168, 95, 0, .28), 0 0 0 7px rgba(255, 255, 255, .55), 0 0 0 8px rgba(168, 95, 0, .14), 0 44px 84px -50px rgba(27, 35, 50, .9); }
[data-theme="dark"] .anim-frame { box-shadow: 0 0 0 1px rgba(219, 173, 79, .3), 0 0 0 7px rgba(255, 255, 255, .04), 0 0 0 8px rgba(219, 173, 79, .16),
  0 44px 84px -50px rgba(0, 0, 0, .9); }
.k-anim canvas { display: block; width: 100%; aspect-ratio: 16 / 11; touch-action: manipulation; }
.k-anim[data-anim="petals"] canvas { aspect-ratio: 4 / 5; }
.k-anim[data-anim="turning"] canvas, .k-anim[data-anim="forks"] canvas { aspect-ratio: 1 / 1; }
@media (min-width: 700px) {
  .k-anim[data-anim="petals"] canvas { aspect-ratio: 6 / 5; }
  .k-anim[data-anim="turning"] canvas, .k-anim[data-anim="forks"] canvas { aspect-ratio: 16 / 11; }
}
.k-anim[data-anim="forks"] canvas { cursor: pointer; }
.anim-row { display: flex; align-items: flex-start; justify-content: center; gap: 14px; margin-top: .2em; }
.anim-row figcaption { flex: 1; min-width: 0; }
.anim-btn { flex: none; margin-top: .7em; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 999px;
  cursor: pointer; font: 700 13px/1 var(--ar-read); letter-spacing: .04em; color: var(--ar-gold); background: var(--ar-card); box-shadow: 0 0 0 1px var(--ar-line); }
.anim-btn:hover { box-shadow: 0 0 0 1px var(--ar-honey), 0 8px 22px -10px rgba(168, 95, 0, .5); }
.anim-btn svg { width: 14px; height: 14px; }

/* ---------- the sources ---------- */
.k-sources { margin: 40px 0 10px; padding-top: 22px; border-top: 1px solid var(--ar-line); }
.ar-body .k-sources h2 { margin: 0 0 .5em; font: 600 22px/1.2 var(--ar-serif); color: var(--ar-ink); }
.ar-body .k-sources p { font-size: 15px; line-height: 1.7; color: var(--ar-soft); }

@media (max-width: 640px) {
  .w144-lang { top: 10px; right: 10px; }
  .k-fig img { border-radius: 16px; }
  .anim-frame { border-radius: 18px; }
  .anim-row { flex-direction: column; align-items: center; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .w144-lang .pref-chev { transition: none; } }
