/* Shared typography for the Polish and English accessibility declarations. */
/* This stylesheet is enqueued only on the two declaration pages. */
html {
    scroll-behavior: auto;
}

body:is(.page-id-908, .page-id-2985) #teksty {
    --declaration-ink: #24334b;
    --declaration-heading: #31447a;
    --declaration-rule: #d7deeb;
}

body:is(.page-id-908, .page-id-2985) #teksty > :is(.content-section, .container-fluid) {
    padding: 1rem 1.25rem 4rem;
}

body:is(.page-id-908, .page-id-2985) #teksty .elementor-section {
    margin: 0;
    padding: 0;
    background: #fff;
}

body:is(.page-id-908, .page-id-2985) #teksty .elementor-background-overlay {
    display: none;
}

body:is(.page-id-908, .page-id-2985) #teksty .elementor-container {
    max-width: 54rem;
    margin-inline: auto;
}

body:is(.page-id-908, .page-id-2985) #teksty .elementor-widget-wrap {
    padding: 0;
}

body:is(.page-id-908, .page-id-2985) #teksty [id] {
    scroll-margin-top: 7rem;
}

body:is(.page-id-908, .page-id-2985) #teksty .elementor-widget {
    margin: 0;
    color: var(--declaration-ink);
    font-family: Lato, sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    text-align: start;
}

body:is(.page-id-908, .page-id-2985) #teksty :is(h2, h3) {
    color: var(--declaration-heading);
    font-family: Lato, sans-serif;
    font-weight: 700;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: normal;
    overflow-wrap: anywhere;
    scroll-margin-top: 7rem;
}

body:is(.page-id-908, .page-id-2985) #teksty h2 {
    margin: 2.25rem 0 1rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--declaration-rule);
    font-size: clamp(1.375rem, 1.15rem + .75vw, 1.75rem);
}

body:is(.page-id-908, .page-id-2985) #teksty h3 {
    margin: 1.5rem 0 .75rem;
    font-size: 1.1875rem;
}

body:is(.page-id-908, .page-id-2985) #teksty p {
    margin: 0 0 1rem;
    overflow-wrap: anywhere;
    text-align: start;
}

body:is(.page-id-908, .page-id-2985) #teksty .header-title .tytul {
    padding: 0;
    border: 0;
    margin: 0 0 1.5rem;
    color: #003e7e;
    font-size: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
    line-height: 1.25;
}

body:is(.page-id-908, .page-id-2985) #teksty .header-title {
    margin-bottom: 0;
}

body:is(.page-id-908, .page-id-2985) #teksty :is(ul, ol) {
    margin: 0 0 1.25rem;
    padding-inline-start: 1.5rem;
}

body:is(.page-id-908, .page-id-2985) #teksty li {
    margin-block: .375rem;
    padding-inline-start: .125rem;
}

body:is(.page-id-908, .page-id-2985) #teksty a {
    color: #31447a;
    text-decoration: underline;
    text-decoration-thickness: .07em;
    text-underline-offset: .18em;
    overflow-wrap: anywhere;
}

body:is(.page-id-908, .page-id-2985) #teksty a:hover {
    color: #73254f;
    text-decoration-thickness: .12em;
}

body:is(.page-id-908, .page-id-2985) #teksty a:focus-visible {
    outline: 3px solid #31447a;
    outline-offset: 4px;
    border-radius: 2px;
}

body:is(.page-id-908, .page-id-2985) #teksty .pptp-declaration-summary {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-inline-start: 4px solid #31447a;
    border-radius: 0 .5rem .5rem 0;
    background: #f3f6fb;
}

body:is(.page-id-908, .page-id-2985) #teksty .pptp-declaration-summary p:last-child {
    margin-bottom: 0;
}

body:is(.page-id-908, .page-id-2985) #teksty .pptp-declaration-level {
    color: var(--declaration-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

body:is(.page-id-908, .page-id-2985) #teksty .pptp-declaration-nav {
    margin: 1.5rem 0 .5rem;
}

body:is(.page-id-908, .page-id-2985) #teksty .pptp-declaration-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.5rem;
    padding: 0;
    list-style: none;
}

body:is(.page-id-908, .page-id-2985) #teksty .pptp-declaration-nav li {
    margin: 0;
    padding: 0;
}

body:is(.page-id-908, .page-id-2985) #teksty .pptp-declaration-nav a {
    display: inline-block;
    padding-block: .375rem;
}

body:is(.page-id-908, .page-id-2985) #teksty .pptp-declaration-pending {
    padding: 1rem 1.25rem;
    border-inline-start: 3px solid #67748e;
    background: #f7f8fa;
}

body:is(.page-id-908, .page-id-2985) #teksty address {
    margin-block: 1rem;
    font-style: normal;
}

@media (max-width: 575px) {
    body:is(.page-id-908, .page-id-2985) #teksty > :is(.content-section, .container-fluid) {
        padding: .5rem 1.25rem 2.5rem;
    }

    body:is(.page-id-908, .page-id-2985) #teksty .elementor-widget {
        font-size: 1rem;
    }

    body:is(.page-id-908, .page-id-2985) #teksty .pptp-declaration-summary {
        padding: 1rem;
    }
}

@media print {
    body:is(.page-id-908, .page-id-2985) :is(header, footer, .header_img, .breadcrumbs-wrap, .pptp-declaration-nav, .contact-trigger) {
        display: none !important;
    }

    body:is(.page-id-908, .page-id-2985) #teksty > :is(.content-section, .container-fluid) {
        padding: 0;
    }

    body:is(.page-id-908, .page-id-2985) #teksty h2 {
        break-after: avoid;
    }
}
