/*
 * Sustainability & Impact (inc/impact-section.php): the bar across the section's pages, a report's
 * contents list, the reports on the hub and the stories. Greens come from tokens.css; every pairing
 * here is navy or white on a tint that passes WCAG 2.2 AA.
 */

.bh-impact-nav {
    margin: 0 0 1.5rem;
    border-bottom: 1px solid var(--bh-line);
}

.bh-impact-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bh-impact-nav a {
    display: inline-block;
    padding: 0.75rem 0;
    border-bottom: 3px solid transparent;
    color: var(--bh-navy);
    font-size: var(--bh-text-xs);
    font-weight: var(--bh-weight-semibold);
    text-decoration: none;
}

.bh-impact-nav a:hover,
.bh-impact-nav a:focus-visible {
    border-bottom-color: var(--bh-green);
}

.bh-impact-nav a[aria-current="page"] {
    border-bottom-color: var(--bh-green);
    color: var(--bh-green);
}

.bh-impact-nav__back a::before {
    content: "\2190\00a0";
}

.bh-impact-toc {
    margin: 0 0 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem;
    background: var(--bh-green-mint);
    color: var(--bh-navy);
}

.bh-impact-toc summary {
    cursor: pointer;
    font-size: var(--bh-text-md);
    font-weight: var(--bh-weight-bold);
}

.bh-impact-toc ol {
    margin-top: 0.75rem;
}

.bh-impact-toc ol {
    display: grid;
    gap: 0.25rem 2rem;
    margin: 0;
    padding-left: 1.25rem;
    font-size: var(--bh-text-xs);
}

.bh-impact-toc a {
    color: var(--bh-green);
    font-weight: var(--bh-weight-semibold);
}

@media (min-width: 768px) {
    .bh-impact-toc ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .bh-impact-toc ol {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Anchors clear the fixed header. */
[data-toc],
.susx-section[id] {
    scroll-margin-top: 7rem;
}

.bh-impact-reports {
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .bh-impact-reports {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.bh-impact-reports__item {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--bh-line);
    border-radius: 0.5rem;
    background: var(--bh-white);
    color: var(--bh-navy);
}

.bh-impact-reports__item h3 {
    margin: 0 0 0.5rem;
    font-size: var(--bh-text-lg);
}

.bh-impact-reports__item h3 a {
    color: inherit;
    text-decoration: none;
}

.bh-impact-reports__link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--bh-green);
    font-weight: var(--bh-weight-bold);
}

.bh-impact-stories {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

/* Part 2's opening heading is an H2 inside the one report, not a second H1. It keeps the design's
   size and weight and gets a line height two lines can sit in. */
.bh-impact-pt2-copy h2 {
    max-width: 860px;
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

/* Inside a half-width panel the reports stack. */
.susx-panel .bh-impact-reports {
    grid-template-columns: minmax(0, 1fr);
}
