/* Shared navigation uses the same component on the studio, demo and legal pages. */
.site-mast, .site-foot, .site-dialog, .shell-skip {
  --shell-bg:#f9fafc; --shell-surface:#fff; --shell-ink:#172237; --shell-muted:#4c5a6d;
  --shell-accent:#293fc8; --shell-rule:#cbd4de; --shell-soft:#e9edf8;
  box-sizing:border-box; color:var(--shell-ink); font-family:Heebo,Arial,sans-serif;
}
html[data-design="nocturne"] :is(.site-mast,.site-foot,.site-dialog,.shell-skip) {
  --shell-bg:#0c131b; --shell-surface:#141e28; --shell-ink:#f1f6f7; --shell-muted:#b5c2cd;
  --shell-accent:#b5edff; --shell-rule:#40515d; --shell-soft:#24343e;
}
html[data-design="editorial"] :is(.site-mast,.site-foot,.site-dialog,.shell-skip) {
  --shell-bg:#f6f2eb; --shell-surface:#fffcf7; --shell-ink:#211e1b; --shell-muted:#605950;
  --shell-accent:#a4331b; --shell-rule:#c8bdb0; --shell-soft:#eae0d5;
}
html[data-design="beautyc"] :is(.site-mast,.site-foot,.site-dialog,.shell-skip) {
  --shell-bg:#fbf3ec; --shell-surface:#fffaf6; --shell-ink:#392a33; --shell-muted:#634f5a;
  --shell-accent:#a73629; --shell-rule:#d7c8c7; --shell-soft:#f4ded5;
}
.site-mast, .site-foot { background:var(--shell-bg); }
.site-mast { border-block-end:1px solid var(--shell-rule); }
.site-mast .shell, .site-foot .shell { width:min(1220px,calc(100% - clamp(2rem,9.8vw,10rem))); margin-inline:auto; }
.site-mast .mast-inner, .site-foot .footer-inner {
  display:flex; align-items:center; justify-content:space-between; min-height:76px;
  gap:clamp(.8rem,2.5vw,2.5rem);
}
.site-mast button, .site-foot button, .site-dialog button { font:inherit; color:inherit; }
.site-mast .site-wordmark, .site-foot .site-wordmark {
  display:inline-flex; align-items:center; gap:.52rem; flex:none;
  color:var(--shell-ink); font-size:clamp(1.35rem,2vw,2rem); font-weight:800;
  letter-spacing:-.057em; line-height:1; text-decoration:none; white-space:nowrap;
}
.site-wordmark .brand-ai { margin-inline-start:0; font-weight:475; letter-spacing:-.047em; }
.site-wordmark .brand-sign, .site-wordmark .brand-sign::after {
  box-sizing:border-box; border:2.5px solid var(--shell-accent); border-radius:29%;
}
.site-wordmark .brand-sign { width:.78em; height:.78em; flex:none; position:relative; transform:rotate(-22deg); }
.site-wordmark .brand-sign::after { content:""; position:absolute; inset:-2.5px; background:var(--shell-bg); transform:translate(-27%,28%); }
.site-mast .site-nav, .site-mast .nav-tools, .site-foot nav { display:flex; align-items:center; }
.site-mast .site-nav { gap:clamp(.85rem,1.7vw,1.8rem); }
.site-mast .site-nav a, .site-foot nav a, .site-mast .lang-link, .site-foot .edition-trigger {
  color:var(--shell-ink); font-size:.91rem; font-weight:590; text-decoration:none; white-space:nowrap;
}
.site-mast .site-nav a, .site-foot nav a { padding:.45rem 0; }
.site-mast .site-nav a[aria-current="page"], .site-foot .foot-pages a[aria-current="page"], .site-mast .site-nav a:hover, .site-foot nav a:hover {
  color:var(--shell-accent); text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:.36em;
}
.site-mast .nav-tools { gap:clamp(.35rem,1.4vw,1.45rem); flex:none; }
.site-mast button, .site-foot .edition-trigger, .site-dialog .dialog-close { background:none; border:0; cursor:pointer; }
.site-mast .edition-trigger, .site-mast .menu-trigger, .site-mast .lang-link {
  min-height:44px; min-width:40px; display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  color:var(--shell-ink); padding:0 .2rem; font-size:.9rem; font-weight:625; text-decoration:none;
}
.site-mast .lang-link:hover, .site-mast .edition-trigger:hover, .site-mast .menu-trigger:hover { color:var(--shell-accent); }
.site-mast .nav-cta { display:inline-flex; align-items:center; justify-content:center; padding:.6rem .95rem; min-height:42px; text-decoration:none; font-size:.9rem; font-weight:680; }
.site-mast .nav-cta { border:1px solid var(--shell-ink); border-radius:7px; color:var(--shell-ink); }
html[data-design="nocturne"] .site-mast .nav-cta, html[data-design="editorial"] .site-mast .nav-cta { border-radius:0; }
html[data-design="beautyc"] .site-mast .nav-cta { border-radius:99px; background:var(--shell-accent); color:white; border-color:var(--shell-accent); }
.work-page-link { margin-block-end:1.25rem; }
.site-mast .menu-trigger { display:none; }
.site-mast .palette-icon { display:inline-block; width:.94rem; height:.94rem; border:1.6px solid currentColor; border-radius:3px; position:relative; overflow:hidden; }
.site-mast .palette-icon::after { content:""; position:absolute; inset-block:0; inset-inline-start:0; width:46%; background:currentColor; }
.menu-glyph { width:19px; height:12px; border-block:1.75px solid currentColor; position:relative; display:block; }
.menu-glyph::after { content:""; position:absolute; top:50%; left:0; right:0; height:1.75px; background:currentColor; transform:translateY(-50%); }
.site-foot { border-block-start:1px solid var(--shell-rule); }
.site-foot .footer-inner { padding-block:1.25rem; flex-wrap:wrap; }
.site-foot .site-wordmark { font-size:1.42rem; }
.site-foot nav { gap:clamp(.85rem,1.6vw,1.75rem); flex-wrap:wrap; }
.site-foot .foot-utility a, .site-foot .foot-utility .edition-trigger { color:var(--shell-muted); }
.site-foot .edition-trigger { padding:0; min-height:40px; }
.site-dialog {
  width:min(450px,calc(100% - 1.75rem)); max-height:calc(100dvh - 2rem); overflow:auto;
  color:var(--shell-ink); background:var(--shell-surface); border:1px solid var(--shell-rule);
  padding:clamp(1rem,3vw,1.5rem); border-radius:14px; box-shadow:0 24px 70px #101a3145;
}
.site-dialog::backdrop { background:#0a101bb3; }
.site-dialog .switch-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin:0 0 .8rem; }
.site-dialog h2 { color:var(--shell-ink); line-height:1.22; font:740 1.45rem/1.22 Heebo,Arial,sans-serif; margin:0; }
.site-dialog .dialog-close { display:grid; place-items:center; min-width:44px; height:44px; font-size:1.63rem; border-radius:5px; }
.site-dialog .dialog-close:hover { background:var(--shell-soft); }
.site-dialog .menu-list, .site-dialog .edition-list { display:grid; gap:0; }
.site-dialog .menu-list a, .site-dialog .edition-list a {
  display:flex; align-items:center; gap:.85rem; min-height:48px; padding:.65rem .35rem; text-decoration:none;
  color:var(--shell-ink); background:transparent; border:0; border-block-start:1px solid var(--shell-rule); border-radius:0;
}
.site-dialog .menu-list a { justify-content:space-between; font-size:1.1rem; font-weight:625; }
.site-dialog .menu-list a::after { content:""; width:.43rem; height:.43rem; border-block-start:1.5px solid currentColor; border-inline-end:1.5px solid currentColor; transform:rotate(45deg); }
[dir="rtl"] .site-dialog .menu-list a::after { transform:rotate(-45deg); }
.site-dialog a:hover, .site-dialog a[aria-current] { color:var(--shell-accent); }
.site-dialog .edition-list a { min-height:60px; padding-inline:.5rem; }
.site-dialog .edition-list a[aria-current] { outline:2px solid var(--shell-accent); outline-offset:-2px; border-radius:4px; }
.site-dialog .edition-list b, .site-dialog .edition-list small { display:block; }
.site-dialog .edition-list small { font-size:.83rem; color:var(--shell-muted); }
.site-dialog .swatch { display:block; flex:none; width:49px; height:34px; border-radius:3px; }
.site-dialog .sw-studio { background:linear-gradient(110deg,#e6edf4 0 46%,#2c43c1 46% 67%,#bac4cd 67%); }
.site-dialog .sw-dark { background:linear-gradient(120deg,#101820 0 48%,#4791e2 48% 53%,#263448 53%); }
.site-dialog .sw-print { background:linear-gradient(0deg,#252122 0 20%,#eae3d9 20% 76%,#af4b31 76%); }
.site-dialog .sw-beauty { background:linear-gradient(125deg,#f1dcd1 0 50%,#68405e 50% 72%,#b34c36 72%); }
.shell-skip { position:absolute; z-index:12; inset-block-start:-9rem; inset-inline-start:1rem; background:var(--shell-surface); color:var(--shell-ink); padding:.6rem 1rem; }
.shell-skip:focus { inset-block-start:.5rem; }
:is(.site-mast,.site-foot,.site-dialog) :is(a,button):focus-visible { outline:3px solid var(--shell-accent); outline-offset:2px; }
@media(max-width:1000px) {
  .site-mast .site-nav { display:none; }
  .site-mast .menu-trigger { display:inline-flex; }
}
@media(max-width:720px) {
  .site-mast .mast-inner, .site-foot .footer-inner { width:calc(100% - 2rem); }
  .site-mast .mast-inner { min-height:65px; gap:.35rem; }
  .site-mast .nav-tools { gap:.2rem; }
  .site-mast .nav-cta { display:none; }
  .site-mast .edition-trigger .control-label, .site-mast .menu-trigger .control-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .site-foot .footer-inner { display:grid; justify-content:start; gap:.52rem; }
  .site-foot .foot-pages { margin-top:.3rem; }
}
@media(max-width:400px) {
  .site-mast .mast-inner { width:calc(100% - 1.25rem); gap:.15rem; }
  .site-mast .site-wordmark { font-size:1.12rem; gap:.41rem; }
  .site-mast .nav-tools { gap:0; }
  .site-mast .edition-trigger, .site-mast .lang-link, .site-mast .menu-trigger { min-width:39px; min-height:44px; }
  .site-mast .site-wordmark .brand-sign { width:.72em; height:.72em; }
}
