/* Shared Static Articles family navigation. No-JS fallback displays every link. */
.article-navigation {
    position: relative;
    min-width: 0;
    margin-top: .5rem;
    z-index: 5;
}
.page-section-header .article-navigation > .header-tabs {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .75rem;
    overflow: visible;
    white-space: normal;
    transform: none;
    margin: 0;
    padding: 0 0 .375em;
}
.article-navigation .header-tabs li {
    margin: 0;
    padding: 0;
    min-width: 0;
}
.article-navigation .header-tabs > .article-navigation__item {
    flex: 0 1 auto;
}
.article-navigation .header-tabs a {
    position: relative;
    white-space: normal;
    overflow-wrap: anywhere;
    min-height: 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}
.article-navigation .header-tabs > .article-navigation__more {
    /* Anchor the popup to the full navigation, not the narrow trigger item. */
    position: static;
    flex: 0 0 auto;
    margin-left: auto !important;
}
.article-navigation .header-tabs > li > a,
.article-navigation .header-tabs > li > button {
    box-sizing: border-box;
    min-height: 44px;
    margin: 0;
    padding: .5em 0;
    font: inherit;
    line-height: 1.25;
    display: flex;
    align-items: center;
}
.article-navigation .article-navigation__more > button {
    position: relative;
    justify-content: center;
    gap: .4em;
    min-width: 6rem;
    font: inherit;
    color: rgba(255,255,255,.85);
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: .5em 0;
    min-height: 44px;
    cursor: pointer;
    white-space: nowrap;
}
.article-navigation__more.has-current > button,
.article-navigation__more > button[aria-expanded="true"] {
    color: #fff;
}
.article-navigation__more > button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: .2em;
    background: rgba(255,255,255,.85);
    opacity: 0;
}
.article-navigation__more.has-current > button::after,
.article-navigation__more > button[aria-expanded="true"]::after {
    opacity: 1;
}
.article-navigation a:focus-visible,
.article-navigation button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
#uni .article-navigation .article-navigation__menu {
    position: absolute;
    top: calc(100% - .75rem);
    right: 0;
    z-index: 10;
    box-sizing: border-box;
    width: max-content;
    min-width: min(18rem, 100%);
    max-width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    margin: 0;
    padding: .5rem;
    background: #fff;
    border-radius: .25rem;
    box-shadow: 0 .5rem 1.5rem rgba(80,52,26,.26), 0 .125rem .375rem rgba(0,0,0,.12);
    text-align: left;
}
#uni .article-navigation__menu li {
    display: block;
}
#uni .article-navigation__menu a {
    display: block;
    padding: .75rem;
    color: #846227;
    line-height: 1.5;
}
#uni .article-navigation__menu a::after { content: none; }
#uni .article-navigation__menu a.current-option {
    color: #846227;
    background: #f7f3eb;
    border-radius: 2px;
}
.article-navigation [hidden] { display: none !important; }

/* Visible tabs: current page uses an underline, independently of the dropdown. */
.article-navigation .header-tabs > .article-navigation__item > a {
    padding-inline: .625rem;
    border-radius: .375rem;
    transition: background-color .2s ease, color .2s ease;
}
.article-navigation .header-tabs > .article-navigation__item > a::after {
    content: none;
}
.article-navigation .header-tabs > .article-navigation__item > a.current-option {
    background: transparent;
    color: #fff;
}
.article-navigation .header-tabs > .article-navigation__item > a:hover,
.article-navigation .header-tabs > .article-navigation__item > a:focus-visible {
    color: #fff;
}
#uni .article-navigation__menu .article-navigation__item > a {
    border-radius: 2px;
    transition: background-color .2s ease, color .2s ease;
}
#uni .article-navigation__menu .article-navigation__item > a:hover,
#uni .article-navigation__menu .article-navigation__item > a:focus-visible {
    color: #49320d;
}
@media (prefers-reduced-motion: reduce) {
    .article-navigation .article-navigation__item > a { transition: none; }
}

/* Center the label and mega-menu chevron together as one group. */
.article-navigation .article-navigation__more > button {
    padding-inline: .75rem;
    justify-content: center;
    gap: .65rem;
}
.article-navigation .article-navigation__more > button::before {
    content: '';
    position: relative;
    order: 1;
    flex: 0 0 12px;
    top: -3px;
    width: 12px;
    height: 12px;
    background: none;
    border-left: 1.5px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform-origin: center;
    transform: rotate(-90deg) scaleX(.7) rotate(45deg);
    pointer-events: none;
}
.article-navigation .article-navigation__more > button[aria-expanded="true"]::before {
    top: 3px;
    transform: rotate(90deg) scaleX(.7) rotate(45deg);
}

.article-navigation .header-tabs > .article-navigation__item > a.current-option {
    border-radius: 2px;
}

.article-navigation .header-tabs .article-navigation__item > a,
.article-navigation .header-tabs > .article-navigation__more > button {
    font-weight: 700;
}

/* Mark the current page with the original thick underline. */
.article-navigation .header-tabs > .article-navigation__item > a.current-option::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: .2em;
    background: currentColor;
    opacity: 1;
}

/* Subtle separators only between dropdown entries. */
#uni .article-navigation__menu > .article-navigation__item + .article-navigation__item {
    border-top: 1px solid rgba(132, 98, 39, .18);
}
