/* Fixed brand surfaces use their own high-contrast palette in both themes. */
.hero-simple .button,.result-copy .button,.idea-card .button{background:var(--brand-white)}
.hero-simple .button:hover,.result-copy .button:hover{background:var(--brand-tint)}
.hero-simple .button.secondary{background:transparent}
.hero-simple .button.secondary:hover{background:var(--brand-hover-overlay)}
.button.secondary:active,.button.subtle:active,.creator-card .button.secondary:active{background:var(--soft-active)}
.hero-simple .button:active,.result-copy .button:active,.idea-card .button:active{background:var(--brand-button-active);color:var(--brand)}
.hero-simple .button.secondary:active{background:var(--brand-hover-overlay);color:var(--brand-white)}

/* The thumb carries the current theme icon across the switch track. */
.theme-toggle{position:relative;display:block;flex:0 0 76px;width:76px;height:44px;margin:0;padding:4px;border:1px solid var(--brand-white);border-radius:999px;background:var(--theme-day-track);background-image:linear-gradient(110deg,var(--theme-day-edge),var(--theme-day-track) 65%);box-shadow:inset 0 0 0 2px var(--theme-day-track);color:var(--brand);cursor:pointer;touch-action:manipulation}
.theme-toggle:hover{box-shadow:inset 0 0 0 2px var(--brand-white)}
.theme-toggle:active{box-shadow:inset 0 0 0 2px var(--theme-night-edge)}
.theme-toggle:focus-visible{outline:2px solid var(--on-dark);outline-offset:3px}
.theme-thumb{position:absolute;top:4px;left:4px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--brand-white);box-shadow:var(--theme-thumb-shadow);transform:translateX(0)}
.theme-icon{position:absolute;width:21px;height:21px;pointer-events:none;transform-origin:center}
.theme-sun{opacity:1;transform:rotate(0) scale(1)}
.theme-moon{opacity:0;transform:rotate(-65deg) scale(.4)}
.theme-stars{position:absolute;left:9px;top:12px;width:23px;height:20px;color:var(--theme-night-thumb);opacity:0;transform:scale(.7);pointer-events:none}
[data-theme="dark"] .theme-toggle{background-color:var(--theme-night-track);background-image:linear-gradient(120deg,var(--theme-night-track),var(--brand-deep));border-color:var(--theme-night-edge);box-shadow:inset 0 0 0 2px var(--theme-night-track)}
[data-theme="dark"] .theme-toggle:hover{box-shadow:inset 0 0 0 2px var(--theme-night-edge)}
[data-theme="dark"] .theme-toggle:active{box-shadow:inset 0 0 0 2px var(--brand-white)}
[data-theme="dark"] .theme-thumb{transform:translateX(32px);background:var(--theme-night-thumb);color:var(--theme-night-track)}
[data-theme="dark"] .theme-stars{opacity:1;transform:scale(1)}
[data-theme="dark"] .theme-sun{opacity:0;transform:rotate(90deg) scale(.4)}
[data-theme="dark"] .theme-moon{opacity:1;transform:rotate(0) scale(1)}
/* Analytics places the switch directly on the page, outside a blue panel. */
.header-row>.theme-toggle{border-color:var(--accent)}
.site-header .header-row>.theme-toggle:focus-visible{outline-color:var(--accent)}
@media(prefers-reduced-motion:no-preference){
 .theme-thumb{transition:transform 360ms cubic-bezier(.22,.7,.25,1)}
 .theme-stars{transition:opacity 220ms ease,transform 360ms cubic-bezier(.22,.7,.25,1)}
 .theme-toggle{transition:background-color 240ms ease,border-color 240ms ease}
 .theme-icon{transition:transform 360ms cubic-bezier(.22,.7,.25,1),opacity 220ms ease}
 body{transition:background-color 240ms ease,color 240ms ease}
}
@media(min-width:1024px){.header-row{gap:24px}}

/* Matching blue surfaces: a compact logo and a navigation panel filling the row. */
.site-header{background:transparent;color:var(--on-dark);padding-top:12px;border-bottom:0}
.site-header .header-row{width:calc(100% - 24px);max-width:1392px;padding:0;min-height:0;align-items:stretch;background:transparent;border:0;border-radius:0;box-shadow:none;gap:8px}
.site-header .brand-lockup,.header-navigation{background:var(--brand);border-radius:20px;box-shadow:var(--shadow)}
.site-header .brand-lockup{padding:8px 12px}
.header-navigation{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:1;min-width:0;padding:8px 12px}
.site-header .primary-nav a:active{background:var(--brand-hover-overlay)}
.site-header .brand,.site-header .brand-dot{color:var(--on-dark)}
.site-header .desktop-nav a{color:var(--on-dark);border-radius:12px;padding:12px 16px}
.site-header .desktop-nav a:hover,.site-header .desktop-nav a[aria-current]{background:var(--brand-hover-overlay);color:var(--on-dark);text-decoration:none}
.site-header .catalog-button{background:var(--brand-white);color:var(--brand)}
.site-header .catalog-button:hover{background:var(--brand-tint)}
.site-header .mobile-menu-button{background:var(--brand-white);color:var(--brand)}
.site-header .mobile-menu-button:hover{background:var(--brand-tint)}
.site-header .catalog-button:active,.site-header .mobile-menu-button:active{background:var(--brand-button-active);color:var(--brand)}
.site-header :is(a,button):focus-visible{outline-color:var(--on-dark)}
.home-main{padding-top:20px}
.result-banner{background:linear-gradient(110deg,var(--brand-dark),var(--brand-deep));width:calc(100% - 24px);max-width:1392px;margin-inline:auto;border-radius:24px}
.result-banner-inner{padding-inline:24px}
@media(min-width:768px){
 .site-header .header-row,.result-banner{width:calc(100% - 48px)}
 .site-header .header-row{gap:12px}
 .header-navigation{padding-inline:24px;gap:20px}
 .home-main{padding-top:24px}
 .result-banner{border-radius:28px}
 .result-banner-inner{padding-inline:40px}
}
@media(max-width:399px){
 .site-header .mobile-menu-button{min-width:44px;width:44px;padding-inline:8px}
 .mobile-menu-button span:not(.menu-symbol){display:none}
 .result-banner-inner{padding-inline:20px}
}

@media(max-width:767px){
 .site-header .brand-lockup{padding:6px 10px;border-radius:16px}
 .header-navigation{padding:6px 12px;border-radius:16px}
}
@media(max-width:359px){
 .header-navigation:has(.ai-search){padding-inline:8px}
}
