/* One reading rhythm across topic guides. */
body.topic-page .site-main{max-width:840px;padding-top:42px}
body.topic-page main{font-family:var(--type-sans,system-ui,sans-serif);font-size:1rem;line-height:1.8;color:var(--a-ink)}
body.topic-page main :is(h1,h2,h3,h4,p,li,dt,dd,summary,blockquote){font-family:inherit}
body.topic-page .topic-heading{max-width:100%;margin:0 0 32px;padding:0;border:0;text-align:left}
body.topic-page .topic-heading h1{font:500 clamp(2rem,4vw,2.75rem)/1.15 var(--type-sans,system-ui,sans-serif)!important;letter-spacing:-.025em;margin:0 0 16px;text-wrap:balance}
body.topic-page .topic-heading>.eyebrow{display:none}
body.topic-page .topic-heading>p{font-size:1.05rem;line-height:1.7;margin:0;color:var(--a-muted);max-width:68ch}
body.topic-page main :is(h2,h3){font-size:1.25rem;line-height:1.4;font-weight:600;letter-spacing:0}
body.topic-page main h4{font-size:1rem;line-height:1.5;font-weight:600;letter-spacing:0}
body.topic-page main p{font-size:1rem;line-height:1.8}
body.topic-page main a{color:var(--a-green);text-underline-offset:4px;text-decoration-thickness:1px}
body.topic-page main a:hover{text-decoration:underline}
body.topic-page main a:focus-visible{outline:2px solid var(--room-learn);outline-offset:4px}
body.topic-page .subject-brief{display:block;margin:0 0 34px;max-width:72ch}
body.topic-page .subject-brief p{color:var(--a-ink);margin:0}
.subject-teaching{padding:24px 0;border-top:1px solid var(--a-line);max-width:100%}
.subject-teaching h2{margin:0 0 12px}.subject-teaching p{margin:0 0 12px}.subject-teaching p:last-child{margin-bottom:0}
body.topic-page p.topic-source-link{font-size:.88rem;line-height:1.6}
.topic-excerpt{margin:0;padding:0;max-width:100%}
.topic-excerpt .training-columns{display:grid;grid-template-columns:1fr;gap:24px;margin:24px 0}
.topic-excerpt .training-columns section{border-top:1px solid var(--a-line);padding-top:20px}.topic-excerpt .training-columns section>span{display:none}
.topic-excerpt .truth-label h2{font-size:1.1rem;margin:0 0 4px}
body.topic-page .truths-list>li{display:block;padding:24px 0}
body.topic-page .truth-number{display:none}
body.topic-page .truth-task{font:400 .9rem/1.6 var(--type-sans,system-ui,sans-serif);text-transform:none;letter-spacing:0}
body.topic-page .truth-source-quote{margin:16px 0 0;padding:0;border:0;background:transparent}
body.topic-page .truth-source-quote p{margin:0}
body.topic-page .truth-duty{margin:16px 0 0;color:var(--a-muted);font-size:.9rem}
body.topic-page .truths-context{margin-top:42px;padding-top:28px;border-top:1px solid var(--a-line)}
body.topic-page .truth-context-quote{margin:20px 0;padding:0 0 0 20px;border-left:2px solid var(--a-accent);background:none}
body.topic-page .truth-context-quote p{margin:0 0 14px}
body.topic-page .truths-context>.truths-attribution{margin:14px 0}
body.topic-page :is(.iq-grid,.subject-research-grid){grid-template-columns:1fr;gap:22px}
body.topic-page :is(.iq-card,.subject-research-grid article,.jhana-map,.jhana-start){padding:22px 0;border:0;border-top:1px solid var(--a-line);border-radius:0;background:transparent}
body.topic-page :is(.iq-section,.subject-evidence){margin-block:34px}
.topic-disclosure{border-block:1px solid var(--a-line);margin:28px 0 0;background:transparent;color:var(--a-ink)}
.topic-disclosure+.topic-disclosure{margin-top:-1px}
.topic-disclosure>summary{display:flex;align-items:center;gap:16px;list-style:none;cursor:pointer;min-height:60px;padding:16px 0;font-size:.95rem;font-weight:500}
.topic-disclosure>summary::-webkit-details-marker{display:none}
.topic-disclosure>summary:after{content:'';width:7px;height:7px;margin-left:auto;margin-right:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg)}
.topic-disclosure[open]>summary:after{transform:rotate(225deg)}
.topic-disclosure>summary:focus-visible{outline:2px solid var(--room-learn);outline-offset:3px}
.topic-disclosure-body{padding:0 0 24px;min-width:0}
.topic-disclosure-body :is(.teaching-perspectives,.content-connections,.subject-method,.iq-section){margin:18px 0;padding:0;border:0;background:transparent}
.topic-disclosure-body .tp-heading{display:none}
.topic-disclosure-body :is(.tp-voices,.content-connection-groups){display:block}
.topic-disclosure-body .tp-voices article{padding:0;margin:20px 0;border:0;background:transparent}
.topic-disclosure-body :is(p,li){font-size:.93rem!important;line-height:1.7!important}
.topic-source-notes{padding-left:1.3rem}.topic-source-notes>li{margin:16px 0}.topic-source-notes p{margin:4px 0}
.topic-term{color:var(--a-muted)}
.topic-related-list{padding-left:1.2rem;margin:0}.topic-related-list li{margin:10px 0}
#topic-connections :is(.subject-related,.subject-next,.content-connection-group ul){display:block;margin:0;padding:0;list-style:none}
#topic-connections :is(.content-connection-group,.subject-connected-guides,.topic-context){margin:16px 0;padding:0;border:0;background:transparent}
#topic-connections .topic-connection-link{display:flex;gap:8px;align-items:center;padding:8px 0;min-height:44px;border:0;background:transparent;text-decoration:none;font-size:.95rem}
#topic-connections :is(.topic-connection-icon,.topic-connection-arrow){display:none}
#topic-connections .topic-connection-copy small{display:block;color:var(--a-muted);font-size:.85rem}
#topic-connections .topic-single-connection .content-connection-group>:is(h3,h4){display:none}
.topic-excerpt .comparison-scroll,.topic-page .jhana-table-wrap{max-width:100%;overflow-x:auto}
@media(max-width:700px){body.topic-page .site-main{padding-top:28px}body.topic-page .topic-heading{margin-bottom:24px}.subject-teaching{padding:22px 0}}
/* Shared typography rules use !important; keep topic text on one typeface. */
body.topic-page main :is(h2,h3,h4,blockquote){font-family:var(--type-sans,system-ui,sans-serif)!important}
body.topic-page main :is(h2,h3){font-size:1.25rem!important;line-height:1.4!important;font-weight:600!important}
body.topic-page main h4{font-size:1rem!important;font-weight:600!important}
body.topic-page main :is(.iq-card,.jhana-map,.jhana-start){background:transparent!important;border-radius:0!important;box-shadow:none!important}
body[data-atlas-page=concepts] .teachings-group h2{font:600 1.15rem/1.4 var(--type-sans,system-ui,sans-serif)!important}
body[data-atlas-page=concepts] .teaching-card h3{font:500 1.05rem/1.45 var(--type-sans,system-ui,sans-serif)!important}

/* The four truths form two pairs; source explanations stay beside their context. */
body[data-atlas-page=four-noble-truths] .truths-pair{margin:32px 0 0}
body[data-atlas-page=four-noble-truths] .truths-pair-title{margin:0 0 12px;font-size:.88rem!important;font-weight:500!important;letter-spacing:.06em;text-transform:uppercase;color:var(--a-muted)}
body[data-atlas-page=four-noble-truths] .truths-pair .truths-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px;border-top:1px solid var(--a-line)}
body[data-atlas-page=four-noble-truths] .truths-pair .truths-list>li{min-width:0;padding:22px 0 0;border-bottom:0}
body[data-atlas-page=four-noble-truths] .truths-pair .truth-number{display:block;margin:0 0 8px;padding:0;font:500 .8rem/1.5 var(--type-sans,system-ui,sans-serif);color:var(--a-accent)}
body[data-atlas-page=four-noble-truths] .truth-label h3{margin:0 0 6px;font-size:1.3rem!important}
body[data-atlas-page=four-noble-truths] .truth-translation{display:block;margin:0 0 8px;font-size:.88rem;line-height:1.5;color:var(--a-muted)}
body[data-atlas-page=four-noble-truths] .truths-pair .truth-source-quote{color:var(--a-ink)}
body[data-atlas-page=four-noble-truths] .truth-meaning{margin-top:20px;padding:16px 18px;border-radius:6px;background:color-mix(in srgb,var(--a-green) 5%,transparent)}
body[data-atlas-page=four-noble-truths] .truth-meaning blockquote{margin:0;padding:0;border:0;background:transparent}
body[data-atlas-page=four-noble-truths] .truth-meaning blockquote p{margin:0;font-size:.9rem;line-height:1.7}
body[data-atlas-page=four-noble-truths] .truth-meaning-source{margin:10px 0 0;font-size:.8rem;line-height:1.6;color:var(--a-muted)}
body[data-atlas-page=four-noble-truths] .truth-meaning-source a{color:inherit;text-decoration:none}
body[data-atlas-page=four-noble-truths] .truth-meaning-source a:hover{text-decoration:underline}
body[data-atlas-page=four-noble-truths] .truths-aryas{margin-top:36px}
body[data-atlas-page=four-noble-truths] .truths-aryas>h3{margin:28px 0 12px;font-size:1.1rem!important}
body[data-atlas-page=four-noble-truths] .dukkha-kinds{margin:20px 0 12px}
body[data-atlas-page=four-noble-truths] .dukkha-kinds>div{display:grid;grid-template-columns:minmax(140px,180px) minmax(0,1fr);gap:20px;padding:12px 0;border-bottom:1px solid var(--a-line)}
body[data-atlas-page=four-noble-truths] .dukkha-kinds dt{font-weight:500;line-height:1.6}
body[data-atlas-page=four-noble-truths] .dukkha-kinds dd{margin:0;line-height:1.6}
body[data-atlas-page=four-noble-truths] .truths-video-note{margin-top:22px;padding-top:16px;border-top:1px solid var(--a-line);font-size:.9rem;line-height:1.7}
body[data-atlas-page=four-noble-truths] .truths-video-note>span{display:block;color:var(--a-muted);font-size:.85rem}
@media(max-width:700px){
 body[data-atlas-page=four-noble-truths] .truths-pair .truths-list{grid-template-columns:minmax(0,1fr);gap:24px}
 body[data-atlas-page=four-noble-truths] .truths-pair .truths-list>li+li{padding-top:24px;border-top:1px solid var(--a-line)}
 body[data-atlas-page=four-noble-truths] .dukkha-kinds>div{grid-template-columns:minmax(0,1fr);gap:3px}
}
