:root{--de-canvas:#fff0de;--de-surface:#fffaf3;--de-warm:#f8e6ce;--de-burgundy:#5b1022;--de-deep:#3d0917;--de-gold:#c79245;--de-soft-gold:#e7c991;--de-ink:#2d2522;--de-muted:#76675f;--de-line:rgb(91 16 34 / .16);--de-shadow:0 12px 34px rgb(61 9 23 / .10);--de-gutter:clamp(18px,3.5vw,56px);--de-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Noto Sans",sans-serif}
*,*:before,*:after{box-sizing:border-box}.de-shell{width:min(100%,1480px);margin-inline:auto;padding-inline:var(--de-gutter)}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.de-site-header,.de-site-header *,.de-site-footer,.de-site-footer *{font-family:var(--de-font)}.de-identity-row{background:var(--de-surface);border-bottom:1px solid var(--de-line)}.de-identity-inner{display:flex;align-items:center;gap:clamp(14px,2vw,28px);min-height:98px}.de-brand{display:flex;align-items:center;gap:13px;color:var(--de-burgundy);text-decoration:none;min-width:0}.de-brand img{width:64px;height:64px;object-fit:contain;flex:none}.de-brand strong{display:block;font-size:clamp(1.35rem,2vw,1.78rem);font-weight:760;line-height:1.08;letter-spacing:-.02em;white-space:nowrap}.de-brand em{display:block;margin-top:5px;color:var(--de-muted);font-size:.96rem;line-height:1.25}.de-header-search{position:relative;width:min(32vw,390px);margin-left:auto}.de-header-search input{width:100%;height:46px;border:1px solid var(--de-line);border-radius:999px;background:white;padding:0 46px 0 17px;color:var(--de-ink);font:inherit}.de-header-search input:focus{outline:3px solid rgb(199 146 69 / .22);border-color:var(--de-gold)}.de-header-search button{position:absolute;top:5px;right:5px;width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:var(--de-burgundy);font-size:1.2rem;cursor:pointer}.de-join{display:inline-flex;min-height:46px;align-items:center;justify-content:center;padding:0 19px;border:1px solid var(--de-burgundy);border-radius:999px;background:var(--de-burgundy);color:#fff7e8;font-weight:800;text-decoration:none;white-space:nowrap}.de-join:hover,.de-join:focus-visible{background:var(--de-deep);outline:3px solid rgb(199 146 69 / .4);outline-offset:2px}
.de-nav-row{position:sticky;top:0;z-index:100;background:var(--de-burgundy);box-shadow:0 4px 18px rgb(61 9 23 / .14)}.de-nav-inner{display:flex;align-items:center;justify-content:space-between;min-height:56px}.de-primary-nav{display:flex;align-items:stretch;min-height:56px}.de-primary-nav>a,.de-nav-item>button{display:flex;align-items:center;min-height:56px;padding:0 13px;border:0;border-bottom:3px solid transparent;background:transparent;color:#fff7e8;text-decoration:none;font:inherit;font-weight:760;cursor:pointer}.de-nav-item{position:relative;display:flex}.de-nav-item>button{gap:8px;font-size:1rem}.de-caret{display:inline-block;font-size:.8rem;line-height:1;transition:transform .18s ease}.de-nav-item.is-open .de-caret{transform:rotate(180deg)}.de-primary-nav>a:hover,.de-primary-nav>a:focus-visible,.de-nav-item>button:hover,.de-nav-item>button:focus-visible{border-bottom-color:var(--de-soft-gold);outline:none;background:rgb(255 255 255 / .07)}.de-submenu{position:absolute;top:100%;left:0;display:none;width:330px;padding:10px;background:var(--de-surface);border:1px solid var(--de-soft-gold);border-radius:0 0 14px 14px;box-shadow:var(--de-shadow)}.de-nav-item.is-open .de-submenu{display:grid}.de-submenu a{min-height:44px;padding:11px 12px;border-radius:9px;color:var(--de-burgundy);font-weight:760;text-decoration:none}.de-submenu a:hover,.de-submenu a:focus-visible{background:var(--de-warm);outline:2px solid rgb(199 146 69 / .35)}.de-menu-trigger{display:none;min-height:44px;padding:8px 13px;border:1px solid rgb(255 255 255 / .35);border-radius:9px;background:transparent;color:#fff7e8;font:inherit;font-weight:760}
.de-mobile-drawer{position:fixed;top:0;right:0;z-index:310;display:flex;flex-direction:column;width:min(92vw,420px);height:100dvh;background:var(--de-surface);color:var(--de-ink);box-shadow:-18px 0 50px rgb(35 10 16 / .25);transform:translateX(100%);transition:transform .2s ease}.de-mobile-drawer.is-open{transform:none}.de-drawer-backdrop{position:fixed;inset:0;z-index:300;background:rgb(24 8 12 / .52)}.de-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:18px;border-bottom:1px solid var(--de-line);color:var(--de-burgundy)}.de-menu-close{width:44px;height:44px;border:1px solid var(--de-line);border-radius:10px;background:white;color:var(--de-burgundy);font-size:1.4rem}.de-drawer-content{overflow:auto;padding:14px 18px 24px}.de-drawer-content .de-header-search{display:block;width:100%;margin:0 0 12px}.de-drawer-content .de-join{width:100%;margin-bottom:18px}.de-drawer-content .de-primary-nav{display:grid;min-height:0}.de-drawer-content .de-primary-nav>*{border-top:1px dashed rgb(91 16 34 / .28)}.de-drawer-content .de-primary-nav>:first-child{border-top:0}.de-drawer-content .de-primary-nav>a,.de-drawer-content .de-nav-item>button{color:var(--de-burgundy);min-height:50px}.de-drawer-content .de-nav-item{display:grid;grid-template-columns:1fr;border-top:0}.de-drawer-content .de-nav-item>button{grid-column:1;justify-content:space-between;width:100%;padding-left:13px;padding-right:13px}.de-drawer-content .de-submenu{position:static;grid-column:1/-1;width:auto;box-shadow:none;border:0;border-left:2px solid var(--de-soft-gold);border-radius:0;background:transparent}.de-drawer-content .de-nav-item.is-open .de-submenu{display:grid}
.de-site-footer{background:var(--de-deep);color:#f6e9d8;padding:46px 0 26px}.de-footer-grid{display:grid;grid-template-columns:1.25fr .8fr 1fr;gap:34px}.de-site-footer h2{margin:9px 0;color:var(--de-soft-gold);font-size:1.15rem}.de-site-footer p,.de-site-footer a{color:#f2ddc9}.de-site-footer ul{margin:0;padding:0;list-style:none}.de-site-footer li{margin:.55rem 0}.de-site-footer a:hover,.de-site-footer a:focus-visible{color:var(--de-soft-gold)}.de-footer-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px;margin-top:30px;padding-top:20px;border-top:1px solid rgb(231 201 145 / .18);color:#d9c6b4;font-size:.88rem}
main.wp-block-group.alignfull{max-width:none}.wp-site-blocks{overflow-x:clip}.wp-block-post-content,.entry-content{min-width:0}.wp-block-post-featured-image img{display:block;width:100%;height:auto;object-fit:contain}.de-post-header{padding:clamp(40px,6vw,84px) var(--de-gutter) clamp(20px,3vw,38px);background:linear-gradient(145deg,var(--de-deep),var(--de-burgundy));color:#fff7e8}.de-post-header>*{width:min(100%,1480px);margin-inline:auto}.de-post-header .wp-block-post-title{color:#fff7e8}.de-post-header .wp-block-post-date{color:#f0dece}.de-visual-summary{margin:var(--wp--preset--spacing--l) auto;max-width:780px;padding:16px;border:1px solid var(--de-soft-gold);border-radius:16px;background:var(--de-surface)}.de-visual-summary img{display:block;width:100%;height:auto;max-height:360px;object-fit:contain}.de-visual-summary a{font-weight:800}.dhamma-section-nav{z-index:20;background:var(--de-surface);border-block:1px solid var(--de-soft-gold)}
.de-sutta-library__grid,.wp-block-query .wp-block-post-template{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:0;list-style:none}.de-sutta-card,.dhamma-search-result,.wp-block-query .wp-block-post-template>li{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--de-line);border-radius:16px;background:var(--de-surface);box-shadow:0 5px 18px rgb(61 9 23 / .04)}.de-sutta-card__image{background:var(--de-warm)}.de-sutta-card__image img{object-fit:contain}.de-sutta-card__content,.dhamma-search-result,.wp-block-query .wp-block-post-template>li{padding:22px}.de-sutta-card__title,.dhamma-search-result .wp-block-post-title,.wp-block-query .wp-block-post-template h2{font-size:clamp(1.2rem,2vw,1.55rem)}.dhamma-search-results{padding-block:clamp(42px,6vw,76px)}.dhamma-search-results__list{display:grid;gap:16px}.dhamma-search-result{display:block}.dhamma-search-result .wp-block-post-title{margin:0}.dhamma-search-result .wp-block-post-excerpt{color:var(--de-muted)}
.wp-block-table{display:block;max-width:100%;overflow-x:auto;border:1px solid var(--de-soft-gold);border-radius:10px;background:var(--de-surface)}.wp-block-table table{min-width:640px;margin:0}.wp-block-table th{background:var(--de-warm);color:var(--de-burgundy)}details.wp-block-details,details.dm-deep-module{border:1px solid var(--de-soft-gold);border-radius:10px;background:var(--de-surface);padding:0}details.wp-block-details summary,details.dm-deep-module summary{min-height:48px;padding:13px 17px;color:var(--de-burgundy);font-weight:800;cursor:pointer}details.wp-block-details>*:not(summary),details.dm-deep-module>*:not(summary){margin-inline:17px}.is-style-dhamma-highlight-row{border-left:6px solid var(--de-burgundy);border-radius:14px;background:var(--de-warm);padding:var(--wp--preset--spacing--l);color:var(--de-burgundy)}.de-continue-practice{border-radius:18px;background:var(--de-burgundy);color:#fff7e8;padding:28px}.de-continue-practice *{color:inherit}.de-state{padding:clamp(48px,8vw,96px) var(--de-gutter);text-align:center}.de-state>*{max-width:760px;margin-inline:auto}
@media(max-width:1024px){.de-header-search,.de-identity-inner>.de-join,.de-primary-nav{display:none}.de-menu-trigger{display:inline-flex;margin-left:auto}.de-identity-inner{min-height:82px}.de-brand img{width:54px;height:54px}.de-brand strong{font-size:1.35rem}.de-footer-grid{grid-template-columns:1fr 1fr}.de-sutta-library__grid,.wp-block-query .wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.de-identity-inner{min-height:72px}.de-brand img{width:46px;height:46px}.de-brand strong{font-size:1.16rem}.de-brand em{font-size:.8rem}.de-footer-grid,.de-sutta-library__grid,.wp-block-query .wp-block-post-template{grid-template-columns:1fr}.de-site-footer{padding-top:38px}.de-footer-bottom{display:grid}.de-post-header{padding-top:38px}.dhamma-section-nav__list{overflow-x:auto}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
.de-brand-mark{display:block;width:64px;height:64px;flex:none;background:center/contain no-repeat url("../images/anumodana-sankalpa-approved-mark.png")}.de-footer-mark{width:54px;height:54px;background-image:url("../images/anumodana-sankalpa-path-wheel-transparent.png")}
@media(max-width:1024px){.de-brand-mark{width:54px;height:54px}}@media(max-width:700px){.de-brand-mark{width:46px;height:46px}.de-footer-mark{width:54px;height:54px}}

/* Disclosure state is script-owned: focus alone must never re-open a closed menu. */
.de-nav-item:focus-within:not(.is-open) .de-submenu{display:none}

/* The approved desktop navigation remains available at the 1024px test width. */
@media(min-width:1024px){.de-header-search{display:block}.de-identity-inner>.de-join,.de-primary-nav{display:flex}.de-menu-trigger{display:none}.de-identity-inner{min-height:98px}.de-brand img{width:64px;height:64px}.de-brand strong{font-size:clamp(1.35rem,2vw,1.78rem)}.de-brand-mark{width:64px;height:64px}}

/* Homepage page 263: native block content owns structure; the Theme owns its presentation. */
.de-homepage{background:var(--de-canvas)}.de-home-hero{min-height:clamp(520px,68vw,760px);padding:clamp(64px,9vw,128px) var(--de-gutter);display:flex;align-items:center}.de-home-hero .wp-block-cover__inner-container{width:min(100%,1480px);margin:auto;padding:0}.de-home-hero .de-home-kicker,.de-home-kicker{margin:0 0 12px;color:var(--de-soft-gold);font-size:.78rem;font-weight:850;letter-spacing:.15em;text-transform:uppercase}.de-home-hero h1{max-width:780px;margin:0 0 18px;color:#fff7e8;font-size:clamp(3rem,6vw,5.8rem);line-height:1.01;letter-spacing:-.045em}.de-home-hero .de-home-intro{max-width:710px;margin:0;color:#f5e4d4;font-size:clamp(1.05rem,1.65vw,1.3rem);line-height:1.65}.de-home-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}.de-home-actions .wp-block-button__link{min-height:46px;padding:12px 20px;border-radius:999px;font-weight:850}.de-home-actions .is-style-outline>.wp-block-button__link{border-color:var(--de-soft-gold);color:#fff7e8}
.de-home-section{padding:clamp(56px,7vw,96px) var(--de-gutter)}.de-home-section>.wp-block-group__inner-container{width:min(100%,1480px);margin:auto}.de-home-section.is-warm{background:var(--de-warm)}.de-home-section-head{display:grid;grid-template-columns:1fr minmax(280px,620px);gap:28px;align-items:end;margin:0 0 30px}.de-home-section-head h2{margin:5px 0 0;color:var(--de-burgundy);font-size:clamp(2.1rem,4vw,3.55rem);line-height:1.08;letter-spacing:-.035em}.de-home-section-head p{margin:0;color:var(--de-muted)}
.de-doorways{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.de-doorway{min-height:238px;padding:22px;border:1px solid var(--de-line);border-radius:18px;background:var(--de-surface);box-shadow:0 5px 18px rgb(61 9 23 / .04);display:flex;flex-direction:column}.de-doorway h3{margin:15px 0 8px;color:var(--de-burgundy);font-size:1.35rem;line-height:1.18}.de-doorway p{margin:0;color:var(--de-muted);line-height:1.5}.de-doorway .wp-block-button{margin-top:auto;padding-top:18px}.de-doorway .wp-block-button__link{padding:0;background:transparent;color:var(--de-burgundy);font-weight:850;text-decoration:underline;text-underline-offset:3px}.de-doorway.is-pending{background:linear-gradient(145deg,var(--de-surface),var(--de-warm))}.de-doorway.is-pending small{margin-top:auto;padding-top:18px;color:var(--de-muted);font-weight:750}
.de-sequence{padding:clamp(22px,3vw,36px);border:1px solid var(--de-line);border-radius:20px;background:var(--de-surface)}.de-sequence-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.de-sequence-step{position:relative;min-height:115px;padding:16px 14px;border:1px solid rgb(199 146 69 / .48);border-radius:13px;background:#fffdf8}.de-sequence-step:not(:last-child)::after{position:absolute;top:50%;right:-11px;z-index:1;content:'›';transform:translateY(-50%);color:var(--de-gold);font-size:1.5rem;font-weight:900}.de-sequence-step p{margin:0;color:var(--de-burgundy);font-weight:800;line-height:1.25}
.de-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.de-feature-card{display:flex;min-height:270px;flex-direction:column;justify-content:flex-end;padding:28px;border-radius:20px;background:var(--de-deep);color:#fff7e8;text-decoration:none;overflow:hidden}.de-feature-card:last-child{background:var(--de-burgundy)}.de-feature-card .de-home-kicker{color:var(--de-soft-gold)}.de-feature-card h3{margin:7px 0 10px;font-size:clamp(1.7rem,3vw,2.65rem);line-height:1.08}.de-feature-card p{margin:0;color:#f2ddca}.de-feature-card span{margin-top:17px;color:var(--de-soft-gold);font-weight:850}
.de-recent-query .wp-block-post-template{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.de-recent-query .wp-block-post{padding:20px;border:1px solid var(--de-line);border-radius:16px;background:var(--de-surface)}.de-recent-query .wp-block-post-title{margin:8px 0;color:var(--de-burgundy);font-size:1.2rem;line-height:1.3}.de-recent-query .wp-block-post-title a{text-decoration:none}.de-recent-query .wp-block-post-date{color:var(--de-gold);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.de-video-grid,.de-panel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.de-video-card,.de-panel{padding:21px;border:1px solid var(--de-line);border-radius:16px;background:var(--de-surface)}.de-video-card{text-decoration:none}.de-video-card h3,.de-panel h3{margin:7px 0;color:var(--de-burgundy);font-size:1.17rem;line-height:1.25}.de-video-card p,.de-panel p{margin:0;color:var(--de-muted);font-size:.9rem;line-height:1.48}.de-video-card span{display:block;margin-top:14px;color:var(--de-burgundy);font-weight:850}.de-panel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.de-panel.is-dark{background:var(--de-deep);border-color:var(--de-deep)}.de-panel.is-dark h3{color:#fff7e8}.de-panel.is-dark p{color:#f2ddca}.de-panel a{display:inline-block;margin-top:15px;color:inherit;font-weight:850}.de-panel.is-dark a{color:var(--de-soft-gold)}
.de-depth{padding:clamp(28px,4vw,42px);border-radius:20px;background:linear-gradient(135deg,#2e1220,var(--de-burgundy));color:#fff7e8}.de-depth h2{margin:6px 0 10px;color:#fff7e8;font-size:clamp(2rem,3.4vw,3rem)}.de-depth p{max-width:850px;margin:0;color:#f2ddca}.de-depth .wp-block-button{margin-top:20px}.de-depth .wp-block-button__link{border-radius:999px;background:var(--de-gold);color:var(--de-deep);font-weight:900}
@media(max-width:1100px){.de-doorways{grid-template-columns:repeat(2,minmax(0,1fr))}.de-sequence-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.de-sequence-step:nth-child(3)::after{display:none}.de-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.de-home-section-head{grid-template-columns:1fr}.de-doorways,.de-feature-grid,.de-recent-query .wp-block-post-template,.de-video-grid,.de-panel-grid{grid-template-columns:1fr}.de-sequence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.de-sequence-step::after{display:none!important}.de-home-section{padding-inline:16px}}

/* Frozen Homepage page 263 composition. */
.de-home-hero-v2{padding:clamp(62px,8vw,112px) 0 74px;background:radial-gradient(circle at 15% 10%,rgb(199 146 69 / .18),transparent 25%),linear-gradient(145deg,var(--de-deep),var(--de-burgundy));color:#fff7e8}.de-home-hero-grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(380px,.98fr);gap:48px;align-items:center}.de-home-hero-v2 h1{margin:10px 0 18px;color:#fff7e8;font-size:clamp(2.9rem,6.3vw,5.9rem);line-height:.98;letter-spacing:-.052em}.de-home-hero-v2 p:not(.de-home-kicker){max-width:760px;color:#f3e2d2;font-size:clamp(1.07rem,1.55vw,1.27rem)}.de-home-actions .wp-block-button__link{min-height:48px;background:var(--de-gold);color:var(--de-deep)}.de-home-actions .is-style-outline>.wp-block-button__link{border-color:rgb(231 201 145 / .46);background:transparent;color:#fff7e8}.de-home-visual{position:relative;min-height:430px;overflow:hidden;border:1px solid rgb(231 201 145 / .28);border-radius:22px;background:linear-gradient(to top,rgb(25 8 15 / .65),rgb(25 8 15 / .05) 55%),url("https://i0.wp.com/dhammaessence.in/wp-content/uploads/2026/04/anumodana-sankalpa-69d4c2db8c7cc.png?w=1024&quality=72&allow_lossy=1&ssl=1") center 75%/cover no-repeat;box-shadow:0 22px 55px rgb(30 5 12 / .28)}.de-visual-caption{position:absolute;right:24px;bottom:22px;left:24px;padding:18px;border:1px solid rgb(231 201 145 / .28);border-radius:14px;background:rgb(61 9 23 / .78)}.de-visual-caption small,.de-home-kicker{color:var(--de-soft-gold);font-weight:850;letter-spacing:.1em}.de-visual-caption b,.de-visual-caption span{display:block}.de-visual-caption b{margin-top:4px;font-size:1.2rem}.de-visual-caption span{margin-top:3px;color:#eedbcc;font-size:.87rem;line-height:1.4}
.de-door-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.de-door{display:flex;min-height:255px;flex-direction:column;padding:23px;border:1px solid var(--de-line);border-radius:18px;background:var(--de-surface);color:inherit;text-decoration:none}.de-door-num{display:grid;width:40px;height:40px;place-items:center;border:2px solid var(--de-gold);border-radius:50%;background:var(--de-burgundy);color:#fff7e8;font-weight:900}.de-door small,.de-feature-small small,.de-playlist small{display:block;margin-top:15px;color:var(--de-gold);font-size:.68rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.de-door h3{margin:6px 0 8px;color:var(--de-burgundy);font-size:1.3rem}.de-door p{color:var(--de-muted);font-size:.88rem}.de-door-go{margin-top:auto;padding-top:16px;color:var(--de-burgundy);font-weight:900}.de-path-home{padding:clamp(26px,4vw,40px);border-radius:22px;background:var(--de-burgundy);color:#fff7e8}.de-path-home h2{color:#fff7e8}.de-path-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:24px}.de-home-step{position:relative;min-height:120px;padding:16px 14px;border:1px solid rgb(231 201 145 / .36);border-radius:13px;background:rgb(255 250 243 / .07)}.de-home-step:not(:last-child)::after{position:absolute;top:50%;right:-10px;z-index:2;content:'›';transform:translateY(-50%);color:var(--de-soft-gold);font-size:1.45rem}.de-home-step small{color:var(--de-soft-gold);font-size:.66rem;font-weight:850}.de-home-step b{display:block;margin-top:8px}.de-home-step span{display:block;margin-top:4px;color:#e9d5c5;font-size:.77rem}
.de-feature-home{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.de-feature-lead{position:relative;display:flex;min-height:360px;overflow:hidden;flex-direction:column;justify-content:flex-end;padding:31px;border-radius:20px;background:var(--de-deep);color:#fff7e8;text-decoration:none}.de-feature-lead::after{position:absolute;top:2px;right:18px;content:'Dhamma';color:rgb(231 201 145 / .09);font-size:clamp(5rem,11vw,10rem);font-weight:900;letter-spacing:-.08em}.de-feature-lead .de-home-kicker{position:relative;z-index:2;color:var(--de-soft-gold)}.de-feature-lead h3{position:relative;z-index:2;max-width:710px;margin:8px 0 10px;color:#fff7e8;font-size:clamp(2rem,3.3vw,3rem);line-height:1.07}.de-feature-lead>p:not(.de-home-kicker){position:relative;z-index:2;max-width:680px;margin:0;color:#efddcc}.de-feature-lead span{position:relative;z-index:2;margin-top:16px;color:var(--de-soft-gold);font-weight:900}.de-feature-list{display:grid;gap:12px}.de-feature-small{padding:19px;border:1px solid var(--de-line);border-radius:15px;background:var(--de-surface);text-decoration:none}.de-feature-small:hover{border-color:var(--de-gold)}.de-feature-small small{margin-top:0}.de-feature-small b{display:block;margin-top:5px;color:var(--de-burgundy);font-size:1.08rem}.de-feature-small span{display:block;margin-top:4px;color:var(--de-muted);font-size:.83rem}.de-latest-home .wp-block-post-template{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.de-latest-home .wp-block-post{display:flex;min-height:260px;flex-direction:column;align-items:stretch;padding:18px;border:1px solid var(--de-line);border-radius:16px;background:var(--de-surface);text-align:left}.de-latest-home .wp-block-post-date{align-self:flex-start;margin:0 0 10px;padding:4px 8px;border-radius:999px;background:var(--de-warm);color:var(--de-burgundy);font-size:.68rem;font-weight:850}.de-latest-home .wp-block-post-title{min-height:2.6em;margin:0 0 8px;color:var(--de-burgundy);font-size:1.08rem;line-height:1.3;text-align:left}.de-latest-home .wp-block-post-title a{text-decoration:none}.de-latest-home .wp-block-post-excerpt{margin:0;color:var(--de-muted);font-size:.84rem;line-height:1.45;text-align:left}.de-latest-home .wp-block-post-excerpt p{display:-webkit-box;overflow:hidden;margin:0;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4}
.de-video-layout,.de-bridge-grid{display:grid;grid-template-columns:.72fr 1.28fr;gap:22px}.de-video-intro{padding:30px;border-radius:19px;background:var(--de-burgundy);color:#fff7e8}.de-video-intro h2{color:#fff7e8}.de-playlists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.de-playlist{overflow:hidden;border:1px solid var(--de-line);border-radius:15px;background:var(--de-surface);color:inherit;text-decoration:none}.de-playlist i{display:block;height:98px;padding:14px;background:linear-gradient(135deg,#3d0917,#7b2436);color:var(--de-soft-gold);font-style:normal;font-weight:900}.de-playlist small,.de-playlist b,.de-playlist span{margin-inline:17px}.de-playlist b,.de-playlist span{display:block}.de-playlist b{margin-top:6px;color:var(--de-burgundy)}.de-playlist span{margin-top:5px;margin-bottom:17px;color:var(--de-muted);font-size:.82rem}.de-bridge-grid{grid-template-columns:1fr 1fr}.de-retreat-panel,.de-centre-panel{display:flex;min-height:310px;flex-direction:column;padding:30px;border-radius:20px}.de-retreat-panel{background:var(--de-deep);color:#fff7e8}.de-retreat-panel h2{color:#fff7e8}.de-retreat-panel>a{align-self:flex-start;margin-top:auto;padding:12px 16px;border-radius:999px;background:var(--de-gold);color:var(--de-deep);font-weight:900;text-decoration:none}.de-centre-panel{border:1px solid var(--de-line);background:var(--de-surface)}.de-centre-panel>div{display:flex;flex-wrap:wrap;gap:9px;margin-top:auto}.de-centre-panel a{padding:11px 14px;border-radius:999px;background:var(--de-burgundy);color:#fff7e8;text-decoration:none}.de-centre-panel a+ a{border:1px solid var(--de-gold);background:transparent;color:var(--de-burgundy)}.de-depth-home{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:18px;padding:24px;border-radius:18px;background:linear-gradient(135deg,#2e1220,#4b1021);color:#fff7e8}.de-depth-home h3{margin:5px 0 4px;color:#fff7e8}.de-depth-home>a{padding:12px 15px;border-radius:999px;background:var(--de-gold);color:var(--de-deep);font-weight:900;text-decoration:none}
@media(max-width:1150px){.de-door-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.de-path-row{grid-template-columns:repeat(3,minmax(0,1fr))}.de-home-step:nth-child(3)::after{display:none}}@media(max-width:1024px){.de-home-hero-grid,.de-feature-home,.de-video-layout,.de-bridge-grid{grid-template-columns:1fr}.de-home-visual{min-height:380px}}@media(max-width:720px){.de-door-grid,.de-latest-home .wp-block-post-template,.de-playlists{grid-template-columns:1fr}.de-path-row{grid-template-columns:repeat(2,minmax(0,1fr))}.de-home-step::after{display:none!important}.de-depth-home{display:block}.de-depth-home>a{display:inline-block;margin-top:16px}}@media(max-width:520px){.de-path-row{grid-template-columns:1fr}}

/* Start Here hub — frozen 2026-08-24 prototype */
.de-start-here{background:var(--de-canvas);color:var(--de-ink);font-family:var(--de-font);line-height:1.72}
.de-start-hero{background:radial-gradient(circle at 86% 14%,rgb(199 146 69 / .21),transparent 25%),linear-gradient(145deg,var(--de-deep),var(--de-burgundy));color:#fff7e8;padding:clamp(62px,8vw,112px) 0 72px}
.de-start-kicker{color:var(--de-soft-gold);font-size:.78rem;font-weight:850;letter-spacing:.15em;text-transform:uppercase}
.de-start-hero-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:54px;align-items:center}
.de-start-hero h1{max-width:900px;margin:10px 0 17px;color:#fff7e8;font-size:clamp(2.7rem,5.8vw,5.5rem);line-height:1.01;letter-spacing:-.045em}
.de-start-hero p{max-width:780px;margin:0;color:#f3e2d2;font-size:clamp(1.06rem,1.5vw,1.25rem)}
.de-start-hero-note{padding:22px 24px;border:1px solid rgb(231 201 145 / .32);border-left:4px solid var(--de-gold);border-radius:14px;background:rgb(255 250 243 / .08)}
.de-start-hero-note strong{display:block;margin-bottom:7px;color:var(--de-soft-gold);font-size:.82rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.de-start-hero-note p{color:#fff7e8;font-size:1rem}
.de-start-jump{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.de-start-jump a{padding:8px 12px;border:1px solid rgb(231 201 145 / .36);border-radius:999px;background:rgb(255 255 255 / .05);color:#fff7e8;font-size:.9rem;font-weight:720;text-decoration:none}
.de-start-jump a:hover,.de-start-jump a:focus-visible{border-color:var(--de-soft-gold);background:rgb(255 255 255 / .09);outline:none}

.de-start-section{padding:clamp(54px,7vw,88px) 0}
.de-start-section.is-warm{background:var(--de-warm)}
.de-start-section-head{display:grid;grid-template-columns:1fr minmax(300px,600px);gap:30px;align-items:end;margin-bottom:28px}
.de-start-eyebrow{color:var(--de-gold);font-size:.76rem;font-weight:850;letter-spacing:.13em;text-transform:uppercase}
.de-start-section-head h2,.de-start-sequence-wrap h2{margin:5px 0 0;color:var(--de-burgundy);font-size:clamp(2rem,4vw,3.45rem);line-height:1.08;letter-spacing:-.035em}
.de-start-section-head>p,.de-start-section-head>div+ p{margin:0;color:var(--de-muted)}

.de-start-pathways{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:17px}
.de-start-path-card{grid-column:span 4;display:flex;min-height:300px;flex-direction:column;padding:23px;border:1px solid var(--de-line);border-radius:16px;background:var(--de-surface);box-shadow:0 5px 18px rgb(61 9 23 / .035);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.de-start-path-card:nth-child(4),.de-start-path-card:nth-child(5),.de-start-path-card:nth-child(6),.de-start-path-card:nth-child(7){grid-column:span 3}
.de-start-path-card:hover{transform:translateY(-2px);border-color:rgb(199 146 69 / .5);box-shadow:var(--de-shadow)}
.de-start-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.de-start-num{display:grid;width:40px;height:40px;place-items:center;border:2px solid var(--de-gold);border-radius:50%;background:var(--de-burgundy);color:#fff7e8;font-weight:900}
.de-start-card-tag{color:var(--de-gold);font-size:.72rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.de-start-path-card h3{margin:16px 0 8px;color:var(--de-burgundy);font-size:1.35rem;line-height:1.2}
.de-start-path-card>p{margin:0 0 15px;color:var(--de-muted)}
.de-start-starter{display:grid;gap:7px;margin:4px 0 18px;padding:0;list-style:none}
.de-start-starter a{color:var(--de-ink);font-size:.91rem;line-height:1.35;text-decoration:none}
.de-start-starter a::before{margin-right:7px;content:"→";color:var(--de-gold);font-weight:900}
.de-start-starter a:hover{color:var(--de-burgundy);text-decoration:underline}
.de-start-explore{margin-top:auto;color:var(--de-burgundy);font-weight:850;text-decoration:none}
.de-start-explore:hover{text-decoration:underline}

.de-start-chooser{display:grid;grid-template-columns:.72fr 1.28fr;gap:22px;align-items:stretch}
.de-start-chooser-intro{padding:30px;border-radius:18px;background:var(--de-burgundy);color:#fff7e8}
.de-start-chooser-intro .de-start-eyebrow{color:var(--de-soft-gold)}
.de-start-chooser-intro h2{margin:5px 0 0;color:#fff7e8;font-size:clamp(2rem,3.5vw,3.1rem);line-height:1.08;letter-spacing:-.035em}
.de-start-chooser-intro p{color:#f3e2d2}
.de-start-questions{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.de-start-q{display:flex;gap:14px;align-items:flex-start;padding:19px;border:1px solid var(--de-line);border-radius:15px;background:var(--de-surface);text-decoration:none}
.de-start-q:hover{border-color:var(--de-gold);box-shadow:0 7px 20px rgb(61 9 23 / .06)}
.de-start-q b{display:block;color:var(--de-burgundy);line-height:1.25}
.de-start-q span span{display:block;margin-top:3px;color:var(--de-muted);font-size:.88rem;line-height:1.4}
.de-start-qmark{display:grid;flex:0 0 34px;height:34px;place-items:center;border-radius:9px;background:var(--de-warm);color:var(--de-burgundy);font-weight:900}

.de-start-sequence-wrap{padding:clamp(22px,3vw,34px);border:1px solid var(--de-line);border-radius:18px;background:var(--de-surface)}
.de-start-sequence{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-top:22px}
.de-start-step{position:relative;min-height:110px;padding:16px 14px;border:1px solid rgb(199 146 69 / .42);border-radius:13px;background:#fffdf8}
.de-start-step:not(:last-child)::after{position:absolute;top:50%;right:-10px;z-index:2;content:"›";transform:translateY(-50%);color:var(--de-gold);font-size:1.4rem;font-weight:900}
.de-start-step small{display:block;color:var(--de-gold);font-size:.68rem;font-weight:850;letter-spacing:.08em}
.de-start-step b{display:block;margin-top:8px;color:var(--de-burgundy);line-height:1.2}
.de-start-step span{display:block;margin-top:4px;color:var(--de-muted);font-size:.78rem;line-height:1.3}

.de-start-feature-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}
.de-start-featured{position:relative;display:flex;min-height:310px;overflow:hidden;flex-direction:column;justify-content:flex-end;padding:30px;border-radius:18px;background:var(--de-deep);color:#fff7e8}
.de-start-featured::before{position:absolute;top:-80px;right:-60px;width:250px;height:250px;border:1px solid rgb(231 201 145 / .18);border-radius:50%;content:""}
.de-start-featured .de-start-eyebrow{position:relative;z-index:2;color:var(--de-soft-gold)}
.de-start-featured h3{position:relative;z-index:2;max-width:650px;margin:8px 0 10px;color:#fff7e8;font-size:clamp(1.9rem,3vw,2.8rem);line-height:1.08}
.de-start-featured p{position:relative;z-index:2;max-width:660px;color:#f0dece}
.de-start-featured a{position:relative;z-index:2;margin-top:10px;color:var(--de-soft-gold);font-weight:850;text-decoration:none}
.de-start-side-list{display:grid;gap:12px}
.de-start-mini{padding:18px;border:1px solid var(--de-line);border-radius:14px;background:var(--de-surface);text-decoration:none}
.de-start-mini:hover{border-color:var(--de-gold)}
.de-start-mini small{color:var(--de-gold);font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.de-start-mini b{display:block;margin-top:5px;color:var(--de-burgundy);font-size:1.08rem;line-height:1.3}
.de-start-mini span{display:block;margin-top:4px;color:var(--de-muted);font-size:.88rem}

.de-start-library-cta{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px;border-radius:20px;background:var(--de-burgundy);color:#fff7e8}
.de-start-library-cta h3{margin:0 0 7px;color:#fff7e8;font-size:clamp(1.7rem,3vw,2.4rem)}
.de-start-library-cta p{max-width:780px;margin:0;color:#f0dece}
.de-start-cta-btn{display:inline-flex;min-height:46px;align-items:center;padding:0 18px;border-radius:999px;background:var(--de-gold);color:var(--de-deep);font-weight:900;text-decoration:none;white-space:nowrap}

@media(max-width:1100px){
 .de-start-path-card,.de-start-path-card:nth-child(n){grid-column:span 6}
 .de-start-sequence{grid-template-columns:repeat(3,1fr)}
 .de-start-step:nth-child(3)::after{display:none}
}
@media(max-width:1024px){
 .de-start-hero-grid{grid-template-columns:1fr}
 .de-start-hero-note{max-width:720px}
 .de-start-chooser{grid-template-columns:1fr}
 .de-start-feature-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
 .de-start-section-head{grid-template-columns:1fr}
 .de-start-path-card,.de-start-path-card:nth-child(n){grid-column:1/-1;min-height:unset}
 .de-start-questions{grid-template-columns:1fr}
 .de-start-sequence{grid-template-columns:1fr 1fr}
 .de-start-step::after{display:none!important}
 .de-start-library-cta{display:block}
 .de-start-cta-btn{margin-top:18px}
}
@media(max-width:560px){
 .de-start-hero{padding-top:50px}
 .de-start-sequence{grid-template-columns:1fr}
}

/* Legacy output cleanup.
   Hub/static pages and modern single posts use Theme-owned UI instead of
   Jetpack Like and the cloned legacy Continue your practice injection. */
body.page .sd-like,
body.page .sd-sharing-enabled,
body.page .jetpack-likes-widget-wrapper,
body.page .continue-practice,
body.single-post .sd-like,
body.single-post .sd-sharing-enabled,
body.single-post .jetpack-likes-widget-wrapper,
body.single-post .continue-practice{
  display:none!important;
}

/* Practice hub — frozen 2026-08-24 prototype */
.de-practice{background:var(--de-canvas);color:var(--de-ink);font-family:var(--de-font);line-height:1.72}
.de-practice-hero{background:radial-gradient(circle at 84% 18%,rgb(199 146 69 / .20),transparent 24%),linear-gradient(145deg,var(--de-deep),var(--de-burgundy));color:#fff7e8;padding:clamp(62px,8vw,112px) 0 68px}
.de-practice-hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(310px,.75fr);gap:48px;align-items:center}
.de-practice-kicker{color:var(--de-soft-gold);font-size:.78rem;font-weight:850;letter-spacing:.15em;text-transform:uppercase}
.de-practice-hero h1{max-width:900px;margin:10px 0 17px;color:#fff7e8;font-size:clamp(2.7rem,5.8vw,5.4rem);line-height:1.01;letter-spacing:-.045em}
.de-practice-hero p{max-width:800px;margin:0;color:#f3e2d2;font-size:clamp(1.06rem,1.5vw,1.25rem)}
.de-practice-jump{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.de-practice-jump a{padding:8px 12px;border:1px solid rgb(231 201 145 / .36);border-radius:999px;background:rgb(255 255 255 / .05);color:#fff7e8;font-size:.9rem;font-weight:720;text-decoration:none}
.de-practice-jump a:hover,.de-practice-jump a:focus-visible{border-color:var(--de-soft-gold);background:rgb(255 255 255 / .09);outline:none}
.de-practice-summary{padding:24px;border:1px solid rgb(231 201 145 / .32);border-radius:16px;background:rgb(255 250 243 / .08)}
.de-practice-summary strong{display:block;margin-bottom:8px;color:var(--de-soft-gold);font-size:.76rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.de-practice-summary ul{display:grid;gap:9px;margin:0;padding:0;list-style:none}
.de-practice-summary li{position:relative;padding-left:20px;color:#fff7e8}
.de-practice-summary li::before{position:absolute;left:3px;content:"•";color:var(--de-gold);font-weight:900}

.de-practice-section{padding:clamp(54px,7vw,88px) 0}
.de-practice-section.is-warm{background:var(--de-warm)}
.de-practice-section-head{display:grid;grid-template-columns:1fr minmax(300px,600px);gap:30px;align-items:end;margin-bottom:28px}
.de-practice-eyebrow{color:var(--de-gold);font-size:.76rem;font-weight:850;letter-spacing:.13em;text-transform:uppercase}
.de-practice-section-head h2,.de-practice-daily-intro h2{margin:5px 0 0;color:var(--de-burgundy);font-size:clamp(2rem,4vw,3.45rem);line-height:1.08;letter-spacing:-.035em}
.de-practice-section-head>p{margin:0;color:var(--de-muted)}

.de-practice-path-shell{padding:clamp(22px,3vw,36px);border:1px solid var(--de-line);border-radius:20px;background:var(--de-surface)}
.de-practice-path{display:grid;grid-template-columns:repeat(6,1fr);gap:11px;margin-top:24px}
.de-practice-step{position:relative;min-height:132px;padding:18px 15px;border:1px solid rgb(199 146 69 / .46);border-radius:14px;background:#fffdf8;text-decoration:none;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.de-practice-step:hover{transform:translateY(-1px);border-color:var(--de-burgundy);box-shadow:0 8px 22px rgb(61 9 23 / .07)}
.de-practice-step:not(:last-child)::after{position:absolute;top:50%;right:-11px;z-index:2;content:"›";transform:translateY(-50%);color:var(--de-gold);font-size:1.5rem;font-weight:900}
.de-practice-step small{display:block;color:var(--de-gold);font-size:.68rem;font-weight:850;letter-spacing:.08em}
.de-practice-step b{display:block;margin-top:9px;color:var(--de-burgundy);font-size:1.05rem;line-height:1.15}
.de-practice-step span{display:block;margin-top:6px;color:var(--de-muted);font-size:.8rem;line-height:1.35}

.de-practice-groups{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:17px}
.de-practice-group{display:flex;min-height:292px;flex-direction:column;padding:23px;border:1px solid var(--de-line);border-radius:17px;background:var(--de-surface);box-shadow:0 5px 18px rgb(61 9 23 / .035);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.de-practice-group:nth-child(1),.de-practice-group:nth-child(2){grid-column:span 6}
.de-practice-group:nth-child(n+3){grid-column:span 4}
.de-practice-group:hover{transform:translateY(-2px);border-color:rgb(199 146 69 / .56);box-shadow:var(--de-shadow)}
.de-practice-group-icon{display:grid;width:42px;height:42px;place-items:center;border:1px solid rgb(199 146 69 / .34);border-radius:12px;background:var(--de-warm);color:var(--de-burgundy);font-weight:900}
.de-practice-group h3{margin:15px 0 7px;color:var(--de-burgundy);font-size:1.38rem;line-height:1.2}
.de-practice-group p{margin:0 0 15px;color:var(--de-muted)}
.de-practice-group ul{display:grid;gap:7px;margin:0 0 18px;padding:0;list-style:none}
.de-practice-group li{font-size:.9rem;line-height:1.35}
.de-practice-group li::before{margin-right:7px;content:"→";color:var(--de-gold);font-weight:900}
.de-practice-group-link{margin-top:auto;color:var(--de-burgundy);font-weight:850;text-decoration:none}
.de-practice-group-link:hover{text-decoration:underline}

.de-practice-daily-band{display:grid;grid-template-columns:.78fr 1.22fr;gap:22px;align-items:stretch}
.de-practice-daily-intro{padding:30px;border-radius:18px;background:var(--de-burgundy);color:#fff7e8}
.de-practice-daily-intro .de-practice-eyebrow{color:var(--de-soft-gold)}
.de-practice-daily-intro h2{color:#fff7e8}
.de-practice-daily-intro p{color:#f1dfcf}
.de-practice-day-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}
.de-practice-day-card{display:flex;gap:13px;align-items:flex-start;padding:18px;border:1px solid var(--de-line);border-radius:14px;background:var(--de-surface)}
.de-practice-day-time{display:grid;flex:0 0 46px;height:34px;place-items:center;border-radius:9px;background:var(--de-warm);color:var(--de-burgundy);font-size:.72rem;font-weight:900}
.de-practice-day-card b{display:block;color:var(--de-burgundy);line-height:1.2}
.de-practice-day-card span span{display:block;margin-top:4px;color:var(--de-muted);font-size:.86rem;line-height:1.4}

.de-practice-diagnostic{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.de-practice-diag-card{padding:26px;border:1px solid var(--de-line);border-radius:18px;background:var(--de-surface)}
.de-practice-diag-card.is-problem{border-color:rgb(231 201 145 / .26);background:var(--de-deep);color:#fff7e8}
.de-practice-diag-card h3{margin:0 0 9px;color:var(--de-burgundy);font-size:1.45rem}
.de-practice-diag-card p{margin-top:0;color:var(--de-muted)}
.de-practice-diag-card ul{margin:16px 0 0;padding-left:20px}
.de-practice-diag-card li{margin:7px 0;color:var(--de-muted)}
.de-practice-diag-card.is-problem h3{color:#fff7e8}
.de-practice-diag-card.is-problem p,.de-practice-diag-card.is-problem li{color:#f0ddcc}
.de-practice-diag-action{display:inline-flex;min-height:44px;align-items:center;margin-top:18px;padding:0 15px;border-radius:999px;background:var(--de-gold);color:var(--de-deep);font-weight:900;text-decoration:none}

.de-practice-links{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.de-practice-link{min-height:150px;padding:19px;border:1px solid var(--de-line);border-radius:15px;background:var(--de-surface);text-decoration:none}
.de-practice-link:hover{border-color:var(--de-gold);box-shadow:0 7px 18px rgb(61 9 23 / .06)}
.de-practice-link small{display:block;color:var(--de-gold);font-size:.68rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.de-practice-link b{display:block;margin-top:8px;color:var(--de-burgundy);font-size:1.05rem;line-height:1.2}
.de-practice-link span{display:block;margin-top:5px;color:var(--de-muted);font-size:.82rem;line-height:1.35}

.de-practice-study-cta{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px;border-radius:20px;background:var(--de-burgundy);color:#fff7e8}
.de-practice-study-cta h3{margin:0 0 7px;color:#fff7e8;font-size:clamp(1.7rem,3vw,2.4rem)}
.de-practice-study-cta p{max-width:780px;margin:0;color:#f0dece}
.de-practice-study-btn{display:inline-flex;min-height:46px;align-items:center;padding:0 18px;border-radius:999px;background:var(--de-gold);color:var(--de-deep);font-weight:900;text-decoration:none;white-space:nowrap}

@media(max-width:1100px){
 .de-practice-path{grid-template-columns:repeat(3,1fr)}
 .de-practice-step:nth-child(3)::after{display:none}
 .de-practice-group:nth-child(n){grid-column:span 6}
 .de-practice-links{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:1024px){
 .de-practice-hero-grid{grid-template-columns:1fr}
 .de-practice-summary{max-width:720px}
 .de-practice-daily-band{grid-template-columns:1fr}
}
@media(max-width:720px){
 .de-practice-section-head{grid-template-columns:1fr}
 .de-practice-path{grid-template-columns:1fr 1fr}
 .de-practice-step::after{display:none!important}
 .de-practice-group:nth-child(n){grid-column:1/-1;min-height:unset}
 .de-practice-day-grid,.de-practice-diagnostic{grid-template-columns:1fr}
 .de-practice-links{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
 .de-practice-path,.de-practice-links{grid-template-columns:1fr}
 .de-practice-study-cta{display:block}
 .de-practice-study-btn{margin-top:18px}
}

/* Sticky navigation stack.
   The Theme template wraps de-site-header inside a short wp-block-template-part.
   A sticky child is constrained by that short wrapper, so make the template-part
   itself sticky and slide only the identity row out of view. */
.wp-site-blocks>header.wp-block-template-part{
  position:sticky;
  top:-98px;
  z-index:120;
}
.de-nav-row{
  position:relative;
  top:auto;
}
.dm-nav{
  position:sticky!important;
  top:56px!important;
  z-index:110;
  background:rgb(255 250 243 / .98);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 4px 14px rgb(61 9 23 / .06);
}
.dm-page [id]{scroll-margin-top:122px}

body.admin-bar .wp-site-blocks>header.wp-block-template-part{top:-66px}
body.admin-bar .dm-nav{top:88px!important}
body.admin-bar .dm-page [id]{scroll-margin-top:154px}

@media(max-width:1023px){
  .wp-site-blocks>header.wp-block-template-part{top:-82px}
  body.admin-bar .wp-site-blocks>header.wp-block-template-part{top:-50px}
}
@media(max-width:782px){
  .wp-site-blocks>header.wp-block-template-part{top:-72px}
  body.admin-bar .wp-site-blocks>header.wp-block-template-part{top:-26px}
  body.admin-bar .dm-nav{top:102px!important}
  .dm-page [id]{scroll-margin-top:122px}
  body.admin-bar .dm-page [id]{scroll-margin-top:168px}
}

/* Dhamma internal sticky-nav interaction */
.dm-nav a{
  transition:background-color .16s ease,color .16s ease,box-shadow .16s ease;
}
.dm-nav a:hover,
.dm-nav a:focus,
.dm-nav a:focus-visible{
  background:var(--de-soft-gold);
  color:var(--de-deep);
  outline:none;
  box-shadow:0 0 0 2px rgb(91 16 34 / .10);
}

/* Approved dm-* single-post opening:
   Theme masthead is hidden because dm-hero is the reader-facing title. */
body.de-custom-article .de-post-header{
  display:none;
}

/* Compact clickable infographic card between dm-hero and dm-nav. */
.de-visual-summary-card{
  display:grid;
  grid-template-columns:minmax(180px,280px) minmax(0,1fr);
  gap:18px;
  align-items:center;
  width:min(calc(100% - 32px),1180px);
  margin:18px auto 0;
  padding:14px;
  border:1px solid var(--de-soft-gold);
  border-radius:16px;
  background:var(--de-surface);
  color:var(--de-ink);
  text-decoration:none;
  box-shadow:0 5px 18px rgb(61 9 23 / .045);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.de-visual-summary-card:hover,
.de-visual-summary-card:focus-visible{
  transform:translateY(-1px);
  border-color:var(--de-gold);
  outline:none;
  box-shadow:0 10px 26px rgb(61 9 23 / .08);
}
.de-visual-summary-card__thumb{
  display:grid;
  min-height:138px;
  place-items:center;
  overflow:hidden;
  border-radius:11px;
  background:#fffdf8;
}
.de-visual-summary-card__thumb img{
  display:block;
  width:100%;
  height:150px;
  object-fit:contain;
}
.de-visual-summary-card__copy{
  display:block;
  min-width:0;
}
.de-visual-summary-card__copy small{
  display:block;
  color:var(--de-gold);
  font-size:.7rem;
  font-weight:850;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.de-visual-summary-card__copy strong{
  display:block;
  margin-top:5px;
  color:var(--de-burgundy);
  font-size:clamp(1.15rem,2vw,1.55rem);
  line-height:1.2;
}
.de-visual-summary-card__copy>span{
  display:block;
  max-width:760px;
  margin-top:6px;
  color:var(--de-muted);
  font-size:.9rem;
  line-height:1.45;
}
.de-visual-summary-card__copy b{
  display:inline-block;
  margin-top:10px;
  color:var(--de-burgundy);
  font-size:.88rem;
}
.de-visual-summary-card + .dm-nav{
  margin-top:14px;
}

@media(max-width:700px){
  .de-visual-summary-card{
    grid-template-columns:1fr;
    gap:12px;
  }
  .de-visual-summary-card__thumb img{
    height:auto;
    max-height:220px;
  }
}

/* Global legacy single-post adapter.
   The content's legacy structure remains intact, but the Theme owns the outer
   article presentation, typography, palette, Visual Summary and sticky nav. */
body.de-custom-article .de-legacy-article-root,
body.de-custom-article .de-legacy-article-root *:not(svg):not(path){
  font-family:var(--de-font)!important;
}
body.de-custom-article .de-legacy-article-root{
  background:var(--de-canvas)!important;
  color:var(--de-ink)!important;
}
body.de-custom-article .de-legacy-article-root .de-article-hero{
  background:
    radial-gradient(circle at 86% 14%,rgb(199 146 69 / .18),transparent 25%),
    linear-gradient(145deg,var(--de-deep),var(--de-burgundy))!important;
  border-color:rgb(231 201 145 / .26)!important;
  box-shadow:0 18px 48px rgb(61 9 23 / .18)!important;
}
body.de-custom-article .de-article-nav{
  position:sticky!important;
  top:56px!important;
  z-index:110!important;
  background:rgb(255 250 243 / .98)!important;
  border-color:var(--de-soft-gold)!important;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 4px 14px rgb(61 9 23 / .06)!important;
}
body.admin-bar.de-custom-article .de-article-nav{
  top:88px!important;
}
body.de-custom-article .de-article-nav a{
  color:var(--de-burgundy)!important;
  transition:background-color .16s ease,color .16s ease,box-shadow .16s ease;
}
body.de-custom-article .de-article-nav a:hover,
body.de-custom-article .de-article-nav a:focus,
body.de-custom-article .de-article-nav a:focus-visible{
  background:var(--de-soft-gold)!important;
  color:var(--de-deep)!important;
  -webkit-text-fill-color:var(--de-deep)!important;
  outline:none;
  box-shadow:0 0 0 2px rgb(91 16 34 / .10);
}
body.de-custom-article .de-legacy-article-root table th{
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
}
body.de-custom-article .de-legacy-article-root table td{
  color:var(--de-ink)!important;
  -webkit-text-fill-color:var(--de-ink)!important;
}
body.de-custom-article .de-legacy-article-root a{
  text-underline-offset:3px;
}
body.de-custom-article .de-legacy-article-root details{
  border-color:var(--de-line)!important;
}
body.de-custom-article .de-legacy-article-root [id]{
  scroll-margin-top:122px;
}
body.admin-bar.de-custom-article .de-legacy-article-root [id]{
  scroll-margin-top:154px;
}

@media(max-width:782px){
  body.admin-bar.de-custom-article .de-article-nav{
    top:102px!important;
  }
  body.de-custom-article .de-legacy-article-root [id]{
    scroll-margin-top:122px;
  }
  body.admin-bar.de-custom-article .de-legacy-article-root [id]{
    scroll-margin-top:168px;
  }
}

/* Theme-owned compatibility layer for legacy article component families.
   Old page-level CSS is intentionally skipped; semantic suffixes are mapped
   to these stable Theme classes at render time. */

body.de-custom-article .de-legacy-article-root{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:20px clamp(16px,3vw,48px) 72px!important;
  background:var(--de-canvas)!important;
  color:var(--de-ink)!important;
  overflow-x:clip;
  font-size:clamp(1rem,1.1vw,1.125rem);
  line-height:1.72;
}

body.de-custom-article .de-legacy-hero{
  position:relative;
  overflow:hidden;
  width:100%;
  padding:clamp(46px,6vw,84px) clamp(26px,5vw,78px)!important;
  border:1px solid rgb(231 201 145 / .26);
  border-radius:24px!important;
  background:
    radial-gradient(circle at 86% 14%,rgb(199 146 69 / .18),transparent 25%),
    linear-gradient(145deg,var(--de-deep),var(--de-burgundy))!important;
  box-shadow:0 18px 48px rgb(61 9 23 / .18)!important;
}
body.de-custom-article .de-legacy-hero::after{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  right:-130px;
  top:-170px;
  border-radius:50%;
  background:rgb(199 146 69 / .13);
  pointer-events:none;
}
body.de-custom-article .de-legacy-eyebrow{
  position:relative;
  z-index:1;
  color:var(--de-soft-gold)!important;
  -webkit-text-fill-color:var(--de-soft-gold)!important;
  font-size:.78rem!important;
  font-weight:850!important;
  letter-spacing:.14em!important;
  text-transform:uppercase;
}
body.de-custom-article .de-legacy-title{
  position:relative;
  z-index:1;
  max-width:1280px;
  margin:.35rem 0 1rem!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:clamp(2.35rem,5.3vw,5.1rem)!important;
  font-weight:800!important;
  line-height:1.04!important;
  letter-spacing:-.035em;
}
body.de-custom-article .de-legacy-subtitle{
  position:relative;
  z-index:1;
  max-width:1100px;
  margin:.4rem 0!important;
  color:#f3e2d2!important;
  -webkit-text-fill-color:#f3e2d2!important;
  font-size:clamp(1.05rem,1.5vw,1.28rem)!important;
}
body.de-custom-article .de-legacy-badges{
  position:relative;
  z-index:1;
  display:flex!important;
  flex-wrap:wrap;
  gap:8px!important;
  margin-top:22px!important;
}
body.de-custom-article .de-legacy-badge{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 11px!important;
  border:1px solid rgb(231 201 145 / .38)!important;
  border-radius:999px!important;
  background:rgb(255 255 255 / .06)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:.78rem!important;
  font-weight:720!important;
}

/* Existing legacy navigation becomes the same sticky internal-nav language. */
body.de-custom-article .de-legacy-nav{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:7px!important;
  width:100%;
  margin:16px 0 28px!important;
  padding:12px!important;
  overflow-x:auto!important;
  border:1px solid var(--de-line)!important;
  border-radius:14px!important;
  background:rgb(255 250 243 / .98)!important;
  scrollbar-width:none;
}
body.de-custom-article .de-legacy-nav::-webkit-scrollbar{display:none}
body.de-custom-article .de-legacy-nav a{
  flex:0 0 auto;
  padding:7px 10px!important;
  border-radius:999px!important;
  background:var(--de-warm)!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:.82rem!important;
  font-weight:800!important;
  line-height:1.25;
  text-decoration:none!important;
  white-space:nowrap;
}

/* Summary cards */
body.de-custom-article .de-legacy-core{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px!important;
  margin:28px 0!important;
}
body.de-custom-article .de-legacy-core-card{
  padding:20px!important;
  border:1px solid var(--de-line)!important;
  border-radius:16px!important;
  background:var(--de-surface)!important;
  box-shadow:0 7px 22px rgb(61 9 23 / .045);
}
body.de-custom-article .de-legacy-core-card strong{
  display:block;
  margin-bottom:5px;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:1.06rem;
}
body.de-custom-article .de-legacy-core-card span{
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
}

/* Flow / teaching-sequence callout */
body.de-custom-article .de-legacy-flow{
  margin:28px 0!important;
  padding:22px 24px!important;
  border:1px solid rgb(199 146 69 / .28)!important;
  border-left:6px solid var(--de-gold)!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,var(--de-surface),var(--de-warm))!important;
}
body.de-custom-article .de-legacy-flow-title{
  margin-bottom:10px!important;
  color:var(--de-gold)!important;
  -webkit-text-fill-color:var(--de-gold)!important;
  font-size:.76rem!important;
  font-weight:850!important;
  letter-spacing:.11em!important;
  text-transform:uppercase;
}
body.de-custom-article .de-legacy-flow-line{
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1rem,1.8vw,1.3rem)!important;
  font-weight:780!important;
  line-height:1.5!important;
}

/* Accordions */
body.de-custom-article .de-legacy-accordion{
  margin:20px 0!important;
  overflow:hidden;
  border:1px solid var(--de-line)!important;
  border-radius:18px!important;
  background:var(--de-surface)!important;
  box-shadow:0 8px 24px rgb(61 9 23 / .045);
}
body.de-custom-article .de-legacy-accordion>summary{
  position:relative;
  display:block;
  padding:22px 58px 22px 24px!important;
  cursor:pointer;
  list-style:none;
  background:linear-gradient(135deg,var(--de-surface),var(--de-warm))!important;
}
body.de-custom-article .de-legacy-accordion>summary::-webkit-details-marker{display:none}
body.de-custom-article .de-legacy-accordion>summary::after{
  position:absolute;
  top:50%;
  right:22px;
  content:"+";
  transform:translateY(-50%);
  color:var(--de-burgundy);
  font-size:1.4rem;
  font-weight:700;
}
body.de-custom-article .de-legacy-accordion[open]>summary::after{content:"−"}
body.de-custom-article .de-legacy-section-kicker{
  display:block;
  margin-bottom:4px;
  color:var(--de-gold)!important;
  -webkit-text-fill-color:var(--de-gold)!important;
  font-size:.72rem!important;
  font-weight:850!important;
  letter-spacing:.11em!important;
  text-transform:uppercase;
}
body.de-custom-article .de-legacy-section-title{
  display:block;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1.45rem,2.7vw,2.45rem)!important;
  font-weight:800!important;
  line-height:1.14!important;
}
body.de-custom-article .de-legacy-content{
  padding:10px 26px 30px!important;
}
body.de-custom-article .de-legacy-copy{
  margin:1rem 0!important;
  color:var(--de-ink)!important;
  -webkit-text-fill-color:var(--de-ink)!important;
  font-size:1rem!important;
  line-height:1.72!important;
}
body.de-custom-article .de-legacy-copy strong{
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
}
body.de-custom-article .de-legacy-copy em{
  color:#5b2433!important;
  -webkit-text-fill-color:#5b2433!important;
}
body.de-custom-article .de-legacy-copy mark{
  display:block;
  margin:18px 0;
  padding:16px 18px;
  border-left:4px solid var(--de-gold);
  border-radius:10px;
  background:var(--de-warm)!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
}

/* Tables */
body.de-custom-article .de-legacy-table-wrap{
  width:100%;
  margin:20px 0!important;
  overflow-x:auto!important;
  border:1px solid var(--de-line)!important;
  border-radius:14px!important;
  background:var(--de-surface)!important;
}
body.de-custom-article .de-legacy-table{
  width:100%!important;
  min-width:720px;
  border-collapse:collapse!important;
  background:var(--de-surface)!important;
}
body.de-custom-article .de-legacy-table th{
  padding:13px 14px!important;
  border:1px solid var(--de-line)!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  text-align:left;
  vertical-align:top;
}
body.de-custom-article .de-legacy-table td{
  padding:13px 14px!important;
  border:1px solid var(--de-line)!important;
  color:var(--de-ink)!important;
  -webkit-text-fill-color:var(--de-ink)!important;
  vertical-align:top;
}
body.de-custom-article .de-legacy-table tr:nth-child(even) td{
  background:#fffaf3!important;
}

/* Strong doctrinal callout + conclusion */
body.de-custom-article .de-legacy-callout{
  margin:28px 0!important;
  padding:26px!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,var(--de-deep),var(--de-burgundy))!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
}
body.de-custom-article .de-legacy-callout *{
  color:inherit!important;
  -webkit-text-fill-color:inherit!important;
}
body.de-custom-article .de-legacy-callout strong,
body.de-custom-article .de-legacy-callout em{
  color:var(--de-soft-gold)!important;
  -webkit-text-fill-color:var(--de-soft-gold)!important;
}
body.de-custom-article .de-legacy-end{
  margin-top:28px!important;
  padding:28px!important;
  border:1px solid var(--de-line)!important;
  border-radius:18px!important;
  background:var(--de-surface)!important;
}
body.de-custom-article .de-legacy-end-title{
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1.45rem,2.5vw,2.25rem)!important;
  font-weight:800!important;
  line-height:1.15!important;
}

@media(max-width:900px){
  body.de-custom-article .de-legacy-core{
    grid-template-columns:1fr!important;
  }
  body.de-custom-article .de-legacy-content{
    padding:8px 18px 24px!important;
  }
}
@media(max-width:560px){
  body.de-custom-article .de-legacy-article-root{
    padding-left:14px!important;
    padding-right:14px!important;
  }
  body.de-custom-article .de-legacy-hero{
    border-radius:18px!important;
    padding:36px 22px!important;
  }
  body.de-custom-article .de-legacy-title{
    font-size:2.1rem!important;
  }
}

/* Legacy long-form reading rhythm.
   Match the Theme's approved article typography instead of the old compact 16px copy. */
body.de-custom-article .de-legacy-content{
  padding:14px clamp(22px,2.5vw,38px) 34px!important;
}
body.de-custom-article .de-legacy-copy{
  margin:1.15rem 0!important;
  font-size:clamp(1.0625rem,1.2vw,1.1875rem)!important;
  line-height:1.78!important;
  letter-spacing:.002em;
}
body.de-custom-article .de-legacy-copy + .de-legacy-copy{
  margin-top:1.35rem!important;
}
body.de-custom-article .de-legacy-accordion>summary{
  padding-top:25px!important;
  padding-bottom:25px!important;
}
body.de-custom-article .de-legacy-section-title{
  line-height:1.18!important;
}
body.de-custom-article .de-legacy-table td,
body.de-custom-article .de-legacy-table th{
  font-size:clamp(.94rem,1vw,1.04rem);
  line-height:1.55;
}
body.de-custom-article .de-legacy-core-card span,
body.de-custom-article .de-legacy-end .de-legacy-copy{
  line-height:1.65!important;
}
@media(max-width:700px){
  body.de-custom-article .de-legacy-content{
    padding:10px 18px 26px!important;
  }
  body.de-custom-article .de-legacy-copy{
    font-size:1.0625rem!important;
    line-height:1.72!important;
  }
}


/* RC2.22 — Generic semantic legacy adapter.
   Legacy articles used many page-specific prefixes (mn28-*, mn38-*, cu-*,
   de6-* and others) for the same recurring components. PHP now maps those
   suffixes onto these Theme-owned semantic roles. This block intentionally
   excludes ap-page because that family has a proven dedicated adapter below. */

body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-inner{
  width:min(100%,1380px)!important;
  max-width:1380px!important;
  margin-inline:auto!important;
}

/* Hero details not covered by the original first-generation adapter. */
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-hero .de-legacy-lead,
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-hero .de-legacy-ref{
  position:relative;
  z-index:1;
  max-width:1120px!important;
  color:#f3e2d2!important;
  -webkit-text-fill-color:#f3e2d2!important;
  font-size:clamp(1.05rem,1.4vw,1.24rem)!important;
  line-height:1.7!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-ref{
  margin-top:18px!important;
  padding-top:14px!important;
  border-top:1px solid rgb(231 201 145 / .28)!important;
  font-size:.9rem!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-quote{
  position:relative;
  z-index:1;
  max-width:1060px!important;
  margin-top:24px!important;
  padding:16px 18px!important;
  border-left:4px solid var(--de-gold)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:clamp(1rem,1.2vw,1.14rem)!important;
  font-style:italic!important;
  line-height:1.72!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-badges>*{
  display:inline-flex!important;
  align-items:center!important;
  min-height:34px!important;
  padding:6px 11px!important;
  border:1px solid rgb(231 201 145 / .38)!important;
  border-radius:999px!important;
  background:rgb(255 255 255 / .06)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:.78rem!important;
  font-weight:720!important;
}

/* Expand/collapse controls. */
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-toolbar{
  display:flex!important;
  justify-content:center!important;
  gap:8px!important;
  width:100%!important;
  margin:0 0 18px!important;
  padding:12px 16px!important;
  overflow-x:auto!important;
  border:1px solid var(--de-line)!important;
  border-top:0!important;
  border-radius:0 0 14px 14px!important;
  background:var(--de-warm)!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-toolbar button{
  flex:0 0 auto!important;
  min-height:42px!important;
  padding:8px 14px!important;
  border:1px solid rgb(199 146 69 / .46)!important;
  border-radius:999px!important;
  background:var(--de-surface)!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font:800 .86rem/1.2 var(--de-font)!important;
  cursor:pointer!important;
  white-space:nowrap!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-toolbar button:hover,
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-toolbar button:focus-visible{
  background:var(--de-soft-gold)!important;
  color:var(--de-deep)!important;
  -webkit-text-fill-color:var(--de-deep)!important;
  outline:none!important;
}

/* Section grammar. */
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-section,
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-study{
  width:100%!important;
  margin:0!important;
  padding:clamp(44px,5vw,72px) clamp(20px,3.5vw,52px)!important;
  border-bottom:1px solid var(--de-line)!important;
  background:var(--de-canvas)!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-section.de-legacy-warm,
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-study{
  background:var(--de-warm)!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-section.de-legacy-alt{
  background:var(--de-surface)!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-eyebrow{
  color:var(--de-gold)!important;
  -webkit-text-fill-color:var(--de-gold)!important;
  font-size:.76rem!important;
  font-weight:850!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-hero .de-legacy-eyebrow{
  color:var(--de-soft-gold)!important;
  -webkit-text-fill-color:var(--de-soft-gold)!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-section-title{
  max-width:1180px!important;
  margin:5px 0 18px!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1.9rem,3.2vw,3rem)!important;
  font-weight:800!important;
  line-height:1.14!important;
  letter-spacing:-.025em!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-lead{
  max-width:1160px!important;
  margin:0 0 26px!important;
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
  font-size:clamp(1.0625rem,1.16vw,1.1875rem)!important;
  line-height:1.78!important;
}

/* Generic responsive card grids. */
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;
  gap:14px!important;
  width:100%!important;
  margin:24px 0!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-grid>:where(div,section,article),
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-card{
  min-width:0!important;
  padding:19px!important;
  border:1px solid var(--de-line)!important;
  border-top:4px solid var(--de-gold)!important;
  border-radius:14px!important;
  background:var(--de-surface)!important;
  box-shadow:0 6px 18px rgb(61 9 23 / .035)!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-grid strong,
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-card strong{
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-grid small,
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-grid span,
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-card small,
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-card span{
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
  line-height:1.55!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-panel{
  margin:24px 0!important;
  padding:22px!important;
  border:1px solid var(--de-line)!important;
  border-radius:16px!important;
  background:var(--de-surface)!important;
}

/* Horizontal doctrinal sequences become scrollable rather than compressed. */
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-sequence{
  display:flex!important;
  align-items:stretch!important;
  gap:9px!important;
  width:100%!important;
  margin:26px 0!important;
  padding:4px 0 10px!important;
  overflow-x:auto!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-sequence>div{
  flex:1 0 205px!important;
  min-width:205px!important;
  padding:18px!important;
  border:1px solid var(--de-line)!important;
  border-radius:14px!important;
  background:var(--de-surface)!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-sequence>div strong{
  display:block!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-sequence>div span{
  display:block!important;
  margin-top:5px!important;
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
  line-height:1.5!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-sequence>b,
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-sequence-arrow{
  align-self:center!important;
  flex:0 0 auto!important;
  padding:0 2px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--de-gold)!important;
  -webkit-text-fill-color:var(--de-gold)!important;
  font-size:1.45rem!important;
  font-weight:850!important;
  text-align:center!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-contrast{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  gap:16px!important;
  align-items:center!important;
  margin:24px 0!important;
  padding:22px!important;
  border:1px solid var(--de-line)!important;
  border-radius:16px!important;
  background:var(--de-surface)!important;
}

/* Accordions from detail/module families. */
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-accordion-list{
  display:grid!important;
  gap:13px!important;
  width:100%!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-num{
  display:grid!important;
  flex:0 0 42px!important;
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  place-items:center!important;
  padding:0!important;
  border:2px solid var(--de-gold)!important;
  border-radius:50%!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:.78rem!important;
  font-weight:900!important;
  font-variant-numeric:tabular-nums!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-accordion>summary{
  display:flex!important;
  align-items:flex-start!important;
  gap:14px!important;
  padding:21px 56px 21px 20px!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-summary-copy{
  display:block!important;
  min-width:0!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-accordion-title{
  display:block!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1.16rem,1.42vw,1.4rem)!important;
  font-weight:800!important;
  line-height:1.35!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-accordion-subtitle{
  display:block!important;
  margin-top:4px!important;
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
  font-size:.94rem!important;
  line-height:1.5!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-accordion-body{
  padding:clamp(22px,3vw,38px)!important;
  background:var(--de-surface)!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-accordion-body .de-legacy-content{
  padding:0!important;
}

/* Long-form Pali / translation / explanatory prose. */
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-pali-box,
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-translation-box,
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-note{
  margin:14px 0 18px!important;
  padding:18px 20px!important;
  border-radius:12px!important;
  font-size:clamp(1.04rem,1.1vw,1.16rem)!important;
  line-height:1.76!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-pali-box{
  border:1px solid rgb(199 146 69 / .38)!important;
  border-left:5px solid var(--de-gold)!important;
  background:#fff7e8!important;
  color:#4a3827!important;
  -webkit-text-fill-color:#4a3827!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-translation-box{
  border:1px solid #cfdde4!important;
  border-left:5px solid #315c73!important;
  background:#f3f8fb!important;
  color:#263f54!important;
  -webkit-text-fill-color:#263f54!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-note{
  border:1px solid rgb(199 146 69 / .38)!important;
  border-left:5px solid var(--de-gold)!important;
  background:#fffaf0!important;
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-box-label{
  margin-bottom:7px!important;
  color:var(--de-gold)!important;
  -webkit-text-fill-color:var(--de-gold)!important;
  font-size:.76rem!important;
  font-weight:850!important;
  letter-spacing:.1em!important;
  text-transform:uppercase!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-parthead{
  margin:28px 0 18px!important;
  padding:13px 15px!important;
  border-left:5px solid var(--de-gold)!important;
  border-radius:8px!important;
  background:var(--de-warm)!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1.38rem,2.1vw,1.95rem)!important;
  line-height:1.35!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-subhead{
  margin:28px 0 10px!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1.28rem,1.8vw,1.7rem)!important;
  line-height:1.35!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-local-subtitle{
  margin:18px 0 10px!important;
  padding:10px 14px!important;
  border-left:4px solid var(--de-gold)!important;
  border-radius:7px!important;
  background:var(--de-surface)!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1.04rem,1.22vw,1.18rem)!important;
  font-weight:800!important;
  line-height:1.45!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-minorhead,
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-example-head{
  margin:21px 0 8px!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:1.07rem!important;
  line-height:1.4!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-example-head{
  padding:9px 12px!important;
  border-left:4px solid var(--de-gold)!important;
  border-radius:7px!important;
  background:#fff8e8!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-rule{
  margin:24px 0!important;
  border-top:1px solid var(--de-line)!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-audio{
  margin:22px 0!important;
  padding:16px!important;
  border:1px solid var(--de-line)!important;
  border-radius:14px!important;
  background:var(--de-surface)!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-audio audio{
  display:block!important;
  width:100%!important;
}

/* Responsive tables regardless of whether the old family supplied a wrapper. */
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-table-wrap{
  width:100%!important;
  margin:22px 0 30px!important;
  overflow-x:auto!important;
  border:1px solid var(--de-line)!important;
  border-radius:14px!important;
  background:var(--de-surface)!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-table-wrap table,
body.de-custom-article .de-legacy-article-root:not(.ap-page) table.de-legacy-table{
  width:100%!important;
  min-width:720px!important;
  border-collapse:collapse!important;
}

/* Final doctrinal panels and end notes. */
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-final{
  padding:clamp(26px,4vw,42px)!important;
  border:1px solid var(--de-burgundy)!important;
  border-radius:16px!important;
  background:linear-gradient(145deg,var(--de-deep),var(--de-burgundy))!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-final *{
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-final strong,
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-final h2,
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-final h3{
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-footer{
  padding:26px 20px 38px!important;
  color:var(--de-muted);
  -webkit-text-fill-color:var(--de-muted);
  font-size:.92rem!important;
  line-height:1.6!important;
  text-align:center!important;
}

@media(max-width:760px){
  body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-toolbar{
    justify-content:flex-start!important;
  }
  body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-section,
  body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-study{
    padding:36px 14px!important;
  }
  body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-contrast{
    grid-template-columns:1fr!important;
  }
  body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-sequence-arrow{
    transform:rotate(90deg)!important;
  }
  body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-accordion>summary{
    padding:17px 48px 17px 14px!important;
  }
  body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-accordion-body{
    padding:21px 15px!important;
  }
}

/* Legacy family adapter: ap-* (MN 118 generation)
   The page-level legacy <style> is skipped at render time; this Theme layer
   restores layout, hierarchy, colour, responsive behaviour and reading rhythm. */

body.de-custom-article .ap-page{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  background:var(--de-canvas)!important;
  color:var(--de-ink)!important;
  font-family:var(--de-font)!important;
  line-height:1.76!important;
  overflow-x:clip!important;
}
body.de-custom-article .ap-page *,
body.de-custom-article .ap-page *:not(svg):not(path){
  box-sizing:border-box;
  font-family:var(--de-font)!important;
}
body.de-custom-article .ap-inner{
  width:min(calc(100% - 36px),1380px)!important;
  max-width:1380px!important;
  margin-inline:auto!important;
}

/* Hero */
body.de-custom-article .ap-hero{
  padding:clamp(54px,6vw,90px) clamp(20px,4vw,56px)!important;
}
body.de-custom-article .ap-kicker{
  color:var(--de-soft-gold)!important;
  -webkit-text-fill-color:var(--de-soft-gold)!important;
  font-size:.78rem!important;
  font-weight:850!important;
  letter-spacing:.13em!important;
  text-transform:uppercase!important;
}
body.de-custom-article .ap-title{
  max-width:1200px!important;
  margin:10px 0 0!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:clamp(2.5rem,5.2vw,4.9rem)!important;
  font-weight:800!important;
  line-height:1.03!important;
  letter-spacing:-.04em!important;
}
body.de-custom-article .ap-sub{
  max-width:1080px!important;
  margin-top:18px!important;
  color:#f3e2d2!important;
  -webkit-text-fill-color:#f3e2d2!important;
  font-size:clamp(1.08rem,1.5vw,1.28rem)!important;
  line-height:1.7!important;
}
body.de-custom-article .ap-quote{
  max-width:1040px!important;
  margin-top:24px!important;
  padding:16px 18px!important;
  border-left:4px solid var(--de-gold)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:clamp(1rem,1.2vw,1.14rem)!important;
  line-height:1.72!important;
}

/* Internal nav and toolbar */
body.de-custom-article .ap-nav{
  margin:14px 0 0!important;
}
body.de-custom-article .ap-toolbar{
  display:flex!important;
  justify-content:center!important;
  gap:8px!important;
  padding:12px 18px!important;
  border-bottom:1px solid var(--de-line)!important;
  background:var(--de-warm)!important;
}
body.de-custom-article .ap-toolbar button{
  min-height:42px;
  padding:8px 14px!important;
  border:1px solid rgb(199 146 69 / .48)!important;
  border-radius:999px!important;
  background:var(--de-surface)!important;
  color:var(--de-burgundy)!important;
  font-size:.86rem!important;
  font-weight:800!important;
  cursor:pointer;
}
body.de-custom-article .ap-toolbar button:hover,
body.de-custom-article .ap-toolbar button:focus-visible{
  background:var(--de-soft-gold)!important;
  color:var(--de-deep)!important;
  outline:none;
}

/* Sections */
body.de-custom-article .ap-section{
  padding:clamp(50px,6vw,78px) clamp(18px,3vw,42px)!important;
  border-bottom:1px solid var(--de-line)!important;
  background:var(--de-canvas)!important;
}
body.de-custom-article .ap-section.ap-warm{
  background:var(--de-warm)!important;
}
body.de-custom-article .ap-section.ap-alt{
  background:var(--de-surface)!important;
}
body.de-custom-article .ap-eye{
  color:var(--de-gold)!important;
  -webkit-text-fill-color:var(--de-gold)!important;
  font-size:.75rem!important;
  font-weight:850!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
body.de-custom-article .ap-heading{
  max-width:1100px!important;
  margin:5px 0 18px!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1.95rem,3.3vw,3.05rem)!important;
  font-weight:800!important;
  line-height:1.12!important;
  letter-spacing:-.025em!important;
}
body.de-custom-article .ap-lead{
  max-width:1120px!important;
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
  font-size:clamp(1.0625rem,1.15vw,1.1875rem)!important;
  line-height:1.78!important;
}

/* Audio */
body.de-custom-article .ap-audio{
  margin-top:22px!important;
  padding:16px!important;
  border:1px solid var(--de-line)!important;
  border-radius:14px!important;
  background:var(--de-surface)!important;
}
body.de-custom-article .ap-audio audio{
  width:100%!important;
}

/* Four tetrads / cards */
body.de-custom-article .ap-tetrad-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}
body.de-custom-article .ap-tetrad{
  padding:20px!important;
  border:1px solid var(--de-line)!important;
  border-top:4px solid var(--de-gold)!important;
  border-radius:14px!important;
  background:var(--de-surface)!important;
  box-shadow:0 6px 18px rgb(61 9 23 / .035);
}
body.de-custom-article .ap-tlabel{
  color:var(--de-gold)!important;
  -webkit-text-fill-color:var(--de-gold)!important;
  font-size:.72rem!important;
  font-weight:850!important;
  letter-spacing:.08em!important;
}
body.de-custom-article .ap-tetrad strong{
  display:block!important;
  margin:7px 0 9px!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:1.08rem!important;
}
body.de-custom-article .ap-tetrad span{
  display:block!important;
  padding:4px 0!important;
  color:var(--de-ink)!important;
  -webkit-text-fill-color:var(--de-ink)!important;
  font-size:.94rem!important;
  line-height:1.48!important;
}
body.de-custom-article .ap-tetrad small{
  display:block!important;
  margin-top:10px!important;
  padding-top:10px!important;
  border-top:1px solid var(--de-line)!important;
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
  font-size:.88rem!important;
  line-height:1.5!important;
}
body.de-custom-article .ap-tetrad-final{
  background:linear-gradient(145deg,var(--de-deep),var(--de-burgundy))!important;
  border-color:var(--de-burgundy)!important;
}
body.de-custom-article .ap-tetrad-final *,
body.de-custom-article .ap-tetrad-final span,
body.de-custom-article .ap-tetrad-final strong,
body.de-custom-article .ap-tetrad-final small{
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
}
body.de-custom-article .ap-tetrad-final .ap-tlabel{
  color:var(--de-soft-gold)!important;
  -webkit-text-fill-color:var(--de-soft-gold)!important;
}

/* Connected sequence */
body.de-custom-article .ap-chain,
body.de-custom-article .ap-seq{
  display:flex!important;
  align-items:stretch!important;
  gap:9px!important;
  overflow-x:auto!important;
  padding-bottom:4px;
}
body.de-custom-article .ap-chain>div{
  flex:1 0 220px!important;
  padding:20px!important;
  border:1px solid var(--de-line)!important;
  border-radius:14px!important;
  background:var(--de-surface)!important;
}
body.de-custom-article .ap-chain>div.ap-chain-final{
  background:linear-gradient(145deg,var(--de-deep),var(--de-burgundy))!important;
  border-color:var(--de-burgundy)!important;
}
body.de-custom-article .ap-chain strong{
  display:block!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:1.04rem!important;
}
body.de-custom-article .ap-chain span{
  display:block!important;
  margin-top:5px!important;
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
  font-size:.9rem!important;
  line-height:1.45!important;
}
body.de-custom-article .ap-chain-final strong,
body.de-custom-article .ap-chain-final span{
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
}
body.de-custom-article .ap-chain>b{
  align-self:center!important;
  color:var(--de-gold)!important;
  font-size:1.4rem!important;
}

/* Bojjhanga and support cards */
body.de-custom-article .ap-boj-grid{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:9px!important;
}
body.de-custom-article .ap-boj-grid>div,
body.de-custom-article .ap-support-grid>div{
  padding:16px!important;
  border:1px solid var(--de-line)!important;
  border-radius:13px!important;
  background:var(--de-surface)!important;
}
body.de-custom-article .ap-boj-grid>div{
  border-top:4px solid var(--de-gold)!important;
}
body.de-custom-article .ap-boj-grid>div>span{
  display:inline-grid!important;
  min-width:30px;
  min-height:30px;
  place-items:center;
  padding:3px 7px!important;
  border-radius:999px!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:.78rem!important;
  font-weight:850!important;
}
body.de-custom-article .ap-boj-grid strong,
body.de-custom-article .ap-support-grid strong{
  display:block!important;
  margin-top:7px!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:.98rem!important;
  line-height:1.3!important;
}
body.de-custom-article .ap-boj-grid small,
body.de-custom-article .ap-support-grid span{
  display:block!important;
  margin-top:5px!important;
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
  font-size:.86rem!important;
  line-height:1.42!important;
}
body.de-custom-article .ap-boj-final,
body.de-custom-article .ap-support-final{
  background:linear-gradient(145deg,var(--de-deep),var(--de-burgundy))!important;
  border-color:var(--de-burgundy)!important;
}
body.de-custom-article .ap-boj-final strong,
body.de-custom-article .ap-boj-final small,
body.de-custom-article .ap-support-final strong,
body.de-custom-article .ap-support-final span{
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
}
body.de-custom-article .ap-boj-final>span{
  background:var(--de-soft-gold)!important;
  color:var(--de-deep)!important;
  -webkit-text-fill-color:var(--de-deep)!important;
}
body.de-custom-article .ap-support-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
body.de-custom-article .ap-support-grid>div{
  border-left:4px solid var(--de-gold)!important;
}

/* Notes and callouts */
body.de-custom-article .ap-note{
  margin-top:24px!important;
  padding:18px 20px!important;
  border:1px solid rgb(199 146 69 / .38)!important;
  border-left:5px solid var(--de-gold)!important;
  border-radius:12px!important;
  background:#fffaf0!important;
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
  font-size:clamp(1.02rem,1.06vw,1.12rem)!important;
  line-height:1.72!important;
}
body.de-custom-article .ap-note strong{
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
}

/* Deep-dive accordion system */
body.de-custom-article .ap-detail-list{
  display:grid!important;
  gap:13px!important;
}
body.de-custom-article .ap-detail{
  overflow:hidden!important;
  border:1px solid var(--de-line)!important;
  border-radius:15px!important;
  background:var(--de-surface)!important;
  box-shadow:0 6px 18px rgb(61 9 23 / .03);
}
body.de-custom-article .ap-detail>summary{
  display:flex!important;
  align-items:flex-start!important;
  gap:14px!important;
  padding:20px 54px 20px 20px!important;
  cursor:pointer!important;
  list-style:none!important;
  position:relative;
  background:linear-gradient(135deg,var(--de-surface),var(--de-warm))!important;
}
body.de-custom-article .ap-detail>summary::-webkit-details-marker{
  display:none!important;
}
body.de-custom-article .ap-detail>summary::after{
  position:absolute;
  right:20px;
  top:50%;
  content:"+";
  transform:translateY(-50%);
  color:var(--de-burgundy)!important;
  font-size:1.4rem!important;
  font-weight:700!important;
}
body.de-custom-article .ap-detail[open]>summary::after{
  content:"−";
}
body.de-custom-article .ap-num{
  display:grid!important;
  flex:0 0 42px;
  min-width:42px!important;
  height:42px;
  place-items:center;
  padding:0!important;
  border:2px solid var(--de-gold)!important;
  border-radius:50%!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:.78rem!important;
  font-weight:900!important;
}
body.de-custom-article .ap-scopy{
  display:block!important;
  min-width:0;
}
body.de-custom-article .ap-dtitle{
  display:block!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1.15rem,1.45vw,1.4rem)!important;
  font-weight:800!important;
  line-height:1.35!important;
}
body.de-custom-article .ap-dsub{
  display:block!important;
  margin-top:4px!important;
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
  font-size:.94rem!important;
  line-height:1.5!important;
}
body.de-custom-article .ap-dbody{
  padding:clamp(24px,3vw,38px)!important;
  background:var(--de-surface)!important;
}
body.de-custom-article .ap-reading{
  margin:0 0 1.3rem!important;
  color:var(--de-ink)!important;
  -webkit-text-fill-color:var(--de-ink)!important;
  font-size:clamp(1.0625rem,1.2vw,1.1875rem)!important;
  line-height:1.8!important;
  letter-spacing:.002em;
  overflow-wrap:anywhere!important;
}
body.de-custom-article .ap-reading strong,
body.de-custom-article .ap-reading b{
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
}
body.de-custom-article .ap-reading em{
  color:#5b2433!important;
  -webkit-text-fill-color:#5b2433!important;
}

/* Tables */
body.de-custom-article .ap-table-wrap{
  width:100%!important;
  margin:22px 0 30px!important;
  overflow-x:auto!important;
  border:1px solid var(--de-line)!important;
  border-radius:14px!important;
  background:var(--de-surface)!important;
}
body.de-custom-article .ap-table-wrap table{
  width:100%!important;
  min-width:760px!important;
  border-collapse:collapse!important;
}
body.de-custom-article .ap-table-wrap th,
body.de-custom-article .ap-table-wrap td{
  padding:13px 15px!important;
  border:1px solid var(--de-line)!important;
  text-align:left!important;
  vertical-align:top!important;
}
body.de-custom-article .ap-table-wrap th{
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:.98rem!important;
  font-weight:800!important;
  line-height:1.45!important;
}
body.de-custom-article .ap-table-wrap td{
  color:var(--de-ink)!important;
  -webkit-text-fill-color:var(--de-ink)!important;
  font-size:clamp(.94rem,1vw,1.04rem)!important;
  line-height:1.58!important;
}
body.de-custom-article .ap-table-wrap tbody tr:nth-child(even) td{
  background:#fffaf3!important;
}

/* Final message */
body.de-custom-article .ap-bigfinal{
  padding:clamp(26px,4vw,42px)!important;
  border-radius:16px!important;
  background:linear-gradient(145deg,var(--de-deep),var(--de-burgundy))!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
}
body.de-custom-article .ap-bigfinal strong{
  display:block!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:clamp(1.7rem,2.7vw,2.5rem)!important;
  line-height:1.22!important;
}
body.de-custom-article .ap-bigfinal span{
  display:block!important;
  margin-top:12px!important;
  color:#f3e2d2!important;
  -webkit-text-fill-color:#f3e2d2!important;
  font-size:clamp(1.05rem,1.2vw,1.18rem)!important;
  line-height:1.72!important;
}
body.de-custom-article .ap-footer{
  padding:26px 20px 38px!important;
  text-align:center!important;
  color:var(--de-muted)!important;
  font-size:.9rem!important;
}

/* Links */
body.de-custom-article .ap-page a{
  color:var(--de-burgundy)!important;
  text-underline-offset:3px!important;
}

/* Responsive */
@media(max-width:1200px){
  body.de-custom-article .ap-tetrad-grid,
  body.de-custom-article .ap-support-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.de-custom-article .ap-boj-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  body.de-custom-article .ap-inner{
    width:min(calc(100% - 28px),1380px)!important;
  }
  body.de-custom-article .ap-section{
    padding:38px 14px!important;
  }
  body.de-custom-article .ap-tetrad-grid,
  body.de-custom-article .ap-support-grid,
  body.de-custom-article .ap-boj-grid{
    grid-template-columns:1fr!important;
  }
  body.de-custom-article .ap-toolbar{
    justify-content:flex-start!important;
    overflow-x:auto!important;
  }
  body.de-custom-article .ap-reading{
    font-size:1.0625rem!important;
    line-height:1.74!important;
  }
  body.de-custom-article .ap-detail>summary{
    padding:17px 48px 17px 14px!important;
  }
  body.de-custom-article .ap-dbody{
    padding:21px 15px!important;
  }
}

/* RC2.23 — Generic legacy sticky-nav reading rhythm.
   Keep the already-approved de6-* and ap-* family navs untouched.
   New generic legacy families use a slimmer, calmer dm-nav-like treatment. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page):not(.de6-page)
.de-legacy-nav{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
  width:100%!important;
  min-height:54px!important;
  margin:0 0 24px!important;
  padding:7px clamp(10px,1.8vw,22px)!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  border:0!important;
  border-bottom:1px solid var(--de-line)!important;
  border-radius:0!important;
  background:rgb(255 250 243 / .98)!important;
  box-shadow:0 4px 14px rgb(61 9 23 / .06)!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
}

body.de-custom-article
.de-legacy-article-root:not(.ap-page):not(.de6-page)
.de-legacy-nav::-webkit-scrollbar{
  display:none!important;
}

body.de-custom-article
.de-legacy-article-root:not(.ap-page):not(.de6-page)
.de-legacy-nav a{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  min-height:36px!important;
  padding:7px 10px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(.86rem,.86vw,.95rem)!important;
  font-weight:700!important;
  line-height:1.2!important;
  letter-spacing:0!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}

body.de-custom-article
.de-legacy-article-root:not(.ap-page):not(.de6-page)
.de-legacy-nav a:hover,
body.de-custom-article
.de-legacy-article-root:not(.ap-page):not(.de6-page)
.de-legacy-nav a:focus,
body.de-custom-article
.de-legacy-article-root:not(.ap-page):not(.de6-page)
.de-legacy-nav a:focus-visible{
  background:var(--de-soft-gold)!important;
  color:var(--de-deep)!important;
  -webkit-text-fill-color:var(--de-deep)!important;
  outline:none!important;
  box-shadow:0 0 0 2px rgb(91 16 34 / .08)!important;
}

@media(max-width:900px){
  body.de-custom-article
  .de-legacy-article-root:not(.ap-page):not(.de6-page)
  .de-legacy-nav{
    justify-content:flex-start!important;
    min-height:50px!important;
    padding:6px 10px!important;
  }

  body.de-custom-article
  .de-legacy-article-root:not(.ap-page):not(.de6-page)
  .de-legacy-nav a{
    min-height:34px!important;
    padding:6px 9px!important;
    font-size:.86rem!important;
  }
}

/* RC2.24 — All legacy article heroes are full-width.
   The semantic adapter adds .de-article-hero to every detected legacy hero,
   so this applies across mn38-*, mn28-*, cu-*, de6-*, ap-* and other families.
   The stored post HTML is not changed. */
body.de-custom-article .de-legacy-article-root .de-article-hero{
  position:relative!important;
  left:50%!important;
  right:50%!important;
  width:100vw!important;
  max-width:none!important;
  margin-left:-50vw!important;
  margin-right:-50vw!important;
  border-left:0!important;
  border-right:0!important;
  border-radius:0!important;
}

/* Remove legacy family-specific rounding that could survive through !important. */
body.de-custom-article .de-legacy-article-root .de-article-hero.ap-hero,
body.de-custom-article .de-legacy-article-root .de-article-hero.de6-hero{
  border-radius:0!important;
}

/* Keep hero content comfortably aligned even though the background is full bleed. */
body.de-custom-article .de-legacy-article-root .de-article-hero > .de-legacy-inner,
body.de-custom-article .de-legacy-article-root .de-article-hero > [class$="-inner"]{
  width:min(calc(100% - 40px),1380px)!important;
  max-width:1380px!important;
  margin-inline:auto!important;
}

@media(max-width:760px){
  body.de-custom-article .de-legacy-article-root .de-article-hero > .de-legacy-inner,
  body.de-custom-article .de-legacy-article-root .de-article-hero > [class$="-inner"]{
    width:min(calc(100% - 28px),1380px)!important;
  }
}

/* RC2.25 — True full-bleed legacy heroes + relaxed generic sticky nav.
   RC2.24's 100vw breakout was being clipped by the legacy article root.
   Let the hero/nav breakout escape that root while each component clips its own
   decorative overflow. Stored post markup is unchanged. */

body.de-custom-article .de-legacy-article-root{
  overflow-x:visible!important;
}

/* True viewport-width hero, independent of the Theme/content wrapper padding. */
body.de-custom-article .de-legacy-article-root .de-article-hero{
  position:relative!important;
  left:50%!important;
  width:100vw!important;
  max-width:100vw!important;
  margin-left:-50vw!important;
  margin-right:0!important;
  overflow:hidden!important;
}

/* Generic legacy internal navigation also uses the available viewport width. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page):not(.de6-page)
.de-legacy-nav{
  position:sticky!important;
  left:50%!important;
  width:100vw!important;
  max-width:100vw!important;
  margin-left:-50vw!important;
  margin-right:0!important;
  padding-left:clamp(18px,3vw,54px)!important;
  padding-right:clamp(18px,3vw,54px)!important;
  justify-content:space-evenly!important;
  gap:10px!important;
}

/* Give each destination room to breathe rather than clustering all links. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page):not(.de6-page)
.de-legacy-nav a{
  flex:1 0 auto!important;
  justify-content:center!important;
  text-align:center!important;
  padding-left:12px!important;
  padding-right:12px!important;
}

/* On narrower screens, preserve usability with horizontal scrolling instead of
   squeezing labels into an unreadable row. */
@media(max-width:1100px){
  body.de-custom-article
  .de-legacy-article-root:not(.ap-page):not(.de6-page)
  .de-legacy-nav{
    justify-content:flex-start!important;
  }

  body.de-custom-article
  .de-legacy-article-root:not(.ap-page):not(.de6-page)
  .de-legacy-nav a{
    flex:0 0 auto!important;
  }
}

/* RC2.26 — Balance generic legacy sticky-nav inset.
   Keep the nav wide and evenly distributed, but leave ~20px breathing room
   on both viewport edges instead of touching the left edge or overshooting right. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page):not(.de6-page)
.de-legacy-nav{
  left:auto!important;
  width:calc(100vw - 40px)!important;
  max-width:calc(100vw - 40px)!important;
  margin-left:calc(50% - 50vw + 20px)!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}

@media(max-width:760px){
  body.de-custom-article
  .de-legacy-article-root:not(.ap-page):not(.de6-page)
  .de-legacy-nav{
    width:calc(100vw - 24px)!important;
    max-width:calc(100vw - 24px)!important;
    margin-left:calc(50% - 50vw + 12px)!important;
  }
}

/* RC2.27 — Generic grid-card semantics.
   Fixes legacy grids whose old CSS used block-level spans/strong/small and
   prevents nested "*-final" cards from becoming full article-final panels. */

/* Restore readable vertical hierarchy inside generic legacy cards. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-grid > :where(div,section,article) > strong{
  display:block!important;
  margin:7px 0 4px!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1.02rem,1.12vw,1.16rem)!important;
  font-weight:800!important;
  line-height:1.28!important;
}

body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-grid > :where(div,section,article) > small,
body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-grid > :where(div,section,article) > span{
  display:block!important;
  margin-top:4px!important;
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
  font-size:.94rem!important;
  line-height:1.5!important;
}

/* When a legacy card begins with a compact marker followed by its title,
   present that marker as a Theme badge. This covers numbered truth cards and
   also remains suitable for icon-led cards. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-grid > :where(div,section,article) > span:first-child:has(+ strong){
  display:inline-grid!important;
  width:auto!important;
  min-width:34px!important;
  min-height:34px!important;
  place-items:center!important;
  margin:0 0 5px!important;
  padding:4px 8px!important;
  border-radius:999px!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:.82rem!important;
  font-weight:850!important;
  line-height:1!important;
}

/* Nested "final" cards/steps are highlights within their grid or sequence,
   not article conclusions. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-highlight-card{
  border-color:var(--de-burgundy)!important;
  border-top-color:var(--de-burgundy)!important;
  background:linear-gradient(145deg,var(--de-deep),var(--de-burgundy))!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
}

body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-highlight-card strong,
body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-highlight-card small,
body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-highlight-card span{
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
}

body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-highlight-card > span:first-child:has(+ strong){
  background:var(--de-soft-gold)!important;
  color:var(--de-deep)!important;
  -webkit-text-fill-color:var(--de-deep)!important;
}

/* Sequence highlights keep the same spacing as ordinary sequence steps. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-sequence > .de-legacy-highlight-card{
  flex:1 0 220px!important;
  padding:20px!important;
  border-radius:14px!important;
}

/* RC2.28 — Card/local title semantics.
   Prevent generic "*-title" wrappers inside cards (for example cu-domain-title)
   from inheriting the giant article-hero title treatment. */

body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-card-title-group{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  margin:0 0 10px!important;
  padding:0!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:inherit!important;
  line-height:1.3!important;
  letter-spacing:0!important;
}

body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-card-title-group > span:first-child{
  display:inline-grid!important;
  flex:0 0 36px!important;
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  place-items:center!important;
  margin:0!important;
  padding:0!important;
  border:1px solid var(--de-soft-gold)!important;
  border-radius:999px!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:.82rem!important;
  font-weight:850!important;
  line-height:1!important;
}

body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-card-title-group > :where(h2,h3,h4,h5,h6),
body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-card-title-group .de-legacy-minorhead{
  flex:1 1 auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1.04rem,1.15vw,1.18rem)!important;
  font-weight:800!important;
  line-height:1.3!important;
}

/* Ordinary local "*-title" elements should be article-scale, never hero-scale. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-local-title{
  margin:18px 0 10px!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1.25rem,1.7vw,1.6rem)!important;
  font-weight:800!important;
  line-height:1.32!important;
  letter-spacing:0!important;
}

/* Titles inside true doctrinal final panels remain prominent but controlled. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-final-title{
  margin:0 0 12px!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:clamp(1.65rem,2.6vw,2.45rem)!important;
  font-weight:800!important;
  line-height:1.2!important;
  letter-spacing:-.02em!important;
}

/* Compact mini-cards such as Cundasutta ritual-icon grids can be direct spans. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-grid > span{
  display:block!important;
  min-width:0!important;
  padding:11px 12px!important;
  border:1px solid var(--de-line)!important;
  border-radius:10px!important;
  background:var(--de-surface)!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:.94rem!important;
  font-weight:700!important;
  line-height:1.42!important;
}

/* RC2.29 — Legacy card list reading hierarchy.
   Many historical cards encode each item as:
   <li><b>Pāli term</b><small>English explanation</small></li>.
   Without the old page CSS the term and explanation collapse together.
   Restore a clean two-line hierarchy globally inside legacy cards. */

body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-card :where(ol,ul){
  margin:14px 0 0!important;
  padding-left:1.65rem!important;
}

body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-card :where(ol,ul) > li{
  margin:.72rem 0!important;
  padding-left:.18rem!important;
  color:var(--de-ink)!important;
  -webkit-text-fill-color:var(--de-ink)!important;
  font-size:clamp(.98rem,1.02vw,1.06rem)!important;
  line-height:1.42!important;
}

body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-card :where(ol,ul) > li::marker{
  color:var(--de-burgundy)!important;
  font-weight:800!important;
}

body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-card :where(ol,ul) > li > :where(b,strong){
  display:block!important;
  margin:0!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:1.03em!important;
  font-weight:800!important;
  line-height:1.32!important;
}

body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-card :where(ol,ul) > li > small{
  display:block!important;
  margin:.18rem 0 0!important;
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
  font-size:.91rem!important;
  font-weight:450!important;
  line-height:1.45!important;
}

/* Keep compact card headings distinct from the list content. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-card-title-group{
  margin-bottom:14px!important;
}

/* Historical eyebrow-small labels should read as Theme eyebrows, not body copy. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page)
[class$="-eyebrow-small"]{
  display:block!important;
  margin:0 0 7px!important;
  color:var(--de-gold)!important;
  -webkit-text-fill-color:var(--de-gold)!important;
  font-size:.76rem!important;
  font-weight:850!important;
  letter-spacing:.11em!important;
  line-height:1.3!important;
  text-transform:uppercase!important;
}

/* RC2.31 — Coverage for additional recurring legacy roles discovered during
   staging sampling (SN 12.20 de-* and AN 5.75 yw-* generations). */

body.de-custom-article .de-legacy-card-list{
  display:grid!important;
  gap:18px!important;
  margin:22px 0!important;
}

body.de-custom-article .de-legacy-card{
  width:100%!important;
}

body.de-custom-article .de-legacy-card-body{
  min-width:0!important;
}

body.de-custom-article .de-legacy-card > .de-legacy-num,
body.de-custom-article .de-legacy-card .de-legacy-num{
  display:grid!important;
  width:46px!important;
  min-width:46px!important;
  height:46px!important;
  place-items:center!important;
  padding:0!important;
  border-radius:50%!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:.8rem!important;
  font-weight:850!important;
}

body.de-custom-article .de-legacy-panel{
  margin:24px 0!important;
  padding:clamp(22px,3vw,34px)!important;
  border:1px solid var(--de-line)!important;
  border-radius:18px!important;
  background:var(--de-surface)!important;
  box-shadow:0 8px 24px rgb(61 9 23 / .04);
}

body.de-custom-article .de-legacy-part-header{
  margin:40px 0 22px!important;
  padding:24px 26px!important;
  border-left:6px solid var(--de-gold)!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,var(--de-surface),var(--de-warm))!important;
}

body.de-custom-article .de-legacy-part-header h2,
body.de-custom-article .de-legacy-part-header .de-legacy-section-title{
  margin:.2rem 0!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1.7rem,2.8vw,2.7rem)!important;
  line-height:1.18!important;
}

body.de-custom-article .de-legacy-media{
  width:100%!important;
  margin:20px 0 30px!important;
  padding:10px!important;
  border:1px solid var(--de-line)!important;
  border-radius:16px!important;
  background:var(--de-surface)!important;
  box-shadow:0 8px 24px rgb(61 9 23 / .045);
}

body.de-custom-article .de-legacy-media img{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  border-radius:12px!important;
}

body.de-custom-article .de-legacy-caption{
  margin:9px 4px 1px!important;
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
  text-align:center!important;
  font-size:.88rem!important;
  font-style:italic!important;
  line-height:1.45!important;
}

body.de-custom-article .de-legacy-media-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin-top:8px!important;
  padding:7px 11px!important;
  border-radius:999px!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:.78rem!important;
  font-weight:750!important;
  line-height:1.2!important;
}

body.de-custom-article .de-legacy-manual-plus{
  display:none!important;
}

/* Historical rich-text containers should read as prose, not as compact labels. */
body.de-custom-article .de-legacy-copy{
  overflow-wrap:anywhere;
}

/* Direct small practice grids: six-door checks, short stage cards, etc. */
body.de-custom-article .de-legacy-grid > div{
  min-width:0!important;
}

/* Final-panel supporting text and return links. */
body.de-custom-article .de-legacy-final-text{
  margin-top:12px!important;
  color:#f3e2d2!important;
  -webkit-text-fill-color:#f3e2d2!important;
  font-size:clamp(1.05rem,1.2vw,1.18rem)!important;
  line-height:1.7!important;
}

body.de-custom-article .de-legacy-toplink{
  display:inline-flex!important;
  align-items:center!important;
  margin-top:20px!important;
  padding:9px 14px!important;
  border:1px solid rgb(231 201 145 / .45)!important;
  border-radius:999px!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  text-decoration:none!important;
  font-size:.88rem!important;
  font-weight:750!important;
}

body.de-custom-article .de-legacy-toplink:hover,
body.de-custom-article .de-legacy-toplink:focus-visible{
  background:var(--de-soft-gold)!important;
  color:var(--de-deep)!important;
  -webkit-text-fill-color:var(--de-deep)!important;
  outline:none!important;
}

@media(max-width:760px){
  body.de-custom-article .de-legacy-panel{
    padding:18px 15px!important;
  }
  body.de-custom-article .de-legacy-part-header{
    padding:20px 17px!important;
  }
}

/* RC2.32 — Narrative intro containers are not generic card grids.
   SN 12.20's de-intro-grid was authored as display:block, with the infographic
   below the explanatory prose. The generic *-grid mapper had incorrectly
   converted it into a two-column card grid. */
body.de-custom-article .de-legacy-intro-stack{
  display:block!important;
  width:100%!important;
}

body.de-custom-article .de-legacy-intro-stack > *{
  width:100%!important;
  max-width:none!important;
}

body.de-custom-article .de-legacy-intro-stack > .de-legacy-media,
body.de-custom-article .de-legacy-intro-stack > [class$="-overview-visual"],
body.de-custom-article .de-legacy-intro-stack > [class*="overview-visual"]{
  margin-top:28px!important;
}

/* Keep any contrast/comparison mini-cards inside the prose responsive,
   without turning the entire introduction into columns. */
body.de-custom-article .de-legacy-intro-stack .de-legacy-contrast{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
  margin-top:20px!important;
}

@media(max-width:760px){
  body.de-custom-article .de-legacy-intro-stack .de-legacy-contrast{
    grid-template-columns:1fr!important;
  }
}

/* RC2.33 — Legacy narrative prose matches the approved Theme reading size.
   Some historical rich-text containers (for example SN 12.20 de-richtext)
   contain their prose inside child <p>/<li> elements whose own font-size
   overrode the inherited legacy reading rhythm. Force the Theme reading size
   on narrative prose descendants without enlarging tables or compact cards. */

body.de-custom-article
.de-legacy-article-root
.de-legacy-copy > :where(p,li),
body.de-custom-article
.de-legacy-article-root
.de-legacy-copy :where(p,li):not(.de-legacy-card *):not(td *):not(th *),
body.de-custom-article
.de-legacy-article-root
.de-legacy-panel > :where(p,ul,ol),
body.de-custom-article
.de-legacy-article-root
.de-legacy-card-body > :where(p,div):not(.de-legacy-media):not(.de-legacy-grid){
  font-size:clamp(1.0625rem,1.18vw,1.1875rem)!important;
  line-height:1.78!important;
  letter-spacing:.002em!important;
}

body.de-custom-article
.de-legacy-article-root
.de-legacy-copy > p{
  margin:.85rem 0!important;
}

body.de-custom-article
.de-legacy-article-root
.de-legacy-copy > p + p{
  margin-top:1.15rem!important;
}

body.de-custom-article
.de-legacy-article-root
.de-legacy-copy :where(strong,b){
  font-weight:800!important;
}

body.de-custom-article
.de-legacy-article-root
.de-legacy-copy :where(em,i){
  line-height:inherit!important;
}

/* Preserve slightly smaller typography for tables, captions and compact
   navigational/card labels. */
body.de-custom-article
.de-legacy-article-root
.de-legacy-table-wrap :where(th,td),
body.de-custom-article
.de-legacy-article-root
.de-legacy-caption,
body.de-custom-article
.de-legacy-article-root
.de-legacy-nav a{
  font-size:revert!important;
}

@media(max-width:700px){
  body.de-custom-article
  .de-legacy-article-root
  .de-legacy-copy > :where(p,li),
  body.de-custom-article
  .de-legacy-article-root
  .de-legacy-copy :where(p,li):not(.de-legacy-card *):not(td *):not(th *),
  body.de-custom-article
  .de-legacy-article-root
  .de-legacy-panel > :where(p,ul,ol),
  body.de-custom-article
  .de-legacy-article-root
  .de-legacy-card-body > :where(p,div):not(.de-legacy-media):not(.de-legacy-grid){
    font-size:1.0625rem!important;
    line-height:1.72!important;
  }
}

/* RC2.34 — Wider legacy reading canvas.
   Give historical sections more horizontal room so long-form prose, cards and
   accordions do not feel squeezed by older container assumptions. */

/* Generic legacy article families: reduce excessive outer gutters. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page):not(.de6-page){
  padding-left:clamp(16px,1.35vw,26px)!important;
  padding-right:clamp(16px,1.35vw,26px)!important;
}

/* Any historical *-inner wrapper may use a wider modern reading canvas. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page):not(.de6-page)
.de-legacy-inner{
  width:min(100%,1580px)!important;
  max-width:1580px!important;
  margin-inline:auto!important;
}

/* Major generic section/panel structures should use all of the available
   article canvas rather than retaining narrow historical widths. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page):not(.de6-page)
:where(
  .de-legacy-section,
  .de-legacy-panel,
  .de-legacy-card-list,
  .de-legacy-accordion-list,
  .de-legacy-table-wrap,
  .de-legacy-intro-stack
){
  width:100%!important;
  max-width:none!important;
}

/* Let accordion prose make use of the wider container while retaining
   comfortable internal breathing room. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page):not(.de6-page)
.de-legacy-accordion-body{
  padding-left:clamp(22px,2.2vw,34px)!important;
  padding-right:clamp(22px,2.2vw,34px)!important;
}

/* Existing dedicated legacy adapters remain visually stable, but their inner
   reading canvas may also gain a modest amount of room. */
body.de-custom-article .ap-inner{
  width:min(calc(100% - 32px),1500px)!important;
  max-width:1500px!important;
}

body.de-custom-article .de6-page{
  padding-left:clamp(16px,1.4vw,26px)!important;
  padding-right:clamp(16px,1.4vw,26px)!important;
}

@media(max-width:760px){
  body.de-custom-article
  .de-legacy-article-root:not(.ap-page):not(.de6-page){
    padding-left:14px!important;
    padding-right:14px!important;
  }

  body.de-custom-article
  .de-legacy-article-root:not(.ap-page):not(.de6-page)
  .de-legacy-accordion-body{
    padding-left:16px!important;
    padding-right:16px!important;
  }

  body.de-custom-article .ap-inner{
    width:min(calc(100% - 24px),1500px)!important;
  }

  body.de-custom-article .de6-page{
    padding-left:14px!important;
    padding-right:14px!important;
  }
}

/* RC2.35 — Wider generic legacy section containers.
   RC2.34 widened the outer article canvas, but generic *-section components
   still retained up to ~52px of horizontal internal padding per side.
   Reduce that inset so long-form prose can actually use the wider canvas. */

body.de-custom-article
.de-legacy-article-root:not(.ap-page):not(.de6-page)
:where(.de-legacy-section,.de-legacy-study){
  padding-left:clamp(18px,1.55vw,30px)!important;
  padding-right:clamp(18px,1.55vw,30px)!important;
}

/* Keep panel-style sections comfortable but avoid recreating a narrow column. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page):not(.de6-page)
.de-legacy-panel{
  padding-left:clamp(18px,1.45vw,28px)!important;
  padding-right:clamp(18px,1.45vw,28px)!important;
}

/* Part headers should align with the wider section text edge. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page):not(.de6-page)
.de-legacy-part-header{
  padding-left:clamp(18px,1.45vw,26px)!important;
  padding-right:clamp(18px,1.45vw,26px)!important;
}

@media(max-width:760px){
  body.de-custom-article
  .de-legacy-article-root:not(.ap-page):not(.de6-page)
  :where(.de-legacy-section,.de-legacy-study){
    padding-left:14px!important;
    padding-right:14px!important;
  }

  body.de-custom-article
  .de-legacy-article-root:not(.ap-page):not(.de6-page)
  .de-legacy-panel,
  body.de-custom-article
  .de-legacy-article-root:not(.ap-page):not(.de6-page)
  .de-legacy-part-header{
    padding-left:15px!important;
    padding-right:15px!important;
  }
}

/* Study hub — frozen 2026-08-24 prototype */
.de-study{background:var(--de-canvas);color:var(--de-ink);font-family:var(--de-font);line-height:1.72}
.de-study a{color:inherit}
.de-study-hero{background:radial-gradient(circle at 82% 12%,rgb(199 146 69 / .20),transparent 25%),linear-gradient(145deg,var(--de-deep),var(--de-burgundy));color:#fff7e8;padding:clamp(62px,8vw,110px) 0 72px}
.de-study-hero-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(340px,.88fr);gap:48px;align-items:center}
.de-study-kicker,.de-study-eyebrow{color:var(--de-gold);font-size:.76rem;font-weight:850;letter-spacing:.13em;text-transform:uppercase}
.de-study-hero .de-study-kicker{color:var(--de-soft-gold)}
.de-study-hero h1{max-width:880px;margin:10px 0 17px;color:#fff7e8;font-size:clamp(2.7rem,5.6vw,5.3rem);line-height:1.01;letter-spacing:-.045em}
.de-study-hero p{max-width:760px;margin:0;color:#f3e2d2;font-size:clamp(1.06rem,1.5vw,1.24rem)}
.de-study-jump{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.de-study-jump a{padding:8px 12px;border:1px solid rgb(231 201 145 / .36);border-radius:999px;background:rgb(255 255 255 / .05);color:#fff7e8;font-size:.9rem;font-weight:720;text-decoration:none}
.de-study-jump a:hover,.de-study-jump a:focus-visible{border-color:var(--de-soft-gold);background:rgb(255 255 255 / .09);outline:none}

.de-study-finder{padding:24px;border:1px solid rgb(231 201 145 / .34);border-radius:18px;background:rgb(255 250 243 / .08)}
.de-study-finder label{display:block;margin-bottom:9px;color:var(--de-soft-gold);font-size:.72rem;font-weight:850;letter-spacing:.10em;text-transform:uppercase}
.de-study-find-row{display:grid;grid-template-columns:1fr auto;gap:9px}
.de-study-find-row input{min-width:0;height:48px;padding:0 14px;border:1px solid rgb(255 255 255 / .18);border-radius:11px;background:#fff;color:var(--de-ink);font:inherit;outline:none}
.de-study-find-row input:focus{border-color:var(--de-gold);box-shadow:0 0 0 3px rgb(199 146 69 / .22)}
.de-study-find-row button{height:48px;padding:0 18px;border:0;border-radius:11px;background:var(--de-gold);color:var(--de-deep);font:inherit;font-weight:900;cursor:pointer}
.de-study-examples{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.de-study-examples a{padding:6px 10px;border:1px solid rgb(231 201 145 / .34);border-radius:999px;background:rgb(255 255 255 / .05);color:#fff7e8;font-size:.8rem;text-decoration:none}
.de-study-finder small{display:block;margin-top:10px;color:#ead8c8;line-height:1.4}

.de-study-section{padding:clamp(54px,7vw,88px) 0}
.de-study-section.is-warm{background:var(--de-warm)}
.de-study-section-head{display:grid;grid-template-columns:1fr minmax(300px,600px);gap:30px;align-items:end;margin-bottom:28px}
.de-study-section-head h2{margin:5px 0 0;color:var(--de-burgundy);font-size:clamp(2rem,4vw,3.45rem);line-height:1.08;letter-spacing:-.035em}
.de-study-section-head p{margin:0;color:var(--de-muted)}

.de-study-nikaya-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px}
.de-study-nikaya{min-height:158px;padding:20px;border:1px solid var(--de-line);border-radius:16px;background:var(--de-surface);display:flex;flex-direction:column;justify-content:space-between;text-decoration:none;transition:.16s ease}
.de-study-nikaya:hover,.de-study-nikaya:focus-visible{transform:translateY(-2px);border-color:var(--de-gold);box-shadow:var(--de-shadow);outline:none}
.de-study-nikaya .de-study-abbr{color:var(--de-burgundy);font-size:1.6rem;font-weight:900;letter-spacing:-.03em}
.de-study-nikaya .de-study-count{display:inline-flex;align-self:flex-start;margin-top:16px;padding:5px 9px;border-radius:999px;background:var(--de-warm);color:var(--de-burgundy);font-size:.75rem;font-weight:850}
.de-study-nikaya span:last-child{margin-top:7px;color:var(--de-muted);font-size:.8rem;line-height:1.35}

.de-study-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:22px}
.de-study-action{padding:20px;border:1px solid var(--de-line);border-radius:15px;background:var(--de-surface);text-decoration:none}
.de-study-action:hover,.de-study-action:focus-visible{border-color:var(--de-gold);box-shadow:0 7px 18px rgb(61 9 23 / .06);outline:none}
.de-study-action small{display:block;color:var(--de-gold);font-size:.68rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.de-study-action b{display:block;margin:8px 0 5px;color:var(--de-burgundy);font-size:1.1rem;line-height:1.2}
.de-study-action span{display:block;color:var(--de-muted);font-size:.84rem;line-height:1.4}

.de-study-feature-layout{display:grid;grid-template-columns:1.08fr .92fr;gap:18px}
.de-study-feature-main{position:relative;min-height:390px;padding:32px;border-radius:20px;background:radial-gradient(circle at 90% 0,rgb(199 146 69 / .24),transparent 25%),var(--de-deep);color:#fff7e8;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden}
.de-study-feature-main::after{content:"AN 10.176";position:absolute;right:24px;top:18px;color:rgb(231 201 145 / .16);font-size:clamp(3rem,8vw,7rem);font-weight:900;letter-spacing:-.06em}
.de-study-feature-main .de-study-eyebrow{color:var(--de-soft-gold)}
.de-study-feature-main h3{position:relative;z-index:2;max-width:720px;margin:9px 0 11px;color:#fff7e8;font-size:clamp(2rem,3.4vw,3rem);line-height:1.08}
.de-study-feature-main p{position:relative;z-index:2;max-width:690px;margin:0;color:#f0dece}
.de-study-feature-main a{position:relative;z-index:2;margin-top:16px;color:var(--de-soft-gold);font-weight:900;text-decoration:none}
.de-study-feature-side{display:grid;gap:12px}
.de-study-feature-card{padding:19px;border:1px solid var(--de-line);border-radius:15px;background:var(--de-surface);text-decoration:none}
.de-study-feature-card:hover,.de-study-feature-card:focus-visible{border-color:var(--de-gold);outline:none}
.de-study-feature-card small{display:block;color:var(--de-gold);font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.de-study-feature-card b{display:block;margin-top:5px;color:var(--de-burgundy);font-size:1.08rem;line-height:1.28}
.de-study-feature-card span{display:block;margin-top:4px;color:var(--de-muted);font-size:.84rem;line-height:1.4}

.de-study-latest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.de-study-card{min-height:280px;border:1px solid var(--de-line);border-radius:16px;background:var(--de-surface);display:flex;flex-direction:column;overflow:hidden;text-decoration:none}
.de-study-card:hover,.de-study-card:focus-visible{border-color:var(--de-gold);box-shadow:0 7px 20px rgb(61 9 23 / .06);outline:none}
.de-study-thumb{height:118px;padding:16px;background:linear-gradient(135deg,rgb(91 16 34 / .95),rgb(61 9 23 / .95));display:flex;align-items:flex-end;color:var(--de-soft-gold);font-size:1.6rem;font-weight:900}
.de-study-body{padding:18px;display:flex;flex-direction:column;flex:1}
.de-study-badge{align-self:flex-start;padding:4px 8px;border-radius:999px;background:var(--de-warm);color:var(--de-burgundy);font-size:.68rem;font-weight:850}
.de-study-card h3{margin:10px 0 7px;color:var(--de-burgundy);font-size:1.08rem;line-height:1.28}
.de-study-card p{margin:0;color:var(--de-muted);font-size:.85rem;line-height:1.45}
.de-study-read{margin-top:auto;padding-top:14px;color:var(--de-burgundy);font-size:.86rem;font-weight:850}

.de-study-essay-strip{display:grid;grid-template-columns:.9fr 1.1fr;gap:22px}
.de-study-essay-intro{padding:30px;border-radius:18px;background:var(--de-burgundy);color:#fff7e8}
.de-study-essay-intro .de-study-eyebrow{color:var(--de-soft-gold)}
.de-study-essay-intro h2{margin:5px 0 10px;color:#fff7e8;font-size:clamp(2rem,4vw,3.25rem);line-height:1.08;letter-spacing:-.035em}
.de-study-essay-intro p{margin:0;color:#f0ddcc}
.de-study-essay-list{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.de-study-essay{padding:18px;border:1px solid var(--de-line);border-radius:14px;background:var(--de-surface);text-decoration:none}
.de-study-essay:hover,.de-study-essay:focus-visible{border-color:var(--de-gold);outline:none}
.de-study-essay small{color:var(--de-gold);font-size:.66rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.de-study-essay b{display:block;margin-top:6px;color:var(--de-burgundy);line-height:1.25}
.de-study-essay span{display:block;margin-top:4px;color:var(--de-muted);font-size:.82rem;line-height:1.4}

.de-study-depth{padding:32px;border:1px solid rgb(231 201 145 / .20);border-radius:20px;background:linear-gradient(135deg,#2e1220,#4b1021);color:#fff7e8;display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:center}
.de-study-depth .de-study-eyebrow{color:var(--de-soft-gold)}
.de-study-depth h3{margin:7px 0 9px;color:#fff7e8;font-size:clamp(1.9rem,3vw,2.7rem)}
.de-study-depth p{margin:0;color:#efddcc}
.de-study-depth-actions{display:grid;gap:9px}
.de-study-depth-actions a{min-height:46px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:850;text-decoration:none}
.de-study-depth-actions .is-primary{background:var(--de-gold);color:var(--de-deep)}
.de-study-depth-actions .is-secondary{border:1px solid rgb(231 201 145 / .34);color:#fff7e8}

.de-study-library-rule{padding:24px;border:1px solid var(--de-line);border-radius:18px;background:var(--de-surface);display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center}
.de-study-library-rule h3{margin:0 0 6px;color:var(--de-burgundy);font-size:1.35rem}
.de-study-library-rule p{max-width:850px;margin:0;color:var(--de-muted)}
.de-study-library-rule a{min-height:44px;padding:0 16px;border-radius:999px;background:var(--de-burgundy);color:#fff7e8;display:inline-flex;align-items:center;font-weight:850;text-decoration:none;white-space:nowrap}

@media(max-width:1150px){
  .de-study-nikaya-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .de-study-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1024px){
  .de-study-hero-grid,.de-study-feature-layout,.de-study-essay-strip,.de-study-depth{grid-template-columns:1fr}
  .de-study-finder{max-width:760px}
}
@media(max-width:720px){
  .de-study-section-head{grid-template-columns:1fr;align-items:start}
  .de-study-nikaya-grid,.de-study-latest-grid{grid-template-columns:1fr 1fr}
  .de-study-essay-list{grid-template-columns:1fr}
  .de-study-library-rule{grid-template-columns:1fr}
}
@media(max-width:520px){
  .de-study-nikaya-grid,.de-study-actions,.de-study-latest-grid{grid-template-columns:1fr}
  .de-study-find-row{grid-template-columns:1fr}
}

/* RC2.37 — Global visual treatment for sticky article navigation.
   Make the article-level sticky menu visibly distinct from the canvas while
   keeping it light, quiet and consistent with the burgundy/cream/gold system. */

.dm-nav,
body.de-custom-article .de-article-nav,
body.de-custom-article .de-legacy-nav{
  background:var(--de-warm)!important;
  border:1px solid var(--de-soft-gold)!important;
  box-shadow:
    0 4px 14px rgb(61 9 23 / .08),
    inset 0 1px 0 rgb(255 255 255 / .52)!important;
}

/* Keep the whole sticky strip readable even where older page CSS tries to
   restore a near-white background. */
body.de-custom-article .de-article-nav,
body.de-custom-article .de-legacy-nav{
  -webkit-text-fill-color:initial;
}

/* Current dm-* navigation: links stay calm until hover/focus. */
.dm-nav a{
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
}

.dm-nav a:hover,
.dm-nav a:focus,
.dm-nav a:focus-visible{
  background:var(--de-soft-gold)!important;
  color:var(--de-deep)!important;
  -webkit-text-fill-color:var(--de-deep)!important;
  outline:none!important;
}

/* Generic legacy sticky-nav links should not create a second heavy cream band
   inside the now-highlighted strip. */
body.de-custom-article .de-legacy-nav a{
  background:rgb(255 250 243 / .68)!important;
  border:1px solid rgb(199 146 69 / .20)!important;
}

body.de-custom-article .de-legacy-nav a:hover,
body.de-custom-article .de-legacy-nav a:focus,
body.de-custom-article .de-legacy-nav a:focus-visible{
  background:var(--de-soft-gold)!important;
  color:var(--de-deep)!important;
  -webkit-text-fill-color:var(--de-deep)!important;
  outline:none!important;
}

/* Slightly stronger separation from the body while the bar is stuck. */
.dm-nav,
body.de-custom-article .de-article-nav{
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

/* RC2.38 — Stronger global sticky article navigation band.
   RC2.37 was still too close to the surrounding cream canvas.
   Use a clearly distinct pale-gold strip with stronger edge definition. */

.dm-nav,
body.de-custom-article .de-article-nav,
body.de-custom-article .de-legacy-nav{
  background:#f2d7aa!important;
  border-top:2px solid var(--de-gold)!important;
  border-right:1px solid #d7b370!important;
  border-bottom:2px solid var(--de-gold)!important;
  border-left:1px solid #d7b370!important;
  box-shadow:
    0 7px 18px rgb(61 9 23 / .13),
    inset 0 1px 0 rgb(255 255 255 / .62)!important;
}

/* Keep the base links visually quiet so the whole band — not individual pills —
   reads as the navigation element. */
.dm-nav a,
body.de-custom-article .de-legacy-nav a{
  background:transparent!important;
  border-color:transparent!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
}

/* Strong but elegant interaction state. */
.dm-nav a:hover,
.dm-nav a:focus,
.dm-nav a:focus-visible,
body.de-custom-article .de-legacy-nav a:hover,
body.de-custom-article .de-legacy-nav a:focus,
body.de-custom-article .de-legacy-nav a:focus-visible{
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  outline:none!important;
}

/* Slightly more breathing room helps the band read as a deliberate sticky menu. */
.dm-nav,
body.de-custom-article .de-article-nav,
body.de-custom-article .de-legacy-nav{
  padding-top:10px!important;
  padding-bottom:10px!important;
}

/* RC2.39 — Sutta Library redesign preview.
   Scoped to .de-library-page so the currently published Library is unchanged
   until the preview is accepted. */

.de-library-page{
  background:var(--de-canvas);
  color:var(--de-ink);
  font-family:var(--de-font);
  line-height:1.72;
}
.de-library-page .de-library-hero{
  margin-inline:calc(50% - 50vw);
  padding:clamp(62px,8vw,104px) var(--de-gutter) 62px;
  background:
    radial-gradient(circle at 84% 12%,rgb(199 146 69 / .22),transparent 27%),
    linear-gradient(145deg,var(--de-deep),var(--de-burgundy));
  color:#fff7e8;
}
.de-library-page .de-library-hero-inner{
  width:min(100%,1480px);
  margin-inline:auto;
}
.de-library-page .de-library-kicker{
  color:var(--de-soft-gold);
  font-size:.78rem;
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.de-library-page .de-library-hero h1{
  max-width:960px;
  margin:9px 0 14px;
  color:#fff7e8;
  font-size:clamp(2.75rem,5.5vw,5.2rem);
  line-height:1.02;
  letter-spacing:-.045em;
}
.de-library-page .de-library-hero p{
  max-width:840px;
  margin:0;
  color:#f0dece;
  font-size:clamp(1.05rem,1.45vw,1.22rem);
}
.de-library-page .de-library-search{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px;
  max-width:720px;
  margin-top:26px;
}
.de-library-page .de-library-search input{
  min-width:0;
  height:50px;
  padding:0 15px;
  border:1px solid rgb(255 255 255 / .22);
  border-radius:12px;
  background:#fff;
  color:var(--de-ink);
  font:inherit;
}
.de-library-page .de-library-search button{
  min-height:50px;
  padding:0 19px;
  border:0;
  border-radius:12px;
  background:var(--de-gold);
  color:var(--de-deep);
  font:inherit;
  font-weight:900;
  cursor:pointer;
}
.de-library-page .de-library-search small{
  grid-column:1/-1;
  color:#ead8c8;
}
.de-library-page .de-library-intro-panel{
  width:min(calc(100% - (2 * var(--de-gutter))),1480px);
  margin:30px auto 0;
  padding:22px 24px;
  border:1px solid var(--de-soft-gold);
  border-left:5px solid var(--de-gold);
  border-radius:15px;
  background:var(--de-surface);
  color:var(--de-muted);
}
.de-library-page .de-library-intro-panel strong{color:var(--de-burgundy)}

.de-library-page .de-sutta-library{
  width:min(calc(100% - (2 * var(--de-gutter))),1480px);
  margin:32px auto 72px;
}
.de-library-page .de-sutta-filter-block{
  padding:22px;
  border:1px solid var(--de-line);
  border-radius:17px;
  background:var(--de-surface);
}
.de-library-page .de-sutta-filter-label{
  margin:0 0 12px;
  color:var(--de-gold);
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.de-library-page .de-sutta-library__collections{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;
}
.de-library-page .de-sutta-library__collection{
  display:flex;
  min-height:50px;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:0 12px;
  border:1px solid var(--de-line);
  border-radius:11px;
  background:#fff;
  color:var(--de-burgundy);
  font-weight:850;
  text-decoration:none;
}
.de-library-page .de-sutta-library__collection:hover,
.de-library-page .de-sutta-library__collection:focus-visible{
  border-color:var(--de-gold);
  background:var(--de-warm);
  outline:none;
}
.de-library-page .de-sutta-library__collection.is-current{
  border-color:var(--de-burgundy);
  background:var(--de-burgundy);
  color:#fff7e8;
}
.de-library-page .de-sutta-filter-count{
  min-width:27px;
  padding:3px 7px;
  border-radius:999px;
  background:rgb(199 146 69 / .14);
  text-align:center;
  font-size:.72rem;
}
.de-library-page .de-sutta-library__collection.is-current .de-sutta-filter-count{
  background:rgb(255 255 255 / .12);
  color:var(--de-soft-gold);
}
.de-library-page .de-sutta-library__results{
  margin:23px 0 14px;
  color:var(--de-muted);
  font-size:.9rem;
}

.de-library-page .de-sutta-library__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:17px;
}
.de-library-page .de-sutta-card{
  display:flex;
  min-width:0;
  overflow:hidden;
  flex-direction:column;
  border:1px solid var(--de-line);
  border-radius:17px;
  background:var(--de-surface);
  box-shadow:0 5px 18px rgb(61 9 23 / .035);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.de-library-page .de-sutta-card:hover{
  transform:translateY(-2px);
  border-color:var(--de-gold);
  box-shadow:0 10px 26px rgb(61 9 23 / .08);
}
.de-library-page .de-library-visual{
  position:relative;
  display:grid;
  aspect-ratio:3/2;
  place-items:center;
  overflow:hidden;
  border-bottom:1px solid var(--de-line);
  background:linear-gradient(135deg,#f5e6d3,var(--de-surface));
}
.de-library-page a.de-library-visual{padding:0}
.de-library-page .de-library-visual img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain!important;
  background:#fff;
}
.de-library-page .de-library-placeholder{
  background:linear-gradient(135deg,var(--de-deep),var(--de-burgundy));
  color:var(--de-soft-gold);
  font-size:clamp(1.75rem,3vw,2.45rem);
  font-weight:900;
  letter-spacing:-.04em;
}
.de-library-page .de-library-visual-chip{
  position:absolute;
  top:10px;
  right:10px;
  padding:5px 8px;
  border:1px solid rgb(231 201 145 / .55);
  border-radius:999px;
  background:rgb(61 9 23 / .88);
  color:#fff7e8;
  font-size:.66rem;
  font-weight:850;
}
.de-library-page .de-sutta-card__content{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:18px;
}
.de-library-page .de-library-ref{
  color:var(--de-gold);
  font-size:.69rem;
  font-weight:880;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.de-library-page .de-sutta-card__title{
  margin:7px 0 7px;
  color:var(--de-burgundy);
  font-size:1.15rem;
  line-height:1.28;
}
.de-library-page .de-sutta-card__title a{text-decoration:none}
.de-library-page .de-sutta-card__title a:hover{text-decoration:underline}
.de-library-page .de-sutta-card__summary{
  display:-webkit-box;
  overflow:hidden;
  margin:0;
  color:var(--de-muted);
  font-size:.86rem;
  line-height:1.48;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  line-clamp:4;
}
.de-library-page .de-library-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:13px;
}
.de-library-page .de-library-tags span{
  padding:5px 7px;
  border-radius:999px;
  background:var(--de-warm);
  color:var(--de-burgundy);
  font-size:.67rem;
}
.de-library-page .de-library-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:auto 0 0;
  padding-top:16px;
}
.de-library-page .de-library-actions>a{
  color:var(--de-burgundy);
  font-size:.84rem;
  font-weight:850;
  text-decoration:none;
}
.de-library-page .de-library-view-visual{
  padding:4px;
  border:0;
  background:transparent;
  color:var(--de-gold);
  font:inherit;
  font-size:.79rem;
  font-weight:850;
  cursor:pointer;
}
.de-library-page .de-library-view-visual:hover{text-decoration:underline}

.de-library-page .de-sutta-library__pagination{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:28px;
}
.de-library-page .de-sutta-library__pagination a{
  display:grid;
  min-width:42px;
  min-height:42px;
  place-items:center;
  border:1px solid var(--de-line);
  border-radius:10px;
  background:var(--de-surface);
  color:var(--de-burgundy);
  font-weight:850;
  text-decoration:none;
}
.de-library-page .de-sutta-library__pagination a:hover,
.de-library-page .de-sutta-library__pagination a:focus-visible{
  border-color:var(--de-gold);
  outline:none;
}
.de-library-page .de-sutta-library__pagination a[aria-current="page"]{
  border-color:var(--de-burgundy);
  background:var(--de-burgundy);
  color:#fff7e8;
}

.de-library-modal[hidden]{display:none!important}
.de-library-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:clamp(14px,3vw,32px);
  background:rgb(24 8 12 / .88);
}
.de-library-modal-inner{
  display:grid;
  width:min(96vw,1500px);
  max-height:90vh;
  place-items:center;
}
.de-library-modal-inner img{
  display:block;
  max-width:100%;
  max-height:88vh;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  box-shadow:0 18px 55px rgb(0 0 0 / .35);
}
.de-library-modal-close{
  position:fixed;
  top:16px;
  right:18px;
  z-index:2;
  width:48px;
  height:48px;
  border:1px solid var(--de-soft-gold);
  border-radius:50%;
  background:var(--de-surface);
  color:var(--de-burgundy);
  font-size:1.6rem;
  cursor:pointer;
}
html.de-library-modal-open{overflow:hidden}

@media(max-width:1180px){
  .de-library-page .de-sutta-library__collections{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:960px){
  .de-library-page .de-sutta-library__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .de-library-page .de-library-search,
  .de-library-page .de-sutta-library__collections,
  .de-library-page .de-sutta-library__grid{grid-template-columns:1fr}
  .de-library-page .de-sutta-library__collection{min-height:46px}
}

/* RC2.40 — DN 16 Catumahāpadesa legacy-family completion.
   The post's historical inline CSS is intentionally dropped at render time.
   These rules finish mapping its remaining structural roles into the global
   Theme language without changing stored post content. */

/* When a historical "practice" token was generically interpreted as a grid,
   but the same element is semantically a panel, panel semantics win. */
body.de-custom-article .de-legacy-panel.de-legacy-grid{
  display:block!important;
  grid-template-columns:none!important;
}

/* Verification spine: horizontal sequence with readable cards and arrows. */
body.de-custom-article .de-legacy-spine{
  align-items:center!important;
}
body.de-custom-article .de-legacy-spine>span{
  flex:1 0 190px!important;
  min-width:190px!important;
  padding:13px 14px!important;
  border:1px solid var(--de-line)!important;
  border-top:4px solid var(--de-gold)!important;
  border-radius:12px!important;
  background:var(--de-surface)!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:.9rem!important;
  font-weight:800!important;
  line-height:1.35!important;
  text-align:center!important;
  white-space:normal!important;
}
body.de-custom-article .de-legacy-spine>b{
  flex:0 0 auto!important;
  color:var(--de-gold)!important;
  -webkit-text-fill-color:var(--de-gold)!important;
  font-size:1.25rem!important;
}

/* Two-sided "claimed authority → authentication test" cores keep the arrow
   narrow instead of allocating it a full card column. */
body.de-custom-article .de-legacy-core:has(> .de-legacy-sequence-arrow){
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  align-items:center!important;
}
body.de-custom-article .de-legacy-core:has(> .de-legacy-sequence-arrow)>.de-legacy-sequence-arrow{
  padding-inline:4px!important;
  color:var(--de-gold)!important;
  -webkit-text-fill-color:var(--de-gold)!important;
  font-size:1.7rem!important;
}

/* Verification workflow: large enough cards for real reading, rather than
   seven tiny columns. */
body.de-custom-article .de-legacy-workflow{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:13px!important;
}
body.de-custom-article .de-legacy-step{
  position:relative!important;
  min-height:0!important;
  padding:20px!important;
}
body.de-custom-article .de-legacy-step>span:first-child{
  display:grid!important;
  width:34px!important;
  height:34px!important;
  margin:0 0 12px auto!important;
  place-items:center!important;
  border-radius:50%!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:.72rem!important;
  font-weight:900!important;
}
body.de-custom-article .de-legacy-step h3{
  margin:0 0 8px!important;
}
body.de-custom-article .de-legacy-step>b{
  display:block!important;
  margin-bottom:8px!important;
  color:var(--de-gold)!important;
  -webkit-text-fill-color:var(--de-gold)!important;
  font-size:.8rem!important;
  line-height:1.45!important;
}
body.de-custom-article .de-legacy-step p{
  margin:.45rem 0 0!important;
  font-size:.95rem!important;
  line-height:1.58!important;
}

/* Full Pāḷi + English units should read as one coherent translation pair. */
body.de-custom-article .de-legacy-language-pair{
  margin:18px 0 24px!important;
  padding:16px!important;
  border:1px solid var(--de-line)!important;
  border-radius:15px!important;
  background:var(--de-surface)!important;
}
body.de-custom-article .de-legacy-language-pair .de-legacy-pali-box,
body.de-custom-article .de-legacy-language-pair .de-legacy-translation-box{
  margin:0!important;
  font-size:clamp(1.0625rem,1.18vw,1.1875rem)!important;
  line-height:1.8!important;
}
body.de-custom-article .de-legacy-language-pair .de-legacy-translation-box{
  margin-top:12px!important;
}
body.de-custom-article .de-legacy-language-pair p{
  white-space:pre-line!important;
}

/* Light caution panel, not a heavy dark callout. */
body.de-custom-article .de-legacy-warning{
  border-left:6px solid var(--de-gold)!important;
  background:#fff4df!important;
}

/* Paired diagnostic panels should remain two columns on larger screens. */
body.de-custom-article .de-legacy-two-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  margin:18px 0!important;
}

/* DN16's old content uses a single large accordion body with nested sections.
   Give it the same reading rhythm as the rest of the normalized legacy set. */
body.de-custom-article .dn16-page .de-legacy-accordion-body p{
  font-size:clamp(1.0625rem,1.18vw,1.1875rem)!important;
  line-height:1.78!important;
}

/* Keep panels wide and calm; nested panels should not multiply huge margins. */
body.de-custom-article .dn16-page .de-legacy-panel{
  margin:18px 0!important;
}
body.de-custom-article .dn16-page .de-legacy-accordion-body>.de-legacy-panel:first-child{
  margin-top:0!important;
}

/* Final panel supporting sentence uses the normal reading size. */
body.de-custom-article .dn16-page .de-legacy-final span{
  font-size:clamp(1.0625rem,1.2vw,1.2rem)!important;
  line-height:1.78!important;
}

@media(max-width:1180px){
  body.de-custom-article .de-legacy-workflow{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:800px){
  body.de-custom-article .de-legacy-core:has(> .de-legacy-sequence-arrow),
  body.de-custom-article .de-legacy-two-grid{
    grid-template-columns:1fr!important;
  }
  body.de-custom-article .de-legacy-core:has(> .de-legacy-sequence-arrow)>.de-legacy-sequence-arrow{
    transform:rotate(90deg);
    text-align:center!important;
  }
}
@media(max-width:620px){
  body.de-custom-article .de-legacy-workflow{
    grid-template-columns:1fr!important;
  }
  body.de-custom-article .de-legacy-language-pair{
    padding:10px!important;
  }
}

/* RC2.41 — DN 16 workflow-card balance and number-badge correction.
   The seven verification steps now fill both rows evenly (4 + 3), and the
   step number is a proper readable Theme badge rather than a floating dot. */

/* Use a 12-column desktop grid:
   first four cards span 3 columns each;
   final three cards span 4 columns each. */
body.de-custom-article .dn16-page .de-legacy-workflow{
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:16px!important;
}

body.de-custom-article .dn16-page .de-legacy-workflow > .de-legacy-step{
  grid-column:span 3!important;
}

body.de-custom-article .dn16-page .de-legacy-workflow > .de-legacy-step:nth-child(n+5){
  grid-column:span 4!important;
}

/* Number badge sits naturally inside the card, aligned with the content. */
body.de-custom-article .dn16-page .de-legacy-step > span:first-child{
  position:static!important;
  display:inline-grid!important;
  width:auto!important;
  min-width:38px!important;
  height:38px!important;
  margin:0 0 18px 0!important;
  padding:0 10px!important;
  place-items:center!important;
  border:1px solid var(--de-gold)!important;
  border-radius:999px!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:.78rem!important;
  font-weight:900!important;
  line-height:1!important;
  box-shadow:0 2px 5px rgb(61 9 23 / .12)!important;
}

/* Restore normal title spacing now that the number is no longer absolute. */
body.de-custom-article .dn16-page .de-legacy-step h3{
  margin:0 0 10px!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:1.02rem!important;
  line-height:1.3!important;
}

/* Slightly improve card reading balance. */
body.de-custom-article .dn16-page .de-legacy-step{
  min-height:250px!important;
  padding:24px 24px 22px!important;
}

body.de-custom-article .dn16-page .de-legacy-step > b{
  margin-bottom:12px!important;
  font-size:.82rem!important;
  line-height:1.48!important;
}

body.de-custom-article .dn16-page .de-legacy-step p{
  margin:.35rem 0 0!important;
  font-size:1rem!important;
  line-height:1.62!important;
}

/* Tablet: two equal columns. */
@media(max-width:1180px){
  body.de-custom-article .dn16-page .de-legacy-workflow{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  body.de-custom-article .dn16-page .de-legacy-workflow > .de-legacy-step,
  body.de-custom-article .dn16-page .de-legacy-workflow > .de-legacy-step:nth-child(n+5){
    grid-column:auto!important;
  }
}

/* Mobile: one card per row. */
@media(max-width:620px){
  body.de-custom-article .dn16-page .de-legacy-workflow{
    grid-template-columns:1fr!important;
  }

  body.de-custom-article .dn16-page .de-legacy-step{
    min-height:0!important;
    padding:20px!important;
  }
}

/* RC2.42 — DN 16 sticky navigation parity.
   The historical dn16-nav retained its older near-white treatment.
   Force it onto the same global sticky-study navigation grammar approved
   for dm-* and normalized legacy articles. */

body.de-custom-article .dn16-page .dn16-nav{
  position:sticky!important;
  top:0!important;
  z-index:35!important;

  display:flex!important;
  align-items:center!important;
  justify-content:space-evenly!important;
  gap:6px!important;

  width:calc(100vw - 40px)!important;
  max-width:none!important;
  margin-left:calc(50% - 50vw + 20px)!important;
  margin-right:0!important;

  padding:10px 14px!important;

  background:#f2d7aa!important;
  border-top:2px solid var(--de-gold)!important;
  border-right:1px solid #d7b370!important;
  border-bottom:2px solid var(--de-gold)!important;
  border-left:1px solid #d7b370!important;
  border-radius:0 0 12px 12px!important;

  box-shadow:
    0 7px 18px rgb(61 9 23 / .13),
    inset 0 1px 0 rgb(255 255 255 / .62)!important;

  overflow-x:auto!important;
  scrollbar-width:thin;
}

body.de-custom-article .dn16-page .dn16-nav a{
  flex:1 1 0!important;
  min-width:max-content!important;
  padding:9px 12px!important;

  border:1px solid transparent!important;
  border-radius:9px!important;
  background:transparent!important;

  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;

  font-size:clamp(.92rem,1vw,1.02rem)!important;
  font-weight:800!important;
  line-height:1.2!important;
  text-align:center!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}

body.de-custom-article .dn16-page .dn16-nav a:hover,
body.de-custom-article .dn16-page .dn16-nav a:focus,
body.de-custom-article .dn16-page .dn16-nav a:focus-visible{
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  outline:none!important;
}

@media(max-width:900px){
  body.de-custom-article .dn16-page .dn16-nav{
    justify-content:flex-start!important;
    width:calc(100vw - 24px)!important;
    margin-left:calc(50% - 50vw + 12px)!important;
    padding:9px 10px!important;
  }

  body.de-custom-article .dn16-page .dn16-nav a{
    flex:0 0 auto!important;
  }
}

/* RC2.43 — DN 16 sticky offset correction.
   RC2.42 accidentally pinned dn16-nav at top:0 with a lower z-index than the
   site's own sticky header, so the article nav disappeared behind it.
   Match the global article-nav offset and stacking context exactly. */

body.de-custom-article .dn16-page .dn16-nav{
  top:56px!important;
  z-index:110!important;
}

body.admin-bar.de-custom-article .dn16-page .dn16-nav{
  top:88px!important;
}

/* RC2.44 — DN 16 sticky-nav color lock.
   DN16's historical presentation layer can still win the background cascade
   while the newer sticky-position rules apply. Lock the approved global
   pale-gold treatment onto both the strip and its direct links. */

html body.de-custom-article div.dn16-page nav.dn16-nav{
  background-color:#f2d7aa!important;
  background-image:linear-gradient(#f2d7aa,#f2d7aa)!important;
  border-top:2px solid #c79245!important;
  border-right:1px solid #d7b370!important;
  border-bottom:2px solid #c79245!important;
  border-left:1px solid #d7b370!important;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .62),
    0 7px 18px rgb(61 9 23 / .13)!important;
}

html body.de-custom-article div.dn16-page nav.dn16-nav > a{
  background-color:#f2d7aa!important;
  background-image:none!important;
  color:#5b1022!important;
  -webkit-text-fill-color:#5b1022!important;
}

html body.de-custom-article div.dn16-page nav.dn16-nav > a:hover,
html body.de-custom-article div.dn16-page nav.dn16-nav > a:focus,
html body.de-custom-article div.dn16-page nav.dn16-nav > a:focus-visible{
  background-color:#5b1022!important;
  background-image:none!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
}

/* RC2.46 — faithful implementation of the frozen Library / Archive / Search
   prototype. Scoped to the dedicated redesign-preview page only. */

.de-library-family-preview{
  background:var(--de-canvas);
  color:var(--de-ink);
  font-family:var(--de-font);
  line-height:1.72;
}
.de-library-family-preview .de-proto-shell{
  width:min(100%,1480px);
  margin:auto;
  padding-inline:clamp(18px,3.5vw,56px);
}
.de-library-family-preview .ui-demo-hero{
  margin-inline:calc(50% - 50vw);
  padding:58px 0 38px;
  background:linear-gradient(145deg,var(--de-deep),var(--de-burgundy));
  color:#fff7e8;
}
.de-library-family-preview .ui-demo-hero .de-proto-kicker{
  color:var(--de-soft-gold);
  font-size:.78rem;
  font-weight:850;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.de-library-family-preview .ui-demo-hero h1{
  margin:9px 0 14px;
  color:#fff7e8;
  font-size:clamp(2.6rem,5vw,4.8rem);
  line-height:1.02;
  letter-spacing:-.045em;
}
.de-library-family-preview .ui-demo-hero p{
  max-width:980px;
  margin:0;
  color:#efddcc;
  font-size:1.08rem;
}
.de-library-family-preview .ui-demo-section{
  padding:clamp(54px,7vw,84px) 0;
}
.de-library-family-preview .ui-demo-section.warm{
  margin-inline:calc(50% - 50vw);
  background:var(--de-warm);
}
.de-library-family-preview .ui-demo-section.warm > .de-proto-shell{
  width:min(100%,1480px);
}
.de-library-family-preview .section-head{
  display:grid;
  grid-template-columns:1fr minmax(300px,600px);
  gap:30px;
  align-items:end;
  margin-bottom:28px;
}
.de-library-family-preview .eyebrow{
  color:var(--de-gold);
  font-size:.76rem;
  font-weight:850;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.de-library-family-preview .section-head h2,
.de-library-family-preview .archive-header h2{
  margin:5px 0 0;
  color:var(--de-burgundy);
  font-size:clamp(2rem,4vw,3.45rem);
  line-height:1.08;
  letter-spacing:-.035em;
}
.de-library-family-preview .section-head p,
.de-library-family-preview .archive-header p{
  margin:0;
  color:var(--de-muted);
}

/* The frozen prototype did not show the old Core collection-filter box.
   The Core engine remains in place underneath for results/pagination. */
.de-library-family-preview .de-sutta-filter-block{
  display:none!important;
}
.de-library-family-preview .de-sutta-library{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}

/* Prototype result toolbar */
.de-library-family-preview .result-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:22px;
}
.de-library-family-preview .result-meta{
  margin:0!important;
  color:var(--de-muted);
  font-size:.9rem;
}
.de-library-family-preview .result-controls{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.de-library-family-preview .result-controls button{
  min-height:42px;
  padding:0 14px;
  border:1px solid var(--de-line);
  border-radius:999px;
  background:var(--de-surface);
  color:var(--de-burgundy);
  font:inherit;
  font-weight:820;
}
.de-library-family-preview .result-controls button.active{
  border-color:var(--de-burgundy);
  background:var(--de-burgundy);
  color:#fff7e8;
}

/* Exact approved library-card grammar */
.de-library-family-preview .library-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:17px!important;
}
.de-library-family-preview .library-card{
  display:flex!important;
  min-width:0!important;
  overflow:hidden!important;
  flex-direction:column!important;
  border:1px solid var(--de-line)!important;
  border-radius:17px!important;
  background:var(--de-surface)!important;
  box-shadow:none!important;
  transform:none!important;
}
.de-library-family-preview .library-card:hover{
  border-color:var(--de-gold)!important;
  box-shadow:0 9px 24px rgb(61 9 23 / .07)!important;
}
.de-library-family-preview .library-visual{
  position:relative!important;
  display:grid!important;
  aspect-ratio:3/2!important;
  place-items:center!important;
  overflow:hidden!important;
  height:auto!important;
  padding:0!important;
  border-bottom:1px solid var(--de-line)!important;
  background:linear-gradient(135deg,#f5e6d3,var(--de-surface))!important;
}
.de-library-family-preview .library-visual img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  background:#fff!important;
}
.de-library-family-preview .library-visual.placeholder{
  background:linear-gradient(135deg,var(--de-deep),var(--de-burgundy))!important;
  color:rgb(231 201 145 / .72)!important;
  -webkit-text-fill-color:rgb(231 201 145 / .72)!important;
  font-size:2.4rem!important;
  font-weight:900!important;
}
.de-library-family-preview .visual-chip{
  position:absolute!important;
  top:10px!important;
  left:10px!important;
  right:auto!important;
  padding:5px 8px!important;
  border:1px solid rgb(231 201 145 / .35)!important;
  border-radius:999px!important;
  background:rgb(61 9 23 / .88)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:.64rem!important;
  font-weight:850!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}
.de-library-family-preview .library-body{
  display:flex!important;
  flex:1!important;
  flex-direction:column!important;
  padding:18px!important;
}
.de-library-family-preview .library-ref{
  color:var(--de-gold)!important;
  -webkit-text-fill-color:var(--de-gold)!important;
  font-size:.69rem!important;
  font-weight:880!important;
  letter-spacing:.09em!important;
  text-transform:uppercase!important;
}
.de-library-family-preview .library-title{
  margin:7px 0 7px!important;
  color:var(--de-burgundy)!important;
  font-size:1.15rem!important;
  font-weight:850!important;
  line-height:1.27!important;
}
.de-library-family-preview .library-title a{
  color:inherit!important;
  text-decoration:none!important;
}
.de-library-family-preview .library-title a:hover{
  text-decoration:underline!important;
}
.de-library-family-preview .library-excerpt{
  display:block!important;
  overflow:visible!important;
  margin:0!important;
  color:var(--de-muted)!important;
  font-size:.84rem!important;
  line-height:1.46!important;
  -webkit-line-clamp:unset!important;
}
.de-library-family-preview .library-tags{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  margin:13px 0 0!important;
}
.de-library-family-preview .library-tags span{
  padding:5px 7px!important;
  border-radius:999px!important;
  background:var(--de-warm)!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:.67rem!important;
}
.de-library-family-preview .library-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin-top:auto!important;
  padding-top:16px!important;
}
.de-library-family-preview .library-actions a{
  color:var(--de-burgundy)!important;
  font-size:.84rem!important;
  font-weight:850!important;
  text-decoration:none!important;
}
.de-library-family-preview .library-actions button{
  padding:4px!important;
  border:0!important;
  background:transparent!important;
  color:var(--de-gold)!important;
  font:inherit!important;
  font-size:.8rem!important;
  font-weight:850!important;
  cursor:pointer!important;
}
.de-library-family-preview .library-actions button:hover{
  text-decoration:underline!important;
}

/* Pagination is functional Core output; style quietly below the approved cards. */
.de-library-family-preview .de-sutta-library__pagination{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:28px;
}
.de-library-family-preview .de-sutta-library__pagination a{
  display:grid;
  min-width:42px;
  min-height:42px;
  place-items:center;
  border:1px solid var(--de-line);
  border-radius:10px;
  background:var(--de-surface);
  color:var(--de-burgundy);
  font-weight:850;
  text-decoration:none;
}
.de-library-family-preview .de-sutta-library__pagination a[aria-current="page"]{
  border-color:var(--de-burgundy);
  background:var(--de-burgundy);
  color:#fff7e8;
}

/* Exact frozen archive example */
.de-library-family-preview .archive-header{
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  align-items:end;
  margin-bottom:22px;
}
.de-library-family-preview .archive-count{
  min-width:120px;
  padding:14px 17px;
  border-radius:14px;
  background:var(--de-burgundy);
  color:#fff7e8;
  text-align:center;
}
.de-library-family-preview .archive-count strong{
  display:block;
  font-size:1.8rem;
}
.de-library-family-preview .archive-count span{
  color:var(--de-soft-gold);
  font-size:.7rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.de-library-family-preview .compact-list{
  display:grid;
  gap:10px;
}
.de-library-family-preview .compact-row{
  display:grid;
  grid-template-columns:110px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:12px 14px;
  border:1px solid var(--de-line);
  border-radius:13px;
  background:var(--de-surface);
}
.de-library-family-preview .compact-ref{
  color:var(--de-burgundy);
  font-size:.84rem;
  font-weight:880;
}
.de-library-family-preview .compact-main{
  min-width:0;
}
.de-library-family-preview .compact-main b{
  display:block;
  color:var(--de-burgundy);
  line-height:1.25;
}
.de-library-family-preview .compact-main span{
  display:block;
  overflow:hidden;
  margin-top:3px;
  color:var(--de-muted);
  font-size:.78rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.de-library-family-preview .compact-row a{
  color:var(--de-burgundy);
  font-size:.8rem;
  font-weight:850;
  text-decoration:none;
  white-space:nowrap;
}

/* Exact frozen search-results example */
.de-library-family-preview .search-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:24px;
}
.de-library-family-preview .search-list{
  display:grid;
  gap:14px;
}
.de-library-family-preview .search-card{
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  gap:17px;
  align-items:center;
  padding:15px;
  border:1px solid var(--de-line);
  border-radius:16px;
  background:var(--de-surface);
}
.de-library-family-preview .search-thumb{
  position:relative;
  overflow:hidden;
  aspect-ratio:3/2;
  border:1px solid rgb(91 16 34 / .09);
  border-radius:11px;
  background:#fff;
}
.de-library-family-preview .search-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.de-library-family-preview .search-thumb.placeholder{
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--de-deep),var(--de-burgundy));
  color:var(--de-soft-gold);
  font-size:1.6rem;
  font-weight:900;
}
.de-library-family-preview .search-copy{
  min-width:0;
}
.de-library-family-preview .search-copy .ref{
  color:var(--de-gold);
  font-size:.67rem;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.de-library-family-preview .search-copy h3{
  margin:6px 0;
  color:var(--de-burgundy);
  font-size:1.17rem;
  line-height:1.24;
}
.de-library-family-preview .search-copy p{
  margin:0;
  color:var(--de-muted);
  font-size:.84rem;
  line-height:1.45;
}
.de-library-family-preview .search-copy .matches{
  margin-top:10px;
  padding:8px 10px;
  border-radius:9px;
  background:var(--de-warm);
  color:var(--de-ink);
  font-size:.75rem;
}
.de-library-family-preview .search-copy mark{
  padding:0 2px;
  background:#f1d89d;
  color:var(--de-deep);
}
.de-library-family-preview .search-sidebar{
  position:sticky;
  top:78px;
  height:max-content;
  padding:18px;
  border:1px solid var(--de-line);
  border-radius:16px;
  background:var(--de-surface);
}
.de-library-family-preview .search-sidebar h3{
  margin:0 0 12px;
  color:var(--de-burgundy);
  font-size:1.05rem;
}
.de-library-family-preview .filter-group{
  margin-top:13px;
  padding-top:13px;
  border-top:1px solid var(--de-line);
}
.de-library-family-preview .filter-group:first-of-type{
  margin-top:0;
  padding-top:0;
  border-top:0;
}
.de-library-family-preview .filter-group b{
  display:block;
  margin-bottom:8px;
  color:var(--de-ink);
  font-size:.82rem;
}
.de-library-family-preview .filter-group label{
  display:flex;
  gap:8px;
  align-items:center;
  margin:7px 0;
  color:var(--de-muted);
  font-size:.8rem;
}
.de-library-family-preview .filter-group input{
  accent-color:var(--de-burgundy);
}
.de-library-family-preview .family-note{
  margin-top:26px;
  padding:22px;
  border-radius:17px;
  background:var(--de-deep);
  color:#fff7e8;
}
.de-library-family-preview .family-note b{
  color:var(--de-soft-gold);
}
.de-library-family-preview .family-note p{
  margin:6px 0 0;
  color:#efddcc;
}

/* Prototype modal maps onto the already-working Theme modal controller. */
.de-library-family-preview .de-library-modal{
  background:rgb(23 5 10 / .90)!important;
}
.de-library-family-preview .de-library-modal-inner{
  width:min(96vw,1500px)!important;
}
.de-library-family-preview .de-library-modal-inner img{
  width:100%!important;
  height:auto!important;
}

@media(max-width:1000px){
  .de-library-family-preview .library-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .de-library-family-preview .search-layout{
    grid-template-columns:1fr;
  }
  .de-library-family-preview .search-sidebar{
    position:static;
  }
}
@media(max-width:720px){
  .de-library-family-preview .section-head,
  .de-library-family-preview .archive-header{
    grid-template-columns:1fr;
  }
  .de-library-family-preview .archive-count{
    justify-self:start;
  }
  .de-library-family-preview .search-card{
    grid-template-columns:1fr;
  }
}
@media(max-width:620px){
  .de-library-family-preview .library-grid{
    grid-template-columns:1fr!important;
  }
  .de-library-family-preview .compact-row{
    grid-template-columns:82px minmax(0,1fr);
  }
  .de-library-family-preview .compact-row>a{
    grid-column:2;
  }
}

/* RC2.47 — functional Sutta Library preview.
   Keeps the frozen prototype visual grammar while making the real Core
   collection filter, Cards/Compact view and direct reference search usable. */

.de-library-family-preview .de-library-reference-search{
  display:grid!important;
  grid-template-columns:minmax(120px,180px) minmax(280px,620px) minmax(160px,1fr)!important;
  gap:12px 18px!important;
  align-items:center!important;
  margin:0 0 18px!important;
  padding:15px 16px!important;
  border:1px solid var(--de-line)!important;
  border-radius:15px!important;
  background:var(--de-surface)!important;
}
.de-library-family-preview .de-library-reference-search>label{
  color:var(--de-burgundy)!important;
  font-size:.86rem!important;
  font-weight:850!important;
}
.de-library-family-preview .de-library-reference-search__row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
}
.de-library-family-preview .de-library-reference-search input{
  width:100%!important;
  min-height:44px!important;
  padding:0 13px!important;
  border:1px solid rgb(91 16 34 / .22)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--de-ink)!important;
  font:inherit!important;
  outline:none!important;
}
.de-library-family-preview .de-library-reference-search input:focus{
  border-color:var(--de-gold)!important;
  box-shadow:0 0 0 3px rgb(199 146 69 / .18)!important;
}
.de-library-family-preview .de-library-reference-search button{
  min-height:44px!important;
  padding:0 16px!important;
  border:1px solid var(--de-burgundy)!important;
  border-radius:999px!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  font:inherit!important;
  font-size:.84rem!important;
  font-weight:850!important;
  cursor:pointer!important;
}
.de-library-family-preview .de-library-reference-search>small{
  color:var(--de-muted)!important;
  font-size:.76rem!important;
  line-height:1.35!important;
}

.de-library-family-preview .de-sutta-filter-block{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  flex-wrap:wrap!important;
  margin:0 0 20px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
.de-library-family-preview .de-sutta-filter-label{
  margin:0!important;
  color:var(--de-muted)!important;
  font-size:.77rem!important;
  font-weight:800!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}
.de-library-family-preview .de-sutta-library__collections{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  margin:0!important;
}
.de-library-family-preview .de-sutta-library__collection{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  min-height:39px!important;
  padding:0 11px!important;
  border:1px solid var(--de-line)!important;
  border-radius:999px!important;
  background:var(--de-surface)!important;
  color:var(--de-burgundy)!important;
  font-size:.78rem!important;
  font-weight:840!important;
  text-decoration:none!important;
}
.de-library-family-preview .de-sutta-library__collection:hover,
.de-library-family-preview .de-sutta-library__collection:focus-visible{
  border-color:var(--de-gold)!important;
  outline:none!important;
}
.de-library-family-preview .de-sutta-library__collection.is-current{
  border-color:var(--de-burgundy)!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
}
.de-library-family-preview .de-sutta-filter-count{
  display:inline-grid!important;
  min-width:22px!important;
  height:22px!important;
  padding:0 5px!important;
  place-items:center!important;
  border-radius:999px!important;
  background:var(--de-warm)!important;
  color:var(--de-burgundy)!important;
  font-size:.68rem!important;
}
.de-library-family-preview .de-sutta-library__collection.is-current .de-sutta-filter-count{
  background:rgb(255 255 255 / .14)!important;
  color:#fff7e8!important;
}

.de-library-family-preview [data-de-library-sort="newest"]{
  border-color:rgb(199 146 69 / .55)!important;
}
.de-library-family-preview [data-de-library-sort="newest"]::before{
  content:"↧";
  margin-right:5px;
  color:var(--de-gold);
}
.de-library-family-preview [data-de-library-sort="newest"].is-sort-active{
  border-color:var(--de-gold)!important;
  background:var(--de-warm)!important;
}

.de-library-family-preview .library-grid.is-compact{
  grid-template-columns:1fr!important;
  gap:10px!important;
}
.de-library-family-preview .library-grid.is-compact .library-card{
  display:block!important;
  min-height:0!important;
  border-radius:13px!important;
  box-shadow:none!important;
}
.de-library-family-preview .library-grid.is-compact .library-visual{
  display:none!important;
}
.de-library-family-preview .library-grid.is-compact .library-body{
  display:grid!important;
  grid-template-columns:110px minmax(0,1fr) auto!important;
  grid-template-areas:
    "ref title action"
    "ref excerpt action"!important;
  gap:3px 14px!important;
  align-items:center!important;
  padding:12px 14px!important;
}
.de-library-family-preview .library-grid.is-compact .library-ref{
  grid-area:ref!important;
  align-self:center!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:.78rem!important;
  line-height:1.35!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
.de-library-family-preview .library-grid.is-compact .library-title{
  grid-area:title!important;
  margin:0!important;
  font-size:.94rem!important;
  line-height:1.28!important;
}
.de-library-family-preview .library-grid.is-compact .library-excerpt{
  grid-area:excerpt!important;
  display:block!important;
  overflow:hidden!important;
  margin:0!important;
  color:var(--de-muted)!important;
  font-size:.76rem!important;
  line-height:1.35!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.de-library-family-preview .library-grid.is-compact .library-tags{
  display:none!important;
}
.de-library-family-preview .library-grid.is-compact .library-actions{
  grid-area:action!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  margin:0!important;
  padding:0!important;
  white-space:nowrap!important;
}
.de-library-family-preview .library-grid.is-compact .library-actions button{
  display:none!important;
}

@media(max-width:900px){
  .de-library-family-preview .de-library-reference-search{
    grid-template-columns:1fr!important;
  }
  .de-library-family-preview .de-library-reference-search__row{
    max-width:620px!important;
  }
}
@media(max-width:720px){
  .de-library-family-preview .library-grid.is-compact .library-body{
    grid-template-columns:82px minmax(0,1fr)!important;
    grid-template-areas:
      "ref title"
      "ref excerpt"
      ". action"!important;
  }
  .de-library-family-preview .library-grid.is-compact .library-actions{
    justify-content:flex-start!important;
    padding-top:5px!important;
  }
}
@media(max-width:520px){
  .de-library-family-preview .de-library-reference-search__row{
    grid-template-columns:1fr!important;
  }
  .de-library-family-preview .de-sutta-filter-block{
    align-items:flex-start!important;
  }
  .de-library-family-preview .library-grid.is-compact .library-body{
    grid-template-columns:1fr!important;
    grid-template-areas:
      "ref"
      "title"
      "excerpt"
      "action"!important;
  }
}

/* RC2.48 — actual search-results parity with the frozen Library/Search family. */
.de-search-page{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  background:var(--de-canvas)!important;
  color:var(--de-ink)!important;
  font-family:var(--de-font)!important;
}
.de-search-shell{
  width:min(100%,1480px)!important;
  margin-inline:auto!important;
  padding-inline:var(--de-gutter)!important;
}
.de-search-hero{
  margin:0!important;
  padding:clamp(54px,7vw,86px) 0!important;
  background:
    radial-gradient(circle at 88% 12%,rgb(199 146 69 / .18),transparent 26%),
    linear-gradient(145deg,var(--de-deep),var(--de-burgundy))!important;
  color:#fff7e8!important;
}
.de-search-kicker{
  margin:0!important;
  color:var(--de-soft-gold)!important;
  font-size:.78rem!important;
  font-weight:850!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
}
.de-search-hero h1{
  max-width:980px!important;
  margin:10px 0 14px!important;
  color:#fff7e8!important;
  font-size:clamp(2.6rem,5vw,4.8rem)!important;
  line-height:1.02!important;
  letter-spacing:-.045em!important;
}
.de-search-hero p:not(.de-search-kicker){
  max-width:920px!important;
  margin:0!important;
  color:#efddcc!important;
  font-size:1.06rem!important;
}
.de-search-hero-form{
  max-width:760px!important;
  margin-top:24px!important;
}
.de-search-hero-form .wp-block-search__inside-wrapper{
  padding:5px!important;
  border:1px solid rgb(231 201 145 / .42)!important;
  border-radius:999px!important;
  background:rgb(255 250 243 / .10)!important;
}
.de-search-hero-form input{
  min-height:48px!important;
  padding:0 16px!important;
  border:0!important;
  background:transparent!important;
  color:#fff7e8!important;
  font:inherit!important;
  outline:none!important;
}
.de-search-hero-form input::placeholder{
  color:#e6cdb9!important;
  opacity:1!important;
}
.de-search-hero-form button{
  min-height:46px!important;
  padding:0 19px!important;
  border:0!important;
  border-radius:999px!important;
  background:var(--de-gold)!important;
  color:var(--de-deep)!important;
  font-weight:900!important;
}
.de-search-content{
  padding-block:clamp(46px,6vw,76px)!important;
}
.de-search-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 290px!important;
  gap:26px!important;
  align-items:start!important;
}
.de-search-main{
  min-width:0!important;
}
.de-search-query-title{
  margin:0 0 20px!important;
  color:var(--de-burgundy)!important;
  font-size:clamp(1.8rem,3vw,2.55rem)!important;
  line-height:1.15!important;
}
.de-search-list{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:14px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
.de-search-list>li{
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.de-search-card{
  display:grid!important;
  grid-template-columns:210px minmax(0,1fr)!important;
  gap:17px!important;
  align-items:center!important;
  min-height:170px!important;
  padding:15px!important;
  border:1px solid var(--de-line)!important;
  border-radius:16px!important;
  background:var(--de-surface)!important;
  box-shadow:none!important;
}
.de-search-card:hover{
  border-color:var(--de-gold)!important;
  box-shadow:0 9px 24px rgb(61 9 23 / .06)!important;
}
.de-search-thumb{
  display:block!important;
  overflow:hidden!important;
  aspect-ratio:3/2!important;
  width:100%!important;
  height:auto!important;
  margin:0!important;
  border:1px solid rgb(91 16 34 / .09)!important;
  border-radius:11px!important;
  background:#fff!important;
}
.de-search-thumb img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  background:#fff!important;
}
.de-search-thumb--placeholder{
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(135deg,var(--de-deep),var(--de-burgundy))!important;
  color:var(--de-soft-gold)!important;
  font-size:1.5rem!important;
  font-weight:900!important;
}
.de-search-copy{
  min-width:0!important;
}
.de-search-ref{
  color:var(--de-gold)!important;
  font-size:.67rem!important;
  font-weight:850!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
.de-search-copy .wp-block-post-title{
  margin:6px 0!important;
  color:var(--de-burgundy)!important;
  font-size:1.17rem!important;
  font-weight:850!important;
  line-height:1.24!important;
}
.de-search-copy .wp-block-post-title a{
  color:inherit!important;
  text-decoration:none!important;
}
.de-search-copy .wp-block-post-title a:hover{
  text-decoration:underline!important;
}
.de-search-copy .wp-block-post-excerpt{
  margin:0!important;
  color:var(--de-muted)!important;
  font-size:.84rem!important;
  line-height:1.45!important;
}
.de-search-copy .wp-block-post-excerpt p{
  margin:0!important;
}
.de-search-match-context{
  margin-top:10px!important;
  padding:8px 10px!important;
  border-radius:9px!important;
  background:var(--de-warm)!important;
  color:var(--de-ink)!important;
  font-size:.75rem!important;
  line-height:1.45!important;
}
.de-search-match-context>span{
  color:var(--de-burgundy)!important;
  font-weight:850!important;
}
.de-search-copy mark,
.de-search-match-context mark{
  padding:0 2px!important;
  background:#f1d89d!important;
  color:var(--de-deep)!important;
}
.de-search-sidebar{
  position:sticky!important;
  top:78px!important;
  height:max-content!important;
  padding:18px!important;
  border:1px solid var(--de-line)!important;
  border-radius:16px!important;
  background:var(--de-surface)!important;
}
.admin-bar .de-search-sidebar{
  top:110px!important;
}
.de-search-sidebar h2{
  margin:0 0 4px!important;
  color:var(--de-burgundy)!important;
  font-size:1.05rem!important;
}
.de-search-sidebar>p{
  margin:0 0 14px!important;
  color:var(--de-muted)!important;
  font-size:.78rem!important;
}
.de-search-filter-form{
  margin:0!important;
}
.de-search-filter-group{
  margin:13px 0 0!important;
  padding:13px 0 0!important;
  border:0!important;
  border-top:1px solid var(--de-line)!important;
}
.de-search-filter-group:first-of-type{
  margin-top:0!important;
  padding-top:0!important;
  border-top:0!important;
}
.de-search-filter-group legend{
  margin-bottom:8px!important;
  color:var(--de-ink)!important;
  font-size:.82rem!important;
  font-weight:850!important;
}
.de-search-filter-group label{
  display:flex!important;
  gap:7px!important;
  align-items:center!important;
  margin:7px 0!important;
  color:var(--de-muted)!important;
  font-size:.8rem!important;
  cursor:pointer!important;
}
.de-search-filter-group input{
  accent-color:var(--de-burgundy)!important;
}
.de-search-filter-actions{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  margin-top:16px!important;
}
.de-search-filter-actions button{
  min-height:40px!important;
  padding:0 13px!important;
  border:1px solid var(--de-burgundy)!important;
  border-radius:999px!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  font:inherit!important;
  font-size:.78rem!important;
  font-weight:850!important;
  cursor:pointer!important;
}
.de-search-filter-actions a{
  color:var(--de-burgundy)!important;
  font-size:.78rem!important;
  font-weight:800!important;
}
.de-search-query .wp-block-query-pagination{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  margin-top:26px!important;
}
.de-search-query .wp-block-query-pagination a,
.de-search-query .wp-block-query-pagination .page-numbers{
  display:grid!important;
  min-width:42px!important;
  min-height:42px!important;
  place-items:center!important;
  padding:0 10px!important;
  border:1px solid var(--de-line)!important;
  border-radius:10px!important;
  background:var(--de-surface)!important;
  color:var(--de-burgundy)!important;
  font-weight:850!important;
  text-decoration:none!important;
}
.de-search-query .wp-block-query-pagination .current{
  border-color:var(--de-burgundy)!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
}
.de-search-empty{
  padding:28px!important;
  border:1px solid var(--de-line)!important;
  border-radius:17px!important;
  background:var(--de-surface)!important;
}
.de-search-empty h2{
  margin-top:0!important;
  color:var(--de-burgundy)!important;
}
.de-search-empty p{
  color:var(--de-muted)!important;
}
.de-search-empty .wp-block-button__link{
  border-radius:999px!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
}

@media(max-width:1000px){
  .de-search-layout{
    grid-template-columns:1fr!important;
  }
  .de-search-sidebar{
    position:static!important;
  }
}
@media(max-width:720px){
  .de-search-card{
    grid-template-columns:1fr!important;
  }
  .de-search-thumb{
    max-width:420px!important;
  }
}
@media(max-width:520px){
  .de-search-hero-form .wp-block-search__inside-wrapper{
    display:grid!important;
    gap:7px!important;
    border-radius:16px!important;
  }
  .de-search-hero-form button{
    width:100%!important;
  }
}

/* RC2.49 — search result resilience while the JS enrichment loads.
   The actual JS adds .de-search-ref, placeholders, match context and filters.
   Until that happens, do not trap the copy in the 210px thumbnail column. */
.de-search-card:not(:has(.de-search-thumb)) .de-search-copy{
  grid-column:1 / -1!important;
}

/* RC2.50 — Library sidebar parity with the real Search page.
   The sidebar is built from the live Core collection links and the already
   functional Cards / Compact / Newest controls; no decorative filters. */

.de-library-family-preview .de-library-live-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 290px!important;
  gap:26px!important;
  align-items:start!important;
}

.de-library-family-preview .de-library-live-main{
  min-width:0!important;
}

.de-library-family-preview .de-library-sidebar{
  position:sticky!important;
  top:78px!important;
  height:max-content!important;
  padding:18px!important;
  border:1px solid var(--de-line)!important;
  border-radius:16px!important;
  background:var(--de-surface)!important;
}

.admin-bar .de-library-family-preview .de-library-sidebar{
  top:110px!important;
}

.de-library-family-preview .de-library-sidebar>h3{
  margin:0 0 4px!important;
  color:var(--de-burgundy)!important;
  font-size:1.05rem!important;
  line-height:1.25!important;
}

.de-library-family-preview .de-library-sidebar>p{
  margin:0 0 14px!important;
  color:var(--de-muted)!important;
  font-size:.78rem!important;
  line-height:1.45!important;
}

.de-library-family-preview .de-library-sidebar-group{
  margin-top:13px!important;
  padding-top:13px!important;
  border-top:1px solid var(--de-line)!important;
}

.de-library-family-preview .de-library-sidebar-group:first-of-type{
  margin-top:0!important;
  padding-top:0!important;
  border-top:0!important;
}

.de-library-family-preview .de-library-sidebar-group>b{
  display:block!important;
  margin-bottom:8px!important;
  color:var(--de-ink)!important;
  font-size:.82rem!important;
  font-weight:850!important;
}

/* Core's collection links become a vertical sidebar filter list. */
.de-library-family-preview .de-library-sidebar .de-sutta-filter-block{
  display:block!important;
  margin:0!important;
  padding:0!important;
}

.de-library-family-preview .de-library-sidebar .de-sutta-filter-label{
  display:none!important;
}

.de-library-family-preview .de-library-sidebar .de-sutta-library__collections{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:4px!important;
  margin:0!important;
}

.de-library-family-preview .de-library-sidebar .de-sutta-library__collection{
  display:flex!important;
  width:100%!important;
  min-height:38px!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:7px 9px!important;
  border:1px solid transparent!important;
  border-radius:9px!important;
  background:transparent!important;
  color:var(--de-muted)!important;
  font-size:.8rem!important;
  font-weight:760!important;
  text-decoration:none!important;
}

.de-library-family-preview .de-library-sidebar .de-sutta-library__collection:hover,
.de-library-family-preview .de-library-sidebar .de-sutta-library__collection:focus-visible{
  border-color:var(--de-line)!important;
  background:var(--de-warm)!important;
  color:var(--de-burgundy)!important;
  outline:none!important;
}

.de-library-family-preview .de-library-sidebar .de-sutta-library__collection.is-current{
  border-color:var(--de-burgundy)!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
}

.de-library-family-preview .de-library-sidebar .de-sutta-filter-count{
  display:inline-grid!important;
  min-width:25px!important;
  height:25px!important;
  padding:0 6px!important;
  place-items:center!important;
  border-radius:999px!important;
  background:var(--de-warm)!important;
  color:var(--de-burgundy)!important;
  font-size:.68rem!important;
  font-weight:850!important;
}

.de-library-family-preview .de-library-sidebar .de-sutta-library__collection.is-current .de-sutta-filter-count{
  background:rgb(255 255 255 / .14)!important;
  color:#fff7e8!important;
}

/* Cards / Compact / Newest are now genuine sidebar controls. */
.de-library-family-preview .de-library-sidebar .result-controls{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:7px!important;
  width:100%!important;
}

.de-library-family-preview .de-library-sidebar .result-controls button{
  width:100%!important;
  min-height:39px!important;
  padding:0 10px!important;
  border:1px solid var(--de-line)!important;
  border-radius:9px!important;
  background:transparent!important;
  color:var(--de-burgundy)!important;
  font:inherit!important;
  font-size:.76rem!important;
  font-weight:820!important;
  cursor:pointer!important;
}

.de-library-family-preview .de-library-sidebar .result-controls button:hover,
.de-library-family-preview .de-library-sidebar .result-controls button:focus-visible{
  border-color:var(--de-gold)!important;
  background:var(--de-warm)!important;
  outline:none!important;
}

.de-library-family-preview .de-library-sidebar .result-controls button.active{
  border-color:var(--de-burgundy)!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
}

.de-library-family-preview .de-library-sidebar [data-de-library-sort="newest"]{
  grid-column:1 / -1!important;
}

/* Result count remains above the live cards instead of competing with sidebar controls. */
.de-library-family-preview .de-library-live-main .result-toolbar{
  display:block!important;
  margin-bottom:18px!important;
}

.de-library-family-preview .de-library-live-main .result-meta{
  margin:0!important;
}

/* Search stays full-width above the main+sidebar refinement area. */
.de-library-family-preview .de-library-reference-search{
  margin-bottom:22px!important;
}

@media(max-width:1000px){
  .de-library-family-preview .de-library-live-layout{
    grid-template-columns:1fr!important;
  }

  .de-library-family-preview .de-library-sidebar{
    position:static!important;
    order:-1!important;
  }

  .de-library-family-preview .de-library-sidebar .de-sutta-library__collections{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}

@media(max-width:720px){
  .de-library-family-preview .de-library-sidebar .de-sutta-library__collections{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:460px){
  .de-library-family-preview .de-library-sidebar .de-sutta-library__collections,
  .de-library-family-preview .de-library-sidebar .result-controls{
    grid-template-columns:1fr!important;
  }

  .de-library-family-preview .de-library-sidebar [data-de-library-sort="newest"]{
    grid-column:auto!important;
  }
}

/* RC2.51 — live Nikāya archive view.
   A selected Core collection is now presented as a real archive state inside
   the approved Library UI, rather than merely as filtered cards. */

.de-library-family-preview .de-library-collection-header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:20px!important;
  align-items:end!important;
  margin:0 0 22px!important;
  padding:0 0 18px!important;
  border-bottom:1px solid var(--de-line)!important;
}

.de-library-family-preview .de-library-collection-eye{
  color:var(--de-gold)!important;
  font-size:.72rem!important;
  font-weight:880!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
}

.de-library-family-preview .de-library-collection-copy h2{
  margin:5px 0 4px!important;
  color:var(--de-burgundy)!important;
  font-size:clamp(1.85rem,3vw,2.85rem)!important;
  line-height:1.08!important;
  letter-spacing:-.03em!important;
}

.de-library-family-preview .de-library-collection-copy p{
  margin:0!important;
  color:var(--de-muted)!important;
  font-size:.9rem!important;
}

.de-library-family-preview .de-library-collection-meta{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}

.de-library-family-preview .de-library-collection-count{
  min-width:92px!important;
  padding:10px 13px!important;
  border-radius:13px!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  text-align:center!important;
}

.de-library-family-preview .de-library-collection-count strong{
  display:block!important;
  color:#fff7e8!important;
  font-size:1.45rem!important;
  line-height:1!important;
}

.de-library-family-preview .de-library-collection-count span{
  display:block!important;
  margin-top:4px!important;
  color:var(--de-soft-gold)!important;
  font-size:.63rem!important;
  font-weight:800!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}

.de-library-family-preview .de-library-collection-meta>a{
  display:inline-flex!important;
  min-height:40px!important;
  align-items:center!important;
  padding:0 12px!important;
  border:1px solid var(--de-line)!important;
  border-radius:999px!important;
  background:var(--de-surface)!important;
  color:var(--de-burgundy)!important;
  font-size:.76rem!important;
  font-weight:850!important;
  text-decoration:none!important;
}

.de-library-family-preview .de-library-collection-meta>a:hover,
.de-library-family-preview .de-library-collection-meta>a:focus-visible{
  border-color:var(--de-gold)!important;
  background:var(--de-warm)!important;
  outline:none!important;
}

/* In a collection view the compact mode behaves like the approved archive
   prototype while still using the same Core result set and pagination. */
.de-library-family-preview .de-library-live-main:has(.de-library-collection-header) .library-grid.is-compact .library-card{
  border-color:var(--de-line)!important;
}

.de-library-family-preview .de-library-live-main:has(.de-library-collection-header) .library-grid.is-compact .library-body{
  min-height:66px!important;
}

@media(max-width:720px){
  .de-library-family-preview .de-library-collection-header{
    grid-template-columns:1fr!important;
    align-items:start!important;
  }

  .de-library-family-preview .de-library-collection-meta{
    justify-content:flex-start!important;
  }
}




/* RC2.55 — generic legacy explanation box.
   Many long-form families use *-pali / *-translation / *-explanation rather
   than the later *-pali-box / *-translation-box naming. */
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-explanation-box{
  margin:14px 0 18px!important;
  padding:18px 20px!important;
  border:1px solid #d8d5cc!important;
  border-left:5px solid #9d7b42!important;
  border-radius:12px!important;
  background:#f4f5f2!important;
  color:#3d3a36!important;
  -webkit-text-fill-color:#3d3a36!important;
  font-size:clamp(1.04rem,1.1vw,1.16rem)!important;
  line-height:1.76!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-explanation-box p{
  margin:.65em 0!important;
}
body.de-custom-article .de-legacy-article-root:not(.ap-page) .de-legacy-explanation-box strong{
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
}

/* RC2.55 — Vandana family completeness.
   The historical bds-* article stored several presentational roles that do not
   map cleanly onto the generic suffix adapter.  Preserve those roles in the
   Theme so the post can remain free of page-level CSS. */
body.de-custom-article .bds-page .bds-intro{
  margin:24px 0!important;
  padding:22px 24px!important;
  border-left:6px solid var(--de-gold)!important;
  border-radius:12px!important;
  background:var(--de-warm)!important;
  color:var(--de-deep)!important;
  -webkit-text-fill-color:var(--de-deep)!important;
}

body.de-custom-article .bds-page .bds-vandana{
  margin:16px 0 24px!important;
  padding:20px 22px!important;
  border-left:5px solid var(--de-gold)!important;
  border-radius:12px!important;
  background:var(--de-warm)!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  text-align:center!important;
  font-size:clamp(1.02rem,1.15vw,1.12rem)!important;
  font-style:italic!important;
  line-height:1.7!important;
}

/* bds-list is a teaching-card grid, not an accordion list. */
body.de-custom-article .bds-page .bds-list.de-legacy-accordion-list,
body.de-custom-article .bds-page .bds-list{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px 16px!important;
  margin:14px 0!important;
}
body.de-custom-article .bds-page .bds-item{
  min-width:0!important;
  padding:14px 16px!important;
  border:1px solid var(--de-line)!important;
  border-radius:12px!important;
  background:var(--de-surface)!important;
  color:var(--de-ink)!important;
  -webkit-text-fill-color:var(--de-ink)!important;
  line-height:1.62!important;
}
body.de-custom-article .bds-page .bds-item strong{
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
}

body.de-custom-article .bds-page .bds-video-card{
  margin:24px 0!important;
  padding:18px!important;
  border:1px solid var(--de-line)!important;
  border-radius:16px!important;
  background:var(--de-surface)!important;
}
body.de-custom-article .bds-page .bds-video-label{
  margin-bottom:10px!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-weight:800!important;
}
body.de-custom-article .bds-page .bds-video{
  position:relative!important;
  width:100%!important;
  aspect-ratio:16 / 9!important;
  overflow:hidden!important;
  border-radius:12px!important;
  background:#191919!important;
}
body.de-custom-article .bds-page .bds-video iframe{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  border:0!important;
}

body.de-custom-article .bds-page .bds-footer.de-legacy-footer,
body.de-custom-article .bds-page .bds-footer{
  margin-top:28px!important;
  padding:26px!important;
  border-radius:16px!important;
  background:linear-gradient(145deg,var(--de-deep),var(--de-burgundy))!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  text-align:left!important;
  font-size:1rem!important;
}
body.de-custom-article .bds-page .bds-footer *{
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
}
body.de-custom-article .bds-page .bds-footer strong{
  color:var(--de-soft-gold)!important;
  -webkit-text-fill-color:var(--de-soft-gold)!important;
}

@media(max-width:760px){
  body.de-custom-article .bds-page .bds-list.de-legacy-accordion-list,
  body.de-custom-article .bds-page .bds-list{
    grid-template-columns:1fr!important;
  }
  body.de-custom-article .bds-page .bds-intro,
  body.de-custom-article .bds-page .bds-vandana,
  body.de-custom-article .bds-page .bds-footer{
    padding-left:18px!important;
    padding-right:18px!important;
  }
}


/* RC2.56 — legacy accordion summary hierarchy.
   Some historical accordion families (for example Iti 47 Jāgariyasutta)
   use an unclassed wrapper span containing <strong>title</strong><small>summary</small>
   rather than a family-specific *-summary-copy / *-detail-title / *-detail-subtitle
   trio.  Page-level CSS is intentionally discarded, so preserve the same
   two-line hierarchy from structural context inside the Theme. */
body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-accordion > summary > :where(span,div):not(.de-legacy-num):not(.de-legacy-manual-plus){
  flex:1 1 auto!important;
  min-width:0!important;
}
body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-accordion > summary > :where(span,div):not(.de-legacy-num):not(.de-legacy-manual-plus) > strong:first-child{
  display:block!important;
  margin:0!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1.16rem,1.42vw,1.4rem)!important;
  font-weight:800!important;
  line-height:1.35!important;
}
body.de-custom-article
.de-legacy-article-root:not(.ap-page)
.de-legacy-accordion > summary > :where(span,div):not(.de-legacy-num):not(.de-legacy-manual-plus) > small{
  display:block!important;
  margin:5px 0 0!important;
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
  font-size:.94rem!important;
  font-weight:400!important;
  line-height:1.5!important;
}

/* RC2.57 — de6 accordion summary scale and hierarchy.
   The dedicated Sense Doors family uses two direct summary children:
   a small *-section-kicker followed by a *-section-title. Generic legacy
   accordion flex rules made those siblings sit side-by-side, while the
   generic section-heading scale enlarged the title to nearly 3rem. Restore
   the intended stacked hierarchy and keep these navigation-level accordion
   headings compact without changing article content. */
body.de-custom-article .de6-page .de6-accordion > summary{
  display:block!important;
  padding:20px 58px 20px 22px!important;
}
body.de-custom-article .de6-page .de6-accordion > summary > .de6-section-kicker{
  display:block!important;
  margin:0 0 6px!important;
  max-width:1100px!important;
  color:var(--de-gold)!important;
  -webkit-text-fill-color:var(--de-gold)!important;
  font-size:.74rem!important;
  font-weight:850!important;
  letter-spacing:.11em!important;
  line-height:1.35!important;
  text-transform:uppercase!important;
}
body.de-custom-article .de6-page .de6-accordion > summary > .de6-section-title{
  display:block!important;
  margin:0!important;
  max-width:1120px!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1.3rem,2vw,2rem)!important;
  font-weight:800!important;
  line-height:1.2!important;
  letter-spacing:-.015em!important;
}
@media(max-width:760px){
  body.de-custom-article .de6-page .de6-accordion > summary{
    padding:18px 52px 18px 18px!important;
  }
  body.de-custom-article .de6-page .de6-accordion > summary > .de6-section-title{
    font-size:clamp(1.22rem,6vw,1.65rem)!important;
  }
}


/* RC2.58 — de6 accordion summary true two-line stack.
   RC2.57 supplied the correct compact typography, but the higher-specificity
   generic legacy accordion flex rule could still win after the runtime adapter
   added de-legacy classes. Match that specificity and force the Sense Doors
   kicker and title to occupy separate rows, with the disclosure control fixed
   at the right edge. */
body.de-custom-article
.de6-page.de-legacy-article-root:not(.ap-page)
.de6-accordion.de-legacy-accordion > summary{
  position:relative!important;
  display:block!important;
  align-items:initial!important;
  gap:0!important;
  padding:20px 62px 20px 24px!important;
}
body.de-custom-article
.de6-page.de-legacy-article-root:not(.ap-page)
.de6-accordion.de-legacy-accordion > summary > .de6-section-kicker{
  display:block!important;
  width:auto!important;
  max-width:none!important;
  margin:0 0 7px!important;
}
body.de-custom-article
.de6-page.de-legacy-article-root:not(.ap-page)
.de6-accordion.de-legacy-accordion > summary > .de6-section-title{
  display:block!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
}
body.de-custom-article
.de6-page.de-legacy-article-root:not(.ap-page)
.de6-accordion.de-legacy-accordion > summary::after{
  position:absolute!important;
  top:50%!important;
  right:22px!important;
  transform:translateY(-50%)!important;
  float:none!important;
}
@media(max-width:760px){
  body.de-custom-article
  .de6-page.de-legacy-article-root:not(.ap-page)
  .de6-accordion.de-legacy-accordion > summary{
    padding:18px 54px 18px 18px!important;
  }
}


/* RC2.59 — reusable category-library hubs (Notes & Essays, Samādhi, etc.) */
.de-library-intro{width:min(calc(100% - (2 * var(--de-gutter))),1480px);margin:24px auto 0!important;padding:18px 22px!important;border:1px solid var(--de-line);border-left:5px solid var(--de-gold);border-radius:12px;background:var(--de-warm)!important;color:var(--de-ink);font-family:var(--de-font);line-height:1.68}
.de-category-library{width:min(calc(100% - (2 * var(--de-gutter))),1480px);margin:26px auto 64px;font-family:var(--de-font);color:var(--de-ink)}
.de-category-library__header{margin:0 0 22px;padding:clamp(28px,4vw,48px);border:1px solid rgb(231 201 145 / .35);border-radius:18px;background:radial-gradient(circle at 88% 18%,rgb(199 146 69 / .22),transparent 24%),linear-gradient(145deg,var(--de-deep),var(--de-burgundy));color:#fff7e8;box-shadow:var(--de-shadow)}
.de-category-library__eyebrow{margin:0 0 7px;color:var(--de-soft-gold);font-size:.76rem;font-weight:850;letter-spacing:.14em;text-transform:uppercase}
.de-category-library__header h2{margin:0;color:#fff7e8;font-size:clamp(2rem,4vw,3.45rem);line-height:1.08;letter-spacing:-.035em}
.de-category-library__lead{max-width:980px;margin:12px 0 0;color:#f1dfcf;font-size:clamp(1rem,1.2vw,1.14rem);line-height:1.62}
.de-category-library__count{margin:16px 0 0!important;color:var(--de-soft-gold);font-size:.9rem;font-weight:760}
.de-category-library__grid{align-items:stretch}
.de-category-library__card{min-width:0}
.de-category-library__card .de-sutta-card__image{aspect-ratio:16/9;background:var(--de-warm)}
.de-category-library__card .de-sutta-card__image img{object-fit:contain}
.de-category-library__title{font-size:clamp(1.15rem,1.7vw,1.4rem)!important;line-height:1.25}
.de-category-library__summary{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4}
.de-category-library__action a{color:var(--de-burgundy);font-weight:850;text-decoration:none}
.de-category-library__action a:hover,.de-category-library__action a:focus-visible{text-decoration:underline;outline:none}
.de-category-library__pagination{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;margin:28px 0 0}
.de-category-library__pages{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}
.de-category-library__nav,.de-category-library__page{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;padding:8px 12px;border:1px solid var(--de-gold);border-radius:999px;background:var(--de-surface);color:var(--de-burgundy);font-weight:800;text-decoration:none}
.de-category-library__page.is-current{background:var(--de-burgundy);color:#fff7e8;border-color:var(--de-burgundy)}
.de-category-library__nav.is-disabled{opacity:.42;cursor:default}
.de-category-library__nav:not(.is-disabled):hover,.de-category-library__nav:not(.is-disabled):focus-visible,.de-category-library__page:not(.is-current):hover,.de-category-library__page:not(.is-current):focus-visible{background:var(--de-warm);outline:2px solid rgb(199 146 69 / .25)}
.de-category-library__page-status{margin:10px 0 0;text-align:center;color:var(--de-muted);font-size:.88rem}
@media(max-width:700px){.de-library-intro,.de-category-library{width:calc(100% - 28px)}.de-category-library__header{padding:26px 20px}.de-category-library__pagination{grid-template-columns:1fr 1fr}.de-category-library__pages{grid-column:1/-1;grid-row:1}.de-category-library__nav{width:100%}}


/* RC2.61 — Cards / Compact control for reusable category libraries.
   Presentation-only; [de_library] query, pagination and inventory are unchanged. */
.de-category-library__toolbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:-4px 0 18px}
.de-category-library__view-label{color:var(--de-muted);font-size:.78rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.de-category-library__view-controls{display:inline-flex;gap:6px;padding:4px;border:1px solid var(--de-line);border-radius:999px;background:var(--de-surface)}
.de-category-library__view-controls button{min-height:38px;padding:0 14px;border:1px solid transparent;border-radius:999px;background:transparent;color:var(--de-burgundy);font:inherit;font-size:.78rem;font-weight:850;cursor:pointer}
.de-category-library__view-controls button:hover,.de-category-library__view-controls button:focus-visible{border-color:var(--de-gold);background:var(--de-warm);outline:none}
.de-category-library__view-controls button.active{border-color:var(--de-burgundy);background:var(--de-burgundy);color:#fff7e8}
.de-category-library__grid.is-compact{grid-template-columns:1fr!important;gap:10px!important}
.de-category-library__grid.is-compact .de-category-library__card{display:block!important;min-height:0!important;border-radius:13px!important;box-shadow:none!important}
.de-category-library__grid.is-compact .de-category-library__image{display:none!important}
.de-category-library__grid.is-compact .de-category-library__content{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"title action" "summary action"!important;gap:4px 18px!important;align-items:center!important;padding:13px 15px!important}
.de-category-library__grid.is-compact .de-category-library__title{grid-area:title!important;margin:0!important;font-size:.98rem!important;line-height:1.3!important}
.de-category-library__grid.is-compact .de-category-library__summary{grid-area:summary!important;display:block!important;overflow:hidden!important;margin:0!important;color:var(--de-muted)!important;font-size:.78rem!important;line-height:1.4!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.de-category-library__grid.is-compact .de-category-library__action{grid-area:action!important;margin:0!important;white-space:nowrap!important}
.de-category-library__grid.is-compact .de-category-library__action a{display:inline-flex;min-height:38px;align-items:center}
@media(max-width:700px){.de-category-library__toolbar{justify-content:space-between}.de-category-library__grid.is-compact .de-category-library__content{grid-template-columns:1fr!important;grid-template-areas:"title" "summary" "action"!important;gap:6px!important}.de-category-library__grid.is-compact .de-category-library__summary{white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important}.de-category-library__grid.is-compact .de-category-library__action a{min-height:34px}}
@media(max-width:420px){.de-category-library__toolbar{align-items:flex-start;flex-direction:column}.de-category-library__view-controls{width:100%}.de-category-library__view-controls button{flex:1}}

/* RC2.62 — Retreat hub prototype parity.
   Theme-owned presentation for /retreats/; no page-level CSS. */
.de-retreat{font-family:var(--de-font);color:var(--de-ink);background:var(--de-canvas)}
.de-retreat .de-shell{width:min(100%,1480px)}
.de-retreat-kicker{text-transform:uppercase;letter-spacing:.15em;color:var(--de-soft-gold);font-size:.78rem;font-weight:850}
.de-retreat-jump{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.de-retreat-jump a{text-decoration:none;color:#fff7e8;border:1px solid rgb(231 201 145 / .36);background:rgb(255 255 255 / .05);padding:8px 12px;border-radius:999px;font-weight:720;font-size:.9rem}
.de-retreat-jump a:hover,.de-retreat-jump a:focus-visible{border-color:var(--de-soft-gold);background:rgb(255 255 255 / .10);outline:none}
.de-retreat-eyebrow{color:var(--de-gold);text-transform:uppercase;letter-spacing:.13em;font-weight:850;font-size:.76rem}
.de-retreat-section-head{display:grid;grid-template-columns:1fr minmax(300px,600px);gap:30px;align-items:end;margin-bottom:28px}
.de-retreat-section-head h2{color:var(--de-burgundy);font-size:clamp(2rem,4vw,3.45rem);line-height:1.08;letter-spacing:-.035em;margin:5px 0 0}
.de-retreat-section-head p{color:var(--de-muted);margin:0}

.de-retreat-hero{background:radial-gradient(circle at 84% 14%,rgb(199 146 69 / .20),transparent 25%),linear-gradient(145deg,var(--de-deep),var(--de-burgundy));color:#fff7e8;padding:clamp(62px,8vw,110px) 0 72px}
.de-retreat-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:48px;align-items:center}
.de-retreat-hero h1{font-size:clamp(2.7rem,5.6vw,5.3rem);line-height:1.01;letter-spacing:-.045em;margin:10px 0 17px;max-width:900px;color:#fff7e8}
.de-retreat-hero p{font-size:clamp(1.06rem,1.5vw,1.24rem);color:#f3e2d2;max-width:780px;margin:0}
.de-retreat-readiness-card{background:rgb(255 250 243 / .08);border:1px solid rgb(231 201 145 / .34);border-left:4px solid var(--de-gold);border-radius:18px;padding:25px}
.de-retreat-readiness-card strong{display:block;color:var(--de-soft-gold);text-transform:uppercase;letter-spacing:.1em;font-size:.74rem;margin-bottom:9px}
.de-retreat-readiness-card h3{margin:0 0 9px;font-size:1.45rem;color:#fff7e8}
.de-retreat-readiness-card p{font-size:.98rem;color:#f0dfce;margin:0}
.de-retreat-readiness-card a{display:inline-flex;margin-top:17px;min-height:44px;align-items:center;padding:0 15px;background:var(--de-gold);color:var(--de-deep);border-radius:999px;text-decoration:none;font-weight:900}
.de-retreat-readiness-card a:hover,.de-retreat-readiness-card a:focus-visible{background:var(--de-soft-gold);outline:3px solid rgb(231 201 145 / .22);outline-offset:2px}

.de-retreat-section{padding:clamp(54px,7vw,88px) 0}
.de-retreat-section.is-warm{background:var(--de-warm)}
.de-retreat-priority-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}
.de-retreat-priority-card{background:var(--de-surface);border:1px solid var(--de-line);border-radius:16px;padding:20px;min-height:190px;text-decoration:none;display:flex;flex-direction:column;transition:.16s ease}
.de-retreat-priority-card:hover,.de-retreat-priority-card:focus-visible{border-color:var(--de-gold);box-shadow:var(--de-shadow);transform:translateY(-2px);outline:none}
.de-retreat-priority-card .de-retreat-num{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--de-burgundy);color:#fff7e8;border:2px solid var(--de-gold);font-weight:900}
.de-retreat-priority-card b{display:block;color:var(--de-burgundy);font-size:1.05rem;line-height:1.2;margin:14px 0 6px}
.de-retreat-priority-card span{display:block;color:var(--de-muted);font-size:.84rem;line-height:1.4}
.de-retreat-priority-card .de-retreat-go{margin-top:auto;padding-top:14px;color:var(--de-burgundy);font-weight:850;font-size:.84rem}

.de-retreat-current-panel{display:grid;grid-template-columns:1.08fr .92fr;gap:18px}
.de-retreat-current-main{background:var(--de-deep);color:#fff7e8;border-radius:20px;padding:31px;min-height:330px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden}
.de-retreat-current-main::before{content:"RETREAT";position:absolute;right:18px;top:6px;color:rgb(231 201 145 / .11);font-size:clamp(4rem,10vw,8rem);font-weight:900;letter-spacing:-.08em}
.de-retreat-current-main .de-retreat-eyebrow{color:var(--de-soft-gold)}
.de-retreat-current-main h3{font-size:clamp(2rem,3.5vw,3rem);line-height:1.07;margin:8px 0 10px;max-width:700px;position:relative;z-index:2;color:#fff7e8}
.de-retreat-current-main p{color:#efddcc;margin:0;max-width:680px;position:relative;z-index:2}
.de-retreat-current-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px;position:relative;z-index:2}
.de-retreat-current-meta span{border:1px solid rgb(231 201 145 / .28);border-radius:999px;padding:6px 9px;font-size:.78rem;color:#f8e9d9}
.de-retreat-current-main a{color:var(--de-soft-gold);font-weight:900;text-decoration:none;margin-top:17px;position:relative;z-index:2}
.de-retreat-current-side{display:grid;gap:12px}
.de-retreat-current-side .de-retreat-info{background:var(--de-surface);border:1px solid var(--de-line);border-radius:15px;padding:19px}
.de-retreat-current-side small{color:var(--de-gold);font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.de-retreat-current-side b{display:block;color:var(--de-burgundy);font-size:1.08rem;line-height:1.25;margin:6px 0}
.de-retreat-current-side p{color:var(--de-muted);font-size:.85rem;line-height:1.42;margin:0}

.de-retreat-prep-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.de-retreat-prep{background:var(--de-surface);border:1px solid var(--de-line);border-radius:16px;padding:21px;min-height:235px}
.de-retreat-prep .de-retreat-icon{width:42px;height:42px;border-radius:12px;background:var(--de-warm);display:grid;place-items:center;color:var(--de-burgundy);font-weight:900;border:1px solid rgb(199 146 69 / .34)}
.de-retreat-prep h3{color:var(--de-burgundy);font-size:1.2rem;line-height:1.2;margin:14px 0 7px}
.de-retreat-prep p{color:var(--de-muted);font-size:.87rem;line-height:1.45;margin:0}
.de-retreat-prep a{display:inline-block;margin-top:14px;color:var(--de-burgundy);font-weight:850;text-decoration:none}

.de-retreat-training-shell{background:var(--de-surface);border:1px solid var(--de-line);border-radius:20px;padding:clamp(22px,3vw,35px)}
.de-retreat-path{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:22px}
.de-retreat-step{position:relative;border:1px solid rgb(199 146 69 / .44);background:#fffdf8;border-radius:13px;padding:16px 14px;min-height:116px}
.de-retreat-step:not(:last-child)::after{content:"›";position:absolute;right:-10px;top:50%;transform:translateY(-50%);color:var(--de-gold);font-size:1.45rem;font-weight:900;z-index:2}
.de-retreat-step small{display:block;color:var(--de-gold);font-weight:850;letter-spacing:.08em;font-size:.67rem}
.de-retreat-step b{display:block;color:var(--de-burgundy);margin-top:8px;line-height:1.18}
.de-retreat-step span{display:block;color:var(--de-muted);font-size:.78rem;line-height:1.35;margin-top:4px}

.de-retreat-sutta-retreat{display:grid;grid-template-columns:.78fr 1.22fr;gap:22px}
.de-retreat-sutta-intro{background:var(--de-burgundy);color:#fff7e8;border-radius:18px;padding:30px}
.de-retreat-sutta-intro .de-retreat-eyebrow{color:var(--de-soft-gold)}
.de-retreat-sutta-intro h2{color:#fff7e8;margin:5px 0 10px;font-size:clamp(2rem,4vw,3.25rem);line-height:1.08;letter-spacing:-.035em}
.de-retreat-sutta-intro p{color:#f0ddcc;margin:0}
.de-retreat-sutta-list{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.de-retreat-sutta-card{background:var(--de-surface);border:1px solid var(--de-line);border-radius:14px;padding:18px;text-decoration:none}
.de-retreat-sutta-card:hover,.de-retreat-sutta-card:focus-visible{border-color:var(--de-gold);outline:none}
.de-retreat-sutta-card small{display:block;color:var(--de-gold);text-transform:uppercase;letter-spacing:.08em;font-weight:850;font-size:.66rem}
.de-retreat-sutta-card b{display:block;color:var(--de-burgundy);line-height:1.25;margin-top:6px}
.de-retreat-sutta-card span{display:block;color:var(--de-muted);font-size:.82rem;line-height:1.4;margin-top:4px}

.de-retreat-registration-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.de-retreat-reg-step{background:var(--de-surface);border:1px solid var(--de-line);border-radius:15px;padding:19px;position:relative}
.de-retreat-reg-step .de-retreat-num{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--de-burgundy);color:#fff7e8;border:2px solid var(--de-gold);font-weight:900}
.de-retreat-reg-step h3{color:var(--de-burgundy);font-size:1.08rem;margin:13px 0 6px}
.de-retreat-reg-step p{color:var(--de-muted);font-size:.84rem;line-height:1.4;margin:0}
.de-retreat-reg-cta{margin-top:20px;background:var(--de-burgundy);color:#fff7e8;border-radius:18px;padding:26px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.de-retreat-reg-cta h3{font-size:1.55rem;margin:0 0 6px;color:#fff7e8}
.de-retreat-reg-cta p{margin:0;color:#f0ddcc;max-width:800px}
.de-retreat-reg-cta a{display:inline-flex;min-height:46px;align-items:center;padding:0 18px;background:var(--de-gold);color:var(--de-deep);border-radius:999px;text-decoration:none;font-weight:900;white-space:nowrap}

.de-retreat-record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.de-retreat-record{background:var(--de-surface);border:1px solid var(--de-line);border-radius:15px;padding:20px;text-decoration:none}
.de-retreat-record:hover,.de-retreat-record:focus-visible{border-color:var(--de-gold);box-shadow:0 7px 18px rgb(61 9 23 / .05);outline:none}
.de-retreat-record small{color:var(--de-gold);text-transform:uppercase;letter-spacing:.08em;font-weight:850;font-size:.67rem}
.de-retreat-record b{display:block;color:var(--de-burgundy);font-size:1.08rem;line-height:1.25;margin:7px 0}
.de-retreat-record span{display:block;color:var(--de-muted);font-size:.84rem;line-height:1.4}

@media(max-width:1150px){
  .de-retreat-priority-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .de-retreat-prep-grid,.de-retreat-registration-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
  .de-retreat-path{grid-template-columns:repeat(3,minmax(0,1fr))}
  .de-retreat-step:nth-child(3)::after{display:none}
}
@media(max-width:1024px){
  .de-retreat-hero-grid,.de-retreat-current-panel,.de-retreat-sutta-retreat{grid-template-columns:1fr}
}
@media(max-width:720px){
  .de-retreat-section-head{grid-template-columns:1fr;align-items:start}
  .de-retreat-priority-grid,.de-retreat-prep-grid,.de-retreat-registration-flow,.de-retreat-record-grid,.de-retreat-sutta-list{grid-template-columns:1fr}
  .de-retreat-path{grid-template-columns:1fr 1fr}
  .de-retreat-step::after{display:none!important}
  .de-retreat-reg-cta{display:block}
  .de-retreat-reg-cta a{margin-top:18px}
}
@media(max-width:520px){
  .de-retreat-path{grid-template-columns:1fr}
}



/* RC2.63 — About hub prototype parity.
   Theme-owned presentation for /about/; no page-level CSS. */
.de-about{font-family:var(--de-font);color:var(--de-ink);background:var(--de-canvas)}
.de-about .de-shell{width:min(100%,1480px)}
.de-about-kicker{color:var(--de-soft-gold);text-transform:uppercase;letter-spacing:.15em;font-size:.78rem;font-weight:850}
.de-about-eyebrow{color:var(--de-gold);text-transform:uppercase;letter-spacing:.13em;font-weight:850;font-size:.76rem}
.de-about-jump{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.de-about-jump a{text-decoration:none;color:#fff7e8;border:1px solid rgb(231 201 145 / .36);background:rgb(255 255 255 / .05);padding:8px 12px;border-radius:999px;font-weight:720;font-size:.9rem}
.de-about-jump a:hover,.de-about-jump a:focus-visible{border-color:var(--de-soft-gold);background:rgb(255 255 255 / .10);outline:none}
.de-about-section{padding:clamp(54px,7vw,88px) 0}
.de-about-section.is-warm{background:var(--de-warm)}
.de-about-section-head{display:grid;grid-template-columns:1fr minmax(300px,600px);gap:30px;align-items:end;margin-bottom:28px}
.de-about-section-head h2{color:var(--de-burgundy);font-size:clamp(2rem,4vw,3.45rem);line-height:1.08;letter-spacing:-.035em;margin:5px 0 0}
.de-about-section-head p{color:var(--de-muted);margin:0}

.de-about-hero{background:radial-gradient(circle at 84% 14%,rgb(199 146 69 / .18),transparent 25%),linear-gradient(145deg,var(--de-deep),var(--de-burgundy));color:#fff7e8;padding:clamp(62px,8vw,110px) 0 72px}
.de-about-hero-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(330px,.88fr);gap:48px;align-items:center}
.de-about-hero h1{font-size:clamp(2.7rem,5.6vw,5.25rem);line-height:1.01;letter-spacing:-.045em;margin:10px 0 17px;max-width:900px;color:#fff7e8}
.de-about-hero p{font-size:clamp(1.06rem,1.5vw,1.24rem);color:#f3e2d2;max-width:780px;margin:0}
.de-about-principle{background:rgb(255 250 243 / .08);border:1px solid rgb(231 201 145 / .34);border-left:4px solid var(--de-gold);border-radius:18px;padding:25px}
.de-about-principle strong{display:block;color:var(--de-soft-gold);text-transform:uppercase;letter-spacing:.1em;font-size:.73rem;margin-bottom:9px}
.de-about-principle p{font-size:1rem;color:#f0dfce;margin:0}

.de-about-nav-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.de-about-nav-card{background:var(--de-surface);border:1px solid var(--de-line);border-radius:17px;padding:22px;text-decoration:none;min-height:225px;display:flex;flex-direction:column;transition:.16s ease}
.de-about-nav-card:hover,.de-about-nav-card:focus-visible{border-color:var(--de-gold);box-shadow:var(--de-shadow);transform:translateY(-2px);outline:none}
.de-about-nav-card .de-about-icon{width:42px;height:42px;border-radius:12px;background:var(--de-warm);display:grid;place-items:center;color:var(--de-burgundy);font-weight:900;border:1px solid rgb(199 146 69 / .34)}
.de-about-nav-card h3{color:var(--de-burgundy);font-size:1.25rem;line-height:1.2;margin:15px 0 7px}
.de-about-nav-card p{color:var(--de-muted);font-size:.87rem;line-height:1.45;margin:0}
.de-about-nav-card .de-about-go{margin-top:auto;padding-top:14px;color:var(--de-burgundy);font-weight:850;font-size:.84rem}

.de-about-identity-layout{display:grid;grid-template-columns:.92fr 1.08fr;gap:22px;align-items:stretch}
.de-about-identity-panel{background:var(--de-burgundy);color:#fff7e8;border-radius:20px;padding:31px;display:flex;flex-direction:column;justify-content:center}
.de-about-identity-panel .de-about-eyebrow{color:var(--de-soft-gold)}
.de-about-identity-panel h2{color:#fff7e8;font-size:clamp(2rem,3.8vw,3.35rem);line-height:1.08;letter-spacing:-.035em;margin:5px 0 12px}
.de-about-identity-panel p{color:#f0ddcc;margin:0}
.de-about-identity-points{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.de-about-identity-point{background:var(--de-surface);border:1px solid var(--de-line);border-radius:15px;padding:19px}
.de-about-identity-point small{color:var(--de-gold);text-transform:uppercase;letter-spacing:.09em;font-weight:850;font-size:.67rem}
.de-about-identity-point b{display:block;color:var(--de-burgundy);font-size:1.05rem;line-height:1.24;margin:7px 0 5px}
.de-about-identity-point span{display:block;color:var(--de-muted);font-size:.83rem;line-height:1.42}

.de-about-direction-shell{background:linear-gradient(135deg,#fffaf3,#f9e7cf);border:1px solid rgb(199 146 69 / .32);border-radius:20px;padding:28px}
.de-about-direction-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-top:22px}
.de-about-direction-card{background:#fffdf8;border:1px solid rgb(199 146 69 / .42);border-radius:14px;padding:18px}
.de-about-direction-card small{color:var(--de-gold);font-weight:850;letter-spacing:.08em;font-size:.67rem;text-transform:uppercase}
.de-about-direction-card b{display:block;color:var(--de-burgundy);font-size:1.04rem;line-height:1.2;margin:8px 0 5px}
.de-about-direction-card span{display:block;color:var(--de-muted);font-size:.81rem;line-height:1.38}

.de-about-teacher-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:22px}
.de-about-teacher-card{background:var(--de-deep);color:#fff7e8;border-radius:19px;padding:29px}
.de-about-teacher-card .de-about-eyebrow{color:var(--de-soft-gold)}
.de-about-teacher-card h2{color:#fff7e8;font-size:clamp(2rem,3.3vw,2.8rem);line-height:1.08;letter-spacing:-.03em;margin:5px 0 12px}
.de-about-teacher-card p{color:#efddcc;margin:0}
.de-about-teacher-links{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}
.de-about-teacher-links a{display:inline-flex;min-height:44px;align-items:center;padding:0 14px;border-radius:999px;text-decoration:none;font-weight:850}
.de-about-teacher-links .is-primary{background:var(--de-gold);color:var(--de-deep)}
.de-about-teacher-links .is-secondary{border:1px solid rgb(231 201 145 / .34);color:#fff7e8}
.de-about-approach-list{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.de-about-approach{background:var(--de-surface);border:1px solid var(--de-line);border-radius:15px;padding:18px}
.de-about-approach b{display:block;color:var(--de-burgundy);font-size:1.03rem;line-height:1.22}
.de-about-approach span{display:block;color:var(--de-muted);font-size:.83rem;line-height:1.42;margin-top:5px}

.de-about-visit-layout{display:grid;grid-template-columns:.78fr 1.22fr;gap:20px}
.de-about-contact-card{background:var(--de-burgundy);color:#fff7e8;border-radius:20px;padding:30px}
.de-about-contact-card .de-about-eyebrow{color:var(--de-soft-gold)}
.de-about-contact-card h2{color:#fff7e8;font-size:clamp(2rem,3.3vw,2.8rem);line-height:1.08;margin:5px 0 12px}
.de-about-contact-card p,.de-about-contact-card a{color:#f1dfcf}
.de-about-contact-card a{font-weight:800;text-decoration:none}
.de-about-contact-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}
.de-about-contact-actions a{display:inline-flex;min-height:44px;align-items:center;padding:0 14px;border-radius:999px;text-decoration:none;font-weight:850}
.de-about-contact-actions .is-primary{background:var(--de-gold);color:var(--de-deep)}
.de-about-contact-actions .is-secondary{border:1px solid rgb(231 201 145 / .34);color:#fff7e8}
.de-about-map-card{background:var(--de-surface);border:1px solid var(--de-line);border-radius:20px;padding:24px;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.de-about-map-embed{min-height:260px;border-radius:14px;overflow:hidden;border:1px solid rgb(199 146 69 / .34);background:var(--de-warm)}
.de-about-map-embed iframe{display:block;width:100%;height:100%;min-height:260px;border:0}
.de-about-travel-info{display:flex;flex-direction:column;justify-content:center}
.de-about-travel-info small{color:var(--de-gold);text-transform:uppercase;letter-spacing:.09em;font-weight:850;font-size:.67rem}
.de-about-travel-info h3{color:var(--de-burgundy);font-size:1.2rem;line-height:1.24;margin:8px 0}
.de-about-travel-info p{color:var(--de-muted);font-size:.88rem;line-height:1.5;margin:0}
.de-about-travel-info a{color:var(--de-burgundy);font-weight:850;text-decoration:none;margin-top:14px}

.de-about-utility-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.de-about-utility{background:var(--de-surface);border:1px solid var(--de-line);border-radius:16px;padding:22px;text-decoration:none;min-height:185px;display:flex;flex-direction:column;transition:.16s ease}
.de-about-utility:hover,.de-about-utility:focus-visible{border-color:var(--de-gold);box-shadow:var(--de-shadow);outline:none}
.de-about-utility small{color:var(--de-gold);text-transform:uppercase;letter-spacing:.09em;font-weight:850;font-size:.68rem}
.de-about-utility h3{color:var(--de-burgundy);font-size:1.28rem;line-height:1.22;margin:8px 0 6px}
.de-about-utility p{color:var(--de-muted);font-size:.87rem;line-height:1.45;margin:0}
.de-about-utility .de-about-go{margin-top:auto;padding-top:14px;color:var(--de-burgundy);font-weight:850;font-size:.84rem}

.de-about-notes-strip{display:grid;grid-template-columns:.78fr 1.22fr;gap:22px}
.de-about-notes-intro{background:var(--de-burgundy);color:#fff7e8;border-radius:18px;padding:29px}
.de-about-notes-intro .de-about-eyebrow{color:var(--de-soft-gold)}
.de-about-notes-intro h2{color:#fff7e8;font-size:clamp(2rem,3.5vw,3rem);line-height:1.08;letter-spacing:-.03em;margin:5px 0 10px}
.de-about-notes-intro p{color:#f0ddcc;margin:0}
.de-about-note-list{display:grid;grid-template-columns:1fr;gap:12px}
.de-about-note{background:var(--de-surface);border:1px solid var(--de-line);border-radius:14px;padding:18px;text-decoration:none}
.de-about-note:hover,.de-about-note:focus-visible{border-color:var(--de-gold);outline:none}
.de-about-note small{display:block;color:var(--de-gold);text-transform:uppercase;letter-spacing:.08em;font-weight:850;font-size:.66rem}
.de-about-note b{display:block;color:var(--de-burgundy);font-size:1.05rem;line-height:1.25;margin:5px 0}
.de-about-note span{display:block;color:var(--de-muted);font-size:.82rem;line-height:1.4}

@media(max-width:1100px){
  .de-about-nav-grid,.de-about-direction-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1024px){
  .de-about-hero-grid,.de-about-identity-layout,.de-about-teacher-layout,.de-about-visit-layout,.de-about-notes-strip{grid-template-columns:1fr}
}
@media(max-width:720px){
  .de-about-section-head{grid-template-columns:1fr;align-items:start}
  .de-about-nav-grid,.de-about-identity-points,.de-about-direction-grid,.de-about-approach-list,.de-about-utility-grid,.de-about-map-card{grid-template-columns:1fr}
  .de-about-nav-card{min-height:0}
}

/* RC2.64 — production-hardened Library and header refinements.
   These rules replace the temporary WordPress Additional CSS used during cutover. */
.de-library-page .de-sutta-library__grid{
  align-items:start;
}
.de-library-page .de-sutta-card{
  align-self:start;
  height:auto!important;
  min-height:0!important;
}
.de-library-page .de-sutta-card__content{
  display:flex!important;
  min-width:0;
  flex-direction:column;
  padding:18px!important;
}
.de-library-page .de-sutta-card__title{
  margin:0 0 7px!important;
  font-size:1.15rem!important;
  font-weight:850!important;
  line-height:1.27!important;
}
.de-library-page .de-sutta-card__title a{
  font-size:inherit!important;
  line-height:inherit!important;
}
.de-library-page .de-sutta-card__summary{
  display:-webkit-box!important;
  overflow:hidden!important;
  margin:0!important;
  font-size:.84rem!important;
  line-height:1.46!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:5!important;
  line-clamp:5;
}
.de-library-page .de-sutta-card__action{
  margin:0!important;
  padding-top:16px!important;
}
.de-library-page .de-sutta-card__action a{
  font-size:.84rem!important;
  font-weight:850!important;
  line-height:1.3!important;
}
.de-library-page .de-sutta-card__image{
  overflow:hidden;
  aspect-ratio:3/2;
}
.de-library-page .de-sutta-card__image img{
  display:block;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
}
.de-header-search button{
  display:inline-flex!important;
  width:46px!important;
  min-width:46px!important;
  height:46px!important;
  flex:0 0 46px!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  border-radius:999px!important;
  background:var(--wp--preset--color--burgundy)!important;
  color:var(--wp--preset--color--cream-light)!important;
  font-size:1.45rem!important;
  line-height:1!important;
}
.de-header-search + .de-join{
  margin-left:14px!important;
}
@media(max-width:900px){
  .de-header-search button{
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    flex-basis:42px!important;
    font-size:1.3rem!important;
  }
  .de-header-search + .de-join{
    margin-left:10px!important;
  }
}
@media(max-width:700px){
  .de-library-page .de-sutta-card__content{
    padding:16px!important;
  }
  .de-library-page .de-sutta-card__title{
    font-size:1.05rem!important;
  }
  .de-library-page .de-sutta-card__summary{
    font-size:.82rem!important;
    -webkit-line-clamp:6!important;
    line-clamp:6;
  }
}


/* RC2.65 — SN 25.1–25.10 legacy accordion compatibility.
   This historical article family uses de-sn25-sutta / summary-row / number
   rather than the generic *-detail / *-module accordion suffixes. Its old
   page-level <style> is intentionally omitted by the custom-article renderer,
   so restore the intended accordion hierarchy from the Theme without editing
   the post body or reintroducing Additional CSS. */
body.de-custom-article .de-sn25-page .de-sn25-sutta{
  margin:20px 0!important;
  overflow:hidden!important;
  border:1px solid var(--de-line)!important;
  border-radius:18px!important;
  background:var(--de-surface)!important;
  box-shadow:0 8px 24px rgb(61 9 23 / .045)!important;
}
body.de-custom-article .de-sn25-page .de-sn25-sutta > summary{
  position:relative!important;
  display:block!important;
  padding:20px 62px 20px 20px!important;
  cursor:pointer!important;
  list-style:none!important;
  background:linear-gradient(135deg,var(--de-surface),var(--de-warm))!important;
  border-bottom:1px solid transparent!important;
}
body.de-custom-article .de-sn25-page .de-sn25-sutta > summary::-webkit-details-marker{
  display:none!important;
}
body.de-custom-article .de-sn25-page .de-sn25-sutta > summary::marker{
  content:""!important;
}
body.de-custom-article .de-sn25-page .de-sn25-sutta > summary::after{
  position:absolute!important;
  top:50%!important;
  right:22px!important;
  content:"+"!important;
  transform:translateY(-50%)!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:1.45rem!important;
  font-weight:800!important;
  line-height:1!important;
}
body.de-custom-article .de-sn25-page .de-sn25-sutta[open] > summary{
  border-bottom-color:var(--de-line)!important;
}
body.de-custom-article .de-sn25-page .de-sn25-sutta[open] > summary::after{
  content:"−"!important;
}
body.de-custom-article .de-sn25-page .de-sn25-summary-row{
  display:flex!important;
  align-items:center!important;
  gap:16px!important;
  min-width:0!important;
}
body.de-custom-article .de-sn25-page .de-sn25-summary-row > span:last-child{
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
}
body.de-custom-article .de-sn25-page .de-sn25-number{
  display:grid!important;
  place-items:center!important;
  flex:0 0 44px!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  padding:0!important;
  border:2px solid var(--de-gold)!important;
  border-radius:50%!important;
  background:var(--de-burgundy)!important;
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
  font-size:.82rem!important;
  font-weight:900!important;
  line-height:1!important;
  font-variant-numeric:tabular-nums!important;
}
body.de-custom-article .de-sn25-page .de-sn25-summary-title{
  display:block!important;
  margin:0!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:clamp(1.16rem,1.6vw,1.48rem)!important;
  font-weight:800!important;
  line-height:1.3!important;
  letter-spacing:-.01em!important;
}
body.de-custom-article .de-sn25-page .de-sn25-summary-subtitle{
  display:block!important;
  margin:5px 0 0!important;
  padding:0!important;
  border:0!important;
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
  font-size:.94rem!important;
  font-weight:500!important;
  line-height:1.45!important;
}
body.de-custom-article .de-sn25-page .de-sn25-sutta-content{
  padding:clamp(22px,3vw,38px)!important;
  background:var(--de-surface)!important;
}
@media(max-width:760px){
  body.de-custom-article .de-sn25-page .de-sn25-sutta > summary{
    padding:17px 50px 17px 14px!important;
  }
  body.de-custom-article .de-sn25-page .de-sn25-summary-row{
    align-items:flex-start!important;
    gap:12px!important;
  }
  body.de-custom-article .de-sn25-page .de-sn25-number{
    flex-basis:40px!important;
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
  }
  body.de-custom-article .de-sn25-page .de-sn25-summary-title{
    font-size:clamp(1.08rem,5.4vw,1.34rem)!important;
  }
  body.de-custom-article .de-sn25-page .de-sn25-summary-subtitle{
    font-size:.9rem!important;
  }
  body.de-custom-article .de-sn25-page .de-sn25-sutta-content{
    padding:20px 14px!important;
  }
}


/* RC2.66 — SN 25 legacy reading scale + foundation accordions.
   Keep this historical long-form study readable under the global legacy
   renderer and give the pre-SN25 foundation material the same disclosure
   hierarchy as the ten sutta studies, without editing the post body. */
body.de-custom-article .de-sn25-page .de-sn25-segment{
  font-size:clamp(1.16rem,1.35vw,1.28rem)!important;
  line-height:1.78!important;
}
body.de-custom-article .de-sn25-page .de-sn25-lead{
  font-size:clamp(1.2rem,1.5vw,1.34rem)!important;
  line-height:1.76!important;
}
body.de-custom-article .de-sn25-page .de-sn25-text-card{
  line-height:1.78!important;
}
body.de-custom-article .de-sn25-page .de-sn25-subhead{
  font-size:clamp(1.28rem,1.75vw,1.52rem)!important;
  line-height:1.4!important;
}
body.de-custom-article .de-sn25-page .de-sn25-caption{
  font-size:1rem!important;
  line-height:1.5!important;
}
body.de-custom-article .wp-block-post-content:has(.de-sn25-page) > p.full-width.has-background:first-child{
  font-size:clamp(1.14rem,1.3vw,1.24rem)!important;
  line-height:1.76!important;
}
body.de-custom-article .de-sn25-page .de-sn25-foundation-toolbar{
  margin:18px 0 22px!important;
}
body.de-custom-article .de-sn25-page .de-sn25-foundation-accordion{
  scroll-margin-top:calc(var(--dhamma-admin-bar-offset,0px) + var(--dhamma-site-header-height,0px) + 24px)!important;
}
body.de-custom-article .de-sn25-page .de-sn25-foundation-content{
  padding-top:clamp(18px,2.4vw,30px)!important;
}
body.de-custom-article .de-sn25-page .de-sn25-foundation-content > :first-child{
  margin-top:0!important;
}
body.de-custom-article .de-sn25-page .de-sn25-foundation-content > :last-child{
  margin-bottom:0!important;
}
@media(max-width:760px){
  body.de-custom-article .de-sn25-page .de-sn25-segment{
    font-size:1.1rem!important;
    line-height:1.72!important;
  }
  body.de-custom-article .de-sn25-page .de-sn25-lead{
    font-size:1.14rem!important;
  }
  body.de-custom-article .de-sn25-page .de-sn25-subhead{
    font-size:1.22rem!important;
  }
  body.de-custom-article .wp-block-post-content:has(.de-sn25-page) > p.full-width.has-background:first-child{
    font-size:1.08rem!important;
    line-height:1.7!important;
  }
}

/* ==========================================================
   RC2.70 — Essential Study banner
   Theme-owned replacement for the former Alves-era prerequisite banner.
   The explicit Group style is the canonical authoring surface. The narrow
   :has() selectors below preserve older stored Sati-Sampajañña banners and
   standalone prerequisite links without converting ordinary inline links.
   ========================================================== */

.wp-block-group.is-style-dhamma-essential-study,
.dhamma-essential-study {
  box-sizing:border-box;
  display:flex;
  width:100%;
  max-width:100%;
  min-width:0;
  align-items:center;
  gap:16px;
  margin:var(--wp--preset--spacing--l) 0;
  padding:18px 22px;
  border:2px solid var(--wp--preset--color--gold);
  border-inline-start-width:8px;
  border-radius:12px;
  background:var(--wp--preset--color--burgundy);
  color:var(--wp--preset--color--cream-light);
  box-shadow:0 4px 14px rgb(61 9 23 / .14);
}

.wp-block-group.is-style-dhamma-essential-study > *,
.dhamma-essential-study > * {
  min-width:0;
}

.dhamma-essential-study__icon {
  display:grid;
  flex:0 0 2.7rem;
  place-items:center;
  width:2.7rem;
  min-width:2.7rem;
  aspect-ratio:1;
  margin:0;
  border:2px solid var(--wp--preset--color--gold);
  border-radius:999px;
  color:var(--wp--preset--color--gold-soft);
  font-size:1.25rem;
  font-weight:900;
  line-height:1;
}

.dhamma-essential-study__body {
  flex:1 1 0;
  min-width:0;
}

.dhamma-essential-study__title,
.dhamma-essential-study__text,
.dhamma-essential-study__arrow {
  margin:0;
}

.dhamma-essential-study__title {
  color:var(--wp--preset--color--cream-light);
  font-size:clamp(1.05rem,1.5vw,1.22rem);
  font-weight:800;
  line-height:1.35;
}

.dhamma-essential-study__text {
  margin-top:4px;
  color:var(--wp--preset--color--cream-light);
  font-size:var(--wp--preset--font-size--body);
  line-height:1.55;
}

.dhamma-essential-study__arrow {
  flex:0 0 auto;
  color:var(--wp--preset--color--gold-soft);
  font-size:1.75rem;
  font-weight:900;
  line-height:1;
}

.wp-block-group.is-style-dhamma-essential-study a,
.wp-block-group.is-style-dhamma-essential-study a:visited,
.dhamma-essential-study a,
.dhamma-essential-study a:visited {
  color:var(--wp--preset--color--cream-light)!important;
  -webkit-text-fill-color:var(--wp--preset--color--cream-light)!important;
  text-decoration:none!important;
}

.wp-block-group.is-style-dhamma-essential-study a:hover,
.wp-block-group.is-style-dhamma-essential-study a:focus-visible,
.dhamma-essential-study a:hover,
.dhamma-essential-study a:focus-visible {
  color:var(--wp--preset--color--gold-soft)!important;
  -webkit-text-fill-color:var(--wp--preset--color--gold-soft)!important;
  text-decoration:underline!important;
  text-decoration-thickness:2px!important;
  text-underline-offset:.18em!important;
}

/* Current v3 generated Group shape: star + linked study + arrow. */
:where(.wp-block-post-content,.entry-content,.dhamma-page)
.wp-block-group.has-burgundy-background-color.has-cream-light-color:has(a[href*="/sati-sampajanna/"]) {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  gap:16px!important;
  margin:var(--wp--preset--spacing--l) 0!important;
  padding:18px 22px!important;
  border:2px solid var(--wp--preset--color--gold)!important;
  border-inline-start-width:8px!important;
  border-radius:12px!important;
  background:var(--wp--preset--color--burgundy)!important;
  color:var(--wp--preset--color--cream-light)!important;
  box-shadow:0 4px 14px rgb(61 9 23 / .14)!important;
}

:where(.wp-block-post-content,.entry-content,.dhamma-page)
.wp-block-group.has-burgundy-background-color.has-cream-light-color:has(a[href*="/sati-sampajanna/"]) a,
:where(.wp-block-post-content,.entry-content,.dhamma-page)
.wp-block-group.has-burgundy-background-color.has-cream-light-color:has(a[href*="/sati-sampajanna/"]) a:visited {
  color:var(--wp--preset--color--cream-light)!important;
  -webkit-text-fill-color:var(--wp--preset--color--cream-light)!important;
  text-decoration:none!important;
}

/*
 * Legacy saved content: only a standalone Sati-Sampajañña prerequisite link
 * becomes a banner. Inline references inside normal prose are deliberately
 * left alone.
 */
:where(.wp-block-post-content,.entry-content,.dhamma-page)
:is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child) {
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:2.7rem minmax(0,1fr) auto!important;
  align-items:center!important;
  column-gap:16px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:var(--wp--preset--spacing--l) 0!important;
  padding:18px 22px!important;
  border:2px solid var(--wp--preset--color--gold)!important;
  border-inline-start-width:8px!important;
  border-radius:12px!important;
  background:var(--wp--preset--color--burgundy)!important;
  color:var(--wp--preset--color--cream-light)!important;
  box-shadow:0 4px 14px rgb(61 9 23 / .14)!important;
  font-size:var(--wp--preset--font-size--body)!important;
  font-style:normal!important;
  line-height:1.55!important;
}

:where(.wp-block-post-content,.entry-content,.dhamma-page)
:is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child)::before {
  content:"★";
  display:grid;
  place-items:center;
  width:2.7rem;
  min-width:2.7rem;
  aspect-ratio:1;
  border:2px solid var(--wp--preset--color--gold);
  border-radius:999px;
  color:var(--wp--preset--color--gold-soft);
  font-size:1.25rem;
  font-weight:900;
  line-height:1;
}

:where(.wp-block-post-content,.entry-content,.dhamma-page)
:is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child)::after {
  content:"→";
  color:var(--wp--preset--color--gold-soft);
  font-size:1.75rem;
  font-weight:900;
  line-height:1;
}

:where(.wp-block-post-content,.entry-content,.dhamma-page)
:is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child) > a,
:where(.wp-block-post-content,.entry-content,.dhamma-page)
:is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child) > a:visited {
  display:block!important;
  min-width:0!important;
  padding:0!important;
  color:var(--wp--preset--color--cream-light)!important;
  -webkit-text-fill-color:var(--wp--preset--color--cream-light)!important;
  background:transparent!important;
  font-size:inherit!important;
  line-height:inherit!important;
  text-decoration:none!important;
}

:where(.wp-block-post-content,.entry-content,.dhamma-page)
:is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child) > a * {
  color:inherit!important;
  -webkit-text-fill-color:inherit!important;
}

:where(.wp-block-post-content,.entry-content,.dhamma-page)
:is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child) > a strong {
  display:block!important;
  margin:0 0 4px!important;
  font-size:clamp(1.05rem,1.5vw,1.22rem)!important;
  font-weight:800!important;
  line-height:1.35!important;
}

/* Old saved banners already contain their own floated arrow. Theme owns it now. */
:where(.wp-block-post-content,.entry-content,.dhamma-page)
:is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child) > a > b[aria-hidden="true"] {
  display:none!important;
}

@media(max-width:600px){
  .wp-block-group.is-style-dhamma-essential-study,
  .dhamma-essential-study {
    align-items:flex-start;
    gap:12px;
    padding:16px;
  }

  .dhamma-essential-study__icon {
    flex-basis:2.35rem;
    width:2.35rem;
    min-width:2.35rem;
  }

  .dhamma-essential-study__arrow {
    display:none;
  }

  :where(.wp-block-post-content,.entry-content,.dhamma-page)
  :is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child) {
    grid-template-columns:2.35rem minmax(0,1fr)!important;
    column-gap:12px!important;
    padding:16px!important;
  }

  :where(.wp-block-post-content,.entry-content,.dhamma-page)
  :is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child)::before {
    width:2.35rem;
    min-width:2.35rem;
  }

  :where(.wp-block-post-content,.entry-content,.dhamma-page)
  :is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child)::after {
    display:none;
  }
}

/* ==========================================================
   RC2.72 — Essential Study legacy blockquote compatibility
   Some saved long-form studies wrap the standalone prerequisite link in a
   blockquote instead of a paragraph/div. Include that wrapper in the same
   narrowly scoped Sati-Sampajañña banner adapter; ordinary blockquotes and
   inline links remain untouched.
   ========================================================== */

/* ==========================================================
   RC2.71 — Essential Study production color hardening
   Production still contains many legacy article families whose late, highly
   specific rules can set color / -webkit-text-fill-color on nested links,
   strong text or spans after the Essential Study banner has been promoted.
   RC2.70 used inherited text-fill on descendants; that can inherit the wrong
   burgundy value.  Set the banner's rendered text color directly, at higher
   compatibility specificity, while keeping star/arrow accents gold.
   ========================================================== */

body .wp-site-blocks.wp-site-blocks .wp-block-post-content.wp-block-post-content
:is(.dhamma-essential-study,.wp-block-group.is-style-dhamma-essential-study),
body .wp-site-blocks.wp-site-blocks .wp-block-post-content.wp-block-post-content
:is(.dhamma-essential-study,.wp-block-group.is-style-dhamma-essential-study) *,
body .wp-site-blocks.wp-site-blocks .wp-block-post-content.wp-block-post-content
.wp-block-group.has-burgundy-background-color.has-cream-light-color:has(a[href*="/sati-sampajanna/"]),
body .wp-site-blocks.wp-site-blocks .wp-block-post-content.wp-block-post-content
.wp-block-group.has-burgundy-background-color.has-cream-light-color:has(a[href*="/sati-sampajanna/"]) *,
body .wp-site-blocks.wp-site-blocks .wp-block-post-content.wp-block-post-content
:is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child),
body .wp-site-blocks.wp-site-blocks .wp-block-post-content.wp-block-post-content
:is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child) * {
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
}

/* Fallback for installations/templates exposing .entry-content rather than
   the block-theme post-content wrapper. */
body .entry-content.entry-content
:is(.dhamma-essential-study,.wp-block-group.is-style-dhamma-essential-study),
body .entry-content.entry-content
:is(.dhamma-essential-study,.wp-block-group.is-style-dhamma-essential-study) *,
body .entry-content.entry-content
.wp-block-group.has-burgundy-background-color.has-cream-light-color:has(a[href*="/sati-sampajanna/"]),
body .entry-content.entry-content
.wp-block-group.has-burgundy-background-color.has-cream-light-color:has(a[href*="/sati-sampajanna/"]) *,
body .entry-content.entry-content
:is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child),
body .entry-content.entry-content
:is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child) * {
  color:#fff7e8!important;
  -webkit-text-fill-color:#fff7e8!important;
}

/* Gold accents remain gold after the direct descendant color guard above. */
body .wp-site-blocks.wp-site-blocks .wp-block-post-content.wp-block-post-content
:is(.dhamma-essential-study,.wp-block-group.is-style-dhamma-essential-study)
:is(.dhamma-essential-study__icon,.dhamma-essential-study__arrow,.has-gold-color),
body .wp-site-blocks.wp-site-blocks .wp-block-post-content.wp-block-post-content
.wp-block-group.has-burgundy-background-color.has-cream-light-color:has(a[href*="/sati-sampajanna/"])
.has-gold-color,
body .entry-content.entry-content
:is(.dhamma-essential-study,.wp-block-group.is-style-dhamma-essential-study)
:is(.dhamma-essential-study__icon,.dhamma-essential-study__arrow,.has-gold-color),
body .entry-content.entry-content
.wp-block-group.has-burgundy-background-color.has-cream-light-color:has(a[href*="/sati-sampajanna/"])
.has-gold-color {
  color:#e7c991!important;
  -webkit-text-fill-color:#e7c991!important;
}

body .wp-site-blocks.wp-site-blocks .wp-block-post-content.wp-block-post-content
:is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child)::before,
body .wp-site-blocks.wp-site-blocks .wp-block-post-content.wp-block-post-content
:is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child)::after,
body .entry-content.entry-content
:is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child)::before,
body .entry-content.entry-content
:is(p,div,blockquote):has(> a[href*="/sati-sampajanna/"]:only-child)::after {
  color:#e7c991!important;
  -webkit-text-fill-color:#e7c991!important;
}

/* ==========================================================
   RC2.73 — Post infographic / teaching-image containment
   Legacy and V3 studies can contain very large source images or old
   page-specific width rules. Keep post media inside the article boundary
   without rewriting stored post HTML or changing the image aspect ratio.
   ========================================================== */

/* High-specificity front-end guard so legacy article CSS cannot make a
   teaching image wider than the actual post-content container. */
body .wp-site-blocks.wp-site-blocks .wp-block-post-content.wp-block-post-content img,
body .entry-content.entry-content img,
body .dhamma-page.dhamma-page.dhamma-page img {
  max-width:100%!important;
  height:auto!important;
}

/* Media wrappers must also be allowed to shrink inside details, grid/flex
   children and mixed Gutenberg/raw-HTML V3 structures. */
body .wp-site-blocks.wp-site-blocks .wp-block-post-content.wp-block-post-content
:is(figure,.wp-block-image,.wp-block-gallery,picture),
body .entry-content.entry-content
:is(figure,.wp-block-image,.wp-block-gallery,picture),
body .dhamma-page.dhamma-page
:is(figure,.wp-block-image,.wp-block-gallery,picture) {
  width:auto;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box;
}

/* Prevent nested flex/grid/accordion content from using a large intrinsic
   image width as its own minimum width. */
body .wp-site-blocks.wp-site-blocks .wp-block-post-content.wp-block-post-content
:is(.dm-inner,.dm-deep-body,.dm-deep-module,.wp-block-group,.wp-block-column),
body .entry-content.entry-content
:is(.dm-inner,.dm-deep-body,.dm-deep-module,.wp-block-group,.wp-block-column),
body .dhamma-page.dhamma-page
:is(.dm-inner,.dm-deep-body,.dm-deep-module,.wp-block-group,.wp-block-column) {
  min-width:0;
}

/* ==========================================================
   RC2.74 — V3 accordions + clickable teaching-image cards
   Keep the V3 interaction theme-owned and present teaching graphics as
   compact previews that open their original full-size media when clicked.
   ========================================================== */

/* V3 expand/collapse toolbar. */
body .dm-page .dm-toolbar,
body .dhamma-page .dm-toolbar {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  padding:12px var(--de-gutter);
  border-bottom:1px solid var(--de-line);
  background:var(--de-warm);
}
body .dm-page .dm-toolbar button,
body .dhamma-page .dm-toolbar button {
  min-height:42px;
  padding:8px 14px;
  border:1px solid var(--de-soft-gold);
  border-radius:10px;
  background:var(--de-surface);
  color:var(--de-burgundy);
  font:inherit;
  font-weight:750;
  cursor:pointer;
}
body .dm-page .dm-toolbar button:hover,
body .dm-page .dm-toolbar button:focus-visible,
body .dhamma-page .dm-toolbar button:hover,
body .dhamma-page .dm-toolbar button:focus-visible {
  border-color:var(--de-gold);
  background:var(--de-soft-gold);
  color:var(--de-deep);
  outline:none;
}

/* Make dm-deep-module unmistakably accordion-like across V3 posts. */
body .dm-page .dm-deep-list,
body .dhamma-page .dm-deep-list {
  display:grid;
  gap:14px;
}
body .dm-page details.dm-deep-module,
body .dhamma-page details.dm-deep-module {
  overflow:hidden;
  margin:0;
  border:1px solid var(--de-soft-gold);
  border-radius:12px;
  background:var(--de-surface);
  box-shadow:0 3px 12px rgb(61 9 23 / .035);
}
body .dm-page details.dm-deep-module > summary,
body .dhamma-page details.dm-deep-module > summary {
  display:flex;
  align-items:flex-start;
  gap:13px;
  min-height:54px;
  padding:15px 18px;
  list-style:none;
  background:var(--de-surface);
  color:var(--de-burgundy);
  cursor:pointer;
}
body .dm-page details.dm-deep-module > summary::-webkit-details-marker,
body .dhamma-page details.dm-deep-module > summary::-webkit-details-marker {
  display:none;
}
body .dm-page details.dm-deep-module > summary::after,
body .dhamma-page details.dm-deep-module > summary::after {
  content:"+";
  flex:0 0 auto;
  margin-left:auto;
  color:var(--de-burgundy);
  font-size:1.45rem;
  font-weight:800;
  line-height:1;
}
body .dm-page details.dm-deep-module[open] > summary::after,
body .dhamma-page details.dm-deep-module[open] > summary::after {
  content:"−";
}
body .dm-page details.dm-deep-module[open] > summary,
body .dhamma-page details.dm-deep-module[open] > summary {
  border-bottom:1px solid var(--de-line);
  background:var(--de-warm);
}
body .dm-page .dm-badge,
body .dhamma-page .dm-badge {
  flex:0 0 auto;
  min-width:42px;
  padding:6px 8px;
  border:1px solid var(--de-gold);
  border-radius:999px;
  background:var(--de-warm);
  color:var(--de-burgundy);
  text-align:center;
  font-weight:800;
  line-height:1.25;
}
body .dm-page .dm-item-title,
body .dhamma-page .dm-item-title {
  display:block;
  min-width:0;
  color:var(--de-burgundy);
  font-weight:800;
  line-height:1.4;
}
body .dm-page .dm-item-title small,
body .dhamma-page .dm-item-title small {
  display:block;
  margin-top:4px;
  color:var(--de-muted);
  font-size:.9em;
  font-weight:550;
  line-height:1.45;
}
body .dm-page details.dm-deep-module > .dm-deep-body,
body .dhamma-page details.dm-deep-module > .dm-deep-body {
  margin:0!important;
  padding:18px;
}

/* Teaching-image galleries become compact, responsive click-to-open cards. */
body .dm-page .wp-block-gallery.has-nested-images,
body .dhamma-page .wp-block-gallery.has-nested-images {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:stretch;
  width:100%!important;
  max-width:100%!important;
}
body .dm-page .wp-block-gallery.has-nested-images.columns-2,
body .dhamma-page .wp-block-gallery.has-nested-images.columns-2 {
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
body .dm-page .wp-block-gallery.has-nested-images > figure.wp-block-image,
body .dhamma-page .wp-block-gallery.has-nested-images > figure.wp-block-image {
  display:flex!important;
  flex-direction:column;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:12px!important;
  border:1px solid var(--de-soft-gold);
  border-radius:14px;
  background:var(--de-surface);
  box-shadow:0 5px 18px rgb(61 9 23 / .045);
}
body .dm-page .wp-block-gallery.has-nested-images > figure.wp-block-image > a,
body .dhamma-page .wp-block-gallery.has-nested-images > figure.wp-block-image > a {
  display:grid;
  flex:1 1 auto;
  min-height:0;
  place-items:center;
  overflow:hidden;
  border-radius:10px;
  background:#fffdf8;
  cursor:zoom-in;
}
body .dm-page .wp-block-gallery.has-nested-images > figure.wp-block-image img,
body .dhamma-page .wp-block-gallery.has-nested-images > figure.wp-block-image img {
  display:block;
  width:100%!important;
  height:clamp(180px,18vw,300px)!important;
  max-height:300px;
  object-fit:contain;
}

/* A single linked teaching graphic inside a study module should also read as
   a preview card rather than a full-width poster. */
body .dm-page .dm-deep-body > figure.wp-block-image:has(> a),
body .dhamma-page .dm-deep-body > figure.wp-block-image:has(> a) {
  width:min(100%,440px)!important;
  max-width:440px!important;
  margin:20px auto!important;
  padding:12px!important;
  border:1px solid var(--de-soft-gold);
  border-radius:14px;
  background:var(--de-surface);
  box-shadow:0 5px 18px rgb(61 9 23 / .045);
}
body .dm-page .dm-deep-body > figure.wp-block-image:has(> a) > a,
body .dhamma-page .dm-deep-body > figure.wp-block-image:has(> a) > a {
  display:block;
  overflow:hidden;
  border-radius:10px;
  background:#fffdf8;
  cursor:zoom-in;
}
body .dm-page .dm-deep-body > figure.wp-block-image:has(> a) img,
body .dhamma-page .dm-deep-body > figure.wp-block-image:has(> a) img {
  display:block;
  width:100%!important;
  height:auto!important;
  max-height:300px;
  object-fit:contain;
}
body .dm-page figure.wp-block-image figcaption,
body .dhamma-page figure.wp-block-image figcaption {
  margin:10px 4px 2px;
  color:var(--de-muted);
  font-size:.92rem;
  line-height:1.45;
  text-align:center;
}

@media(max-width:1024px){
  body .dm-page .wp-block-gallery.has-nested-images,
  body .dhamma-page .wp-block-gallery.has-nested-images {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:640px){
  body .dm-page .wp-block-gallery.has-nested-images,
  body .dhamma-page .wp-block-gallery.has-nested-images,
  body .dm-page .wp-block-gallery.has-nested-images.columns-2,
  body .dhamma-page .wp-block-gallery.has-nested-images.columns-2 {
    grid-template-columns:1fr!important;
  }
  body .dm-page .wp-block-gallery.has-nested-images > figure.wp-block-image img,
  body .dhamma-page .wp-block-gallery.has-nested-images > figure.wp-block-image img {
    height:auto!important;
    max-height:none;
  }
}


/* ==========================================================
   RC2.79 — compact legacy study compatibility
   Many August 2026 sutta posts use a common compact study generator:
   *-toolbar + details.*-item, often with *-body, *-trans, *-expl,
   *-practice, *-example and *-infographic roles.  Their stored page CSS is
   intentionally not rendered by the Theme, so the server-side adapter adds
   these semantic classes under .de-modern-study-root.
   ========================================================== */

/* Modern compact study accordions. */
body.de-custom-article .de-modern-study-root .de-modern-study-item,
body.de-custom-article .de-modern-study-root .de-modern-study-group {
  width:100%!important;
  max-width:100%!important;
}

body.de-custom-article .de-modern-study-root .de-modern-study-group {
  margin:16px 0!important;
}

body.de-custom-article .de-modern-study-root .de-modern-study-group-body {
  padding:16px!important;
  background:#fffaf4!important;
}

body.de-custom-article .de-modern-study-root .de-modern-study-group-body > .de-modern-study-item {
  margin:0 0 10px!important;
  border-radius:12px!important;
  box-shadow:none!important;
}

body.de-custom-article .de-modern-study-root .de-modern-study-body {
  min-width:0!important;
}

/* Source language is visually distinct without needing repeated labels. */
body.de-custom-article .de-modern-study-root .de-legacy-pali-box {
  font-weight:700!important;
}
body.de-custom-article .de-modern-study-root .de-legacy-pali-box p,
body.de-custom-article .de-modern-study-root .de-legacy-pali-box li {
  font-weight:700!important;
}
body.de-custom-article .de-modern-study-root .de-modern-study-variant,
body.de-custom-article .de-modern-study-root .de-modern-study-variant * {
  font-weight:500!important;
}

body.de-custom-article .de-modern-study-root [class*="-label-en"].de-legacy-box-label {
  color:#315c73!important;
  -webkit-text-fill-color:#315c73!important;
}
body.de-custom-article .de-modern-study-root [class*="-label-ex"].de-legacy-box-label {
  color:#356e70!important;
  -webkit-text-fill-color:#356e70!important;
}
body.de-custom-article .de-modern-study-root [class*="-label-pr"].de-legacy-box-label {
  color:#8a5e19!important;
  -webkit-text-fill-color:#8a5e19!important;
}

body.de-custom-article .de-modern-study-root .de-modern-study-variant {
  display:block!important;
  margin:10px 0!important;
  padding:8px 10px!important;
  border-left:3px solid #8b8174!important;
  border-radius:6px!important;
  background:#eee9e1!important;
  color:#615a52!important;
  -webkit-text-fill-color:#615a52!important;
  font-size:.9rem!important;
  line-height:1.5!important;
}

/* Practice/application cards.  Some older generic mapping also gives
   *-practice the grid role; reset that here because this family uses it as a
   single teaching panel. */
body.de-custom-article .de-modern-study-root .de-modern-study-practice {
  display:block!important;
  grid-template-columns:none!important;
  gap:0!important;
  width:100%!important;
  margin:18px 0 0!important;
  padding:20px!important;
  border:1px solid #cfded1!important;
  border-left:5px solid #356e70!important;
  border-radius:12px!important;
  background:#f4f8f3!important;
  box-shadow:none!important;
  color:var(--de-ink)!important;
  -webkit-text-fill-color:var(--de-ink)!important;
}
body.de-custom-article .de-modern-study-root .de-modern-study-practice > :first-child {
  margin-top:0!important;
}
body.de-custom-article .de-modern-study-root .de-modern-study-practice > :last-child {
  margin-bottom:0!important;
}
body.de-custom-article .de-modern-study-root .de-modern-study-practice h3,
body.de-custom-article .de-modern-study-root .de-modern-study-practice strong {
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
}

body.de-custom-article .de-modern-study-root .de-modern-study-example {
  margin:14px 0 0!important;
  padding:18px!important;
  border:1px solid #ecd29d!important;
  border-left:5px solid #d9a945!important;
  border-radius:12px!important;
  background:#fff4dd!important;
  color:var(--de-ink)!important;
  -webkit-text-fill-color:var(--de-ink)!important;
}
body.de-custom-article .de-modern-study-root .de-modern-study-example strong {
  color:#825a16!important;
  -webkit-text-fill-color:#825a16!important;
}

body.de-custom-article .de-modern-study-root .de-modern-study-cue,
body.de-custom-article .de-modern-study-root .de-modern-study-method {
  margin:14px 0 0!important;
  padding:15px 17px!important;
  border:1px solid #e4d5bd!important;
  border-left:5px solid var(--de-gold)!important;
  border-radius:10px!important;
  background:#fff9ea!important;
  color:#695638!important;
  -webkit-text-fill-color:#695638!important;
  line-height:1.62!important;
}
body.de-custom-article .de-modern-study-root .de-modern-study-cue strong,
body.de-custom-article .de-modern-study-root .de-modern-study-method strong {
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
}
body.de-custom-article .de-modern-study-root .de-modern-study-cue span {
  display:block!important;
  margin-top:5px!important;
  color:var(--de-muted)!important;
  -webkit-text-fill-color:var(--de-muted)!important;
  font-weight:700!important;
}

/* Compact method steps used by MN 20 / AN 8.66 families. */
body.de-custom-article .de-modern-study-root .de-modern-study-steps {
  display:grid!important;
  gap:8px!important;
  margin:10px 0 0!important;
}
body.de-custom-article .de-modern-study-root .de-modern-study-step {
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  gap:10px!important;
  align-items:start!important;
  margin:0!important;
  padding:11px 12px!important;
  border:1px solid #d9e2db!important;
  border-radius:9px!important;
  background:#fff!important;
}
body.de-custom-article .de-modern-study-root .de-modern-study-step > .de-modern-study-practice {
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.de-custom-article .de-modern-study-root .de-modern-study-step-num {
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  border-width:1px!important;
  border-radius:6px!important;
  background:#f5e7cc!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
}

/* Infographic / teaching-image card.  Keep source aspect ratio and make the
   entire image link usable without letting old large-source dimensions escape
   the article boundary. */
body.de-custom-article .de-modern-study-root .de-modern-study-media {
  width:100%!important;
  max-width:100%!important;
  margin:20px 0 6px!important;
  padding:14px!important;
  border:1px solid var(--de-line)!important;
  border-radius:12px!important;
  background:var(--de-surface)!important;
  overflow:hidden!important;
}
body.de-custom-article .de-modern-study-root .de-modern-study-media > a {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  text-decoration:none!important;
}
body.de-custom-article .de-modern-study-root .de-modern-study-media img {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  margin:0 auto!important;
  border:1px solid #e2d7c6!important;
  border-radius:8px!important;
  object-fit:contain!important;
}
body.de-custom-article .de-modern-study-root .de-modern-study-media .de-legacy-caption {
  margin:10px 0 0!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:.95rem!important;
  font-weight:750!important;
  text-align:center!important;
}

/* Source/context panel at the end of some studies. */
body.de-custom-article .de-modern-study-root .de-modern-study-source {
  margin:18px 0!important;
  background:#f7f4ee!important;
}

/* Dense summary grids should remain readable and responsive. */
body.de-custom-article .de-modern-study-root :is(
  [class*="-metrics"],
  [class*="-similes"],
  [class*="-corp"],
  [class*="-compare"],
  [class*="-five"]
).de-legacy-grid {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))!important;
}

@media(max-width:700px){
  body.de-custom-article .de-modern-study-root .de-modern-study-group-body,
  body.de-custom-article .de-modern-study-root .de-modern-study-body {
    padding:14px!important;
  }

  body.de-custom-article .de-modern-study-root .de-modern-study-practice,
  body.de-custom-article .de-modern-study-root .de-modern-study-example {
    padding:15px!important;
  }

  body.de-custom-article .de-modern-study-root .de-modern-study-step {
    grid-template-columns:36px minmax(0,1fr)!important;
  }
}


/* ==========================================================
   RC2.80 — compact legacy study visual proportion refinements
   Screenshot review of AN 4.122 showed that RC2.79 restored the structure,
   but generic legacy rules still made several controls too dominant.  Keep
   this patch scoped to .de-modern-study-root only.
   ========================================================== */

/* Slightly calmer navigation/control bands for this study family. */
body.de-custom-article .de-modern-study-root .de-legacy-nav{
  min-height:48px!important;
  margin-bottom:0!important;
  padding-top:6px!important;
  padding-bottom:6px!important;
}
body.de-custom-article .de-modern-study-root .de-legacy-nav a{
  min-height:32px!important;
  padding:5px 9px!important;
  font-size:clamp(.80rem,.82vw,.90rem)!important;
}
body.de-custom-article .de-modern-study-root .de-legacy-toolbar{
  margin:0!important;
  padding:8px 12px!important;
  border-radius:0!important;
}
body.de-custom-article .de-modern-study-root .de-legacy-toolbar button{
  min-height:36px!important;
  padding:6px 12px!important;
  font-size:.82rem!important;
}

/* Reduce the large blank band created by generic section rhythm immediately
   after the toolbar while retaining comfortable long-form spacing. */
body.de-custom-article .de-modern-study-root .de-legacy-section,
body.de-custom-article .de-modern-study-root .de-legacy-study{
  padding-top:clamp(34px,4vw,52px)!important;
  padding-bottom:clamp(34px,4vw,52px)!important;
}

/* RC2.79 inherited the hero-tag pill treatment for *-badge.  Within a study
   accordion it is a section number, so restore the intended compact marker. */
body.de-custom-article .de-modern-study-root
.de-modern-study-item > summary .de-modern-study-item-badge{
  display:grid!important;
  flex:0 0 38px!important;
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  padding:0!important;
  place-items:center!important;
  border:1px solid #d7bd8d!important;
  border-radius:50%!important;
  background:#f5e7cc!important;
  color:var(--de-burgundy)!important;
  -webkit-text-fill-color:var(--de-burgundy)!important;
  font-size:.78rem!important;
  font-weight:850!important;
  line-height:1!important;
}
body.de-custom-article .de-modern-study-root .de-modern-study-item > summary{
  align-items:center!important;
  gap:12px!important;
  padding:16px 50px 16px 16px!important;
}
body.de-custom-article .de-modern-study-root .de-modern-study-item > summary .de-legacy-accordion-title{
  font-size:clamp(1.08rem,1.25vw,1.26rem)!important;
  line-height:1.34!important;
}
body.de-custom-article .de-modern-study-root .de-modern-study-item > summary small{
  font-size:.90rem!important;
  line-height:1.45!important;
}

/* Source / translation / explanation boxes should read like normal article
   prose rather than oversized display panels. */
body.de-custom-article .de-modern-study-root .de-legacy-pali-box,
body.de-custom-article .de-modern-study-root .de-legacy-translation-box,
body.de-custom-article .de-modern-study-root .de-legacy-explanation-box{
  margin:10px 0 14px!important;
  padding:16px 18px!important;
  font-size:clamp(.98rem,1vw,1.06rem)!important;
  line-height:1.68!important;
}
body.de-custom-article .de-modern-study-root :is(
  .de-legacy-pali-box,
  .de-legacy-translation-box,
  .de-legacy-explanation-box
) p{
  margin:.45em 0!important;
  font-size:inherit!important;
  line-height:inherit!important;
}
body.de-custom-article .de-modern-study-root .de-legacy-box-label{
  margin:12px 0 6px!important;
  font-size:.70rem!important;
  letter-spacing:.09em!important;
}

/* Keep accordion content generous, but not presentation-sized. */
body.de-custom-article .de-modern-study-root .de-modern-study-body{
  padding:clamp(18px,2.2vw,28px)!important;
}

@media(max-width:760px){
  body.de-custom-article .de-modern-study-root .de-modern-study-item > summary{
    padding:14px 44px 14px 13px!important;
  }
  body.de-custom-article .de-modern-study-root
  .de-modern-study-item > summary .de-modern-study-item-badge{
    flex-basis:34px!important;
    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;
    height:34px!important;
    min-height:34px!important;
  }
  body.de-custom-article .de-modern-study-root .de-legacy-pali-box,
  body.de-custom-article .de-modern-study-root .de-legacy-translation-box,
  body.de-custom-article .de-modern-study-root .de-legacy-explanation-box{
    padding:14px!important;
    font-size:1rem!important;
  }
}


/* RC2.81 — AN 4.122 Ūmibhayasutta only:
   suppress the repeated visible "Translation" label while retaining the
   translation box itself and all other section labels. */
body.de-custom-article .umi-page .umi-label-en {
  display:none!important;
}


/* RC2.84 — hide repeated visible Translation labels in the five-family
   embedded-style pilot while retaining the translation content itself. */
body.de-custom-article :is(.umi-page,.vit-page,.abhi-page,.vim-page,.dukkha-page,.kol-page,.tamo-page) [class*="-label-en"],
body.de-custom-article :is(.umi-page,.vit-page,.abhi-page,.vim-page,.dukkha-page,.kol-page,.tamo-page) .de-legacy-box-label[class*="label-en"] {
  display:none!important;
}


/* RC2.86 — extend the audited embedded-style restoration to SN 21.1
   (.kol-page) and AN 4.85 (.tamo-page). Their stored namespace-scoped CSS
   and trailing reader JavaScript remain authoritative; Theme only restores
   those assets and suppresses the repeated visible Translation labels. */


/* RC2.88 — KP 2 bilingual training rows + sticky article-nav hardening.
   The opening Ten Training Precepts are semantically Pāḷi <strong> followed
   by the English rendering. Keep that bilingual hierarchy explicit at every
   viewport width (including iPad Pro widths above 1024px), but scope it only
   to the first numbered list in KP 2 Introduction so later single-line study
   rows are unaffected. */
body.postid-19933 #ten-precepts-manual-top #introduction
.dm-single-line-list:first-of-type .dm-single-line-text{
  min-width:0!important;
  font-weight:500!important;
  line-height:1.48!important;
}
body.postid-19933 #ten-precepts-manual-top #introduction
.dm-single-line-list:first-of-type .dm-single-line-text > strong:first-child{
  display:block!important;
  margin:0 0 .34rem!important;
  font-weight:750!important;
  line-height:1.35!important;
  overflow-wrap:anywhere;
  word-break:normal;
}

/* The same opening list may later be migrated to the native Gutenberg
   highlight-row pattern. Preserve the same bilingual hierarchy there. */
body.postid-19933 #ten-precepts-manual-top #introduction
.dhamma-highlight-rows:first-of-type .dhamma-highlight-row__statement{
  min-width:0!important;
  font-weight:500!important;
  line-height:1.48!important;
}
body.postid-19933 #ten-precepts-manual-top #introduction
.dhamma-highlight-rows:first-of-type .dhamma-highlight-row__statement > strong:first-child{
  display:block!important;
  margin:0 0 .34rem!important;
  font-weight:750!important;
  line-height:1.35!important;
  overflow-wrap:anywhere;
  word-break:normal;
}

/* RC2.89 — production KP 2 legacy-source compatibility.
   Staging already uses the migrated dm-* article, while production can still
   render the older .kp-page / .kp-item source.  The singular-page script
   groups each legacy Pāḷi formula with its following English text at runtime;
   this layout then keeps the number badge at left and stacks Pāḷi over English
   without modifying the stored post content. */
body.postid-19933 .kp-page #ten-precepts .kp-list > .kp-item{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  column-gap:clamp(.8rem,1.5vw,1.2rem)!important;
  align-items:start!important;
}
body.postid-19933 .kp-page #ten-precepts .kp-list > .kp-item > .kp-num{
  grid-column:1!important;
  grid-row:1!important;
  align-self:start!important;
}
body.postid-19933 .kp-page #ten-precepts .kp-list > .kp-item > .de-kp2-copy{
  grid-column:2!important;
  grid-row:1!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  min-width:0!important;
  width:100%!important;
}
body.postid-19933 .kp-page #ten-precepts .kp-list > .kp-item > .de-kp2-copy > strong{
  display:block!important;
  min-width:0!important;
  margin:0!important;
  font-weight:750!important;
  line-height:1.35!important;
  overflow-wrap:anywhere;
  word-break:normal;
}
body.postid-19933 .kp-page #ten-precepts .kp-list > .kp-item > .de-kp2-copy > .de-kp2-english{
  display:block!important;
  min-width:0!important;
  margin-top:.32rem!important;
  font-weight:500!important;
  line-height:1.48!important;
  overflow-wrap:anywhere;
  word-break:normal;
}

/* Article sticky navigation must always begin at its first item. Explicit
   flex-start ownership prevents an oversized centered flex row from placing
   the leading links outside the horizontal scrollport. The strip remains
   swipe/scroll friendly when all destinations cannot fit on one line. */
.dm-nav,
body.de-custom-article .de-article-nav.dm-nav{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  box-sizing:border-box!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  white-space:nowrap!important;
  padding-left:clamp(14px,2vw,28px)!important;
  padding-right:clamp(14px,2vw,28px)!important;
  scroll-padding-inline:clamp(14px,2vw,28px);
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
}
.dm-nav > a,
body.de-custom-article .de-article-nav.dm-nav > a{
  flex:0 0 auto!important;
  min-width:max-content!important;
  white-space:nowrap!important;
}


/* RC2.90 — KP 2 production anonymous-text fallback.
   The legacy production precept row can be: number badge + direct <strong>
   Pāḷi + an anonymous English text node. RC2.89's runtime wrapper remains the
   preferred path when #ten-precepts is present. If that brittle section id is
   absent, CSS Grid can still place the anonymous English grid item on row 2:
   the number badge deliberately occupies column 1 across both rows, while the
   direct Pāḷi <strong> owns column 2 row 1. Scope stays on post 19933 and only
   legacy kp-items that contain both a direct number badge and direct <strong>. */
body.postid-19933 .kp-page .kp-list > .kp-item:has(> .kp-num):has(> strong){
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  column-gap:clamp(.8rem,1.5vw,1.2rem)!important;
  row-gap:.32rem!important;
  align-items:start!important;
  min-width:0!important;
}
body.postid-19933 .kp-page .kp-list > .kp-item:has(> .kp-num):has(> strong) > .kp-num{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  align-self:start!important;
}
body.postid-19933 .kp-page .kp-list > .kp-item:has(> .kp-num):has(> strong) > strong{
  grid-column:2!important;
  grid-row:1!important;
  display:block!important;
  min-width:0!important;
  margin:0!important;
  font-weight:750!important;
  line-height:1.35!important;
  overflow-wrap:anywhere;
  word-break:normal;
}

/* RC2.92 — YouTube/practice-path dark panel contrast.
 * The generic .de-home-section-head p muted-text rule is appropriate on cream
 * sections but becomes low-contrast inside the burgundy .de-path-home panel.
 * Restore the intended gold kicker + cream explanatory copy only in that panel. */
.de-path-home .de-home-section-head .de-home-kicker {
	color: var(--de-soft-gold);
}
.de-path-home .de-home-section-head > p {
	color: #fff7e8;
}

/* ==========================================================
   RC2.95 — SITE-WIDE V3 TABLE SCROLL CONTAINMENT
   Theme-owned behavior for current dm-* study tables and native Gutenberg
   tables. Wide tables scroll internally on desktop, tablet and mobile; the
   page itself must never acquire horizontal overflow from table content.
   ========================================================== */
.dm-table-scroll{
  display:block;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;
  scrollbar-gutter:stable;
}
.dm-table-scroll>table{
  width:100%;
  max-width:none;
  min-width:100%;
  table-layout:auto;
}
.dm-table-scroll>table:has(tr>:nth-child(4)),
.wp-block-table>table:has(tr>:nth-child(4)){
  min-width:56rem;
}
.dm-table-scroll>table:has(tr>:nth-child(6)),
.wp-block-table>table:has(tr>:nth-child(6)){
  min-width:72rem;
}
.dm-table-scroll :is(th,td),
.wp-block-table :is(th,td){
  word-break:normal;
  overflow-wrap:normal;
  vertical-align:top;
}
.dm-table-scroll:focus-visible{
  outline:3px solid rgb(199 146 69 / .38);
  outline-offset:3px;
}

