/* A page-specific spellbook: the rest of the course keeps its normal theme. */
.spell-doc{max-width:1000px;padding-top:32px}
.spell-doc .crumb{margin-bottom:20px}
.spell-hero{display:grid;grid-template-columns:1fr 1fr;min-height:390px;overflow:hidden;border:1px solid #533a41;border-radius:12px;background:#24151f;color:#fff7e8;box-shadow:0 12px 32px rgba(28,14,24,.16)}
.spell-hero-copy{position:relative;z-index:1;align-self:center;padding:46px 0 46px 48px}
.spell-kicker,.spell-overline{font-size:12px;line-height:1.4;font-weight:800;letter-spacing:.14em}
.spell-kicker{color:#e9c895}
.spell-doc .spell-hero h1{font-size:clamp(36px,4.5vw,58px);line-height:1.14;letter-spacing:-.035em;margin:18px 0 18px;color:#fff9ef}
.spell-hero h1 span{display:block;font-family:Georgia,serif;font-size:.49em;letter-spacing:.015em;font-weight:400;color:#e9c895;margin-top:8px}
.spell-intro{font-size:16px;line-height:1.7;color:#efdfd2;max-width:35ch}
.spell-doc .spell-cta{display:inline-flex;align-items:center;gap:18px;min-height:48px;margin-top:26px;padding:10px 18px;border:1px solid #d6b47e;border-radius:8px;background:#ebcf9c;color:#322219!important;font-weight:800;text-decoration:none!important}
.spell-doc .spell-cta:hover{background:#ffe2aa}.spell-doc .spell-cta:focus-visible{outline:3px solid #fff;outline-offset:3px}
.spell-hero-art{position:relative;min-width:0;overflow:hidden}
.spell-hero-art:before{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,#24151f 0%,transparent 28%);pointer-events:none}
.spell-hero-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.spell-guide{max-width:790px;margin:60px auto 0;scroll-margin-top:135px}
.spell-section-head{text-align:center;margin-bottom:28px}
.spell-overline{color:#806131}.spell-section-head h2{margin:9px 0 6px;font-size:clamp(29px,4vw,38px);line-height:1.2}.spell-section-head>p:last-child{color:var(--muted)}
.spell-doc .meta{justify-content:center;margin-bottom:16px}
.spell-doc [data-part=doc]{line-height:1.75}
.spell-doc [data-part=doc]>.n-callout.c-green_background{display:block;background:#faf6ed;color:#342b28;border:1px solid #e9dcc2;padding:28px 32px;border-radius:12px}
.spell-doc [data-part=doc]>.n-callout.c-green_background>.n-cb>.n-h3{font-size:20px;line-height:1.55;margin:0 0 20px;color:#392b2b}
.spell-doc [data-part=doc]>.n-callout.c-green_background ol.n-list{margin-left:26px}
.spell-doc [data-part=doc]>.n-callout.c-green_background ol.n-list>li{padding-left:5px;margin:0 0 15px}
.spell-doc [data-part=doc]>.n-callout.c-green_background ol.n-list>li::marker{font-weight:800;color:#8a552b}
.spell-doc [data-part=doc] .n-callout.c-green_background .n-callout{background:#f2e9d9;border:1px solid #dfd0b7;color:#342b28;padding:16px 18px}
.spell-doc [data-part=doc]>.n-callout.c-yellow_background{background:#fff5db;color:#493515;border:1px solid #efdaaa;padding:16px 20px}
.spell-doc [data-part=doc] a:not(.n-page):not(.n-file){color:#75429a;text-decoration-color:#b28bc3;text-underline-offset:3px;font-weight:600}
.spell-doc [data-part=doc] a:hover{color:#512374}
.spell-doc [data-part=doc]>.n-quote{margin-top:28px;border-left:3px solid #b28a4f;padding:8px 0 8px 20px;color:var(--muted)}
.spell-doc [data-part=doc]>.n-quote .n-quote{border-color:#d2b980;color:var(--text)}
[data-theme=dark] .spell-overline{color:#dfbd83}
[data-theme=dark] .spell-doc [data-part=doc]>.n-callout.c-green_background{background:#292420;color:#f3eadc;border-color:#514337}
[data-theme=dark] .spell-doc [data-part=doc]>.n-callout.c-green_background>.n-cb>.n-h3{color:#fff4e4}
[data-theme=dark] .spell-doc [data-part=doc]>.n-callout.c-green_background ol.n-list>li::marker{color:#e6bd81}
[data-theme=dark] .spell-doc [data-part=doc] .n-callout.c-green_background .n-callout{background:#352d26;border-color:#655440;color:#f3eadc}
[data-theme=dark] .spell-doc [data-part=doc]>.n-callout.c-yellow_background{background:#3d3020;border-color:#745b33;color:#fff0d1}
[data-theme=dark] .spell-doc [data-part=doc] a:not(.n-page):not(.n-file){color:#dcb9f5;text-decoration-color:#aa83bf}
[data-theme=dark] .spell-doc [data-part=doc] a:hover{color:#f1d9ff}
@media(max-width:700px){
 .spell-doc{padding-top:22px}.spell-doc .crumb{margin-bottom:16px}
 .spell-hero{grid-template-columns:1fr}.spell-hero-copy{padding:30px 25px 0}.spell-doc .spell-hero h1{font-size:38px;margin:16px 0}.spell-intro{font-size:16px}.spell-doc .spell-cta{margin-top:20px}
 .spell-hero-art{height:210px}.spell-hero-art:before{background:linear-gradient(180deg,#24151f 0%,transparent 28%)}.spell-hero-art img{object-position:center 48%}
 .spell-guide{margin-top:42px}.spell-section-head{margin-bottom:22px}.spell-doc [data-part=doc]>.n-callout.c-green_background{padding:22px 19px}.spell-doc [data-part=doc]>.n-callout.c-green_background>.n-cb>.n-h3{font-size:18px}
}
@media(prefers-reduced-motion:reduce){.spell-doc *{animation:none!important;transition:none!important}}
