/* Asociación Ñeta v1.4.1 — coherent mobile layouts.
 * Outer surfaces stretch to the viewport; content and actions retain safe
 * internal padding. No changes to stored profile themes, posts or data. */
:root{--neta-safe-inline:clamp(16px,4.7vw,24px)}
/* Unify the standalone chapter DIRECTORY with the black silver-emblem header
   on other independent pages. Desktop retains its centered content layout. */
html body.neta-chapters-directory-page{background:#f6f6f5!important;color:#191919!important}
html body.neta-chapters-directory-page .neta-directory-nav{background:#18191b!important;color:white!important;border-bottom:1px solid #bda168!important}
html body.neta-chapters-directory-page .neta-directory-nav .neta-directory-shell{max-width:1270px!important;box-sizing:border-box!important;padding:11px clamp(18px,3vw,36px)!important;width:100%!important;min-height:73px!important}
html body.neta-chapters-directory-page .neta-directory-brand{font-size:clamp(19px,2vw,24px)!important;line-height:1.25!important;color:white!important;-webkit-text-fill-color:#fff!important}
html body.neta-chapters-directory-page .neta-directory-brand img{width:45px!important;height:50px!important;object-fit:contain!important}
html body.neta-chapters-directory-page .neta-directory-links{align-items:center!important;gap:clamp(12px,2vw,28px)!important;font-size:15px!important;font-weight:700!important}
html body.neta-chapters-directory-page .neta-directory-links a{color:#fff!important;-webkit-text-fill-color:#fff!important;display:inline-flex!important;align-items:center!important;min-height:44px!important}
html body.neta-chapters-directory-page .neta-directory-shell{max-width:1200px!important}
html body.neta-chapters-directory-page .neta-directory-toolbar{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:14px!important;box-sizing:border-box!important;padding:14px 18px!important}
html body.neta-chapters-directory-page .neta-directory-back{font-weight:750!important;font-size:16px!important;min-height:44px!important;display:inline-flex!important;align-items:center!important;color:#222!important;text-decoration:none!important}
html body.neta-chapters-directory-page .nspr-i18n-switch{display:inline-flex!important;align-items:center!important;flex:0 0 auto!important;gap:5px!important;padding:5px!important;border:1px solid #b7b7b7!important;border-radius:10px!important;background:#f4f4f4!important}
html body.neta-chapters-directory-page .nspr-i18n-switch a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:45px!important;min-height:44px!important;border-radius:7px!important;text-decoration:none!important;font-weight:800!important;font-size:16px!important;color:#171717!important;background:#fff!important;-webkit-text-fill-color:#171717!important}
html body.neta-chapters-directory-page .nspr-i18n-switch a[aria-pressed="true"]{background:#f4d17d!important;color:#181818!important}
html body.neta-chapters-directory-page :is(a,button,input,select):focus-visible{outline:3px solid #bd923c!important;outline-offset:2px!important}

/* Keep the logo bar and compact return navigation legible and touch-friendly
   on Community Hub and all standalone modules, regardless of the old stylesheet. */
html body .neta-hub-sitebar{background:#171819!important;color:#fff!important;border-bottom:1px solid #ad915b!important;box-sizing:border-box!important}
html body .neta-hub-sitebar .neta-hub-sitebrand{color:#fff!important;-webkit-text-fill-color:#fff!important;min-height:48px!important}
html body .neta-hub-sitebar .neta-hub-sitebrand img{object-fit:contain!important}
html body .neta-hub-sitebar nav a{min-height:44px!important;padding:7px 0!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body :is(.nspr-shell,.nspr-v,.ep-wrap,.fr-wrap,.bf-body,.nt-main,.iv-main,.eb-main,.re147) .nspr-i18n-switch{padding:5px!important;gap:5px!important;max-width:100%!important;box-sizing:border-box!important}
html body :is(.nspr-shell,.nspr-v,.ep-wrap,.fr-wrap,.bf-body,.nt-main,.iv-main,.eb-main,.re147) .nspr-i18n-switch :is(a,button){min-width:44px!important;min-height:44px!important;padding:8px 10px!important;font-size:15px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}

@media(max-width:767px){
  /* Enforce one viewport coordinate system: legacy negative margins and
     translateX viewport breakouts were cropping titles on certain phones. */
  html,body{max-width:100%!important;overflow-x:clip!important}
  body.nspr-app-shell{margin:0!important;padding:0!important;overflow-x:clip!important}
  body.nspr-app-shell>.container{
    display:block!important;box-sizing:border-box!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0!important;padding:0!important;overflow:visible!important;
  }
  body.nspr-app-shell>.container>.header{box-sizing:border-box!important;margin:0!important;border-radius:0!important}
  body.nspr-app-shell>.container>.nav-tabs{margin-top:0!important;margin-bottom:0!important}
  /* The header must meet the hero directly: no phantom white strip. */
  body.nspr-app-shell>.container>:where(.neta-national-feed-intro,.nspr-pueblo-hero,.feed-wrapper,#profileApp.profile-container,#directoryPage,.gallery-page){
    position:relative!important;inset:auto!important;left:auto!important;right:auto!important;
    transform:none!important;float:none!important;box-sizing:border-box!important;
    display:block;min-width:0!important;width:100%!important;max-width:100%!important;
    margin-left:0!important;margin-right:0!important;
    padding-left:0!important;padding-right:0!important;
    border-left:0!important;border-right:0!important;
    border-radius:0!important;box-shadow:none!important;
  }
  body.nspr-app-shell>.container>.neta-national-feed-intro:not(#profileApp){
    display:flex!important;align-items:stretch!important;flex-direction:column!important;
    margin-top:0!important;margin-bottom:0!important;
    padding:23px var(--neta-safe-inline) 25px!important;gap:16px!important;
    background:linear-gradient(115deg,#1d1e20,#303135)!important;color:#fff!important;
  }
  body.nspr-app-shell>.container>.neta-national-feed-intro>div{width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important;margin:0!important}
  body.nspr-app-shell>.container>.neta-national-feed-intro :is(h1,p,small){overflow-wrap:break-word!important;max-width:100%!important}
  body.nspr-app-shell>.container>.neta-national-feed-intro :is(h1,p){margin-left:0!important;margin-right:0!important}
  body.nspr-app-shell>.container>.neta-national-feed-intro .neta-feed-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:10px!important;margin:0!important;padding:0!important}
  body.nspr-app-shell>.container>.neta-national-feed-intro .neta-feed-links a{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;min-height:50px!important;padding:12px 11px!important;white-space:normal!important;overflow-wrap:break-word!important}
  /* Chapter photo and heading/card truly full bleed, while CTA text has 18px. */
  body.nspr-app-shell>.container>.nspr-pueblo-hero{display:flex!important;flex-direction:column!important;margin-top:0!important;margin-bottom:0!important;padding:0!important;border:0!important;overflow:hidden!important;background:#1d1d20!important}
  body.nspr-app-shell>.container>.nspr-pueblo-hero:before{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important;border-radius:0!important}
  body.nspr-app-shell>.container>.nspr-pueblo-hero>.nspr-pueblo-hero-inner{width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:0!important;padding:22px var(--neta-safe-inline) 26px!important}
  body.nspr-app-shell>.container>.nspr-pueblo-hero .nspr-pueblo-hero-links{margin:0!important;padding:0!important;gap:10px!important}
  body.nspr-app-shell>.container>.nspr-pueblo-hero .nspr-pueblo-hero-links a{min-width:0!important;min-height:50px!important;box-sizing:border-box!important;padding:12px 10px!important;white-space:normal!important;overflow-wrap:break-word!important}
  /* Feed: no insets on outer wrappers, real padding inside composer and cards. */
  body.nspr-app-shell>.container>.feed-wrapper{display:block!important;grid-template-columns:minmax(0,1fr)!important;margin:0!important;padding:0!important;gap:0!important}
  body.nspr-app-shell .feed-wrapper>.feed-main{width:100%!important;max-width:100%!important;margin:0!important;padding:0 0 72px!important;min-width:0!important}
  body.nspr-app-shell .feed-wrapper .feed-main :is(.neta-feed-player,.feed-header,.stats-card,.filter-bar,.compose-box,.post-card){box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important;border-radius:0!important}
  body.nspr-app-shell .feed-wrapper .feed-main :is(.feed-header,.stats-card,.compose-box,.post-card){padding-left:var(--neta-safe-inline)!important;padding-right:var(--neta-safe-inline)!important}
  body.nspr-app-shell .feed-wrapper .feed-main .filter-bar{padding:5px var(--neta-safe-inline)!important;gap:7px!important}
  body.nspr-app-shell .feed-wrapper .feed-main .filter-bar .filter-btn{min-height:46px!important;min-width:0!important;padding:9px 7px!important;font-size:clamp(14px,3.4vw,17px)!important}
  body.nspr-app-shell .feed-wrapper .feed-main .neta-feed-player{margin-top:0!important;margin-bottom:0!important;padding:0!important}
  body.nspr-app-shell .feed-wrapper .feed-main .neta-feed-player :is(.neta-feed-player-head,.neta-feed-player-meta){padding:14px var(--neta-safe-inline)!important;box-sizing:border-box!important}
  body.nspr-app-shell .feed-wrapper .feed-main .neta-feed-player-video{margin:0!important;padding:0!important;border-radius:0!important}
  body.nspr-app-shell .feed-wrapper .feed-main .post-card :is(.post-media,.post-media-grid,.post-video){width:calc(100% + 2 * var(--neta-safe-inline))!important;max-width:none!important;margin-left:calc(-1 * var(--neta-safe-inline))!important;margin-right:calc(-1 * var(--neta-safe-inline))!important;border-radius:0!important}
  /* Member background images and independent card opacities are preserved. */
  body.nspr-app-shell>.container>#profileApp.profile-container{margin:0!important;padding:0!important;overflow:visible!important;background:transparent!important}
  body.nspr-app-shell #profileApp :is(.profile-hero,.profile-grid,.profile-sidebar,.feed-area){box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
  body.nspr-app-shell #profileApp>.profile-hero{padding:24px var(--neta-safe-inline)!important;background:var(--neta-card-bg,rgba(255,255,255,.94))!important}
  body.nspr-app-shell #profileApp .profile-grid{display:flex!important;flex-direction:column!important;gap:8px!important;margin:0!important;padding:0!important}
  body.nspr-app-shell #profileApp .profile-grid>.profile-sidebar{padding:18px var(--neta-safe-inline)!important;background:var(--neta-card-bg,rgba(255,255,255,.94))!important}
  body.nspr-app-shell #profileApp .profile-grid>.feed-area{padding:0!important;margin:0!important;background:transparent!important}
  body.nspr-app-shell #profileApp .feed-area :is(.feed-header,.own-compose,.post-card){box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:var(--neta-safe-inline)!important;padding-right:var(--neta-safe-inline)!important}
  body.nspr-app-shell #profileApp .feed-area .post-card :is(.post-media,.post-media-grid,.post-video){width:calc(100% + 2 * var(--neta-safe-inline))!important;max-width:none!important;margin-left:calc(-1 * var(--neta-safe-inline))!important;margin-right:calc(-1 * var(--neta-safe-inline))!important}
  /* Gallery uses bespoke HTML; previous rules left the header 20px inset,
     statistics 20px inset and then another inset on the year panel. */
  body.nspr-app-shell .gallery-page,body.nspr-app-shell .gallery-container{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
  body.nspr-app-shell .gallery-container>:is(.gallery-header,.gallery-stats,.gallery-filter-panel){box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important;padding:18px var(--neta-safe-inline)!important;border-radius:0!important;border-left:0!important;border-right:0!important}
  body.nspr-app-shell .gallery-container .gallery-filter-panel{background:#292929!important;overflow:visible!important}
  body.nspr-app-shell .gallery-container :is(.gallery-year-row,.gallery-filters,.gallery-stats){box-sizing:border-box!important;min-width:0!important;max-width:100%!important}
  body.nspr-app-shell .gallery-container .gallery-filters{padding:12px 0 0!important;gap:9px!important}
  body.nspr-app-shell .gallery-container .filter-btn{box-sizing:border-box!important;min-height:46px!important;padding:12px 14px!important;font-size:15px!important;line-height:1.35!important}
  body.nspr-app-shell .gallery-container .create-album-btn{min-height:50px!important;padding:12px 20px!important;font-size:16px!important}
  body.nspr-app-shell .gallery-container .gallery-grid{width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:0!important;padding:10px!important;gap:10px!important}
  body.nspr-app-shell .gallery-container .gallery-title :is(h1,p){overflow-wrap:anywhere!important}
  body.nspr-app-shell .gallery-container .gallery-year-select{min-height:48px!important;width:100%!important}
  /* Other app templates, consistent full-bleed page sections, not modals. */
  body.nspr-app-shell>.container>:is(.wcf-page-intro,.page-wrapper,.page-content,.content-width,#directoryPage){box-sizing:border-box!important;max-width:100%!important;margin-inline:0!important}
  /* Leave tap targets usable; never strip padding from actual controls. */
  body.nspr-app-shell :is(.neta-feed-links a,.nspr-pueblo-hero-links a,.create-album-btn,.gallery-container .filter-btn){min-height:44px!important}
  /* Consistent primary route headers and return link, language controls. */
  html body.neta-chapters-directory-page .neta-directory-nav .neta-directory-shell{width:100%!important;max-width:100%!important;padding:12px var(--neta-safe-inline)!important;gap:8px!important}
  html body.neta-chapters-directory-page .neta-directory-links{gap:10px 18px!important;width:100%!important;border-top:1px solid #414246!important;padding-top:9px!important}
  html body.neta-chapters-directory-page .neta-directory-links a{min-height:36px!important;padding:3px 0!important;font-size:14px!important}
  html body.neta-chapters-directory-page .neta-directory-shell{width:100%!important;max-width:100%!important;margin:0!important;padding-left:var(--neta-safe-inline)!important;padding-right:var(--neta-safe-inline)!important;box-sizing:border-box!important}
  html body.neta-chapters-directory-page .neta-directory-toolbar{padding-top:13px!important;padding-bottom:13px!important;gap:9px!important}
  html body.neta-chapters-directory-page .neta-directory-intro{padding:25px 0 19px!important}
  html body.neta-chapters-directory-page .neta-directory-search{padding:18px 0 13px!important}
  html body.neta-chapters-directory-page .neta-directory-search input{width:100%!important;max-width:100%!important;min-height:48px!important}
  html body.neta-chapters-directory-page .neta-directory-list{grid-template-columns:1fr!important;gap:0!important}
  html body.neta-chapters-directory-page .neta-directory-list a{min-height:56px!important;padding:15px 4px!important;font-size:17px!important}
  html body.neta-chapters-directory-page .neta-directory-intro :is(h1,p){overflow-wrap:anywhere!important}
  /* Standalone Hub and finance pages with their own templates. */
  html body:has(.nspr-shell) .nspr-shell,html body:has(.nspr-v) .nspr-v,
  html body :is(.ep-wrap,.fr-wrap,.bf-body,.nt-main,.iv-main,.eb-main,.re147){box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important}
  html body .neta-hub-sitebar{padding:12px var(--neta-safe-inline)!important;width:100%!important;margin:0!important}
  html body .neta-hub-sitebar nav{display:flex!important;flex-wrap:wrap!important;gap:8px 18px!important}
  html body .neta-hub-sitebar nav a{padding:6px 0!important;min-height:40px!important}
  html body .nspr-shell .nspr-top{box-sizing:border-box!important;min-height:0!important;padding:13px var(--neta-safe-inline)!important;gap:8px!important;flex-wrap:wrap!important}
  html body .nspr-shell :is(.nspr-back,.neta-compact-return){font-size:16px!important;line-height:1.35!important;min-height:44px!important;display:inline-flex!important;align-items:center!important;padding:9px 0!important}
  html body :is(.nspr-shell,.nspr-v,.ep-wrap,.fr-wrap,.bf-body,.nt-main,.iv-main,.eb-main,.re147) :is(button,input,select,textarea){max-width:100%!important;box-sizing:border-box!important}
  html body :is(.nspr-shell,.nspr-v) :is(.nspr-entry-open,.nspr-dir-btn,.nspr-submit){min-height:48px!important;padding:12px 17px!important}
  html body :is(.nspr-shell,.nspr-v,.fr-wrap,.ep-wrap,.nt-main,.re147) :is(h1,h2,h3,p){overflow-wrap:anywhere!important}
}
@media(max-width:355px){body.nspr-app-shell>.container>.neta-national-feed-intro .neta-feed-links{grid-template-columns:1fr!important}}
@media(max-width:767px){
  html body.neta-chapters-directory-page .neta-directory-search>div{box-sizing:border-box!important;min-width:0!important;width:100%!important}
  html body.neta-chapters-directory-page .neta-directory-search input{width:100%!important}
  body.nspr-app-shell .gallery-container :is(.gallery-stats,.gallery-filter-panel){color:#e6e6e6!important;-webkit-text-fill-color:#e6e6e6!important}
  body.nspr-app-shell .gallery-container :is(.gallery-stats,.gallery-filter-panel) :is(p,small,.stat-item,.gallery-category-label){color:#d1d1d1!important;-webkit-text-fill-color:#d1d1d1!important}
}

/* Directory is its own complete document: give it the same black footer. */
html body.neta-chapters-directory-page .neta-directory-footer{background:#171819!important;color:#eee!important;border-top:2px solid #bda168!important;padding:25px 0!important;font-size:14px!important}
html body.neta-chapters-directory-page .neta-directory-footer .neta-directory-shell{color:#eee!important;padding-left:var(--neta-safe-inline)!important;padding-right:var(--neta-safe-inline)!important}
