/* V1.0.20: Seven continuous full-width story chapters, subtly blended edges.
   This deliberately overrides legacy boxed-chapter styles while preserving inner illustrations. */
:root{--paper:#fffaf2;--soft-ink:#10182f}
html{scroll-behavior:smooth}
body{background:#fffaf2!important}
main#main{overflow:clip}
main#main>.chapter-band{position:relative;isolation:isolate;width:100%;margin:0!important;padding:clamp(58px,6.5vw,90px) 0!important;border:0!important;box-shadow:none!important;overflow:visible;min-height:0}
.chapter-band--01{background:linear-gradient(180deg,#fff9f0 0%,#fff8ee 45%,#fbf8f2 80%,#f0f4ff 100%)}
.chapter-band--02{background:linear-gradient(180deg,#f0f4ff 0%,#eaf1ff 25%,#edf3ff 77%,#faf8f3 100%)}
.chapter-band--03{background:linear-gradient(180deg,#faf8f3 0%,#fff9ed 26%,#fff8ee 75%,#f6f7fc 100%)}
.chapter-band--04{background:linear-gradient(180deg,#f6f7fc 0%,#eff4ff 24%,#f1f5ff 74%,#f5f7fd 100%)}
.chapter-band--05{background:linear-gradient(180deg,#f5f7fd 0%,#f3f6ff 25%,#f4f7ff 76%,#f3f9fa 100%)}
.chapter-band--06{background:linear-gradient(180deg,#f3f9fa 0%,#edf8ff 26%,#edf7fb 74%,#faf9f5 100%)}
.chapter-band--07{background:linear-gradient(180deg,#faf9f5 0%,#fff9ef 25%,#fffaf3 100%)}
main#main .chapter-band__inner{max-width:1190px;margin:0 auto;padding-inline:clamp(24px,4vw,50px)!important;position:relative;z-index:1;background:none!important}
main#main .chapter-band .section{background:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;overflow:visible!important;margin:0!important;padding:0!important;isolation:auto!important;max-width:none!important}
main#main .chapter-band .section::before{display:none!important}
main#main .chapter-band .section.chapter-active{transform:none!important;border:0!important}
main#main>.chapter-band--01{padding-top:0!important;padding-bottom:clamp(50px,6vw,78px)!important}
main#main .chapter-band--01 .hero{margin:0 0 clamp(50px,6vw,90px)!important}
main#main .chapter-band--01 #o-mne{padding:0!important}
main#main .chapter-band--02 #milniky{padding:0!important}
main#main .chapter-band--03 #verejna-cinnost{margin-bottom:clamp(25px,3vw,44px)!important}
main#main .chapter-band--03 #pecky-next-projekt{background:rgba(255,255,255,.52)!important;border:1.8px solid #cbd5ea!important;border-radius:22px!important;padding:clamp(23px,3vw,39px)!important;max-width:100%!important;box-shadow:5px 6px 0 rgba(182,202,238,.20)!important}
main#main #pecky-next-projekt>.big{font-size:clamp(29px,3.2vw,44px);margin:0 0 8px}
main#main #pecky-next-projekt>.pecky-next-intro{margin-bottom:15px;max-width:75ch}
main#main #pecky-next-projekt .project--pecky-next{max-width:none!important;margin-top:15px!important}
/* EFORCE shares the same chapter typography and spacing; no second boxed background. */
main#main .chapter-band--04 #eforce.formula{position:relative;background:transparent!important;border:0!important;margin:0!important;padding:0!important;min-height:0!important;box-shadow:none!important}
main#main .chapter-band--04 #eforce.formula::before{display:none!important}
main#main .chapter-band--04 #eforce>.wrap.section{width:100%;max-width:1190px;margin:auto;padding:0 clamp(24px,4vw,50px)!important;display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:center;gap:clamp(24px,4vw,56px)}
main#main .chapter-band--04 #eforce .formula-copy{background:transparent!important;color:#10182f!important;border:0!important;box-shadow:none!important;padding:0!important;transform:none!important;max-width:100%}
main#main .chapter-band--04 #eforce .formula-copy .text{color:#354361!important}
main#main .chapter-band--04 #eforce .formula-stage-card{background:rgba(255,255,255,.52)!important;border:1.6px solid #d5e2fa!important;border-radius:24px!important;box-shadow:0 10px 24px rgba(41,82,227,.06)!important;transform:none!important;max-width:100%}
main#main .chapter-band--04 #eforce .btn{color:#2952e3!important;border-color:#2952e3!important;background:rgba(255,255,255,.75)!important;box-shadow:none!important}
main#main .chapter-band--04 #eforce .btn:hover{background:#e3ecff!important}
main#main .chapter-band--04 #eforce .tag{background:#ffe38d!important;color:#10182f!important}
/* Consistent, gently framed content without nested giant background panels. */
main#main #milniky .timeline-card{opacity:1;translate:0 0;background:rgba(255,255,255,.8)!important;border:1.5px solid #d1dff7!important;box-shadow:4px 6px 0 rgba(104,144,222,.1)!important;border-radius:20px!important;min-height:194px}
main#main #milniky .timeline-grid{gap:clamp(12px,1.6vw,20px)}
main#main #projekty .projects-head{margin-bottom:clamp(16px,2vw,25px)}
main#main #projekty .projects-head p{max-width:63ch}
main#main #projekty .experience-more{margin-top:clamp(28px,3vw,48px)}
main#main #cesty .travel-map-panel{background:rgba(255,255,255,.74)!important;box-shadow:4px 7px 0 rgba(41,82,227,.09)!important;border-color:#182542!important}
main#main #kontakt .contact-items{gap:clamp(12px,1.7vw,20px)}
main#main #kontakt .contact-item{box-shadow:4px 6px 0 rgba(41,82,227,.07)!important}
/* Previous story-next arrows were duplicate, sometimes positioned outside the main wrapper. */
a.story-next--quiet{display:none!important}
/* Legacy colors on the page body should not make detached patches. */
#o-mne,#milniky,#verejna-cinnost,#pecky-next-projekt,#eforce,#projekty,#cesty,#kontakt{background:none!important}
@media(min-width:1101px){.story-rail{left:17px}}
@media(max-width:900px){
 main#main>.chapter-band{padding:clamp(42px,6vw,65px) 0!important}
 main#main .chapter-band--04 #eforce>.wrap.section{grid-template-columns:1fr;gap:24px}
 main#main .chapter-band--04 #eforce .formula-stage-card{max-width:660px;justify-self:center}
 main#main .chapter-band--03 #pecky-next-projekt{padding:23px!important}
}
@media(max-width:650px){
 main#main>.chapter-band{padding:45px 0!important}
 main#main>.chapter-band--01{padding-top:0!important}
 main#main .chapter-band__inner,main#main .chapter-band--04 #eforce>.wrap.section{padding-inline:22px!important}
 main#main .chapter-band--01 .hero{margin-bottom:48px!important}
 main#main #milniky .timeline-card{min-height:0}
 main#main #pecky-next-projekt>.big{font-size:31px}
 main#main #kontakt .contact-items{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

@media(min-width:1101px){
 main#main #kontakt .contact-items{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:15px!important}
 main#main #kontakt .contact-item{min-width:0!important}
}
