/* ═══════════════════════════════════════════════════════════════════
   REVERIES — glossary.css
   Depth-psychology reference surface. Extends the design system
   already defined in /css/base.css. No new tokens.
   ═══════════════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }

.gloss-page {
  padding: 3.5rem 2rem 5rem;
}

.gloss-layout {
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .gloss-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 3rem;
    align-items: start;
  }
  .gloss-toc-toggle { display: none; }
}

.gloss-header {
  max-width: 700px;
  margin-bottom: 3rem;
}

.gloss-header .page-kicker {
  display: block;
  margin-bottom: 0.6rem;
}

.gloss-intro {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.15rem;
  color: rgba(245, 242, 235, 0.68);
  line-height: 1.55;
  max-width: 620px;
  margin-top: 1.2rem;
}

/* Translation banner */
.gloss-translation-banner {
  padding: 1rem 1.5rem;
  border: 0.5px solid var(--white-ghost);
  margin-bottom: 3rem;
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--white-faint);
  line-height: 1.55;
  max-width: 620px;
}

/* Section heading */
.gloss-section {
  margin-top: 4rem;
}
.gloss-section:first-of-type { margin-top: 0; }

.gloss-section-label {
  font-family: 'Spectral', serif;
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 0.8rem;
  display: block;
}

.gloss-section-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: var(--white);
  margin: 0 0 2.4rem;
  padding-top: 1.6rem;
  border-top: 0.5px solid var(--white-ghost);
  line-height: 1.2;
}

/* ── Entry container ── */
.gloss-entry {
  scroll-margin-top: 90px;
  padding: 0 0 2.5rem 1rem;
  margin: 0 -1rem 2.5rem -1rem;
  border-bottom: 0.5px solid var(--white-ghost);
  border-left: 0.5px solid transparent;
  padding-right: 1rem;
  transition: border-left-color 1.2s ease;
}

.gloss-entry:last-child { border-bottom: none; }

/* Landed-anchor highlight — 1.2s flash from amber to fade */
.gloss-entry:target {
  border-left-color: rgba(201, 169, 110, 0.32);
  animation: glossLanded 1.2s ease;
}
@keyframes glossLanded {
  0%   { border-left-color: rgba(201, 169, 110, 0.92); }
  100% { border-left-color: rgba(201, 169, 110, 0.32); }
}

/* Entry chrome */
.gloss-label {
  font-family: 'Spectral', serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 0.4rem;
}

.gloss-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 1.6rem);
  color: var(--white);
  margin: 0 0 0.8rem;
  line-height: 1.25;
}

.gloss-short {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--white-dim);
  line-height: 1.5;
  margin: 0 0 1.4rem;
  max-width: 620px;
}

.gloss-images {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  max-width: 600px;
}
.gloss-images li {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--white-faint);
  line-height: 1.55;
  padding: 0.15rem 0;
}

.gloss-long {
  max-width: 640px;
}
.gloss-long p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 1.08rem;
  color: var(--white-dim);
  line-height: 1.62;
  margin: 0 0 1rem;
}

.gloss-quote {
  margin: 1.4rem 0 1.2rem;
  padding-left: 1.2rem;
  border-left: 0.5px solid var(--white-ghost);
  max-width: 580px;
}
.gloss-quote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--white-faint);
  line-height: 1.55;
  margin: 0 0 0.4rem;
}
.gloss-quote cite {
  font-family: 'Spectral', serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.40);
  font-style: normal;
}

.gloss-related {
  margin-top: 1.2rem;
  font-family: 'Spectral', serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gloss-related-label {
  color: var(--white-faint);
  margin-right: 0.5rem;
}
.gloss-related a {
  color: rgba(201, 169, 110, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
  margin: 0 0.15rem;
}
.gloss-related a:hover { color: var(--gold, rgba(212, 169, 74, 0.95)); }

/* Cross-reference stub for shared anchors in archetype section */
.gloss-stub {
  scroll-margin-top: 90px;
  padding: 0 0 2rem 1rem;
  margin: 0 -1rem 2rem -1rem;
  border-bottom: 0.5px solid var(--white-ghost);
  border-left: 0.5px solid transparent;
  padding-right: 1rem;
}
.gloss-stub .gloss-label { color: var(--white-faint); }
.gloss-stub-note {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--white-faint);
  line-height: 1.55;
  margin: 0.6rem 0 0.8rem;
  max-width: 600px;
}
.gloss-stub-cta {
  font-family: 'Spectral', serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201, 169, 110, 0.7);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(201, 169, 110, 0.3);
  transition: color 0.2s ease;
}
.gloss-stub-cta:hover { color: var(--gold, rgba(212, 169, 74, 0.95)); }

/* Closing line */
.gloss-closing {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--white-faint);
  text-align: center;
  margin: 5rem auto 2rem;
  max-width: 520px;
  line-height: 1.55;
}

/* ── Table of contents (sticky sidebar desktop, collapsible mobile) ── */
.gloss-toc {
  font-family: 'Spectral', serif;
}

@media (min-width: 900px) {
  .gloss-toc {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 1rem 0 1rem 1.5rem;
    border-left: 0.5px solid var(--white-ghost);
    font-size: 10px;
  }
}

.gloss-toc-search {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--white-faint);
  padding: 0.5rem 0;
  font-family: 'Spectral', serif;
  font-size: 10px;
  color: var(--white-dim);
  letter-spacing: 0.1em;
  outline: none;
  margin-bottom: 1.2rem;
}
.gloss-toc-search::placeholder { color: var(--white-faint); }
.gloss-toc-search:focus {
  border-bottom-color: rgba(201, 169, 110, 0.6);
}

.gloss-toc-section {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin: 1.2rem 0 0.5rem;
  display: block;
}
.gloss-toc-section:first-child { margin-top: 0; }

.gloss-toc-link {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--white-faint);
  text-decoration: none;
  padding: 0.18rem 0;
  line-height: 1.3;
  transition: color 0.2s ease;
}
.gloss-toc-link:hover,
.gloss-toc-link.active {
  color: var(--white);
}
.gloss-toc-link[data-hidden] { display: none; }
.gloss-toc-section[data-hidden] { display: none; }

/* Mobile TOC */
@media (max-width: 899px) {
  .gloss-toc {
    margin: 0 0 2rem;
  }
  .gloss-toc-body { display: none; }
  .gloss-toc.is-open .gloss-toc-body { display: block; }
  .gloss-toc-toggle {
    display: block;
    width: 100%;
    background: transparent;
    border: 0.5px solid var(--white-faint);
    border-radius: 2px;
    padding: 0.7rem 0.9rem;
    font-family: 'Spectral', serif;
    font-weight: 200;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--white-dim);
    cursor: pointer;
    margin-bottom: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   PRINCIPLES — folded into /glossary on 2026-04-25
   Eight short essays. All styles scoped under .principles-block so
   nothing collides with the dynamic glossary entries below.
   ═══════════════════════════════════════════════════════════════════ */

.principles-block {
  max-width: 680px;
  margin: 0 auto 4rem;
  padding-top: 1rem;
}

.principles-block .page-header-wrap {
  max-width: none;
}

.principles-block .principles-heading {
  margin-bottom: 0;
}

/* Contents nav at the top of the principles block. */
.principles-toc {
  margin: 2.5rem 0 4rem;
  padding: 1.8rem 0;
  border-top: 0.5px solid var(--white-ghost);
  border-bottom: 0.5px solid var(--white-ghost);
}
.principles-toc-heading {
  font-family: 'Spectral', serif;
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin: 0 0 1.6rem 0;
}
.principles-toc-section {
  margin-bottom: 1.4rem;
}
.principles-toc-section:last-child { margin-bottom: 0; }
.principles-toc-section h4 {
  font-family: 'Spectral', serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,242,235,0.35);
  margin: 0 0 0.6rem 0;
}
.principles-toc-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.principles-toc-section li {
  margin: 0.35rem 0;
}
.principles-toc-section a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--white-dim);
  text-decoration: none;
  border-bottom: 0.5px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.principles-toc-section a:hover {
  color: var(--white);
  border-bottom-color: rgba(212,169,74,0.5);
}

/* Section labels — Orientation, The principles, How we work with dreams. */
.principles-section-label {
  font-family: 'Spectral', serif;
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin: 4rem 0 2rem 0;
  padding-top: 2rem;
  border-top: 0.5px solid var(--white-ghost);
}
.principles-block .principles-section-label:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 2rem;
}

/* Each piece. */
.principles-block .piece {
  margin-bottom: 4.5rem;
  scroll-margin-top: 90px;
}
.principles-block .piece-title {
  font-family: 'Dahlia', 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  color: var(--white);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0 0 0.6rem 0;
}
.principles-block .piece-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--white-dim);
  line-height: 1.5;
  margin: 0 0 2rem 0;
  text-shadow: var(--halo);
}
.principles-block .piece-body p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  color: var(--white-dim);
  line-height: 1.55;
  margin: 0 0 1.2rem 0;
}
.principles-block .piece-body p:last-child { margin-bottom: 0; }
.principles-block .piece-body em {
  font-style: italic;
  color: var(--white);
}
.principles-block .platform-pivot-rule {
  border: 0;
  height: 0.5px;
  background: var(--white-ghost);
  margin: 3rem 0;
  width: 100%;
}

/* Hairline divider between principles and the dynamic glossary entries. */
.principles-glossary-divide {
  border: 0;
  height: 0.5px;
  background: var(--white-ghost);
  margin: 4rem 0 3rem;
  width: 100%;
}
