/*
 * Summary of Contents – front-end presentation.
 * Loaded only on single posts where the feature is enabled and has entries.
 */
.trde-summary-of-contents {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 20px;
    background: #dfe0e8;
    color: #231f20;
}

.trde-summary-of-contents,
.trde-summary-of-contents * {
    box-sizing: border-box;
}

.trde-summary-of-contents__title {
    margin: 0 0 32px;
    padding: 0;
    color: #00076c;
    font-family: "Bebas Neue", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.trde-summary-of-contents__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.trde-summary-of-contents__item,
.trde-summary-of-contents__item + .trde-summary-of-contents__item {
    margin: 0;
    padding: 0;
}

.trde-summary-of-contents__item > a {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 4px;
    align-items: start;
    margin: 0;
    padding: 0;
    color: #231f20;
    font-family: "Bebas Neue", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
}

.trde-summary-of-contents__item > a:hover,
.trde-summary-of-contents__item > a:focus-visible {
    color: #00076c;
    text-decoration: none;
}

.trde-summary-of-contents__item > a:focus-visible {
    outline: 2px solid #00076c;
    outline-offset: 3px;
}

.trde-summary-of-contents__number {
    min-width: 0;
    color: inherit;
    font: inherit;
    font-variant-numeric: tabular-nums;
}

.trde-summary-of-contents__text {
    min-width: 0;
    color: inherit;
    font: inherit;
}

/* Leave room for the site header when a Summary anchor is opened. */
[id^="summary-"] {
    scroll-margin-top: 96px;
}
