/* GOPOS 365 Resources — editorial extension of the existing brand system */
.resources-page {
    --resources-ink: #0b1f33;
    --resources-paper: #fbfdff;
    --resources-wash: #eef6fc;
    --resources-line: rgba(15, 54, 87, 0.14);
    --resources-accent: #0061b0;
    --resources-gutter: clamp(20px, 4vw, 48px);
    --resources-section: clamp(72px, 9vw, 128px);
    --resources-copy: 760px;
    --resources-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --resources-fast: 220ms;
    --resources-mid: 480ms;
    background: var(--resources-paper);
    color: var(--resources-ink);
}

.resources-page main {
    overflow: clip;
}

.resources-page #navbar {
    box-shadow: none;
}

.resources-page #navbar.scrolled {
    box-shadow: 0 8px 24px rgba(15, 54, 87, 0.06);
}

.resource-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    width: 0;
    height: 3px;
    background: var(--resources-accent);
    transition: width 80ms linear;
}

.resources-hero {
    position: relative;
    padding: clamp(150px, 17vw, 210px) 0 var(--resources-section);
    background: var(--resources-wash);
    border-bottom: 1px solid var(--resources-line);
    isolation: isolate;
}

.resources-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: radial-gradient(rgba(0, 97, 176, 0.2) 0.8px, transparent 0.8px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 78%);
}

.resources-hero::after {
    content: '';
    position: absolute;
    top: 88px;
    right: -15vw;
    z-index: -1;
    width: min(62vw, 820px);
    aspect-ratio: 1;
    border: 1px solid rgba(0, 97, 176, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 72px rgba(0, 97, 176, 0.025), 0 0 0 144px rgba(0, 97, 176, 0.018);
}

.resources-eyebrow,
.article-category {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    color: var(--resources-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.resources-eyebrow::before,
.article-category::before {
    content: '';
    width: 30px;
    height: 2px;
    background: currentColor;
}

.resources-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
    align-items: end;
    gap: clamp(36px, 7vw, 110px);
}

.resources-hero h1,
.article-hero h1 {
    max-width: 930px;
    margin: 0;
    color: var(--resources-ink);
    font-family: var(--font-display);
    font-size: clamp(50px, 7.6vw, 106px);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.055em;
}

.resources-hero h1 span,
.article-hero h1 span {
    color: var(--resources-accent);
}

.resources-hero-copy {
    max-width: 520px;
    padding: 0 0 8px 28px;
    border-left: 1px solid rgba(0, 97, 176, 0.28);
}

.resources-hero-copy p {
    margin: 0;
    color: #45647e;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.65;
}

.resources-index {
    padding: var(--resources-section) 0;
}

.resource-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(36px, 5vw, 68px);
}

.resource-section-heading h2 {
    max-width: 720px;
    margin: 0;
    color: var(--resources-ink);
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
}

.resource-count {
    flex: 0 0 auto;
    color: #6b8296;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resource-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    min-height: 560px;
    margin-bottom: clamp(56px, 8vw, 104px);
    border: 1px solid var(--resources-line);
    background: #fff;
}

.resource-featured-media {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: #dce9f3;
}

.resource-featured-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 28, 48, 0.28), transparent 52%);
    pointer-events: none;
}

.resource-featured-media img,
.resource-card-image img,
.article-lead-image img,
.article-copy figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.resource-featured-media img,
.resource-card-image img {
    transition: transform 700ms var(--resources-ease);
}

.resource-featured:hover .resource-featured-media img,
.resource-card:hover .resource-card-image img {
    transform: scale(1.035);
}

.resource-featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 5vw, 72px);
}

.resource-kicker,
.resource-card-kicker {
    color: var(--resources-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.resource-featured h3 {
    margin: 20px 0 20px;
    color: var(--resources-ink);
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.resource-featured p,
.resource-card p {
    color: #587086;
    font-size: 16px;
    line-height: 1.7;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin-top: 26px;
    color: var(--resources-ink);
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid currentColor;
    padding-bottom: 5px;
    transition: color var(--resources-fast) var(--resources-ease), gap var(--resources-fast) var(--resources-ease);
}

.resource-link:hover {
    gap: 17px;
    color: var(--resources-accent);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--resources-line);
    border: 1px solid var(--resources-line);
}

.resource-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
    min-height: 270px;
    padding: 28px;
    background: var(--resources-paper);
    transition: background var(--resources-fast) var(--resources-ease);
}

.resource-card:hover {
    background: #fff;
}

.resource-card-image {
    align-self: center;
    min-height: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9f1f7;
}

.resource-card-image img {
    object-fit: contain;
}

.resource-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.resource-card h3 {
    margin: 14px 0 12px;
    color: var(--resources-ink);
    font-family: var(--font-display);
    font-size: clamp(23px, 2.4vw, 32px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.resource-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.resources-cta {
    position: relative;
    padding: clamp(74px, 9vw, 118px) 0;
    overflow: hidden;
    background: #071d31;
    color: #f5f9fc;
}

.resources-cta::after {
    content: '365';
    position: absolute;
    right: -0.03em;
    bottom: -0.34em;
    color: rgba(255, 255, 255, 0.035);
    font-family: var(--font-display);
    font-size: min(44vw, 560px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.08em;
    pointer-events: none;
}

.resources-cta-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 48px;
}

.resources-cta h2 {
    max-width: 800px;
    margin: 0;
    color: #f5f9fc;
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 70px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.resources-cta p {
    max-width: 650px;
    margin: 22px 0 0;
    color: #adc0d0;
    font-size: 17px;
    line-height: 1.65;
}

.resources-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 178px;
    min-height: 54px;
    padding: 14px 24px;
    border: 1px solid #f5f9fc;
    color: #f5f9fc;
    font-weight: 700;
    transition: background var(--resources-fast) var(--resources-ease), color var(--resources-fast) var(--resources-ease), transform var(--resources-fast) var(--resources-ease);
}

.resources-cta-button:hover {
    background: #f5f9fc;
    color: #071d31;
    transform: translateY(-2px);
}

/* Article pages */
.article-hero {
    padding: clamp(140px, 16vw, 190px) 0 clamp(54px, 8vw, 100px);
    background: var(--resources-paper);
}

.article-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: clamp(36px, 6vw, 70px);
    color: #75899a;
    font-size: 13px;
}

.article-breadcrumbs a {
    color: #45647e;
    transition: color var(--resources-fast) var(--resources-ease);
}

.article-breadcrumbs a:hover {
    color: var(--resources-accent);
}

.article-hero h1 {
    max-width: 1120px;
    font-size: clamp(46px, 7vw, 94px);
}

.article-deck {
    max-width: 800px;
    margin: clamp(28px, 4vw, 44px) 0 0;
    color: #4b687f;
    font-size: clamp(18px, 2.1vw, 23px);
    line-height: 1.55;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-top: 34px;
    color: #71879a;
    font-size: 13px;
    font-weight: 600;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-meta span + span::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #91a6b8;
}

.article-lead-image {
    width: min(1400px, calc(100% - 40px));
    aspect-ratio: 4 / 3;
    margin: 0 auto;
    overflow: hidden;
    background: #dce9f3;
}

.article-lead-image img {
    object-fit: contain;
    object-position: center;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, var(--resources-copy)) 260px;
    justify-content: center;
    align-items: start;
    gap: clamp(54px, 8vw, 110px);
    padding: clamp(68px, 9vw, 120px) var(--resources-gutter);
}

.article-copy {
    min-width: 0;
    color: #263f54;
    font-size: clamp(17px, 1.35vw, 19px);
    line-height: 1.82;
}

.article-copy > p:first-child {
    color: var(--resources-ink);
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.6;
}

.article-copy p {
    margin: 0 0 26px;
}

.article-copy h2 {
    margin: clamp(64px, 8vw, 92px) 0 24px;
    color: var(--resources-ink);
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.article-copy h3 {
    margin: 48px 0 16px;
    color: var(--resources-ink);
    font-family: var(--font-display);
    font-size: clamp(23px, 2.7vw, 31px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.article-copy ul {
    display: grid;
    gap: 14px;
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
}

.article-copy li {
    position: relative;
    padding-left: 28px;
}

.article-copy li::before {
    content: '';
    position: absolute;
    top: 0.75em;
    left: 0;
    width: 9px;
    height: 9px;
    background: var(--resources-accent);
}

.article-copy strong {
    color: #102d45;
}

.article-copy a {
    color: var(--resources-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.article-copy figure {
    margin: clamp(44px, 6vw, 72px) 0;
    overflow: hidden;
    background: #eaf1f6;
}

.article-copy figure img {
    height: auto;
    max-height: 720px;
}

.article-copy figcaption {
    padding: 12px 0 0;
    color: #7a8e9f;
    font-size: 12px;
    line-height: 1.5;
}

.article-image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: clamp(44px, 6vw, 72px) 0;
}

.article-image-grid figure {
    margin: 0;
}

.article-image-grid img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.article-note {
    margin: 48px 0;
    padding: 28px 30px;
    border-left: 3px solid var(--resources-accent);
    background: var(--resources-wash);
    color: #26455d;
}

.article-aside {
    position: sticky;
    top: 110px;
    padding-top: 4px;
}

.article-aside-label {
    display: block;
    margin-bottom: 16px;
    color: #7a8e9f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-aside nav {
    display: grid;
    border-top: 1px solid var(--resources-line);
}

.article-aside nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--resources-line);
    color: #587086;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    transition: color var(--resources-fast) var(--resources-ease), padding-left var(--resources-fast) var(--resources-ease);
}

.article-aside nav a:hover,
.article-aside nav a.is-active {
    padding-left: 8px;
    color: var(--resources-accent);
}

.article-end {
    margin-top: clamp(60px, 8vw, 90px);
    padding: clamp(28px, 5vw, 42px);
    border: 1px solid var(--resources-line);
    border-left: 4px solid var(--resources-accent);
    background: var(--resources-wash);
}

.article-end p {
    margin: 0 0 22px;
    color: var(--resources-ink);
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 700;
    line-height: 1.35;
}

.article-end .resource-link {
    min-height: 50px;
    margin-top: 0;
    padding: 12px 18px;
    border: 1px solid var(--resources-accent);
    background: var(--resources-accent);
    color: #f7fbff;
    text-decoration: none;
}

.article-end .resource-link:hover,
.article-end .resource-link:focus-visible {
    gap: 17px;
    border-color: #004f91;
    background: #004f91;
    color: #f7fbff;
}

.more-resources {
    padding: var(--resources-section) 0;
    background: var(--resources-wash);
    border-top: 1px solid var(--resources-line);
}

.more-resources-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--resources-line);
    border: 1px solid var(--resources-line);
}

.more-resource {
    padding: clamp(28px, 4vw, 44px);
    background: var(--resources-paper);
}

.more-resource h3 {
    margin: 16px 0 0;
    color: var(--resources-ink);
    font-family: var(--font-display);
    font-size: clamp(23px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

[data-resource-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--resources-mid) var(--resources-ease), transform var(--resources-mid) var(--resources-ease);
}

[data-resource-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1050px) {
    .resources-hero-grid,
    .resource-featured {
        grid-template-columns: 1fr;
    }

    .resources-hero-copy {
        max-width: 680px;
    }

    .resource-featured-media {
        min-height: min(64vw, 580px);
    }

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

    .article-layout {
        grid-template-columns: minmax(0, var(--resources-copy));
    }

    .article-aside {
        display: none;
    }
}

@media (max-width: 760px) {
    .resources-hero::after {
        right: -58vw;
        width: 110vw;
    }

    .resource-section-heading,
    .resources-cta-inner {
        align-items: start;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .resource-section-heading {
        display: grid;
    }

    .resource-card {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 20px;
        min-height: 220px;
        padding: 20px;
    }

    .resource-card-image {
        min-height: 0;
    }

    .article-lead-image {
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .article-image-grid,
    .more-resources-grid {
        grid-template-columns: 1fr;
    }

    .article-image-grid figure {
        margin-bottom: 20px;
    }
}

@media (max-width: 520px) {
    .resources-hero-copy {
        padding-left: 18px;
    }

    .resource-featured-body {
        padding: 30px 24px 36px;
    }

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

    .resource-card-image {
        min-height: 0;
    }

    .article-layout {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .resource-progress {
        display: none;
    }

    [data-resource-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .resource-featured-media img,
    .resource-card-image img,
    .resources-cta-button {
        transition: none;
    }
}
