/* Chronos Storytelling 4.10. All rules are scoped to owned Chronos nodes. */
.cs-document .cs-story-bleed {
 width:var(--cs-safe-viewport-width,100vw);max-width:none;
 margin-inline-start:calc(50% - var(--cs-safe-half-viewport,50vw));
}
.cs-document .cs-story-hero {position:relative;isolation:isolate;min-height:100svh;display:flex;align-items:center;justify-content:center;text-align:center;background:#20242d;color:#fff;overflow:hidden;padding:clamp(80px,10vh,130px) clamp(24px,5vw,90px);box-sizing:border-box;}
.cs-document .cs-story-hero[data-story-height="large"] {min-height:72svh;}
.cs-document .cs-story-hero-image {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;}
.cs-document .cs-story-hero-shade {position:absolute;inset:0;background:linear-gradient(0deg,rgba(10,13,19,.90),rgba(12,17,23,.46) 70%,rgba(12,17,23,.35));z-index:-1;}
.cs-document .cs-story-hero-body {max-width:1000px;margin:auto;position:relative;z-index:1;}
.cs-document .cs-story-eyebrow {color:var(--cs-story-accent,#d4af37);font-size:clamp(12px,1.15vw,16px);font-weight:750;letter-spacing:.06em;}
.cs-document .cs-story-hero :is(h1,h2,h3,h4,h5,h6) {font-family:inherit;font-size:clamp(36px,5.6vw,88px);font-weight:850;line-height:1.13;color:inherit;margin:24px 0;letter-spacing:-.025em;}
.cs-document .cs-story-intro {max-width:800px;margin:0 auto;font-size:clamp(17px,1.65vw,23px);line-height:1.8;}
.cs-document .cs-story-intro p {margin:0 0 1em;}
.cs-document .cs-story-credit {font-size:12px;color:inherit;opacity:.88;}
.cs-document .cs-story-hero>.cs-story-credit {position:absolute;bottom:18px;inset-inline-end:26px;max-width:70%;z-index:3;}
.cs-document .cs-story-hero>.cs-story-credit:hover {opacity:1;}
.cs-document .cs-story-scroll {direction:ltr;display:flex;align-items:stretch;position:relative;isolation:isolate;box-sizing:border-box;background:#20242d;color:#f9f3ec;min-width:0;}
.cs-document .cs-story-scroll[data-story-layout="image-right"] {flex-direction:row-reverse;}
.cs-document .cs-story-sticky {flex:0 0 48%;width:48%;position:sticky;top:0;align-self:flex-start;height:100svh;overflow:hidden;background:#17212c;}
.cs-document .cs-story-image-stack {position:relative;width:100%;height:100%;}
.cs-document .cs-story-media {position:absolute;inset:0;margin:0;opacity:0;visibility:hidden;transition:opacity .75s ease,visibility .75s ease;}
.cs-document .cs-story-media.is-active {opacity:1;visibility:visible;z-index:2;}
.cs-document .cs-story-media img,.cs-document .cs-story-no-image {width:100%;height:100%;object-fit:cover;display:block;}
.cs-document .cs-story-no-image {background:radial-gradient(circle at 22% 24%,#677a7a,#28343f 53%,#15212c);}
.cs-document .cs-story-media figcaption {position:absolute;bottom:0;inset-inline:0;display:flex;flex-direction:column;gap:4px;padding:22px 24px;background:linear-gradient(transparent,rgba(0,0,0,.82));color:#fff;font-size:12px;line-height:1.5;text-align:start;direction:rtl;}
.cs-document .cs-story-media figcaption a {width:fit-content;max-width:100%;color:#fff;text-decoration:underline;text-underline-offset:3px;}
.cs-document .cs-story-steps {direction:rtl;flex:0 0 52%;max-width:52%;box-sizing:border-box;padding:13vh clamp(18px,4.7vw,85px) 13vh;min-width:0;}
.cs-document .cs-story-card {background:#f5ece2;color:#302c2f;box-sizing:border-box;border-block-start:5px solid var(--cs-story-accent,#d4af37);border-radius:12px;padding:clamp(22px,3.1vw,54px);margin-block:0 55vh;box-shadow:0 17px 60px rgba(0,0,0,.3);transition:transform .65s ease,border-color .3s ease;opacity:1;transform:translateY(10px);}
.cs-document .cs-story-card.is-active {transform:translateY(0);}
.cs-document .cs-story-scroll[data-story-pace="compact"] .cs-story-card {margin-block-end:22vh;}
.cs-document .cs-story-scroll[data-story-pace="cinematic"] .cs-story-card {margin-block-end:85vh;}
.cs-document .cs-story-card:last-child {margin-block-end:12vh;}
.cs-document .cs-story-card-progress {display:flex;gap:8px;align-items:center;margin-bottom:22px;color:#866334;font-size:13px;font-weight:750;font-variant-numeric:tabular-nums;}
.cs-document .cs-story-card h2 {font-family:inherit;color:#28384c;font-size:clamp(25px,2.4vw,43px);line-height:1.25;font-weight:800;margin:10px 0 23px;}
.cs-document .cs-story-prose {font-size:clamp(17px,1.17vw,20px);line-height:1.92;overflow-wrap:anywhere;}
.cs-document .cs-story-prose p {margin:0 0 1.3em;}
.cs-document .cs-story-prose p:last-child {margin-bottom:0;}
.cs-document .cs-story-empty {direction:rtl;padding:55px 24px;text-align:center;width:100%;}
.cs-document .cs-story-orphan {max-width:900px;padding:30px;margin:30px auto;background:#f6eee5;border:1px solid #c9b28e;direction:rtl;}
.cs-document .cs-story-chapter {direction:rtl;box-sizing:border-box;min-height:58vh;padding:clamp(85px,11vw,180px) clamp(22px,8vw,120px);background:#f5ece2;color:#28384c;text-align:center;display:flex;align-items:center;justify-content:center;}
.cs-document .cs-story-chapter[data-story-theme="dark"] {background:#28384c;color:#fff;}
.cs-document .cs-story-chapter[data-story-theme="terra"] {background:#9e5847;color:#fff;}
.cs-document .cs-story-chapter-body {width:min(100%,830px);margin:auto;}
.cs-document .cs-story-chapter h2 {font-family:inherit;color:inherit;font-size:clamp(32px,4vw,65px);line-height:1.18;margin:20px 0 30px;}
.cs-document .cs-story-chapter p {font-size:clamp(18px,1.35vw,22px);line-height:1.94;margin:0 0 1.25em;}
@media(max-width:900px) {
 .cs-document .cs-story-scroll,.cs-document .cs-story-scroll[data-story-layout="image-right"] {flex-direction:column;}
 .cs-document .cs-story-sticky {width:100%;flex:none;height:44svh;top:0;z-index:1;}
 .cs-document .cs-story-steps {position:relative;z-index:2;max-width:100%;width:100%;flex:none;padding:0 5vw 45px;margin-top:-10svh;}
 .cs-document .cs-story-card {max-width:690px;margin-inline:auto;margin-block-end:40vh;}
 .cs-document .cs-story-scroll[data-story-pace="compact"] .cs-story-card {margin-block-end:19vh;}
 .cs-document .cs-story-scroll[data-story-pace="cinematic"] .cs-story-card {margin-block-end:55vh;}
 .cs-document .cs-story-scroll .cs-story-card:last-child {margin-block-end:12vh;}
}
@media(max-width:480px) {
 .cs-document .cs-story-sticky {height:39svh;}
 .cs-document .cs-story-steps {padding-inline:14px;margin-top:-5svh;}
 .cs-document .cs-story-card {padding:23px 19px;border-radius:10px;}
 .cs-document .cs-story-hero {padding-inline:20px;}
 .cs-document .cs-story-media figcaption {font-size:11px;padding:15px;}
}
@media(prefers-reduced-motion:reduce) {
 .cs-document .cs-story-media,.cs-document .cs-story-card {transition:none!important;transform:none!important;}
}
/* Gutenberg integration: independent block-scoped wrapper, no global reset. */
.cs-document.cs-gutenberg-story {width:100%;max-width:100%;min-width:0;margin-block:0;background:transparent;}
.cs-document.cs-gutenberg-story .cs-story-bleed {max-width:none;}
/* The surrounding post text remains controlled by the active theme. */
/* 4.12 editorial presets. Legacy nodes without data-story-style preserve classic styling. */
.cs-document .cs-story-scroll[data-story-style="editorial"]{
 background:#fbf9f5;color:#253038;
}
.cs-document .cs-story-scroll[data-story-style="editorial"] .cs-story-sticky{background:#e8e4dc}
.cs-document .cs-story-scroll[data-story-style="editorial"] .cs-story-steps{padding-top:15vh;padding-bottom:8vh}
.cs-document .cs-story-scroll[data-story-style="editorial"] .cs-story-card{
 background:transparent;color:#253038;border:0;border-radius:0;box-shadow:none;
 padding:clamp(18px,2.5vw,42px) 0;margin-block-end:34vh;
 transform:translateY(4px);max-width:680px;
}
.cs-document .cs-story-scroll[data-story-style="editorial"] .cs-story-card h2{
 color:inherit;font-size:clamp(29px,2.8vw,47px);font-weight:750;line-height:1.2;letter-spacing:-.015em;
}
.cs-document .cs-story-scroll[data-story-style="editorial"] .cs-story-eyebrow{
 color:#866e57;font-weight:650;letter-spacing:0;
}
.cs-document .cs-story-scroll[data-story-style="editorial"] .cs-story-prose{
 color:#363a3d;font-size:clamp(17px,1.12vw,20px);line-height:1.9;
}
.cs-document .cs-story-scroll[data-story-style="editorial"] .cs-story-card-progress{
 color:#6b655d;font-size:12px;font-weight:550;margin-bottom:15px;
}
.cs-document .cs-story-scroll[data-story-style="editorial"][data-story-pace="compact"] .cs-story-card{margin-bottom:17vh}
.cs-document .cs-story-scroll[data-story-style="editorial"][data-story-pace="cinematic"] .cs-story-card{margin-bottom:62vh}
.cs-document .cs-story-scroll[data-story-style="editorial"] .cs-story-card:last-child{margin-bottom:7vh}
.cs-document .cs-story-scroll[data-story-style="cinematic"]{background:#14232b;color:#f9f7f2}
.cs-document .cs-story-scroll[data-story-style="cinematic"] .cs-story-sticky{background:#101d24}
.cs-document .cs-story-scroll[data-story-style="cinematic"] .cs-story-card{
 border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit;
 padding:clamp(25px,3vw,52px) 0;transform:translateY(4px);margin-bottom:62vh;
}
.cs-document .cs-story-scroll[data-story-style="cinematic"] .cs-story-card h2{color:#fff;font-size:clamp(30px,2.8vw,48px)}
.cs-document .cs-story-scroll[data-story-style="cinematic"] .cs-story-prose{color:#efece7}
.cs-document .cs-story-scroll[data-story-style="cinematic"] .cs-story-card-progress{color:#d6cbbf;font-weight:600}
.cs-document .cs-story-scroll[data-story-style="cinematic"][data-story-pace="compact"] .cs-story-card{margin-bottom:25vh}
.cs-document .cs-story-scroll[data-story-style="cinematic"][data-story-pace="cinematic"] .cs-story-card{margin-bottom:85vh}
.cs-document .cs-story-scroll[data-story-style="cinematic"] .cs-story-card:last-child{margin-bottom:10vh}
.cs-document .cs-story-scroll .cs-story-rich-content > :first-child{margin-top:0}
.cs-document .cs-story-scroll .cs-story-rich-content > :last-child{margin-bottom:0}
.cs-document .cs-story-scroll .cs-story-rich-content :is(ul,ol){margin:0 1.3em 1.4em;padding:0}
.cs-document .cs-story-scroll .cs-story-rich-content li{margin-bottom:.35em}
.cs-document .cs-story-scroll .cs-story-rich-content a{color:inherit;text-decoration:underline;text-underline-offset:3px}
@media (max-width:900px){
 .cs-document .cs-story-scroll[data-story-style="editorial"] .cs-story-steps{
  margin-top:0;padding:clamp(22px,5vw,42px) 5vw 55px;background:#fbf9f5;
 }
 .cs-document .cs-story-scroll[data-story-style="cinematic"] .cs-story-steps{
  margin-top:0;padding:clamp(22px,5vw,42px) 5vw 55px;background:#14232b;
 }
 .cs-document .cs-story-scroll[data-story-style="editorial"] .cs-story-card,
 .cs-document .cs-story-scroll[data-story-style="cinematic"] .cs-story-card{
  margin-bottom:26vh;max-width:680px;padding:12px 0 30px;
 }
 .cs-document .cs-story-scroll[data-story-style="editorial"][data-story-pace="compact"] .cs-story-card,
 .cs-document .cs-story-scroll[data-story-style="cinematic"][data-story-pace="compact"] .cs-story-card{margin-bottom:14vh}
 .cs-document .cs-story-scroll[data-story-style="editorial"] .cs-story-card:last-child,
 .cs-document .cs-story-scroll[data-story-style="cinematic"] .cs-story-card:last-child{margin-bottom:5vh}
}
@media (max-width:480px){
 .cs-document .cs-story-scroll[data-story-style="editorial"] .cs-story-steps,
 .cs-document .cs-story-scroll[data-story-style="cinematic"] .cs-story-steps{padding-inline:20px}
 .cs-document .cs-story-scroll[data-story-style="editorial"] .cs-story-card h2,
 .cs-document .cs-story-scroll[data-story-style="cinematic"] .cs-story-card h2{font-size:clamp(27px,7vw,36px)}
}
