.paint-tester-header{box-sizing:border-box;width:min(1160px,calc(100% - 32px));min-height:82px;margin:0 auto;padding:10px 0;display:flex;align-items:center;justify-content:space-between;gap:12px 24px;border-bottom:1px solid #ffffff20;color:#f4efff;font:700 13px/1.4 system-ui,sans-serif}
    .paint-tester-header .paint-tester-brand{display:flex;flex:none;align-items:center;gap:12px;text-decoration:none;color:inherit}
    .paint-tester-header img{display:block;width:132px;height:auto}
    .paint-tester-header nav{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px 18px}
    .paint-tester-header nav a{color:inherit;text-decoration:none;white-space:nowrap}
    .paint-tester-header nav a:hover,.paint-tester-header nav a[aria-current=page]{color:#bdff43}
    .paint-tester-header .paint-tester-mobile-nav{display:none}
    @media(max-width:820px){
      .paint-tester-header{position:relative;z-index:40;min-height:64px}
      .paint-tester-header:has(.paint-tester-mobile-nav[open]){z-index:1100}
      .paint-tester-header img{width:104px}
      .paint-tester-header .paint-tester-desktop-nav{display:none}
      .paint-tester-header .paint-tester-mobile-nav{display:block}
    }
    @media (hover:none) and (pointer:coarse) and (min-width:821px) and (max-width:1366px){
      .discover-public-header{position:relative;z-index:40;min-height:64px}
      .discover-public-header:has(.paint-tester-mobile-nav[open]){z-index:1100}
      .discover-public-header .paint-tester-desktop-nav{display:none}
      .discover-public-header .paint-tester-mobile-nav{display:block}
    }
      .paint-tester-mobile-nav summary{display:grid;place-items:center;width:44px;height:44px;list-style:none;cursor:pointer;border:1px solid #ffffff30;border-radius:10px;background:#181321;color:#f4efff}
      .paint-tester-mobile-nav summary::-webkit-details-marker{display:none}
      .paint-tester-mobile-nav summary{position:relative;z-index:3}
      .paint-tester-mobile-nav[open] summary{border-color:#bdff43;color:#bdff43}
      .paint-tester-mobile-nav[open]::before{content:"";position:fixed;inset:0;z-index:1;background:#090711ba}
      .paint-tester-mobile-nav:not([open]) nav{display:none}
      .paint-tester-mobile-nav nav{position:fixed;top:50%;left:50%;z-index:2;transform:translate(-50%,-50%);display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;box-sizing:border-box;gap:4px;padding:12px;border:1px solid #ffffff30;border-radius:16px;background:#181321;color:#f4efff;font-size:clamp(18px,5vw,24px);box-shadow:0 16px 36px #0009}
      .paint-tester-mobile-nav nav a{display:flex;align-items:center;justify-content:center;min-height:clamp(44px,8dvh,60px);padding:0 12px;border-radius:8px}
      .paint-tester-mobile-nav nav a[aria-current=page]{background:#bdff4318}

html[data-theme="light"] .paint-tester-header{color:#211633;border-bottom-color:#30254b30}
html[data-theme="light"] .paint-tester-header nav a:hover,
html[data-theme="light"] .paint-tester-header nav a[aria-current=page]{color:#4c258c}
html[data-theme="light"] .paint-tester-mobile-nav summary,
html[data-theme="light"] .paint-tester-mobile-nav nav{background:#faf8ff;color:#211633;border-color:#30254b40}
html[data-theme="light"] .paint-tester-mobile-nav[open] summary{color:#4c258c;border-color:#6545a0}
html[data-theme="light"] .paint-tester-mobile-nav nav a[aria-current=page]{background:#eae0ff}

/* Shared public and protected navigation. Desktop keeps its full navigation bar. */
:root { --site-navigation-background: #100c1c; --site-navigation-height: 82px; }
html[data-theme="light"] { --site-navigation-background: #faf8ff; }
body .site-header,
body .paint-tester-header {
    position: sticky; top: 0; z-index: 200; min-height: var(--site-navigation-height);
    background: var(--site-navigation-background);
}
body .paint-tester-header { width:100%; padding-inline:max(16px,calc((100% - 1160px)/2)); }
/* Page names already appear in the navigation; Discover also has its hero logo. */
.site-header .site-brand-label,
.site-header .site-brand > small,
.paint-tester-header .paint-tester-brand > span { display:none; }
.discover-navigation-header .paint-tester-brand { display:none; }
body .discover-navigation-header { justify-content:flex-end; }
body.site-discover-navigation > header { top:var(--site-navigation-height); }
body .paint-tester-mobile-nav { display:none; }
.site-mobile-brand-row { display:none; }
body.discover-preview .site-mobile-brand-row { display:none; }
body:has(.paint-tester-mobile-nav[open]) { overflow:hidden; }
/* A backdrop-filter would otherwise trap fixed menu elements inside the hero. */
body header:has(.paint-tester-mobile-nav[open]) { backdrop-filter:none; -webkit-backdrop-filter:none; }
body .paint-tester-mobile-nav > nav { z-index:1101; }
body .paint-tester-mobile-nav[open]::before { z-index:1100; }
body .paint-tester-mobile-nav > summary { z-index:1102; }
@media(max-width:1100px), (hover:none) and (pointer:coarse) and (max-width:1366px) {
    body .site-header, body .paint-tester-header { display:none; }
    body.site-discover-navigation > header { top:0; }
    body .site-mobile-brand-row,
    body .discover-brand-row {
        display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr) 44px;
        align-items:center; gap:clamp(6px,1.8vw,20px);
    }
    .site-mobile-brand-row {
        width:min(100% - 28px,1100px); margin:0 auto; padding:12px 0;
        min-height:82px; box-sizing:border-box;
    }
    .site-mobile-brand-row > a { min-width:0; display:grid; place-items:center; height:68px; overflow:hidden; }
    .site-mobile-brand-row img { display:block; width:100%; height:100%; object-fit:contain; }
    .site-mobile-brand-row .site-mobile-printmoji img { max-width:94px; height:auto; }
    .site-mobile-brand-row .site-mobile-home img { max-width:180px; }
    .site-mobile-brand-row .site-mobile-spectrum img { max-width:145px; height:auto; }
    body .paint-tester-mobile-nav { display:block; justify-self:end; align-self:center; }
    body .paint-tester-mobile-nav > summary { box-sizing:border-box; width:44px; height:44px; }
    body .paint-tester-mobile-nav > nav {
        display:grid; gap:4px; padding:12px; overflow:auto;
        align-items:stretch; justify-content:stretch; white-space:normal;
    }
    body .paint-tester-mobile-nav:not([open]) > nav { display:none; }
    body .paint-tester-mobile-nav > nav a,
    body .paint-tester-mobile-nav > nav button {
        display:flex; align-items:center; justify-content:center; min-height:44px;
        font:700 clamp(18px,5vw,24px)/1.35 system-ui,sans-serif; text-decoration:none;
    }
    body .discover-brand-row .discover-brand-actions { display:flex; flex-direction:column; min-width:0; gap:6px; }
    body .discover-brand-row .logo-wrapper,
    body header.compact .discover-brand-row .logo-wrapper { width:100%; margin:0; }
    body .discover-brand-row .discover-printmoji-logo,
    body .discover-brand-row .discover-spectrum-logo,
    body header.compact .discover-brand-row .discover-printmoji-logo,
    body header.compact .discover-brand-row .discover-spectrum-logo {
        position:relative; inset:auto; width:100%; max-width:145px; justify-self:center;
    }
    body .discover-brand-row .discover-printmoji-logo,
    body header.compact .discover-brand-row .discover-printmoji-logo { max-width:105px; aspect-ratio:4/3; overflow:hidden; }
    body .discover-brand-actions .theme-switcher { position:static; width:auto; height:auto; }
    body header.compact .discover-brand-row { grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr) 44px; }
    body header.compact .discover-brand-row .logo-wrapper { max-width:110px; justify-self:center; }
    body header.compact .discover-brand-row .discover-printmoji-logo,
    body header.compact .discover-brand-row .discover-spectrum-logo { max-width:70px; }
    body[data-page="colorful"] { --colorful-header-height:0px; }
    body[data-page="colorful"] .gallery-search { top:0; }
}
@media(prefers-reduced-motion:reduce) {
    .site-mobile-brand-row *, .discover-brand-row .paint-tester-mobile-nav * { scroll-behavior:auto; }
}

/* Discover desktop: three equal logo slots, with the switch beside the search. */
.discover-search-controls { display:contents; }
.discover-search-theme { display:none; }
body.site-discover-navigation:not(.site-mobile-navigation) .discover-brand-row {
    --brand-width:240px; --brand-height:112px;
    display:grid; grid-template-columns:calc(var(--brand-width) * .75) var(--brand-width) calc(var(--brand-width) * .9);
    justify-content:center; align-items:center; gap:8px; margin:0 auto 12px;
}
body.site-discover-navigation:not(.site-mobile-navigation) header.compact .discover-brand-row {
    --brand-width:120px; --brand-height:56px; gap:6px; margin-bottom:4px;
}
body.site-discover-navigation:not(.site-mobile-navigation) .discover-brand-actions { min-width:0; }
body.site-discover-navigation:not(.site-mobile-navigation) .discover-brand-row .theme-switcher { display:none; }
body.site-discover-navigation:not(.site-mobile-navigation) .discover-brand-row .discover-printmoji-logo,
body.site-discover-navigation:not(.site-mobile-navigation) .discover-brand-row .logo-wrapper,
body.site-discover-navigation:not(.site-mobile-navigation) .discover-brand-row .discover-spectrum-logo {
    position:relative; inset:auto; display:block; width:100%; height:var(--brand-height);
    margin:0; aspect-ratio:auto; overflow:hidden; transform:none; transition:none;
}
body.site-discover-navigation:not(.site-mobile-navigation) .discover-brand-row .discover-printmoji-logo img,
body.site-discover-navigation:not(.site-mobile-navigation) .discover-brand-row .discover-spectrum-logo img {
    position:absolute; top:50%; left:50%; height:auto; max-width:none;
    transform:translate(-50%,-50%);
}
body.site-discover-navigation:not(.site-mobile-navigation) .discover-brand-row .discover-printmoji-logo img {
    width:calc(var(--brand-height) * 600 / 430 * .96);
}
body.site-discover-navigation:not(.site-mobile-navigation) .discover-brand-row .discover-spectrum-logo img {
    width:calc(var(--brand-height) * 600 / 269 * .88);
}
body.site-discover-navigation:not(.site-mobile-navigation) .discover-search-controls {
    display:block; position:relative; width:min(640px,100%); margin:0 auto;
}
body.site-discover-navigation:not(.site-mobile-navigation) .discover-search-theme {
    display:flex; position:absolute; top:0; left:-56px; width:44px; height:44px; align-items:center;
}
body.site-discover-navigation:not(.site-mobile-navigation) header.compact .discover-search-theme { display:none; }
body.site-discover-navigation:not(.site-mobile-navigation) .filter-bar .category-theme-toggle {
    position:sticky; left:0; z-index:8; flex:0 0 38px; width:38px; height:38px;
    margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none;
}
body.site-discover-navigation.shorts-mode:not(.site-mobile-navigation) .discover-search-theme {
    position:static; margin:0 auto 8px;
}
@media(prefers-reduced-motion:no-preference) {
    body.site-discover-navigation:not(.site-mobile-navigation) > header {
        transition:padding .35s ease;
    }
    body.site-discover-navigation:not(.site-mobile-navigation) .discover-brand-row {
        transition:grid-template-columns .35s ease, gap .35s ease, margin-bottom .35s ease;
    }
    body.site-discover-navigation:not(.site-mobile-navigation) .discover-brand-row .discover-printmoji-logo,
    body.site-discover-navigation:not(.site-mobile-navigation) .discover-brand-row .logo-wrapper,
    body.site-discover-navigation:not(.site-mobile-navigation) .discover-brand-row .discover-spectrum-logo {
        transition:height .35s ease;
    }
    body.site-discover-navigation:not(.site-mobile-navigation) .discover-brand-row .discover-printmoji-logo img,
    body.site-discover-navigation:not(.site-mobile-navigation) .discover-brand-row .discover-spectrum-logo img {
        transition:width .35s ease;
    }
}

/* Keep the three mobile/tablet brands together instead of distributing them across the viewport. */
@media(max-width:1100px), (hover:none) and (pointer:coarse) and (max-width:1366px) {
    body.site-mobile-navigation .discover-brand-row,
    body.site-mobile-navigation .site-mobile-brand-row {
        --responsive-brand-width:clamp(84px,26vw,160px);
        --responsive-brand-height:calc(var(--responsive-brand-width) * .5);
        position:relative; box-sizing:border-box;
        grid-template-columns:calc(var(--responsive-brand-width) * .75) var(--responsive-brand-width) calc(var(--responsive-brand-width) * .9);
        justify-content:center; align-items:center;
        gap:calc(var(--responsive-brand-width) * .05); padding-right:52px;
    }
    body.site-mobile-navigation header.compact .discover-brand-row {
        --responsive-brand-width:clamp(68px,18vw,108px);
        grid-template-columns:calc(var(--responsive-brand-width) * .75) var(--responsive-brand-width) calc(var(--responsive-brand-width) * .9);
        margin-bottom:4px;
    }
    body.site-mobile-navigation .discover-brand-row > .paint-tester-mobile-nav,
    body.site-mobile-navigation .site-mobile-brand-row > .paint-tester-mobile-nav {
        position:absolute; right:0; top:calc(50% - 22px); width:44px; height:44px;
    }
    body.site-mobile-navigation .hero-container .discover-brand-row .discover-brand-actions {
        display:block; min-width:0;
    }
    body.site-mobile-navigation .hero-container .discover-brand-row .discover-brand-actions .theme-switcher {
        position:absolute; top:0; left:0; width:44px; height:44px;
    }
    body.site-mobile-navigation .hero-container .discover-brand-row .discover-printmoji-logo,
    body.site-mobile-navigation .hero-container .discover-brand-row .logo-wrapper,
    body.site-mobile-navigation .hero-container .discover-brand-row .discover-spectrum-logo,
    body.site-mobile-navigation .site-mobile-brand-row > a {
        position:relative; inset:auto; display:block; width:100%; max-width:none;
        height:var(--responsive-brand-height); margin:0; aspect-ratio:auto;
        overflow:hidden; transform:none;
    }
    body.site-mobile-navigation .hero-container .discover-brand-row .discover-printmoji-logo img,
    body.site-mobile-navigation .hero-container .discover-brand-row .discover-spectrum-logo img,
    body.site-mobile-navigation .site-mobile-brand-row .site-mobile-printmoji img,
    body.site-mobile-navigation .site-mobile-brand-row .site-mobile-spectrum img {
        position:absolute; top:50%; left:50%; max-width:none; height:auto; transform:translate(-50%,-50%);
    }
    body.site-mobile-navigation .hero-container .discover-brand-row .discover-printmoji-logo img,
    body.site-mobile-navigation .site-mobile-brand-row .site-mobile-printmoji img {
        width:calc(var(--responsive-brand-height) * 600 / 430 * .96);
    }
    body.site-mobile-navigation .hero-container .discover-brand-row .discover-spectrum-logo img,
    body.site-mobile-navigation .site-mobile-brand-row .site-mobile-spectrum img {
        width:calc(var(--responsive-brand-height) * 600 / 269 * .88);
    }
    body.site-mobile-navigation .site-mobile-brand-row .site-mobile-home img {
        width:100%; max-width:none; height:100%; object-fit:contain;
    }
    @media(prefers-reduced-motion:no-preference) {
        body.site-mobile-navigation.site-discover-navigation > header { transition:padding .35s ease; }
        body.site-mobile-navigation .discover-brand-row,
        body.site-mobile-navigation .site-mobile-brand-row {
            transition:grid-template-columns .35s ease, gap .35s ease, margin-bottom .35s ease;
        }
        body.site-mobile-navigation .hero-container .discover-brand-row .discover-printmoji-logo,
        body.site-mobile-navigation .hero-container .discover-brand-row .logo-wrapper,
        body.site-mobile-navigation .hero-container .discover-brand-row .discover-spectrum-logo,
        body.site-mobile-navigation .site-mobile-brand-row > a { transition:height .35s ease; }
        body.site-mobile-navigation .hero-container .discover-brand-row .discover-printmoji-logo img,
        body.site-mobile-navigation .hero-container .discover-brand-row .discover-spectrum-logo img,
        body.site-mobile-navigation .site-mobile-brand-row .site-mobile-printmoji img,
        body.site-mobile-navigation .site-mobile-brand-row .site-mobile-spectrum img { transition:width .35s ease; }
    }
}

/* One navigation contract, independent of each page's typography and content width. */
body.site-navigation-ready:not(.site-mobile-navigation) .site-shared-header {
    box-sizing:border-box; position:sticky; top:0; z-index:200;
    display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; justify-content:space-between;
    width:100%; max-width:none; height:82px; min-height:82px; max-height:none;
    margin:0; padding:10px max(22px,calc((100% - 1160px)/2)); gap:24px;
    overflow:visible; background:var(--site-navigation-background); backdrop-filter:none;
    border:0; border-bottom:1px solid #ffffff20; border-radius:0; box-shadow:none;
    color:#f4efff; font:700 13px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;
    letter-spacing:normal; text-transform:none;
}
body.site-navigation-ready .site-shared-header .site-brand,
body.site-navigation-ready .site-shared-header .paint-tester-brand {
    box-sizing:border-box; display:flex; flex:0 0 132px; align-items:center;
    width:132px; min-width:132px; height:60px; margin:0; padding:0; gap:0;
    color:inherit; text-decoration:none;
}
body.site-navigation-ready .site-shared-header .site-brand img,
body.site-navigation-ready .site-shared-header .paint-tester-brand img {
    display:block; flex:none; width:132px; max-width:100%; height:60px;
    margin:0; padding:0; object-fit:contain;
}
body.site-navigation-ready .site-shared-header.discover-navigation-header .paint-tester-brand { display:none; }
body.site-navigation-ready .site-shared-header .paint-tester-desktop-nav {
    display:flex; flex:1 1 auto; min-width:0; align-items:center; justify-content:flex-end;
}
body.site-navigation-ready .site-shared-header nav {
    box-sizing:border-box; display:flex; flex:1 1 auto; flex-wrap:nowrap;
    align-items:center; justify-content:flex-end; min-width:0; width:auto;
    margin:0; padding:0; gap:18px; overflow:visible;
    font:inherit; letter-spacing:normal; white-space:nowrap;
}
body.site-navigation-ready .site-shared-header nav a,
body.site-navigation-ready .site-shared-header nav button {
    box-sizing:border-box; display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center;
    min-height:44px; margin:0; font:700 13px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;
    letter-spacing:normal; text-transform:none; white-space:nowrap; text-decoration:none;
}
body.site-navigation-ready .site-shared-header nav a { color:inherit; }
body.site-navigation-ready .site-shared-header nav a:hover,
body.site-navigation-ready .site-shared-header nav a[aria-current="page"] { color:#bdff43; }
body.site-navigation-ready .site-mobile-brand-row,
body.site-navigation-ready .paint-tester-mobile-nav {
    font:700 13px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;
    letter-spacing:normal;
}
body.site-navigation-ready .paint-tester-mobile-nav > nav {
    box-sizing:border-box; width:min(520px,calc(100% - 32px));
    max-height:calc(100dvh - 32px); margin:0; padding:12px; gap:4px;
    overflow:auto; font:700 18px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;
    letter-spacing:normal; text-transform:none;
}
body.site-navigation-ready .paint-tester-mobile-nav > nav a,
body.site-navigation-ready .paint-tester-mobile-nav > nav button {
    box-sizing:border-box; display:flex; align-items:center; justify-content:center;
    min-height:48px; margin:0; padding:8px 12px; font:inherit;
    letter-spacing:normal; text-transform:none; white-space:normal; text-align:center;
}
body.site-mobile-navigation .site-shared-header { display:none; }
html[data-theme="light"] body.site-navigation-ready .site-shared-header { color:#211633; border-bottom-color:#30254b30; }
html[data-theme="light"] body.site-navigation-ready .site-shared-header nav a:hover,
html[data-theme="light"] body.site-navigation-ready .site-shared-header nav a[aria-current="page"] { color:#4c258c; }
/* Embedded model previews must stay free of the surrounding site navigation. */
body.site-navigation-ready.discover-preview .site-shared-header { display:none; }
