/* Placement Library pages. Composes the site's own tokens; no new patterns. */
.lib-article { max-width: 680px; margin: 0 auto; }
.lib-article p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.85; margin: 0 0 1.2rem; }
.lib-article p b { color: var(--ink); font-weight: 600; }
.lib-answer { max-width: 620px; margin-left: auto; margin-right: auto; }
.lib-hook {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.4;
  color: var(--ink) !important; text-align: center; margin: 0 auto 2.4rem !important; max-width: 600px;
}
.lib-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 2.6rem 0 2.2rem; }
.lib-h {
  font-family: var(--display); font-weight: 400; letter-spacing: 0.06em;
  font-size: 1.05rem; text-transform: uppercase; color: var(--gold); margin: 0 0 1.1rem;
}
.lib-eyebrow {
  font-family: var(--sans); font-size: 0.7rem !important; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted) !important; margin: 0 0 0.9rem !important;
}
.lib-related, .lib-grid { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.35rem 1.4rem; }
.lib-related { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.lib-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.lib-related a, .lib-grid a {
  font-family: var(--serif); font-size: 1.12rem; color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.lib-related a:hover, .lib-grid a:hover { color: var(--gold-br); border-bottom-color: var(--line); }
.lib-cta { text-align: center; padding-bottom: 2rem; }
.lib-cta p { margin-bottom: 1rem; }
.lib-cta .btn { margin: 0.35rem 0.3rem; }
.lib-index .lib-h { font-size: 1.3rem; letter-spacing: 0.1em; }
.lib-index .lib-eyebrow { margin-top: 1.4rem !important; }
@media (max-width: 640px) {
  .lib-article p { font-size: 1.02rem; }
  .lib-hook { font-size: 1.3rem; }
}

/* ── The reading (homepage, below the wheel) ─────────────────── */
#reading .lib-article { max-width: 720px; }
.rd-planet { margin: 0 0 0.6rem; }
.rd-title { font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: 0.05em; color: var(--ink); margin: 0 0 1rem; display: flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; }
.rd-glyph { color: var(--gold); font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', var(--serif); font-variant-emoji: text; font-size: 1.5rem; }
.rd-deg { color: var(--muted); font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.15em; margin-left: 0.2rem; }
.rd-hook-small { font-size: 1.2rem !important; text-align: left !important; margin: 0 0 0.8rem !important; }
.rd-sub { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 1.6rem 0 0.6rem; font-weight: 500; }
.rd-more { margin: 0 0 1rem !important; }
.rd-more a { color: var(--gold-br); font-family: var(--serif); font-size: 1.05rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.rd-more a:hover { border-bottom-color: var(--gold); }
.rd-aspect { margin: 0 0 1.1rem; }
.rd-aspect p { margin-bottom: 0.4rem; }
.rd-aspect b { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--ink); }
.rd-orb { color: var(--muted); font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.12em; margin-left: 0.6rem; }
.rd-note { color: var(--muted) !important; font-family: var(--serif); font-style: italic; font-size: 1.02rem !important; }
.rd-locked { position: relative; }
.rd-locked .rd-body { filter: blur(7px); opacity: 0.4; pointer-events: none; user-select: none; max-height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.rd-unlock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem 1rem; }
.rd-unlock-inner { max-width: 420px; width: 100%; }
.rd-unlock-line { font-family: var(--serif); font-size: 1.25rem; color: var(--ink) !important; line-height: 1.4; margin-bottom: 1.2rem !important; }
.rd-unlock input { width: 100%; padding: 0.85rem 1rem; background: rgba(14,15,28,0.9); border: 1px solid var(--line); color: var(--ink); border-radius: 6px; font-family: var(--sans); font-size: 0.95rem; margin-bottom: 0.7rem; }
.rd-unlock input:focus { outline: none; border-color: var(--gold); }
.rd-unlock .btn { width: 100%; }
.rd-fine { font-size: 0.72rem !important; color: var(--muted) !important; margin-top: 0.8rem !important; }
.rd-unlocked .rd-body { filter: none; opacity: 1; pointer-events: auto; user-select: auto; max-height: none; -webkit-mask-image: none; mask-image: none; }
.rd-unlocked .rd-unlock { display: none; }
.rd-end { padding: 0.5rem 0 1rem; }

/* Dedicated reading page */
.rp-head { padding-bottom: 1.5rem; }
.rp-change { margin-top: 1rem; }
.rp-change a { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.rp-change a:hover { color: var(--gold); border-bottom-color: var(--line); }
.rp-wheel-wrap { max-width: 720px; margin: 0 auto; }
.rp-wheel-wrap .chart-mount { max-width: 620px; margin: 0 auto; }
.rp-wheel-wrap .snapshot { margin-top: 1.4rem; }

/* ── Venus review 2026-09-16: rhythm, ranking, locked section, mobile ── */
#reading .section-title { font-size: clamp(1.5rem, 2.8vw, 2.05rem); margin: 0.8rem 0 0.9rem; }
#reading .section-head { margin-bottom: 2.2rem; }
.rd-title { font-size: 1.5rem; }
.rd-locked .rd-body { filter: blur(9px); opacity: 0.22; max-height: 360px;
  -webkit-mask-image: linear-gradient(180deg, #000 25%, transparent);
          mask-image: linear-gradient(180deg, #000 25%, transparent); }
.rd-locked::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(5,6,14,0.82) 42%, rgba(5,6,14,0.94) 100%); }
.rd-unlocked::after { display: none; }
.rd-unlock { align-items: flex-end; padding: 0 1rem 1.6rem; z-index: 1; }
.rd-unlock-inner { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.rp-head .section-head { margin-bottom: 1rem; }
.rp-wheel-wrap .chart-stage { aspect-ratio: auto; }
.rp-wheel-wrap .chart-panel { background: none; border: 0; border-radius: 0; padding: 0;
  min-height: 0; margin-top: 0.6rem; text-align: center; backdrop-filter: none; }
.rp-wheel-wrap .chart-panel.active { background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.5rem 1.6rem; text-align: left; backdrop-filter: blur(14px); }
.rp-wheel-wrap .snap-cell { border: 0; border-top: 1px solid var(--line); border-radius: 0;
  background: none; padding: 1rem 0.4rem 0; }
.rp-wheel-wrap .snapshot { gap: 0 1.4rem; margin-top: 1.8rem; }
.rp-wheel-wrap .snap-cell .g { font-size: 1.45rem; }
.lib-article { max-width: 648px; }
#reading .lib-article { max-width: 648px; }
.rd-unlock input { font-size: 16px; }
.lib-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.85rem 2rem; align-items: start; }
.lib-grid a { display: inline-block; line-height: 1.35; }
.lib-related { gap: 0.6rem 2rem; }
.lib-head .section-head { margin-bottom: 1.6rem; }
.lib-head .section-desc.lib-answer { font-family: var(--serif); font-size: 1.18rem; line-height: 1.7; color: var(--ink-soft); }
.lib-hook { margin-top: 1.4rem !important; }
.rd-sub { margin: 2.4rem 0 0.9rem; }
.rd-sub::before { content: ''; display: block; width: 26px; height: 1px; background: var(--line); margin-bottom: 0.75rem; }
.rd-planet .lib-rule { margin: 3.8rem 0 2rem; }
.rd-aspect-h { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--ink); margin: 0 0 0.45rem; }
.rd-a-glyphs { color: var(--gold); letter-spacing: 0.1em; margin-right: 0.5rem; font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', var(--serif); font-variant-emoji: text; }
.rd-orb { color: var(--muted-2); font-size: 0.66rem; letter-spacing: 0.14em; margin-left: 0.6rem; white-space: nowrap; }
.rd-standfirst { text-align: center; max-width: 520px; margin: 0 auto 0.6rem !important; }
@media (max-width: 640px) {
  .lib-cta .btn { display: flex; width: 100%; max-width: 320px; margin: 0.5rem auto;
    padding-left: 1.1rem; padding-right: 1.1rem; justify-content: center; text-align: center; }
  .rp-wheel-wrap .snap-cell .v { font-size: 0.82rem; }
  .rp-wheel-wrap .snap-cell .g { font-size: 1.3rem; }
}

@media (max-width: 640px) {
  .rd-title { font-size: 1.32rem; }
  #reading .section-title { font-size: 1.6rem; }
}

/* ═══ Placement library: three column frame (2026-09-17) ═══
   Left nav, 648px measure, on-this-page rail. Built by build-library.js.
   Mobile first: the stacked rules are what a 375px phone gets. */
/* ── Shared: glyph text presentation, same stack styles.css uses ── */
.lx-g, .lx-mark {
  font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols', var(--serif);
  font-variant-emoji: text;
}

/* anchors sit below the fixed site nav when jumped to */
.lib-article h2[id], .lib-article p[id] { scroll-margin-top: 6.5rem; }

/* ── The frame ───────────────────────────────────────────────── */
.lx-grid { display: block; }
.lx-col-l { margin: 0 0 2.6rem; }
.lx-col-r { display: none; }

/* ── Left: the library nav ───────────────────────────────────── */

/* On phones the whole nav lives inside one closed disclosure.
   On desktop the summary is hidden and the nav is always open. */
.lx-browse > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s;
}
.lx-browse > summary::-webkit-details-marker { display: none; }
.lx-browse > summary:hover { color: var(--gold); }
.lx-browse[open] > summary { color: var(--gold); border-bottom-color: transparent; }

/* chevron, drawn from two hairlines so there is no icon font */
.lx-mk {
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0.6;
  transition: transform 0.25s;
  flex: none;
}
details[open] > summary .lx-mk { transform: rotate(-135deg) translate(-1px, -1px); }

.lx-nav { padding: 0.4rem 0 0; }
.lx-home {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}
.lx-home:hover { color: var(--gold-br); }
.lx-nav .lib-rule { margin: 0.85rem 0 0.4rem; }

.lx-planet { border-top: 1px solid var(--line-2); }
.lx-planet:first-of-type { border-top: 0; }
.lx-planet > summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  cursor: pointer;
  padding: 0.8rem 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s;
}
.lx-planet > summary::-webkit-details-marker { display: none; }
.lx-planet > summary:hover { color: var(--gold-br); }
.lx-planet > summary .lx-mk { margin-left: auto; align-self: center; }
.lx-planet.is-current > summary { color: var(--gold); }
.lx-g { color: var(--gold); font-size: 0.95rem; line-height: 1; }

.lx-nav .lib-eyebrow {
  margin: 1.15rem 0 0.5rem !important;
  padding-left: 0.85rem;
  letter-spacing: 0.2em;
}
.lx-group-body { padding-bottom: 0.9rem; }

.lx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.lx-list a {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
  padding: 0.55rem 0 0.55rem 0.8rem;
  border-left: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.lx-list a:hover { color: var(--ink-soft); border-left-color: var(--line-2); }
.lx-list a:hover .lx-mark { color: var(--gold); }
.lx-list a[aria-current] { color: var(--gold-br); border-left-color: var(--gold); }
.lx-list a[aria-current] .lx-mark { color: var(--gold); }
.lx-mark { color: var(--muted-2); font-size: 0.92em; margin-right: 0.3rem; transition: color 0.2s; }

.lx-nav a:focus-visible, .lx-browse summary:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* phone: two up so the long groups stay short */
.lx-list { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 0.1rem 1.2rem; }

/* ── Right: on this page ─────────────────────────────────────── */
/* The hairline is made of the items themselves, so the active
   segment can turn gold without adding a second line. */
.lx-toc { padding-left: 0; }
.lx-toc .lib-eyebrow { padding-left: 0.85rem; margin-bottom: 0.7rem !important; }
.lx-toc a {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 0.42rem 0 0.42rem 0.84rem;
  border-left: 1px solid var(--line);
  transition: color 0.25s, border-color 0.25s;
}
.lx-toc a:hover { color: var(--ink-soft); }
.lx-toc a[aria-current] { color: var(--gold-br); border-left-color: var(--gold); }

/* ═══ Desktop ══════════════════════════════════════════════════ */
@media (min-width: 1140px) {
  .lx-grid {
    display: grid;
    grid-template-columns: 172px minmax(0, 648px) 172px;
    column-gap: 1.7rem;
    justify-content: center;
  }
  .lx-col-l { margin: 0; position: relative; }
  /* hairline between the nav and the measure, faded at both ends
     like .lib-rule is horizontally */
  .lx-col-l::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 1px; height: 100%;
    background: linear-gradient(180deg, transparent, var(--line) 7%, var(--line) 84%, transparent);
  }
  .lx-browse { display: block; height: 100%; }
  .lx-browse > summary { display: none; }
  .lx-nav {
    position: sticky;
    top: 6.6rem;
    max-height: calc(100vh - 9rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.2rem 1.2rem 1.5rem 0;
    scrollbar-width: none;
    /* soften the cut where a long group runs past the sticky box,
       same mask technique the locked reading section uses */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
  }
  .lx-nav::-webkit-scrollbar { width: 0; height: 0; }
  .lx-list { grid-template-columns: 1fr; gap: 0.1rem; }
  .lx-list a { padding: 0.14rem 0 0.14rem 0.8rem; }
  .lx-planet > summary { padding: 0.62rem 0; }
  .lx-col-r { display: block; }
  .lx-toc { position: sticky; top: 6.6rem; }
}
@media (min-width: 1200px) {
  .lx-grid { grid-template-columns: 196px minmax(0, 648px) 196px; column-gap: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lx-mk { transition: none; }
}
