/* RELEASE 1.0 — editorial polish, unified hand-drawn marker language. */
:root {--bf-release-blue:#2952e3;--bf-release-ink:#10182f;--bf-release-paper:#f8fbff}

/* Bigger portrait: the town hall comic belongs only to public life. */
.hero--portrait-focus{min-height:660px!important;padding-bottom:55px!important;overflow:visible}
.hero--portrait-focus .hero-copy{position:relative!important;z-index:5!important;max-width:660px}
.hero--portrait-focus .hero-town{display:none!important}
.hero--portrait-focus .portrait{left:auto!important;right:1.5%!important;top:38px!important;width:40.5%!important;height:550px!important;max-width:520px!important;z-index:3!important}
.hero--portrait-focus .portrait .real-photo{object-position:center bottom!important}
.hero--portrait-focus .portrait.photo-ready .portrait-outline{display:none!important}
.hero--portrait-focus .hero-ground{bottom:20px!important;z-index:2!important}
.hero--portrait-focus .actions{position:relative;z-index:6}

/* The three disciplines use equally prominent drawings. */
.overview a{position:relative;overflow:hidden}
.overview a>.doodle{width:128px!important;height:112px!important;max-width:none!important;margin:0 13px 10px 0!important;float:left!important;display:block!important;color:var(--bf-release-blue)}
.overview a>.overview-town{width:112px!important;height:112px!important;margin-left:2px!important}
.overview a>.overview-car,.overview a>.overview-formula{width:152px!important;height:112px!important;margin-left:-8px!important;margin-right:5px!important}
.overview a:nth-child(3)>.doodle{width:112px!important;height:112px!important}
@keyframes bfTownHop{0%,100%{transform:translateY(0) rotate(0deg)}35%{transform:translateY(-11px) rotate(-1.5deg)}68%{transform:translateY(-3px) rotate(1deg)}}
@keyframes bfOverviewWheels{to{transform:rotate(-360deg)}}
.overview a:nth-child(1):is(:hover,:focus-visible) .overview-town{animation:bfTownHop .64s ease-out both!important}
.overview a:nth-child(2):is(:hover,:focus-visible) .wheel{animation:bfOverviewWheels .66s linear 1 both!important;transform-box:fill-box;transform-origin:center}
.overview a:nth-child(2) .overview-formula{animation:none!important}

/* EFORCE: a coherent cool-blue section with two matching white sketch-paper cards. */
#eforce.formula{
 background:linear-gradient(168deg,#e7efff 0%,#f1f5ff 68%,#eaf1ff 100%)!important;
 color:var(--bf-release-ink)!important;
 border-top:3.4px solid var(--bf-release-blue)!important;
 border-bottom:3.4px solid var(--bf-release-blue)!important;
}
#eforce.formula:before{border-color:rgba(41,82,227,.14)!important}
#eforce .formula-copy,#eforce .formula-stage-card{
 background:#fff!important;
 border:3px solid var(--bf-release-ink)!important;
 box-shadow:7px 8px 0 #cedcf7!important;
 color:var(--bf-release-ink)!important;
}
#eforce .formula-copy{border-radius:15px 26px 17px 24px!important}
#eforce .formula-stage-card{border-radius:26px 18px 29px 17px!important}
#eforce .formula-copy:before,#eforce .formula-stage-card:before{border-color:rgba(41,82,227,.16)!important}
#eforce .formula-copy .tag{background:#ffe58a!important;color:var(--bf-release-ink)!important;border:2.5px solid var(--bf-release-ink)!important}
#eforce .formula-copy .text{color:#28354f!important}
#eforce .formula-copy .btn{border-color:var(--bf-release-blue)!important;color:var(--bf-release-blue)!important;background:#fff!important;font-weight:700!important}
#eforce .formula-copy .btn:hover{background:#f0f5ff!important}
#eforce .formula-stage-card svg{color:var(--bf-release-blue)!important}
#eforce .formula-stage-card .racecar{color:var(--bf-release-blue)!important}
#eforce .formula-stage-card .racecar path{stroke-linejoin:round;stroke-linecap:round}
#eforce .formula-stage-card .track{stroke:var(--bf-release-blue)!important}
#eforce .formula-copy h2.big{letter-spacing:-.035em}

/* Pečky Next: the new flag illustration is a stand-alone drawing, never over text. */
#projekty .project--pecky-next>.project-people{
 pointer-events:none; color:var(--bf-release-blue);opacity:1!important;
 overflow:visible;filter:none!important;
}
#projekty .project--pecky-next .czech-flag{
 transform-origin:312px 203px;transform-box:view-box;
 transition:transform .3s ease;
}
@keyframes bfFlagWave{0%,100%{transform:rotate(0deg) skewY(0deg)}33%{transform:rotate(-3deg) skewY(-2deg)}67%{transform:rotate(2deg) skewY(1deg)}}
#projekty .project--pecky-next:is(:hover,:focus-within) .czech-flag{animation:bfFlagWave .9s ease-in-out 2 both}
#projekty .project--pecky-next>.project-people .figure{stroke:#2952e3;fill:none}

/* Keep the handdrawn map visible without touching separate Moldova / Ukrainian boundaries. */
#cesty .travel-map-panel .marker-border{stroke-linejoin:round!important;stroke-linecap:round!important}
#cesty .travel-map-panel .marker-wash{fill:#9bb8f2!important;opacity:.5!important}
#cesty .travel-map-panel .map-legend{line-height:1.45}

/* Preserve home page DOM when visiting a detail; browser history controls the overlay. */
#bf-route-overlay{position:fixed;inset:0;z-index:9999;background:var(--bf-release-paper);border:0;display:none}
#bf-route-overlay.is-open{display:block}
#bf-route-frame{border:0;width:100%;height:100%;display:block;background:var(--bf-release-paper)}
body.bf-subpage-open{overflow:hidden!important}
body.bf-subpage-open>main,body.bf-subpage-open>header,body.bf-subpage-open>footer{visibility:hidden}

@media(max-width:1080px){
 .hero--portrait-focus{min-height:630px!important}
 .hero--portrait-focus .portrait{right:0!important;top:110px!important;width:43%!important;height:490px!important}
 .overview a>.doodle{width:111px!important;height:105px!important}
 .overview a>.overview-car,.overview a>.overview-formula{width:133px!important;height:105px!important}
}
@media(max-width:760px){
 .hero--portrait-focus{min-height:780px!important;padding-bottom:45px!important}
 .hero--portrait-focus .hero-copy{max-width:100%!important}
 .hero--portrait-focus .portrait{top:353px!important;right:12%!important;left:auto!important;width:76%!important;height:395px!important;max-width:none!important}
 .hero--portrait-focus .hero-ground{bottom:10px!important;height:42px!important}
 .overview a{grid-template-columns:108px minmax(0,1fr)!important;column-gap:12px!important;min-height:154px!important;align-items:center!important}
 .overview a>.doodle,.overview a>.overview-town,.overview a:nth-child(3)>.doodle{grid-column:1!important;grid-row:1/3!important;width:103px!important;height:103px!important;float:none!important;margin:0!important;align-self:center!important}
 .overview a>.overview-car,.overview a>.overview-formula{grid-column:1!important;grid-row:1/3!important;width:122px!important;height:99px!important;margin-left:-9px!important;margin-right:0!important}
 .overview a>h2,.overview a>p{grid-column:2!important;min-width:0!important}
 #projekty .project--pecky-next>.project-people{height:175px!important;max-height:175px!important;width:min(100%,310px)!important;margin:12px auto 2px!important}
 #eforce.formula{border-block-width:3px!important}
 #eforce .formula-copy,#eforce .formula-stage-card{box-shadow:5px 6px 0 #cedcf7!important}
}
@media(max-width:420px){
 .hero--portrait-focus{min-height:740px!important}
 .hero--portrait-focus .portrait{top:353px!important;right:6%!important;width:85%!important;height:360px!important}
 .overview a{grid-template-columns:99px minmax(0,1fr)!important}
 .overview a>.doodle,.overview a>.overview-town,.overview a:nth-child(3)>.doodle{width:94px!important;height:94px!important}
 .overview a>.overview-car,.overview a>.overview-formula{width:113px!important;height:92px!important}
}
@media(prefers-reduced-motion:reduce){
 .overview a:nth-child(1):is(:hover,:focus-visible) .overview-town,
 .overview a:nth-child(2):is(:hover,:focus-visible) .wheel,
 #projekty .project--pecky-next:is(:hover,:focus-within) .czech-flag{animation:none!important}
}
/* Final review: the three themes have the same visual weight and no text wraps below the art. */
.overview a{
 display:grid!important;
 grid-template-columns:132px minmax(0,1fr)!important;
 grid-template-rows:auto auto!important;
 column-gap:9px!important;
 align-content:center!important;
 align-items:center!important;
 min-height:202px!important;
 padding:25px 20px!important;
}
.overview a>.doodle{
 grid-column:1!important;
 grid-row:1/3!important;
 align-self:center!important;
 justify-self:center!important;
 float:none!important;
 margin:0!important;
}
.overview a>h2{
 grid-column:2!important;
 grid-row:1!important;
 min-width:0!important;
 margin:0 0 9px!important;
 font-size:clamp(25px,2.1vw,32px)!important;
 line-height:1.1!important;
}
.overview a>p{
 grid-column:2!important;
 grid-row:2!important;
 min-width:0!important;
 max-width:100%!important;
 margin:0!important;
 padding:0!important;
 line-height:1.48!important;
}
.overview a>.overview-formula>g{transform:scale(1.08,1.68);transform-origin:center;transform-box:fill-box}
#eforce .formula-zigzag{display:none!important}
/* Geography must be legible from the very first paint, before async CMS is ready. */
#cesty .travel-map-panel .europe-map-shapes .eu-country{
 stroke:#2952e3!important;
 stroke-width:2.1!important;
 vector-effect:non-scaling-stroke;
 stroke-linecap:round;
 stroke-linejoin:round;
}
#cesty .travel-map-panel.has-map-overlays .europe-map-shapes .eu-country{stroke:none!important}
@media(max-width:760px){
 .overview a{grid-template-columns:112px minmax(0,1fr)!important;min-height:161px!important;padding:17px 16px!important}
 .overview a>h2{font-size:clamp(24px,7.2vw,30px)!important}
 .overview a>.overview-formula>g{transform:scale(1.03,1.75)}
 #cesty .travel-map-panel .europe-map-shapes .eu-country{stroke-width:1.7!important}
}
@media(max-width:420px){.overview a{grid-template-columns:102px minmax(0,1fr)!important;column-gap:8px!important}}
/* Racing-car silhouette is horizontal, so give it enough vertical weight next to the bulb. */
.overview a>.overview-formula>g{transform:scale(1.12,2.1)}
@media(max-width:760px){.overview a>.overview-formula>g{transform:scale(1.05,2.1)}}
