/* --- List of transformations --- */
.transformation-list {    
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    margin-left: 4rem;
}

.transformation-list {
    line-height: 2rem;
}

/* Base styling for transformation-content */
.transformation-content {
    border-width: 0 0 0 10px;
    border-style: solid;
    border-color: #212121;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    box-shadow: -3px 0 0 rgba(47, 47, 47, 0.4);
    background-image: linear-gradient(to right, #212121, transparent);
}

/* Color-specific border classes */
.transformation-content-lightgreen {
    border-color: lightgreen;
}
.transformation-content-yellow {
    border-color: yellow;
}
.transformation-content-darkgoldenrod {
    border-color: darkgoldenrod;
}
.transformation-content-pink {
    border-color: pink;
}

/* --- MCQ choices container --- */
.mcq-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto)); /* Allow columns to size by content */
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: row;
    gap: 10px;
    margin: 20px auto;
    justify-content: center;
    align-items: start;
    box-sizing: border-box;
    max-width: 100%; /* Prevent overflow */
}

.mcq-choice {
    display: flex;
    flex-direction: column; /* Stack label above math */
    align-items: flex-start; /* Left-align content */
    gap: 4px;
    padding: 14px;
    min-width: 0; /* Allow content-driven sizing */
    min-height: 0; /* Allow height to expand with content */
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 6px;
}

/* Explicit grid placement for 2x2 layout */
.mcq-choice[data-index="0"] {
    grid-row: 1;
    grid-column: 1;
}
.mcq-choice[data-index="1"] {
    grid-row: 1;
    grid-column: 2;
}
.mcq-choice[data-index="2"] {
    grid-row: 2;
    grid-column: 1;
}
.mcq-choice[data-index="3"] {
    grid-row: 2;
    grid-column: 2;
}

.choice-label {
    font-weight: bold;
    line-height: 1.4;
    text-align: left;
}

.choice-math {
    display: block; /* Block to allow full width */
    max-width: 100%; /* Prevent overflow */
    white-space: normal; /* Allow wrapping */
}

/* Target MathJax container */
.mcq-choices .choice-math mjx-container {
    display: block !important; /* Ensure block for proper stacking */
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    min-height: 0 !important; /* Allow natural height */
    max-width: 100% !important;
    overflow-wrap: anywhere !important; /* Break long expressions */
}

/* Responsive layout for small screens */
@media (max-width: 600px) {
    .mcq-choices {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
        margin: 10px auto;
    }

    .mcq-choice {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        min-width: 0;
        min-height: 0;
        background-color: #fff;
        border-radius: 6px;
    }

    .mcq-choice[data-index="0"],
    .mcq-choice[data-index="1"],
    .mcq-choice[data-index="2"],
    .mcq-choice[data-index="3"] {
        grid-row: auto;
        grid-column: auto;
    }

    .choice-label {
        text-align: left;
        font-weight: bold;
        line-height: 1.4;
    }

    .choice-math {
        max-width: 100%;
        white-space: normal;
    }

    .mcq-choices .choice-math mjx-container {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.4 !important;
        min-height: 0 !important;
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
    }
}

/*👉➡ Board background transparent ⬅
.plot-mount .JXGboard {
    background: transparent !important;
}

➡ Tick label text (SVG) ⬅
.plot-mount svg text.JXGtext {
    fill: #ddd !important;
}

➡ Axis lines only ⬅
.plot-mount svg line[stroke="#666666"] {
    stroke: rgba(255,255,255,0.65) !important;
}

➡ Tick mark paths only ⬅
.plot-mount svg path[stroke="#666666"] {
    stroke: rgba(255,255,255,0.45) !important;
}

➡ Tick label hover/infobox text (HTML) ⬅
.plot-mount .JXGinfobox {
color: #ddd !important;
}👈*/

/* Additional styling for Suptopic 6: Find Range, */
/* Styling for the explanation lists in the solver */
.steps-list {
    list-style-type: square;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.steps-list li {
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Custom Bullet (using a simple accent color like your blue-400) */
.steps-list li::before {
    content: "•";
    color: #60a5fa; /* Tailwind blue-400 */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Main container for the range explanation */
.boundary-analysis {
    /* background-color: #ffffff; */
    border-left: 5px solid #4a90e2; /* Trustworthy blue accent */
    padding: 5px 20px;
    margin: 5px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Individual derivation blocks (Step 1, Step 2) */
.math-derivation {
    /* background-color: #f8f9fa; */
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 18px;
    margin: 10px 0;
    overflow-x: auto; /* Crucial for long MathJax arrays */
    font-family: "Cambria", "Times New Roman", serif;
}

/* Header styling within derivations */
.math-derivation b {
    display: block;
    color: #3671ad;
    margin-bottom: 12px;
    font-size: 1.05rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}