/* TC-02 door themes and advertising-only gallery. Existing commerce is untouched. */
:root{--text-primary-door:#0C4A6E;--door-ws-base:#F8FAFC;--door-ws-sky:#0EA5E9;--door-ws-moss:#84CC16;--door-ws-orange:#F97316;--door-bc-clay:#92400E;--door-pf-green:#15803D;--door-sof-base:#040f28;--door-sof-text:#FAF9F9;--door-sof-accent:#96C0B7;--door-sof-secondary:#267766;--door-sof-box:#3D455F}
body[class*="theme-"]{background:#F8FAFC;color:#0C4A6E;--ink:#0C4A6E;--muted:#435e70;--paper:#F8FAFC}
body[class*="theme-"] .site-header{border-bottom:4px solid #15803D}
.theme-ws .site-header{border-bottom-color:#0EA5E9!important}.theme-bc .site-header{border-bottom-color:#92400E!important}
body[class*="theme-"] .page-banner{background:#eef4f5;color:#0C4A6E;border-bottom:5px solid #15803D}
body[class*="theme-"]:not(.theme-sof) .page-banner :is(h1,h2,p,.eyebrow){color:#0C4A6E!important;opacity:1}
body.theme-ws .page-banner{background:linear-gradient(120deg,#e1f5fe,#f0f9da);border-bottom:6px solid #F97316!important;border-radius:0 0 36px 36px}
body.theme-bc .page-banner{background:linear-gradient(120deg,#e1f5fe,#eff5d9);border-bottom:6px solid #92400E!important}
body[class*="theme-"] .page-banner .card{background:#fff;color:#0C4A6E}
body[class*="theme-"] .page-banner .btn-ghost{color:#0C4A6E;border-color:#0C4A6E}
.uplift{font:700 clamp(1.5rem,3vw,2.2rem)/1.3 var(--serif,Georgia);margin:16px auto!important;max-width:850px}.house-line{font-weight:700;letter-spacing:.01em}
.reading{max-width:860px}.reading p{line-height:1.85}.reading h3{margin-top:1.8em}
.trail-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:28px}.trail-strip article{padding:24px;background:#fff;border-top:4px solid #15803D;border-radius:10px}.trail-strip h3{font-size:1.15rem}.trail-strip a{color:#0C4A6E}.trail-strip p{margin-bottom:0}
.table-scroll{overflow:auto;max-width:100%;border:1px solid #cad9df;border-radius:12px;margin:24px 0}.trail-table{border-collapse:collapse;width:100%;font-size:.9rem;min-width:850px}.trail-table th,.trail-table td{padding:16px;text-align:left;vertical-align:top;border:1px solid #dce5e8;line-height:1.6}.trail-table thead{background:#0C4A6E;color:#fff}.trail-table tbody{background:white}.trail-table th[scope="row"]{min-width:145px}.own-rung{background:#e7f3eb!important;border-left:5px solid #15803D!important}.learner-rows p{padding:18px;border:1px solid #dce5e8;border-radius:8px}.deeper-details{margin-top:30px;border-top:2px solid #15803D;padding-top:20px}.deeper-details summary{cursor:pointer;font-weight:700;padding:16px;background:#e7f3eb;border-radius:8px}.age-notice{font-size:.85rem;line-height:1.6}
.dtg-gallery{border-top:1px solid #d7e2e7}.dtg-gallery> .wrap>h3{margin:48px 0 20px;font-size:1.2rem;border-bottom:2px solid #15803D;padding-bottom:12px}.dtg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.dtg-grid figure{margin:0;border:1px solid #d7e2e7;border-radius:14px;overflow:hidden;background:#fff;min-width:0}.dtg-grid img{display:block;width:100%;height:auto;object-fit:contain;background:#fff}.dtg-grid figcaption{padding:18px;border-top:1px solid #e4ebee}.dtg-grid h4{font-size:1rem;margin:0 0 6px;line-height:1.5}.design-id{font:12px/1.5 var(--mono,monospace);color:#435e70;overflow-wrap:anywhere;margin:0}
.theme-sof{background:#040f28!important;color:#FAF9F9!important;--ink:#FAF9F9;--muted:#FAF9F9;--paper:#040f28;--paper-2:#3D455F;--ocean:#96C0B7;--forest:#96C0B7;--gold:#96C0B7}
.theme-sof :is(.site-header,.site-footer,.page-banner){background:#040f28!important;border-color:#96C0B7!important;color:#FAF9F9!important}
.theme-sof :is(h1,h2,h3,h4,p,a,label,small,.brand-name,.eyebrow),.theme-sof .page-banner :is(h1,h2,p,.eyebrow){color:#FAF9F9!important}
.theme-sof :is(.card,.door,.gate-box,.form-card){background:#3D455F!important;border-color:#96C0B7;color:#FAF9F9!important}.theme-sof :is(.band-soft,.band-blue){background:#267766;color:#FAF9F9}
.theme-sof .btn{background:#FAF9F9!important;color:#21283B!important;border:1px solid #FAF9F9;border-radius:10px}.theme-sof .btn-outline{background:#3D455F!important;color:#FAF9F9!important}.theme-sof .nav-links{background:#040f28}.theme-sof .nav-toggle span{background:#FAF9F9}
.theme-sof a:focus-visible{outline:3px solid #96C0B7;outline-offset:4px}
@media(max-width:1000px){.dtg-grid,.trail-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dtg-grid,.trail-strip{grid-template-columns:1fr}.dtg-grid{gap:22px}.reading{padding-left:20px;padding-right:20px}.trail-table{font-size:.85rem}.page-banner .grid{grid-template-columns:1fr!important}.uplift{font-size:1.6rem}}


/* Keep restored links readable on every main page, including Store. */
@media(min-width:721px){body[class*="theme-"] .site-header .nav{height:auto;min-height:80px;flex-wrap:wrap;gap:12px 24px;padding-top:14px;padding-bottom:14px}body[class*="theme-"] .site-header .brand{flex-shrink:0}body[class*="theme-"] .site-header .nav-links{flex:1 1 700px;flex-wrap:wrap;justify-content:flex-end}body[class*="theme-"] .site-header .nav-links a{display:inline-flex;white-space:nowrap}}
@media(max-width:720px){body[class*="theme-"] .site-header .brand{max-width:calc(100% - 56px)}body[class*="theme-"] .site-header .nav-toggle{flex-shrink:0}}
body[class*="theme-"]:not(.theme-sof) .btn-gold{background:#0C4A6E;color:#fff;box-shadow:none}body[class*="theme-"]:not(.theme-sof) .btn-gold:hover{background:#083950}
section[id]{scroll-margin-top:180px}

/* Closed mobile menus stay inside the viewport and out of keyboard navigation. */
@media(max-width:720px){body[class*="theme-"] .nav-links{transform:none;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}body[class*="theme-"] .nav-links.open{visibility:visible;opacity:1;pointer-events:auto}}

body.theme-pf .hero{background:#F8FAFC;color:#0C4A6E;border-bottom:4px solid #15803D}body.theme-pf .hero :is(h1,p,.tagline,.eyebrow){color:#0C4A6E!important;opacity:1}body.theme-pf .hero::before,body.theme-pf .hero::after{display:none}


/* Owner follow-up: full-width background lead and readable PDF / invitation controls. */
.background-readings .think-count-background{grid-column:1 / -1}
#paths a.btn[href*="Guardians_of_Natural_Truth.pdf"],#paths a.btn[href*="Sankhya_and_Modern_Physics_A_Comparative_Assessment.pdf"]{background:#0C4A6E;color:#fff;border-color:#0C4A6E}
.theme-sof #invitation .callout{background:#3D455F;color:#FAF9F9;border-color:#96C0B7}
.theme-sof #invitation .callout :is(h3,p,cite){color:#FAF9F9!important}
#doors .bridge-door{grid-template-columns:1fr auto}
@media(max-width:720px){#doors .bridge-door{grid-template-columns:1fr}}

#doors .bridge-door .door-triad strong{color:#fff}#doors .bridge-door .btn-outline{color:#fff;border-color:#fff}

/* Store category nav + merch notify (added 20261116) */
.store-catnav{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;justify-content:center}
.store-catnav a{display:inline-block;padding:8px 18px;border:1px solid #cde0d4;border-radius:999px;background:#fff;color:#15803D;font-weight:600;font-size:.95rem;text-decoration:none;transition:background .15s,color .15s}
.store-catnav a:hover,.store-catnav a:focus{background:#15803D;color:#fff}
.dtg-grid figcaption .merch-notify{margin-top:12px;display:inline-block}

/* Store refresh 20261116b — category block separators + matrix action buttons */
.store-block{border-top:4px solid #15803D}
.cm-col .cm-foot{margin-top:6px;display:flex;flex-direction:column;gap:8px}
.cm-col .cm-foot .btn{width:100%;box-sizing:border-box;text-align:center;font-size:.8rem;padding:9px 8px;line-height:1.3}
.cm-col .cm-foot form{margin:0}
.cm-col .cm-foot form .btn{white-space:normal}
.cm-note{font-size:.78rem;color:var(--muted);margin:2px 0 0;line-height:1.4}

/* Store: four book cards and the four learner-edition columns. */
.store-four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:28px 0}
.store-four .cm-col{min-width:0;width:auto}
.book-card>img{display:block;width:100%;height:auto;object-fit:contain}
.book-card h3{font-size:1.1rem;min-height:3em}
.store-excerpts{margin:18px 0 28px;padding:18px 22px;border-left:3px solid #15803D;background:#fff;color:var(--ink)}
.store-excerpts p:last-child{margin-bottom:0}.store-excerpt-label{font-weight:600;margin-top:18px}
@media(max-width:900px){.store-four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.store-four{grid-template-columns:minmax(0,1fr)}.book-card{max-width:360px;margin:auto;width:100%!important}}


/* Shared educator boundary and restored Discovery toolkit responsiveness. */
.edu-section-start{border-top:4px solid #15803D}
.lop-calc .stack,.lop-calc .panel{min-width:0}
.lop-calc .hero-equation{overflow-wrap:anywhere}
.glossary-header{display:block}
.glossary-header .glossary-title{color:#fff}
.glossary-header .search-input-container{width:100%}
.glossary-button{top:auto;bottom:20px}
@media(max-width:768px){.glossary-button{width:auto;height:auto;border-radius:24px;font-size:.9rem;text-indent:0;line-height:1.4}.glossary-button::before{content:none}}

@media(max-width:600px){.lop-calc .toolbar{flex-wrap:wrap}.lop-calc .search{min-width:0;width:100%;flex-basis:100%}.lop-calc .registry{grid-template-columns:minmax(0,1fr)}.lop-calc .constant{min-width:0;width:100%;white-space:normal}.lop-calc .constant-top{flex-wrap:wrap}.lop-calc .value{overflow-wrap:anywhere;min-width:0;max-width:100%;text-align:left}}
