/* Layout and asset presentation only. Existing theme tokens remain authoritative. */
:root { --nav-h: 96px; }
.nav-container { min-height: var(--nav-h); }
.logo { min-width: 0; gap: 14px; }
.logo img { width: 80px; height: 80px; flex: 0 0 80px; object-fit: contain; }
.logo span { white-space: normal; max-width: 210px; line-height: 1.2; }
.logo:hover img { transform: none; }
.theme-logo { mix-blend-mode: normal !important; }
/* White in the original light logo blends with the off-white header/footer. */
html:not([data-theme="dark"]) .navbar .theme-logo,
html:not([data-theme="dark"]) .footer-brand-header .theme-logo { mix-blend-mode: multiply !important; }
.nav-links { flex-shrink: 0; }
.page-header { padding-top: calc(var(--nav-h) + 48px); }
.module-page-container { padding-top: calc(var(--nav-h) + 32px); }

/* Equal columns prevent wide wordmarks from squeezing their partner marks. */
.fr-partner-lockup, .ag-brand-lockup {
    display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    align-items: center; justify-items: center; gap: 16px;
    padding: 28px 24px;
}
.fr-partner-va, .fr-partner-google,
.ag-logo-va, .ag-logo-google {
    display: block; width: 100% !important; height: auto !important;
    max-width: 240px; max-height: 210px; object-fit: contain; filter: none !important;
}
.ag-logo-wrapper { width: 100%; min-width: 0; }
.ag-brand-lockup { background: #fff; border-radius: var(--radius-md); }
.fr-partner-x, .ag-lockup-cross { margin: 0; flex-shrink: 0; }
.fr-partner-lockup--handshake { grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr); gap: 12px; }
.fr-partner-handshake { display: block; width: 112px; height: auto; object-fit: contain; }
.fr-partner-body p { margin-bottom: 0; }
.fr-hero-grid { gap: clamp(28px, 4vw, 56px); }
.fr-hero h1 { font-size: clamp(2.5rem, 5.1vw, 4.5rem); line-height: 1.05; }

/* Give each institution a predictable, generous logo area. */
.fr-partners-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.fr-partner-group { display: grid; gap: 16px; min-width: 0; width: 100%; }
.fr-partners-label { margin: 0; }
.fr-partner-divider { display: none; }
.fr-partners-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.fr-partners-list li { min-width: 0; }
.fr-partners-chip { display: flex; width: 100%; height: 124px !important; padding: 18px !important; }
.fr-partners-chip img { width: 100% !important; height: auto !important; max-width: 100%; max-height: 88px; object-fit: contain; }
.fr-partners-chip img[src*="vtu_logo"], .fr-partners-chip img.fr-rvce-logo,
.fr-partners-chip img[src*="google-cloud"] { height: auto !important; }
/* Blend white image canvases into the light section without altering logo assets. */
html:not([data-theme="dark"]) .fr-partners-chip,
html:not([data-theme="dark"]) .fr-partners-chip:hover {
    background: transparent; border-color: transparent; box-shadow: none;
    border-radius: 0; transform: none;
}
html:not([data-theme="dark"]) .fr-partners-chip img { mix-blend-mode: multiply; }
.fr-vtu-lockup, .vtu-lockup {
    display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
    align-items: center; justify-items: center; gap: 16px; width: 100%; padding: 20px;
}
.fr-vtu-chip, .vtu-chip { width: 100%; height: 168px; padding: 16px; }
.fr-vtu-chip img, .vtu-chip img { width: 100%; height: 132px; max-width: 230px; object-fit: contain; }

/* Shared alignment, wrapping and reading rhythm. */
.fr-head, .section-header { margin-bottom: 32px; }
.fr-head p, .fr-lead { max-width: 65ch; }
@supports (grid-template-rows: subgrid) {
    .fr-method .fr-pillar { display: grid; grid-template-rows: subgrid; grid-row: span 4; gap: 16px; }
    .fr-method .fr-pillar > * { margin-block: 0; }
}
.fr-split > *, .fr-reason > *, .fr-contact > *, .module-layout-grid > *,
.fr-model-card, .fr-hub-card, .fr-poster-card, .hub-card { min-width: 0; }
.fr-model-card h3, .fr-hub-card h4, .hub-card h3 { line-height: 1.3; text-wrap: balance; }
.fr-poster-card-body { flex: 1; }
.fr-poster-foot { margin-top: auto; gap: 20px; }
.fr-poster-figure img { object-fit: contain; }
.fr-poster-figure:hover img { transform: none; }
.fr-actions, .ag-hero-actions { row-gap: 12px; }
.fr-btn, .btn-primary, .btn-primary-outline, .btn-secondary { text-align: center; }
.footer-brand-header { align-items: center; gap: 20px; }
.footer-brand-header img { width: 128px; height: 128px; flex: 0 0 128px; object-fit: contain; }
.footer-brand-header h3 { white-space: normal; line-height: 1.25; }
.footer-contact span, .fr-support-email { overflow-wrap: anywhere; min-width: 0; }
.footer-social { align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-social a { width: 56px; height: 56px; flex: 0 0 56px; font-size: 24px; }
.footer-social a[aria-label="YouTube"] { width: 80px; flex-basis: 80px; font-size: 40px; }
.fa-google { font-size: 1.4em; flex-shrink: 0; }
.mobile-bottom-nav a .fa-google { font-size: 1.5rem; }
.vtu-stat-box { min-width: 0; }
.vtu-mandates-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
#productInquiryForm > div { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important; }
#productInquiryForm .btn-primary { max-width: 100%; white-space: normal; }

@media (min-width: 861px) and (max-width: 1200px) {
    .nav-container { gap: 10px; padding-inline: 20px; }
    .logo span { max-width: 130px; font-size: 1rem; }
    .nav-links a:not(.btn-primary-outline):not(.btn-primary),
    .nav-item-dropdown .dropdown-trigger { padding-inline: 8px; font-size: .85rem; }
    .nav-links .nav-cta { margin-left: 4px; padding-inline: 10px; font-size: .85rem; }
    .nav-links a.nav-sales:not(.btn-primary) { padding-inline: 10px !important; }
}
@media (max-width: 860px) {
    :root { --nav-h: 88px; }
    .nav-container { padding-block: 4px; }
    .logo img { width: 72px; height: 72px; flex-basis: 72px; }
    .logo span { max-width: 200px; }
    .nav-links { padding-top: calc(var(--nav-h) + 16px); height: 100dvh; }
    .mobile-menu-btn { position: relative; z-index: 996; }
    .theme-toggle-btn, .mobile-menu-btn { flex-shrink: 0; }
    .fr-partners-row { grid-template-columns: 1fr; gap: 28px; }
    .fr-vtu-lockup, .vtu-lockup { gap: 8px; padding: 12px; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr); }
    .fr-vtu-chip, .vtu-chip { height: 128px; padding: 12px; }
    .fr-vtu-chip img, .vtu-chip img { height: 104px; }
}
@media (max-width: 560px) {
    .vtu-stats-row { display: grid; grid-template-columns: 1fr; gap: 24px; }
    .vtu-stat-box:not(:last-child)::after { display: none; }
    .vtu-mandates { padding: 16px; }
    .logo { gap: 8px; }
    .logo span { max-width: 135px; font-size: .95rem; }
    .nav-container { gap: 8px; padding-inline: 12px; }
    .fr-partner-lockup, .ag-brand-lockup { grid-template-columns: 1fr; gap: 14px; padding: 24px; }
    .fr-partner-handshake { width: 132px; margin-block: 4px; }
    .fr-partner-va, .ag-logo-va { width: 190px !important; }
    .fr-partner-google, .ag-logo-google { width: 210px !important; }
    .ag-logo-wrapper { display: flex; justify-content: center; }
    .fr-vtu-lockup, .vtu-lockup { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
    .fr-vtu-chip, .vtu-chip { height: 160px; }
    .fr-vtu-chip img, .vtu-chip img { height: 132px; }
    .fr-partners-list { gap: 12px; }
    .fr-partners-chip { padding: 12px !important; height: 112px !important; }
    .fr-actions > a { width: 100%; }
    .footer-brand-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-brand-header img { width: 160px; height: 160px; flex-basis: auto; }
    .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .fr-poster-card-body { padding: 24px 20px; }
    .fr-poster-foot { align-items: stretch; }
    .fr-poster-actions { flex-wrap: wrap; }
    .vertical-tab-btn, .subtrack-btn { white-space: normal; }
}
@media (max-width: 360px) {
    .logo span { max-width: 100px; font-size: .8rem; }
    .nav-container { gap: 6px; padding-inline: 8px; }
    .fr-partners-list { grid-template-columns: 1fr; }
}
