/* Shared public pages continue the pearl, aqua and glass of the body journey.
   Scope boundaries leave interactive specimens and private learning rooms owned
   by their components. Print keeps its existing document styles. */
@media screen {
  @scope (body[data-ppw-family]:not([data-ppw-family="atlas"]):not(:has(.j-opening, .cap-main, .j-reading-world, #gate, #lock))) to (.km-map, .km-context, .km-library) {
    body:scope[data-ppw-family] {
      --atlas-night:#d2eae3;
      --atlas-depth:#e1f1e9;
      --atlas-surface:#f2faf1;
      --atlas-raised:#f8fcf5;
      --atlas-edge:#93bab1;
      --atlas-text:#183f41;
      --atlas-soft:#375e5c;
      --atlas-muted:#466c68;
      --atlas-mint:#296960;
      --atlas-tangerine:#ffc17e;
      --atlas-amber:#8b4527;
      --atlas-rule:#75a79a57;
      --atlas-paper:#edf7ee;
      --atlas-paper-ink:#183f41;
      --atlas-paper-soft:#466c68;
      --atlas-paper-link:#2c6e63;
      --atlas-glass:linear-gradient(135deg,#fafff5e8,#e0f1e8d9);
      --ambient-art:url('/assets/journey/films/glide-plate.webp');
      --ambient-world:url('/assets/journey/world.webp');
      --bg:#e0f0e7; --deep:#d5eae1; --ink:#183f41; --paper:#183f41;
      --muted:#466c68; --soft:#375e5c; --line:#79a89e69; --line-m:#8bb5aa;
      --accent:#a45029; --gold:#a45029;
      background-color:#d7eee5;
      background-image:linear-gradient(130deg,#e7f6e9e6,#cae9e1d1 55%,#f8e8d1e0),var(--ambient-art);
      background-size:cover;
      background-position:center;
      background-attachment:fixed;
      color:#183f41;
      color-scheme:light;
      display:flow-root;
    }

    body:scope[data-ppw-family] #ppwnav {
      --nav-base:#eef8efef; --nav-panel:#f1f9f0; --nav-line:#8cb9ac80;
      --nav-ink:#194745; --nav-aqua:#2a6b60;
      backdrop-filter:blur(18px);
      box-shadow:0 1px 16px #376f5b0e;
    }
    body:scope[data-ppw-family] #ppwnav :is(summary,.ppwnav-map) { color:#386b60; }
    body:scope[data-ppw-family] #ppwnav .ppwnav-dd a:is(:hover,:focus-visible) { background:#d5eade; color:#214e48; }
    body:scope[data-ppw-family] #ppwnav .ppwnav-cta { background:#ffc17e; border-color:#dea364; border-radius:24px; }

    body:scope[data-ppw-family] :is(.paper,.three-paths,.booking,.tiers-band,.notes-band,.stats-band,.reviews,
      .victor,.stack-page,.creds-band,.faq-block,.foundations,.fallback-form,.email-band,.cta-band,.toc-band,
      .creds-block,.creds,.features,.block,.ppw-section,.ppw-container) {
      background:transparent;
      color:#183f41;
      border-color:#86b4a55e;
    }
    body:scope[data-ppw-family] :is(.hero:not(.cine-hero),.rooms-intro,.blog-index__header,.ppw-hero-sm) {
      background-color:#d9eee5;
      background-image:linear-gradient(110deg,#eaf7e9fa 4%,#e7f5e8d9 43%,#d8eee475 100%),var(--ambient-world);
      background-position:center,right 58%;
      background-size:cover,cover;
      border:0;
      border-bottom:1px solid #9ac3b975;
      box-shadow:none;
    }
    body:scope[data-ppw-family] :is(.hero:not(.cine-hero),.rooms-intro,.ppw-hero-sm) {
      min-height:440px;
      padding-block:clamp(55px,8vw,115px);
    }
    body:scope[data-ppw-family] > .hero:not(.cine-hero) { padding-top:120px; }
    body:scope[data-ppw-family] .hero.wrap { padding:40px clamp(18px,3vw,45px); }
    body:scope[data-ppw-family] .rooms-intro { padding-inline:clamp(20px,4vw,55px); }
    body:scope[data-ppw-family] .ppw-hero-sm { padding-inline:clamp(18px,3vw,40px); }
    body:scope[data-ppw-family] :is(.hero,.rooms-intro,.ppw-hero-sm,.blog-index__header) :is(h1,h2) {
      color:#173f40;
      text-shadow:none;
      text-wrap:balance;
    }
    body:scope[data-ppw-family] :is(.hero,.rooms-intro,.ppw-hero-sm) :is(p,.lead,.hero-sub,.hero-cta-sub) { color:#365f58; text-shadow:none; }
    body:scope[data-ppw-family] :is(.hero,.rooms-intro,.ppw-hero-sm,.blog-index__header) :is(.eyebrow,.em,.accent,strong) { color:#8a492c; }
    body:scope[data-ppw-family] .hero-bg[role="img"] { opacity:.3; }
    body:scope[data-ppw-family] .hero:has(.hero-bg[role="img"])::after {
      background:linear-gradient(100deg,#edf8edf2,#e4f3e7c9 48%,#d5e9e27d);
    }

    /* Existing full-frame real photographs remain the foreground evidence. */
    body:scope[data-ppw-family] .sem-gallery { --sem-rule:#6e9c8e; --sem-light:#2c6659; }
    body:scope[data-ppw-family] .sem-gallery :is(figcaption,figcaption p,.sem-foot>span) { color:#325a54; }
    body:scope[data-ppw-family] .sem-gallery figcaption a { color:#225f51; }
    body:scope[data-ppw-family] .sem-gallery .sem-frame { background:#dcece0; }
    body:scope[data-ppw-family] .sem-gallery .sem-foot button:focus-visible { outline-color:#345e50; }
    body:scope[data-ppw-family] :is(.sem-film-link,.ppw-art-route) { color:#275e53; }

    body:scope[data-ppw-family] .cine-hero { background:#cfdfd3; }
    body:scope[data-ppw-family] .cine-hero::after {
      background:linear-gradient(180deg,#edf6e941 5%,#e7f1e493 40%,#e4f1e4eb 79%,#e1f0e9 100%);
      pointer-events:none;
    }
    body:scope[data-ppw-family] .cine-hero :is(h1,.hero-sub) { color:#173f40; text-shadow:none; }
    body:scope[data-ppw-family] .cine-hero .eyebrow { color:#275d51; background:#f5fbf0ce; border-color:#b3cbb5; }
    body:scope[data-ppw-family] .cine-hero .em { color:#91522f; }
    body:scope[data-ppw-family] :is(.door,.mtile) { background:#d5e8dc; }
    body:scope[data-ppw-family] :is(.door,.mtile) img { filter:none; }
    body:scope[data-ppw-family] :is(.door,.mtile)::after {
      background:linear-gradient(180deg,transparent 20%,#eaf5e76b 52%,#e5f3e8f2 78%,#e5f3e8);
    }
    body:scope[data-ppw-family] :is(.door,.mtile) :is(h2,h3,p) { color:#274d42; }
    body:scope[data-ppw-family] :is(.door,.mtile) .k { color:#87502f; }
    body:scope[data-ppw-family] .num :is(em,b small) { color:#92552f; }
    body:scope[data-ppw-family] .hc-overlay {
      background:linear-gradient(110deg,#eff6e9ed 0%,#e5f0e6c9 45%,#d7eae1bc 100%);
    }
    body:scope[data-ppw-family] .hc-bg { background:#cce7de var(--ambient-art) center/cover; }
    body:scope[data-ppw-family] .hc-bg img { filter:none; }
    body:scope[data-ppw-family] .hc-bg video { opacity:.5; }
    body:scope[data-ppw-family] .hc-inner :is(h1,h2,p,.lead,.eyebrow) { color:#264e42; text-shadow:none; }
    body:scope[data-ppw-family] .hc-inner :is(.em,.accent) { color:#8b492e; }
    body:scope[data-ppw-family] .hc-inner .btn:not(.ghost) { background:#ffc17e; color:#25483a; border-color:#d7a065; }
    body:scope[data-ppw-family] :is(.path,.wf-card,.found-card,.bd-card,.stat-card,.testimonial,.review,.step-card,
      .hold-card,.shop-card,.p-card,.pab-card,.v-card,.inside-card,.receipt,.cart-panel,.summary,.callout-box,
      .poster-body,.tier,.topic,.outcome,.card,.ppw-card,.note,.offer,.area,.book-form,.corp-form,.ppwe-card,.pay) {
      color:#193f3e;
      background:linear-gradient(125deg,#f7fcf2ed,#dff1e5e0);
      border-color:#97bcae93;
      border-radius:18px;
      box-shadow:inset 0 1px 0 #fff,0 9px 27px #4a8b6d09;
    }
    body:scope[data-ppw-family] :is(.path,.wf-card,.found-card,.bd-card,.stat-card,.testimonial,.review,.step-card,
      .shop-card,.p-card,.v-card,.card,.tier,.topic,.book-form,.corp-form,.ppwe-card,.pay,.ppw-card,.note)
      :is(h1,h2,h3,h4,p,li,label,.price,.v-price,.price-row,.small,.lead,.meta,.hint) { color:#284f48; }
    body:scope[data-ppw-family] :is(.path .num,.tier .icon,.topic .plus,.offer span,.rooms-intro strong) { color:#944924; }
    body:scope[data-ppw-family] :is(.path-body p,.cal-head p,.email-band p,.note,.sec-head p,.section-lede) { color:#3c635a; }
    body:scope[data-ppw-family] :is(.cal-frame,.book-form,.ppw-enquiry-page,.ppwe-card,.cart-panel) { background:#f2f9ef; }
    body:scope[data-ppw-family] :is(.ppw-enquiry-ui,.ppw-enquiry-page) { color:#234d43; border-color:#8cb5a4; }
    body:scope[data-ppw-family] :is(.book-form,.corp-form,.ppwe-form,.cform,.reply-form,.pay,#replyForm,.cart-panel) {
      --line:#86aa9b; --muted:#466c5d; --ink:#1a493d; --accent:#c68242;
    }
    body:scope[data-ppw-family] :is(.book-form,.corp-form,.ppwe-form,.cform,.reply-form,.pay,#replyForm,.cart-panel)
      :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]),select,textarea) {
      color:#1c493f; background:#fbfdf6; border-color:#89ac9d; caret-color:#9e4e26;
      box-shadow:0 1px 0 #fff;
    }
    body:scope[data-ppw-family] :is(.book-form,.corp-form,.ppwe-form,.cform,.reply-form,.pay,#replyForm) :is(label,.ppwe-help,.small) { color:#32584c; }
    body:scope[data-ppw-family] :is(.book-form,.corp-form,.ppwe-form,.cform,.reply-form,.pay,#replyForm) :is(input,textarea)::placeholder { color:#698373; opacity:1; }
    body:scope[data-ppw-family] :is(input,select,textarea):focus-visible { outline:2px solid #377b68; outline-offset:2px; }
    body:scope[data-ppw-family] :is(.btn-primary,.cta-btn.primary,.hero-cta,.tier-cta,.submit-btn,.v-buy,.checkout-btn,
      .book,.ppwe-send,.book-form button[type=submit],.corp-form button[type=submit],.ppw-btn,.action) {
      background:#ffc17e; color:#25483a; border-color:#d7a065; border-radius:99px;
    }
    body:scope[data-ppw-family] :is(.btn-ghost,.cta-btn.ghost,.btn.ghost,.hbtn-ghost,.sheet-link,.ppw-btn.ghost) {
      color:#316657; border-color:#84ab9b; background:#f3f9ee80;
    }
    body:scope[data-ppw-family] :is(.sh-card,dialog>.cap,.details) { background:#edf7eb; color:#1d493f; }
    body:scope[data-ppw-family] :is(.sh-x,.dismiss) { background:#e3f0df; color:#295a47; border-color:#99b7a2; }
    body:scope[data-ppw-family] :is(.sh-head,.sh-body) :is(p,h2,h3,li) { color:#2b5549; }
    body:scope[data-ppw-family] dialog::backdrop { background:#163d328c; backdrop-filter:blur(4px); }
    body:scope[data-ppw-family] :is(.sticky,.sticky-bar,footer,footer.site) {
      background:#d0e6d8; color:#3a6151; border-color:#8bae99;
    }
    body:scope[data-ppw-family] footer :is(a,.brand,h3,h4) { color:#234c3d; }
    body:scope[data-ppw-family] :is(footer,.final-cta,.cta-band,.email-band,.block,.creds-block,.problem-stat,.toc-band,.faq-block,.cat-head,.bd-head,.fb-checks,.meta-row)
      :is(p,h2,h3,li,a,span:not(.em):not(.accent)) { color:#345d4f; }
    body:scope[data-ppw-family] :is(.price-row .lbl,.price .amt,.creds-chip,.bd-card .bd-num) { color:#36594a; }
    body:scope[data-ppw-family] .card>p { color:#345d4f!important; }
    body:scope[data-ppw-family] :is(.v-steps,.v-terms,.pay-steps) :is(h3,p,li) { color:#345d4f; }
    body:scope[data-ppw-family] :is(.problem-stat,.final-cta,.burnout-depth,.v-hero) {
      background-color:#d9ede1;
      background-image:linear-gradient(120deg,#f3f8e8eb,#d7eee4de),var(--ambient-art);
      background-size:cover;
    }
    body:scope[data-ppw-family] .final-cta::before { opacity:.15; }
    body:scope[data-ppw-family] .v-hero::after { background:linear-gradient(180deg,#eff7e669,#e5f1e8e0); }
    body:scope[data-ppw-family] .v-hero :is(h1,p,.hero-who,.hero-sub) { color:#274f43; text-shadow:none; }
    body:scope[data-ppw-family] .v-hero .eyebrow { color:#275d51; background:#eff8e6d9; border-color:#adc5ab; }

    /* Illustration fields introduce the subjects of existing reading cards. */
    body:scope[data-ppw-family] :is(.blog-index,.blog-article) {
      background:transparent; border:0; box-shadow:none; color:#214d43;
    }
    body:scope[data-ppw-family] .blog-index__header {
      padding:clamp(26px,5vw,65px); max-width:none; min-height:410px;
      display:flex; flex-direction:column; justify-content:center;
      border-radius:28px;
    }
    body:scope[data-ppw-family] .blog-index__header :is(p,h1,.mono-label) { color:#295448; }
    body:scope[data-ppw-family] .blog-card {
      --ambient-card:url('/assets/journey/films/glide-plate.webp');
      position:relative; padding-top:185px; overflow:hidden; border-radius:24px;
      background-image:linear-gradient(180deg,#e7f5e800 0,#eff8ed24 115px,#eff8edf7 175px,#eff8ed 100%),var(--ambient-card);
      background-size:cover,auto 290px; background-position:center,center top; background-repeat:no-repeat;
      background-color:#edf7ea; border-color:#9ebca970; box-shadow:inset 0 1px 0 #fff8;
    }
    body:scope[data-ppw-family] .blog-card:has(a[href*="proteins-"]) { --ambient-card:url('/assets/journey/films/muscle-plate.webp'); }
    body:scope[data-ppw-family] .blog-card:has(a[href*="nmn-"]) { --ambient-card:url('/assets/journey/films/muscle-plate.webp'); background-position:center,72% 0; }
    body:scope[data-ppw-family] :is(.blog-card,.blog-article) :is(h1,h2,h3,h4,p,li,figcaption,.article-meta,.article-byline,.blog-card__meta,.blog-card__excerpt,.mono-label) { color:#295448; }
    body:scope[data-ppw-family] :is(.blog-card,.blog-article) a { color:#286551; }
    body:scope[data-ppw-family] .blog-card__title a::after { content:''; position:absolute; inset:0; }
    body:scope[data-ppw-family] .blog-card__link { position:relative; z-index:1; }
    body:scope[data-ppw-family] :is(.blog-card,.ppw-card):hover { border-color:#608e72; }
    body:scope[data-ppw-family] .blog-article :is(.callout-box,.article-cta,.article-footer,blockquote) { background:#eff7eacb; color:#315648; }
    body:scope[data-ppw-family] .ppw-grid-3>.ppw-card {
      padding-top:clamp(70px,10vw,120px);
      background:linear-gradient(180deg,#ecf7e724,#edf8ebe8 90px,#edf8eb),var(--ambient-art) center top/cover;
    }

    @media (max-width:720px) {
      body:scope[data-ppw-family] { background-attachment:scroll; background-size:auto 1200px; }
      body:scope[data-ppw-family] :is(.hero:not(.cine-hero),.rooms-intro,.ppw-hero-sm) {
        min-height:410px;
        background-image:linear-gradient(110deg,#edf9eaf5 4%,#e3f3e5d9 45%,#d7eee591),var(--ambient-world);
        background-position:center,center 58%;
        padding-block:40px;
      }
      body:scope[data-ppw-family] > .hero:not(.cine-hero) { padding-top:108px; }
      body:scope[data-ppw-family] .hero.wrap { min-height:auto; padding:22px 17px 32px; }
      body:scope[data-ppw-family] .rooms-intro { padding:28px 20px; }
      body:scope[data-ppw-family] .rooms-intro h1 { font-size:clamp(33px,9.3vw,45px); }
      body:scope[data-ppw-family] .blog-index { padding:0; width:calc(100% - 28px); }
      body:scope[data-ppw-family] .blog-index__header { min-height:415px; padding:26px 20px; border-radius:0 0 24px 24px; }
      body:scope[data-ppw-family] .blog-index__header h1 { font-size:clamp(34px,9.5vw,46px); }
      body:scope[data-ppw-family] .blog-card { padding-top:173px; }
      body:scope[data-ppw-family] .ppw-hero-sm { margin-bottom:30px; }
      body:scope[data-ppw-family] .cine-hero .wrap { padding-bottom:32px; }
      body:scope[data-ppw-family] :is(.book-form,.ppw-enquiry-page) { border-radius:20px; }
    }
  }
  /* Reading scenes own their page layout and typography, with the same public navigation. */
  body[data-ppw-family]:has(.j-reading-world) #ppwnav {
    --nav-base:#eef8efef; --nav-panel:#f1f9f0; --nav-line:#8cb9ac80;
    --nav-ink:#194745; --nav-aqua:#2a6b60;
    backdrop-filter:blur(18px);
    box-shadow:0 1px 16px #376f5b0e;
  }
  body[data-ppw-family]:has(.j-reading-world) #ppwnav :is(summary,.ppwnav-map) { color:#386b60; }
  body[data-ppw-family]:has(.j-reading-world) #ppwnav .ppwnav-dd a:is(:hover,:focus-visible) { background:#d5eade; color:#214e48; }
  body[data-ppw-family]:has(.j-reading-world) #ppwnav .ppwnav-cta { background:#ffc17e; border-color:#dea364; border-radius:24px; }
}
