/* Asociación Ñeta 1.4.2 — unified headers and language control.
   Applied after legacy CSS. No change to profile themes or saved content. */
:root { --neta-nav-gold:#f1cd76; }
/* Match the calendar ES/EN pattern, on proposals, work plans, events,
   treasury, fundraising, real estate, and the chapter directory. */
html body .nspr-i18n-switch {
  box-sizing:border-box!important;display:inline-flex!important;flex-direction:row!important;
  align-items:center!important;justify-content:center!important;gap:5px!important;
  padding:4px!important;margin:0!important;
  background:#f7f7f6!important;border:1px solid #d0d0d0!important;
  border-radius:9px!important;min-height:52px!important;max-width:100%!important;
  flex:0 0 auto!important;color:#18191b!important;
}
html body .nspr-i18n-switch > a {
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  font:800 16px/1.2 system-ui,Arial,sans-serif!important;
  min-width:46px!important;min-height:44px!important;max-width:none!important;
  padding:9px 10px!important;margin:0!important;text-decoration:none!important;
  background:#fff!important;color:#202124!important;-webkit-text-fill-color:#202124!important;
  border:1px solid #e0e0e0!important;border-radius:7px!important;
}
html body .nspr-i18n-switch > a[aria-pressed="true"] {
  color:#191919!important;-webkit-text-fill-color:#191919!important;
  background:var(--neta-nav-gold)!important;border-color:#d1ad61!important;
}
html body .nspr-i18n-switch > a:focus-visible,
html body .neta-hub-nav-toggle:focus-visible,
html body .neta-directory-nav-toggle:focus-visible {outline:3px solid #d19d3d!important;outline-offset:2px!important}
/* Header with emblem: consistent desktop view; mobile collapsible navigation. */
html body .neta-hub-sitebar .neta-hub-nav-toggle,
html body.neta-chapters-directory-page .neta-directory-nav-toggle{
  display:none;border:1px solid #666;background:#2a2b2d;color:#fff;
  font:750 16px/1.3 system-ui,Arial,sans-serif;border-radius:10px;
  min-width:54px;min-height:48px;padding:9px 13px;cursor:pointer;
  align-items:center;justify-content:center;gap:9px;
}
/* Correct the Commerce Network white-on-white issue in the chapter section. */
html body.nspr-commerce-page .cm-content{background:#f5f5f4!important;color:#1b1c1f!important}
html body.nspr-commerce-page .cm-content :is(.cm-intro h2,.cm-group h2,.cm-section-title){color:#171819!important;-webkit-text-fill-color:#171819!important}
html body.nspr-commerce-page .cm-content :is(.cm-intro p,.cm-group p,.cm-hint,.cm-empty,.cm-note,.cm-small){color:#40454a!important;-webkit-text-fill-color:#40454a!important}
html body.nspr-commerce-page .cm-content .cm-tab{color:#35383d!important;-webkit-text-fill-color:#35383d!important;min-height:48px!important}
html body.nspr-commerce-page .cm-content .cm-tab[aria-selected="true"]{color:#211800!important;-webkit-text-fill-color:#211800!important;border-color:#b38c35!important;background:#ffe6a8!important}
html body.nspr-commerce-page .cm-content .cm-search{color:#1b1c1f!important;-webkit-text-fill-color:#1b1c1f!important;background:#fff!important;border-color:#bcbec3!important}
html body.nspr-commerce-page .cm-content .cm-primary{color:#171819!important;-webkit-text-fill-color:#171819!important;min-height:48px!important;padding:12px 18px!important}
@media(max-width:980px){
  /* Absolute protection against v1.4.1 header's 100%+28px width.
     Do not hide the menu/account trigger behind clipping. */
  html body.nspr-app-shell > .container{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;overflow:visible!important;min-width:0!important}
  html body.nspr-app-shell > .container > .header{
    box-sizing:border-box!important;position:relative!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) 54px!important;
    grid-template-rows:auto auto!important;column-gap:10px!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0!important;inset:auto!important;left:auto!important;right:auto!important;
    padding:13px clamp(13px,4vw,19px) 9px!important;
    overflow:visible!important;transform:none!important;
  }
  html body.nspr-app-shell > .container > .header .nspr-brand{grid-column:1!important;grid-row:1!important;min-width:0!important;max-width:100%!important;padding:0!important;margin:0!important}
  html body.nspr-app-shell > .container > .header .menu-toggle{
    grid-column:2!important;grid-row:1!important;position:relative!important;display:flex!important;
    justify-self:end!important;align-self:center!important;min-width:48px!important;width:48px!important;
    min-height:48px!important;height:48px!important;margin:0!important;inset:auto!important;
    flex-shrink:0!important;z-index:8!important;
  }
  html body.nspr-app-shell > .container > .header .header-right{
    box-sizing:border-box!important;grid-column:1/-1!important;grid-row:2!important;
    display:flex!important;flex-direction:row!important;justify-content:flex-end!important;
    align-items:center!important;gap:clamp(4px,2.5vw,12px)!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    padding:10px 0 0!important;margin:9px 0 0!important;
    flex-wrap:nowrap!important;
  }
  html body.nspr-app-shell > .container > .header .user-menu{max-width:min(175px,48vw)!important;min-width:0!important;margin-left:0!important;position:relative!important}
  html body.nspr-app-shell > .container > .header .user-menu-trigger{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  html body.nspr-app-shell > .container > .header :is(.header-notifications-link,.header-messages-link){min-width:40px!important;width:40px!important;height:44px!important;flex:none!important}
  html body.nspr-app-shell > .container > .header .user-dropdown{
    box-sizing:border-box!important;position:absolute!important;right:0!important;left:auto!important;
    width:min(355px,calc(100vw - 26px))!important;max-width:calc(100vw - 26px)!important;
  }
  html body.nspr-app-shell > .container > .nav-tabs{box-sizing:border-box!important;max-width:100%!important;min-width:0!important}
  html body.nspr-app-shell > .container > .nspr-nav-backdrop{max-width:100vw!important}
  html body .neta-hub-sitebar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important;padding:11px 16px!important;width:100%!important}
  html body .neta-hub-sitebar .neta-hub-sitebrand{grid-column:1!important;grid-row:1!important;min-width:0!important;max-width:100%!important;font-size:clamp(18px,4vw,22px)!important;line-height:1.25!important}
  html body .neta-hub-sitebar .neta-hub-nav-toggle{display:inline-flex!important;grid-column:2!important;grid-row:1!important;justify-self:end!important}
  html body .neta-hub-sitebar nav{
    box-sizing:border-box!important;display:none!important;grid-column:1/-1!important;grid-row:2!important;
    width:100%!important;max-width:100%!important;margin:0!important;padding:9px 0 0!important;
    border-top:1px solid #4f5052!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;
  }
  html body .neta-hub-sitebar nav.neta-hub-nav-open{display:flex!important}
  html body .neta-hub-sitebar nav a{padding:13px 9px!important;min-height:48px!important;border-bottom:1px solid #38393b!important;font-size:17px!important;color:#fff!important;-webkit-text-fill-color:#fff!important;white-space:normal!important}
  html body.neta-chapters-directory-page .neta-directory-nav .neta-directory-shell{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important}
  html body.neta-chapters-directory-page .neta-directory-nav-toggle{display:inline-flex!important;grid-column:2!important;grid-row:1!important;justify-self:end!important}
  html body.neta-chapters-directory-page .neta-directory-links{display:none!important;grid-column:1/-1!important;grid-row:2!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;border-top:1px solid #444!important;gap:0!important;padding-top:6px!important}
  html body.neta-chapters-directory-page .neta-directory-links.neta-directory-links-open{display:flex!important}
  html body.neta-chapters-directory-page .neta-directory-links a{font-size:17px!important;padding:11px 8px!important;min-height:46px!important}
}
@media(max-width:767px){
  html body.nspr-app-shell > .container > .header .menu-toggle{right:auto!important;left:auto!important;top:auto!important}
  /* Drawer is fixed to the window, not the oversized old content width. */
  html body.nspr-app-shell > .container > .nav-tabs.active{
    box-sizing:border-box!important;width:min(360px,92vw)!important;max-width:92vw!important;
    margin:0!important;padding:20px 16px!important;right:0!important;left:auto!important;
  }
  /* one toolbar pattern (like the Events Calendar) */
  html body :is(.nspr-shell,.ep-wrap,.fr-wrap,.bf-body,.nt-main,.iv-main,.eb-main,.re147) :is(.nspr-top,.ep-header,.fr-top,.nt-topline,.re147-top){
    box-sizing:border-box!important;max-width:100%!important;min-width:0!important;gap:10px!important;
    padding:12px clamp(15px,4vw,20px)!important;flex-wrap:wrap!important;
  }
  html body :is(.nspr-shell,.ep-wrap,.fr-wrap,.bf-body,.nt-main,.iv-main,.eb-main,.re147) .nspr-i18n-switch{
    padding:4px!important;gap:5px!important;margin-left:auto!important;flex:0 0 auto!important;
    background:#f7f7f6!important;border-color:#d0d0d0!important;
  }
  html body :is(.nspr-shell,.ep-wrap,.fr-wrap,.bf-body,.nt-main,.iv-main,.eb-main,.re147) .nspr-i18n-switch>a{min-width:46px!important;min-height:44px!important;padding:9px 10px!important}
}
/* Mobile drawer must match the black header (legacy white navigation overrides). */
@media (max-width:980px) {
 html body.nspr-app-shell > .container > nav.nav-tabs.active {
   position:fixed!important;inset:0 0 0 auto!important;top:0!important;left:auto!important;right:0!important;
   height:100dvh!important;max-height:100dvh!important;min-height:0!important;
   display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
   background:#171819!important;color:#f8f8f8!important;-webkit-text-fill-color:#f8f8f8!important;
   border:0!important;border-left:1px solid #535454!important;box-shadow:-18px 0 45px #0008!important;
   overflow-y:auto!important;overflow-x:hidden!important;z-index:2501!important;
 }
 html body.nspr-app-shell > .container > nav.nav-tabs.active .nav-tab,
 html body.nspr-app-shell > .container > nav.nav-tabs.active .nspr-more-menu .nav-tab {
   box-sizing:border-box!important;background:#262729!important;color:#f7f7f7!important;
   -webkit-text-fill-color:#f7f7f7!important;border:1px solid #454648!important;
   padding:13px 15px!important;border-radius:8px!important;line-height:1.35!important;
   text-align:left!important;min-height:48px!important;
 }
 html body.nspr-app-shell > .container > nav.nav-tabs.active .nav-tab.active{background:#35312a!important;color:#f6d38a!important;-webkit-text-fill-color:#f6d38a!important}
 html body.nspr-app-shell > .container > nav.nav-tabs.active .mobclose,
 html body.nspr-app-shell > .container > nav.nav-tabs.active .nspr-mobile-language{background:#252628!important;color:white!important}
 html body.nspr-app-shell > .container > nav.nav-tabs.active .mobclose :is(strong,button){color:#fff!important;-webkit-text-fill-color:#fff!important}
 html body.nspr-app-shell > .container > nav.nav-tabs.active .nspr-mobile-language strong{color:#fff!important;-webkit-text-fill-color:#fff!important}
 html body.nspr-app-shell > .container > nav.nav-tabs.active .nspr-mobile-language button{color:#fff!important;-webkit-text-fill-color:#fff!important}
}

/* v1.4.3 — Remove redundant "John" account menu. Account/admin links
   stay available in mobile hamburger and desktop "Más" navigation. */
@media (min-width:981px) {
  html body.nspr-app-shell > .container > .nav-tabs .nspr-more-menu .mmonly {
    display:flex!important;
  }
}
