#gnb .site-language-button,.site-language-button{display:inline-flex;align-items:center;justify-content:center;gap:calc(5px * var(--language-scale,1));height:26px;min-height:0;padding:0 calc(9px * var(--language-scale,1) - 2px);border:0;border-radius:30px;box-sizing:border-box;background:var(--language-surface,#ededed);box-shadow:0 0 0 2px var(--language-surface,#ededed);color:#0b0b0b;font:500 calc(12px * var(--language-scale,1))/1 Arial,sans-serif;white-space:nowrap;cursor:pointer;flex-shrink:0;transition:background-color .25s,box-shadow .25s}
.site-language-button svg{width:calc(17px * var(--language-scale,1));height:calc(17px * var(--language-scale,1));flex:none}.site-language-button:hover{--language-surface:#ddd}.site-language-button:focus-visible{outline:2px solid #ff6e2e;outline-offset:3px}
.mobile-language-tools{display:contents}.site-language-standalone{position:fixed;right:20px;top:20px;z-index:10000}
@media(max-width:1400px){html body #gnb.has-mega-menu .mobile-language-tools{display:flex;align-items:center;gap:12px;justify-self:start;grid-column:1;grid-row:1;z-index:300002}#gnb .site-language-button{height:24px;font-size:calc(11px * var(--language-scale,1));padding:0 calc(7px * var(--language-scale,1) - 2px);gap:calc(4px * var(--language-scale,1))}#gnb .site-language-button svg{width:calc(15px * var(--language-scale,1));height:calc(15px * var(--language-scale,1))}}
@media(max-width:400px){html body #gnb.has-mega-menu .mobile-language-tools{gap:7px}#gnb .site-language-button{padding:0 calc(5px * var(--language-scale,1) - 2px)}}
html[lang=en] #gnb .dropdown-item{white-space:normal;line-height:1.4}html[lang=en] #gnb .dropdown-content{min-width:180px}
html[lang=en] :is(.service-scope-card,.service-process-card,.home-service-item,.contact-container){overflow-wrap:break-word}
html[lang=en] :is(.service-process-card,.service-scope-card) br{display:none}
/* Phone header: distribute the five visible controls with equal visual gaps. */
@media(max-width:599px){
 html body #gnb.has-mega-menu{grid-template-columns:auto auto auto auto auto;justify-content:space-between;column-gap:0;}
 html body #gnb.has-mega-menu :is(.mobile-language-tools,.nav-right){display:contents;}
 html body #gnb.has-mega-menu .mobile-menu-toggle{grid-column:1;grid-row:1;}
 html body #gnb.has-mega-menu .theme-switch{grid-column:2;grid-row:1;justify-self:center;margin-inline:2px;position:relative;z-index:300002;}
 html body #gnb.has-mega-menu .logo{grid-column:3;grid-row:1;}
 html body #gnb.has-mega-menu .site-language-button{grid-column:4;grid-row:1;justify-self:center;margin-inline:2px;position:relative;z-index:2;}
 html body #gnb.has-mega-menu .nav-account{grid-column:5;grid-row:1;position:relative;z-index:2;}
}
/* English navigation has longer labels: keep each submenu inside its column. */
@media(min-width:1401px){
 html[lang=en] body #gnb.has-mega-menu #navMenu .dropdown-content{width:calc(100% + clamp(48px,4.6vw,88px) - 16px);min-width:112px;}
 html[lang=en] body #gnb.has-mega-menu #navMenu .dropdown-content .dropdown-item{white-space:normal;word-break:normal;overflow-wrap:normal;line-height:1.5;display:block;padding:10px 0;}
 html[lang=en] body #gnb.has-mega-menu #navMenu .nav-external-label{display:inline;white-space:normal;}
 html[lang=en] body #gnb.has-mega-menu #navMenu .nav-external-arrow{display:inline-block;vertical-align:middle;margin-inline-start:.3em;}
}
@media(max-width:1400px){
 html[lang=en] body #gnb.has-mega-menu #navMenu .dropdown-content{min-width:0;max-width:100%;}
 html[lang=en] body #gnb.has-mega-menu #navMenu .dropdown-item,
 html[lang=en] body #gnb.has-mega-menu #navMenu .nav-external-label{white-space:normal;overflow-wrap:break-word;}
 html[lang=en] body #gnb.has-mega-menu #navMenu .nav-external-label{display:inline;}
 html[lang=en] body #gnb.has-mega-menu #navMenu .nav-external-arrow{display:inline-block;vertical-align:middle;margin-inline-start:.3em;}
}
/* Allow translated tabs to grow vertically without colliding with neighbours. */
html[lang=en] body #page-venture .certification-tab,
html[lang=en] body.page-services-guide .services-guide-tab{white-space:normal;overflow-wrap:break-word;display:flex;align-items:center;justify-content:center;line-height:1.4;}
html[lang=en] body #page-home .home-services .home-section-title{padding-inline-end:.14em;}
html[lang=en] body .auth-field label{white-space:normal;overflow-wrap:break-word;}
html[lang=en] body #page-quote .quote-hero :is(h1,.quote-sub){white-space:normal;overflow-wrap:break-word;text-wrap:pretty;}
html[lang=en] body #page-quote .quote-hero h1 b{margin-inline:.12em;}

/* Requested English headline line breaks; keep the existing emphasis styling. */
html[lang=en] #page-venture .certificate-english-line{display:block;white-space:nowrap;}
@media(max-width:640px){html[lang=en] body #page-venture .certificate-heading-three-lines{font-size:clamp(14px,3.9vw,22px);}}
html[lang=en] body #page-experience.experience-core-page .core-skills-left{container-type:inline-size;min-width:0;}
html[lang=en] body #page-experience.experience-core-page .core-skills-card .skill-main-title{font-size:clamp(24px,13cqw,42px)!important;line-height:1.15;max-width:100%;}
@media(max-width:767px){html[lang=en] body #page-experience.experience-core-page .core-skills-card .skill-main-title{font-size:clamp(22px,10cqw,32px)!important;}}
/* English mobile filters: equal columns instead of clipped single rows. */
@media(max-width:767px){
 html[lang=en] body #page-experience.experience-core-page .experience-skill-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;max-width:400px;margin-inline:auto;}
 html[lang=en] body #page-experience.experience-core-page .experience-skill-nav a{min-width:0;width:100%;box-sizing:border-box;min-height:42px;padding:10px 8px;white-space:normal;overflow-wrap:break-word;text-align:center;}
 html[lang=en] body #page-project-web .works-filter-wrapper{width:100%;max-width:100%;box-sizing:border-box;}
 html[lang=en] body #page-project-web .works-filter{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%!important;max-width:400px!important;margin-inline:auto;}
 html[lang=en] body #page-project-web .works-filter-row{display:contents;}
 html[lang=en] body #page-project-web .works-filter-btn{width:100%!important;max-width:100%!important;padding:10px 8px!important;white-space:normal!important;overflow-wrap:break-word;box-sizing:border-box;text-align:center;}
 html[lang=en] body #page-project-web .works-filter-btn[data-category-slug="all"]{grid-column:1/-1;justify-self:center;width:auto!important;min-width:96px!important;}
}
