html:has(> body.hcc007, > body.hcc008) { font-size: 100%; }

.reading-masthead { position: relative; z-index: 5; }
.reading-masthead-inner {
    position: relative;
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .5rem 1rem;
}
.reading-masthead .reading-brand { min-width: 0; margin: 0; color: inherit; overflow-wrap: anywhere; }
.reading-masthead .reading-brand a { color: inherit; font: inherit; text-decoration: none; }
.reading-masthead .reading-brand img { display: block; width: auto; height: auto; max-width: min(100%, 10rem); max-height: 3rem; object-fit: contain; }
.reading-masthead nav ul { list-style: none; margin: 0; padding: 0; }
.reading-masthead nav > ul { display: flex; align-items: center; flex-wrap: wrap; gap: 0 1rem; }
.reading-masthead :is(nav a, summary, .reading-search-link) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: .875rem;
    font-weight: 650;
    color: inherit;
    overflow-wrap: anywhere;
}
.reading-masthead :is(nav a, .reading-search-link):hover { text-decoration: underline; text-underline-offset: .17em; }
.reading-masthead summary { cursor: pointer; }
.reading-masthead summary::after {
    content: "";
    width: .37em;
    height: .37em;
    margin-inline-start: .5em;
    border-block-end: 1px solid;
    border-inline-end: 1px solid;
    transform: rotate(45deg);
}
.reading-masthead details[open] > summary::after { transform: rotate(225deg); }
.reading-masthead .reading-languages { position: relative; }
.reading-masthead .reading-desktop-nav { display: none; }

.reading-masthead .reading-mobile-nav > nav,
.reading-masthead .reading-desktop-nav .reading-languages ul {
    position: absolute;
    inset-block-start: 100%;
    padding: .45rem .75rem;
    background: var(--edition-nav-paper);
    color: var(--edition-nav-ink);
    border: 1px solid var(--edition-rule);
    box-shadow: 0 8px 15px #14132924;
}

.reading-masthead .reading-mobile-nav > nav { inset-inline: 0; max-height: 65vh; overflow: auto; }
.reading-masthead .reading-mobile-nav :is(nav > ul, nav ul ul) { display: grid; }
.reading-masthead .reading-mobile-nav nav > ul > li + li { border-block-start: 1px solid var(--edition-rule); }
.reading-masthead .reading-mobile-nav nav ul ul { padding-inline-start: .9rem; }
.reading-masthead :is(a, summary):focus-visible { outline-color: currentColor; }

@media (min-width: 900px) {
    .reading-masthead-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr) auto; }
    .reading-masthead .reading-desktop-nav { display: block; }
    .reading-masthead .reading-mobile-nav { display: none; }
    .reading-masthead .reading-desktop-nav .reading-languages ul {
        inset-inline-end: 0;
        width: max-content;
        max-width: 16rem;
        padding: .45rem .75rem;
    }
}
