@import url("styles.css");

:root {
    --npp-max-width: 980px;
    --npp-card-bg: var(--surface, #ffffff);
    --npp-border: rgba(26, 29, 52, 0.16);
    --npp-shadow: 0 12px 30px rgba(26, 29, 52, 0.10);
    --npp-radius: 16px;
    --npp-text: var(--text-color, var(--primary-dark));
}

body {
    background-color: var(--main-bg);
    background-image: none;
}

.npp-container {
    width: min(100% - 2rem, var(--npp-max-width));
    margin-inline: auto;
}

.main-header .page-title > p:not(.effective-date) {
    max-width: 820px;
    margin: 0.75rem auto 0;
    text-align: center;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.45;
}

.main-header .effective-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: fit-content;
    max-width: max-content;
    margin: 0.85rem auto 0;
    padding: 0.25rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: var(--header-text, var(--primary-light));
    font-size: 0.88rem;
    line-height: 1.2;
    text-align: center;
    opacity: 0.95;
}

/* Main content layout */
main.npp-page {
    flex: 1;
    padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(3rem, 8vw, 5rem);
    color: var(--npp-text);
}

    main.npp-page a {
        color: var(--accent-dark);
        text-decoration-thickness: 0.08em;
        text-underline-offset: 0.18em;
    }

        main.npp-page a:hover,
        main.npp-page a:focus-visible {
            color: var(--accent);
        }

    main.npp-page :where(p, ul, ol, address) {
        max-width: 95ch;
    }

    main.npp-page p {
        margin: 0.75rem 0;
    }

    main.npp-page ul,
    main.npp-page ol {
        padding-left: 1.35rem;
    }

    main.npp-page li {
        margin-bottom: 0.4rem;
    }

.npp-card,
.npp-section {
    background: var(--npp-card-bg);
    border: 1px solid var(--npp-border);
    border-radius: var(--npp-radius);
    box-shadow: var(--npp-shadow);
}

.npp-card {
    padding: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 1.25rem;
}

    .npp-contact-card,
    .npp-card.contact-card {
        display: block;
        flex: none;
        width: auto;
        min-width: 0;
        max-width: none;
        margin: 0 0 1.25rem;
        text-align: left;
        border-top: 5px solid var(--accent);
    }

        .npp-contact-card h2,
        .npp-card.contact-card h2,
        .toc h2 {
            margin-top: 0;
            font-size: 1.25rem;
        }

        .npp-contact-card p,
        .npp-card.contact-card p {
            max-width: none;
            margin: 0.65rem 0;
        }

.toc ol {
    columns: 2;
    column-gap: 2rem;
    margin: 0.5rem 0 0;
}

.toc li {
    break-inside: avoid;
}

.npp-section {
    padding: clamp(1.25rem, 4vw, 2rem);
    margin-top: 1.25rem;
}

    .npp-section h2 {
        margin: 0 0 1rem;
        padding-bottom: 0.6rem;
        border-bottom: 2px solid var(--main-bg);
        color: var(--primary-dark);
        font-size: clamp(1.45rem, 3vw, 2rem);
        line-height: 1.2;
    }

.npp-subsection {
    padding-top: 0.7rem;
    margin-top: 1rem;
}

    .npp-subsection + .npp-subsection {
        border-top: 1px solid var(--npp-border);
    }

    .npp-subsection h3 {
        margin: 0.5rem 0;
        color: var(--primary-dark);
        font-size: 1.15rem;
        line-height: 1.25;
    }

main.npp-page address {
    padding: 1rem 1.15rem;
    border-left: 4px solid var(--accent-light);
    border-radius: 0 12px 12px 0;
    background: var(--primary-light);
    font-style: normal;
}

@media (max-width: 720px) {
    .npp-container {
        width: min(100% - 1.25rem, var(--npp-max-width));
    }

    .toc ol {
        columns: 1;
    }

    .main-header .effective-date {
        padding: 0.22rem 0.55rem;
        font-size: 0.82rem;
    }
}

@media print {
    body {
        background: #ffffff;
        color: #000000;
        font-size: 11pt;
        line-height: 1.45;
    }

    .main-header {
        padding: 0 0 1rem;
        background: #ffffff;
        box-shadow: none;
        color: #000000;
        border-bottom: 2px solid #000000;
    }

        .main-header .page-title h1,
        .main-header .page-title > p,
        .main-header .effective-date {
            color: #000000;
        }

        .main-header .effective-date {
            display: block;
            border: 0;
            background: transparent;
            padding: 0;
            margin-top: 0.5rem;
        }

    .bk,
    .toc,
    [include-html="nav.html"],
    [include-html="footer.html"] {
        display: none;
    }

    .npp-container {
        width: 100%;
    }

    main.npp-page {
        padding: 0;
    }

    .npp-card,
    .npp-section {
        border: 0;
        box-shadow: none;
        padding: 0;
        margin: 1rem 0;
    }

        .npp-contact-card,
        .npp-card.contact-card {
            border-top: 0;
        }

        .npp-section h2 {
            border-bottom: 1px solid #000000;
            break-after: avoid;
        }

    .npp-subsection {
        break-inside: avoid;
    }

    main.npp-page address {
        border: 1px solid #cccccc;
        border-left: 3px solid #000000;
        background: #ffffff;
    }
}
