.masthead {
    background: #fff;
    box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(23, 23, 74, 0.05);
    position: relative;
    z-index: 90;
}

.masthead__bar {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 78px;
}

.masthead__brand-mark a {
    display: flex;
    align-items: center;
    color: var(--ink);
    font-weight: 700;
    font-size: 22px;
}

.masthead__brand-mark img {
    max-height: 54px;
    width: auto;
}

.masthead__mainnav {
    flex: 1;
}

.toplane {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.toplane > li {
    position: relative;
}

.toplane > li > a {
    display: inline-block;
    padding: 26px 14px;
    color: var(--ink);
    font-weight: 500;
    font-size: 15.5px;
}

.toplane > li > a:hover {
    color: var(--accent-deep);
    text-decoration: none;
}

.toplane > li.current-menu-item > a,
.toplane > li.current-menu-ancestor > a {
    color: var(--accent-deep);
}

.toplane > li > .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    display: flex;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 26px 32px;
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 18px 34px rgba(23, 23, 74, 0.16);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 95;
}

.toplane > li:hover > .sub-menu,
.toplane > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toplane > li > .sub-menu > li {
    min-width: 210px;
}

.toplane > li > .sub-menu > li > a {
    display: block;
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    white-space: nowrap;
}

.toplane .sub-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}

.toplane .sub-menu .sub-menu li {
    margin: 0 0 8px;
}

.toplane .sub-menu .sub-menu a {
    color: var(--ink);
    font-size: 14px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.toplane .sub-menu .sub-menu a::before {
    content: "\203A";
    color: var(--accent);
    font-weight: 700;
}

.toplane .sub-menu .sub-menu a:hover {
    color: var(--accent-deep);
    text-decoration: none;
}

.masthead__utility {
    display: flex;
    align-items: center;
    gap: 14px;
}

.masthead-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.masthead-actions a,
.masthead-actions button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font: inherit;
    font-weight: 500;
    font-size: 15px;
    background: none;
    border: 0;
    cursor: pointer;
}

.masthead-actions a:hover,
.masthead-actions button:hover {
    color: var(--accent-deep);
    text-decoration: none;
}

.masthead__socials a {
    color: var(--ink);
}

.masthead__drawer {
    position: relative;
}

.masthead__drawer-toggle {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 10px;
}

.masthead__drawer-toggle::-webkit-details-marker {
    display: none;
}

.masthead__burger {
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    position: relative;
}

.masthead__burger::before,
.masthead__burger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--ink);
}

.masthead__burger::before {
    top: -7px;
}

.masthead__burger::after {
    top: 7px;
}

.masthead__drawer[open] .masthead__drawer-scrim {
    position: fixed;
    inset: 0;
    background: rgba(23, 23, 74, 0.45);
    border: 0;
    z-index: 96;
}

.masthead__drawer-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(340px, 88vw);
    background: #fff;
    z-index: 97;
    padding: 24px;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.drawer-nav__list,
.drawer-meta__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer-nav__list > li {
    border-bottom: 1px solid var(--line);
}

.drawer-nav__list a {
    display: block;
    padding: 13px 4px;
    color: var(--ink);
    font-weight: 500;
}

.drawer-nav__list .sub-menu {
    list-style: none;
    margin: 0 0 10px;
    padding: 0 0 0 14px;
}

.drawer-nav__list .sub-menu a {
    font-weight: 400;
    font-size: 14.5px;
    padding: 7px 4px;
    color: var(--text);
}

.drawer-meta__list a {
    display: block;
    padding: 7px 4px;
    font-size: 14px;
    color: var(--muted);
}

.foot-deck {
    background: var(--ink);
    color: #d8d8ea;
    margin-top: 70px;
    padding: 54px 0 40px;
}

.foot-deck__body {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}

.foot-deck__brand a {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
}

.foot-deck__brand img {
    max-height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.foot-deck__copy {
    font-size: 14px;
    color: #b9b9d4;
    margin-top: 12px;
}

.foot-deck__column-title {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 14px;
}

.foot-deck__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.foot-deck__menu li {
    margin-bottom: 9px;
}

.foot-deck__menu a {
    color: #c9c9e0;
    font-size: 14px;
}

.foot-deck__menu a:hover {
    color: #fff;
}

.masthead-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
}

.masthead-action svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.masthead-action:hover {
    color: var(--accent-deep);
    text-decoration: none;
}

@media (min-width: 761px) {
    .masthead__drawer {
        display: none;
    }
}

.masthead__find {
    position: relative;
}

.masthead__find-toggle {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--ink);
}

.masthead__find-toggle::-webkit-details-marker {
    display: none;
}

.masthead__find-toggle:hover {
    background: var(--tint);
}

.masthead__find-toggle svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.masthead__find[open] .masthead__find-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(360px, 86vw);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 18px 34px rgba(23, 23, 74, 0.18);
    padding: 16px;
    z-index: 96;
}

.news-band {
    background: var(--tint);
    margin-top: 70px;
    padding: 44px 0;
}

.news-band + .foot-deck {
    margin-top: 0;
}

.news-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.news-band__kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin: 0 0 6px;
}

.news-band__title {
    margin: 0;
    font-size: 24px;
    color: var(--ink);
    text-wrap: balance;
}

.news-band__form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    max-width: 520px;
}

.news-band__field {
    flex: 1;
    min-width: 220px;
    padding: 13px 20px;
    border: 1px solid rgba(23, 23, 74, 0.15);
    border-radius: 999px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
}

.news-band__field:focus {
    outline: 2px solid var(--accent);
    border-color: var(--accent);
}
