.locale-prompt {
  position:fixed; z-index:35; inset:auto auto max(14px,env(safe-area-inset-bottom)) 50%;
  transform:translateX(-50%); display:flex; align-items:center; gap:2px;
  padding:3px; background:#201f1d; color:#f7f3e9; border:1px solid #79756e;
  border-radius:7px; box-shadow:0 3px 12px #100e0c26;
  font:550 .78rem/1.3 var(--body); white-space:nowrap;
}
.locale-prompt[hidden] {display:none}
.locale-segments {display:flex; align-items:stretch; gap:2px}
.locale-segments > * {
  display:inline-flex; align-items:center; justify-content:center; padding:4px 11px;
  min-height:34px; color:#eee9dc; border-radius:3px; text-decoration:none;
}
.locale-segments [aria-current] {color:#24211c; background:#f0eade}
.locale-prompt [lang=ar], .site-footer a.language[lang=ar] {font-family:Readex, "Readex Pro", sans-serif; letter-spacing:0}
.locale-close {
  position:relative; background:transparent; border:0; color:#ddd7cb; cursor:pointer;
  border-inline-start:1px solid #5d5951; width:32px; height:30px; padding:0; border-radius:0;
}
.locale-close::before,.locale-close::after {
  content:""; position:absolute; width:11px; height:1.3px; background:currentColor;
  top:50%; left:50%; transform:translate(-50%,-50%) rotate(45deg);
}
.locale-close::after { transform:translate(-50%,-50%) rotate(-45deg) }
.locale-prompt :is(a,button):hover {background:#35322e;color:#fff}
.locale-prompt :is(a,button):focus-visible {outline:2px solid #ffac69;outline-offset:-2px}
.site-footer .footer-meta a.language {text-decoration:underline; text-underline-offset:.24em}
@media (pointer:coarse) {
  .locale-segments > *, .locale-close {min-height:44px}
  .locale-close {min-width:44px}
}
@media (max-width:860px) {
  body .site-header .top .tools {gap:clamp(7px,2.6vw,17px)}
  body .site-header .top .tools > .action {display:inline-flex; white-space:nowrap}
}
@media (max-width:360px) {
  body .site-header .top .tools > .action {font-size:.69rem; padding-inline:7px}
}
body .action-motion {
  position:relative;
}
body .action-motion .action-fill {
  position:absolute; z-index:1; inset:-1px; border:1px solid var(--hover-stroke,#24231f);
  display:flex; justify-content:center; align-items:center; padding:inherit; pointer-events:none;
  color:var(--hover-label,#f9f5e9); background:var(--hover-face,#24231f);
  clip-path:inset(0 100% 0 0);
  transition:clip-path 310ms cubic-bezier(.22,.70,.18,1);
}
html[dir=rtl] .action-motion .action-fill {clip-path:inset(0 0 0 100%)}
body .intake .intake-primary {--face:#e4863c;--label:#15130f;--stroke:#a95b23}
body .action-motion:is(:focus-visible,:hover,:active) {
  background:var(--face,#e4863c) !important; color:var(--label,#15130f) !important;
  border-color:var(--stroke,#a95b23) !important;
}
body .action-motion:focus-visible {outline:2px solid #bd642c; outline-offset:6px}
body .action-motion:is(:focus-visible,:active) .action-fill {clip-path:inset(0)}
@media (hover:hover) {
  body .action-motion:hover .action-fill {clip-path:inset(0)}
}
@media (prefers-reduced-motion:reduce) {
  body .action-motion .action-fill, body .action-motion::before {transition:none !important}
}
@media print { .locale-prompt {display:none} }
/* Secondary and worksheet controls share the reveal with a quieter face. */
body main .button.action-motion:not(.enquiry-action):not([href*="/request-quote/"]) {
  --face:#252521; --label:#f4f0e6; --stroke:#34342e; --corner:#78776d;
  --hover-face:#f2ebde; --hover-label:#23231f; --hover-stroke:#8b897e;
  color:var(--label); background:var(--face); border:1px solid var(--stroke);
}
body main .button.action-motion.secondary, body main :is(#enquiry-save,#tool-copy).button.action-motion {
  --face:#eeeae0; --label:#272621; --stroke:#89877f; --corner:#79776d;
  --hover-face:#252521; --hover-label:#f4f0e6; --hover-stroke:#252521;
}
body main :is(.button,.intake-primary).action-motion::before {
  content:""; position:absolute; inset:-4px; pointer-events:none;
  --tick:linear-gradient(var(--corner,#ab6937),var(--corner,#ab6937));
  background:var(--tick) left top/5px 1px,var(--tick) left top/1px 5px,var(--tick) right top/5px 1px,var(--tick) right top/1px 5px,var(--tick) left bottom/5px 1px,var(--tick) left bottom/1px 5px,var(--tick) right bottom/5px 1px,var(--tick) right bottom/1px 5px;
  background-repeat:no-repeat; transition:inset 220ms ease, opacity 220ms ease;
}
body main :is(.button,.intake-primary).action-motion:is(:hover,:focus-visible,:active)::before {inset:-1px; opacity:0}
/* At very narrow widths the labelled menu becomes a 44px icon button.
   The active Menu/Close label remains available to assistive technology. */
@media(max-width:360px) {
  html body .site-header .top {padding-inline:12px;gap:6px}
  html body .site-header .top .tools {gap:6px}
  html body .site-header details.mobile>summary {
    position:relative; justify-content:center; inline-size:44px; min-inline-size:44px;
    block-size:44px; padding:0; gap:0;
  }
  html body .site-header details.mobile>summary>span {
    position:absolute; clip-path:inset(50%); inline-size:1px; block-size:1px;
    overflow:hidden; white-space:nowrap;
  }
  html body .site-header details.mobile>summary::before,
  html body .site-header details.mobile>summary::after {
    content:""; position:absolute; inline-size:18px; block-size:1px; border:0;
    background:currentColor; transform:translateY(-3px);
  }
  html body .site-header details.mobile>summary::after {transform:translateY(3px)}
  html body .site-header details.mobile[open]>summary::before {transform:rotate(45deg)}
  html body .site-header details.mobile[open]>summary::after {transform:rotate(-45deg)}
}
