/* Charm and Soul UI Kit — v2 brand (2026-05-25 migration)
   Palette: silencio off-white + warm-black + burnt orange-red.
   Type: New Icon Script (display) + Montserrat (sans, body + headings)
         + The Seasons (italic ornament + serif headings) + JetBrains Mono.
   The previous v1.5 (cream + ochre + Cormorant + Newsreader) reference
   lives in MIGRATION.md; the legacy fallbacks remain inside each
   font-family stack so older customer-page sections still render
   gracefully if a font fails to load.
*/

/* JetBrains Mono via Google Fonts (Apache 2.0). Brand fonts (Montserrat,
   The Seasons, New Icon Script) are self-hosted under web/fonts/. */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/Montserrat-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('./fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'The Seasons';
  src: url('./fonts/The_Seasons_Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'The Seasons';
  src: url('./fonts/The_Seasons_Light_Italic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'The Seasons';
  src: url('./fonts/The_Seasons_Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'The Seasons';
  src: url('./fonts/The_Seasons_Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'The Seasons';
  src: url('./fonts/The_Seasons_Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'The Seasons';
  src: url('./fonts/The_Seasons_Bold_Italic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'New Icon Script';
  src: url('./fonts/New-Icon-Script-Exfont1157.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette — Warm Vintage Almanac (export 6 direction, 2026-05-25).
     The brand pivoted away from the silencio "Almanac Receipt" cool-grey
     + burnt-orange-red direction (export 4) BACK to warm cream + ochre,
     keeping the v2 fonts (Montserrat / The Seasons / New Icon Script).
     Rules are now soft warm hairlines, not the hard-black silencio
     hairlines. Body sizing also bumped (18px / 1.7) per the spec. */
  --paper:       #F4EFE2;
  --paper-soft:  #FAF6E9;
  --paper-deep:  #E8DEC4;
  --paper-band:  #EDE4CC;
  --ink:         #14110E;
  --ink-quiet:   #6A5F52;
  --ink-faint:   #9C8F7E;
  --accent:      var(--tweak-accent, #8B6A2E);
  --accent-hot:  #6E5320;
  --accent-soft: rgba(139, 106, 46, 0.14);
  --rule:        #CFC0A0;
  --rule-soft:   #DBCEB0;

  /* Type tokens. Names preserved for back-compat with downstream
     consumers; values flipped to v2.
     --serif-display now resolves to The Seasons (was Cormorant).
     --serif-body now resolves to Montserrat (was Newsreader). Body
     becomes sans, but the token name stays for consumer back-compat.
     --sans-meta becomes JetBrains Mono — the receipt-chrome face.
     --script-hero is NEW — the calligraphic display font, used by
     the reading-title-hero only. Falls back to Pinyon Script (the v1
     calligraphic) if New Icon Script isn't loaded yet. */
  --serif-display: 'The Seasons', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --serif-body:    'Montserrat', 'Newsreader', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --sans-meta:     'JetBrains Mono', 'SF Mono', ui-monospace, 'Newsreader', monospace;
  --script-hero:   'New Icon Script', 'Pinyon Script', 'The Seasons', cursive;

  --measure: var(--tweak-measure, 720px);
  --pad-section: clamp(56px, 8vw, 104px);
  --pad-card:    clamp(28px, 4vw, 48px);
  --pad-edge:    clamp(24px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 18px;             /* up from 17 */
  line-height: 1.7;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background:
    radial-gradient(circle at 30% 8%, rgba(139,106,46,0.035) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(20,17,14,0.025) 0%, transparent 50%),
    var(--paper);
  min-height: 100vh;
  /* Belt-and-braces against any wide child causing a horizontal scrollbar
     on mobile (the top-slab was the immediate culprit, but the same trap
     is easy to hit again with a stray no-wrap section). */
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s, border-color 0.2s;
}
a:hover { color: var(--accent-hot); border-bottom-color: var(--accent-hot); }
::selection { background: var(--accent); color: var(--paper); }

/* ─── Meta-label primitive ────────────────────────────────── */
.eyebrow,
.meta-label {
  display: inline-block;
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── Brand strip ─────────────────────────────────────────── */
.brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px var(--pad-edge);
  border-bottom: 1px solid var(--rule-soft);
}
.brand .wordmark {
  flex-shrink: 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--ink);
  border-bottom: none;
  white-space: nowrap;
  line-height: 1;
}
.brand .wordmark::before {
  content: "✦";
  color: var(--accent);
  margin-right: 10px;
  font-size: 14px;
  vertical-align: 0.18em;
  font-style: normal;
}
.brand .wordmark:hover { color: var(--accent); }
.brand .crumb {
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  white-space: nowrap;
}

/* ─── Top slab + Hero name + Section nav (V6 chrome) ─────────
   Sticky chrome at the very top edge of the page. Three pieces:
     • The big italic first name (.hero-name) is fixed at top-left
       and OVERLAPS the slab's bottom rule when not scrolled. As
       the customer scrolls, it shrinks down to sit inside the
       slab's left slot, smoothly tweened (single element).
     • The slab itself is a sticky 3-column grid:
         [ empty left slot ] [ signs ] [ stones ]
       The left slot exists only to reserve room for the shrunk
       hero name; the name is rendered outside the slab so it can
       overlap the bottom rule.
     • The section nav is a right-edge floating column of symbol
       buttons with a staggered bob animation. */
.customer-hero,
/* Anchor-link scroll offset for the sticky .top-slab.
   Without this, clicking the right-edge section nav (#reading, #bracelet,
   #share, #soul-contract, #chart, #archive) scrolls the target to y=0 —
   which puts the section's top BEHIND the sticky slab. Customers saw the
   reading title with its top half clipped. scroll-margin-top tells the
   browser to leave room for the slab when computing the scroll target. */
#reading,
#bracelet,
#share,
#soul-contract,
#chart,
#chart-expanded,
#archive {
  scroll-margin-top: 80px;
}

.top-slab {
  position: sticky;
  top: 0;
  z-index: 30;
  /* Flex flow keeps left + right at the edges; the center element
     is absolutely positioned over the geometric centre of the slab
     so it stays truly centered no matter how wide left/right grow. */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  padding: 10px var(--pad-edge);
  background: var(--paper-soft);
  border-bottom: 1px solid var(--rule-soft);
  min-height: 44px;
  /* Hard cap on horizontal extent — prevents long sign labels
     ("Sagittarius", "Capricorn") from pushing the slab past the
     viewport on narrow screens. */
  max-width: 100vw;
  overflow: hidden;
}

.slab-left {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(18px, 2.6vw, 28px);
  min-width: 0;
  flex: 0 1 auto;
}
.slab-name-slot {
  /* Reserves the width "Tristan" / "Jennifer" needs at the stuck font
     size (Italianno 22px italic). Hero-name floats over this. */
  display: inline-block;
  min-width: 88px;
  height: 1px;
}

.slab-signs {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 22px);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}
.slab-signs .chip { display: inline-flex; align-items: baseline; gap: 6px; }
.slab-signs .g {
  font-family: 'Apple Symbols','Noto Sans Symbols','Segoe UI Symbol', serif;
  font-style: normal;
  font-size: 15px;
  color: var(--accent);
  line-height: 1;
}
.slab-signs .g.asc {
  font-family: var(--sans-meta);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.slab-signs .v { color: var(--ink); }

.slab-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--sans-meta);
  font-size: 10.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;   /* clicks pass through to slab links if any */
}
.slab-center .moon {
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1;
}
.slab-center .dt-sep { color: var(--ink-faint); }

.slab-stones {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}
.slab-stones .label {
  font-family: var(--sans-meta);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.slab-stones .names { display: inline-flex; align-items: baseline; gap: 0; }
.slab-stones .names a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.slab-stones .names a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.slab-stones .sep { margin: 0 10px; color: var(--ink-faint); font-style: normal; }

/* Hero name (legacy) — no longer used in ReaderPage; the slab now
   renders the name inline via .slab-name. Kept hidden so any prior
   prototypes that mount <HeroName> don't double up with .slab-name. */
.hero-name { display: none; }

/* ─── Reading title hero ─────────────────────────────────────
   Full-width oversized on first paint; transforms to normal as
   the customer scrolls. The magic-move that used to live on the
   name now lives here, because the title is the more meaningful
   thing to make grand.

   The oversized title intentionally OVERLAPS the manifestation
   below — its descenders and lower edge bleed onto the cream
   paper of the next section, like an editorial chapter heading
   that flows into the body. z-index keeps it painting on top. */
.reading-title-hero {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 7vw, 88px) var(--pad-edge) 0;
  margin-bottom: -28px;
  text-align: center;
  pointer-events: none;
  /* Calligraphic title needs both:
       - horizontal clipping so a too-wide first-paint title doesn't push
         a viewport-level horizontal scrollbar on mobile
       - vertical bleed in BOTH directions: ascending flourishes (top of
         R, V, etc.) need headroom above, and descender flourishes bleed
         DOWN into the manifestation section per design intent.
     Using `overflow-x: hidden` was wrong: per CSS spec, setting one
     overflow axis to non-visible forces the other to `auto`, which
     clipped the flourishes top + bottom. `clip-path: inset()` clips
     only the axes specified — left/right at 0, top/bottom expanded
     way outward so vertical bleed is unrestricted. */
  clip-path: inset(-200px 0 -240px 0);
}
.reading-title-display {
  /* Calligraphic title hero (New Icon Script). JS measures offsetWidth
     on this element and scales font-size in a single pass to fill the
     hero's content gutter — see v2.js initReadingTitleFit().

     Three load-bearing rules:
       display: inline-block  → makes offsetWidth report the ACTUAL
                                 text ink width (rather than clipping
                                 to parent width like a block <h1>).
       white-space: nowrap    → forces the title onto a single line so
                                 there's a meaningful "natural width"
                                 to measure.
       NO max-width           → was previously max-width: 100% which
                                 clamped offsetWidth to ~parent width;
                                 JS then computed scale ≈ 1 and the
                                 title never shrank, overflowing on
                                 mobile. Without max-width, offsetWidth
                                 honestly reflects the inked-text width
                                 and the scale math fits the gutter. */
  display: inline-block;
  font-family: var(--script-hero);
  font-style: normal;
  font-weight: 400;
  /* Mobile-friendly floor: at viewport ≤600px, 16vw ≈ 96px keeps the
     measurement honest; we no longer need a 96px MIN since the JS
     always scales to fit anyway. */
  font-size: clamp(48px, 16vw, 200px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}
.reading-title-sub {
  margin: 14px auto 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-quiet);
}

/* Tighter gap between the title hero and the manifestation card —
   the manifestation's own top padding was double-spending the gap.
   The title's z-index is higher, so the bleed lands on cream paper. */
.reading-title-hero + .manifestation {
  position: relative;
  z-index: 1;
  padding-top: clamp(48px, 6vw, 76px);  /* room under the bleeding title */
}

@media (max-width: 1100px) {
  /* Hide center dateline when left+right content gets close enough to
     overlap it. The 🌙 dateline is repeated in the section nav anyway. */
  .slab-center { display: none; }
}
@media (max-width: 880px) {
  .slab-stones { display: none; }
}
@media (max-width: 720px) {
  /* Mobile: strip the header back to just the customer name. The
     calligraphic reading title below (.reading-title-display) carries
     the visual identity for this width; the sun/moon/rising chips and
     the 🌙 month/latest-reading dateline are noise that compete with
     it. Stones panel is already hidden at ≤880px above. */
  .top-slab { padding: 8px 18px; }
  .slab-name { font-size: 30px; }
  .slab-signs { display: none; }
}
@media (max-width: 520px) {
  .top-slab { gap: 12px; padding: 8px 14px; }
  .slab-name { font-size: 26px; }
}
@media (max-width: 400px) {
  .slab-name { font-size: 22px; }
}

/* ─── Section nav (right-edge floating symbol buttons) ───────
   Vertical column of circular symbol buttons. Each has TWO
   independent animations:
     • A morph on the button itself — border-radius cycles through
       asymmetric values to produce an organic, blob-like outline
       that subtly breathes (~7s loop).
     • A bob on the inner `.bob` span — translateY + slight rotate,
       short-cycle (~4s), so the buttons appear to drift gently
       within the morphing outline.
   Each button gets a unique animation-delay so the column reads
   as a living cluster rather than a rigid synchronised pulse.
   Glyph centering is achieved by giving the glyph a fixed 1em
   square box, centered inside .bob which fills the whole button. */
.section-nav {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  /* High z-index so the fan-spread IG cards (and any future floating
     content) can never overlap the nav. The cards' inline z-index tops
     out at 60 — section-nav at 1000 is unreachable. */
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(20, 17, 14, 0.07);
  border-radius: 50%;
  animation: blob-morph 6.2s ease-in-out infinite;
  transition: background 0.2s, border-color 0.2s, color 0.2s,
              box-shadow 0.2s, transform 0.2s ease;
}

/* Inner bob — fills the button, perfectly centers the glyph,
   carries the translateY+rotate motion independently from the
   morph on the outer button. */
.section-nav-btn .bob {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  animation: blob-bob 4.0s ease-in-out infinite;
}

.section-nav-btn .glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  /* Same font stack everywhere so the glyphs render in a single
     visual register (text/serif, not colour-emoji). */
  font-family: 'Apple Symbols','Noto Sans Symbols','Segoe UI Symbol',
               var(--serif-display), serif;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  color: inherit;
}

/* Staggered animation delays — using negative offsets so all blobs
   start mid-cycle. Even the first button is "in motion" on page load. */
.section-nav-btn:nth-child(1)       { animation-delay: -0.4s; }
.section-nav-btn:nth-child(1) .bob  { animation-delay: -1.1s; }
.section-nav-btn:nth-child(2)       { animation-delay: -1.9s; }
.section-nav-btn:nth-child(2) .bob  { animation-delay: -0.3s; }
.section-nav-btn:nth-child(3)       { animation-delay: -3.6s; }
.section-nav-btn:nth-child(3) .bob  { animation-delay: -2.4s; }
.section-nav-btn:nth-child(4)       { animation-delay: -5.2s; }
.section-nav-btn:nth-child(4) .bob  { animation-delay: -3.7s; }
.section-nav-btn:nth-child(5)       { animation-delay: -6.7s; }
.section-nav-btn:nth-child(5) .bob  { animation-delay: -1.8s; }
.section-nav-btn:nth-child(6)       { animation-delay: -2.5s; }
.section-nav-btn:nth-child(6) .bob  { animation-delay: -4.0s; }

.section-nav-btn:hover .bob { animation-play-state: paused; }
.section-nav-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(20, 17, 14, 0.18);
  animation-play-state: paused;       /* settle on blob shape during hover */
}

.section-nav-btn .tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 7px 14px;
  border-radius: 2px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}
.section-nav-btn:hover .tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Asymmetric border-radius morph — pushed harder so the buttons
   visibly deform between circle and droplet/pebble shapes. */
@keyframes blob-morph {
  0%, 100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  20%      { border-radius: 72% 28% 60% 40% / 55% 45% 50% 50%; }
  40%      { border-radius: 32% 68% 50% 50% / 70% 30% 62% 38%; }
  60%      { border-radius: 62% 38% 30% 70% / 38% 62% 32% 68%; }
  80%      { border-radius: 28% 72% 64% 36% / 50% 50% 72% 28%; }
}

@keyframes blob-bob {
  0%, 100% { transform: translateY(0)    rotate(0deg)   scale(1);    }
  33%      { transform: translateY(-6px) rotate(5deg)   scale(1.03); }
  66%      { transform: translateY(5px)  rotate(-4deg)  scale(0.97); }
}

@media (prefers-reduced-motion: reduce) {
  .section-nav-btn,
  .section-nav-btn .bob { animation: none; }
}

@media (max-width: 720px) {
  .section-nav { right: 12px; gap: 8px; }
  .section-nav-btn { width: 40px; height: 40px; }
  .section-nav-btn .glyph { font-size: 16px; }
}

/* (Earlier duplicate reading-title-hero rules removed — the
   scroll-aware definitions above are now canonical.) */

@media (max-width: 540px) {
  .top-slab { padding: 8px 18px; min-height: 36px; }
  .top-slab .wm { font-size: 14px; }
  .top-slab .dt { font-size: 9.5px; letter-spacing: 0.32em; }
}

/* ─── Manifestation hero ──────────────────────────────────── */
.manifestation {
  padding: clamp(60px, 9vw, 110px) var(--pad-edge);
  text-align: center;
  border-bottom: 1px solid var(--rule-soft);
  background:
    linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 100%);
  position: relative;
}
.manifestation::before,
.manifestation::after {
  content: "✦";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  font-family: var(--serif-display);
  font-size: 16px;
  color: var(--accent);
  opacity: 0.6;
}
.manifestation::before { content: none; }   /* in-flow .manifestation-mark replaces this */
.manifestation::after  { bottom: 28px; }
.manifestation-mark {
  font-family: var(--serif-display);
  font-size: 14px;
  color: var(--accent);
  opacity: 0.7;
  letter-spacing: 0;
  margin: 6px 0 22px;
  line-height: 1;
}
.manifestation .eyebrow {
  margin-bottom: 26px;
  letter-spacing: 0.42em;
}
.manifestation blockquote {
  margin: 0 auto;
  max-width: 26ch;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--tweak-quote-size, clamp(28px, 4vw, 40px));
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}
.manifestation .attribution {
  display: block;
  width: 100%;
  margin-top: 28px;
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  text-align: center;
}
.manifestation .attribution::before { content: "— "; }

/* ─── Chart compact (low-prominence chart card) ───────────────
   Replaces the previous huge chart-hero. Sits BELOW the reading
   and consumes much less real estate. Clickable to expand. */
.chart-compact {
  padding: var(--pad-section) var(--pad-edge);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper);
}
.chart-compact-inner {
  max-width: var(--measure);
  margin: 0 auto;
}
.chart-compact .meta-label {
  display: block;
  margin-bottom: 28px;
  letter-spacing: 0.42em;
  text-align: center;
}
.chart-compact-grid {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  max-width: 580px;
  margin: 0 auto;
}
.chart-compact-wheel {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  text-align: center;
  font-family: inherit;
}
.chart-compact-wheel .wheel-inline,
.chart-compact-wheel img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  transition: opacity 0.2s;
}
.chart-compact-wheel .wheel-inline svg { width: 100%; height: 100%; display: block; }
.chart-compact-wheel:hover .wheel-inline,
.chart-compact-wheel:hover img { opacity: 0.85; }
.chart-compact-wheel .chart-compact-toggle {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--sans-meta);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}

.chart-compact-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.signs-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.signs-stack .sign-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
}
.signs-stack .sign-row:last-child { border-bottom: none; padding-bottom: 0; }
.signs-stack .role {
  flex: 0 0 64px;
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}
.signs-stack .value {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
}
.birth-meta {
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
}
.birth-meta .birth-line {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}
.birth-meta .birth-line.muted { color: var(--ink-quiet); font-size: 14px; }

/* Expanded state — wheel takes the full width */
.chart-compact.is-expanded .chart-compact-grid {
  grid-template-columns: 1fr;
  max-width: 520px;
}
.chart-compact.is-expanded .chart-compact-meta {
  flex-direction: row;
  gap: clamp(28px, 5vw, 56px);
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 8px;
}
.chart-compact.is-expanded .birth-meta { border-top: none; padding-top: 0; }

@media (max-width: 600px) {
  .chart-compact-grid { grid-template-columns: 1fr; max-width: 360px; gap: 32px; }
  .chart-compact.is-expanded .chart-compact-meta { flex-direction: column; }
}

/* ─── Soul Contract block ────────────────────────────────────
   Foundational one-shot reading. Sits between the monthly reading
   and the chart card. Always present, default COLLAPSED to a
   single-row header — the customer expands it when they want to
   re-read their lifetime contract. Visually distinct paper-deep
   panel so it doesn't blend with the monthly reading. */
.soul-contract {
  background: var(--paper-band);
  border-bottom: 1px solid var(--rule-soft);
}
.soul-contract details > summary {
  list-style: none;
  cursor: pointer;
}
.soul-contract details > summary::-webkit-details-marker { display: none; }
.soul-contract details > summary::marker { content: ''; }
.soul-contract-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 20px;
  align-items: baseline;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) var(--pad-edge);
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s;
}
.soul-contract-header:hover { background: rgba(255, 255, 255, 0.18); }
.soul-contract-header:hover .soul-contract-toggle { color: var(--ink); }
.soul-contract details[open] .soul-contract-toggle::before { content: 'Hide ✦'; }
.soul-contract details:not([open]) .soul-contract-toggle::before { content: 'Read ✦'; }
.soul-contract .soul-contract-toggle { font-size: 0; }
.soul-contract .soul-contract-toggle::before { font-size: 14px; }
.soul-contract-eyebrow {
  grid-column: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--sans-meta);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}
.soul-contract-eyebrow .glyph {
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}
.soul-contract-title {
  grid-column: 1;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.soul-contract-toggle {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  white-space: nowrap;
  transition: color 0.2s;
}

.soul-contract-body {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--pad-edge) clamp(48px, 7vw, 88px);
}
.soul-contract-lede {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-quiet);
  max-width: 56ch;
  margin: 0 0 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  text-wrap: balance;
}

/* Re-use the reading-body typography for soul contract sections */
.soul-contract-content {
  font-size: var(--tweak-body-size, 18px);
  line-height: var(--tweak-body-line-height, 1.78);
  color: var(--ink);
}
.soul-contract-content p {
  margin: 0 0 var(--tweak-paragraph-gap, 1.6em);
  text-wrap: pretty;
}
.soul-contract-content .section-head {
  margin: 48px 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.soul-contract-content .section-head:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.soul-contract-content .section-head .glyph {
  font-size: 22px;
  width: 1.2em; height: 1.2em;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji", sans-serif;
  flex-shrink: 0;
}
.soul-contract-content .section-head .label {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-wrap: balance;
}
.soul-contract-content .affirmation {
  margin: 48px auto 8px;
  padding: 32px 24px;
  max-width: 30ch;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
}
.soul-contract-content .affirmation::before {
  content: "✦";
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0;
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════════
   Rev 5: SOUL CONTRACT — "letter from your soul" treatment.
   Centered glyph + centered title in the closed-summary view,
   ✦ ornaments between body sections. Flowing prose (no card
   scaffolding) so it reads warmer than Soul Becoming's report
   layout.
   ═══════════════════════════════════════════════════════════ */
.section--soul-contract .soul-contract-header {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  row-gap: 12px;
}
.section--soul-contract .soul-contract-eyebrow {
  flex-direction: column;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.42em;
}
.section--soul-contract .soul-contract-eyebrow .glyph {
  display: block;
  font-size: 32px;
  color: var(--accent);
}
.section--soul-contract .soul-contract-title {
  grid-column: 1;
  font-style: italic;
  text-wrap: balance;
  max-width: 22ch;
}
.section--soul-contract .soul-contract-toggle {
  grid-column: 1;
  margin-top: 8px;
}
/* ✦ ornament between body section heads — replaces the structural
   hairline rule from the default `.section-head` treatment. */
.section--soul-contract .soul-contract-content .section-head {
  border-top: none;
  padding-top: 0;
  margin: 56px 0 22px;
  justify-content: center;
  text-align: center;
}
.section--soul-contract .soul-contract-content .section-head:not(:first-child)::before {
  content: "✦";
  position: absolute;
  margin-top: -36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 13px;
  opacity: 0.7;
  letter-spacing: 0;
}
.section--soul-contract .soul-contract-content .section-head {
  position: relative;
}

/* ─── Bracelet section (embedded order path) ─────────────────
   Sits between the monthly reading and the soul contract. The
   design goal: feel like the next sentence of the reading, not
   a shopping module. Cream paper, italic display copy, soft
   CTA. The bracelet visual is centered and breathes. */
.bracelet-section {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: clamp(56px, 8vw, 96px) var(--pad-edge);
}
.bracelet-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.bracelet-eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--sans-meta);
  font-size: 10.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.bracelet-eyebrow .glyph {
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0;
}
.bracelet-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 22px;
  text-wrap: balance;
}
.bracelet-lede {
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 52ch;
  margin: 0 auto 44px;
  text-wrap: pretty;
}
.bracelet-lede em { color: var(--ink); font-weight: 500; font-style: italic; }

/* Bracelet bead visual */
.bracelet-card {
  display: flex;
  justify-content: center;
  margin: 0 auto 36px;
}
.bracelet-card.is-compact { margin-bottom: 0; }
.bracelet-beads {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 22px 28px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
}
.bracelet-card.is-compact .bracelet-beads {
  gap: 8px;
  padding: 14px 18px;
}
.bracelet-beads .bead {
  display: inline-block;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 -4px 8px rgba(20, 17, 14, 0.18),
    inset 0 4px 8px rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(20, 17, 14, 0.1);
}
.bracelet-beads .bead-stone {
  width: 38px; height: 38px;
}
.bracelet-beads .bead-spacer {
  width: 14px; height: 14px;
  background: var(--paper-deep);
  box-shadow:
    inset 0 -2px 4px rgba(20, 17, 14, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.5);
}
.bracelet-card.is-compact .bead-stone { width: 26px; height: 26px; }
.bracelet-card.is-compact .bead-spacer { width: 10px; height: 10px; }

/* Stone breakdown list — ties bracelet to reading's stones */
.bracelet-stone-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 56ch;
  text-align: left;
}
.bracelet-stone-list li {
  display: grid;
  grid-template-columns: 14px auto 1fr;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
}
.bracelet-stone-list li:last-child { border-bottom: none; padding-bottom: 0; }
.bracelet-stone-list .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bracelet-sun);
  align-self: center;
  margin-top: 4px;
}
.bracelet-stone-list li:nth-child(2) .dot { background: var(--bracelet-moon); }
.bracelet-stone-list li:nth-child(3) .dot { background: var(--bracelet-rising); }
.bracelet-stone-list .name {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  white-space: nowrap;
}
.bracelet-stone-list .why {
  font-family: var(--serif-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-quiet);
}

/* CTA — primary action + secondary info line.
   Premium framing: solid ink button + italic secondary copy. */
.bracelet-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.bracelet-cta-primary {
  display: inline-block;
  padding: 16px 32px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.bracelet-cta-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.bracelet-cta-secondary {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-quiet);
}

/* Anchor bracelet — secondary path (lifetime piece) */
.anchor-bracelet {
  margin-top: clamp(56px, 8vw, 80px);
  padding-top: 0;
}
.anchor-divider {
  width: 60px;
  height: 1px;
  background: var(--rule);
  margin: 0 auto 40px;
}
.anchor-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  text-align: left;
  padding: 28px 32px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
}
.anchor-label {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.anchor-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-style: italic;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.anchor-lede {
  font-family: var(--serif-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-quiet);
  margin: 0 0 14px;
}
.anchor-lede em { color: var(--ink); font-style: italic; font-weight: 500; }
.anchor-cta {
  font-family: var(--sans-meta);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 4px 0;
}
.anchor-cta:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 640px) {
  .anchor-row { grid-template-columns: 1fr; }
  .anchor-visual { display: flex; justify-content: center; }
  .bracelet-stone-list li { grid-template-columns: 14px auto; }
  .bracelet-stone-list .why { grid-column: 1 / 3; padding-left: 28px; }
}

/* ─── Cockpit (STICKY bottom dashboard) ──────────────────────
   Pinned to the bottom of the viewport. Always visible while the
   customer reads. Compact single row of identity, chart, anchors,
   and quick links — the "instrument panel" pattern. Tap the
   chevron to collapse into a thin handle. */
:root {
  --cockpit-h: 104px;
  --cockpit-collapsed-h: 28px;
  --bracelet-sun: #C9A96A;
  --bracelet-moon: #C0B6E0;
  --bracelet-rising: #C2706D;
}
body { padding-bottom: 0; }    /* cockpit removed — no reserved space */

.cockpit {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  height: var(--cockpit-h);
  background: rgba(244, 239, 226, 0.92);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -10px 30px rgba(20, 17, 14, 0.08);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  transition: height 0.28s ease, transform 0.28s ease;
}
.cockpit.is-collapsed {
  height: var(--cockpit-collapsed-h);
  background: rgba(244, 239, 226, 0.86);
}
.cockpit.is-collapsed .cockpit-inner { opacity: 0; pointer-events: none; }
body:has(.cockpit.is-collapsed) { padding-bottom: var(--cockpit-collapsed-h); }

.cockpit-collapse {
  position: absolute;
  top: -12px; right: 18px;
  width: 28px; height: 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px 4px 0 0;
  border-bottom: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans-meta);
  font-size: 10px;
  color: var(--ink-quiet);
  z-index: 2;
  transition: color 0.15s, background 0.15s;
}
.cockpit-collapse:hover { color: var(--ink); background: var(--paper-soft); }
.cockpit.is-collapsed .cockpit-collapse {
  top: -10px;
  height: 22px;
}

.cockpit-inner {
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px var(--pad-edge);
  display: grid;
  grid-template-columns: 76px minmax(200px, 1.2fr) minmax(150px, 1fr) minmax(160px, 1fr) auto;
  gap: clamp(16px, 2.2vw, 32px);
  align-items: center;
  transition: opacity 0.2s;
}

.cockpit-chart {
  width: 76px; height: 76px;
  border: 1px solid var(--rule-soft);
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cockpit-chart:hover {
  transform: scale(1.04);
  border-bottom-color: var(--rule-soft);
  box-shadow: 0 4px 14px rgba(20, 17, 14, 0.12);
}
.cockpit-chart .wheel-inline,
.cockpit-chart img { width: 100%; height: 100%; display: block; aspect-ratio: 1 / 1; }
.cockpit-chart .wheel-inline svg { width: 100%; height: 100%; }

.cockpit-id { min-width: 0; }
.cockpit-name {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cockpit-signs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
}
.cockpit-signs .sign-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.cockpit-signs .glyph {
  font-family: 'Apple Symbols','Noto Sans Symbols','Segoe UI Symbol', serif;
  font-style: normal;
  font-size: 16px;
  color: var(--accent);
  line-height: 1;
}
.cockpit-signs .glyph.asc {
  font-family: var(--sans-meta);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 1px;
}

.cockpit-anchors,
.cockpit-stones-month {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cockpit-mini-label {
  font-family: var(--sans-meta);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.cockpit-anchors ul,
.cockpit-stones-month ul {
  list-style: none; padding: 0; margin: 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cockpit-stones-month li {
  display: inline-flex;
  align-items: baseline;
}
.cockpit-stones-month a {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding: 1px 0;
}
.cockpit-stones-month a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cockpit-stones-month li + li::before {
  content: "·";
  color: var(--ink-faint);
  margin: 0 8px 0 -6px;
}

.cockpit-anchors li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.cockpit-anchors .role {
  font-family: var(--sans-meta);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cockpit-anchors .name {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}

.cockpit-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.cockpit-nav a {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding: 4px 0;
}
.cockpit-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 1100px) {
  .cockpit-stones-month { display: none; }       /* hide stones row on tighter widths; still in the reading body */
  .cockpit-inner {
    grid-template-columns: 76px minmax(220px, 1.4fr) minmax(180px, 1fr) auto;
  }
}

@media (max-width: 880px) {
  :root { --cockpit-h: 132px; }
  .cockpit-inner {
    grid-template-columns: 56px 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 18px;
    padding: 12px 18px;
  }
  .cockpit-chart { width: 56px; height: 56px; grid-row: 1 / 3; }
  .cockpit-id    { grid-column: 2; grid-row: 1; }
  .cockpit-anchors { grid-column: 2 / 4; grid-row: 2; }
  .cockpit-nav   { grid-column: 3; grid-row: 1; }
  .cockpit-name  { font-size: 18px; }
  .cockpit-signs { font-size: 12.5px; }
  .cockpit-anchors .name { font-size: 14px; }
}

@media (max-width: 540px) {
  :root { --cockpit-h: 116px; }
  .cockpit-anchors ul { gap: 10px; }
  .cockpit-nav { font-size: 9.5px; gap: 10px; }
}

/* Bracelet placeholder card (future feature) ─────────────────
   Stones are surfaced inside the reading body first; this card
   shows what the recommended bracelet WILL look like — built
   from the customer's anchor stones — once that ships. */
.bracelet-card {
  border: 1px dashed var(--rule);
  padding: 18px 22px;
  background: var(--paper-soft);
  max-width: 420px;
}
.bracelet-pre-label {
  font-family: var(--sans-meta);
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.bracelet-beads {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 14px;
}
.bracelet-beads .bead {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: inset 0 -3px 6px rgba(20, 17, 14, 0.12),
              inset 0 3px 6px rgba(255, 255, 255, 0.55);
}
.bracelet-beads .bead-spacer {
  width: 14px; height: 14px;
  background: var(--paper-deep);
  opacity: 0.7;
}
.bracelet-summary {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-quiet);
  margin-bottom: 12px;
}
.bracelet-summary em { color: var(--ink); font-weight: 500; }
.bracelet-cta {
  display: inline-block;
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 10px 18px;
  border-bottom-width: 1px;
}
.bracelet-cta:hover { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); }

/* Bracelet inside cockpit, compact (currently unused — kit-only) */
.cockpit-bracelet-slot { grid-column: 1 / -1; }

/* ─── Chart hero (legacy) ─────────────────────────────────────
   Kept for back-compat with v2 prototypes. New pages should use
   <ChartCompact> + <Cockpit>. */
.chart-hero {
  padding: var(--pad-section) var(--pad-edge);
  text-align: center;
  border-bottom: 1px solid var(--rule-soft);
}
.chart-hero .wheel-wrap {
  width: min(440px, 86vw);
  margin: 0 auto 36px;
  display: block;
}
.chart-hero .wheel-wrap img,
.chart-hero .wheel-wrap object,
.chart-hero .wheel-wrap .wheel-inline,
.chart-hero .wheel-wrap .wheel-placeholder {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
}
.chart-hero .wheel-wrap .wheel-inline svg {
  width: 100%;
  height: 100%;
  display: block;
}
.chart-hero .wheel-wrap .wheel-placeholder {
  background: var(--paper-soft);
  border: 1px solid var(--rule-soft);
}

/* ─── Natal-wheel SVG styling ─────────────────────────────
   The SVG (chart_wheel_svg.py output) references CSS classes only —
   the original styles live in the production stylesheet. Mirror them
   here so the wheel renders correctly when inlined into the page. */
.wheel-inline .wheel-bg     { fill: var(--paper); }
.wheel-inline .corner-mark  { font-family: var(--serif-display); font-size: 16px; fill: var(--accent); opacity: 0.7; }
.wheel-inline .center-mark  { font-family: var(--serif-display); font-size: 14px; fill: var(--accent); opacity: 0.7; }
.wheel-inline .ring-line       { fill: none; stroke: var(--ink); stroke-width: 0.9; }
.wheel-inline .ring-line-soft  { fill: none; stroke: var(--rule); stroke-width: 0.9; }
.wheel-inline .deg-tick        { stroke: var(--ink-faint); stroke-width: 0.7; opacity: 0.5; }
.wheel-inline .deg-tick-major  { stroke: var(--ink-quiet); stroke-width: 1.1; opacity: 0.7; }
.wheel-inline .sign-divider    { stroke: var(--ink); stroke-width: 0.8; }
.wheel-inline .sign-glyph      { font-family: 'Apple Symbols','Noto Sans Symbols','Segoe UI Symbol', var(--serif-display); font-size: 20px; fill: var(--accent); }
.wheel-inline .sign-name       { font-family: var(--serif-body); font-size: 8px; letter-spacing: 0.16em; fill: var(--accent); opacity: 0.9; }
.wheel-inline .house-cusp      { stroke: var(--ink-faint); stroke-width: 0.55; stroke-dasharray: 2 3; opacity: 0.7; }
.wheel-inline .house-num       { font-family: var(--serif-display); font-style: italic; font-size: 12px; fill: var(--accent); opacity: 0.9; }
.wheel-inline .aspect-line       { stroke: var(--ink-quiet); stroke-width: 0.5; opacity: 0.3; fill: none; }
.wheel-inline .aspect-line.tight { stroke: var(--ink); stroke-width: 0.9; opacity: 0.65; }
.wheel-inline .planet-tick    { stroke: var(--ink); stroke-width: 1; }
.wheel-inline .planet-glyph   { font-family: 'Apple Symbols','Noto Sans Symbols','Segoe UI Symbol', serif; font-size: 22px; fill: var(--ink); }
.wheel-inline .planet-degree  { font-family: var(--serif-body); font-size: 9px; fill: var(--ink-quiet); }
.wheel-inline .footer-label   { font-family: var(--serif-body); font-size: 10px; letter-spacing: 0.34em; fill: var(--ink-faint); }
.chart-hero .meta-label { margin-bottom: 18px; }
.chart-hero h1.name {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--ink);
}
.chart-hero .birth {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink-quiet);
  margin-bottom: 36px;
}
.chart-hero .birth .sep { margin: 0 12px; color: var(--ink-faint); }

/* SIGNS row — clearly its own block */
.signs-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  max-width: 640px;
  margin: 0 auto 28px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-soft);
}
.signs-row .sign-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 84px;
}
.signs-row .role {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}
.signs-row .value {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.005em;
  color: var(--ink);
}

/* STONES row — separate block beneath signs */
.anchor-stones {
  list-style: none;
  padding: 28px 0 0;
  margin: 0 auto;
  max-width: 640px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--rule-soft);
}
.anchor-stones li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 84px;
}
.anchor-stones .anchor-role {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}
.anchor-stones .anchor-name {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.005em;
  color: var(--ink);
}

/* ─── Reading block ───────────────────────────────────────── */
.reading {
  padding: var(--pad-section) var(--pad-edge);
  border-bottom: 1px solid var(--rule-soft);
}
.reading-inner { max-width: var(--measure); margin: 0 auto; }
.reading h2.reading-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(38px, 5.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 auto 18px;
  text-align: center;
  color: var(--ink);
  text-wrap: balance;
  max-width: 18ch;
}
.reading .eyebrow {
  display: block;
  margin: 0 auto 60px;
  text-align: center;
  letter-spacing: 0.42em;
}

.reading .body {
  font-size: var(--tweak-body-size, 18px);
  line-height: var(--tweak-body-line-height, 1.78);
  color: var(--ink);
  font-weight: 400;
}
.reading .body p {
  margin: 0 0 var(--tweak-paragraph-gap, 1.6em);
  text-wrap: pretty;
}

/* Section heads — emoji as a small "ornament" left-aligned,
   label as larger italic display. Above-the-line accent rule for
   structure. */
.reading .body .section-head {
  margin: 56px 0 22px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.reading .body .section-head:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.reading .body .section-head .glyph {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  /* Pin a consistent box so emojis (which all render at different
     intrinsic sizes — 🌞 reads tiny next to 💗 / 🏆 etc.) sit on a
     uniform baseline. */
  width: 1.2em;
  height: 1.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",
               "Twemoji Mozilla","EmojiOne Color","Android Emoji", sans-serif;
}
.reading .body .section-head .label {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--tweak-section-head-size, 26px);
  letter-spacing: 0.005em;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
  flex: 1 1 auto;
  /* Was: max-width 22ch — caused "WHERE THIS NEW MOON LANDS IN YOUR
     CHART" to wrap after 3 words. The container (.reading-inner) already
     constrains the measure to a comfortable reading width, so we let the
     label flow to that natural width. */
}

.reading .body strong { font-weight: 600; color: var(--ink); }
.reading .body em { color: var(--ink); }

/* Drop cap intentionally removed in v2 — the float caused collisions with
   the preceding section heading and the flourish wasn't earning its weight
   against a 22-line opening paragraph. The opening reads cleaner without it. */

.reading .body .affirmation {
  margin: 56px auto;
  padding: 36px 24px;
  max-width: 32ch;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
}
.reading .body .affirmation::before {
  content: "✦";
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0;
  font-style: normal;
}

/* ─────────────────────────────────────────────────────────────
   PREMIUM EDITORIAL ADDITIONS — Premium reading layout
   Adds: TOC strip, section subtitles, orientation prose, 4-card
   weekly grid, framed final-message block.
   These render only when the new reading shape is present;
   older Full Moon style readings keep their existing layout.
   ───────────────────────────────────────────────────────────── */

/* TOC — slim chip strip at the top of the reading body. */
.reading .body .reading-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin: 0 0 38px;
  padding: 14px 16px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  justify-content: center;
}
.reading .body .reading-toc a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px;
  border: none;
  border-radius: 0;
  font-family: var(--sans-meta, var(--meta, var(--serif-body)));
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  text-decoration: none;
  transition: color 0.15s ease;
}
.reading .body .reading-toc a:hover,
.reading .body .reading-toc a:focus {
  color: var(--accent);
}
.reading .body .reading-toc a .glyph {
  font-size: 14px;
  letter-spacing: 0;
}
.reading .body .reading-toc a .name {
  /* nothing extra; relying on parent letter-spacing */
}

/* Section subtitle — the part after `—` in `LOVE — Soft Power`. */
.reading .body .section-head .subtitle {
  display: block;
  width: 100%;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--ink-quiet);
  text-transform: none;
  margin-top: 4px;
}
/* Force the subtitle onto its own row inside the flexbox section-head. */
.reading .body .section-head { flex-wrap: wrap; }

/* Orientation prose — the atmospheric opening paragraphs with no eyebrow.
   v2 brand: body prose is Montserrat 400. The Seasons italic is reserved
   for short ornament moments (manifestation, accent words, stone names),
   NOT multi-paragraph body. Previously used var(--serif-display) italic
   which read as ornament instead of body type. */
.reading .body p.orientation {
  font-family: var(--serif-body);
  font-style: normal;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1.5em;
}
.reading .body p.orientation:first-of-type::first-letter {
  /* Drop-cap stays — small ochre accent letter, still in body face. */
  font-family: var(--serif-body);
  font-size: 1.6em;
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-right: 1px;
}

/* Weekly Timeline — 4-card grid (2×2 desktop, stacked mobile). */
.reading .body .section-head.weekly-head { margin-bottom: 14px; }
.reading .body .weekly-intro {
  /* Body face, ink-quiet — short setup paragraph. Italic was the
     v1 choice but multi-line body prose belongs in roman Montserrat. */
  font-family: var(--serif-body);
  font-style: normal;
  color: var(--ink-quiet);
  margin: 0 0 26px;
  text-align: center;
}
.reading .body .weekly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 28px;
  margin: 0 0 14px;
}
.reading .body .weekly-card {
  border-left: 2px solid var(--accent);
  padding: 4px 0 6px 18px;
}
.reading .body .weekly-card .weekly-card-title {
  font-family: var(--sans-meta, var(--meta, var(--serif-body)));
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
  font-weight: 500;
}
.reading .body .weekly-card p {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 1em;
  color: var(--ink);
}
.reading .body .weekly-card p:last-child { margin-bottom: 0; }
@media (max-width: 680px) {
  .reading .body .weekly-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Final Message — framed italic Cormorant block with ✦ marks. */
.reading .body .final-message {
  margin: 64px auto;
  max-width: 36ch;
  padding: 28px 12px;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  text-align: center;
}
.reading .body .final-message-star {
  font-size: 14px;
  color: var(--accent);
  text-align: center;
  margin: 12px 0;
  line-height: 1;
}
.reading .body .final-message-star + .final-message-eyebrow {
  margin-top: -8px;
}
.reading .body .final-message-eyebrow {
  text-align: center;
  font-family: var(--sans-meta, var(--meta, var(--serif-body)));
  font-size: 10.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 26px;
}
.reading .body .final-message-eyebrow .glyph {
  font-size: 16px;
  letter-spacing: 0;
  margin-right: 8px;
}
.reading .body .final-message p {
  /* Body face — Montserrat 400. Multi-paragraph closing prose is body
     type, not ornament. Italic is reserved for the manifestation
     mantra above (single line) and short accent words. */
  font-family: var(--serif-body);
  font-style: normal;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1.3em;
  text-wrap: balance;
}
.reading .body .final-message p:last-of-type { margin-bottom: 0; }

/* Smooth scroll into anchors from the TOC and let section heads breathe
   below any sticky chrome the site-nav adds. */
.reading .body [id] { scroll-margin-top: 80px; }
html { scroll-behavior: smooth; }

/* ─── Download CTA ────────────────────────────────────────── */
.download-row { margin-top: 64px; text-align: center; }
.download-row a {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.download-row a:hover { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); }

/* ─── Stones panel ────────────────────────────────────────── */
.stones-panel {
  margin-top: 64px;
  padding: 40px 0 0;
  border-top: 1px solid var(--rule);
}
.stones-panel .stones-label {
  display: block;
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  text-align: center;
}
.stones-panel .stones-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.stones-panel .stone-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: baseline;
}
.stones-panel .stone-name {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.stones-panel .stone-text { font-size: 16.5px; line-height: 1.7; }
.stones-panel .stone-why { color: var(--ink); margin: 0 0 6px; }
.stones-panel .stone-howto {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-quiet);
}

/* ═══════════════════════════════════════════════════════════
   5-YEAR SOUL BECOMING CHART (🌒) — full reading section
   for customers who own the product.
   ═══════════════════════════════════════════════════════════ */
.soul-becoming {
  margin: 80px auto;
  max-width: 920px;
  padding: 0 32px;
}
.soul-becoming-inner {
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  padding: 56px 48px;
  position: relative;
}
/* Rev 5: Soul Becoming reads as a printed almanac/report. The double
   hairline inset frame + ✦ corner marks set this section visually
   apart from the flowing-prose Soul Contract. */
.section--soul-becoming .soul-becoming-inner::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 0.6px solid var(--rule-soft, var(--rule));
  pointer-events: none;
}
.section--soul-becoming .soul-becoming-inner > *:not(.becoming-wheel) {
  position: relative;
  z-index: 1;
}
.section--soul-becoming .soul-becoming-inner::after {
  /* 4 corner ✦ marks sit just inside the inset frame */
  content: "✦  ✦";
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 1em;
  opacity: 0.55;
  pointer-events: none;
}
@media (max-width: 680px) {
  .soul-becoming { padding: 0 16px; }
  .soul-becoming-inner { padding: 36px 22px; }
  .section--soul-becoming .soul-becoming-inner::before { inset: 8px; }
}

.becoming-head { text-align: center; margin-bottom: 36px; }
.becoming-eyebrow {
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.becoming-eyebrow .glyph {
  font-size: 16px;
  letter-spacing: 0;
}
.becoming-title {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 8px;
  text-wrap: balance;
}
.becoming-subtitle {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-quiet);
  margin-bottom: 18px;
}
.becoming-howto {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.becoming-howto summary {
  cursor: pointer;
  color: var(--accent);
  display: inline-block;
  padding: 6px 10px;
  list-style: none;
}
.becoming-howto summary::-webkit-details-marker { display: none; }
.becoming-howto summary::marker { content: ''; }
.becoming-howto summary::after { content: ' ▾'; letter-spacing: 0; }
.becoming-howto[open] summary::after { content: ' ▴'; }
.becoming-howto-body {
  margin: 14px auto 0;
  max-width: 56ch;
  font-family: var(--serif-body);
  font-style: normal;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
}
.becoming-howto-body p { margin: 0 0 0.8em; }
.becoming-howto-body p:last-child { margin-bottom: 0; }

/* Rev 5: bi-wheel is the visual hero of the section — sits at the
   top of the inner band, max ~520px tall, centered. Cream paper
   underneath the SVG (the SVG itself paints its own cream bg). */
.becoming-wheel {
  margin: 0 auto 32px;
  text-align: center;
  position: relative;
  z-index: 0;
}
.becoming-wheel-eyebrow {
  font-family: var(--sans-meta);
  font-size: 10.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.becoming-wheel-svg {
  max-width: 520px;
  max-height: 520px;
  margin: 0 auto;
}
.becoming-wheel-svg svg { width: 100%; height: auto; }
.becoming-wheel-legend {
  margin-top: 8px;
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.becoming-wheel-legend .swatch {
  display: inline-block;
  width: 18px;
  border-top: 1.2px solid var(--ink);
  margin-right: 6px;
  vertical-align: middle;
}
.becoming-wheel-legend .swatch.progressed {
  border-top-style: dashed;
  border-top-color: var(--accent);
}
.becoming-wheel-legend .sep {
  color: var(--accent);
  margin: 0 12px;
}

.becoming-body { font-family: var(--serif-body); color: var(--ink); }
.becoming-body p {
  font-size: 16.5px;
  line-height: 1.7;
  margin: 0 0 1.2em;
}
.becoming-body strong { font-weight: 600; color: var(--ink); }
.becoming-body em { font-style: italic; color: var(--ink); }

.section--becoming-master {
  margin: 32px 0 22px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
}
.section--becoming-master .glyph { font-size: 22px; }
.section--becoming-master .label {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
}
.section--becoming-master .subtitle {
  display: block;
  width: 100%;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-quiet);
  margin-top: 2px;
}

.becoming-years {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin: 48px 0 0;
}
/* Rev 5: each year card is a printed "almanac page" — top hairline
   in ochre, JetBrains Mono receipt chrome for the year number, ✧
   separator ornament between cards. The card spans the full available
   width (constrained by the inner band's padding) — Rev 6 fixes the
   premature wrap on year titles by removing inherited max-widths. */
.becoming-year-card {
  padding-top: 32px;
  border-top: 1px solid var(--accent);
  position: relative;
}
.becoming-years .becoming-year-card:not(:first-child)::before {
  content: "✧";
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 14px;
  opacity: 0.65;
}
.becoming-year-eyebrow {
  /* "YEAR N OF 5" — JetBrains Mono receipt chrome. */
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.becoming-year-title {
  /* Rev 6: title gets the full content width (up to 640px) with
     `text-wrap: balance` so a tail orphan word doesn't force a
     premature wrap. Removed the inherited 36ch-ish constraint
     coming from `.final-message` / `.becoming-body p` siblings. */
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 6px;
  max-width: 640px;
  text-wrap: balance;
}
.becoming-year-title .year-num {
  /* Year number printed as receipt chrome — JetBrains Mono small caps,
     accents the visual "report" feel without stealing focus. */
  font-family: var(--sans-meta);
  font-style: normal;
  font-weight: 500;
  font-size: 0.62em;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-right: 12px;
  vertical-align: 0.12em;
}
.becoming-year-theme {
  /* Rev 6: tone DOWN. Newsreader (body) italic, 0.95em, deeper-ochre
     ink, no display-weight, generous breathing room above + below. */
  font-family: var(--serif-body);
  font-style: italic;
  font-weight: 400;
  font-size: 0.95em;
  line-height: 1.55;
  color: #5A4A30;
  margin: 0.65em 0 1em;
  max-width: 56ch;
  text-wrap: balance;
}
.becoming-year-theme .label {
  /* Quiet uppercase label, no bold. */
  font-family: var(--sans-meta);
  font-style: normal;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 10px;
}
.becoming-year-intro {
  font-family: var(--serif-body);
  font-size: 15.5px;
  color: var(--ink-quiet);
  margin: 0 0 1.2em;
}
.becoming-pillar-grid {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 14px;
}
.becoming-pillar {
  border-left: 2px solid var(--accent);
  padding: 2px 0 4px 18px;
}
.becoming-pillar-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.becoming-pillar-title .glyph { font-size: 18px; line-height: 1; }
.becoming-pillar-title .label {
  font-family: var(--sans-meta);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.becoming-pillar p {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 1em;
}
.becoming-pillar p:last-child { margin-bottom: 0; }

/* ───── Most Transformative Year ─────────────────────────── */
.becoming-mty {
  margin: 56px 0 0;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
.becoming-mty-head { margin: 0 0 22px; }
.becoming-mty-eyebrow {
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.becoming-mty-title {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.18;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.becoming-mty-year-num {
  font-family: var(--sans-meta);
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--accent);
  text-transform: uppercase;
  vertical-align: 0.2em;
}
.becoming-mty-title-text { display: inline; }
.becoming-mty-lead {
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 1em;
}
.becoming-mty-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 20px;
}
@media (min-width: 720px) {
  .becoming-mty-pillars { grid-template-columns: repeat(3, 1fr); }
}
.becoming-mty-pillar {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 18px;
}
.becoming-mty-pillar-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.becoming-mty-pillar-title .glyph { font-size: 18px; line-height: 1; }
.becoming-mty-pillar-title .label {
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.becoming-mty-pillar-subtitle {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink-quiet);
  margin: 2px 0 10px;
}
.becoming-mty-pillar p {
  font-family: var(--serif-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 0.85em;
}
.becoming-mty-pillar p:last-child { margin-bottom: 0; }
.becoming-mty-sub-label {
  font-family: var(--sans-meta);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 6px;
}
.becoming-mty-closing {
  margin: 36px auto 0;
  max-width: 38ch;
  text-align: left;
  border-top: 1px solid var(--rule);
  padding-top: 26px;
}
.becoming-mty-closing-title {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 14px;
}
.becoming-mty-closing p {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1em;
}
.becoming-mty-closing p:last-child { margin-bottom: 0; }
.becoming-mty-closing p strong {
  font-style: normal;
  font-weight: 600;
}

.becoming-summary {
  margin: 56px 0 0;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
.becoming-summary .section-head {
  border-top: none;
  padding-top: 0;
  margin: 0 0 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.becoming-summary .section-head .glyph { color: var(--accent); font-size: 16px; }
.becoming-summary .section-head .label {
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
}
.becoming-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--serif-body);
  font-size: 14.5px;
}
.becoming-summary-table thead th {
  font-family: var(--sans-meta);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 12px 14px;
  border-bottom: 1.2px solid var(--accent);
  text-align: left;
  font-weight: 500;
}
.becoming-summary-table tbody td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  line-height: 1.5;
  vertical-align: top;
}
.becoming-summary-table tbody td.year {
  font-family: var(--sans-meta);
  letter-spacing: 0.05em;
}
.becoming-summary-table tbody td.sign {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--ink);
}
.becoming-summary-table tbody tr:last-child td { border-bottom: none; }

.becoming-benediction {
  margin: 48px auto 0;
  max-width: 36ch;
}

.becoming-manifestation {
  margin: 40px auto 0;
  text-align: center;
  max-width: 32ch;
}
.becoming-manifestation-eyebrow {
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.becoming-manifestation blockquote {
  margin: 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
}
.becoming-manifestation-mark {
  margin-top: 18px;
  color: var(--accent);
  font-size: 14px;
}

.soul-becoming--pending .soul-becoming-inner {
  background: repeating-linear-gradient(
    -45deg,
    var(--paper-soft) 0 8px,
    var(--paper-deep) 8px 9px
  );
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT LOCK CARDS — inline preview/CTA for un-owned products.
   Editorial brand but slightly desaturated, a small 🔒 lock glyph
   to signal "preview", and an IG DM CTA.
   ═══════════════════════════════════════════════════════════ */
.product-lock {
  margin: 72px auto;
  max-width: 720px;
  padding: 44px 40px;
  background: #F0EBDC;
  border: 1px solid var(--rule-soft, var(--rule));
  position: relative;
  text-align: center;
}
@media (max-width: 680px) {
  .product-lock { padding: 32px 22px; margin: 56px 16px; }
}
.product-lock__lock {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 14px;
  color: var(--ink-faint);
  opacity: 0.7;
}
.product-lock__glyph {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 18px;
}
.product-lock__title {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 6px;
}
.product-lock__subtitle {
  font-family: var(--sans-meta);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin: 0 0 22px;
}
.product-lock__hook {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 24px;
  text-wrap: balance;
}
.product-lock__hook em { font-style: italic; color: var(--ink); font-weight: 500; }
.product-lock__teaser {
  margin: 0 auto 30px;
  padding: 0;
  list-style: none;
  max-width: 38ch;
  text-align: left;
}
.product-lock__teaser li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-family: var(--serif-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-quiet);
}
.product-lock__teaser li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--accent);
  font-size: 11px;
}
.product-lock__cta {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--accent);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.product-lock__cta:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  border-bottom-color: var(--accent);
}
.product-lock__footnote {
  margin: 14px 0 0;
  font-family: var(--sans-meta);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Rev 2: Monthly lock-card in renewal variant — quieter, anchor link
   to #archive instead of marketing copy. */
.product-lock--renewal .product-lock__renewal-line {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink-quiet);
  margin: 0 0 18px;
}
.product-lock__archive-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.product-lock__archive-link:hover {
  color: var(--accent-hot);
  border-bottom-color: var(--accent-hot);
}

/* ═══════════════════════════════════════════════════════════
   Rev 3: PAGE-LEVEL NAV CHIP STRIP — sits between the top-slab
   and the manifestation hero. Subtle ochre-bordered pills,
   anchor-linked to the rendered sections below. Compact and
   premium-feeling; never loud.
   ═══════════════════════════════════════════════════════════ */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 32px auto 12px;
  padding: 0 var(--pad-edge);
  max-width: var(--measure);
}
.page-nav-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 14px;
  border: 0.6px solid var(--accent);
  border-radius: 999px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 0.85em;
  letter-spacing: 0;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  border-bottom: 0.6px solid var(--accent);
}
.page-nav-chip:hover,
.page-nav-chip:focus {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  border-bottom-color: var(--accent);
}
.page-nav-chip .glyph {
  font-size: 12px;
  line-height: 1;
  font-style: normal;
  letter-spacing: 0;
}
.page-nav-chip .name {
  font-style: italic;
}
@media (max-width: 680px) {
  .page-nav {
    gap: 6px 8px;
    margin: 22px auto 6px;
    padding: 0 12px;
  }
  .page-nav-chip { padding: 6px 11px; font-size: 12.5px; }
  .page-nav-chip .glyph { font-size: 11px; }
}

@media (max-width: 640px) {
  .stones-panel .stone-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ─── Archive ─────────────────────────────────────────────── */
.archive {
  padding: var(--pad-section) var(--pad-edge);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-band);
}
.archive-inner { max-width: var(--measure); margin: 0 auto; }
.archive .label {
  display: block;
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  text-align: center;
}
.archive details {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
}
.archive details:last-of-type { border-bottom: 1px solid var(--rule); }
.archive summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.archive summary::-webkit-details-marker { display: none; }
.archive summary .month {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  white-space: nowrap;
}
.archive summary .glyph {
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.archive details[open] summary .glyph::after { content: "  ✦"; }
.archive details .preview {
  margin: 22px 0 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-quiet);
}

/* Past readings expand to show the FULL body inline — title, manifestation,
   the 5 sections + stones panel + Download PDF. Re-uses the same typography
   primitives as the live monthly reading, just gated behind a <details>. */
.archive-entry-body {
  padding: 28px 0 8px;
  font-size: var(--tweak-body-size, 18px);
  line-height: var(--tweak-body-line-height, 1.78);
  color: var(--ink);
  max-width: var(--measure);
}
.archive-entry-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0 0 22px;
  text-align: center;
}
.archive-entry-manifestation {
  margin: 0 auto 32px;
  padding: 24px 0;
  max-width: 36ch;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.archive-entry-manifestation blockquote {
  margin: 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}
.archive-entry-body .body { font-size: inherit; line-height: inherit; }
.archive-entry-body .body p { margin: 0 0 var(--tweak-paragraph-gap, 1.6em); }
.archive-entry-body .body .section-head {
  margin: 40px 0 18px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.archive-entry-body .body .section-head:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.archive-entry-body .body .section-head .glyph {
  font-size: 22px;
  width: 1.2em; height: 1.2em;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji", sans-serif;
}
.archive-entry-body .body .section-head .label {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  flex: 1 1 auto;
}
.archive-entry-body .download-row {
  margin-top: 28px;
  text-align: center;
}

/* ─── Share card section ──────────────────────────────────── */
/* ─── Share section: 5-variant playing-card spread ─────────── */

.share-card {
  padding: var(--pad-section) var(--pad-edge);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper);
  overflow: hidden;
}

.share-card-header {
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
}
.share-card-header .eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  letter-spacing: 0.42em;
}
.share-card h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 16px;
}
.share-card-header p {
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-quiet);
  max-width: 52ch;
  margin: 0 auto;
}

.share-card-footer {
  text-align: center;
  margin-top: 56px;
}
.share-card .share-follow {
  display: inline-block;
  padding: 14px 22px;
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  border: 1px solid var(--rule);
  border-radius: 0;
  text-decoration: none;
}
.share-card .share-follow:hover {
  color: var(--ink);
  border-color: var(--ink);
  border-bottom-color: var(--ink);
}

/* The fan layout. .share-spread is a non-clipping container; cards
   are absolutely placed via inline `transform`. The cards extend
   beyond the wrap's box (rotation + translation), so the parent
   needs to be tall enough that no card gets clipped. */
.share-spread-wrap {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.share-spread {
  position: relative;
  /* Allow the spread to fan PAST the parent .share-card's measure so all
     5 cards remain fully visible. The fan's outer cards translate up to
     ±perStepPx × (length-1) (worst case when front is at an edge); with
     overflow: hidden in place those cards used to clip at the share-card
     gutter. The skill's reference component (.claude/skills/.../styles.css)
     also keeps this non-clipping — production was the outlier.

     The previous concern (cards visually colliding with the right-edge
     .section-nav on narrow desktop widths) is now handled inside the JS
     by recomputeStep() — perStepPx shrinks to fit the actual container
     width, so we don't need a hard clip here anymore. */
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-spread-card {
  position: absolute;
  /* No border, no padding — the card body is the .ig-card child. */
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transform-origin: center bottom;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.35s ease,
              z-index 0s linear 0s;
  filter: none;
  font-family: inherit;
}
.share-spread-card:not(.is-front) {
  filter: brightness(0.96) saturate(0.92);
}
.share-spread-card:not(.is-front):hover {
  filter: brightness(1.02);
}
.share-spread-card.is-front {
  cursor: zoom-in;
}
.share-spread-card.is-front:hover .ig-card {
  box-shadow:
    0 4px 0 var(--paper-deep),
    0 26px 60px rgba(20, 17, 14, 0.34);
  transform: translateY(-4px);
}
.share-spread-card:focus-visible { outline: none; }
.share-spread-card:focus-visible .ig-card {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.share-spread-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans-meta);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s, bottom 0.2s;
  pointer-events: none;
}
.share-spread-card.is-front .share-spread-label,
.share-spread-card:hover .share-spread-label {
  opacity: 1;
  bottom: -34px;
}
.share-spread-card.is-front .share-spread-label {
  color: var(--accent);
  font-weight: 500;
}

.share-spread-meta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.share-spread-meta .frontInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.share-spread-meta .frontLabel {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}
.share-spread-meta .frontHint {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.share-spread-meta .dots {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.share-spread-meta .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-faint);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.share-spread-meta .dot:hover { background: var(--ink-quiet); }
.share-spread-meta .dot.is-active {
  background: var(--accent);
  transform: scale(1.4);
}

@media (max-width: 720px) {
  .share-spread { height: 420px; }
  .share-spread-card { transform-origin: center bottom; }
}

/* ─── IG card design (1080×1920 mock, rendered ~240×426) ───── */

.ig-card {
  /* 9:16 aspect, scaled-down stand-in for the production 1080×1920 PNG.
     All internal positioning uses px at this display scale. */
  position: relative;
  width: 240px;
  height: 426px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  box-shadow:
    0 2px 0 var(--paper-deep),
    0 14px 32px rgba(20, 17, 14, 0.18);
  transition: box-shadow 0.3s, transform 0.3s;
  font-family: var(--serif-display);
}
.ig-card::before, .ig-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ig-card::before {
  background: radial-gradient(circle at 20% 20%, rgba(139, 106, 46, 0.06), transparent 50%);
}
.ig-card::after {
  background: radial-gradient(circle at 80% 80%, rgba(20, 17, 14, 0.04), transparent 55%);
}

.ig-card .ig-frame-rule {
  position: absolute;
  inset: 14px;
  border: 1px solid var(--rule);
  pointer-events: none;
}
.ig-card .ig-frame-rule::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--rule-soft);
}

.ig-card .ig-corner {
  position: absolute;
  font-family: var(--serif-display);
  font-size: 8px;
  color: var(--accent);
  line-height: 1;
  z-index: 3;
}
.ig-card .ig-corner.tl { top: 18px; left: 22px; }
.ig-card .ig-corner.tr { top: 18px; right: 22px; }
.ig-card .ig-corner.bl { bottom: 18px; left: 22px; }
.ig-card .ig-corner.br { bottom: 18px; right: 22px; }

.ig-card .ig-brand {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans-meta);
  font-size: 6.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  z-index: 2;
}

.ig-card .ig-handle {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 9px;
  color: var(--ink-quiet);
  z-index: 2;
}
.ig-card .ig-handle .at { color: var(--accent); margin-right: 4px; }

.ig-card .ig-stage {
  position: absolute;
  inset: 50px 28px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 1;
}

/* Chart placeholder circle */
.ig-card .ig-chart {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  position: relative;
}
.ig-card .ig-chart::before {
  content: "✦";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 7px;
  color: var(--accent);
}
.ig-card .ig-chart::after {
  /* Concentric ring sketch suggesting a natal chart */
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 0.5px solid var(--rule-soft);
  box-shadow:
    inset 0 0 0 4px var(--paper),
    inset 0 0 0 5px var(--rule-soft);
}

/* Name treatments */
.ig-card .ig-name-block { text-align: center; }
.ig-card .ig-name {
  font-family: var(--script-hero);
  font-style: normal;
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  color: var(--ink);
}
.ig-card .ig-name.ig-name-xl {
  font-size: 60px;
}
.ig-card .ig-name-month {
  margin-top: 6px;
  font-family: var(--sans-meta);
  font-size: 6.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Signs row */
.ig-card .ig-signs {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 11px;
  color: var(--ink);
  margin-top: 4px;
}
.ig-card .ig-signs .chip {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}
.ig-card .ig-signs .g {
  font-family: 'Apple Symbols','Noto Sans Symbols','Segoe UI Symbol', serif;
  font-style: normal;
  font-size: 10px;
  color: var(--accent);
}
.ig-card .ig-signs .g.asc {
  font-family: var(--sans-meta);
  font-size: 6px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Manifestation quote */
.ig-card .ig-quote {
  margin: 0;
  max-width: 18ch;
  text-align: center;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.ig-card .ig-quote-md { font-size: 14px; line-height: 1.22; max-width: 22ch; }
.ig-card .ig-quote-xl { font-size: 22px; line-height: 1.18; max-width: 14ch; }
.ig-card .ig-quote::before, .ig-card .ig-quote::after {
  content: '"';
  display: block;
  font-family: var(--serif-display);
  color: var(--accent);
  font-size: 24px;
  line-height: 0;
  opacity: 0.55;
  margin: 9px 0 -2px;
}
.ig-card .ig-quote::after { margin: 8px 0 0; }

/* Manifestation eyebrow */
.ig-card .ig-quote-eyebrow {
  font-family: var(--sans-meta);
  font-size: 6px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
  text-align: center;
}

/* Date hero (V4) */
.ig-card .ig-hero-month {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 52px;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-align: center;
}

/* Bracelet (V5) */
.ig-card .ig-beads-strip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: var(--paper-soft);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
}
.ig-card .ig-beads-strip .bead {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow:
    inset 0 -2px 4px rgba(20, 17, 14, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.55);
}
.ig-card .ig-beads-strip .bead.gap {
  width: 6px;
  height: 6px;
  background: var(--paper-deep);
}
.ig-card .ig-beads-strip .bead-sun { background: #C9A96A; }
.ig-card .ig-beads-strip .bead-moon { background: #C0B6E0; }

.ig-card .ig-stones-row {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 11px;
  color: var(--ink);
}
.ig-card .ig-stones-row .label {
  font-family: var(--sans-meta);
  font-style: normal;
  font-size: 6px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
}
.ig-card .ig-stones-row .sep { color: var(--ink-faint); font-style: normal; margin: 0 -2px; }
.ig-card .ig-stones-row em { font-style: italic; color: var(--ink); font-weight: 500; }

/* ─── Page footer ─────────────────────────────────────────── */
.page-foot {
  padding: 48px var(--pad-edge);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.page-foot .wordmark {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
}
.page-foot a { border-bottom: none; color: var(--accent); }
.page-foot a:hover { color: var(--accent-hot); }

/* ─── Library index ───────────────────────────────────────── */
.library-hero {
  padding: clamp(64px, 10vw, 130px) var(--pad-edge) clamp(40px, 6vw, 72px);
  text-align: center;
  border-bottom: 1px solid var(--rule-soft);
}
.library-hero .meta-label { margin-bottom: 22px; letter-spacing: 0.42em; }
.library-hero h1.title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(52px, 7.5vw, 80px);
  letter-spacing: -0.022em;
  line-height: 1;
  margin: 0 0 24px;
  color: var(--ink);
}
.library-hero p.subtitle {
  max-width: 52ch;
  margin: 0 auto;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink-quiet);
  text-wrap: balance;
}

.library-list {
  list-style: none;
  padding: clamp(28px, 6vw, 72px) var(--pad-edge);
  margin: 0 auto;
  max-width: 880px;
}
.library-list .library-entry { border-top: 1px solid var(--rule); }
.library-list .library-entry:last-child { border-bottom: 1px solid var(--rule); }
.library-list .library-entry a {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 26px 8px;
  border-bottom: none;
  color: var(--ink);
  transition: background 0.2s, padding 0.2s;
}
.library-list .library-entry a:hover {
  background: var(--paper-soft);
  padding-left: 20px;
  padding-right: 20px;
}
.library-list .thumb {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--paper-deep);
  border: 1px solid var(--rule-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Apple Symbols','Noto Sans Symbols','Segoe UI Symbol',serif;
  font-size: 30px; color: var(--accent);
  flex-shrink: 0;
}
.library-list .name {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
}
.library-list .meta {
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.library-list .meta .sep { margin: 0 10px; color: var(--ink-faint); }
.library-list .month {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  color: var(--accent);
  white-space: nowrap;
}

/* ─── Kit toggle (designer-only) ───────────────────────
   Sits BOTTOM-right, definitely below all page content. Strictly
   a designer-side affordance for previewing different sample
   customers; not part of the customer product. */
.kit-toggle {
  position: fixed;
  bottom: calc(var(--cockpit-h, 96px) + 18px);
  right: 18px;
  top: auto;
  left: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 4px;
  display: flex;
  gap: 2px;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(20, 17, 14, 0.12);
  max-width: calc(100vw - 36px);
  overflow: auto;
}
.kit-toggle::before {
  content: "Preview";
  display: flex;
  align-items: center;
  padding: 0 12px 0 8px;
  font-family: var(--sans-meta);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-right: 1px solid var(--rule-soft);
  margin-right: 4px;
  white-space: nowrap;
}
.kit-toggle button {
  background: transparent;
  border: none;
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 9px 16px;
  cursor: pointer;
  color: var(--ink-quiet);
  transition: background 0.15s, color 0.15s;
}
.kit-toggle button:hover { color: var(--ink); }
.kit-toggle button.active {
  background: var(--ink);
  color: var(--paper);
}

/* ─── Small screens ───────────────────────────────────────── */
@media (max-width: 640px) {
  html { font-size: 17px; }
  .brand .wordmark { font-size: 18px; }
  .brand .crumb { display: none; }
  .reading .body .section-head { gap: 12px; }
  .reading .body .section-head .label { font-size: 22px; }
  .library-list .library-entry a { grid-template-columns: 52px 1fr; }
  .library-list .month { grid-column: 2; margin-top: 4px; }
  .library-list .thumb { width: 52px; height: 52px; font-size: 22px; }
  .library-list .name { font-size: 21px; }
}

/* ════════════════════════════════════════════════════════════════════
   ADMIN SURFACES — private library, customer profile, cockpit
   Used only inside /web/_admin/. Reader pages (web/r/<slug>.html) and
   the public root index do not pick up any of these classes.

   Design rules carried in from the brand:
   - cream paper · warm ink · single ochre accent · 1px hairlines
   - Cormorant Garamond display + Newsreader body (no new families)
   - sharp corners everywhere (radius 0) except .thumb circles
   - no drop shadows, no second accent, no icon library
   - ✦ ornament + unicode astrological glyphs only

   Information density is higher than the reader page (it's an ops
   console) but rhythm + type contrast match the reader exactly.
   ═════════════════════════════════════════════════════════════════════ */

/* ─── Shared admin chrome ─────────────────────────────────────────── */
.admin-surface { background: var(--paper); }
.admin-brand .crumb { color: var(--ink-quiet); }
.admin-brand .crumb a {
  color: var(--ink-quiet);
  border-bottom: none;
  letter-spacing: 0.34em;
}
.admin-brand .crumb a:hover { color: var(--accent); }
.admin-brand .crumb .crumb-sep {
  margin: 0 8px;
  color: var(--ink-faint);
  letter-spacing: 0;
}
.admin-brand .crumb .crumb-here { color: var(--ink); }
.admin-foot { border-top: 1px solid var(--rule-soft); }

.profile-placeholder {
  color: var(--accent);
  font-style: italic;
  font-family: var(--serif-display);
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.7;
}

.admin-surface code,
.admin-surface .cd {
  font-family: 'SF Mono', 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
  font-size: 0.86em;
  color: var(--ink);
  background: var(--paper-deep);
  padding: 1px 6px;
  letter-spacing: 0;
}
.admin-surface .dot-sep {
  color: var(--ink-faint);
  margin: 0 8px;
}

/* ─── Library (admin) ─────────────────────────────────────────────── */
.library-hero--admin .library-admin-note {
  margin-top: 18px;
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.library-hero--admin .library-admin-note a {
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
}

.library-list--admin .library-entry--admin a {
  grid-template-columns: 88px 1fr 220px;
  gap: 32px;
  padding: 30px 8px;
  align-items: flex-start;
}
.library-list--admin .library-entry-text { min-width: 0; }
.library-list--admin .library-admin-line {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 14px;
  border-top: 1px dashed var(--rule);
  padding-top: 12px;
}
.library-list--admin .library-admin-kv {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.library-list--admin .library-admin-kv .k {
  font-family: var(--sans-meta);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.library-list--admin .library-admin-kv .v {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
}
.library-list--admin .library-admin-kv .v code {
  background: transparent;
  padding: 0;
  font-style: normal;
  font-size: 13px;
  color: var(--ink-quiet);
}
.library-list--admin .library-entry-trail {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.library-list--admin .library-admin-cta {
  font-family: var(--sans-meta);
  font-size: 10.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
}
.library-list--admin .library-test-badge {
  font-family: var(--sans-meta);
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 2px 8px;
  vertical-align: 0.18em;
  margin-left: 10px;
}

/* ─── Profile page — hero + sections ──────────────────────────────── */
.profile-hero {
  padding: clamp(56px, 8vw, 96px) var(--pad-edge) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule-soft);
  text-align: center;
  background: linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 100%);
}
.profile-hero-inner { max-width: 820px; margin: 0 auto; }
.profile-hero-name {
  font-family: var(--serif-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(56px, 8vw, 96px);
  letter-spacing: -0.022em;
  line-height: 1;
  margin: 18px 0 24px;
  color: var(--ink);
}
.profile-hero-signs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 44px);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 22px;
}
.profile-hero-signs .chip {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.profile-hero-signs .g {
  font-family: 'Apple Symbols','Noto Sans Symbols','Segoe UI Symbol', serif;
  font-style: normal;
  font-size: 22px;
  color: var(--accent);
}
.profile-hero-signs .g.asc {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.profile-hero-line {
  font-family: var(--serif-body);
  font-size: 16px;
  color: var(--ink-quiet);
  margin-bottom: 24px;
}
.profile-hero-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.profile-hero-jump a {
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  border-bottom: none;
}
.profile-hero-jump a:hover { color: var(--accent); }
.profile-hero-cta {
  margin-top: 22px;
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.profile-hero-link { color: var(--accent); border-bottom: 1px solid var(--rule); }
.profile-hero-meta em {
  font-family: var(--serif-display);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  font-size: 14px;
}

.profile-section {
  padding: clamp(48px, 6vw, 88px) var(--pad-edge);
  border-bottom: 1px solid var(--rule-soft);
  scroll-margin-top: 80px;
}
.profile-section-inner { max-width: 980px; margin: 0 auto; }
.profile-section-head { margin-bottom: 32px; max-width: 720px; }
.profile-h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 48px);
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 12px 0 8px;
  color: var(--ink);
}
.profile-h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.profile-section-lede {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-quiet);
  line-height: 1.5;
  max-width: 64ch;
  margin: 0;
}

/* ─── Profile identity grid ───────────────────────────────────────── */
.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.profile-meta-grid--subscriber { /* same grid, no override needed */ }
.profile-meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.profile-meta-row .k {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.profile-meta-row .v {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.2;
}
.profile-meta-row + .profile-meta-row { border-top: none; }

.profile-notes-row {
  margin-top: 22px;
  padding: 24px;
  background: var(--paper-soft);
  border: 1px solid var(--rule-soft);
}
.profile-notes-row .k {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.profile-notes-row .v {
  font-family: var(--serif-body);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.55;
}

.profile-flag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.profile-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
}
.profile-flag .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.profile-flag.off { color: var(--ink-faint); border-color: var(--rule-soft); }
.profile-flag.off .dot { background: transparent; border: 1px solid var(--rule); }

.profile-test-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 22px;
  border: 1px solid var(--ink);
  background: var(--paper-soft);
}
.profile-test-banner .label {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 4px 12px;
}
.profile-test-banner .text {
  font-family: var(--serif-body);
  font-size: 15px;
  color: var(--ink);
}

/* ─── Profile chart fingerprint ───────────────────────────────────── */
.profile-chart-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.profile-chart-wheel .wheel-inline {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
}
.profile-chart-wheel .wheel-inline svg { width: 100%; height: 100%; display: block; }

.profile-chart-meta { min-width: 0; }
.profile-fingerprint-card {
  border: 1px solid var(--rule);
  padding: 20px 24px;
  margin-bottom: 24px;
  background: var(--paper-soft);
}
.profile-fp-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.profile-fp-row:last-child { border-bottom: none; }
.profile-fp-row .role {
  font-family: var(--sans-meta);
  font-size: 10.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.profile-fp-row .value {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
}

.profile-kvp {
  margin: 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  row-gap: 12px;
  column-gap: 20px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 18px;
}
.profile-kvp dt {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 4px;
}
.profile-kvp dd {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 15px;
  color: var(--ink);
}
.profile-kvp dd code { font-size: 12.5px; }

.profile-tables {
  margin-top: 32px;
  border-top: 1px solid var(--rule);
}
.profile-tables > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.profile-tables > summary::-webkit-details-marker { display: none; }
.profile-tables > summary::marker { content: ''; }
.profile-tables > summary .summary-mark { color: var(--accent); }
.profile-tables > summary:hover { color: var(--ink); }
.profile-tables-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: 8px;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--serif-body);
  font-size: 14px;
}
.profile-table thead th {
  text-align: left;
  font-family: var(--sans-meta);
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.profile-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: baseline;
}
.profile-table tbody tr:hover td { background: var(--paper-soft); }

.profile-table .p-glyph {
  font-family: 'Apple Symbols','Noto Sans Symbols','Segoe UI Symbol', serif;
  font-size: 18px;
  color: var(--accent);
  width: 28px;
}
.profile-table .p-name {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.profile-table .p-rx {
  font-family: var(--sans-meta);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
  margin-left: 6px;
}
.profile-table .p-sign,
.profile-table .h-sign,
.profile-table .a-transit .sign-chip,
.profile-table .a-natal .sign-chip {
  font-family: var(--serif-body);
  font-style: italic;
}
.profile-table .p-pos,
.profile-table .h-pos,
.profile-table .a-orb {
  font-family: 'SF Mono', 'JetBrains Mono', 'Menlo', monospace;
  font-size: 13px;
  color: var(--ink-quiet);
}
.profile-table .h-num {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  width: 60px;
}
.profile-table .a-aspect em {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--accent);
  font-size: 16px;
  letter-spacing: -0.005em;
}
.profile-table .a-transit .g,
.profile-table .a-natal .g {
  font-family: 'Apple Symbols','Noto Sans Symbols','Segoe UI Symbol', serif;
  font-style: normal;
  color: var(--ink);
  margin-right: 4px;
}
.profile-table .sign-chip {
  color: var(--ink-quiet);
  margin-left: 6px;
  font-size: 13px;
}
.profile-table .a-house {
  font-family: var(--serif-body);
  font-size: 13px;
  color: var(--ink-quiet);
  font-style: italic;
}

/* ─── Profile stones ──────────────────────────────────────────────── */
.profile-stones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.profile-stones-grid + .profile-stones-grid { border-top: 1px solid var(--rule); margin-top: 24px; }
.profile-stones-monthly-row .profile-stone-card { background: var(--paper-soft); }

.profile-stone-card {
  padding: 24px 24px 28px;
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  min-height: 200px;
}
.profile-stone-card:last-child { border-right: none; }
.profile-stone-role {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.profile-stone-name {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.1;
}
.profile-stone-species {
  font-family: var(--serif-display);
  font-size: 14px;
  color: var(--ink-quiet);
  margin: 6px 0 14px;
}
.profile-stone-themes {
  font-family: var(--serif-body);
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 8px;
}
.profile-stone-how,
.profile-stone-why {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-quiet);
  line-height: 1.55;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
}
.profile-stone-transit {
  display: inline-block;
  margin-top: 10px;
  font-family: 'SF Mono', 'JetBrains Mono', 'Menlo', monospace;
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.profile-stone-transit .orb { color: var(--ink-quiet); margin-left: 6px; }

/* ─── Profile readings list (collapsibles) ────────────────────────── */
.profile-readings-list {
  border-top: 1px solid var(--rule);
}
.profile-reading-entry { border-bottom: 1px solid var(--rule); }
.profile-reading-entry > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 130px 160px 1fr 110px auto;
  align-items: baseline;
  gap: 18px;
  padding: 20px 4px;
}
.profile-reading-entry > summary::-webkit-details-marker { display: none; }
.profile-reading-entry > summary::marker { content: ''; }
.profile-reading-entry > summary:hover { background: var(--paper-soft); }
.profile-reading-entry > summary .kind {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
}
.profile-reading-entry > summary .month {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}
.profile-reading-entry > summary .title {
  font-family: var(--serif-display);
  font-size: 18px;
  color: var(--ink-quiet);
  font-style: italic;
}
.profile-reading-entry > summary .title em { color: var(--ink); }
.profile-reading-entry > summary .state {
  font-family: var(--sans-meta);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  justify-self: end;
}
.profile-reading-entry > summary .toggle {
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  justify-self: end;
}
.profile-reading-entry[open] > summary .toggle { font-size: 0; }
.profile-reading-entry[open] > summary .toggle::before {
  content: 'Hide ✦';
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.profile-reading-body {
  padding: 12px 4px 36px;
  border-top: 1px solid var(--rule-soft);
  max-width: var(--measure);
}
.profile-manifestation {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--ink);
  line-height: 1.35;
  padding: 18px 24px;
  margin: 18px 0 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-soft);
  position: relative;
}
.profile-manifestation::before {
  content: "✦";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 0 8px;
  color: var(--accent);
  font-style: normal;
  font-size: 14px;
}

.profile-reading-body .body { font-size: 16.5px; line-height: 1.7; }
.profile-reading-body .body p { margin: 0 0 1.4em; }
.profile-reading-body .body .section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 32px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
}
.profile-reading-body .body .section-head:first-child {
  padding-top: 0;
  border-top: none;
  margin-top: 8px;
}
.profile-reading-body .body .section-head .glyph { font-size: 18px; }
.profile-reading-body .body .section-head .label {
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink);
}
.profile-reading-body .body .affirmation {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  text-align: center;
  padding: 20px;
  margin-top: 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.profile-reading-actions {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.profile-reading-actions a {
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
}
.profile-reading-soul > summary .kind { color: var(--ink); }
.profile-reading-soul { background: var(--paper-soft); }

/* ─── Cockpit ────────────────────────────────────────────────────── */
.cockpit-hero {
  padding: clamp(56px, 8vw, 96px) var(--pad-edge) clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--rule-soft);
  text-align: center;
  background: linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 100%);
}
.cockpit-hero-inner { max-width: 820px; margin: 0 auto; }
.cockpit-hero-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 18px 0 18px;
  color: var(--ink);
}
.cockpit-hero-title em { color: var(--accent); font-style: italic; }
.cockpit-hero-sub {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-quiet);
  max-width: 56ch;
  margin: 0 auto 22px;
  line-height: 1.4;
}
.cockpit-hero-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--rule-soft);
}
.cockpit-hero-jump a {
  font-family: var(--sans-meta);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  border-bottom: none;
}
.cockpit-hero-jump a:hover { color: var(--accent); }

.cockpit-panel {
  padding: clamp(48px, 6vw, 88px) var(--pad-edge);
  border-bottom: 1px solid var(--rule-soft);
  scroll-margin-top: 80px;
}
.cockpit-panel-head { max-width: 720px; margin: 0 auto 32px; }
.cockpit-h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 44px);
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 12px 0 10px;
  color: var(--ink);
}
.cockpit-h2 em { color: var(--accent); font-style: italic; }
.cockpit-lede {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-quiet);
  line-height: 1.5;
  max-width: 60ch;
  margin: 0;
}

/* ─── Cockpit pipeline flow diagram ──────────────────────────────── */
.cockpit-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 56px);
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}
.cockpit-flow-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.cockpit-flow-node {
  width: 100%;
  max-width: 480px;
  padding: 16px 22px;
  border: 1px solid var(--rule);
  background: var(--paper-soft);
  text-align: center;
}
.cockpit-flow-node--input { border-left: 3px solid var(--accent); }
.cockpit-flow-node--step  {
  background: var(--paper);
  border: 1px solid var(--ink);
}
.cockpit-flow-node--artifact {
  background: transparent;
  border: 1px dashed var(--rule);
}
.cockpit-flow-node--outcome {
  background: var(--paper-soft);
  border-left: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
}
.cockpit-flow-node-label {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.2;
}
.cockpit-flow-node--step .cockpit-flow-node-label {
  font-style: normal;
  font-family: 'SF Mono', 'JetBrains Mono', 'Menlo', monospace;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.cockpit-flow-node--artifact .cockpit-flow-node-label {
  font-style: normal;
  font-family: 'SF Mono', 'JetBrains Mono', 'Menlo', monospace;
  font-size: 14px;
  color: var(--ink-quiet);
}
.cockpit-flow-node--outcome .cockpit-flow-node-label {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--accent);
}
.cockpit-flow-node-sub {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 8px;
}
.cockpit-flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 36px;
  justify-content: center;
}
.cockpit-flow-arrow-line {
  width: 1px;
  flex: 1;
  background: var(--accent);
  display: block;
}
.cockpit-flow-arrow-tip {
  font-size: 11px;
  color: var(--accent);
  line-height: 1;
  margin-top: -2px;
}

.cockpit-flow-annotations {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 80px;
}
.cockpit-flow-note {
  padding: 18px 22px;
  border: 1px solid var(--rule-soft);
  background: var(--paper-soft);
}
.cockpit-flow-note .k {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.cockpit-flow-note .v {
  font-family: var(--serif-body);
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.6;
}

/* ─── Cockpit prompts panel ──────────────────────────────────────── */
.cockpit-prompt { border-top: 1px solid var(--rule); }
.cockpit-prompt:last-of-type { border-bottom: 1px solid var(--rule); }
.cockpit-prompt > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 22px 4px;
}
.cockpit-prompt > summary::-webkit-details-marker { display: none; }
.cockpit-prompt > summary::marker { content: ''; }
.cockpit-prompt > summary:hover { background: var(--paper-soft); }
.cockpit-prompt-file code {
  font-size: 13.5px;
  background: var(--paper-deep);
  padding: 4px 10px;
}
.cockpit-prompt-meta {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-quiet);
}
.cockpit-prompt-repo {
  font-family: var(--sans-meta);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  justify-self: end;
}
.cockpit-prompt-body {
  margin: 0 0 8px;
  padding: 24px;
  background: var(--paper-soft);
  border: 1px solid var(--rule-soft);
  font-family: 'SF Mono', 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink);
  max-height: 540px;
  overflow: auto;
}
.cockpit-prompt-line {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 14px;
  align-items: baseline;
}
.cockpit-prompt-line .ln {
  color: var(--ink-faint);
  text-align: right;
  font-size: 11px;
  user-select: none;
  border-right: 1px solid var(--rule-soft);
  padding-right: 8px;
}
.cockpit-prompt-line .cd {
  white-space: pre-wrap;
  word-break: break-word;
  background: transparent;
  padding: 0;
  color: var(--ink);
}

/* ─── Cockpit tables (cron + customer list) ──────────────────────── */
.cockpit-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 1080px;
  margin: 0 auto;
}
.cockpit-table thead th {
  text-align: left;
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 14px 14px;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.cockpit-table tbody td,
.cockpit-table tbody th {
  padding: 16px 14px;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--serif-body);
  font-size: 15px;
  vertical-align: baseline;
}
.cockpit-table--cron tbody th {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-faint);
  width: 220px;
  font-weight: 500;
}
.cockpit-table tbody tr:hover td,
.cockpit-table tbody tr:hover th { background: var(--paper-soft); }
.cockpit-cron-meta { color: var(--ink-quiet); font-style: italic; margin-left: 12px; font-size: 13.5px; }

.cockpit-customer-row .c-name .name {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}
.cockpit-customer-row .c-badge {
  font-family: var(--sans-meta);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 2px 8px;
  margin-left: 10px;
  vertical-align: 0.18em;
}
.cockpit-customer-row .c-signs {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--ink);
}
.cockpit-customer-row .c-signs .sep { color: var(--ink-faint); margin: 0 6px; }
.cockpit-customer-row .c-status {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.cockpit-customer-row .c-status .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--accent);
  vertical-align: 0.1em;
}
.cockpit-customer-row .c-status .dot--test { background: var(--ink); }
.cockpit-customer-row .c-cycle {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.cockpit-customer-row .c-base code { font-size: 12px; }
.cockpit-customer-row .c-action a {
  font-family: var(--sans-meta);
  font-size: 10.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
}

/* ─── Cockpit future-feature cards ───────────────────────────────── */
.cockpit-future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  max-width: 1080px;
  margin: 0 auto;
}
.cockpit-future-card {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper);
  min-height: 220px;
}
.cockpit-future-eyebrow {
  font-family: var(--sans-meta);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 14px;
}
.cockpit-future-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--ink);
}
.cockpit-future-text {
  font-family: var(--serif-body);
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 14px;
}
.cockpit-future-when {
  font-family: var(--serif-display);
  font-size: 14.5px;
  color: var(--ink-quiet);
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--rule-soft);
}

/* ─── Admin: small screens ──────────────────────────────────────── */
@media (max-width: 880px) {
  .profile-chart-grid { grid-template-columns: 1fr; }
  .cockpit-flow { grid-template-columns: 1fr; }
  .cockpit-flow-annotations { position: static; }
  .profile-tables-inner { grid-template-columns: 1fr; }
  .profile-reading-entry > summary {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .profile-reading-entry > summary .state,
  .profile-reading-entry > summary .toggle { justify-self: start; }
  .library-list--admin .library-entry--admin a {
    grid-template-columns: 64px 1fr;
  }
  .library-list--admin .library-entry-trail {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
    margin-top: 6px;
  }
  .cockpit-customer-row .c-name .name { font-size: 18px; }
  .cockpit-table--customers thead th,
  .cockpit-table--customers tbody td {
    padding: 12px 8px;
    font-size: 13px;
  }
}
