.new-navbar-nav .resources-dropdown.less-width { width: min(960px, calc(100vw - 48px)); }
.resources-dropdown .resources-columns { margin: 0; }
.resources-dropdown .resources-columns.has-preferences {
    display: grid;
    grid-template-columns: 35% 40% 25%;
}
.resources-dropdown .resources-columns.has-preferences > * { width: auto; min-width: 0; padding: 0; }
.resources-preferences-column { border-left: 1px solid #e2e7ed; background: #f8fafc; }
body:not(.dark-mode) .new-navbar-nav .resources-dropdown .dropdown-inner .each-part .navbar-heading {
    background-color: transparent;
}
.header-preferences { padding-top: 20px; }
.header-preferences fieldset { margin: 0 0 24px; min-width: 0; }
.header-preferences legend { float: none; width: auto; font-size: 13px; font-weight: 600; margin-bottom: 10px; color: inherit; }
.header-choice-group { display: flex; gap: 4px; flex-wrap: wrap; }
.header-preferences .header-choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px;
    padding: 5px 9px;
    font: inherit;
    font-size: 12px;
    line-height: 1.3;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: transparent;
    color: #243b53;
}
.header-preferences .header-choice.is-selected { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.header-preferences .header-choice:hover { border-color: var(--brand-blue); }
.new-navbar-nav > .nav-item:focus-within > .nav-new-dropdown { opacity: 1; visibility: visible; }
.mobile-preferences { border-top: 1px solid #e2e7ed; margin-top: 16px; padding: 18px 0 0; }
.header-preferences-title { font-size: 16px; font-weight: 600; margin: 0; }
.dark-mode .resources-dropdown .resources-preferences-column {
    background: var(--gray-930);
    border-color: var(--gray-760);
    color: var(--white);
}
.dark-mode .header-preferences .header-choice { color: var(--white); border-color: var(--gray-760); }
.dark-mode .header-preferences .header-choice.is-selected { background: var(--brand-blue); border-color: var(--brand-blue); }
.header-choice:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 3px;
}
@media (min-width: 1200px) {
    .funderial-header .header-actions,
    .funderial-header .new-navbar-nav > .nav-item { flex-shrink: 0; }
    .funderial-header .new-navbar-nav > .nav-item > .nav-link,
    .funderial-header .header-primary-actions .nav-btn { white-space: nowrap; }
    .funderial-header .navbar-collapse { min-width: 0; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .resources-dropdown .resources-columns.has-preferences { grid-template-columns: 1fr 1fr; }
    .resources-dropdown .resources-preferences-column { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #e2e7ed; }
    .resources-preferences-column .header-preferences { display: flex; gap: 40px; padding-top: 14px; }
    .resources-preferences-column .header-preferences fieldset { margin-bottom: 0; }
    .funderial-header .new-navbar-nav { gap: 12px; }
    .funderial-header .new-navbar-nav > .nav-item > .nav-link { font-size: 13px; }
    .funderial-header .navbar-brand img { max-width: 190px; }
    .funderial-header .header-primary-actions { gap: 8px !important; }
    .funderial-header .header-primary-actions .nav-btn { padding: 10px 12px; font-size: 13px; }
}
@media (min-width: 1400px) {
    html[lang="es"] .funderial-header .new-navbar-nav { gap: 16px; }
    html[lang="es"] .funderial-header .new-navbar-nav > .nav-item > .nav-link { font-size: 14px; }
    html[lang="es"] .funderial-header .navbar-brand img { max-width: 210px; }
    html[lang="es"] .funderial-header .header-primary-actions .nav-btn { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 1199.98px) {
    .mobile-preferences .header-preferences fieldset { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .mobile-preferences .header-preferences legend { float: left; margin: 0; }
    .mobile-preferences .header-choice { min-height: 36px; }
}
