/* Shared navigation and footer. Scoped to preserve approved page interiors. */
.ag-header,.ag-footer { font-family: Geist,Arial,sans-serif; font-size:15px; line-height:1.5; box-sizing:border-box; }
.ag-header *,.ag-footer * { box-sizing:border-box; }
.ag-header { position:sticky; top:0; z-index:80; background:#f7f6f0f5; color:#23282b; border-bottom: 0; backdrop-filter:blur(14px); }
.ag-header-inner { max-width:1480px; padding:18px 32px; margin:auto; display:flex; align-items:center; gap:28px; }
.ag-logo { flex-shrink:0; display:block; width:132px; }
.ag-logo img { display:block; width:100%; height:auto; }
.ag-nav { display:flex; align-items:center; gap:26px; margin-left:auto; }
.ag-nav a { color:inherit; text-decoration:none; font-size:14px; font-weight:500; white-space:nowrap; padding:8px 0; border-bottom:1px solid transparent; }
.ag-nav a[aria-current],.ag-nav a:hover { border-color:currentColor; }
.ag-nav a.ag-quote { padding:11px 18px; border-radius:28px; background:#23282b; color:#fff; font-size:12px; font-weight:700; text-transform:uppercase; }
.ag-language { display:flex; gap:2px; flex-shrink:0; }
.ag-language button { border:0; border-radius:22px; background:transparent; color:inherit; padding:10px 8px; min-height:44px; font:inherit; font-size:12px; cursor:pointer; }
.ag-language button[aria-pressed=true] { text-decoration:underline; text-underline-offset:5px; }
.ag-language { position:relative; }
.ag-language summary { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:44px; padding:8px 12px; border-radius:8px; font-size:13px; cursor:pointer; list-style:none; }
.ag-language summary::-webkit-details-marker { display:none; }
.ag-language summary:hover,.ag-language details[open] summary { background:#e9eae3; }
.ag-language summary:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.ag-language-options { position:absolute; right:0; top:calc(100% + 8px); display:grid; min-width:150px; padding:8px; border:1px solid #d5d8d6; border-radius:12px; background:#f7f6f0; box-shadow:0 8px 24px #23282b18; }
.ag-language details:not([open]) .ag-language-options { display:none; }
.ag-language-options button { text-align:left; padding:10px 14px; border-radius:6px; font-size:14px; }
.ag-language-options button:hover,.ag-language-options button[aria-pressed=true] { background:#e9eae3; }
.ag-menu { display:none; border:0; background:transparent; color:inherit; padding:10px 0; min-height:44px; font:inherit; cursor:pointer; }
.ag-header a:focus-visible,.ag-header button:focus-visible,.ag-footer a:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
.ag-footer { background:#23282b; color:#f7f6f0; padding:64px 32px 24px; margin-top:0; }
.ag-footer-inner { max-width:1416px; margin:auto; display:grid; grid-template-columns:2fr 1fr 1fr; gap:48px; }
.ag-footer .ag-logo { width:170px; }
.ag-footer .ag-logo img { filter:brightness(0) invert(1); }
.ag-footer h2 { font-size:clamp(28px,3vw,42px); letter-spacing:-.04em; line-height:1.1; margin:24px 0; color:inherit; }
.ag-footer h3 { font-size:13px; font-weight:500; color:#bec5c8; margin:0 0 18px; }
.ag-footer nav { display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.ag-footer a { color:inherit; text-decoration:none; font-size:14px; }
.ag-footer a:hover { text-decoration:underline; text-underline-offset:4px; }
.ag-footer-bottom { max-width:1416px; margin:48px auto 0; border-top: 0; padding-top:20px; display:flex; gap:24px; flex-wrap:wrap; color:#c0c6c9; font-size:12px; }
.ag-footer-bottom span { margin-right:auto; }
.ag-footer-bottom a { font-size:12px; }
@media(max-width:1180px) {
 .ag-header-inner { padding:10px 24px; gap:20px; flex-wrap:wrap; }
 .ag-language { margin-left:auto; }
 .ag-menu { display:block; }
 .ag-nav { order:4; width:100%; margin:0; flex-wrap:wrap; padding:12px 0; gap:14px 26px; }
 .ag-header[data-ready] .ag-nav, .ag-shell-ready .ag-header:not([data-open]) .ag-nav { display:none; }
 .ag-header[data-open] .ag-nav { display:flex; }
}
/* Longer Spanish navigation switches to the existing menu before it overflows. */
@media(min-width:1181px) and (max-width:1420px) {
 html[lang="es"] .ag-header-inner { padding:10px 24px; gap:20px; flex-wrap:wrap; }
 html[lang="es"] .ag-language { margin-left:auto; }
 html[lang="es"] .ag-menu { display:block; }
 html[lang="es"] .ag-nav { order:4; width:100%; margin:0; flex-wrap:wrap; padding:12px 0; gap:14px 26px; }
 html[lang="es"] .ag-header[data-ready] .ag-nav, html[lang="es"].ag-shell-ready .ag-header:not([data-open]) .ag-nav { display:none; }
 html[lang="es"] .ag-header[data-open] .ag-nav { display:flex; }
}
@media(max-width:640px) {
 .ag-header-inner { padding:8px 16px; gap:14px; }
 .ag-logo { width:112px; }
 .ag-nav { flex-direction:column; align-items:stretch; gap:0; }
 .ag-nav a { font-size:18px; padding:12px 0; }
 .ag-nav a.ag-quote { text-align:center; margin-top:12px; }
 .ag-footer { padding:48px 20px 24px; }
 .ag-footer-inner { grid-template-columns:1fr 1fr; gap:34px 20px; }
 .ag-footer-brand { grid-column:1/-1; }
 .ag-footer-bottom { margin-top:34px; gap:18px; }
 .ag-footer-bottom span { width:100%; }
}
