/* 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}
}

.site-footer .feedback-link{font:inherit;color:inherit;background:none;border:0;padding:0;text-decoration:underline;text-underline-offset:.2em;cursor:pointer}.atlas-feedback-dialog{color:var(--a-ink,#333);background:var(--a-paper,#f3f3f3);border:1px solid var(--a-line,#d6d6d6);border-radius:20px;width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:24px;box-sizing:border-box;overflow:auto}.atlas-feedback-dialog::backdrop{background:rgb(20 35 25 / .45)}.feedback-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.feedback-top h2{font-size:1.7rem;line-height:1.15;margin:0}.feedback-top button,.feedback-dismiss{font-size:1.5rem;min-width:44px;min-height:44px;border:0;background:transparent;color:inherit;cursor:pointer}.feedback-intro,.feedback-page,.atlas-feedback-dialog details p{font-size:.9rem;line-height:1.5;opacity:.8}.atlas-feedback-dialog form{display:grid;gap:14px}.atlas-feedback-dialog label{display:grid;gap:6px;font-size:.95rem}.atlas-feedback-dialog textarea,.atlas-feedback-dialog select,.atlas-feedback-dialog input:not([type=radio]){box-sizing:border-box;width:100%;font:inherit;font-size:16px;padding:10px;border:1px solid var(--a-line,#d6d6d6);border-radius:8px;background:var(--a-card,#fff);color:inherit}.atlas-feedback-dialog fieldset{border:0;padding:0;margin:0}.atlas-feedback-dialog legend{margin-bottom:8px}.feedback-choices{display:flex;flex-wrap:wrap;gap:8px}.feedback-choices label{display:flex;align-items:center;gap:6px;border:1px solid var(--a-line,#d6d6d6);padding:9px;border-radius:9px;cursor:pointer}.feedback-choices label:has(input:checked){background:var(--a-selected,#e6e6e6)}.feedback-actions{display:flex;gap:10px;flex-wrap:wrap}.feedback-actions button,.feedback-thanks~button,.feedback-inline button,.feedback-context,.atlas-feedback-prompt button:not(.feedback-dismiss){min-height:44px;padding:9px 14px;border:1px solid var(--a-line,#d6d6d6);border-radius:9px;background:var(--a-paper,#f3f3f3);color:inherit;font:inherit;cursor:pointer}.feedback-actions button[type=submit]{background:var(--a-ink,#333);color:var(--a-paper,#f3f3f3);border-color:var(--a-ink,#333)}.atlas-feedback-dialog details{border-top:1px solid var(--a-line,#d6d6d6);padding-top:12px}.atlas-feedback-dialog details[open]{display:grid;gap:12px}.atlas-feedback-dialog details[open] label{margin-top:12px}.feedback-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important}.feedback-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--a-line,#d6d6d6);margin-top:32px;padding-top:18px}.feedback-inline p{margin-right:8px}.atlas-feedback-prompt{position:fixed;z-index:90;right:18px;bottom:18px;width:min(350px,calc(100vw - 36px));box-sizing:border-box;padding:20px;border:1px solid var(--a-line,#d6d6d6);border-radius:16px;color:var(--a-ink,#333);background:var(--a-paper,#f3f3f3);box-shadow:0 8px 32px rgb(20 35 25 / .15)}.atlas-feedback-prompt p{font-size:.95rem;margin:8px 0 12px}.atlas-feedback-prompt>div{display:flex;gap:7px;flex-wrap:wrap}.feedback-dismiss{position:absolute;right:5px;top:2px}.atlas-feedback-prompt strong{display:block;padding-right:30px}.feedback-context{margin-top:10px}.feedback-review{border-top:1px solid var(--a-line,#d6d6d6);padding:18px 0}.feedback-review p{white-space:pre-wrap}.feedback-review textarea{width:100%;box-sizing:border-box;min-height:64px}.feedback-review .feedback-meta{font-size:.85rem;opacity:.8}.feedback-review-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.feedback-review-controls select,.feedback-review-controls button{min-height:44px;font:inherit}html[data-theme=dark] .atlas-feedback-dialog,html[data-theme=dark] .atlas-feedback-prompt{background:var(--a-paper,#242424);color:var(--a-ink,#eee)}html[data-theme=dark] .atlas-feedback-dialog select,html[data-theme=dark] .atlas-feedback-dialog textarea,html[data-theme=dark] .atlas-feedback-dialog input{background:var(--a-card,#303030);color:var(--a-ink,#eee)}@media(max-width:520px){.atlas-feedback-dialog{padding:18px}.feedback-top h2{font-size:1.5rem}.atlas-feedback-prompt{bottom:max(12px,env(safe-area-inset-bottom))}}
