/* Sustainable Development pages (Strategy, Commitment): section tabs, goal cards, the delivery flow, UN goals and
   commitment rows. Loaded after feature-pages.css, whose op-* section styles these pages share. */

/* Section tabs: the section's pages, on pages that have no sidebar */
.section-tabs {
    background: #fff;
    border-bottom: 1px solid var(--ssc-line);
    box-shadow: 0 6px 16px rgba(7, 72, 48, .04);
}

.section-tabs ul {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

.section-tabs ul::-webkit-scrollbar {
    display: none;
}

.section-tabs li {
    flex: 0 0 auto;
    margin: 0;
}

.section-tabs a {
    position: relative;
    min-height: 58px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    color: var(--ssc-muted) !important;
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s ease;
}

.section-tabs a::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 3px;
    background: transparent;
    border-radius: 3px 3px 0 0;
    transition: background-color .2s ease;
}

.section-tabs a:hover {
    color: var(--ssc-green-900) !important;
}

.section-tabs a[aria-current="page"] {
    color: var(--ssc-green-950) !important;
}

.section-tabs a[aria-current="page"]::after {
    background: var(--ssc-green-600);
}

.section-tabs a:focus-visible {
    outline: 3px solid rgba(32, 170, 104, .45);
    outline-offset: -3px;
}

/* Intro photos are landscape banners and field shots: shown at a steady 4:3 */
.sd-page .op-intro__media img {
    aspect-ratio: 4 / 3;
}

/* The three goals */
.sd-page .sd-goals {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    list-style: none;
}

.sd-page .sd-goal {
    position: relative;
    margin: 0;
    padding: 30px 26px 28px;
    background: #fff;
    border: 1px solid var(--ssc-line);
    border-top: 4px solid var(--ssc-green-600);
    box-shadow: var(--ssc-shadow);
}

.sd-page .sd-goal--economy { border-top-color: #d99a1e; }
.sd-page .sd-goal--society { border-top-color: #e0603a; }
.sd-page .sd-goal--economy .op-icon { color: #a8700f; background: #fbf1dc; }
.sd-page .sd-goal--society .op-icon { color: #bf4c26; background: #fbe8e0; }

.sd-page .sd-goal__num {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #e3ece6;
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
}

.sd-page .sd-goal h3 {
    margin: 18px 0 8px;
    color: var(--ssc-green-950);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.sd-page .sd-goal > p {
    margin: 0 0 18px;
    color: var(--ssc-muted);
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
}

.sd-page .sd-goal .op-checks,
.sd-page .sd-commit .op-checks {
    margin: 0;
}

.sd-page .sd-goal .op-checks li,
.sd-page .sd-commit .op-checks li {
    color: var(--ssc-ink);
    font-size: 15px;
    font-weight: 400;
}

/* How we deliver: from the Board to every department */
.sd-page .sd-quote {
    max-width: 880px;
    margin: 0 0 18px;
    padding: 4px 0 4px 22px;
    color: var(--ssc-green-950);
    border-left: 4px solid var(--ssc-lime);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.5;
}

.sd-page .sd-flow {
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    list-style: none;
    counter-reset: flow;
}

.sd-page .sd-flow li {
    position: relative;
    margin: 0;
    padding: 24px 22px;
    background: #fff;
    border: 1px solid var(--ssc-line);
    counter-increment: flow;
}

.sd-page .sd-flow li::before {
    content: counter(flow, decimal-leading-zero);
    margin-bottom: 12px;
    display: block;
    color: var(--ssc-green-600);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
}

.sd-page .sd-flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -17px;
    width: 11px;
    height: 11px;
    border-top: 2px solid var(--ssc-green-600);
    border-right: 2px solid var(--ssc-green-600);
    transform: translateY(-50%) rotate(45deg);
}

.sd-page .sd-flow h3 {
    margin: 0 0 8px;
    color: var(--ssc-green-950);
    font-size: 17px;
    font-weight: 700;
}

.sd-page .sd-flow p {
    margin: 0;
    color: var(--ssc-muted);
    font-size: 14.5px;
    line-height: 1.6;
    text-align: left;
}

/* UN Sustainable Development Goals */
.sd-page .sd-sdgs {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
}

.sd-page .sd-sdg {
    margin: 0;
    padding: 22px 20px;
    background: #fff;
    border: 1px solid var(--ssc-line);
}

.sd-page .sd-sdg__num {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--sdg-color, var(--ssc-green-700));
    font-size: 19px;
    font-weight: 700;
}

.sd-page .sd-sdg h3 {
    margin: 0 0 6px;
    color: var(--ssc-green-950);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
}

.sd-page .sd-sdg__goal {
    margin-bottom: 3px;
    display: block;
    color: var(--ssc-muted);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sd-page .sd-sdg p {
    margin: 0;
    color: var(--ssc-muted);
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
}

/* Commitment rows: photo and numbered commitment, alternating sides */
.sd-page .sd-commits {
    display: grid;
    gap: clamp(36px, 5vw, 64px);
}

.sd-page .sd-commit {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    scroll-margin-top: 130px;
}

.sd-page .sd-commit:nth-child(even) .sd-commit__media {
    order: 2;
}

.sd-page .sd-commit__media {
    position: relative;
}

.sd-page .sd-commit__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(7, 59, 42, .14);
}

.sd-page .sd-commit__num {
    position: absolute;
    top: -14px;
    left: -14px;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--ssc-green-700);
    box-shadow: 0 10px 22px rgba(7, 59, 42, .22);
    font-size: 22px;
    font-weight: 700;
}

.sd-page .sd-commit:nth-child(even) .sd-commit__num {
    right: -14px;
    left: auto;
}

.sd-page .sd-commit__body {
    padding: clamp(24px, 3vw, 38px);
    background: #fff;
    border: 1px solid var(--ssc-line);
}

.sd-page .sd-commit__head {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.sd-page .sd-commit h3 {
    margin: 0;
    color: var(--ssc-green-950);
    font-size: clamp(21px, 2.2vw, 26px);
    font-weight: 700;
    line-height: 1.25;
}

.sd-page .sd-commit__lead {
    margin: 0 0 16px;
    color: var(--ssc-muted);
    font-size: 15.5px;
    line-height: 1.7;
    text-align: left;
}

@media (max-width: 1199.98px) {
    .sd-page .sd-sdgs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .sd-page .sd-goals,
    .sd-page .sd-commit {
        grid-template-columns: 1fr;
    }

    .sd-page .sd-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sd-page .sd-flow li:nth-child(2n)::after {
        display: none;
    }

    .sd-page .sd-commit:nth-child(even) .sd-commit__media {
        order: 0;
    }

    .sd-page .sd-commit:nth-child(even) .sd-commit__num {
        right: auto;
        left: -14px;
    }
}

@media (max-width: 575.98px) {
    .sd-page .sd-flow,
    .sd-page .sd-sdgs {
        grid-template-columns: 1fr;
    }

    .sd-page .sd-flow li::after {
        display: none;
    }

    .sd-page .sd-commit__num,
    .sd-page .sd-commit:nth-child(even) .sd-commit__num {
        top: 12px;
        left: 12px;
        width: 52px;
        height: 52px;
        font-size: 18px;
    }
}
