/**
 * Cybersalt Article Actions - print view
 *
 * @copyright   (C) 2026 Cybersalt. All rights reserved.
 * @license     GNU General Public License version 2 or later
 *
 * Only loaded on the print page (tmpl=component&csprint=1).
 */

.csaa-printbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 1rem;
}

.csaa-printbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.5em 1em;
    border: 0;
    border-radius: 4px;
    background: #4b5563;
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.csaa-printbar__btn:hover { background: #374151; }

.csaa-printbar__btn:focus-visible {
    outline: 2px solid #1a56db;
    outline-offset: 2px;
}

.csaa-printbar__btn .csaa__icon {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
}

.csaa-printsource {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    color: #3f3f46;
    word-break: break-all;
}

/* Edit icons, and the empty print button some older template overrides draw. */
#pop-print,
.icons {
    display: none !important;
}

/* !important because templates often put a photo on a more specific body rule,
   and tmpl=component pages keep those page classes (asbn.ca: body.tech). */
body {
    background: #fff !important;
}

img {
    max-width: 100%;
    height: auto;
}

@media print {
    .csaa-printbar { display: none !important; }

    body {
        color: #000;
    }
}
