/* Public Home: navigation faces the logo, below the sliders and above login. */
body:has(.mafama-home--refined) { --mafama-home-accent-blue:#2865ee; }
body:has(.mafama-home--refined) #topBar { padding:12px 0 10px !important; }
body:has(.mafama-home--refined) #topBar > .container {
    display:grid !important;
    grid-template-columns:280px minmax(0,1fr) !important;
    grid-template-areas:"languages languages" "brand media" "brand menu" "login login" !important;
    align-items:center !important;
    gap:0 30px !important;
    /* Home content extends 15px beyond the wrapper on each side. */
    width:min(1180px,calc(100% - 10px)) !important;
    margin:0 auto !important;
    padding:0 24px 20px !important;
    border:1px solid #e2e8f4 !important;
    border-radius:22px !important;
    background:linear-gradient(145deg,#fff,#fafcff) !important;
    box-shadow:0 8px 24px rgba(11,30,77,.035) !important;
}
body:has(.mafama-home--refined) #topBar > .container::before,
body:has(.mafama-home--refined) #topBar > .container::after,
body:has(.mafama-home--refined) #topBar > .container > .row::before,
body:has(.mafama-home--refined) #topBar > .container > .row::after { content:none !important; display:none !important; }
body:has(.mafama-home--refined) #topBar > .container > .row,
body:has(.mafama-home--refined) #topBar > .container > .row > .col-md-4:nth-child(3) { display:contents !important; }
body:has(.mafama-home--refined) #topBar > .container > nav:first-child {
    grid-area:languages !important;
    justify-content:center !important;
    padding:5px 0 !important;
    border-bottom:1px solid #e8edf7 !important;
}
body:has(.mafama-home--refined) #topBar > .container > nav:first-child > ul { justify-content:center !important; flex-wrap:wrap !important; gap:6px !important; padding:4px 0 !important; }
body:has(.mafama-home--refined) #topBar > .container > nav:first-child li {
    gap:5px !important;
    padding:6px 10px !important;
    min-height:32px !important;
    
}
body:has(.mafama-home--refined) #topBar .language_check { width:14px !important; height:14px !important; flex-shrink:0; }
body:has(.mafama-home--refined) #topBar > .container > .row > .col-md-4:first-child {
    grid-area:brand !important;
    min-width:0 !important;
    padding:20px 0 20px 18px !important;
    align-items:center !important;
}
body:has(.mafama-home--refined) #topBar .top-links,
body:has(.mafama-home--refined) #topBar .top-links > li:first-child { width:100% !important; border:0 !important; padding:0 !important; }
body:has(.mafama-home--refined) #topBar .mafama-brand-tagline {
    max-width:265px;
    margin:14px 0 0;
    padding:0;
    color:var(--mafama-home-accent-blue);
    text-shadow:0 1px 0 #fff,0 2px 8px rgba(8,145,178,.2);
    text-align:center;
    text-wrap:balance;
    white-space:normal;
}
body:has(.mafama-home--refined) #topBar .mafama-tagline-highlight { color:#0e7490 !important; }
body:has(.mafama-home--refined) #topBar .mafama-tagline-finish { color:var(--mafama-home-accent-blue) !important; }
body:has(.mafama-home--refined) #topBar .mafama-nav-mounted {
    grid-area:menu !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:12px 0 8px !important;
    border:0 !important;
    min-height:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}
body:has(.mafama-home--refined) #topBar .mafama-nav-mounted .mafama-nav-list {
    justify-content:center !important;
    flex-wrap:wrap !important;
    gap:8px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}
body:has(.mafama-home--refined) #topBar .mafama-nav-mounted .g-nav-menu { z-index:20; text-align:left; }
body:has(.mafama-home--refined) #topBar .mafama-nav-mounted .mafama-nav-list > li > :is(a,button) { text-transform:uppercase !important; }
body:has(.mafama-home--refined) #topBar > .container > .row > .col-md-4:nth-child(3) form {
    grid-area:login !important;
    display:grid !important;
    grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) 110px 42px 210px !important;
    align-items:center !important;
    justify-content:stretch !important;
    gap:12px !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:8px auto 0 !important;
    padding:18px !important;
    border:2px solid #a9bddb !important;
    border-radius:17px !important;
    background:linear-gradient(135deg,#edf3fc 0%,#f8fbff 65%,#f0f5ff 100%) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 5px 16px rgba(32,71,125,.035) !important;
}
body:has(.mafama-home--refined) #topBar form > .top-bar-col { min-width:0 !important; width:100% !important; padding:0 !important; margin:0 !important; }
/* Keep native accessible input names without visible labels or layout space. */
body:has(.mafama-home--refined) #topBar .mafama-header-field-label {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    clip-path:inset(50%);
    white-space:nowrap;
    border:0;
}
body:has(.mafama-home--refined) #topBar :is(#email,#password) {
    width:100% !important;
    min-height:50px !important;
    padding:0 16px !important;
    border:2px solid #9bafce !important;
    border-radius:11px !important;
    color:#213754 !important;
    background:#fff !important;
    
    
    box-shadow:0 2px 5px rgba(32,71,125,.025) !important;
    transition:border-color .18s ease,box-shadow .18s ease;
}
body:has(.mafama-home--refined) #topBar .mafama-password-field #password { padding-right:46px !important; }
body:has(.mafama-home--refined) #topBar :is(#email,#password)::placeholder { color:#566780 !important;  opacity:1; }
body:has(.mafama-home--refined) #topBar :is(#email,#password):hover { border-color:#aebfd9 !important; }
body:has(.mafama-home--refined) #topBar :is(#email,#password):focus { border-color:#2563eb !important; outline:0; box-shadow:0 0 0 3px #2563eb16 !important; }
body:has(.mafama-home--refined) #topBar :is(#email,#password).is-invalid { border-color:#d62839 !important; background:#fff8f9 !important; }
body:has(.mafama-home--refined) #topBar :is(.login_btn,.mafama-get-started-btn) {
    width:100% !important;
    min-width:0 !important;
    min-height:50px !important;
    margin:0 !important;
    padding:10px 14px !important;
    border-radius:11px !important;
    
    animation:none !important;
    box-shadow:0 4px 10px #20477d10 !important;
}
body:has(.mafama-home--refined) #topBar .login_btn { display:inline-flex !important; align-items:center !important; justify-content:center !important; gap:8px; }
body:has(.mafama-home--refined) #topBar .login_btn i { flex:none;  }
body:has(.mafama-home--refined) #topBar .mafama-get-started-btn::before { display:none !important; }
body:has(.mafama-home--refined) #topBar .mafama-login-divider { display:flex; align-items:center; justify-content:center; gap:6px; height:50px; color:#536580;  }
body:has(.mafama-home--refined) #topBar .mafama-login-divider::before,
body:has(.mafama-home--refined) #topBar .mafama-login-divider::after { content:''; flex:1; height:1px; background:#a9bddb; }
body:has(.mafama-home--refined) #topBar form > .top-bar-login-error { display:block !important; grid-column:1/-1 !important; margin:0 !important; }
body:has(.mafama-home--refined) #topBar .mafama-nav-mounted :is(button,a):focus-visible,
body:has(.mafama-home--refined) #topBar :is(.login_btn,.mafama-get-started-btn):focus-visible { outline:3px solid #6d95f3; outline-offset:3px; }
@media(max-width:1000px) {
    body:has(.mafama-home--refined) #topBar > .container { grid-template-columns:250px minmax(0,1fr) !important; gap:0 16px !important; padding-inline:18px !important; }
    body:has(.mafama-home--refined) #topBar .mafama-nav-mounted .mafama-nav-list { gap:4px !important; }
    body:has(.mafama-home--refined) #topBar > .container > .row > .col-md-4:nth-child(3) form { grid-template-columns:repeat(6,minmax(0,1fr)) !important; gap:12px !important; }
    body:has(.mafama-home--refined) #topBar form > .top-bar-col:has(input) { grid-column:span 3; }
    body:has(.mafama-home--refined) #topBar form > .top-bar-col:has(.login_btn) { grid-column:span 2; }
    body:has(.mafama-home--refined) #topBar form > .top-bar-start-col { grid-column:span 3; }
}
@media(max-width:767px) {
    body:has(.mafama-home--refined) #topBar > .container { width:calc(100% - 28px) !important; }
}
@media(max-width:650px) {
    body:has(.mafama-home--refined) #topBar > .container { grid-template-columns:minmax(0,1fr) !important; grid-template-areas:"languages" "brand" "media" "menu" "login" !important; padding:0 14px 14px !important; gap:0 !important; }
    body:has(.mafama-home--refined) #topBar > .container > .row > .col-md-4:first-child { padding:18px 0 18px 8px !important; }
    body:has(.mafama-home--refined) #topBar .mafama-nav-mounted { padding:8px 0 !important; }
    body:has(.mafama-home--refined) #topBar .logo img { width:240px !important; max-width:100% !important; }
    body:has(.mafama-home--refined) #topBar .mafama-nav-mounted .mafama-nav-list { justify-content:center !important; gap:4px !important; }
    body:has(.mafama-home--refined) #topBar .mafama-nav-mounted .mafama-nav-list > li { width:auto; }
    body:has(.mafama-home--refined) #topBar .mafama-nav-mounted .mafama-nav-list > li > :is(a,button) { display:block !important; padding:9px 8px !important; text-align:center; }
    body:has(.mafama-home--refined) #topBar > .container > .row > .col-md-4:nth-child(3) form { grid-template-columns:minmax(0,1fr) !important; padding:14px !important; gap:12px !important; }
    body:has(.mafama-home--refined) #topBar form > .top-bar-col { grid-column:1/-1 !important; }
    body:has(.mafama-home--refined) #topBar .mafama-login-divider { height:24px; }
}

body:has(.mafama-home--refined) #topBar > .container > .row > .top-bar-sidediv:has(.mafama-header-media) { display:contents !important; }
body:has(.mafama-home--refined) #topBar > .container > .row > .top-bar-sidediv:has(.mafama-header-media) > #google_translate_element { display:none !important; }
body:has(.mafama-home--refined) #topBar .mafama-header-media {
    grid-area:media; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
    gap:14px; min-width:0; width:100%; padding:18px 0 4px;
}
body:has(.mafama-home--refined) #topBar .mafama-header-media--single { grid-template-columns:minmax(0,1fr); }
@media(min-width:651px) {
    body:has(.mafama-home--refined) #topBar > .container:not(:has(.mafama-header-media)) { grid-template-areas:"languages languages" "brand menu" "login login" !important; }
}
body:has(.mafama-home--refined) #topBar .mafama-header-slider { min-width:0; margin:0; padding:0; border:1px solid #dce5f3; border-radius:14px; overflow:hidden; background:#f4f7fc; }
body:has(.mafama-home--refined) #topBar .mafama-header-slider-stage { height:188px; position:relative; }
body:has(.mafama-home--refined) #topBar .mafama-header-slide { width:100%; height:100%; position:relative; }
body:has(.mafama-home--refined) #topBar .mafama-header-slide > :is(img,video) { display:block; width:100%; height:100%; object-fit:contain; margin:0; border:0; }
body:has(.mafama-home--refined) #topBar .mafama-header-slide video { background:#111827; }
body:has(.mafama-home--refined) #topBar .mafama-header-slider [hidden] { display:none !important; }
body:has(.mafama-home--refined) #topBar .mafama-header-slider-controls { display:flex; align-items:center; gap:6px; padding:6px 8px; min-height:40px; background:#fff; color:#536580; font:500 11px/1.3 Inter,sans-serif; }
body:has(.mafama-home--refined) #topBar .mafama-header-slider-name { flex:1; min-width:0; text-align:left; }
body:has(.mafama-home--refined) #topBar .mafama-header-slider-controls span { color:inherit !important; font-size:inherit !important; }
body:has(.mafama-home--refined) #topBar .mafama-header-slider-controls button { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-width:28px; min-height:28px; padding:4px 6px; border:1px solid #dce5f3; border-radius:7px; color:#1f456f; background:#f5f8ff; font:600 11px/1 Inter,sans-serif; cursor:pointer; }
body:has(.mafama-home--refined) #topBar .mafama-header-slider-controls button:is([data-header-prev],[data-header-next]) { font-size:23px; }
body:has(.mafama-home--refined) #topBar .mafama-header-slider-controls button:focus-visible { outline:3px solid #6d95f3; outline-offset:-3px; }
body:has(.mafama-home--refined) #topBar .mafama-header-media-error { position:absolute; inset:0; display:grid; place-items:center; padding:20px; background:#f4f7fc; color:#536580; font:500 12px/1.5 Inter,sans-serif; }
.mafama-header-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:1000px) and (min-width:651px) {
    body:has(.mafama-home--refined) #topBar > .container { grid-template-columns:200px minmax(0,1fr) !important; }
    body:has(.mafama-home--refined) #topBar .mafama-header-media { gap:10px; }
    body:has(.mafama-home--refined) #topBar .mafama-header-slider-stage { height:160px; }
    body:has(.mafama-home--refined) #topBar .mafama-header-slider-name { display:none; }
}
@media(max-width:650px) {
    body:has(.mafama-home--refined) #topBar .mafama-header-media { grid-template-columns:minmax(0,1fr); padding:0 0 16px; }
    body:has(.mafama-home--refined) #topBar .mafama-header-slider-stage { height:auto; aspect-ratio:16/9; }
    body:has(.mafama-home--refined) #topBar .mafama-header-slider-controls { font-size:12px; }
}
@media(max-width:360px) {
    body:has(.mafama-home--refined) #topBar > .container > .row > .col-md-4:nth-child(3) form > .top-bar-col:has(input) { grid-column:1/-1; }
    body:has(.mafama-home--refined) #topBar > .container { padding-inline:10px !important; }
    body:has(.mafama-home--refined) #topBar .mafama-get-started-btn { padding-inline:8px !important; }
    body:has(.mafama-home--refined) #topBar .mafama-get-started-btn i { display:none !important; }
}
