:root {
    --paa-navy: #0a2463;
    --paa-navy-deep: #061538;
    --paa-orange: #e8622a;
    --paa-orange-dark: #c94716;
    --paa-green: #167a55;
    --paa-ink: #172033;
    --paa-muted: #667085;
    --paa-line: #dce3ec;
    --paa-soft: #f4f7fb;
    --paa-white: #fff;
}

body.paa-public-cleanup:not(.paa-authority-page) main > section:nth-of-type(n+2) {
    content-visibility: auto;
    contain-intrinsic-size: auto 760px;
}

.paa-authority-page .entry-content,
.paa-authority-page .post-content,
.paa-authority-page main article {
    max-width: none;
}

.paa-authority-page h1.entry-title,
.paa-authority-page .entry-header h1,
.paa-authority-page main > h1,
.paa-authority-page main h1:first-of-type {
    width: min(1040px, calc(100% - 32px));
    margin: clamp(28px, 6vw, 72px) auto 24px;
    color: var(--paa-navy-deep);
    font: 800 clamp(34px, 5.2vw, 64px)/1.04 Georgia, "Times New Roman", serif;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.paa-article,
.paa-article * {
    box-sizing: border-box;
}

.paa-article {
    width: min(1040px, calc(100vw - 32px));
    max-width: none;
    margin: 0 auto clamp(80px, 10vw, 140px);
    color: var(--paa-ink);
    font: 400 17px/1.72 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.paa-article p,
.paa-article li {
    color: var(--paa-ink);
    font-size: inherit;
    line-height: inherit;
}

.paa-article a {
    color: var(--paa-navy);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.paa-answer {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid #c9d7ea;
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0, rgba(232, 98, 42, .14), transparent 23rem),
        linear-gradient(145deg, #fff 0%, #f3f7fc 100%);
    box-shadow: 0 22px 64px rgba(6, 21, 56, .11);
}

.paa-answer::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(var(--paa-orange), var(--paa-orange-dark));
    content: "";
}

.paa-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--paa-orange-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .11em;
    line-height: 1.35;
    text-transform: uppercase;
}

.paa-kicker::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--paa-green);
    box-shadow: 0 0 0 5px rgba(22, 122, 85, .11);
    content: "";
}

.paa-answer h2,
.paa-section h2,
.paa-related h2,
.paa-sources h2,
.paa-cta h2,
.paa-toc h2 {
    margin: 0 0 18px;
    color: var(--paa-navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.12;
    text-wrap: balance;
}

.paa-answer h2 {
    font-size: clamp(30px, 4vw, 46px);
}

.paa-answer__copy p {
    max-width: 850px;
    margin: 0 0 16px;
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.62;
}

.paa-answer__copy p:last-child {
    margin-bottom: 0;
}

.paa-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--paa-line);
    color: var(--paa-muted);
    font-size: 13px;
}

.paa-byline strong {
    color: var(--paa-navy);
}

.paa-toc {
    margin: 28px 0 34px;
    padding: 25px clamp(22px, 4vw, 36px);
    border: 1px solid var(--paa-line);
    border-radius: 22px;
    background: var(--paa-white);
}

.paa-toc h2 {
    font-size: 24px;
}

.paa-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 32px;
    margin: 0;
    padding-left: 22px;
}

.paa-toc a {
    font-weight: 700;
}

.paa-photo {
    overflow: hidden;
    margin: 34px 0 54px;
    border-radius: 28px;
    background: var(--paa-navy-deep);
    box-shadow: 0 24px 66px rgba(6, 21, 56, .16);
}

.paa-photo img {
    display: block;
    width: 100%;
    height: clamp(300px, 54vw, 570px);
    margin: 0;
    object-fit: cover;
}

.paa-photo figcaption {
    margin: 0;
    padding: 15px 20px 17px;
    color: #e9eef7;
    font-size: 13px;
    line-height: 1.5;
}

.paa-section {
    max-width: 840px;
    margin: 0 auto;
    padding: 42px 0;
    border-bottom: 1px solid var(--paa-line);
    content-visibility: auto;
    contain-intrinsic-size: auto 620px;
    scroll-margin-top: 30px;
}

.paa-section h2,
.paa-related h2,
.paa-sources h2 {
    font-size: clamp(29px, 3.8vw, 43px);
}

.paa-section h3 {
    margin: 0 0 9px;
    color: var(--paa-navy);
    font-size: 20px;
    line-height: 1.3;
}

.paa-section p,
.paa-section ul,
.paa-section ol {
    margin-top: 0;
    margin-bottom: 20px;
}

.paa-section li + li {
    margin-top: 9px;
}

.paa-section li::marker {
    color: var(--paa-orange);
    font-weight: 800;
}

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

.paa-safety-grid article {
    padding: 22px;
    border: 1px solid var(--paa-line);
    border-radius: 20px;
    background: var(--paa-soft);
}

.paa-safety-grid article:nth-child(2) {
    border-color: #f1b5a1;
    background: #fff4ef;
}

.paa-safety-grid p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.paa-faq__list {
    display: grid;
    gap: 11px;
}

.paa-faq details {
    overflow: hidden;
    border: 1px solid var(--paa-line);
    border-radius: 17px;
    background: var(--paa-white);
}

.paa-faq summary {
    position: relative;
    padding: 19px 52px 19px 21px;
    color: var(--paa-navy-deep);
    cursor: pointer;
    font-weight: 800;
    line-height: 1.4;
    list-style: none;
}

.paa-faq summary::-webkit-details-marker {
    display: none;
}

.paa-faq summary::after {
    position: absolute;
    top: 50%;
    right: 20px;
    color: var(--paa-orange);
    content: "+";
    font-size: 25px;
    line-height: 1;
    transform: translateY(-50%);
}

.paa-faq details[open] summary::after {
    content: "−";
}

.paa-faq details p {
    margin: 0;
    padding: 0 21px 21px;
    color: var(--paa-muted);
}

.paa-related,
.paa-sources {
    max-width: 840px;
    margin: 42px auto 0;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 24px;
}

.paa-related {
    background: var(--paa-navy-deep);
}

.paa-related h2 {
    color: var(--paa-white);
}

.paa-related__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.paa-related__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: var(--paa-white);
    font-weight: 750;
    text-decoration: none;
}

.paa-related__links a:hover {
    background: rgba(255, 255, 255, .15);
}

.paa-related__links span {
    color: #ffb391;
    font-size: 20px;
}

.paa-sources {
    border: 1px solid var(--paa-line);
    background: var(--paa-soft);
    scroll-margin-top: 30px;
}

.paa-sources > p {
    color: var(--paa-muted);
}

.paa-sources ul {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.paa-sources li {
    padding: 15px 17px;
    border: 1px solid var(--paa-line);
    border-radius: 14px;
    background: var(--paa-white);
}

.paa-sources a,
.paa-sources small {
    display: block;
}

.paa-sources a {
    font-weight: 780;
}

.paa-sources small {
    margin-top: 4px;
    color: var(--paa-muted);
    font-size: 12px;
}

.paa-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 26px;
    margin-top: 44px;
    padding: clamp(28px, 5vw, 52px);
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 0, rgba(232, 98, 42, .4), transparent 18rem),
        var(--paa-navy-deep);
    box-shadow: 0 26px 70px rgba(6, 21, 56, .2);
}

.paa-cta > div > span {
    color: #ffae88;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.paa-cta h2 {
    margin: 8px 0 9px;
    color: var(--paa-white);
    font-size: clamp(28px, 4vw, 42px);
}

.paa-cta p {
    max-width: 650px;
    margin: 0;
    color: #d7e1f1;
}

.paa-cta > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 54px;
    padding: 15px 22px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--paa-orange), var(--paa-orange-dark));
    box-shadow: 0 12px 28px rgba(201, 71, 22, .3);
    color: var(--paa-white);
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

.paa-cta > a:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .paa-authority-page h1.entry-title,
    .paa-authority-page .entry-header h1,
    .paa-authority-page main > h1,
    .paa-authority-page main h1:first-of-type,
    .paa-article {
        width: min(100% - 22px, 1040px);
    }

    .paa-answer {
        border-radius: 22px;
    }

    .paa-toc ol,
    .paa-related__links,
    .paa-safety-grid,
    .paa-cta {
        grid-template-columns: 1fr;
    }

    .paa-photo {
        border-radius: 20px;
    }

    .paa-photo img {
        height: min(70vw, 410px);
    }

    .paa-section {
        padding: 34px 3px;
    }

    .paa-cta > a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .paa-article *,
    .paa-article *::before,
    .paa-article *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
