/*
 * Butte College — Counseling Appointment Router (print stylesheet)
 *
 * When the student clicks "Print summary", we promote the hidden
 * .bc-counseling-router__print-only block and hide everything else on the
 * page. The result is a single-page handout with:
 *
 *   - Butte College header
 *   - Student's selections summary
 *   - Recommended appointment type + duration
 *   - Where to go (office, location, phone, email)
 *   - Booking URL (text)
 *   - QR code linking back to the resource hub page
 *   - Generated date
 *
 * Tested at letter (8.5x11) portrait. Margins keep the artifact on one page.
 */

@media print {
    /* Hide the entire page... */
    body * {
        visibility: hidden !important;
    }

    /* ...except the print artifact and its children. */
    .bc-counseling-router__print-only,
    .bc-counseling-router__print-only * {
        visibility: visible !important;
    }

    /* Promote the artifact from screen-reader-only to a full block layout. */
    .bc-counseling-router__print-only {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        padding: 0.5in !important;
        margin: 0 !important;
        overflow: visible !important;
        clip: auto !important;
        white-space: normal !important;
        background: #ffffff !important;
        color: #000000 !important;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 11pt;
        line-height: 1.4;
    }

    @page {
        margin: 0.4in;
        size: letter portrait;
    }

    /* Don't print page URLs after links — they're already shown as text. */
    .bc-counseling-router__print-only a::after {
        content: "" !important;
    }
}

/* ----- Print artifact layout (applies to print + the live preview) ----- */

.bc-counseling-router__print-doc {
    max-width: 7.5in;
    margin: 0 auto;
}

.bc-counseling-router__print-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 3px solid #000000;
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.bc-counseling-router__print-brand {
    font-size: 12pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.bc-counseling-router__print-brand small {
    display: block;
    font-size: 9pt;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 0.15rem;
    color: #333333;
}

.bc-counseling-router__print-date {
    font-size: 9pt;
    color: #333333;
    margin: 0;
    text-align: right;
}

.bc-counseling-router__print-h1 {
    font-size: 18pt;
    margin: 0 0 0.4rem;
    line-height: 1.15;
}

.bc-counseling-router__print-lede {
    font-size: 11pt;
    margin: 0 0 0.85rem;
    color: #222222;
}

.bc-counseling-router__print-section {
    margin-bottom: 0.85rem;
}

.bc-counseling-router__print-section h2 {
    font-size: 11pt;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.3rem;
    border-bottom: 1px solid #999999;
    padding-bottom: 0.15rem;
}

.bc-counseling-router__print-section dl {
    display: grid;
    grid-template-columns: 1.5in 1fr;
    gap: 0.15rem 0.5rem;
    margin: 0;
}

.bc-counseling-router__print-section dt {
    font-weight: 700;
}

.bc-counseling-router__print-section dd { margin: 0; }

.bc-counseling-router__print-grid {
    display: grid;
    grid-template-columns: 1fr 1.6in;
    gap: 1rem;
    align-items: start;
}

.bc-counseling-router__print-qr {
    text-align: center;
    border: 1px solid #cccccc;
    padding: 0.4rem;
    border-radius: 4px;
}

.bc-counseling-router__print-qr canvas,
.bc-counseling-router__print-qr svg,
.bc-counseling-router__print-qr img {
    display: block;
    margin: 0 auto;
    width: 1.4in;
    height: 1.4in;
}

.bc-counseling-router__print-qr small {
    display: block;
    margin-top: 0.3rem;
    font-size: 8pt;
    color: #333333;
    word-break: break-all;
}

.bc-counseling-router__print-footer {
    margin-top: 1rem;
    padding-top: 0.4rem;
    border-top: 1px solid #999999;
    font-size: 8pt;
    color: #444444;
}
