/* V1.0.26 · Unified paper layout and restrained section accents.
   Intentionally replaces the overlapping 2019–2025 experimental colour layers.
   All positioning / art / motion remains from original structural CSS. */
:root{--brand-paper:#faf6ee;--brand-ink:#10182f;--brand-blue:#2952e3;--brand-yellow:#ffe58a;--panel-blue:#eaf1ff;--panel-cream:#fff5dc}
html,body,main#main{background:var(--brand-paper)!important}
body[data-chapter],body::before,body::after{background:var(--brand-paper)!important}
main#main{overflow:clip}
/* Chapters remain part of one continuous canvas, never alternating giant bands. */
main#main > .chapter-band,
main#main > .chapter-band--01,
main#main > .chapter-band--02,
main#main > .chapter-band--03,
main#main > .chapter-band--04,
main#main > .chapter-band--05,
main#main > .chapter-band--06,
main#main > .chapter-band--07{
  display:block!important;position:relative!important;isolation:isolate!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  padding:36px 0!important;margin:0!important;
}
main#main > .chapter-band--01{padding-top:0!important;padding-bottom:30px!important}
main#main > .chapter-band--07{padding-bottom:44px!important}
main#main > .chapter-band::before,main#main > .chapter-band::after{content:none!important;display:none!important}
main#main .chapter-band__inner{position:relative!important;height:auto!important;min-height:0!important;max-height:none!important;margin-block:0!important;background:none!important}
main#main .chapter-band .section{background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;min-height:0!important;height:auto!important;max-height:none!important;margin:0!important;padding-block:0!important;overflow:visible!important}
main#main .chapter-band .section::before{display:none!important}
/* Intro keeps original real portrait and the hand-drawn visual system. */
main#main .chapter-band--01 .hero{margin:0 0 27px!important}
main#main .chapter-band--01 #o-mne{margin:0!important}
/* Tighten the old fixed-height hero on large screens; its former unused lower
   third was perceived as an accidental blank chapter. Image bytes unchanged. */
@media(min-width:1101px){
 main#main .chapter-band--01 .hero.hero--portrait-focus{min-height:575px!important;padding-bottom:18px!important}
 main#main .chapter-band--01 .hero.hero--portrait-focus .portrait{top:25px!important;height:510px!important}
 main#main .chapter-band--01 .hero.hero--portrait-focus .hero-ground{bottom:12px!important}
}
/* Only one key chapter uses a pale colored *contained* stage, not a full-height backdrop. */
main#main .chapter-band--02 .chapter-band__inner{
  background:#edf2ff!important;border:1.4px solid #d9e3fa!important;
  border-radius:25px!important;padding:clamp(22px,3vw,34px)!important;
  box-shadow:4px 5px 0 #e2e8f4!important;
}
main#main #milniky .timeline-grid{margin-top:8px!important}
main#main #milniky .timeline-card{background:#fff!important;border:1.8px solid #b7c9ed!important;border-radius:18px!important;box-shadow:4px 5px 0 #d5e2fb!important;min-height:0!important}
main#main #milniky .timeline-card:nth-child(2){background:#fff7dc!important;border-color:#e4c875!important}
main#main #milniky .timeline-card:nth-child(4){background:#fffaf0!important;border-color:#d6c18c!important}
main#main #milniky .timeline-card:hover,main#main #milniky .timeline-card:focus-within{background:#fff!important;border-color:#2952e3!important}
/* Pečky is a single story: city hall followed closely by the related initiative. */
main#main .chapter-band--03 #verejna-cinnost{margin:0 0 17px!important}
main#main .chapter-band--03 #pecky-next-projekt{
  margin:0!important;padding:clamp(19px,2.6vw,30px)!important;
  background:#fff7df!important;border:1.7px solid #e5cc8d!important;
  border-radius:20px!important;box-shadow:4px 5px 0 #f0e6ce!important;
}
main#main #pecky-next-projekt .project--pecky-next{background:#fff!important;border:1.8px solid #10182f!important;box-shadow:3px 5px 0 #dce5fa!important;margin-top:14px!important}
/* Formula: blue drawing has its own paper card, text is not boxed in again. */
main#main .chapter-band--04 #eforce.formula{background:transparent!important;border:none!important;padding:0!important;margin: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{align-items:center!important;gap:clamp(24px,3vw,42px)!important}
main#main .chapter-band--04 #eforce .formula-copy{background:#fffefa!important;border:1.5px solid #e5e6e8!important;box-shadow:3px 4px 0 #f1ebe1!important;transform:none!important;padding:clamp(22px,3vw,34px)!important}
main#main .chapter-band--04 #eforce .formula-stage-card{background:#edf3ff!important;border:1.8px solid #bbcfed!important;box-shadow:4px 6px 0 #d9e4f8!important}
/* Project cards restore distinct coloured material, strong boundaries, and even rhythm. */
main#main #projekty .projects-head{margin-bottom:clamp(22px,2.6vw,36px)!important}
main#main #projekty .experience-more{margin-top:clamp(24px,3vw,40px)!important}
main#main #projekty .experience-grid{gap:clamp(13px,1.6vw,20px)!important}
main#main #projekty .experience-card{
  background:#edf2ff!important;border:1.9px solid #26354f!important;
  box-shadow:4px 5px 0 #d6e0f8!important;border-radius:17px!important;
  min-height:0!important;transform:none!important;
}
main#main #projekty .experience-card:nth-child(2){background:#fff3d6!important;box-shadow:4px 5px 0 #f0e2c2!important}
main#main #projekty .experience-card:nth-child(3){background:#e9f7f3!important;box-shadow:4px 5px 0 #d1ebe4!important}
main#main #projekty .experience-card:nth-child(4){background:#eaf0ff!important}
main#main #projekty .experience-card:nth-child(5){background:#fff8e9!important}
/* Travel is the sole wide shift in mood, softly contained, not a full-screen gradient. */
main#main .chapter-band--06 .chapter-band__inner{
  background:#eaf3fb!important;border-radius:26px!important;
  border:1.4px solid #d4e4f0!important;padding:clamp(22px,3vw,35px)!important;
}
main#main #cesty .travel-map-panel{background:#fff!important;border:2px solid #10182f!important;box-shadow:4px 6px 0 #d5e3f7!important}
/* Contact returns to unboxed cream while retaining the illustration below. */
main#main #kontakt .contact-item{background:#fff!important;border:1.7px solid #25334e!important;box-shadow:4px 5px 0 #dfe5ef!important}
main#main #kontakt .contact-item:nth-child(2){background:#fff9e8!important}
/* Remove earlier styling that made card/section hover transforms appear like layout shifts. */
main#main :is(#o-mne,#milniky,#verejna-cinnost,#eforce,#projekty,#cesty,#kontakt).chapter-active{transform:none!important}
@media(max-width:900px){
 main#main > .chapter-band{padding:28px 0!important}
 main#main > .chapter-band--01{padding-top:0!important}
 main#main .chapter-band--02 .chapter-band__inner,main#main .chapter-band--06 .chapter-band__inner{padding:22px!important}
}
@media(max-width:650px){
 main#main > .chapter-band{padding:24px 0!important}
 main#main > .chapter-band--01{padding-top:0!important}
 main#main .chapter-band--02 .chapter-band__inner,main#main .chapter-band--06 .chapter-band__inner{padding:18px!important;border-radius:18px!important}
 main#main .chapter-band--04 #eforce .formula-copy{padding:22px!important}
 main#main #projekty .experience-card{padding:19px!important}
}
@media(prefers-reduced-motion:reduce){main#main .chapter-band *{scroll-behavior:auto}}
