/* The section index shares the typography of the article, with a small utility column. */
#all-sections {
    --menu-ink: #17283c;
    --menu-link: #17427e;
    --menu-muted: #516073;
    --menu-rule: #d6dce2;
    --menu-edge: clamp(18px, 3vw, 38px);
    box-sizing: border-box;
    width: min(1140px, calc(100% - 56px));
    max-width: none;
    max-height: min(880px, calc(100dvh - 64px));
    padding: 0;
    margin: auto;
    border: 0;
    border-radius: 4px;
    color: var(--menu-ink);
    background: #fff;
    box-shadow: 0 14px 65px rgb(15 29 45 / 16%);
    overscroll-behavior: contain;
    scroll-padding-top: 88px;
}
#all-sections::backdrop { background: rgb(23 35 48 / 48%); backdrop-filter: none; }
#all-sections .all-sections__top {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 330px) 44px;
    gap: clamp(14px, 2.5vw, 32px);
    align-items: center;
    padding: 16px var(--menu-edge);
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--menu-rule);
    background: #fff;
}
#all-sections-title {
    margin: 0;
    color: var(--menu-ink);
    font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.14 var(--sans, sans-serif);
    letter-spacing: -.035em;
}
#all-sections .all-sections__search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    border-bottom: 1px solid #a3afba;
}
#all-sections .all-sections__search:focus-within { border-color: var(--menu-link); }
#all-sections .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
#all-sections .all-sections__search input,
#all-sections .all-sections__search button {
    min-height: 44px;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font: 400 .91rem/1.4 var(--sans, sans-serif);
}
#all-sections .all-sections__search input {
    padding: 6px 2px;
    flex: 1;
    width: 100%;
    color: var(--menu-ink);
}
#all-sections .all-sections__search input::placeholder { color: var(--menu-muted); opacity: 1; }
#all-sections .all-sections__search button {
    padding: 6px 2px;
    color: var(--menu-link);
    font-weight: 600;
}
#all-sections .sections-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--menu-ink);
    cursor: pointer;
}
#all-sections .sections-close:hover { background: #eff2f5; }
#all-sections .sections-close__mark { position: relative; display: block; width: 20px; height: 20px; color: inherit; }
.sections-close__mark::before,
.sections-close__mark::after {
    content: "";
    position: absolute;
    inset: 9px 0 auto;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
}
.sections-close__mark::after { transform: rotate(-45deg); }
#all-sections :focus-visible { outline: 2px solid var(--menu-link); outline-offset: 2px; }
.sections-index {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(142px, .58fr) minmax(0, 2.6fr);
    gap: clamp(24px, 4vw, 52px);
    padding: 28px var(--menu-edge) 36px;
}
#all-sections .all-sections__resources {
    display: grid;
    align-content: start;
    gap: 0;
    padding: 0;
    margin: 0;
    border: 0;
}
#all-sections .all-sections__resources a {
    display: block;
    min-height: 0;
    padding: 7px 0;
    font-size: .91rem;
    line-height: 1.45;
    color: var(--menu-link);
    text-decoration: none;
}
#all-sections .directory-columns { gap: clamp(16px, 3vw, 36px); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
#all-sections .directory-column > h2 {
    color: var(--menu-muted);
    margin: 0 0 16px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--menu-rule);
    font: 500 .91rem/1.5 var(--sans, sans-serif);
    letter-spacing: 0;
}
#all-sections .directory-groups { gap: 20px; }
#all-sections .directory-group { padding: 0; border: 0; background: transparent; }
#all-sections .directory-group h3 {
    margin: 0;
    font: 600 1.025rem/1.4 var(--sans, sans-serif);
    letter-spacing: -.015em;
}
#all-sections .directory-group h3 a { display: inline-block; padding: 2px 0; color: var(--menu-link); }
#all-sections .directory-links { padding-top: 3px; }
#all-sections .directory-links a {
    padding: 5px 0;
    min-height: 0;
    font: 400 .9rem/1.5 var(--sans, sans-serif);
    color: var(--menu-ink);
}
#all-sections a:hover, #all-sections a:focus-visible, #all-sections .all-sections__search button:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.directory-browser .directory-switcher[hidden] { display: none; }
#topic-dialog .nd-close {
    width: 44px;
    height: 44px;
    padding: 11px;
    color: var(--ink);
    background: transparent;
    border: 0;
    transform: none;
}
#topic-dialog .nd-close:is(:focus-visible, :hover) {
    background: color-mix(in srgb, currentColor 8%, transparent);
}
#topic-dialog .nd-close svg { width: 22px; height: 22px; }
#topic-dialog .nd-topic-dialog__links a {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: 10px 0;
}
#topic-dialog .nd-topic-dialog__links a:is(:focus-visible, :hover) {
    text-decoration: underline;
    text-underline-offset: 3px;
    transform: none;
}
@media (max-width: 920px) {
    .sections-index { display: block; padding-top: 0; }
    #all-sections .all-sections__resources {
        display: flex;
        flex-wrap: wrap;
        gap: 0 18px;
        margin-bottom: 20px;
        padding: 8px 0;
        border-bottom: 1px solid var(--menu-rule);
    }
    #all-sections .directory-columns { gap: 30px; }
}
@media (max-width: 640px) {
    #all-sections {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
        scroll-padding-top: 110px;
    }
    #all-sections .all-sections__top {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 0 8px;
        padding: 5px var(--menu-edge) 10px;
    }
    #all-sections .sections-close { grid-column: 2; grid-row: 1; }
    #all-sections .all-sections__search { grid-column: 1 / -1; grid-row: 2; }
    #all-sections .all-sections__search input { font-size: 1rem; }
    #all-sections .all-sections__resources {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0 12px;
        padding: 8px 0;
        margin-bottom: 12px;
    }
    #all-sections .all-sections__resources a { padding: 9px 0; }
    #all-sections .directory-columns { grid-template-columns: minmax(0, 1fr); }
    #all-sections .directory-switcher { gap: 18px; margin-bottom: 16px; }
    #all-sections .directory-switcher button {
        flex: none;
        padding: 8px 0;
        border: 0;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        background: transparent;
        color: var(--menu-muted);
    }
    #all-sections .directory-switcher button[aria-pressed=true] { color: var(--menu-link); border-bottom-color: currentColor; }
    #all-sections .directory-switcher:not([hidden]) + .directory-columns .directory-column > h2 { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
    #all-sections .directory-group h3 a, #all-sections .directory-links a { padding-block: 8px; }
    .design-11 .mobile-sections-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
    .priority-disclosure { position: relative; width: 12px; height: 12px; flex-shrink: 0; }
    .priority-disclosure::before, .priority-disclosure::after {
        content: "";
        position: absolute;
        inset: 5px 0 auto;
        height: 2px;
        background: currentColor;
    }
    .priority-disclosure::after { transform: rotate(90deg); }
    [open] > summary .priority-disclosure::after { display: none; }
}
@media (forced-colors: active) {
    .sections-close__mark, .priority-disclosure { forced-color-adjust: none; color: ButtonText; }
}
