/* Reading pages only. Catalogue, home, and project layouts keep their own spacing. */
.atlas-reading .atlas-content-shell{max-width:820px}
.atlas-reading .atlas-content-header{margin-bottom:17px}
.atlas-reading .atlas-content-intro{margin-bottom:14px}
.atlas-reading .atlas-content-grid{display:block;margin-top:14px}
.atlas-reading .atlas-guide-meta{margin:7px 0 12px}
.atlas-reading .atlas-reading-contents,.atlas-reading .atlas-reading-sources{margin:9px 0 15px;padding:0;border:0;border-radius:0}
.atlas-reading .atlas-reading-contents summary,.atlas-reading .atlas-reading-sources summary{box-sizing:border-box;min-height:44px;padding:10px 0;color:#dabd7c;cursor:pointer}
.atlas-reading .atlas-reading-contents ol{display:block;margin:3px 0 12px}
.atlas-reading .atlas-reading-contents li+li{margin-top:4px}
.atlas-reading .atlas-guide-copy>section,.atlas-reading .atlas-prose>section{margin:22px 0;scroll-margin-top:16px}
.atlas-reading .atlas-prose h2,.atlas-reading .atlas-guide-copy h2{margin:0 0 8px}
.atlas-reading .atlas-guide-copy p,.atlas-reading .atlas-prose p{margin:0 0 10px}
.atlas-reading .atlas-guide-section{margin:24px 0}
.atlas-reading .atlas-page-links{gap:5px 12px;margin:11px 0 14px}
.atlas-reading .atlas-page-links a{display:inline-flex;align-items:center;min-height:44px}
.atlas-reading .atlas-context-button{background:transparent!important;border-color:transparent!important;border-radius:6px!important;padding-inline:0!important;text-decoration:underline!important;text-underline-offset:3px;overflow-wrap:anywhere!important}
.atlas-reading .atlas-context-button:focus-visible,.atlas-reading summary:focus-visible{outline:2px solid #dabd7c;outline-offset:3px}
.atlas-reading .atlas-section-jumps{gap:4px 15px!important;margin:4px 0 9px!important}
.atlas-reading .atlas-editorial-links{margin:16px 0!important}
.atlas-reading .atlas-editorial-links>div{gap:4px 15px!important}
.atlas-reading .atlas-explorer{margin:24px 0}
.atlas-reading .atlas-info-card{position:static;margin-top:23px;padding:10px 0;border:0;background:transparent}
.atlas-reading .atlas-guide-note{border:0;padding:0;margin:12px 0}
.atlas-reading .atlas-reading-sources ul{margin-top:2px}
@media(max-width:760px){.atlas-reading .atlas-guide-copy>section,.atlas-reading .atlas-prose>section{margin:18px 0}.atlas-reading .atlas-guide-section{margin:20px 0}.atlas-reading .atlas-explorer{margin:19px 0}}

/* A single forest-green surface. Prose stays unframed and fully opaque. */
:is(.atlas-content,.guide-page).atlas-reading{
  --reading-glass-fallback:#183126;
  --reading-glass:rgba(41,78,60,.46);
  --reading-link:#e1c88f;
  background:radial-gradient(ellipse at 15% 0%,#204235 0%,transparent 57%),
             linear-gradient(140deg,#11281e 0%,#0b1c15 55%,#090f0c 100%);
  color:#f3efe5;
}
.atlas-reading :is(.atlas-reading-contents,.atlas-editorial-links,.atlas-guide-cards>a){
  background:var(--reading-glass-fallback);
  border:0;
  border-radius:12px;
}
.atlas-reading .atlas-reading-contents{padding-inline:12px}
.atlas-reading .atlas-editorial-links{padding:12px}
.atlas-reading .atlas-guide-cards>a{padding:15px}
.atlas-reading .atlas-reading-contents summary,
.atlas-reading .atlas-guide-copy a:not(.atlas-context-button),
.atlas-reading .atlas-prose a:not(.atlas-context-button){color:var(--reading-link)}
.atlas-reading :is(.atlas-reading-contents,.atlas-editorial-links) a:focus-visible{
  outline:2px solid var(--reading-link);outline-offset:3px
}
@supports (backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){
  .atlas-reading :is(.atlas-reading-contents,.atlas-editorial-links,.atlas-guide-cards>a){
    background:var(--reading-glass);
    -webkit-backdrop-filter:blur(10px);
    backdrop-filter:blur(10px);
  }
}
@media(prefers-reduced-transparency:reduce){
  .atlas-reading :is(.atlas-reading-contents,.atlas-editorial-links,.atlas-guide-cards>a){
    background:var(--reading-glass-fallback);
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
}

/* Older standalone articles keep their anchors and tools, with the same reading surface. */
.guide-page.atlas-reading-legacy{
  --ink:#f3efe5;--muted:#c5d0c5;--gold:#e1c88f;--line:#ffffff24;--article-text:17px;
}
html[data-reading-scale="large"] .guide-page.atlas-reading-legacy{--article-text:19px}
html[data-reading-scale="xlarge"] .guide-page.atlas-reading-legacy{--article-text:21px}
.guide-page.atlas-reading-legacy .guide-header{
  background:#142d21;color:var(--ink);gap:12px;padding-inline:max(20px,calc((100% - 34rem) / 12));
  font-size:14px
}
.atlas-reading-legacy .guide-header :is(nav>strong,.project-anchor-tools .language-button,.reading-controls button:not([aria-pressed=true])){color:var(--gold)}
.atlas-reading-legacy .guide-header .project-anchor-tools{background:none}
.guide-page.atlas-reading-legacy .guide-article{box-sizing:content-box;width:auto;max-width:820px;padding-inline:5%}
.atlas-reading-legacy .guide-article .guide-hero{border:0;background:none;padding:0;margin:26px 0 14px}
.atlas-reading-legacy .guide-hero h1{font-size:clamp(30px,4vw,52px);line-height:1.15;overflow-wrap:break-word}
.atlas-reading-legacy .guide-hero>p:first-child{font-size:12px;margin:0 0 8px}
.guide-page.atlas-reading-legacy .guide-meta{font-size:14px;color:#a7bca9;margin:10px 0}
.guide-page.atlas-reading-legacy .guide-lead{font-size:calc(var(--article-text) + 1px)!important;color:var(--muted)!important}
.guide-page.atlas-reading-legacy .guide-body{display:block;border:0;margin:14px 0 0}
.atlas-reading-legacy .atlas-reading-contents a{color:var(--reading-link);text-underline-offset:3px}
.guide-page.atlas-reading-legacy :is(.guide-sections section,.guide-faq,.guide-sources,.neighborhood-resources,.related-guides){padding:0;margin:22px 0;border:0}
.atlas-reading-legacy .guide-sections section>span{float:none;font-size:13px}
.guide-page.atlas-reading-legacy :is(.guide-sections,.neighborhood-resources,.guide-faq,.related-guides) h2{font:500 29px/1.2 Georgia,serif;margin:0 0 8px;overflow-wrap:break-word}
.guide-page.atlas-reading-legacy :is(.guide-sections p,.guide-sections li,.guide-faq details p,.neighborhood-resources p,.neighborhood-resources li){font-size:var(--article-text)!important;line-height:1.8;color:var(--muted)}
.atlas-reading-legacy .guide-sections p{margin:0 0 10px}
.atlas-reading-legacy .guide-sections ul{background:none;border:0;padding:0 0 0 1.35em;color:var(--muted)}
.atlas-reading-legacy .guide-faq summary{min-height:44px;padding:9px 2px;cursor:pointer}
.atlas-reading-legacy .guide-faq details p{padding-bottom:9px}
.atlas-reading-legacy .related-guides a{background:var(--reading-glass-fallback);border:0;color:var(--reading-link);min-height:44px;text-underline-offset:3px}
@supports (backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){
  .atlas-reading-legacy .related-guides a{background:var(--reading-glass);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
}
@media(prefers-reduced-transparency:reduce){.atlas-reading-legacy .related-guides a{background:var(--reading-glass-fallback);-webkit-backdrop-filter:none;backdrop-filter:none}}
@media(max-width:760px){
 .guide-page.atlas-reading-legacy .guide-article,.guide-page.atlas-reading-legacy .guide-header{padding-inline:20px}
 .atlas-reading-legacy .guide-hero h1{font-size:34px}
 .guide-page.atlas-reading-legacy :is(.guide-sections,.neighborhood-resources,.guide-faq,.related-guides) h2{font-size:26px}
 .atlas-reading-legacy .related-guides>div{grid-template-columns:minmax(0,1fr)}
 .atlas-reading-legacy.neighborhood-article .guide-header>nav{overflow:visible}
 .atlas-reading-legacy.neighborhood-article .guide-header>nav>a{width:auto;min-width:0;font-size:14px;white-space:normal}
}
.atlas-reading-legacy .guide-sections section{content-visibility:visible}

/* Descriptive inline links, one visually distinct action, then related reading. */
.atlas-reading .atlas-guide-copy p>.atlas-context-button{
  color:#f3efe5!important;background:#234335!important;border:1px solid #688675!important;
  padding-inline:12px!important;text-decoration:none!important
}
.atlas-reading .atlas-guide-copy p>.atlas-context-button:hover{
  background:#315442!important;text-decoration:underline!important
}
.atlas-reading .atlas-related-list{margin:4px 0;padding-inline-start:22px}
.atlas-reading .atlas-related-list a{
  color:var(--reading-link);min-height:44px;display:inline-flex;align-items:center;
  text-decoration:underline;text-underline-offset:3px;line-height:1.45;overflow-wrap:anywhere
}
.atlas-reading .atlas-editorial-links:has(.atlas-related-list)>h2{
  margin:0 0 3px;font:500 clamp(22px,3vw,29px)/1.2 Georgia,serif
}
