/* Final contrast and containment layer for every Study Center destination. */
body.study-center-body{
  background:#06130d;
  color:#eef1e9;
}
body.study-center-body::before{
  background:
    radial-gradient(900px 620px at 82% 4%,rgba(31,105,78,.3),transparent 62%),
    radial-gradient(780px 600px at 5% 35%,rgba(190,146,62,.13),transparent 62%),
    linear-gradient(145deg,#123222,#06130d 72%);
}
.study-center-body .study-center{width:100%;max-width:100%;overflow-x:hidden;background:transparent;color:#eef1e9}
.study-center-body .study-page-bar{background:rgba(7,30,19,.96);color:#f4efe2;border-color:rgba(210,173,100,.3);box-shadow:0 12px 36px rgba(0,0,0,.22)}
.study-center-body .study-page-links a{background:rgba(23,55,53,.76);color:#d8e4df;border-color:rgba(222,190,117,.3)}
.study-center-body .study-page-links a:hover,.study-center-body .study-page-links a[aria-current="page"]{
  background:linear-gradient(135deg,#e2c17c,#d2ad64 55%,#a8843e);
  color:#16120a;
  border-color:transparent;
}
.knowledge-explorer,.study-library,.life-search,.source-principles,.maps-intro,.places-section,.ministry-section,.archaeology-section{background:transparent;color:#eef1e9}
.knowledge-explorer h2,.study-library h2,.life-search h2,.source-principles h2,.maps-intro h2,.places-section h2,.ministry-section h2,.archaeology-section h2{color:#f6f0e2;text-shadow:0 2px 20px rgba(0,0,0,.35)}
.knowledge-explorer>header>p:last-child,.life-search>div:first-child>p:last-child,.maps-intro>div>p:last-child,.maps-honesty p:last-child,.library-note,.library-licensing,.ministry-note,.archaeology-caveat{color:#c4d0c8}
.knowledge-card,.library-grid article,.source-principles>div:last-child p,.maps-honesty,.place-card,.find-card,.journey-stage{background:linear-gradient(145deg,rgba(20,60,39,.92),rgba(6,27,17,.96));border-color:rgba(210,173,100,.34);color:#f4efe2;box-shadow:0 18px 45px rgba(0,0,0,.3)}
.knowledge-card b,.library-grid h3,.place-card h3,.find-card h3,.journey-stage h3{color:#f6f0e2}
.knowledge-card p,.library-grid small,.place-card p,.find-card p,.journey-stage p{color:#c4d0c8}
.knowledge-tabs button{background:rgba(18,62,40,.88);color:#f0dfb2;border-color:rgba(210,173,100,.34)}
.library-links a{background:rgba(18,62,40,.86);color:#f3e5bd;border-color:rgba(210,173,100,.34)}
.place-filters input{background:#0a2518!important;color:#f4efe2!important;border-color:rgba(222,190,117,.34)!important}
.place-filters input::placeholder{color:#aebbb2}
.place-results,.plot-note{color:#bfcac3}

/* The writing room keeps a paper editor, but its room and every paper control
   now have explicit foregrounds instead of inheriting pale site text. */
.write-workspace{background:radial-gradient(circle at 82% 8%,rgba(31,105,62,.22),transparent 40%),linear-gradient(145deg,#102f20,#06130d);color:#f3eee1;padding-top:clamp(64px,7vw,104px)}
.write-intro h1{color:#fff8e8;text-shadow:0 3px 24px rgba(0,0,0,.45)}
.write-intro>div>p:last-child{color:#cbd5ce}
.privacy-note{background:linear-gradient(145deg,rgba(24,61,57,.92),rgba(12,34,43,.95));color:#e6ece7;border-color:#d2ad64;box-shadow:0 14px 34px rgba(0,0,0,.22)}
.document-shell{background:#fffdf7;color:#1b2720;border-color:#c8c2b3;box-shadow:0 24px 60px rgba(0,0,0,.38)}
.document-meta,.document-meta label,.editor-toolbar,.document-footer{color:#39483f}
.document-footer #writing-status{color:#445c50}
.document-meta input,.document-meta select,#document-body{background:#fffdf7;color:#17231d}
.document-meta input::placeholder,#document-body::placeholder{color:#69736d;opacity:1}
.roots-reference,.drafts-panel{background:#eee9db;color:#17231d;border-color:#c7bfa9}
.roots-reference summary,.drafts-heading h2{color:#17231d}
.roots-reference-body,.roots-reference-body>p,.draft-empty{color:#3f4d45}
.saved-draft,.root-prompt{background:#fffdf7;color:#17231d}
.roots-reference summary small{color:#6d531c}
.roots-reference .root-prompt{background:#fffdf7;color:#17231d;border-color:#bdb39c}
.roots-reference .root-prompt strong{color:#705116}

@media(max-width:700px){
  .study-page-bar{padding:12px 14px;align-items:flex-start}
  .study-page-bar strong{width:100%;font-size:1.15rem}
  .study-page-links{flex-wrap:nowrap;width:100%;overflow-x:auto;padding-bottom:5px}
  .study-page-links a{flex:none}
  .maps-intro{grid-template-columns:1fr;padding:42px 18px}
  .maps-honesty{padding:18px}
  .place-plot-section,.places-section,.ministry-section,.archaeology-section{padding-left:14px!important;padding-right:14px!important}
  .write-workspace{padding:48px 12px 65px}
  .write-intro h1{font-size:clamp(2.65rem,13vw,3.5rem)}
}
