/* Loaded only by the blog3-guarded Kontor plugin. Native layout remains editable. */
html,body,.l-canvas{background:#110f16!important;color:#fff;}
html::before{display:none!important;}
.l-footer,.l-footer .l-section{background:#110f16!important;color:#fff;}
body{font-family:Comfortaa,sans-serif;font-size:20px;line-height:25px;}
h1,h2,h3,h4,h5,h6{font-family:Ubuntu,sans-serif;color:#fff;font-weight:700;}
.wpb_text_column p:last-child{margin-bottom:0;}
@media(max-width:767px){body{font-size:15px;line-height:25px;}}
.gform_wrapper .gfield_label,.gform_wrapper .gform-field-label,.gform_wrapper .gfield_description{color:#fff!important;}
.gform_wrapper input:not([type=submit]):not([type=hidden]),.gform_wrapper textarea{background:#fff!important;color:#15131a!important;}
.gform_wrapper .gform_button{background:#8680f4!important;color:#fff!important;padding:12px 24px;}

/* Native Impreza Post List wrappers retain dynamic post data. */
#kontor-news .w-grid-item .w-hwrapper { display:flex; align-items:center; gap:0; width:100%; }
#kontor-news .w-grid-item .post_image { width:50%; flex:0 0 50%; margin:0!important; padding:10px; }
#kontor-news .w-grid-item .w-vwrapper { width:50%; flex:0 0 50%; padding:10px; }
#kontor-news .w-grid-item .post_image img { width:100%; height:auto; object-fit:contain; }
#kontor-news .w-grid-item:nth-child(even) .w-hwrapper { flex-direction:row-reverse; }
#kontor-news .w-grid-item:nth-child(even) .w-vwrapper { text-align:right; align-items:flex-end; }
#kontor-news .post_title a { text-decoration:underline; color:#fff; }
#kontor-news .w-grid-item { margin-bottom:40px; }
@media(max-width:767px) {
 #kontor-news .w-grid-item .w-hwrapper { flex-direction:column; }
 #kontor-news .w-grid-item:nth-child(even) .w-hwrapper { flex-direction:column-reverse; }
 #kontor-news .w-grid-item .post_image, #kontor-news .w-grid-item .w-vwrapper { width:100%; flex-basis:auto; padding:10px 5px; }
 #kontor-news .w-grid-item .post_title { font-size:20px!important; line-height:28px; }
 #kontor-news .w-grid-item .post_date { font-size:20px!important; }
}

/* Measured original loop geometry:1120px rows,30px desktop gap. */
#kontor-news .w-grid-list { width:calc(100% - 20px); margin:0 10px; gap:30px; }
#kontor-news .w-grid-item { margin-bottom:0; padding:10px 0; }
@media(max-width:767px) {
 #kontor-news .w-grid-list { width:100%; margin:0; gap:45px; }
 #kontor-news .w-grid-item { padding:0; }
}
 #kontor-news .post_date { line-height:25px; } 
/* Native Gravity Forms styled to the original Kontor form, without changing behavior. */
#gform_wrapper_1{margin-top:50px;}
#gform_wrapper_1 .gform_fields{row-gap:14px;}
#gform_wrapper_1 .gfield_label{margin-bottom:5px;font-family:Comfortaa,sans-serif;font-size:20px;font-weight:400;}
#gform_wrapper_1 input:not([type=submit]):not([type=hidden]),#gform_wrapper_1 textarea{background:#1f2939!important;color:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
#gform_wrapper_1 input:not([type=submit]):not([type=hidden]){height:40px;min-height:40px;}
#gform_wrapper_1 textarea{height:142px;min-height:142px;}
#gform_wrapper_1 .gform_footer{margin-top:16px;padding:0;}
#gform_wrapper_1 .gform_button{width:100%;font-family:Ubuntu,sans-serif;font-weight:700;font-size:30px;line-height:1.2;border-radius:0;}
@media(max-width:767px){#gform_wrapper_1 .gfield_label{font-size:15px;}}

/* Kontor text links: match the original violet, including native footer text overrides. */
.l-main .wpb_text_column a:not(.w-btn),.l-main .w-text a:not(.w-btn),.l-footer .wpb_text_column a,.l-footer .w-text a{color:#857ff5!important;}
.l-main .wpb_text_column a:hover,.l-main .w-text a:hover,.l-footer .wpb_text_column a:hover,.l-footer .w-text a:hover{color:#fff!important;}

/* Poster stays as native row background until actual YouTube PLAYING state. */
#kontor-hero .l-section-video{opacity:0;transition:opacity .4s;}
#kontor-hero.kontor-video-playing .l-section-video{opacity:1;}

/* Page169 native member/customer cards. True circles, aligned name and company rows. */
.page-id-169 .kontor-portrait{display:block!important;width:220px!important;height:auto!important;aspect-ratio:1/1;max-width:100%;margin:0 auto 20px!important;border-radius:50%!important;overflow:hidden;}
.page-id-169 .kontor-portrait .w-image-h{display:block;width:100%;height:100%;}
.page-id-169 .kontor-portrait img{display:block;width:100%!important;height:100%!important;object-fit:cover;border-radius:50%;}
.page-id-169 .kontor-family h2,.page-id-169 .kontor-customers h2{min-height:98px;margin-bottom:12px!important;display:flex;align-items:flex-start;justify-content:center;text-align:center!important;}
.page-id-169 .kontor-family .wpb_text_column p:first-child,.page-id-169 .kontor-customers .wpb_text_column p:first-child{text-align:center;}
@media(max-width:767px){.page-id-169 .kontor-family h2,.page-id-169 .kontor-customers h2{min-height:0;}}
