.guide-header {
    background: #111;
    padding: 60px 5%;
    border-bottom: 2px solid var(--primary);
    text-align: center;
}

.guide-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 5%;
    max-width: 1200px;
    margin: auto;
}

.guide-content h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-top: 40px;
}

.guide-content p {
    line-height: 1.8;
    color: #ccc;
}

/* Strategy Table Styling */
.table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
}

.strategy-table {
    width: 100%;
    border-collapse: collapse;
    background: #222;
    border-radius: 8px;
    overflow: hidden;
}

.strategy-table th, .strategy-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #333;
}

.strategy-table th {
    background: #333;
    color: var(--primary);
}

.row-label {
    background: #333;
    font-weight: bold;
    color: #fff;
}

/* Color coding for the chart cells */
/* Updated, stronger color rules */
td.action-h { background-color: #ff4d4d !important; color: white !important; font-weight: bold; }
td.action-s { background-color: #2ecc71 !important; color: white !important; font-weight: bold; }
td.action-d { background-color: #f1c40f !important; color: black !important; font-weight: bold; }
td.action-p { background-color: #3498db !important; color: white !important; font-weight: bold; }


.legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 5px;
}

.sidebar-box {
    background: #222;
    padding: 20px;
    border-radius: 10px;
    position: sticky;
    top: 20px;
}


/* Color for Splitting */
.strategy-table td:contains("P") {
    background-color: rgba(52, 152, 219, 0.2); /* Soft Blue */
    color: #3498db;
    font-weight: 800;
}

/* Specific styling for the Pairs Table row labels */
.pairs-table .row-label {
    background: #111;
    border-right: 2px solid var(--primary);
}