/* Shared body template. Section sources are assembled into one public document. */
body.magazine-preview{--section-space:clamp(42px,5vw,72px);--section-gap:28px;--section-border:#bba482;--surface-dark:#0b0b0b}
body.magazine-preview main>.page-section{padding-block:var(--section-space)!important;border-top:0;border-bottom:1px solid #9b826240}
body.magazine-preview main>.page-section>.container{width:min(1180px,calc(100% - 48px))}
body.magazine-preview main>.page-section.section--paper{background:var(--parchment) url('../images/paper-grain.svg')!important;color:var(--paper-text)}
body.magazine-preview main>.page-section.section--dark{background:#080808!important;color:#f3e7d6}
body.magazine-preview .page-section :is(.section-heading,.philosophy__heading,.videos__heading,.news__heading){display:block;text-align:left;padding:0 0 24px;margin:0 0 30px;border-bottom:1px solid #ad92624d}
body.magazine-preview .page-section :is(.section-title,.section-heading h2){max-width:32ch;margin-bottom:18px}
body.magazine-preview .page-section :is(.section-lead,.section-text){max-width:75ch}
body.magazine-preview .page-section .archive-link{display:inline-flex;align-items:center;gap:6px;margin:8px 0 14px}
body.magazine-preview .section--paper :is(h2,h3,h4,p,li,summary,figcaption){color:var(--paper-text)!important}
body.magazine-preview .section--paper :is(.section-title,.eyebrow,.section-heading h2,.philosophy-subsection__head h3){color:var(--kokonte-red)!important}
body.magazine-preview .section--paper :is(.archive-link,.heritage-sources a,.system-area-nav a,.reading-toggle,.image-enlarge){color:#921016!important}
body.magazine-preview .section--dark :is(h2,h3,h4,p,li,summary,figcaption){color:#f3e7d6!important}
body.magazine-preview .section--dark .eyebrow{color:#d2b680!important}
body.magazine-preview .page-section :is(.heritage-record,.heritage-artist,.founder__lineages,.kobudo-weapons,.values__grid,.permanent-article,.faq details){border-radius:5px;box-shadow:none}
body.magazine-preview .section--paper :is(.heritage,.heritage-profile,.heritage-story,.heritage-artist,.heritage-record,.heritage-media,.founder-vision,.name-meaning,.system-principles span){background:transparent!important;box-shadow:none;border-color:var(--section-border)!important}
body.magazine-preview .page-section .heritage{margin-top:30px;padding-top:32px;border-top:1px solid var(--section-border)}
body.magazine-preview .section--paper :is(.pathway>article,.permanent-article,.managed-card,.faq details,.begin-steps li){background:#eadbc4!important;border-color:var(--section-border)!important;box-shadow:none}
body.magazine-preview .section--dark :is(.permanent-article,.value-card,.managed-card,.values__grid,.founder__lineages){background:var(--surface-dark)!important;border-color:#6d5940!important;box-shadow:none}
body.magazine-preview .page-section :is(.managed-grid,.discipline-grid){gap:24px}
body.magazine-preview .page-section .permanent-article{margin-block:30px;padding:24px;gap:30px;border:1px solid #ad92624d}
body.magazine-preview .page-section .permanent-article__image{align-self:start}
body.magazine-preview .page-section .facebook-context__grid{gap:24px}
/* Curriculum retains its existing three cards and image crops. */
body.magazine-preview .section--paper .discipline-card{background:#0b0b0b!important;border-color:#786242!important}
body.magazine-preview .section--paper .discipline-card :is(h2,h3,h4,p,li){color:#f3e7d6!important}
body.magazine-preview .section--paper .discipline-card__kanji{color:var(--kokonte-red)!important}
body.magazine-preview .page-section .kobudo-weapons{margin-top:30px;padding:24px;background:transparent!important;border-top:1px solid var(--section-border)}
body.magazine-preview .page-section .pathway{margin-bottom:30px;gap:0}
body.magazine-preview .page-section .philosophy-subsection{padding-top:30px;margin-top:30px;border-top:1px solid #ad92624d}
body.magazine-preview .page-section .managed-card{border-radius:5px;overflow:hidden}
body.magazine-preview .page-section .managed-card__body{padding:24px}
body.magazine-preview .page-section .managed-card :is(.managed-card__video,.managed-card__media,.managed-card__social-image){background:#080808!important}
body.magazine-preview .page-section .managed-empty{padding:24px 0;color:inherit!important;background:transparent;border:0}
body.magazine-preview .page-section .contact__inner{border-radius:5px;background:var(--kokonte-red)!important;padding:32px;gap:30px}
body.magazine-preview .page-section .contact__inner :is(h2,p,.eyebrow){color:#fff!important}
body.magazine-preview .page-section .contact__actions .btn--crimson{background:#080808;border-color:#f3e7d680;color:white}
body.magazine-preview .page-section .contact__actions .btn--dark{background:transparent;border-color:#f3e7d680;color:white}
body.magazine-preview .site-footer{background:#080808!important;border-top:2px solid var(--kokonte-red);color:#f3e7d6;padding-block:30px}
body.magazine-preview .site-footer .footer__inner{gap:24px}
body.magazine-preview .site-footer .footer-socials>a{border-radius:5px;background:transparent;color:#f3e7d6;border-color:#786242}
body.magazine-preview :is(.bust-frame,.founder__portrait){background:#080808!important}
body.magazine-preview .founder__portrait img{background:#080808!important}
/* Name, gratitude and historical records form a dark inset within School. */
body.magazine-preview .section--paper #nombre-y-proclama{background:#080808!important;color:#fff;padding-block:40px;border-top-color:#786242}
body.magazine-preview #nombre-y-proclama :is(h2,h3,h4,p,li,figcaption,.eyebrow,.section-title,.name-meaning,.name-meaning span,.name-meaning strong){color:#fff!important}
body.magazine-preview #nombre-y-proclama :is(.heritage-profile,.heritage-story,.heritage-artist,.heritage-record,.heritage-media,.name-meaning){background:transparent!important;border-color:#786242!important}
body.magazine-preview #nombre-y-proclama :is(a,.reading-toggle,.article-read,.managed-read-more,.image-enlarge){color:var(--readmore-gold,#e7ce9a)!important}
body.magazine-preview #nombre-y-proclama :is(a,.reading-toggle,.article-read,.managed-read-more,.image-enlarge):hover{color:#fff0cf!important;background-color:#e7ce9a12}
body.magazine-preview #nombre-y-proclama .name-meaning strong{color:var(--readmore-gold,#e7ce9a)!important}
/* Reading controls follow the surface they sit on, including CMS-created buttons. */
body.magazine-preview{--readmore-gold:#e7ce9a}
body.magazine-preview .section--paper :is(.reading-toggle,.article-read,.managed-read-more,.image-enlarge){color:var(--kokonte-red)!important}
body.magazine-preview :is(.section--dark,.preview-people,.section--paper .discipline-card) :is(.reading-toggle,.article-read,.managed-read-more,.image-enlarge){color:var(--readmore-gold)!important}
body.magazine-preview .section--paper :is(.reading-toggle,.article-read,.managed-read-more,.image-enlarge):hover{color:#8d0b10!important;background-color:#b80f150d}
body.magazine-preview :is(.section--dark,.preview-people,.section--paper .discipline-card) :is(.reading-toggle,.article-read,.managed-read-more,.image-enlarge):hover{color:#fff0cf!important;background-color:#e7ce9a12}
@media(min-width:900px){body.magazine-preview .page-section :is(.section-text,.heritage-thanks,.heritage-biography>p){text-align:justify;text-align-last:left;hyphens:auto}}
@media(max-width:700px){
 body.magazine-preview main>.page-section>.container{width:calc(100% - 28px)}
 body.magazine-preview .page-section :is(.section-heading,.philosophy__heading,.videos__heading,.news__heading){padding-bottom:20px;margin-bottom:24px}
 body.magazine-preview .page-section .permanent-article{padding:18px;gap:22px}
 body.magazine-preview .page-section :is(.managed-grid,.discipline-grid){gap:18px}
 body.magazine-preview .page-section .kobudo-weapons{padding:20px 0}
 body.magazine-preview .page-section .contact__inner{padding:24px 20px}
 body.magazine-preview .page-section :is(.begin__grid,.faq__grid){gap:24px}
}

/* Individual curriculum areas remain part of the same document. */
body.magazine-preview .practice-detail .practice-detail__body ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 32px;padding-left:22px;margin:0 0 26px}
body.magazine-preview .practice-detail .practice-detail__navigation{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
@media(max-width:700px){body.magazine-preview .practice-detail .practice-detail__body ul{grid-template-columns:1fr;gap:12px}}
