/* Half-Sheet Print Layout — two 5.5" × 8.5" cards printed side by side on a landscape letter page */

.print-sheet-half {
    display: none;
    order: -1;
}

@media screen {
    body[data-preview-size="half"] .print-sheet-half {
        /* Shows Half Sheet */
        display: none;
    }

    body:not([data-preview-size="half"]) .print-sheet-half {
        display: none;
    }

    .print-half-page {
        max-width: 11in;
        margin: 0 auto 1rem;
        border: 1px solid #ddd;
    }

    .print-half-card {
        min-height: 5.5in;
    }
}

/* ── Page wrapper: one landscape page = one flex row of two half-cards ── */

.print-half-page {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    background: #fff;
}

/* ── Individual half-card (mirrors full-sheet layout at half scale) ── */

.print-half-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #101010;
    border: 1px solid #ddd;
    padding: 0.4in 0.35in;
    box-sizing: border-box;
}

.print-half-tiles {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.print-half-tile {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 0.1rem;
    background: #fff;
}

.print-half-tile-meta {
    font-size: 0.58rem;
    margin-bottom: 0.04rem;
}

.print-half-tile-meta .verse-date,
.print-half-tile-meta .verse-theme {
    padding: 0 0.15rem;
}

.print-half-card-empty {
    border: 1px dashed #ccc;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 12px,
        #f5f5f5 12px,
        #f5f5f5 24px
    );
}

/* ── Cut-line divider between the two half-cards ── */

.print-half-divider {
    width: 0.5in;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
}

.print-half-divider::after {
    content: "";
    position: absolute;
    top: 5%;
    bottom: 5%;
    left: 50%;
    border-left: 1px dashed #bbb;
}

/* ── Header inside each half-card ── */

.print-half-header {
    text-align: center;
    padding-bottom: 0.15rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid #ddd;
}

.print-half-brand-row {
    justify-content: center;
    margin-bottom: 0.2em;
}

.print-half-logo {
    width: 30px !important;
    height: 30px !important;
}

.print-half-brand {
    font-size: 1rem !important;
    margin: 0 !important;
}

.print-half-activity {
    font-size: 0.62rem;
    font-weight: 600;
    margin: 0;
    color: #444;
}

.print-half-sep {
    font-weight: 400;
    color: #888;
}

/* ── Verse content block inside each half-card ── */

.print-half-content {
    flex-direction: row;
    align-items: flex-start;
    border: 1px solid #111;
    border-radius: 5px;
    margin-top: 0;
}

.print-half-content .print-verse-text {
    flex: 1;
    margin: 0.15rem;
    padding: 0.1rem;
}

.print-half-content .print-verse-text > .print-verse-reference {
    font-size: 0.66rem;
    margin: 0;
}

.print-half-content .print-verse-text > .print-verse-passage {
    font-size: 0.57rem;
    line-height: 1.1;
    margin: 0.02rem 0 0;
}

.print-half-qr-wrapper {
    margin: 0.12rem 0.12rem 0.12rem 0;
    padding: 0.08rem;
    border: 1px solid #111;
    border-radius: 4px;
    align-self: center;
}

.print-half-qr {
    padding: 0.06rem;
    border-width: 1px;
}

.print-half-qr-labels {
    margin-top: 0.05rem;
    gap: 0.18rem;
}

.print-half-qr-labels .print-verse-qr-label {
    font-size: 0.44rem;
}

/* ── Print media rules ── */

@media print {
    /* Show half-sheet section only when half-sheet mode is active */
    body[data-print-size="half"] .print-sheet-half {
        display: block;
    }

    /* Suppress full-sheet section in half-sheet mode */
    body[data-print-size="half"] .print-sheet {
        display: none !important;
    }

    .print-half-page {
        min-height: 8in;
        page-break-after: always;
        break-after: page;
    }

    .print-half-page:last-child {
        page-break-after: auto;
        break-after: auto;
    }

    .print-half-card {
        min-height: 8in;
        border: none;
        padding: 0.2in;
    }

    .print-half-divider {
        width: 0.5in;
    }

    .print-half-card-empty {
        background: none;
        border: none;
    }
}
