/* =========================================================
   AS APP · 18F · SUBPÁGINAS · UI COMPARTIDA
   ÚNICO PROPIETARIO DE:
   - chrome compartido de subpáginas
   - reset/base Astra de subpáginas
   - presentación común de subpáginas de cuenta
   ========================================================= */

/* === AS APP · SUBPÁGINAS · CHROME COMPARTIDO === */
html:has(body:is(.as-route-delete-data,.as-route-profile,.as-route-notifications,.as-route-preferences,.as-route-privacy)),
body:is(.as-route-delete-data,.as-route-profile,.as-route-notifications,.as-route-preferences,.as-route-privacy){margin:0!important;background:var(--as-bg)!important;color:var(--as-text)!important;min-height:100%!important;overscroll-behavior-y:none!important}
body:is(.as-route-delete-data,.as-route-profile,.as-route-notifications,.as-route-preferences,.as-route-privacy) :is(#masthead,#colophon,.entry-header,#wpadminbar,#ast-scroll-top,.site-header,.site-footer){display:none!important}
body.as-route-notifications :is(.main-header-bar,.ast-primary-header-bar,.ast-above-header-wrap,.ast-below-header-wrap){display:none!important}
html:has(body:is(.as-route-delete-data,.as-route-profile,.as-route-notifications,.as-route-preferences,.as-route-privacy)){margin-top:0!important}
/* === /AS APP · SUBPÁGINAS · CHROME COMPARTIDO === */

/* === AS APP · SUBPÁGINAS · BASE ASTRA COMPARTIDA === */

body.as-route-delete-data #content .ast-container,
body.as-route-profile #content .ast-container,
body.as-route-notifications #content .ast-container,
body.as-route-preferences #content .ast-container,
body.as-route-privacy #content .ast-container{max-width:none!important;padding:0!important}

body.as-route-delete-data #primary,body.as-route-delete-data .site-main,body.as-route-delete-data .ast-article-single,body.as-route-delete-data .entry-content,
body.as-route-profile #primary,body.as-route-profile .site-main,body.as-route-profile .ast-article-single,body.as-route-profile .entry-content,
body.as-route-notifications #primary,body.as-route-notifications .site-main,body.as-route-notifications .ast-article-single,body.as-route-notifications .entry-content,
body.as-route-preferences #primary,body.as-route-preferences .site-main,body.as-route-preferences .ast-article-single,body.as-route-preferences .entry-content,
body.as-route-privacy #primary,body.as-route-privacy .site-main,body.as-route-privacy .ast-article-single,body.as-route-privacy .entry-content{margin:0!important;padding:0!important;width:100%!important;background:var(--as-bg)!important}

/* === /AS APP · SUBPÁGINAS · BASE ASTRA COMPARTIDA === */

/* === AS APP · SUBPÁGINAS CUENTA · PRESENTACIÓN COMPARTIDA === */
body:is(.as-route-profile,.as-route-preferences,.as-route-privacy) .as-subpage{width:min(100%,var(--as-app-mobile-width));margin:0 auto;box-sizing:border-box;font-family:var(--as-font-ui);color:var(--as-text)}
body:is(.as-route-preferences,.as-route-privacy) .as-subpage{padding:22px var(--as-space-4) 96px}
body:is(.as-route-profile,.as-route-preferences,.as-route-privacy) .as-subpage-back{display:inline-flex;color:var(--as-gold)!important;text-decoration:none!important;font-size:var(--as-size-ui);font-weight:700;margin:var(--as-space-1) 0 22px}
body:is(.as-route-profile,.as-route-preferences,.as-route-privacy) .as-subpage h1{font-family:var(--as-font-title);font-size:36px;line-height:1;margin:0 0 10px;color:var(--as-text);font-weight:500}
body:is(.as-route-profile,.as-route-preferences,.as-route-privacy) .as-subpage-intro{margin:0 0 22px;color:var(--as-text-muted);font-size:var(--as-size-ui);line-height:1.5}
body:is(.as-route-profile,.as-route-preferences,.as-route-privacy) .as-subpage :is(input,select,textarea){background:var(--as-surface-input)!important;color:var(--as-text)!important;border-color:var(--as-border-control)!important}
body:is(.as-route-profile,.as-route-preferences,.as-route-privacy) .as-subpage button[type=submit]{background:var(--as-gold)!important;color:var(--as-text-inverse)!important}
body:is(.as-route-profile,.as-route-preferences,.as-route-privacy) .as-subpage :is(h2,strong){color:var(--as-text)!important}
body:is(.as-route-profile,.as-route-preferences,.as-route-privacy) .as-subpage :is(p,span,label){color:var(--as-text-muted)!important}
body:is(.as-route-profile,.as-route-preferences,.as-route-privacy) .as-subpage :is([style*="background:var(--as-palette-ffffff)"],[style*="background: var(--as-palette-ffffff)"]){background:var(--as-surface-card)!important}
body:is(.as-route-profile,.as-route-preferences,.as-route-privacy) .as-subpage :is([style*="color:var(--as-palette-181818)"],[style*="color: var(--as-palette-181818)"]){color:var(--as-text)!important}
body:is(.as-route-profile,.as-route-preferences,.as-route-privacy) .as-subpage :is([style*="color:var(--as-palette-666666)"],[style*="color: var(--as-palette-666666)"],[style*="color:var(--as-palette-777777)"],[style*="color: var(--as-palette-777777)"]){color:var(--as-text-muted)!important}
/* === /AS APP · SUBPÁGINAS CUENTA · PRESENTACIÓN COMPARTIDA === */

