/* Cite and print on /facility/ and /operator/ pages (inc/press-tools.php, js/press-tools.js). */

.kop-press {
    margin: 2.5rem 0 0;
    padding: 1.1rem 1.25rem;
    background: var(--kop-sand, #F2EEDF);
    border: 1px solid var(--kop-border-secondary, #d9d3c0);
    border-radius: 8px;
    color: var(--kop-text-primary, #1a1d33);
}

.kop-press h2.kop-press-h {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
    color: var(--kop-midnight, #000435);
}

.kop-press-cite {
    margin: 0 0 0.8rem;
    padding: 0.7rem 0.85rem;
    background: var(--kop-white, #fff);
    border-left: 3px solid var(--kop-teal, #33A7B5);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--kop-text-primary, #1a1d33);
    overflow-wrap: anywhere;
    user-select: all;
}

.kop-press-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0 0 0.8rem;
}

button.kop-press-btn,
button.kop-press-btn:visited {
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--kop-navy, #000080);
    border-radius: 6px;
    background: var(--kop-white, #fff);
    color: var(--kop-navy, #000080);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: none;
}

button.kop-press-btn:hover,
button.kop-press-btn:focus,
button.kop-press-btn:active {
    background: var(--kop-navy, #000080);
    color: var(--kop-white, #fff);
    border-color: var(--kop-navy, #000080);
}

button.kop-press-btn:focus-visible {
    outline: 3px solid var(--kop-focus-color, #33A7B5);
    outline-offset: 2px;
}

.kop-press-status {
    font-size: 0.9rem;
    color: var(--kop-text-muted, #4A5568);
}

.kop-press-note {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--kop-text-muted, #4A5568);
}

.kop-press-note a {
    color: var(--kop-navy, #000080);
}

/* Only on paper. */
.kop-press-stamp {
    display: none;
}

@media print {
    @page {
        margin: 1.6cm 1.5cm;
    }

    html,
    body,
    .site,
    #wrapper,
    .content-bg,
    .kop-facility-profile {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
    }

    /* The site around the record, and everything only a screen can use. */
    #masthead,
    .site-header,
    #mobile-header,
    #colophon,
    .site-footer,
    #secondary,
    .sidebar-inner-wrap,
    .popup-drawer,
    .drawer-overlay,
    #fancybox-loading,
    #fancybox-overlay,
    .kop-global-search__trigger,
    .kop-fp-jump,
    .kop-fp-rail h2:has(+ .kop-fp-rail-text),
    .kadence-breadcrumbs,
    #kt-scroll-up,
    #kt-scroll-up-reader,
    .addtoany_share_save_container,
    .a2a_kit,
    .kop-ie-pen,
    .kop-ie-bar,
    .kop-ie-layer,
    .kop-bug-report-link,
    .kop-network-embed,
    .kop-fp-rail-actions,
    .kop-fp-rail-text,
    .kop-press-actions,
    .kop-fp-footer a[rel="nofollow"],
    .kop-facility-profile button,
    .kop-facility-profile summary::marker {
        display: none !important;
    }

    .kop-press-stamp {
        display: block;
        margin: 0 0 1rem;
        font-size: 8.5pt;
        color: #333;
        overflow-wrap: anywhere;
    }

    .site-main,
    .content-container,
    .kop-facility-profile {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* One column: the facts rail sits above the record. */
    .kop-fp-rail {
        float: none !important;
        width: auto !important;
        margin: 0 0 1rem !important;
    }

    .kop-facility-profile,
    .kop-facility-profile p,
    .kop-facility-profile li {
        font-size: 10.5pt;
        line-height: 1.45;
    }

    .kop-facility-profile h1,
    .kop-facility-profile h2,
    .kop-facility-profile h3 {
        color: #000 !important;
        break-after: avoid;
    }

    .kop-facility-profile a {
        color: #000 !important;
        text-decoration: underline;
    }

    /* Paper cannot follow a link: write out where each outside one goes. */
    .kop-facility-profile a[href^="http"]:not([href*="kidsoverprofits.org"])::after {
        content: " <" attr(href) ">";
        font-size: 8pt;
        font-weight: normal;
        color: #333;
        overflow-wrap: anywhere;
        word-break: break-all;
    }

    .kop-fp-vcard,
    .kop-fp-news > li,
    .kop-fp-timeline > li,
    .kop-fp-staff > li,
    .kop-fp-people > li,
    .kop-press {
        break-inside: avoid;
    }

    .kop-press {
        background: #fff !important;
        border: 1px solid #999;
    }

    .kop-press-cite {
        border-left-color: #666;
        user-select: auto;
    }
}
