/* Shared public header/footer. Page transitions and loaders affect only content. */
html:has(body.public-layout) { scrollbar-gutter: stable; }
body.site-body.public-layout {
    --site-gutter: 4vw;
    --site-header-height: 64px;
    --site-canvas:
        radial-gradient(ellipse at 12% 18%, rgba(185, 215, 252, .42), transparent 60%),
        radial-gradient(ellipse at 90% 22%, rgba(229, 200, 248, .16), transparent 60%),
        radial-gradient(ellipse at 50% 90%, rgba(215, 238, 231, .24), transparent 42%),
        linear-gradient(180deg, #fbfbfd, #f7f9fc 52%, #fff);
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    isolation: isolate;
    background: #fbfbfd;
}
/* A shared viewport-sized canvas keeps the mist continuous across page regions. */
body.public-layout::before,
body.public-layout .site-canvas-background::before {
    content: "";
    inset: -120px;
    z-index: -1;
    pointer-events: none;
    background: var(--site-canvas);
    background-attachment: fixed;
    background-size: 100vw 100svh;
    background-position: center top;
    background-repeat: no-repeat;
    filter: blur(38px);
    opacity: 1;
}
body.public-layout::before { position: fixed; }
/* Loading content uses the same stationary canvas as every public page. */
body.public-layout .page-loader {
    isolation: isolate;
    background: #fbfbfd;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
}
body.public-layout .page-loader::after { content: none; }
body.public-layout .site-main { flex: 1 0 auto; width: 100%; }
body.public-layout .site-header,
body.public-layout .site-footer {
    position: relative;
    isolation: isolate;
    z-index: 1001;
    flex: 0 0 auto;
    border: 0;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 1;
    transition: none;
    transform: none;
}
/* Paint the mist separately so text stays sharp and content fades cannot tint it. */
body.public-layout .site-canvas-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
body.public-layout .site-canvas-background::before {
    position: absolute;
}
body.public-layout .site-header {
    position: sticky;
    top: 0;
    height: var(--site-header-height);
    min-height: var(--site-header-height);
    padding: 8px var(--site-gutter);
}
body.public-layout .brand { height: auto; }
body.public-layout .brand img { width: 128px; max-height: 36px; }

/* One quiet action surface for the homepage, work filters, search and return link. */
body.site-body.public-layout .site-action-button,
body.site-body.public-layout .filter-toggle.site-action-button,
body.site-body.public-layout .work-search-button.site-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 56px;
    padding: 12px 32px !important;
    border: 1px solid #83bdff !important;
    border-radius: 10px !important;
    background: #ecf6ff !important;
    color: #006bbd !important;
    font-size: clamp(16px, 1.4vw, 22px);
    font-weight: 600;
    text-decoration: none;
    text-shadow: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease !important;
}
body.site-body.public-layout .site-action-button::before,
body.site-body.public-layout .site-action-button::after { content: none !important; }
body.site-body.public-layout .site-action-button:hover,
body.site-body.public-layout .filter-toggle.site-action-button:is(:hover, [aria-expanded="true"]) {
    background: #e2f1ff !important;
    border-color: #489feb !important;
}
body.site-body.public-layout .site-action-button:focus-visible {
    outline: 2px solid #398edf !important;
    outline-offset: 5px;
}
body.public-layout .site-action-button svg { width: 24px; height: 24px; flex: 0 0 auto; }
body.public-layout .site-filter-chevron { transition: rotate .2s ease; }
body.public-layout .filter-toggle[aria-expanded="true"] .site-filter-chevron { rotate: 180deg; }
body.site-body.public-layout .site-action-back {
    min-height: 42px;
    padding: 8px 16px !important;
    gap: 8px;
    font-size: 14px;
    border-color: #d2dce7 !important;
    background: #f5f8fb !important;
    color: #657587 !important;
}
body.public-layout .site-action-back svg { width: 20px; height: 20px; }
body.site-body.public-layout .site-action-back:hover {
    border-color: #b8c7d6 !important;
    background: #edf2f7 !important;
    color: #4d6278 !important;
}

/* Override the legacy glass treatment, including hover/open states. */
body.site-body.public-layout .site-header .language-switch button {
    gap: 10px;
    min-height: 44px;
    padding: 8px 0;
    border: 0 !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: #5e6979 !important;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
}
body.site-body.public-layout .site-header .language-switch button::before { content: none !important; }
/* A translucent frosted surface shared by every public-page language menu. */
body.site-body.public-layout .site-header .language-menu {
    background-color: rgba(244, 249, 255, .12) !important;
    background-image: linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)) !important;
    backdrop-filter: blur(6px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(6px) saturate(125%) !important;
    box-shadow: 0 16px 40px rgba(40, 64, 96, .10), inset 0 1px 0 rgba(255, 255, 255, .58), inset 0 -1px 0 rgba(255, 255, 255, .16) !important;
    will-change: transform !important;
}
body.site-body.public-layout .site-header .language-menu::before { content: none !important; }
.site-language-globe { width: 20px; height: 20px; color: #349bec; }
.site-language-chevron { width: 14px; height: 14px; }
body.public-layout .site-footer {
    min-height: 112px;
    padding: 28px var(--site-gutter);
    color: #697587;
    font-size: clamp(13px, 1.1vw, 17px);
}
body.public-layout .footer-socials { gap: 12px; }
body.site-body.public-layout .footer-socials a {
    width: 44px !important;
    height: 44px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #657082 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
}
body.public-layout .footer-socials svg { width: 21px !important; height: 21px !important; }
body.site-body.public-layout .footer-socials a:hover { color: #006bbd !important; background: #f0f7ff !important; }
body.public-layout .site-header a:focus-visible,
body.public-layout .site-footer a:focus-visible,
body.site-body.public-layout .site-header .language-switch button:focus-visible {
    outline: 2px solid #398edf;
    outline-offset: 5px;
}
@media (max-width: 760px) {
    body.site-body.public-layout { --site-gutter: 24px; --site-header-height: 60px; }
    body.public-layout .brand img { width: 120px; }
    body.site-body.public-layout .site-action-button,
    body.site-body.public-layout .filter-toggle.site-action-button { min-height: 48px; padding: 10px 22px !important; gap: 20px; font-size: 16px; }
    body.public-layout .site-action-button svg { width: 21px; height: 21px; }
    body.site-body.public-layout .site-action-back { min-height: 40px; padding: 8px 14px !important; gap: 8px; font-size: 14px; }
    body.public-layout .site-action-back svg { width: 20px; height: 20px; }
    body.site-body.public-layout .site-header .language-switch button { gap: 8px; font-size: 13px; }
    .site-language-globe { width: 20px; height: 20px; }
    .site-language-chevron { width: 12px; height: 12px; }
    body.public-layout .site-footer { min-height: 96px; padding-block: 20px; gap: 10px; flex-wrap: wrap; }
    body.public-layout .footer-socials { gap: 0; }
    body.site-body.public-layout .footer-socials a { width: 38px !important; }
    body.public-layout .footer-socials svg { width: 18px !important; height: 18px !important; }
}
@media (max-width: 380px) {
    body.site-body.public-layout { --site-gutter: 20px; }
    body.public-layout .site-footer { justify-content: center; flex-direction: column; gap: 4px; }
}
/* Compact filter/search controls share the existing search button's ice-blue tone. */
body.site-body.public-layout .filter-toggle.site-action-button,
body.site-body.public-layout .work-search-button.site-action-button {
    min-width: 0 !important;
    min-height: 42px;
    padding: 8px 16px !important;
    gap: 8px;
    font-size: 14px;
    border-color: var(--ice-blue-border) !important;
    background: #edf7fd !important;
    color: var(--ice-blue-text) !important;
}
body.site-body.public-layout .filter-toggle.site-action-button:is(:hover, [aria-expanded="true"]),
body.site-body.public-layout .work-search-button.site-action-button:hover {
    border-color: #a3d1ee !important;
    background: #e1f1fb !important;
    color: #1f577c !important;
}
body.public-layout .filter-toggle.site-action-button svg { width: 18px; height: 18px; }
