/* Scoped candidate. Load after the active theme, home, Atlas or Practice CSS. */
:root { --uplift-focus: var(--lv-accent-text, var(--accent-text, #953523)); }
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible { outline:3px solid var(--uplift-focus); outline-offset:4px; }
.uplift-disclosure { margin:1rem auto; padding:.8rem 1rem; border:1px solid var(--lv-line, #cdbcae); border-radius:8px; max-width:var(--wp--style--global--content-size, 820px); }
.uplift-disclosure > summary { cursor:pointer; font:600 .95rem/1.6 var(--lv-font-ui,inherit); }
.uplift-disclosure > summary:hover { text-decoration:underline; text-underline-offset:4px; }
.uplift-disclosure[open] > summary { margin-bottom:1rem; }
.uplift-disclosure > .lv-reading-key,.uplift-disclosure > .epic-reader-orientation { margin:0!important; border:0!important; padding:.5rem 0!important; background:none!important; box-shadow:none!important; }
.uplift-home main > .hero { min-height:0!important; padding-top:clamp(110px,12vw,150px)!important; padding-bottom:clamp(45px,7vw,90px)!important; }
.uplift-home .hero__inner { max-width:1000px; }
.uplift-home .hero__title { font-size:clamp(2.65rem,5.8vw,5.6rem)!important; line-height:1.1!important; }
.uplift-home .hero__cta { gap:1rem; flex-wrap:wrap; }
.uplift-home .hero__eng,.uplift-home .scrollcue { display:none; }
.uplift-home .hero__sub { max-width:60ch; }
.uplift-home .award-section { padding-block:clamp(2.5rem,5vw,5rem); }
.uplift-home #library .mode-grid { gap:1.25rem; }
.uplift-home #library .mode-card { min-height:0; padding:1.5rem; border-radius:8px; }
.uplift-home #library .mode-card__art { display:none; }
.uplift-home #library .mode-card__top { margin-bottom:1rem; }
.uplift-home #library .mode-card__copy { min-height:0; }
.uplift-home #library .library-bridge { margin-top:1.5rem; }
.uplift-home .trust-section .trust-grid > * { box-shadow:none; border-radius:8px; }
.uplift-home .award-title { font-size:clamp(2rem,3.6vw,3.75rem); }
.uplift-home .hero__cosmos { opacity:.45; }
/* Reader: retain artwork in the narrative, give prose the first encounter. */
body[data-uplift-reader] main { margin-top:1.25rem!important; }
body[data-uplift-reader] main > .wp-block-group { padding-top:1rem!important; }
body[data-uplift-reader] .lv-corpus-signature { padding:.35rem 0; margin:.25rem auto .75rem; box-shadow:none; background:none; border:0; min-height:0; }
body[data-uplift-reader] .lv-corpus-signature > span,body[data-uplift-reader] .lv-corpus-signature > small { display:none; }
body[data-uplift-reader] .wp-block-post-title { font-size:clamp(2rem,4.5vw,3.5rem)!important; line-height:1.18!important; margin:0 auto 1rem!important; }
body[data-uplift-reader] .wp-block-post-title::before { display:none; }
body[data-uplift-reader] .chapter { padding-block:.5rem!important; margin-block:.5rem!important; }
body[data-uplift-reader] .chapter .parva-tag { margin-bottom:.5rem; }
body[data-uplift-reader] .lv-reader-tools { flex-wrap:wrap; gap:.5rem 1rem; margin-block:.75rem; }
body[data-uplift-reader] .lv-meta-line { margin:.6rem 0; }
body[data-uplift-reader] .lv-reader-art-lead { max-width:560px; margin:1.5rem auto!important; }
body[data-uplift-reader] .lv-reader-art-lead img { max-height:420px!important; object-fit:contain; }
.uplift-return { font:600 .85rem/1.5 var(--lv-font-ui,inherit); }
.uplift-one-settings .lv-fab--reader { width:auto!important; max-width:190px; padding:.65rem 1rem!important; border-radius:9px!important; font:600 .78rem/1.4 var(--lv-font-ui,inherit)!important; }
.uplift-one-settings .lv-soundbtn,.uplift-one-settings #lulla-toggle { display:none!important; }
/* Tool pages: title and working controls precede decorative explanation. */
.uplift-lookup main,.uplift-paths main,.uplift-reference main { margin-top:1.25rem!important; }
.uplift-lookup main > .wp-block-group,.uplift-paths main > .wp-block-group,.uplift-reference main > .wp-block-group { padding-top:1rem!important; }
.uplift-lookup .wp-block-post-title,.uplift-paths .wp-block-post-title,.uplift-reference .wp-block-post-title { font-size:clamp(2rem,5vw,3.5rem)!important; margin-block:.8rem 1.2rem!important; }
.uplift-lookup .englossary > .uplift-disclosure,.uplift-lookup .glossary > .uplift-disclosure { margin-bottom:1rem; }
.uplift-lookup .hero { padding:0!important; min-height:0!important; background:none!important; }
.uplift-lookup .hero-mark,.uplift-lookup .hero-title { display:none; }
.uplift-lookup .lulla-paired-visual { max-width:560px; margin:3rem auto 1rem; }
.uplift-lookup .grow[hidden],.uplift-lookup .term[hidden],.uplift-lookup .group[hidden],.uplift-lookup .gindex-group[hidden] { display:none!important; }
.uplift-lookup-search { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.6rem; padding:0 0 1rem; }
.uplift-lookup-search label,.uplift-result-count { grid-column:1/-1; }
.uplift-lookup-search label { font-weight:600; }
.uplift-lookup-search input { width:100%; min-width:0; padding:.8rem; border:1px solid var(--lv-line,#cdbcae); border-radius:6px; color:inherit; background:var(--lv-surface,transparent); font:inherit; }
.uplift-lookup-search button { padding:.6rem .85rem; border:1px solid var(--lv-line,#cdbcae); border-radius:6px; color:inherit; background:var(--lv-surface,transparent); cursor:pointer; }
.uplift-result-count { font-size:.85rem; margin:0; }
.uplift-empty { padding:1rem; border-left:3px solid var(--uplift-focus); }
.uplift-atlas .atlas-hero { min-height:0; display:block; padding:6.5rem 0 1.5rem; }
.uplift-atlas .atlas-hero h1 { font-size:clamp(2rem,4.5vw,3.6rem); max-width:26ch; line-height:1.1; }
.uplift-atlas .atlas-hero__copy > p:not(.atlas-kicker) { margin:.8rem 0 0; max-width:78ch; line-height:1.6; }
.uplift-atlas .atlas-orbit,.uplift-atlas .atlas-enter { display:none; }
.uplift-atlas .atlas-work { margin-bottom:3rem; padding:1.25rem; border-radius:12px; }
.uplift-atlas .atlas-work__head { padding:.25rem .25rem 1rem; align-items:start; }
.uplift-atlas .atlas-work__head h2 { font-size:clamp(1.5rem,3vw,2.2rem); }
.uplift-atlas .atlas-work__head .atlas-kicker { display:none; }
.uplift-atlas .atlas-instruction { margin-top:0; }
.uplift-paths .lv-paths-gateway { padding:1rem 0!important; margin-top:0; }
.uplift-paths .lv-paths-chooser { gap:.75rem; }
.uplift-paths .lv-path-choice { padding:1rem; min-height:0; border-radius:8px; }
.uplift-paths .hub-hero { padding:0!important; }
.uplift-paths .hub-hero figure { max-width:480px; }
.uplift-reference .uplift-reference-art { max-width:560px; margin:1rem auto; }
.uplift-reference .uplift-reference-art img { max-height:180px; object-fit:contain; }
.uplift-compact-nav { position:relative; margin-left:auto; font:500 .85rem/1.5 var(--lv-font-ui,var(--ui,inherit)); z-index:2200; }
.uplift-compact-nav > summary { list-style:none; cursor:pointer; border:1px solid currentColor; border-radius:8px; padding:.5rem .75rem; }
.uplift-compact-nav > summary::after { content:' ▾'; }
.uplift-compact-nav > nav { position:absolute; display:grid!important; inset:auto 0 auto auto; width:min(260px,80vw); padding:.5rem; margin-top:.45rem; border-radius:8px; border:1px solid var(--lv-line,#9b8977); background:var(--lv-surface,var(--bg,#fff8ef)); box-shadow:0 8px 25px #0002; }
.uplift-compact-nav nav a { display:block!important; padding:.65rem .8rem; font-size:.9rem; line-height:1.4; text-decoration:none; }
.uplift-compact-nav nav a:hover,.uplift-compact-nav nav a[aria-current] { text-decoration:underline; text-underline-offset:4px; }
.atlas-head:has(.uplift-compact-nav) > nav { display:none; }
body > .top .uplift-compact-nav { color:#f5e8d7; }
body > .top .uplift-compact-nav > nav { background:#211a15; }
.uplift-thread-status { position:fixed; left:22px; bottom:100px; z-index:12; color:#f6eddf; background:#201811dd; border-radius:6px; padding:.5rem .8rem; font-size:.8rem; pointer-events:none; }
.uplift-correction { margin:1rem 0 0; padding-top:1rem; border-top:1px solid var(--lv-line,#cdbcae); }
@media(max-width:680px) {
  .uplift-home main > .hero { padding-top:105px!important; padding-bottom:32px!important; }
  .uplift-home .hero__title { font-size:clamp(2.2rem,9vw,3.3rem)!important; }
  .uplift-home .hero__sub { font-size:1rem; line-height:1.6; }
  .uplift-home .hero__cta .btn { padding:.85rem 1rem; font-size:.9rem; }
  .uplift-home .mode-grid { grid-template-columns:1fr!important; }
  .uplift-home .mode-card__top,.uplift-home .mode-card__eyebrow { display:none; }
  .uplift-home #library .mode-card { padding:1.1rem; }
  .uplift-home .hero__cosmos { opacity:.25; }
  body[data-uplift-reader] .lv-corpus-signature { display:none; }
  .uplift-atlas .atlas-hero { padding-top:5.5rem; }
  .uplift-atlas .atlas-hero .atlas-kicker { margin-bottom:.5rem; }
  .uplift-atlas .atlas-work__head { padding:.3rem 0 .8rem; }
  .uplift-atlas .atlas-tabs { grid-template-columns:repeat(4,minmax(75px,1fr)); }
  .uplift-atlas .atlas-tabs button { padding:.65rem .25rem; font-size:.75rem; }
  .uplift-atlas .atlas-tabs button span { display:none; }
  .uplift-paths .lv-paths-chooser { grid-template-columns:1fr; }
  .uplift-paths .lv-path-choice { padding:.8rem; }
  .uplift-thread-status { left:12px; bottom:105px; max-width:calc(100vw - 24px); }
}
@media(prefers-reduced-motion:reduce) {
  .uplift-home .cosmic-object,.uplift-home .hero__ritual,.uplift-home .mode-card__orbit { animation:none!important; transition:none!important; }
  .uplift-home :is(.btn,.editorial-card,.mode-card),.uplift-disclosure,.uplift-compact-nav { scroll-behavior:auto; transition:none!important; }
}
@media print { .uplift-lookup-search,.uplift-compact-nav,.uplift-thread-status,.uplift-return { display:none!important; } }
/* Long Sphere titles must never strand the full-story action offscreen. */
body[data-sphere-release] .detail__panel { overflow-y:auto; overscroll-behavior:contain; }
@media(min-width:861px) {
  body[data-sphere-release] .detail__panel { align-items:start; padding-top:5rem; padding-bottom:2rem; }
  body[data-sphere-release] .d-title { font-size:clamp(1.9rem,3vw,2.5rem); line-height:1.2; }
  body[data-sphere-release] .detail__fig { max-height:72vh; }
}
