/* Print specific stylings */

header, nav, aside, #menu-toggle, .adblock, .sideblock, footer {
    display: none !important;
}

.video-section video {
    display: none !important;
}

.video-section::before {
    content: "Video cannot be displayed in print. Please refer to the transcript below.";
    font-style: italic;
    font-weight: bold;
    margin-bottom: 1em;
    display: block;
}

.video-transcript {
    display: block !important;
    border: none !important;
    margin-top: 1rem;
}

.video-transcript summary {
    display: none !important;
}

.transcript-content {
    display: block !important;
    background-color: white !important;
    color: black !important;
    padding: 0 !important;
}

.coffee-gallery img {
    max-width: 50%;
    height: auto;
    border: 1px solid #000;
}

body {
    font-size: 12pt;
    line-height: 1.2;
    color: #000;
    background-color: #fff;
    margin: 0;
    padding: 0;
    box-shadow: none !important;
    background-image: none !important;
}

.container {
    display: block;
    padding: 0;
    background: none !important;
}

section {
    margin-bottom: 1em;
}

h2 {
    font-size: 1.5em;
    margin-top: 0;
    page-break-after: avoid;
}

table {
    width: 100%;
    border-collapse: collapse;
    page-break-inside: auto;
}

th, td {
    border: 1px solid #000;
    padding: 0.2em;
    background: none !important;
}

a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #000;
}

.coffee-image {
    max-width: 50%;
    height: auto;
}

/* Print-specific overrides */
@media print {
    /* Remove all backgrounds and enforce black text */
    * {
        background: none !important;
        background-image: none !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
        border-color: black !important;
    }

    /* Hide UI elements or screen-only content */
    .accessibility-buttons,
    .screen-only,
    .no-print {
        display: none !important;
    }

    /* Force all <details> to be open */
    details {
        display: block !important;
    }

    details summary {
        display: none !important;
    }

    button,
    input[type="submit"],
    input[type="reset"] {
        background: none !important;
        color: black !important;
        border: 1px solid black !important;
        padding: 0.3em 0.6em !important;
        font-size: 1em;
        border-radius: 4px;
    }
}