/* Shared launch-stable identity and navigation; scoped to our components. */
.ag-network-shell{width:100%;max-width:100%;box-sizing:border-box;color:inherit}
.ag-resource-strip{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;gap:12px;width:min(1180px,calc(100% - clamp(40px, 9vw, 120px)));min-height:52px;margin:10px auto 0;padding:10px 0 7px;border-bottom:1px solid rgba(125,150,175,.25);color:inherit}
.ag-resource-copy{font:400 13px/1.5 ui-sans-serif,system-ui,sans-serif;min-width:0;color:inherit;opacity:.86}
.ag-resource-copy strong{font-weight:750;color:inherit}
.ag-resource-cta{font:750 13px/1.4 ui-sans-serif,system-ui,sans-serif;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:34px;white-space:nowrap;padding:7px 10px;border:1px solid rgba(130,155,177,.38);border-radius:9px;text-decoration:none!important;color:inherit!important;background:rgba(130,155,177,.08);flex-shrink:0}
.ag-resource-cta:hover,.ag-resource-cta:focus-visible{background:rgba(130,155,177,.17)}
.ag-network{box-sizing:border-box;display:block;padding:14px 0 22px;margin:0;border:0;color:inherit;max-width:100%}
.ag-network-inner{width:min(1180px,calc(100% - clamp(40px, 9vw, 120px)));margin:0 auto}
.ag-network-head{display:flex;justify-content:space-between;align-items:baseline;gap:14px;margin:0 0 15px}
.ag-network-head strong{font:800 16px/1.4 ui-sans-serif,system-ui,sans-serif;color:inherit}
.ag-network-head>a{font:650 13px/1.5 ui-sans-serif,system-ui,sans-serif;color:inherit;text-decoration:underline;text-underline-offset:3px;opacity:.9}
.ag-network-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:100%}
.ag-network .ag-network-card{box-sizing:border-box;display:grid!important;grid-template-columns:42px minmax(0,1fr) 15px;grid-template-rows:auto;align-items:center;gap:12px;min-width:0;width:100%;min-height:62px;padding:9px!important;border:1px solid rgba(128,150,168,.34);border-radius:13px;color:inherit!important;background:rgba(129,156,177,.055);text-decoration:none!important;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.ag-network .ag-network-card:hover,.ag-network .ag-network-card:focus-visible{transform:translateY(-2px);border-color:rgba(102,145,185,.85);background:rgba(130,155,177,.12)}
.ag-network .ag-network-logo{display:block!important;width:42px!important;height:42px!important;min-width:42px;max-width:42px;max-height:42px;aspect-ratio:1;border-radius:10px;overflow:visible}
.ag-network .ag-network-card-label{display:block!important;min-width:0!important;width:auto!important;max-width:100%;margin:0!important;padding:0!important;font:750 14px/1.35 ui-sans-serif,system-ui,sans-serif!important;color:inherit!important;white-space:normal!important;overflow-wrap:anywhere;text-align:left!important}
.ag-network .ag-network-arrow{display:block!important;margin:0!important;opacity:.6;font:500 14px/1.4 ui-sans-serif,system-ui,sans-serif}
.ag-network-generic{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:#244c73;color:white;font-weight:800;font-size:12px}
.tool-icon:has(.ag-card-brand){overflow:hidden;background:transparent!important;box-shadow:none!important}
.tool-icon .ag-card-brand{display:block;width:100%!important;height:100%!important;max-width:none;object-fit:contain}
.brand-mark:has(>.ag-site-brand){display:inline-flex!important;align-items:center!important;justify-content:center!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important;padding:0!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;font-size:0!important;line-height:0!important;overflow:hidden!important}
.brand-mark:has(>.ag-site-brand)::before,.brand-mark:has(>.ag-site-brand)::after{content:none!important;display:none!important}
.brand-mark .ag-site-brand{display:block!important;width:40px!important;height:40px!important;max-width:40px!important;object-fit:contain!important;border-radius:10px!important;box-shadow:none!important}
@media(max-width:1100px){.ag-network-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.ag-resource-cta{width:100%}.ag-network-head{align-items:flex-start;flex-direction:column;gap:6px}.ag-network-grid{gap:9px}.ag-network .ag-network-card{min-height:72px;grid-template-columns:36px minmax(0,1fr);padding:10px!important;gap:9px}.ag-network .ag-network-logo{width:36px!important;height:36px!important;min-width:36px}.ag-network .ag-network-card-label{font-size:13px!important}.ag-network .ag-network-arrow{display:none!important}}
@media(max-width:350px){.ag-network-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.ag-network .ag-network-card{transition:none!important}.ag-network .ag-network-card:hover{transform:none}}

@media(max-width:640px){.ag-resource-strip{align-items:flex-start;flex-direction:column;gap:5px;min-height:0;padding:10px 0}.ag-resource-copy span{display:none}.ag-resource-cta{padding:5px 9px;min-height:32px}.ag-network{padding-top:12px}}

/* Footer/heading safety: keep every label inside the same restrained content width. */
.ag-network-shell, .ag-network-shell *{box-sizing:border-box}
.ag-network-shell .ag-resource-strip{max-width:1180px;overflow-wrap:anywhere}
.ag-network-shell .ag-resource-strip strong{display:inline;line-height:1.5}
.ag-network-shell .ag-network-head, .ag-network-shell .ag-resource-copy{min-width:0}
.ag-network-shell .ag-network-card-label{line-height:1.35!important}
.ag-network-shell .ag-network-card svg.ag-network-logo{flex:0 0 42px!important;width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important}
@media(max-width:640px){.ag-network-shell .ag-network-card svg.ag-network-logo{flex-basis:36px!important;width:36px!important;height:36px!important;max-width:36px!important;max-height:36px!important}}

/* Lighthouse accessibility repair, based on actual failing DOM nodes.
   Restrict by composed suite and theme: retain original colors and dark-mode
   accessibility for all other elements. WCAG normal-text target >= 4.5:1. */
html[data-ag-suite="health"]:not([data-theme="dark"]) .site-main .eyebrow,
html[data-ag-suite="health"]:not([data-theme="dark"]) .site-main .tool-card .go
  {color:#075c47!important}
html[data-ag-suite="health"]:not([data-theme="dark"]) .site-main .btn:not(.secondary),
html[data-ag-suite="health"]:not([data-theme="dark"]) .site-main [data-health-search-submit]
  {background:#08724d!important;color:#fff!important}
html[data-ag-suite="health"]:not([data-theme="dark"]) .site-main .btn:not(.secondary):hover,
html[data-ag-suite="health"]:not([data-theme="dark"]) .site-main [data-health-search-submit]:hover
  {background:#075c47!important}
html[data-ag-suite="everyday"]:not([data-theme="dark"]) .category-card .tool-icon
  {color:#08724d!important}
html[data-ag-suite="everyday"]:not([data-theme="dark"]) main .cta-band .btn-primary
  {background:#086d50!important;color:#fff!important;border-color:#086d50!important}
html[data-ag-suite="files"]:not([data-theme="dark"]) .network-return a
  {color:#394e6b!important;opacity:1!important}
html[data-ag-suite="files"][data-theme="dark"] .network-return a
  {color:#deebff!important}
html[data-ag-suite="creator"] .ag-network-head>a
  {color:var(--text)!important;opacity:1!important;text-decoration:underline!important;font-weight:750!important}

/* At 390px the Health source header kept five 40px controls plus a full brand
   (452px intrinsic width). Favorites is ALREADY linked in the mobile drawer,
   so free its header space; retain Search, Language, Theme and Menu. */
@media(max-width:650px){
  html[data-ag-suite="health"] .header-row{gap:5px;min-width:0}
  html[data-ag-suite="health"] .header-actions{gap:5px;min-width:0;flex:0 0 auto}
  html[data-ag-suite="health"] .header-actions>a.icon-btn[href*="/favorites/"]{display:none!important}
  html[data-ag-suite="health"] .header-actions .icon-btn{width:36px;height:36px;min-width:36px}
  html[data-ag-suite="health"] .header-row .brand{gap:6px;min-width:0}
  html[data-ag-suite="health"] .header-row .brand>span:last-child{font-size:.84rem;overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:370px){
  html[data-ag-suite="health"] .header-row .brand>span:last-child{font-size:.75rem}
  html[data-ag-suite="health"] .header-actions .icon-btn{width:32px;height:32px;min-width:32px}
  html[data-ag-suite="health"] .header-actions{gap:3px}
}

/* RESTORED EDITORIAL RESOURCES FEATURE — constrained, readable and
   padded inside the same container as the footer's tool cards. */
.ag-network-shell .ag-resource-feature{
  box-sizing:border-box;
  display:block;
  width:min(1180px,calc(100% - clamp(40px,9vw,120px)));
  max-width:1180px;
  margin:20px auto 16px;
  padding:clamp(20px,2.7vw,32px);
  border:1px solid rgba(128,150,168,.34);
  border-radius:16px;
  background:rgba(130,155,177,.07);
  color:inherit;
}
.ag-network-shell .ag-resource-feature .ag-resource-copy{display:block;width:100%;max-width:760px;opacity:1;min-width:0}
.ag-network-shell .ag-resource-feature .ag-resource-eyebrow{
  display:block;margin:0 0 9px;color:inherit;opacity:.84;
  font:750 11px/1.5 ui-sans-serif,system-ui,sans-serif;
  letter-spacing:.105em;
}
.ag-network-shell .ag-resource-feature h2{
  font:800 clamp(20px,2.2vw,26px)/1.24 ui-sans-serif,system-ui,sans-serif!important;
  letter-spacing:-.025em;margin:0 0 10px!important;padding:0!important;
  color:inherit!important;overflow-wrap:normal;
}
.ag-network-shell .ag-resource-feature p{
  font:400 14px/1.6 ui-sans-serif,system-ui,sans-serif!important;
  margin:0!important;padding:0!important;color:inherit!important;opacity:.87;
  max-width:680px;
}
.ag-network-shell .ag-resource-feature .ag-resource-cta{
  display:inline-flex!important;align-items:center;gap:10px;
  margin:16px 0 0;padding:10px 15px;
  min-height:40px;
  border:1px solid rgba(128,150,168,.45);
  background:rgba(130,155,177,.12);
  color:inherit!important;
  border-radius:10px;font:750 13px/1.4 ui-sans-serif,system-ui,sans-serif!important;
  text-decoration:none!important;
}
.ag-network-shell .ag-resource-feature .ag-resource-cta:hover,
.ag-network-shell .ag-resource-feature .ag-resource-cta:focus-visible{
  background:rgba(130,155,177,.23);
}
@media(max-width:640px){
  .ag-network-shell .ag-resource-feature{margin:15px auto;padding:19px}
  .ag-network-shell .ag-resource-feature h2{font-size:21px!important}
  .ag-network-shell .ag-resource-feature .ag-resource-cta{width:auto!important;min-height:40px}
}
/* Keep the native Health footer's separate category/company links readable.
   In its source each anchor is an inline element, so words concatenated. */
html[data-ag-suite="health"] footer.footer .footer-grid{
  grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr));
  gap:clamp(16px,2.8vw,32px);
}
html[data-ag-suite="health"] footer.footer .footer-grid>div{min-width:0}
html[data-ag-suite="health"] footer.footer .footer-grid>div>strong{
  display:block;margin-bottom:10px;font-weight:800;line-height:1.5
}
html[data-ag-suite="health"] footer.footer .footer-grid>div>a{
  display:block!important;
  width:fit-content;
  max-width:100%;
  margin:0 0 8px;
  line-height:1.5!important;
  overflow-wrap:anywhere;
  text-decoration:none;
}
html[data-ag-suite="health"] footer.footer .footer-grid>div>a:hover,
html[data-ag-suite="health"] footer.footer .footer-grid>div>a:focus-visible{
  text-decoration:underline;text-underline-offset:3px
}
@media(max-width:1000px){
  html[data-ag-suite="health"] footer.footer .footer-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}
@media(max-width:650px){
  html[data-ag-suite="health"] footer.footer .footer-grid{
    grid-template-columns:1fr;gap:22px
  }
}
/* Match the hero illustration to the header/installation Heart + Care identity. */
html[data-ag-suite="health"] .hero-orb.ag-health-hero-brand{
  display:grid;place-items:center;
  background:linear-gradient(140deg,#5fe4cc,#22c4a5)!important;
}
html[data-ag-suite="health"] .hero-orb.ag-health-hero-brand .ag-health-hero-icon{
  display:block;width:70%!important;height:70%!important;max-width:70%;
  overflow:visible;
}

/* Financial's compact header has three fixed-width action groups. At the
   390px mobile test viewport, the browser's 15px scrollbar leaves 375px;
   reduce only the inter-control gaps so the native navigation stays inside. */
@media(max-width:650px){
  html[data-ag-suite="finance"] .header-actions{gap:3px}
}
