/* Content defaults have low specificity: Gutenberg's individual block styles win. */
:where(body.hg-page,.editor-styles-wrapper) {--wp--preset--font-family--hg-display:Oswald,sans-serif;--wp--preset--font-family--hg-body:Manrope,sans-serif;}
:where(.hg-native-section) { color:#f5f5f0;background:#0c0d0b;font-family:Manrope,sans-serif;line-height:1.5;box-sizing:border-box; }
:where(.hg-native-section) :where(.wp-block-group,.wp-block-column,.wp-block-columns,.wp-block-image,.wp-block-buttons,p,h1,h2,h3,figure) {box-sizing:border-box;min-width:0;}
:where(.hg-native-section) :where(.wp-block-group,.wp-block-columns,.wp-block-buttons) {margin-block-start:0;margin-block-end:0;}
:where(.hg-native-section) :where(h1,h2,h3,h4,h5,h6){font-family:Oswald,sans-serif;line-height:1.1;}
:where(.hg-native-section) :where(.wp-block-image img){max-width:100%;height:auto;display:block;}
:where(.hg-native-section) .hg-rule {width:96px;border:0;height:3px;transform:skewX(-16deg);margin-left:0;}
:where(.hg-native-section) .wp-block-details>summary{cursor:pointer;font:500 20px/1.4 Oswald,sans-serif;text-transform:uppercase;}
:where(.hg-native-section) .wp-block-details>summary::marker{color:#8dc63f;}
:where(.hg-native-section) .wp-block-details[open]>summary{margin-bottom:16px;}
:where(.hg-native-section) .wp-block-button__link {border-radius:0;font:inherit;line-height:inherit;text-decoration:none;}
:where(.hg-native-section) .hg-field{display:block;}
:where(.hg-native-section) .hg-field input,:where(.hg-native-section) .hg-field textarea{display:block;width:100%;background:transparent;color:inherit;border:0;padding:0;font:inherit;}
:where(.hg-native-section) .hg-field textarea{min-height:100px;}
:where(.hg-native-section) .hg-icon{display:inline-flex;flex-shrink:0;line-height:1;}
:where(.hg-native-section) .hg-icon svg{width:1em;height:1em;}
:where(.hg-native-section) .hg-form{position:relative;}
:where(.hg-native-section) .hg-comparison{position:relative;}
:where(.hg-native-section) .hg-comparison-images{position:relative;aspect-ratio:16/9;overflow:hidden;clip-path:polygon(3% 0,100% 0,100% 94%,97% 100%,0 100%,0 6%);}
:where(.hg-native-section) .hg-comparison-images>.wp-block-image{position:absolute;inset:0;margin:0;width:100%;height:100%;}
:where(.hg-native-section) .hg-comparison-images img{width:100%;height:100%;object-fit:cover;}
:where(.hg-native-section) .hg-comparison-controls{display:flex;gap:12px;align-items:center;padding-top:16px;}
:where(.hg-native-section) .hg-comparison-controls input{flex:1;accent-color:#8dc63f;}
:where(.hg-native-section) .hg-comparison-controls button,:where(.hg-native-section) .hg-tab-buttons button{padding:14px 20px;background:#181b15;color:inherit;border:1px solid #30352a;cursor:pointer;}
:where(.hg-native-section) .hg-tab-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:32px;}
:where(.hg-native-section) .hg-tab-buttons button{font-family:Oswald,sans-serif;text-transform:uppercase;letter-spacing:.1em;}
:where(.hg-native-section) .hg-tab-buttons button[aria-selected=true]{background:linear-gradient(135deg,#b6db75,#7aab32);color:#0d1205;}
:where(.hg-native-section) [data-hg-tab][hidden]{display:none;}
.hg-native-editor-label{font:600 11px/1.5 system-ui,sans-serif;color:#50575e;background:#f0f0f0;padding:4px 8px;margin-bottom:8px;}
.editor-styles-wrapper .hg-native-section{max-width:none!important;}
.editor-styles-wrapper .hg-native-section .block-editor-block-list__block{max-width:none;}
.editor-styles-wrapper .hg-mechanism-preview{pointer-events:none;}
.editor-styles-wrapper .hg-comparison-images{aspect-ratio:auto;}
.editor-styles-wrapper .hg-comparison-images>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.editor-styles-wrapper .hg-comparison-images .wp-block-image{position:relative;inset:auto;}
.editor-styles-wrapper .hg-steps .hg-step-card{margin-bottom:32px;}
.editor-styles-wrapper .hg-native .block-list-appender{position:relative;}
.editor-styles-wrapper .hg-native .block-editor-button-block-appender{color:#8dc63f;box-shadow:inset 0 0 0 1px #8dc63f;}
/* Desktop: all step descriptions stay visible; only the shared image changes. */
body.hg-page .hg-steps-media{display:none;}
body.hg-page .hg-steps-list>.hg-step-card{margin-bottom:48px;}
@media(min-width:768px){
 body.hg-page .hg-steps.hg-steps-ready{height:calc(var(--hg-step-count)*100vh);position:relative;}
 body.hg-page .hg-steps-ready>.hg-steps-stage{position:sticky;top:40px;min-height:calc(100vh - 40px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,48px);align-items:center;box-sizing:border-box;padding-block:24px;}
 body.hg-page .hg-steps-ready .hg-steps-media{display:block;position:relative;height:70vh;max-height:700px;min-width:0;}
 body.hg-page .hg-steps-ready .hg-steps-media>.wp-block-column{position:absolute;inset:0;width:100%;margin:0;opacity:0;transform:scale(.97);transition:opacity .7s,transform .7s;pointer-events:none;}
 body.hg-page .hg-steps-ready .hg-steps-media>.is-active{opacity:1;transform:scale(1);pointer-events:auto;}
 body.hg-page .hg-steps-ready .hg-steps-media .wp-block-image{height:100%;width:100%;margin:0;}
 body.hg-page .hg-steps-ready .hg-steps-media .wp-block-image img{height:100%;width:100%;object-fit:cover;}
 body.hg-page .hg-steps-ready .hg-steps-list{display:grid;gap:24px;min-width:0;}
 body.hg-page .hg-steps-ready .hg-steps-list>.hg-step-card{margin:0;padding-left:24px;border-left:2px solid #30352a;opacity:.35;transition:opacity .5s,border-color .5s;}
 body.hg-page .hg-steps-ready .hg-steps-list>.is-active{border-left-color:#8dc63f;opacity:1;}
 body.hg-page .hg-steps-ready .hg-step-card>.wp-block-columns{display:block;margin:0;}
 body.hg-page .hg-steps-ready .hg-step-card>.wp-block-columns>.wp-block-column{width:100%;}
 body.hg-page .hg-steps-ready .hg-step-card>.wp-block-columns>.wp-block-column>:first-child{margin-top:0;}
 body.hg-page .hg-steps-ready .hg-step-card>.wp-block-columns>.wp-block-column>:last-child{margin-bottom:0;}
}
@media(max-width:480px){
 :where(.hg-native-section) .hg-comparison-controls{flex-wrap:wrap;}
 :where(.hg-native-section) .hg-comparison-controls input{flex:1 1 100%;width:100%;min-width:0;}
 :where(.hg-native-section) .hg-comparison-controls button{flex:1 1 auto;}
}

/* Keep the editing canvas usable when both Gutenberg sidebars are open. */
.editor-styles-wrapper {container-type:inline-size;}
@container (max-width:780px){
 .editor-styles-wrapper .hg-native-section .wp-block-columns{flex-wrap:wrap!important;}
 .editor-styles-wrapper .hg-native-section .wp-block-column{flex-basis:100%!important;}
}

body.hg-page .hg-native-floating{position:fixed;right:20px;bottom:20px;z-index:50;opacity:0;visibility:hidden;transition:opacity .2s;}
body.hg-page .hg-native-floating.is-visible{opacity:1;visibility:visible;}

/* Reference equipment icons. CSS also upgrades existing saved blocks without rewriting content. */
:where(.hg-native-section) .hg-tab-buttons button{display:inline-flex;align-items:center;gap:8px;padding:16px 24px;font-size:12px;letter-spacing:.16em;clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);}
:where(.hg-native-section) [data-hg-icon] {--hg-tab-icon:none;}
:where(.hg-native-section) [data-hg-icon="reference-check"]{--hg-tab-icon:url("../icons/check.svg");}
:where(.hg-native-section) [data-hg-icon="circle-dot"]{--hg-tab-icon:url("../icons/circle-dot.svg");}
:where(.hg-native-section) [data-hg-icon="dumbbell"]{--hg-tab-icon:url("../icons/dumbbell.svg");}
:where(.hg-native-section) [data-hg-icon="sparkles"]{--hg-tab-icon:url("../icons/sparkles.svg");}
:where(.hg-native-section) [data-hg-icon="wrench"]{--hg-tab-icon:url("../icons/wrench.svg");}

:where(.hg-native-section) .hg-tab-buttons [data-hg-icon]:not([data-hg-icon="none"])::before,
.editor-styles-wrapper .hg-tab[data-hg-icon]:not([data-hg-icon="none"])>.hg-native-editor-label::before{content:"";display:inline-block;vertical-align:middle;width:16px;height:16px;flex:0 0 16px;background:currentColor;mask:var(--hg-tab-icon) center/contain no-repeat;-webkit-mask:var(--hg-tab-icon) center/contain no-repeat;}
.editor-styles-wrapper .hg-tab>.hg-native-editor-label::before{margin-right:8px;}
/* The original generic check used 24px; match the reference's 16px, preserving custom colors and relative sizing. */
:where(#wyposazenie,.hg-equipment-editor) .hg-icon svg:has(>path[d="m5 12 4 4L19 6"]){width:.666667em;height:.666667em;background:currentColor;mask:url("../icons/check.svg") center/contain no-repeat;-webkit-mask:url("../icons/check.svg") center/contain no-repeat;}
:where(#wyposazenie,.hg-equipment-editor) .hg-icon svg>path[d="m5 12 4 4L19 6"]{visibility:hidden;}
:where(#wyposazenie,.hg-equipment-editor) .wp-block-group:has(>.hg-icon){flex-wrap:nowrap;align-items:flex-start;}
:where(#wyposazenie,.hg-equipment-editor) .hg-icon{padding-top:2px;}
:where(:is(#wyposazenie,.hg-equipment-editor) .wp-block-list:not([class*="is-style-"]),.wp-block-list.is-style-hg-sparkles){display:grid;grid-template-columns:minmax(0,1fr);gap:12px;list-style:none;padding-left:0;font-size:14px;color:#91958b;}
:where(:is(#wyposazenie,.hg-equipment-editor) .wp-block-list:not([class*="is-style-"]),.wp-block-list.is-style-hg-sparkles)>li{position:relative;padding-left:28px;margin:0;}
:where(:is(#wyposazenie,.hg-equipment-editor) .wp-block-list:not([class*="is-style-"]),.wp-block-list.is-style-hg-sparkles)>li::before{content:"";position:absolute;left:0;top:.2em;width:16px;height:16px;background:var(--hg-primary,#8dc63f);mask:url("../icons/sparkles.svg") center/contain no-repeat;-webkit-mask:url("../icons/sparkles.svg") center/contain no-repeat;}
@media(min-width:640px){
 :where(:is(#wyposazenie,.hg-equipment-editor) .wp-block-list:not([class*="is-style-"]),.wp-block-list.is-style-hg-sparkles){grid-template-columns:repeat(2,minmax(0,1fr));}
}
