/* PPE advice: editorial layouts below the existing photographic hero. */
.ppe-hub-page .hero-page .hero-bg,
.articles-ppe .hero-page .hero-bg {
    position: relative;
}

.ppe-hub-page .hero-page .hero-bg::before,
.articles-ppe .hero-page .hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 31, 38, 0.5);
    pointer-events: none;
}

.ppe-hub-page .hero-page .hero-title h1,
.articles-ppe .hero-page .hero-title h1 {
    position: relative;
    z-index: 1;
    width: calc(100% - 40px);
    max-width: 1000px;
    margin-inline: auto;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.25;
    text-wrap: balance;
}

.ppe-hub,
.ppe-guide,
.articles-ppe .post.entry {
    --ppe-blue: #006989;
    --ppe-ink: #344047;
    --ppe-muted: #5c666a;
    --ppe-rule: #d9dfe1;
    width: 100%;
    min-width: 0;
    float: none;
    color: var(--ppe-ink);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
}

.ppe-hub {
    padding: 24px 20px 64px;
}

.ppe-guide {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 20px 20px 48px;
}

.ppe-hub h2,
.ppe-guide h2,
.articles-ppe .post.entry h2 {
    color: var(--ppe-ink);
    font-size: clamp(1.65rem, 2.5vw, 2.1rem);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.ppe-hub h3,
.ppe-guide h3,
.articles-ppe .post.entry .body.classic h3 {
    color: var(--ppe-ink);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.4;
    text-transform: none;
}

.ppe-hub p,
.ppe-guide p,
.articles-ppe .post.entry .body.classic,
.articles-ppe .post.entry .body.classic p {
    color: inherit;
}

.ppe-hub a:not(.stclerc-link-button),
.ppe-guide a:not(.stclerc-link-button),
.articles-ppe .post.entry a:not(.stclerc-link-button),
.ppe-context-link a:not(.stclerc-link-button),
.ppe-breadcrumbs a {
    color: #006989;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

.ppe-hub a:not(.stclerc-link-button):hover,
.ppe-guide a:not(.stclerc-link-button):hover,
.articles-ppe .post.entry a:not(.stclerc-link-button):hover,
.ppe-context-link a:not(.stclerc-link-button):hover,
.ppe-breadcrumbs a:hover {
    color: #344047;
    text-decoration-color: #344047;
}

.ppe-hub a:focus-visible,
.ppe-guide a:focus-visible,
.articles-ppe .post.entry a:focus-visible,
.ppe-online-link a:focus-visible,
.ppe-guide .ppe-table-wrap:focus-visible,
.ppe-context-link a:focus-visible,
.ppe-breadcrumbs a:focus-visible {
    /* The legacy stylesheet suppresses every outline with !important. */
    outline: 2px solid #006989 !important;
    outline-offset: 5px;
}

/* These sections remain readable independently of legacy reveal scripts. */
.ppe-hub .titre.classic,
.ppe-hub .body.classic,
.ppe-hub .image.classic,
.ppe-guide .titre.classic,
.ppe-guide .body.classic,
.ppe-guide .image.classic {
    width: 100%;
    max-width: 100%;
    float: none;
    margin: 0;
    opacity: 1;
    visibility: visible;
}

.ppe-hub .titre.classic h2,
.ppe-hub .titre.classic span,
.ppe-guide .titre.classic h2,
.ppe-guide .titre.classic span {
    padding-left: 0;
    opacity: 1;
    text-align: left;
}

.ppe-hub .ppe-hub-intro {
    max-width: 760px;
    margin-bottom: 40px;
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    font-weight: 300;
    line-height: 1.65;
}

.ppe-hub .ppe-hub-intro p:last-child {
    margin-bottom: 0;
}

.ppe-hub .ppe-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
    margin: 0 0 64px;
}

.ppe-hub .ppe-feature__image {
    display: block;
    min-width: 0;
    overflow: hidden;
}

.ppe-hub .ppe-feature__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0;
    object-fit: cover;
    transition: transform 220ms ease;
}

.ppe-hub .ppe-feature__image a:hover img,
.ppe-hub a.ppe-feature__image:hover img {
    transform: scale(1.025);
}

.ppe-hub .ppe-feature__copy {
    min-width: 0;
    padding: 12px 0;
}

.ppe-hub .ppe-feature__copy h2 {
    margin: 12px 0 20px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.ppe-hub .ppe-feature__copy h2 a,
.ppe-hub .ppe-article h3 a {
    color: inherit;
    text-decoration: none;
}

.ppe-hub .ppe-feature__copy h2 a:hover,
.ppe-hub .ppe-article h3 a:hover {
    color: var(--ppe-blue);
    text-decoration: underline;
}

.ppe-hub .ppe-kind,
.ppe-hub .ppe-eyebrow,
.ppe-hub .ppe-feature__copy .eyebrow {
    display: inline-block;
    color: var(--ppe-blue);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.09em;
    line-height: 1.5;
    text-transform: uppercase;
}

.ppe-hub .ppe-topics {
    margin: 0 0 48px;
    padding-top: 32px;
    border-top: 1px solid var(--ppe-rule);
}

.ppe-hub .ppe-topics > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.ppe-hub .ppe-topic-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 40px;
    margin: 0 0 64px;
}

.ppe-hub .ppe-topic-links > section {
    min-width: 0;
    scroll-margin-top: 120px;
}

.ppe-hub .ppe-topic-links h3 {
    margin-bottom: 18px;
}

.ppe-hub .ppe-topic-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ppe-hub .ppe-topic-links li {
    margin-bottom: 12px;
}

.ppe-hub .ppe-library {
    padding-top: 36px;
    border-top: 1px solid var(--ppe-rule);
    scroll-margin-top: 120px;
}

.ppe-hub .ppe-library > p {
    max-width: 720px;
    margin-bottom: 36px;
}

.ppe-hub .ppe-article-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ppe-hub .ppe-article {
    min-width: 0;
    padding-top: 24px;
    border-top: 1px solid var(--ppe-rule);
}

.ppe-hub .ppe-article img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 0 22px;
    object-fit: cover;
}

.ppe-hub .ppe-article h3 {
    margin: 12px 0;
    font-size: 1.4rem;
    font-weight: 400;
}

.ppe-hub .ppe-article time {
    display: block;
    margin: 8px 0 14px;
    color: var(--ppe-muted);
    font-size: 0.85rem;
}

.ppe-hub .ppe-article p {
    margin-bottom: 18px;
}

.ppe-hub .ppe-pagination {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--ppe-rule);
}

.ppe-hub .ppe-pagination .page-numbers {
    display: inline-block;
    margin: 0 12px 8px 0;
    padding: 6px 4px;
}

.ppe-hub .ppe-pagination .current {
    color: var(--ppe-ink);
    font-weight: 400;
}

.ppe-guide .ppe-guide-meta {
    margin: 0 0 24px;
    color: var(--ppe-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.ppe-guide .ppe-guide-meta a {
    color: inherit;
}

.ppe-guide .ppe-guide-lede {
    max-width: 780px;
    margin-bottom: 36px;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 300;
}

.ppe-guide .ppe-guide-toc {
    margin: 0 0 48px;
    padding: 24px 0;
    border-top: 1px solid var(--ppe-rule);
    border-bottom: 1px solid var(--ppe-rule);
}

.ppe-guide .ppe-guide-toc h2 {
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 400;
}

.ppe-guide .ppe-guide-toc ul,
.ppe-guide .ppe-guide-toc ol {
    columns: 2;
    column-gap: 40px;
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
}

.ppe-guide .ppe-guide-toc li {
    break-inside: avoid;
    padding: 4px 0 8px 4px;
}

.ppe-guide .ppe-guide-body {
    max-width: 780px;
    margin: 0 auto;
    overflow-wrap: break-word;
}

.ppe-guide .ppe-guide-body section[id] {
    scroll-margin-top: 120px;
}

.ppe-guide .ppe-guide-body h2 {
    margin: 48px 0 20px;
    scroll-margin-top: 120px;
}

.ppe-guide .ppe-guide-body h3 {
    margin: 32px 0 16px;
    scroll-margin-top: 120px;
}

.ppe-guide .ppe-guide-body p,
.ppe-guide .ppe-guide-body ul,
.ppe-guide .ppe-guide-body ol {
    margin-bottom: 24px;
}

.ppe-guide .ppe-guide-body ul,
.ppe-guide .ppe-guide-body ol {
    padding-left: 24px;
}

.ppe-guide .ppe-guide-body ul {
    list-style: disc;
}

.ppe-guide .ppe-guide-body ol {
    list-style: decimal;
}

.ppe-guide .ppe-guide-body li {
    padding-left: 4px;
    margin-bottom: 10px;
}

.ppe-guide .ppe-guide-body li::marker {
    color: var(--ppe-blue);
}

/* Apply the same editorial typography to the existing ACF-based PPE articles. */
.articles-ppe .post.entry .titre.classic h2,
.articles-ppe .post.entry .titre.classic > span {
    padding-left: 0;
}

.articles-ppe .post.entry .titre.classic > span {
    color: var(--ppe-muted);
    font-size: 0.9rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
}

.articles-ppe .post.entry .body.classic.intro {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    font-weight: 300;
    line-height: 1.65;
}

.articles-ppe .post.entry .body.classic.content {
    line-height: 1.7;
    overflow-wrap: break-word;
}

.articles-ppe .post.entry .body.classic p,
.articles-ppe .post.entry .body.classic li {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.articles-ppe .post.entry .body.classic p,
.articles-ppe .post.entry .body.classic.content ul,
.articles-ppe .post.entry .body.classic.content ol {
    margin: 0 0 24px;
}

.articles-ppe .post.entry .body.classic.content h2 {
    margin: 48px 0 20px;
}

.articles-ppe .post.entry .body.classic.content h3 {
    margin: 32px 0 16px;
}

.articles-ppe .post.entry h2 :is(strong, b),
.articles-ppe .post.entry h3 :is(strong, b) {
    font-weight: inherit;
}

.articles-ppe .post.entry .body.classic.content ul,
.articles-ppe .post.entry .body.classic.content ol {
    padding-left: 24px;
    list-style-position: outside;
}

.articles-ppe .post.entry .body.classic.content ul {
    list-style-type: disc;
}

.articles-ppe .post.entry .body.classic.content ol {
    list-style-type: decimal;
}

.articles-ppe .post.entry .body.classic.content li {
    padding-left: 4px;
    margin-bottom: 10px;
}

.articles-ppe .post.entry .body.classic.content li::marker {
    color: var(--ppe-blue);
}

.articles-ppe .post.entry .body.classic.content ul li::before {
    content: none;
}

.ppe-guide .ppe-table-wrap {
    max-width: 100%;
    margin: 28px 0 36px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.ppe-guide .ppe-guide-body table {
    width: 100%;
    min-width: 660px;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
}

.ppe-guide .ppe-guide-body caption {
    padding: 0 0 16px;
    font-weight: 400;
    text-align: left;
}

.ppe-guide .ppe-guide-body th,
.ppe-guide .ppe-guide-body td {
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid var(--ppe-rule);
    vertical-align: top;
    text-align: left;
}

.ppe-guide .ppe-guide-body th {
    background: #edf3f5;
    color: var(--ppe-ink);
    font-weight: 400;
}

.ppe-guide .ppe-guide-related {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--ppe-rule);
}

.ppe-guide .ppe-guide-related ul {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.ppe-guide .ppe-guide-related li {
    margin-bottom: 12px;
}

.ppe-guide-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}

.ppe-guide .ppe-guide-cta {
    margin-top: 48px;
    padding: clamp(24px, 5vw, 40px);
    background: #edf3f5;
    border-left: 3px solid var(--ppe-blue);
}

.ppe-guide .ppe-guide-cta h2 {
    margin-top: 0;
}

.ppe-guide .ppe-guide-cta p:last-child {
    margin-bottom: 0;
}

.ppe-context-link {
    clear: both;
    margin: 48px auto 64px;
    color: #344047;
    font-size: 1rem;
    line-height: 1.65;
}

.ppe-context-link__panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px 48px;
    padding: clamp(24px, 3vw, 40px);
    border-left: 3px solid #006989;
    background: #edf3f5;
}

.ppe-context-link__intro,
.ppe-context-link__links {
    min-width: 0;
}

.ppe-context-link p {
    margin: 0;
    color: inherit;
}

.ppe-context-link .ppe-context-link__eyebrow {
    margin-bottom: 12px;
    color: #006989;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ppe-context-link h2 {
    margin: 0 0 16px;
    color: inherit;
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.ppe-context-link__links {
    display: grid;
    justify-items: start;
    gap: 16px;
}

.ppe-context-link a {
    overflow-wrap: anywhere;
}

.ppe-breadcrumbs {
    margin: 8px 0 24px;
    color: #5c666a;
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.ppe-breadcrumbs ol,
.ppe-breadcrumbs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ppe-breadcrumbs li + li::before {
    content: '/';
    margin-right: 10px;
    color: #90999d;
}

@media (max-width: 800px) {
    .ppe-context-link__panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .ppe-hub .ppe-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin-bottom: 44px;
    }

    .ppe-hub .ppe-feature__image img {
        aspect-ratio: 16 / 10;
    }

    .ppe-hub .ppe-feature__copy {
        padding: 0;
    }

    .ppe-hub .ppe-topic-links {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        margin-bottom: 44px;
    }

    .ppe-hub .ppe-topic-links h3 {
        margin-bottom: 12px;
    }

    .ppe-hub .ppe-article-list {
        gap: 36px 24px;
    }

    .ppe-guide .ppe-guide-toc ul,
    .ppe-guide .ppe-guide-toc ol {
        columns: 1;
    }
}

@media (max-width: 560px) {
    .ppe-context-link {
        margin-block: 32px 48px;
    }

    .ppe-hub,
    .ppe-guide {
        padding-top: 12px;
        padding-bottom: 32px;
    }

    .ppe-hub .ppe-hub-intro {
        margin-bottom: 28px;
    }

    .ppe-hub .ppe-topics > ul {
        display: block;
    }

    .ppe-hub .ppe-topics > ul li {
        margin-bottom: 6px;
    }

    .ppe-hub .ppe-article-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .ppe-guide .ppe-guide-body th,
    .ppe-guide .ppe-guide-body td {
        padding: 12px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ppe-hub a,
    .ppe-guide a,
    .articles-ppe .post.entry a,
    .ppe-online-link a,
    .ppe-context-link a,
    .ppe-breadcrumbs a,
    .ppe-hub .ppe-feature__image img {
        transition: none;
    }

    .ppe-hub .ppe-feature__image a:hover img,
    .ppe-hub a.ppe-feature__image:hover img {
        transform: none;
    }
}
