/* Only configurable AM/customer site branding. */
.site-banner{margin:24px 0 0;border:1px solid var(--line,#d9ddd2);border-radius:12px;overflow:hidden}.site-banner[hidden]{display:none}.site-banner img{display:block;width:100%;height:auto;aspect-ratio:8/3;object-fit:contain}.site-header>.brand{min-width:0;overflow-wrap:anywhere;max-width:100%}.site-header .header-logo{object-fit:contain;max-width:110px;max-height:78px;width:110px;height:auto}.site-header>.brand:has(.site-brand-text){max-width:min(100%,360px)}.site-brand-text{font-size:22px;line-height:1.4;font-weight:700}.admin-brand img{object-fit:contain;max-height:72px}@media(max-width:680px){.site-header .header-logo{max-width:96px;max-height:64px;width:96px}.site-brand-text{font-size:19px}.site-banner{margin-top:18px}}

/* am-header-near-logo-v1: navigation starts beside the brand; narrow screens wrap naturally. */
.site-header{justify-content:flex-start}
.site-header>.header-tools{justify-content:flex-start}

/* am-header-utilities-right-v1: preserve the left menu and align site actions to the right. */
.site-header>.header-tools{flex-direction:row;align-items:center;gap:20px}
.site-header>.header-tools>nav{flex:0 1 auto;width:auto}
.site-header .header-utility-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px 18px;margin-inline-start:auto;min-width:0;max-width:100%}
.site-header .header-utility-tools>nav.header-utility-links{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;width:auto;min-width:0}
.site-header .header-utility-links>a{white-space:nowrap}
.site-header .header-utility-tools>.language-control{margin:0;max-width:100%}
@media(max-width:760px){.site-header>.header-tools{width:100%;flex-basis:100%;gap:12px;align-items:center}.site-header>.header-tools>nav{width:100%;flex-basis:100%}.site-header .header-utility-tools{gap:10px 14px}.site-header .header-utility-tools>nav.header-utility-links{gap:10px}}

/* am-navigation-font-v1: navigation stays transparent in every theme, with a shared site font size. */
html[data-site-theme] .site-header nav a{background:transparent!important}
.site-header .header-tools nav,.site-header .header-tools nav>a{font-size:var(--am-navigation-font-size,13px)}
.site-header nav a{overflow-wrap:anywhere}
.site-header .header-utility-links>a{white-space:normal;max-width:100%;overflow-wrap:anywhere}

/* am-responsive-layout-v1: portrait navigation reflows as readable groups, desktop positions stay intact. */
.site-header,.site-header>.header-tools,.site-header nav,.site-header [data-header-utilities],.site-header .language-control{min-width:0;max-width:100%}
@media(max-width:900px){.page-shell{width:calc(100% - 32px)}}
@media(max-width:760px){
 .page-shell{width:calc(100% - 24px)}
 .site-header{padding:18px 0;gap:10px;align-items:center}
 .site-header>.header-tools{gap:8px 12px}
 .site-header>.header-tools>nav{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center;justify-content:flex-start;flex:1 1 100%;width:100%}
 .site-header nav>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;max-width:100%;padding:6px 0;border:0;border-radius:0;line-height:1.5;text-align:start;overflow-wrap:anywhere}
 .site-header [data-header-utilities]{width:100%;gap:8px 14px;justify-content:flex-end}
 .site-header .header-utility-tools>nav.header-utility-links{gap:6px 14px;justify-content:flex-end}
 .site-header .language-control{flex-wrap:wrap;justify-content:flex-end;gap:6px 8px;font-size:12px;white-space:normal}
 .site-header .language-control select{min-width:144px;min-height:44px;font-size:16px;width:auto;max-width:100%}
 .site-brand-text{font-size:20px}
 .site-banner{width:100%;margin-top:16px}
 .site-footer{display:flex;flex-wrap:wrap;gap:10px;overflow-wrap:anywhere}
}

/* am-mobile-header-visibility-v1: one brand/menu row and one utility/language row. */
@media(max-width:760px){
 .site-header,.tenant-site .site-header{display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto auto;gap:8px 10px;align-items:center;padding:12px 0}
 .site-header>.brand,.site-header>.brand:has(.site-brand-text){grid-column:1;grid-row:1;display:flex;align-items:center;width:56px;max-width:56px;min-width:0;margin:0}
 .site-header .header-logo{width:56px;max-width:56px;max-height:48px;height:auto;object-fit:contain}
 .site-header .site-brand-text{font-size:14px;line-height:1.35;overflow-wrap:anywhere}
 .site-header>.header-tools{display:contents!important}
 .site-header>.header-tools>nav{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;width:100%;max-width:100%;min-width:0;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;margin:0;padding:0}
 .site-header>.header-tools>nav>a{flex:none;white-space:nowrap;overflow-wrap:normal;min-width:0;min-height:44px;padding:4px 2px;line-height:1.4}
 .site-header .header-utility-tools{grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;width:100%;max-width:100%;min-width:0;gap:10px;margin:0}
 .site-header .header-utility-tools>nav.header-utility-links{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;flex:0 1 auto;width:auto;min-width:0;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;margin:0;padding:0}
 .site-header .header-utility-tools>nav.header-utility-links>a{flex:none;white-space:nowrap;overflow-wrap:normal;min-width:0;min-height:44px;padding:4px 0;line-height:1.4}
 .site-header .header-utility-tools>.language-control{display:flex;align-items:center;flex-wrap:nowrap;flex:0 0 auto;max-width:65%;min-width:0;gap:0;margin:0}
 .site-header .header-utility-tools>.language-control>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
 .site-header .header-utility-tools>.language-control>select{field-sizing:content;width:auto;min-width:110px;max-width:100%;min-height:44px;font-size:16px;padding:8px 28px 8px 8px}
 .site-header nav>a[hidden]{display:none!important}
}

/* am-language-presentation-v1: language and primary navigation share the portrait row. */
@media(max-width:760px){
 html body .site-header,html body.tenant-site .site-header{grid-template-columns:48px minmax(0,1fr) auto;grid-template-rows:auto;column-gap:8px;row-gap:6px}
 html body .site-header>.brand,html body .site-header>.brand:has(.site-brand-text){width:48px;max-width:48px;grid-column:1;grid-row:1}
 html body .site-header .header-logo{width:48px;max-width:48px;max-height:44px}
 html body .site-header>.header-tools>nav{grid-column:2;grid-row:1;gap:var(--am-mobile-nav-gap,8px);width:100%;min-width:0}
 html body .site-header .header-utility-tools{display:contents}
 html body .site-header .header-utility-tools>nav.header-utility-links{grid-column:2/-1;grid-row:2;justify-content:flex-end;width:100%;gap:var(--am-mobile-nav-gap,8px)}
 html body .site-header .header-utility-tools>nav.header-utility-links:not(:has(a:not([hidden]))){display:none}
 html body .site-header .header-utility-tools>.language-control{grid-column:3;grid-row:1;justify-self:end;max-width:42vw;min-width:0;margin:0;gap:0}
 html body .site-header .header-utility-tools>.language-control>select{width:auto;min-width:0;max-width:100%;font-size:var(--am-language-size,12px)}
}
