[data-style-preset='green'] .zf-layout-header,
.theme-preset-green .zf-layout-header,
[data-style-preset='yellow'] .zf-layout-header,
.theme-preset-yellow .zf-layout-header,
[data-style-preset='ghibli'] .zf-layout-header,
.theme-preset-ghibli .zf-layout-header {
    background-color: var(--theme-bg-overlay) !important;
    border-bottom-color: var(--theme-border-primary) !important;
}

[data-style-preset='green'] .zf-layout-header #themeDropdownMenu,
.theme-preset-green .zf-layout-header #themeDropdownMenu,
[data-style-preset='yellow'] .zf-layout-header #themeDropdownMenu,
.theme-preset-yellow .zf-layout-header #themeDropdownMenu,
[data-style-preset='ghibli'] .zf-layout-header #themeDropdownMenu,
.theme-preset-ghibli .zf-layout-header #themeDropdownMenu {
    border-color: var(--theme-border-primary) !important;
}

[data-style-preset='green'] .zf-layout-header #themeDropdownMenu button[data-theme-mode]:hover,
.theme-preset-green .zf-layout-header #themeDropdownMenu button[data-theme-mode]:hover,
[data-style-preset='yellow'] .zf-layout-header #themeDropdownMenu button[data-theme-mode]:hover,
.theme-preset-yellow .zf-layout-header #themeDropdownMenu button[data-theme-mode]:hover,
[data-style-preset='ghibli'] .zf-layout-header #themeDropdownMenu button[data-theme-mode]:hover,
.theme-preset-ghibli .zf-layout-header #themeDropdownMenu button[data-theme-mode]:hover {
    color: var(--theme-primary);
}

html.dark .zf-layout-header .zf-nav-link-inactive{ color:#a3a3a3 !important; }
html.dark .zf-layout-header .zf-nav-link-inactive:hover{
    color:var(--theme-primary) !important;
    background:var(--theme-bg-accent) !important;
}
html.dark .zf-layout-header .zf-mobile-nav-link-inactive{ color:#a3a3a3 !important; }
.zf-layout-header.zf-solid-header{
    background: var(--theme-bg-elevated) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.zf-layout-header .zf-nav-dropdown-panel{
    background: var(--theme-bg-elevated) !important;
    border: 1px solid var(--theme-border-primary) !important;
    box-shadow: 0 10px 24px rgba(15,23,42,.10) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
html.dark .zf-layout-header .zf-nav-dropdown-panel{
    box-shadow: 0 14px 30px rgba(0,0,0,.34) !important;
}
.zf-layout-header .zf-nav-dropdown-item{
    color: var(--theme-text-secondary) !important;
    border-radius: .65rem;
}
.zf-layout-header .zf-nav-dropdown-item:hover{
    background: var(--theme-bg-tertiary) !important;
    color: var(--theme-text-primary) !important;
}

html[data-theme='light'] body.zf-layout-header-page.zf-home-page {
    --theme-bg-secondary: #f1f5fb;
    --theme-bg-tertiary: #e8eef7;
    --theme-bg-elevated: #ffffff;
    --theme-border-primary: #d7dfeb;
    --theme-border-light: #c6d1e2;
    background-color: var(--theme-bg-secondary);
}
body.zf-layout-header-page.zf-home-page main {
    max-width: min(1200px, calc(100% - 2rem));
    margin-inline: auto;
}
body.zf-layout-header-page.zf-home-page main > * + * {
    margin-top: 1.15rem;
}
html[data-theme='light'] body.zf-layout-header-page.zf-home-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(640px 260px at 16% 6%, rgba(59,130,246,0.045), transparent 68%);
}
html[data-theme='light'] body.zf-layout-header-page.zf-home-page :where(main > section, main > article, main > div > section, aside > section) {
    background: var(--theme-bg-elevated);
    border: 1px solid var(--theme-border-primary);
    border-radius: .9rem;
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.03);
}
body.zf-layout-header-page.zf-home-page :where(h1, h2, h3, h4) {
    color: var(--theme-text-primary);
    line-height: 1.28;
    letter-spacing: -0.012em;
}
body.zf-layout-header-page.zf-home-page :where(p, li, label, small) {
    color: inherit;
    line-height: 1.7;
}
body.zf-layout-header-page.zf-home-page :where(input[type='text'], input[type='email'], input[type='search'], textarea, select) {
    background: var(--theme-bg-elevated);
    border: 1px solid var(--theme-border-primary);
}

.zf-layout-footer{
    background:
        linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--theme-bg-tertiary) 55%, transparent) 100%);
}

.zf-layout-footer__brand{
    display: grid;
    gap: 1rem;
}

.zf-layout-footer__socials a{
    transition: all .2s ease;
}

.zf-layout-footer__socials a:hover{
    transform: translateY(-1px);
}

.zf-layout-footer__group{
    display: grid;
    gap: .75rem;
}

.zf-layout-footer__backlinks{
    border-top: 1px solid color-mix(in srgb, var(--theme-border-primary) 55%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--theme-border-primary) 55%, transparent);
}

.zf-layout-footer__bottom{
    border-top-color: color-mix(in srgb, var(--theme-border-primary) 88%, transparent) !important;
}

.zf-layout-footer__copyright a,
.zf-layout-footer__langs a{
    transition: all .2s ease;
}

.zf-layout-header #themeDropdownMenu,
.zf-layout-header #langDropdownMenu,
.zf-layout-header #userDropdownMenu{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 10px 24px rgba(15,23,42,.10) !important;
}

.zf-layout-header #mobile-menu-overlay,
.zf-layout-header .zf-layout-header__search{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.zf-layout-header #mobile-menu-content,
.zf-layout-header .zf-layout-header__search > div{
    box-shadow: 0 14px 30px rgba(15,23,42,.14) !important;
}

.theme-back-to-top{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.12) !important;
}

.theme-back-to-top:hover{
    box-shadow: 0 12px 22px rgba(15,23,42,.16) !important;
}

/* Hide third-party sticky share rails; they add floating blank panels on submit pages */
.sharethis-sticky-share-buttons,
.st-sticky-share-buttons,
[id^="st-"][class*="share"],
[id^="st-"][class*="sticky"],
[id^="st-"].st-left,
[id^="st-"].st-right,
.st-left[class*="st-"],
.st-right[class*="st-"],
[class*="sharethis"][class*="sticky"],
[class*="sticky-share-buttons"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
