:root{--resources-navigation-height:164px}
html{scroll-padding-top:calc(var(--resources-navigation-height) + 20px)}
.resources-navigation{position:sticky;top:0;z-index:60}
.resources-navigation header{position:relative;top:auto;z-index:2}
.resources-subnav{position:relative;background:#000;color:#edf5f1;border-top:1px solid rgba(0,241,251,.32);border-bottom:1px solid #444}
.resources-subnav-inner{max-width:1380px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 48px;font-size:14px;line-height:1.4;white-space:nowrap}
.resources-subnav a,.resources-more{display:inline-flex;align-items:center;min-height:44px;padding:10px 5px;border:0;border-radius:2px;font-weight:400}
.resources-subnav a:hover{background:#222;color:#fff}
.resources-subnav a[aria-current="page"]{text-decoration:underline;text-underline-offset:.25em}
.resources-desktop{display:flex;align-items:center;gap:24px}
.resources-subnav .resource-avi{background:#222;color:#fff;padding:8px 22px;gap:12px}
.resources-subnav .resource-avi:hover{background:#333;color:#fff}
.resources-more{display:none;background:transparent;color:inherit;gap:8px;flex-shrink:0}
#resources-overflow[hidden]{display:none}
#resources-overflow{position:absolute;right:16px;top:100%;display:flex;flex-direction:column;gap:8px;padding:16px;min-width:245px;background:#000;border:1px solid #444;box-shadow:0 12px 25px #07171930}
#resources-overflow a{font-size:15px;padding:12px}
.resources-subnav a:focus-visible,.resources-more:focus-visible{outline:3px solid var(--turq);outline-offset:-3px}
@media(max-width:1100px){.resources-subnav-inner{padding:0 24px;gap:16px;justify-content:flex-start;overflow-x:auto;scrollbar-width:thin}.resources-desktop{display:none}.resources-more{display:inline-flex}.resources-subnav-inner>a{flex-shrink:0}}
@media(max-width:600px){.resources-subnav-inner{padding:0 12px;gap:16px;font-size:14px}.resources-more{position:sticky;right:-12px;background:#000;padding:10px 12px;box-shadow:-8px 0 10px #000}}
@media(min-width:1101px){#resources-overflow{display:none}}

/* Consistent submenu rhythm: one spacing rule across the desktop links. */
@media(min-width:1101px){
.resources-subnav-inner{justify-content:center;gap:clamp(20px,2.4vw,34px);padding:0 32px}
.resources-desktop{display:contents}
.resources-subnav-inner a{flex:0 0 auto;padding:10px 4px}
.resources-subnav-inner .resource-avi{padding:8px 16px}
}
@media(max-width:1100px){.resources-subnav-inner{gap:20px;justify-content:flex-start}.resources-subnav-inner>a{padding-inline:4px}}
.resource-label-short { display: none; }

@media (max-width: 600px) {
  .resources-subnav-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 0 4px;
    overflow: visible;
  }
  .resources-subnav-inner > a, .resources-more {
    justify-content: center;
    min-height: 44px;
    padding: 6px 2px;
    text-align: center;
  }
  .resources-desktop { display: none; }
  .resources-more { position: static; gap: 4px; box-shadow: none; }
  .resource-label-full { display: none; }
  .resource-label-short { display: inline; }
  #resources-overflow { right: 8px; max-width: calc(100vw - 16px); }
}

/* Match the original Services submenu type size at every viewport. */
.resources-subnav-inner,.resources-subnav a,.resources-more,#resources-overflow a{font-size:12px;line-height:1.4}

.resources-subnav .resource-avi{gap:8px}.avi-chat-icon{display:block;flex:0 0 18px;width:18px;height:18px}
