/* Compact control, independent of the original navigation layout. */
.construck-language{position:relative;display:flex;align-items:center;flex:0 0 auto;width:128px;min-height:30px;border:1px solid #666;border-radius:4px;background:#171717;color:#fff;z-index:60;box-sizing:border-box}
.construck-language-globe{display:flex;position:absolute;left:9px;pointer-events:none;color:#fff}
.construck-language-globe svg{width:14px;height:14px}
.construck-language::after{content:"";position:absolute;right:11px;top:50%;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.construck-language :is(select,.construck-language-trigger){appearance:none;-webkit-appearance:none;display:block;box-sizing:border-box;width:100%;min-width:0;height:28px;margin:0;padding:4px 28px 4px 30px;font:600 12px/1.4 Arial,sans-serif;text-align:left;color:#fff;background:transparent;border:0;cursor:pointer;color-scheme:dark;border-radius:4px}
.construck-language :is(select,.construck-language-trigger) option{background:#171717;color:#fff;font-weight:500}
.construck-language:hover{background:#333;border-color:#eee}
.construck-language:focus-within{outline:2px solid #fff;outline-offset:3px}
.construck-language :is(select,.construck-language-trigger):focus{outline:none}
.construck-language :is(select,.construck-language-trigger)[aria-busy=true]{opacity:.8}
.construck-language-mobile{display:none}
.construck-language-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.construck-language-error{position:fixed;inset:auto 16px 16px auto;z-index:9999;width:auto;height:auto;max-width:min(400px,90vw);clip:auto;white-space:normal;background:#fff;color:#111;border:1px solid #111;padding:16px;box-shadow:0 4px 24px #0003}
@media(min-width:1024px){
 /* Absolute positioning leaves both menu rows, fonts and logo sizes untouched. */
 .construck-language-top-row>.construck-language{position:absolute;right:24px;top:calc(100% - 17px);margin:0}
 /* Keep approved logo alignment when translated ARIA labels change. */
 .site-header nav[data-slot=navigation-menu] a[href="https://calc.construck.me/"]{transform:translateY(calc(-.6em + 2px))}
 .site-header nav[data-slot=navigation-menu] a[href="/construcklabs"]{transform:translateY(-.45em)}
}
@media(max-width:1023px){
 .construck-language-mobile{display:flex;margin-inline-start:auto;margin-inline-end:12px;min-height:36px}
 .construck-language-mobile :is(select,.construck-language-trigger){height:34px}
 .site-header>div:nth-child(2)>.wrapper>a{max-width:clamp(100px,36vw,150px);margin-inline-end:10px;flex-shrink:1;min-width:0}
 .site-header>div:nth-child(2)>.wrapper>a>img{width:100%;height:auto}
}
/* Shared desktop rhythm: content-sized actions and one navigation row. */
@layer utilities{
 @media(min-width:1024px){
  .site-header>div:nth-child(2) [data-slot=navigation-menu-list]{flex-wrap:nowrap;margin-right:0;margin-inline-end:8px}
  .site-header>div:nth-child(2) [data-slot=navigation-menu-list] [data-slot=navigation-menu-link],
  .site-header>div:nth-child(2) [data-slot=navigation-menu-list] [data-slot=navigation-menu-trigger]{padding-inline:5px!important;white-space:nowrap}
  .site-header>div:nth-child(2) nav>a[href="/contact-us"],
  .site-header>div:nth-child(2) nav>a[href="https://app.construck.me/"]{font-size:17px!important;line-height:24px;padding:10px 14px;gap:7px;min-width:0;height:46px;box-sizing:border-box}
  .site-header>div:nth-child(2) nav>a>svg{width:22px;height:22px}
  .site-header>div:nth-child(2) nav>a[href="https://app.construck.me/"]{margin-left:0;margin-inline-start:12px}
 }
 @media(min-width:1024px) and (max-width:1279px){
  .construck-language-top-row>img{height:64px;width:auto}
  .construck-language-top-row [data-slot=navigation-menu-link]{padding-inline:6px!important}
  .construck-language-top-row a[href="https://calc.construck.me/"] img{height:24px;width:auto}
  .site-header>div:nth-child(2) [data-slot=navigation-menu-list] [data-slot=navigation-menu-link],
  .site-header>div:nth-child(2) [data-slot=navigation-menu-list] [data-slot=navigation-menu-trigger]{font-size:clamp(14px,1.25vw,16px)!important;padding-inline:4px!important}
  .site-header>div:nth-child(2) a[href="/construcklabs"] img{height:28px;width:auto}
  .site-header>div:nth-child(2) [data-slot=navigation-menu-trigger] svg{width:18px;height:18px}
  .site-header>div:nth-child(2) nav>a[href="/contact-us"],
  .site-header>div:nth-child(2) nav>a[href="https://app.construck.me/"]{font-size:clamp(14px,1.25vw,16px)!important;padding-inline:10px;gap:6px}
  .site-header>div:nth-child(2) nav>a>svg{width:20px;height:20px}
 }
}
@media(max-width:380px){.construck-language-mobile{width:118px;margin-inline-end:6px}.construck-language :is(select,.construck-language-trigger){padding-left:29px;padding-right:25px}}
@media(max-width:1023px) and (pointer:coarse){.construck-language-mobile{min-height:44px}.construck-language-mobile :is(select,.construck-language-trigger){height:42px}}
html[lang=ar] body{font-family:Tahoma,Arial,sans-serif}
html[lang=ar] .site-header{direction:ltr}
html[lang=ar] .page-enter,html[lang=ar] main,html[lang=ar] footer{direction:rtl}
html[lang=ar] [data-slot=carousel]{direction:ltr}
html[lang=ar] [data-slot=carousel-item]{direction:rtl}
html[lang=ar] .text-left{text-align:right!important}
html[lang=ar] .text-right{text-align:left!important}
html[lang=ar] .text-center{text-align:center!important}
html[lang=ar] p,html[lang=ar] h1,html[lang=ar] h2,html[lang=ar] h3,html[lang=ar] h4,html[lang=ar] li{letter-spacing:normal!important}
html[lang=ar] p{line-height:1.8}
html[lang=ar] .construck-home-about-copy,html[lang=ar] .construck-home-about-text{text-align:right}
html[lang=ar] input[type=email],html[lang=ar] input[type=tel],html[lang=ar] input[type=url],html[lang=ar] code,html[lang=ar] pre{direction:ltr;text-align:left}
@media(min-width:768px){
 html[lang=ar] [data-slot=carousel-item]>div:has(>video)>.wrapper{padding-right:24%}
 html[lang=ar] [data-slot=carousel-item]>div:has(>video)>.wrapper h1,
 html[lang=ar] [data-slot=carousel-item]>div:has(>video)>.wrapper h2,
 html[lang=ar] [data-slot=carousel-item]>div:has(>video)>.wrapper p{padding-right:0}
}

/* Website-owned language picker: soft charcoal, restrained motion and clear selection. */
.construck-language{border-radius:6px;transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease}
.construck-language:focus-within{outline:none}
.construck-language:has(.construck-language-trigger:focus-visible){outline:2px solid #ddd;outline-offset:3px}
.construck-language::after{transition:transform 160ms ease}
.construck-language.is-open{background:#2a2a2a;border-color:#a2a2a2}
.construck-language.is-open::after{transform:translateY(-20%) rotate(225deg)}
.construck-language-trigger{border-radius:5px}
.construck-language-trigger>span{display:block;white-space:nowrap}
.construck-language-menu{position:absolute;top:calc(100% + 8px);right:0;width:180px;max-width:calc(100vw - 32px);padding:6px;box-sizing:border-box;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(35,35,37,.97);backdrop-filter:blur(20px) saturate(125%);-webkit-backdrop-filter:blur(20px) saturate(125%);box-shadow:0 12px 32px #0005,0 2px 6px #0003,inset 0 1px 0 #ffffff0d;color:#f7f7f7;z-index:100;transform-origin:top right;animation:construck-language-reveal 150ms ease-out}
.construck-language-menu[hidden]{display:none}
.construck-language-option{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:36px;margin:0;padding:8px 10px;box-sizing:border-box;border:1px solid transparent;border-radius:7px;background:transparent;color:#f0f0f0;font:500 13px/18px Arial,sans-serif;text-align:left;cursor:pointer;outline:none;transition:background-color 120ms ease,border-color 120ms ease,color 120ms ease}
.construck-language-option+.construck-language-option{margin-top:2px}
.construck-language-option[aria-selected=true]{background:#ffffff14;color:#fff;font-weight:600}
.construck-language-option:hover,.construck-language-option:focus-visible{background:#ffffff24;border-color:#ffffff25;color:#fff}
.construck-language-check{display:flex;flex:0 0 16px;opacity:0}
.construck-language-option[aria-selected=true] .construck-language-check{opacity:1}
@keyframes construck-language-reveal{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:1023px){.construck-language-option{min-height:44px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.construck-language,.construck-language::after,.construck-language-option{transition:none}.construck-language-menu{animation:none}}

/* Safe content insets in the shared collaboration panel, in either text direction. */
.page-enter .border-conv-8:has(>div>a[href*="technical-collaboration-inquiry"]){padding:clamp(24px,3vw,48px) clamp(24px,4vw,64px);gap:32px;box-sizing:border-box}
.page-enter .border-conv-8:has(>div>a[href*="technical-collaboration-inquiry"])>div{min-width:0;flex:1 1 0;max-width:100%}
.page-enter .border-conv-8:has(>div>a[href*="technical-collaboration-inquiry"])>div>:is(h3,p){max-width:100%;overflow-wrap:break-word}
.page-enter .border-conv-8:has(>div>a[href*="technical-collaboration-inquiry"])>div>a{max-width:100%;white-space:normal;text-align:center;gap:12px;padding-inline:20px}
.page-enter .border-conv-8:has(>div>a[href*="technical-collaboration-inquiry"])>img{width:46%;max-width:600px;min-width:0;height:auto;flex-shrink:1}
@media(max-width:1023px){
 .page-enter .border-conv-8:has(>div>a[href*="technical-collaboration-inquiry"]){gap:24px}
 .page-enter .border-conv-8:has(>div>a[href*="technical-collaboration-inquiry"])>div{flex-basis:auto;width:100%}
 .page-enter .border-conv-8:has(>div>a[href*="technical-collaboration-inquiry"])>img{width:100%;max-width:500px}
}
/* Keep the first and last tab buttons away from their outer frame. */
.page-enter .ai-tabs,.page-enter .perspective-carousel>.pt-tabs,.page-enter .c7-workbench>.c7-controls{padding:12px;gap:4px;box-sizing:border-box}
.page-enter .ai-tabs>button,.page-enter .pt-tabs>button,.page-enter .c7-controls>button{min-width:0;white-space:normal;line-height:1.5}
.page-enter [role=tablist].rounded-full{padding:12px}
/* Arabic joins naturally; do not apply Latin tracking to its labels or controls. */
html[lang=ar] :is(button,a,label,input,select,textarea,[role=tab]){letter-spacing:normal!important;word-spacing:normal}

/* Comfortable small-card padding and a vertical Arabic reveal on narrow screens. */
.page-enter .rounded-conv-10.border-conv-1.px-conv-15{padding-inline:16px}
@media(max-width:1023px){
 .page-enter .c7-workbench .c7-screen{padding-inline:16px}
 html[lang=ar] .page-enter [data-cu=pending][data-cu-kind=list]>*{transform:translateY(12px)!important}
 html[lang=ar] .page-enter [data-cu=pending][data-cu-kind=block]{transform:translateY(12px)!important}
}

/* Match the Calc lettering baseline when its approved logo uses the compact size. */
@media(min-width:1024px) and (max-width:1279px){.site-header nav[data-slot=navigation-menu] a[href="https://calc.construck.me/"]{transform:translateY(calc(-.6em + 3px))}}

/* Mirror the decorative panel together with its RTL grid column. Shared by
   coastal, slope, anchor, soil, canal and flood product templates. */
@media(min-width:768px){
 html[lang=ar] .page-enter .absolute.bg-black[class~="w-[35%]"].left-0{left:auto;right:0}
 html[lang=ar] .page-enter .absolute.bg-black[class~="w-[35%]"].right-0{right:auto;left:0}
}
/* These legacy feature cards hard-coded LTR on their text column. Keep the
   image itself unchanged and let Arabic prose use natural reading direction. */
html[lang=ar] .page-enter .grid>div[style*="direction:ltr"]:has(>h3,>p),
html[lang=ar] .page-enter .grid>div[style*="direction: ltr"]:has(>h3,>p){direction:rtl!important;text-align:start}
html[lang=ar] .page-enter :where(.grid,.flex)>:where(div,article,section){min-inline-size:0}
html[lang=ar] .page-enter :is(h1,h2,h3,h4,p,td,th){overflow-wrap:break-word}
/* Accordion numbers move to the right in Arabic; their copy indent follows. */
html[lang=ar] .page-enter [data-slot=accordion-content]>[class~="pl-conv-66"]{padding-left:0;padding-right:66px}
@media(max-width:1023px){html[lang=ar] .page-enter [data-slot=accordion-content]>[class~="max-lg:pl-conv-58"]{padding-right:58px}}
@media(max-width:767px){html[lang=ar] .page-enter [data-slot=accordion-content]>[class~="max-md:pl-conv-52"]{padding-right:52px}}

/* WAVE_WIDE_FADES_20261116: presentation only; retain all existing language rules. */
/* ConstruckWave presentation only: broad, smooth transitions into white. */
#main-content .cw-product-list{display:none!important}
#main-content .wave-size-range .lineup{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
#main-content .wave-soft-art,
#main-content .wave-product-drawing,
#main-content .wave-beach-composite{
  --wave-fade-x:linear-gradient(to right,transparent 0%,#00000008 2%,#00000045 5%,#000000a6 9%,#000000e8 14%,#000 20%,#000 80%,#000000e8 86%,#000000a6 91%,#00000045 95%,#00000008 98%,transparent 100%);
  --wave-fade-y:linear-gradient(to bottom,transparent 0%,#00000008 2%,#00000045 6%,#000000a6 11%,#000000e8 17%,#000 24%,#000 76%,#000000e8 83%,#000000a6 89%,#00000045 94%,#00000008 98%,transparent 100%);
  -webkit-mask-image:var(--wave-fade-x),var(--wave-fade-y)!important;
  mask-image:var(--wave-fade-x),var(--wave-fade-y)!important;
  -webkit-mask-composite:source-in!important;
  mask-composite:intersect!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
}
#main-content #how-it-works .wave-pack-figure{background:#fff!important;border:0!important;box-shadow:none!important}
#main-content .wave-beach-composite .wave-beach-comparison{
  -webkit-mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent),linear-gradient(to bottom,transparent,#000 18%,#000 82%,transparent)!important;
  mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent),linear-gradient(to bottom,transparent,#000 18%,#000 82%,transparent)!important;
}

/* Reviewed multilingual content fitting. Preserve image artwork and proportions. */
.cw-nav-title,.cw-nav-description{overflow-wrap:anywhere!important;word-break:normal!important;unicode-bidi:plaintext}
.cw-nav-item{column-gap:10px!important;padding-inline:8px!important}
.cw-nav-item>span{min-inline-size:0;max-inline-size:100%}
.cw-menu-preview>img{object-position:center}
.page-enter :is(h1,h2,h3,h4,p,figcaption),main :is(h1,h2,h3,h4,p,figcaption){overflow-wrap:anywhere}
.page-enter :where(.grid,.flex)>:where(div,article,section),main :where(.grid,.flex)>:where(div,article,section){min-inline-size:0}
html[lang=ar] :is(figcaption,caption){direction:rtl;letter-spacing:normal;line-height:1.7}
html[lang=ar] .cw-nav-title,html[lang=ar] .cw-nav-description{line-height:1.6}
/* Text and images share the same available width; illustrations are never mirrored. */
.wave-coastal-frame,.wave-coastal-frame img{max-inline-size:100%;box-sizing:border-box}
@media(max-width:767px){
 .page-enter [role=tablist],main [role=tablist]{max-inline-size:100%;box-sizing:border-box}
 .page-enter [role=tab],main [role=tab]{min-inline-size:0;white-space:normal;overflow-wrap:break-word}
}

/* Preserve logo proportions inside its reserved mobile-header column. */
@media(max-width:1023px){.site-header>div:nth-child(2)>.wrapper>a>img[src*="/graphics/construck-logo.png"]{width:100%!important;max-width:100%!important;height:auto!important;object-fit:contain!important}}
