/* Return to a resource section immediately, without animating the whole page. */
html:has(#life-resources:target, #strategic-resources:target) {
    scroll-behavior: auto;
}

body.template-advancementspage {
    background: var(--black);
}

.adv-hero {
    position: relative;
    display: grid;
    min-height: min(720px, calc(100vh - 74px));
    overflow: hidden;
    background: var(--black);
}

.adv-hero-media {
    position: absolute;
    inset: 0;
}

.adv-hero-media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(14, 14, 14, 0.78), rgba(14, 14, 14, 0.18) 58%, rgba(14, 14, 14, 0.64));
}

.adv-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
}

.adv-hero-content {
    position: absolute;
    left: max(20px, 7vw);
    bottom: clamp(80px, 12vh, 128px);
    z-index: 2;
    display: grid;
    width: min(760px, calc(100% - 40px));
    max-height: calc(100% - 56px);
    margin: 0;
    padding: 0;
}

.adv-hero h1 {
    max-width: 860px;
    margin-top: 10px;
    color: var(--white);
    font-size: var(--font-heading-large);
    line-height: 0.98;
}

.adv-hero p:not(.eyebrow) {
    max-width: 660px;
    margin-top: 18px;
    color: var(--paper);
    font-weight: 800;
    line-height: 1.35;
}

.program-grid a,
.resource-filters button,
.resource-meta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 2px solid currentColor;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
}

.program-grid a:hover,
.resource-filters button:hover,
.resource-filters button.active,
.resource-meta a:hover {
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
}

.adv-intro {
    padding: 64px 0 82px;
}

.adv-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 860px) minmax(180px, 0.55fr);
    gap: clamp(28px, 4vw, 72px);
    align-items: stretch;
}

.adv-original-copy {
    display: grid;
    grid-template-rows: auto auto;
    row-gap: 42px;
    align-content: start;
    color: var(--paper);
}

.template-advancementspage .adv-section-title {
    margin: 0;
    color: var(--white);
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    font-weight: 500;
    line-height: 1.06;
}

.adv-original-copy .adv-section-title {
    width: min(740px, 100%);
    text-align: center;
}

.adv-original-body {
    display: grid;
    width: min(740px, 100%);
    gap: 22px;
}

.adv-original-body p {
    margin: 0;
    color: var(--paper);
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: justify;
}

.adv-floating-links {
    display: grid;
    min-height: 560px;
    align-content: center;
    justify-items: start;
    gap: 58px;
    padding-left: clamp(8px, 2vw, 32px);
}

.adv-float-link {
    display: block;
    width: clamp(76px, 7.5vw, 112px);
    transition: transform 180ms ease;
}

.adv-float-link:hover {
    transform: translateY(-3px);
}

.adv-float-link img {
    width: 100%;
    height: auto;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.program-grid article {
    display: grid;
    align-content: start;
    min-height: 260px;
    padding: 24px;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.program-grid span,
.adv-timeline span {
    color: var(--red);
    font-size: var(--font-heading-medium);
    font-weight: 900;
    line-height: 1;
}

.program-grid h3 {
    margin-top: 16px;
    color: var(--white);
    font-size: var(--font-heading-medium);
    line-height: 1.1;
    text-transform: uppercase;
}

.program-grid p {
    margin-top: 12px;
    color: var(--stone);
    line-height: 1.35;
}

.program-grid a {
    width: fit-content;
    margin-top: 22px;
    padding: 0 14px;
    font-size: 0.76rem;
}

.adv-phase-timeline {
    padding: 34px 0 82px;
}

.phase-timeline {
    --phase-line-y: 76px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(34px, 5vw, 92px);
    width: min(820px, 100%);
    margin: 0 auto;
    padding-top: 0;
}

.phase-line {
    position: absolute;
    top: var(--phase-line-y);
    right: 0;
    left: 0;
    height: 4px;
    transform: translateY(-50%);
    background: #8d8d8d;
}

.phase-card {
    position: relative;
    display: grid;
    justify-items: center;
    padding-top: calc(var(--phase-line-y) + 46px);
}

.phase-year {
    position: absolute;
    top: calc(var(--phase-line-y) - 44px);
    left: 50%;
    transform: translateX(-50%);
    color: #9a9a9a;
    font-size: 1.08rem;
    font-weight: 500;
}

.phase-node {
    position: absolute;
    top: var(--phase-line-y);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: var(--red);
}

.phase-node::before {
    width: 16px;
    height: 16px;
    content: "";
    background:
        linear-gradient(#222, #222) 0 3px / 100% 2px no-repeat,
        linear-gradient(#222, #222) 0 8px / 100% 2px no-repeat,
        linear-gradient(90deg, transparent 31%, #222 31% 42%, transparent 42% 58%, #222 58% 69%, transparent 69%) 0 0 / 100% 100% no-repeat;
    border: 2px solid #222;
    border-radius: 2px;
}

.phase-box {
    position: relative;
    display: grid;
    align-content: start;
    width: min(194px, 100%);
    min-height: 260px;
    padding: 10px 14px 24px;
    background: var(--black);
    border: 2px solid var(--red);
    border-radius: 10px;
}

.phase-box::before {
    position: absolute;
    top: -15px;
    left: 50%;
    width: 26px;
    height: 26px;
    content: "";
    background: var(--black);
    border-top: 2px solid var(--red);
    border-left: 2px solid var(--red);
    transform: translateX(-50%) rotate(45deg);
}

.phase-box img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 96px;
    object-fit: contain;
    margin-bottom: 44px;
}

.phase-box h3 {
    margin: 0;
    color: var(--white);
    font-size: 1.45rem;
    line-height: 1.05;
}

.phase-box a {
    align-self: end;
    width: fit-content;
    margin-top: 30px;
    color: var(--red);
    font-weight: 400;
    text-transform: none;
}

.adv-history {
    scroll-margin-top: 108px;
    padding: 82px 0;
    background: var(--paper);
    color: var(--ink);
}

.adv-history .adv-section-title {
    max-width: 680px;
    color: var(--ink);
}

.adv-history .section-heading p:not(.eyebrow) {
    color: #555;
}

.adv-timeline {
    position: relative;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.adv-timeline::-webkit-scrollbar {
    display: none;
}

.adv-timeline.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.adv-timeline article {
    position: relative;
    flex: 0 0 min(520px, 88vw);
    padding: 28px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.12);
    scroll-snap-align: start;
}

.adv-timeline img {
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 12px;
    object-fit: contain;
    object-position: center;
    padding: 8px;
    background: #8e8e93;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.adv-timeline span {
    display: block;
    margin-bottom: 12px;
}

.adv-timeline h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.15;
    text-transform: uppercase;
}

.adv-timeline p {
    margin-top: 0;
    color: #555;
    line-height: 1.4;
}

.adv-anchor-target {
    display: block;
    height: 0;
    scroll-margin-top: 108px;
    pointer-events: none;
}

.adv-project {
    scroll-margin-top: 108px;
    padding: 82px 0;
}

.adv-strategy {
    background: var(--paper);
    color: var(--ink);
}

.adv-project-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    gap: 42px;
    align-items: start;
}

.adv-project .adv-section-title {
    margin-top: 10px;
    margin-bottom: 22px;
}

.adv-disclosure {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px 30px;
}

.adv-disclosure--dark {
    background: rgba(0, 0, 0, 0.16);
    color: var(--white);
}

.adv-disclosure--light {
    background: rgba(255, 255, 255, 0.38);
    color: var(--ink);
}

.adv-disclosure--dark .adv-section-title,
.adv-disclosure--light .adv-section-title {
    margin-left: 26px;
}

.adv-disclosure-heading {
    margin: 0 0 26px;
    text-align: center;
}

.adv-disclosure-heading .adv-section-title {
    color: currentColor;
    text-transform: uppercase;
    white-space: nowrap;
}


.adv-disclosure-reading {
    margin-bottom: 20px;
}
.adv-disclosure h3 {
    margin: 0 0 0 0;
    color: currentColor;
    font-size: clamp(1rem, 1.16vw, 1.18rem);
    font-weight: 700;
    line-height: 1.35;
}

.adv-disclosure-title-link {
    color: inherit;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.adv-disclosure-title-link::before {
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 10px;
    content: "";
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    border-top: 8px solid currentColor;
    vertical-align: middle;
}

.adv-disclosure-title-link[aria-expanded="true"]::before {
    border-top: 0;
    border-bottom: 8px solid currentColor;
}

.adv-disclosure-title-link:hover {
    color: inherit;
}

.adv-disclosure-title-link:focus-visible {
    color: inherit;
    outline: 2px solid currentColor;
    outline-offset: 6px;
}

.adv-disclosure-details {
    margin-top: 38px;
    color: currentColor;
}

.adv-disclosure-details[hidden] {
    display: none;
}

.adv-project .adv-disclosure-details p:not(.eyebrow) {
    margin: 0 0 28px;
    color: currentColor;
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.85;
}

.adv-disclosure .adv-disclosure-details ul {
    display: block;
    margin: 0 0 0 28px;
    padding: 0;
    color: currentColor;
    list-style: disc;
}

.adv-disclosure .adv-disclosure-details li {
    min-height: 0;
    margin: 0 0 10px;
    padding: 0;
    background: transparent;
    border: 0;
    color: currentColor;
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.35;
}

.adv-disclosure .adv-disclosure-details li::before {
    display: none;
}

.adv-project .section-inner > hr {
    max-width: 1400px;
    margin: 0 auto;
    border: 0;
    border-top: 1px solid currentColor;
    opacity: 0.54;
}

.adv-project.section-dark .section-inner > hr {
    color: var(--white);
}

.adv-strategy .section-inner > hr {
    color: var(--ink);
}

.adv-strategy .adv-section-title,
.adv-strategy .resource-heading h3,
.adv-strategy .resource-grid h4 {
    color: var(--ink);
}

.adv-strategy .resource-filters button {
    color: var(--ink);
}

.adv-strategy .resource-grid article {
    background: var(--white);
    border-color: rgba(0, 0, 0, 0.12);
}

.adv-strategy .resource-grid p:not(.resource-category) {
    color: #555;
}


.adv-project p:not(.eyebrow) {
    margin-top: 18px;
    color: var(--stone);
    line-height: 1.45;
}

.adv-project ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.adv-project li {
    position: relative;
    min-height: 66px;
    padding: 16px 18px 16px 52px;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--paper);
    font-weight: 800;
    line-height: 1.35;
}

.adv-project li::before {
    position: absolute;
    top: 18px;
    left: 18px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    content: "";
    background: var(--red);
}

.resource-section {
    margin-top: 54px;
}

.resource-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
    gap: 22px;
    align-items: end;
    margin-bottom: 22px;
}

.resource-heading h3 {
    color: var(--white);
    font-size: var(--font-heading-medium);
    line-height: 1.15;
}

.resource-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.resource-filters button {
    min-height: 36px;
    padding: 0 12px;
    color: var(--stone);
    font-size: 0.72rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.resource-grid article {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 430px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.resource-grid article.is-hidden {
    display: none;
}

.resource-media {
    position: relative;
    display: block;
    aspect-ratio: 1.86;
    overflow: hidden;
    background: #d9d9d9;
    color: var(--white);
}

.resource-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.resource-media:hover img,
.resource-media:focus-visible img {
    transform: scale(1.035);
}

.resource-category {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    max-width: calc(100% - 32px);
    margin: 0;
    padding: 7px 13px;
    border-radius: 999px;
    background: #8e8e93;
    color: var(--white);
    font-size: 0.64rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.resource-content {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 28px 20px 22px;
    text-align: center;
}

.resource-grid h4 {
    margin: 0;
    color: #68636a;
    font-size: clamp(1rem, 1.25vw, 1.22rem);
    line-height: 1.18;
}

.resource-title-link {
    color: inherit;
    text-decoration: none;
}

.resource-title-link:hover,
.resource-title-link:focus-visible {
    color: var(--red);
}

.resource-grid p:not(.resource-category) {
    grid-row: 2;
    display: -webkit-box;
    margin-top: 18px;
    overflow: hidden;
    color: #68636a;
    font-size: clamp(0.9rem, 0.98vw, 1rem);
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

.resource-meta {
    display: flex;
    grid-row: 3;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    align-self: end;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
    text-align: center;
}

.resource-meta span {
    color: #8f8b82;
    font-size: 0.82rem;
    font-weight: 800;
}

.resource-grid .resource-meta a {
    min-height: 34px;
    padding: 0 14px;
    border-color: #8e8e93;
    background: #8e8e93;
    color: var(--white);
    font-size: 0.7rem;
}

.resource-grid .resource-meta a:hover,
.resource-grid .resource-meta a:focus-visible {
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
}


@media (max-width: 1040px) {
    .adv-intro-grid,
    .adv-project-grid,
    .resource-heading {
        grid-template-columns: 1fr;
    }

    .program-grid,
    .resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-filters {
        justify-content: flex-start;
    }

    .phase-timeline {
        width: min(760px, 100%);
        gap: 24px;
    }

    .adv-floating-links {
        min-height: 0;
        grid-template-columns: repeat(3, auto);
        align-content: center;
        justify-content: center;
        gap: 42px;
        padding-left: 0;
    }

    .adv-float-link {
        width: 86px;
    }
}

@media (max-width: 720px) {
    .adv-disclosure {
        padding-right: 18px;
        padding-left: 18px;
    }

    .adv-disclosure--dark .adv-section-title,
    .adv-disclosure--light .adv-section-title {
        margin-left: 0;
    }

    .adv-disclosure-title-link {
        white-space: normal;
    }

    .adv-hero {
        min-height: clamp(440px, 105vw, 520px);
        align-items: end;
    }

    .adv-hero-content {
        position: relative;
        inset: auto;
        width: auto;
        max-height: none;
        padding: 180px 20px 32px;
    }

    .adv-hero h1 {
        font-size: clamp(1.8rem, 7.5vw, 2.4rem);
        line-height: 1.06;
    }

    .adv-original-copy .adv-section-title {
        margin-right: 0;
        margin-left: 0;
        text-align: left;
    }

    .adv-original-body p {
        line-height: 1.28;
        text-align: left;
    }

    .adv-floating-links {
        gap: 24px;
        justify-content: flex-start;
    }

    .adv-float-link {
        width: 68px;
    }

    .adv-phase-timeline {
        padding: 24px 0 58px;
    }

    .phase-timeline {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 0;
    }

    .phase-line,
    .phase-node,
    .phase-box::before {
        display: none;
    }

    .phase-card {
        justify-items: stretch;
        gap: 8px;
        padding-top: 0;
    }

    .phase-year {
        position: static;
        transform: none;
    }

    .phase-box {
        width: 100%;
        min-height: 0;
    }

    .phase-box img {
        height: 82px;
        margin-bottom: 22px;
    }

    .program-grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .program-grid article,
    .resource-grid article {
        min-height: 0;
    }

    .adv-history,
    .adv-project,
    .adv-intro {
        padding: 58px 0;
    }
}
