.strategy-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.9rem;
    background-color: rgba(0,0,0,0.2);
    border: 2px solid var(--border-brown);
    display: table;
}

/* allow horizontal scroll on the container if needed */
.content-block { overflow-x: auto; }

.strategy-table th, .strategy-table td {
    border: 1px solid var(--border-brown);
    padding: 8px;
    text-align: center;
    font-weight: bold;
    min-width: 40px;
    transition: background-color 0.2s ease-in-out;
}

.strategy-table th {
    background-color: rgba(0,0,0,0.3);
    color: var(--gold-accent);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.strategy-table tbody tr:hover {
    background-color: rgba(255,255,255,0.1);
}

.highlight-col {
    background-color: rgba(100,120,150,0.3);
}

/* Move Colors from the calculator for consistency */
.hit { background-color: #4ade80; color: #052e16; }
.stand { background-color: #f87171; color: #450a0a; }
.double { background-color: #60a5fa; color: #0b254b; }
.split { background-color: #facc15; color: #3b2a00; }

.faq-section .faq-question {
    font-weight: bold;
    color: var(--gold-accent);
    margin-top: 1.5rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.download-buttons button {
    background-color: var(--felt-green);
    color: #fff;
    border: 1px solid var(--gold-accent);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.download-buttons button:hover {
    background-color: var(--gold-accent);
    color: var(--dark-text);
}


/* --- NEW, CORRECTED STYLES FOR PDF PRINTING --- */
@media print {
    /* Hide all elements that are not part of the content you want to print */
    header, 
    footer, 
    .page-wrapper > h1, 
    .download-buttons, 
    .cta-button,
    .faq-section,
    .content-block .content-title,
    .content-block p {
        display: none !important;
    }

    /* Make sure the tables and their titles ARE visible */
    .strategy-table,
    .content-block .content-subtitle,
    .content-block b,
    .content-block table,
    .content-block tr,
    .content-block td,
    .content-block th {
        display: revert !important;
        visibility: visible !important;
    }
    
    /* Reset page styles for a clean print layout */
    body, .page-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: #fff !important;
        color: #000 !important;
    }
    
    .content-block {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 0 1.5rem 0 !important;
        background: none !important;
    }
    
    /* Ensure tables print correctly */
    .strategy-table {
        display: table !important;
        overflow-x: hidden !important;
        page-break-inside: auto;
        font-size: 8pt;
    }
    .strategy-table tr { page-break-inside: avoid; }
    .strategy-table tr:first-child th,
    .strategy-table th:first-child,
    .strategy-table td:first-child { background: #eee !important; }
    .strategy-table th, .strategy-table td {
        border: 1px solid #ccc;
    }

    p[style*="margin-top"], .content-subtitle[style*="margin-top"] {
        margin-top: 1.5rem !important;
    }
}

/* Sticky header (first row) */
.strategy-table tr:first-child th {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: rgba(0,0,0,0.3);
}

/* Sticky first column */
.strategy-table th:first-child,
.strategy-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: rgba(0,0,0,0.25);
}

/* Improve legibility on small screens */
@media (max-width: 640px) {
    .strategy-table th, .strategy-table td {
        padding: 6px;
        min-width: 36px;
        font-size: 0.85rem;
    }
}
