/* Layout parity: keep identical geometry across themes. Theme affects color only. */
html[data-theme="dark"] .site-header .nav-wrap{max-width:1430px;min-height:78px;gap:32px;justify-content:space-between}
html[data-theme="dark"] .site-header .brand{display:flex;align-items:center;flex-shrink:0;gap:10px;text-decoration:none}
html[data-theme="dark"] .site-header .brand-name{font-weight:850!important;font-size:26px!important;letter-spacing:-.045em!important;white-space:nowrap;text-shadow:none!important}
html[data-theme="dark"] .site-header .brand-mark,html[data-theme="dark"] .site-header .brand-mark img{width:45px;height:45px;filter:none!important}
html[data-theme="dark"] .site-header .main-nav{display:flex;align-items:center;gap:31px;order:2;margin:auto}
html[data-theme="dark"] .site-header .main-nav>a,html[data-theme="dark"] .site-header .mega-toggle{font-size:15px!important;font-weight:700!important;text-shadow:none!important}
html[data-theme="dark"] .site-header .gtl-nav-api,html[data-theme="dark"] .site-header .gtl-nav-pricing,html[data-theme="dark"] .site-header .gtl-get-started,html[data-theme="dark"] .site-header .main-nav>a[href*="login"],html[data-theme="dark"] .site-header .main-nav>a[href*="account/"]{display:none!important}
html[data-theme="dark"] .site-header .enterprise-search{order:3;width:320px;max-width:30vw;min-width:170px;border-radius:50px!important;box-shadow:none!important}
html[data-theme="dark"] .site-header .enterprise-search input{min-width:0}
html[data-theme="dark"] .site-header .language-switcher{order:5}
html[data-theme="dark"] .site-header #themeToggle{order:4;box-shadow:none!important;font-size:22px}
html[data-theme="dark"] .site-header .language-button{box-shadow:none!important}
html[data-theme="dark"] .gtla-hero{padding:54px 0 34px!important}
html[data-theme="dark"] .gtla-hero h1{font-size:clamp(35px,3.8vw,57px)!important;font-weight:850!important;letter-spacing:-.055em!important}
html[data-theme="dark"] .gtla-hero p{font-size:clamp(16px,1.55vw,21px)!important}
html[data-theme="dark"] .gtla-hero-search{max-width:835px!important;border-radius:38px!important;padding:6px 7px 6px 24px!important}
html[data-theme="dark"] .gtla-hero-search input{display:block!important;flex:1!important;border:0!important;box-shadow:none!important;min-width:0!important;max-width:none!important;width:auto!important}
html[data-theme="dark"] .gtla-hero-search button{border-radius:19px!important;min-width:125px!important}
html[data-theme="dark"] .gtla-category-grid{max-width:1360px;gap:18px}
html[data-theme="dark"] .gtla-category-card{border-radius:18px!important;padding:23px 18px!important;min-height:120px!important}
html[data-theme="dark"] .gtla-category-card strong{font-size:20px!important}
html[data-theme="dark"] .gtla-category-card small{font-size:13px!important}
html[data-theme="dark"] .gtla-category-symbol{width:58px!important;height:62px!important;border-radius:14px!important}
html[data-theme="dark"] .gtla-popular{padding-top:15px!important}
html[data-theme="dark"] .gtla-section-heading h2{font-size:30px!important}
html[data-theme="dark"] .gtla-tool-card{border-radius:18px!important;min-height:215px!important}
/* Prevent light-mode-only rules from leaking into dark tool workspaces. */
html[data-theme="dark"] body.tool-view .gtl-unified-workspace>.tool-panel,html[data-theme="dark"] body.tool-view .gtl-unified-workspace>.panel,html[data-theme="dark"] body.tool-view .gtl-unified-workspace>.content-section,html[data-theme="dark"] body.tool-view .gtl-unified-sidecard{background:#15213a!important;color:#f2f6ff!important;border-color:#354663!important}
html[data-theme="dark"] body.tool-view .gtl-unified-workspace h1,html[data-theme="dark"] body.tool-view .gtl-unified-workspace h2,html[data-theme="dark"] body.tool-view .gtl-unified-sidecard h2{color:#f2f6ff!important}
html[data-theme="dark"] body.tool-view .gtl-unified-sidecard a{color:#f2f6ff!important;border-bottom-color:#354663!important}
/* Keep the same responsive behavior in both themes. */
@media(max-width:900px){html[data-theme="dark"] .site-header .main-nav{margin:0}}
