/* Optional multi-row regions. Native header/footer remain untouched when disabled. */
.chrome-custom .chrome-row{min-width:0;background:var(--chrome-row-bg,transparent)}
.chrome-custom .chrome-grid{align-items:center;gap:20px;padding-block:12px;min-width:0}
.site-header.chrome-custom .chrome-grid{min-height:var(--theme-header-height,64px)}
.site-footer.chrome-custom .chrome-grid{align-items:start;gap:var(--theme-footer-gap,24px)}
.chrome-custom .chrome-column{gap:10px;min-width:0;align-items:flex-start}
.chrome-custom .chrome-column[data-chrome-align="center"]{align-items:center;text-align:center}
.chrome-custom .chrome-column[data-chrome-align="right"]{align-items:flex-end;text-align:right}
.chrome-custom .chrome-part{max-width:100%;min-width:0;overflow-wrap:anywhere}
.chrome-custom .chrome-part-rule,.chrome-custom .chrome-part-navigation{width:100%}
.chrome-custom .chrome-part p{margin:0;color:inherit;font-size:inherit}
.chrome-custom .chrome-part a:not(.button){color:inherit}
.chrome-custom .chrome-part .wordmark,.chrome-custom .chrome-part .footer-wordmark{display:inline-block;max-width:100%;white-space:normal}
.chrome-custom .chrome-part img{max-width:100%;object-fit:contain}
.site-header.chrome-custom nav{margin:0;width:100%;min-width:0}
.site-header.chrome-custom nav .main-menu{flex-wrap:wrap;justify-content:flex-start;gap:var(--theme-header-gap,16px)}
.site-header.chrome-custom [data-chrome-align="center"] nav .main-menu{justify-content:center}
.site-header.chrome-custom [data-chrome-align="right"] nav .main-menu{justify-content:flex-end}
.site-footer.chrome-custom :is(.chrome-part-navigation,.chrome-part-legal){display:flex;flex-direction:column;gap:8px;align-items:inherit}
.site-footer.chrome-custom [data-chrome-align="center"] :is(.chrome-part-navigation,.chrome-part-legal){align-items:center}
.site-footer.chrome-custom [data-chrome-align="right"] :is(.chrome-part-navigation,.chrome-part-legal){align-items:flex-end}
.chrome-custom [data-chrome-bg="accent"]{--chrome-row-bg:var(--theme-palette-accent)}
.chrome-custom [data-chrome-bg="dark"]{--chrome-row-bg:var(--theme-palette-dark)}
.chrome-custom [data-chrome-bg="soft"]{--chrome-row-bg:var(--theme-palette-soft)}
.chrome-custom [data-chrome-bg="ink"]{--chrome-row-bg:var(--theme-palette-ink)}
.chrome-custom [data-chrome-bg="link"]{--chrome-row-bg:var(--theme-palette-link)}
.chrome-custom [data-chrome-bg="surface"]{--chrome-row-bg:var(--theme-palette-surface)}
.chrome-custom [data-chrome-bg="surface_alt"]{--chrome-row-bg:var(--theme-palette-surface-alt)}
.chrome-custom [data-chrome-bg="surface_tint"]{--chrome-row-bg:var(--theme-palette-surface-tint)}
.chrome-custom [data-chrome-bg="white"]{--chrome-row-bg:#fff}
.chrome-custom [data-chrome-bg="black"]{--chrome-row-bg:#000}
.chrome-custom [data-chrome-tone="light"]{--chrome-row-ink:#fff}
.chrome-custom [data-chrome-tone="dark"]{--chrome-row-ink:#000}
html body .chrome-custom.chrome-custom [data-chrome-tone]:not([data-chrome-tone=""]){color:var(--chrome-row-ink)}
html body .chrome-custom.chrome-custom [data-chrome-tone]:not([data-chrome-tone=""]) :is(a:not(.button),.brand-dot,.footer-logo-text,.mobile-nav-toggle,.submenu-toggle){color:var(--chrome-row-ink)}
html body .chrome-custom.chrome-custom [data-chrome-tone]:not([data-chrome-tone=""]) :is(.mobile-nav-toggle,.header-action){background:transparent;border-color:currentColor}
html body .chrome-custom.chrome-custom [data-chrome-tone]:not([data-chrome-tone=""]) nav ul.submenu{background:var(--chrome-row-bg);border-color:var(--chrome-row-ink)}
html body .chrome-custom.chrome-custom [data-chrome-tone]:not([data-chrome-tone=""]) nav a:hover{background:transparent;text-decoration:underline}
.chrome-custom [data-chrome-tone="dark"] .footer-logo-auto{filter:brightness(0)}
.chrome-custom [data-chrome-tone="light"] .footer-logo-auto{filter:brightness(0) invert(1)}
@media(max-width:1100px){.site-header.chrome-custom .chrome-grid{grid-template-columns:minmax(0,1fr);gap:10px;min-height:0}.site-header.chrome-custom .chrome-part-navigation{display:flex;flex-wrap:wrap;justify-content:flex-end}.site-header.chrome-custom .chrome-part-navigation nav{flex-basis:100%}.site-header.chrome-custom nav .main-menu{gap:0}.site-header.chrome-custom .chrome-part-cta .header-action{display:inline-flex;white-space:normal}.site-header.chrome-custom .chrome-column:empty{display:none}}

html body .site-header.chrome-custom nav{margin:0}
html body .site-header.chrome-custom .chrome-row .main-menu{gap:var(--theme-header-gap,16px)}
@media(max-width:1100px){html body .site-header.chrome-custom .chrome-row .main-menu{gap:0}}

.chrome-custom [data-chrome-bg="secondary"]{--chrome-row-bg:var(--theme-palette-secondary)}
.chrome-custom [data-chrome-bg="tertiary"]{--chrome-row-bg:var(--theme-palette-tertiary)}
.chrome-custom [data-chrome-bg="accent_dark"]{--chrome-row-bg:var(--theme-palette-accent-dark)}
