/*
 * CONSOLIDATED CSS
 * Grouped by selector, maintaining all original properties and names.
 */

/* GENERAL / RESET */
:root {
    --color_Dark1: #1e1e1e;
    --color_Darkblue: #0b1020; /* NOTE: semicolon added after previous line */
    --sidebar_width: 350px;
    --sidebar_width_closed: 50px;
    --right_panel_width: calc(var(--sidebar_width) / 2); /* Changed to use var() for calculation */
    --color_Block: #1e1e1e;
    --color_Pad: lavender;

    --padding-tb: 10px;
    --padding-lr: 12px;
    --bg-color: darkred;
    --font-size: 1.2rem;
    --margin-top: 1.5rem;
    --margin-bottom: 1.5rem;

    /* math keyboard buttons */
    --button-padding-vertical: 4px;
    --button-padding-horizontal: 2px;
    --button-font-size: 12px;
    --button-border-color: #ccc;
    --button-bg-color: #eee;
    --button-text-color: black;
    --button-border-radius: 4px;
    --button-box-shadow: 4px 4px 4px gray;
    --button-min-width: 30px;
    --button-min-height: 30px;

    /* Solution steps intro block: cap drop, cursive font, float-right */
    --intro-bg: #242833;
    --intro-text: #e8e8ee;
    --intro-border: #2f3744;
    --badge-size: 3.3rem; /* ≈1.5× */
    --intro-ink: #6e90e7;
    --intro-drop: #0e44af98;

    /* Final Answer Table */
    --row-gap: 16px;
    --eq-gap: .1ch; /* keep as default */
    --pill-gap-x: .8ch;
    --pill-shadow: 0 6px 16px rgba(238, 224, 224, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color_Dark1);
    font-size: 1rem;
    height: 100vh;
}

/* MAIN LAYOUT */
.main {
    position: relative;
    min-height: 100vh;
    border: solid grey; /* to be removed*/
    background-color: cadetblue;
    left: var(--sidebar_width);
    width: calc(100% - 1.5 * var(--sidebar_width));
    transition: all .5s ease;
    font-family: "Artifakt Element", sans-serif;
}

.sidebar.close ~ .main {
    left: var(--sidebar_width_closed);
    width: calc(100% - var(--sidebar_width_closed) - 0.5 * var(--sidebar_width));
}

/* MEDIA QUERIES for LAYOUT */
@media screen and (max-width: 1400px) {
    .main {
        position: relative;
        left: var(--sidebar_width);
        width: calc(100% - var(--sidebar_width) - var(--sidebar_width_closed));
    }

    .sidebar.close ~ .main {
        left: var(--sidebar_width_closed);
    }
}

@media screen and (max-width: 1200px) {
    .main {
        position: relative;
        left: var(--sidebar_width_closed);
        width: calc(100% - 2 * var(--sidebar_width_closed));
    }

    .sidebar.close ~ .main {
        width: calc(100% - 2 * var(--sidebar_width_closed));
    }
}

/* GENERAL STYLES */
.highlight-text {
    color: yellow;
    font-weight: bold;
    font-style: italic; /* From first block */
    /* font-weight: bold; - Duplicate, kept above */
    /* color: yellow; - Duplicate, kept above */
}

.subTitle {
    color: white;
    background-color: var(--color_Block);
    padding: 10px 10px 5px 10px;
    display: inline-block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-weight: 600;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

.subTitle .emoji {
    font-size: 1.4em;   /* or 2em, etc. */
    line-height: 1;     /* keeps it vertically aligned */
    display: inline-block;
    vertical-align: -0.12em;
}

.fa-check {
    font-size: 1.5rem;
    color: green;
}

/* PROBLEM SECTION */
.problem {
    border-bottom: 2px solid black;
}

.problem__question-prompt {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;

    background-color: var(--color_Block);
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-bottom: 1.5rem;

    /* added */
    position: relative;
}

/* the button itself */
/*👉.problem__skip-btn {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    border: none;
    border-radius: 9999px;
    background: var(--color_Accent, #3b82f6);
    color: #fff;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}👈*/

.problem__skip-btn {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    border: none;
    border-radius: 9999px;
    background: var(--color_Accent, #3b82f6);
    color: #fff;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.problem__skip-btn:hover,
.problem__skip-btn:focus-visible {
    background: color-mix(in srgb, var(--color_Accent, #3b82f6) 85%, #ffffff);
    outline: none;
}

.problem__skip-btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.problem__question {
    padding: 1rem;
    border-radius: 10px;
    background-color: var(--color_Pad);
    width: 90%;
    margin-top: 1.5rem;
}

.problem__question p {
    margin: 0 1rem 1rem 1rem;
    line-height: 2rem;
    align-self: start;
}

.problem__holder {
    margin: 1.5rem 3rem 0 3rem;
    position: relative;
}

.problem__holder .level-index {
    position: absolute;
    right: 0;
}

.problem__multiple-choices {
    margin: 1rem 3rem 0;
}

.problem__multiple-choices ol li {
    padding: 6px;
}

.problem__answer-form {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.problem__answer-form #input-form {
    background-color: var(--color_Pad);
    padding: 1rem;
    border-radius: 10px;
}

.problem__answer-form #input-form.grid-layout {
    display: grid !important; /* Override flex */
    grid-template-columns: inherit; /* Use JS-defined columns */
    align-items: center;
    justify-content: center;
    background-color: var(--color_Pad);
    column-gap: 6px;
    row-gap: 10px;
    padding: 1rem;
    border-radius: 10px;
}

.problem__answer-form #input-form.table-layout {
    display: flex; /* For table layouts */
    align-items: center;
    justify-content: center;
    background-color: var(--color_Pad);
    column-gap: 6px;
    row-gap: 10px;
    padding: 1rem;
    border-radius: 10px;
}

.problem__answer-form button {
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    background-color: aliceblue;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
    transition: background-color 0.4s ease;
}

.problem__answer-form label {
    font-size: 1rem;
    font-weight: 800;
    text-align: right;
}

.problem__answer-form .fa-check {
    margin-left: 0.5rem;
}

.problem__answer-form .clear-mathfield {
    cursor: pointer;
    font-size: 1.2rem;
    color: red;
    border: 1px solid #000;
    aspect-ratio: 1; /* Forces square shape */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.problem__answer-form .math-field {
    border: 1px solid #ccc;
    border-radius: 4px;
    min-height: 25px;
    padding: 8px;
    background-color: #fff;
}

.problem__answer-form .input-field-standard {
    font-size: 1.2rem;
    padding: 5px 8px;
    width: 100%;
}

.problem__examples-table {
    text-align: left;
    border-collapse: collapse;
    background-color: #f6f6f6;
    min-width: 400px;
    font-size: 0.8rem;
    margin: 1rem 2rem 1.5rem;
}

.problem__examples-holder {
    position: relative;
}

.problem__examples-holder img {
    position: absolute;
    top: 1px;
    left: -0.1rem;
    z-index: 1;
    background-color: darkgrey;
}

.problem__answer-form #submitBtnDiv {
    justify-self: end !important;
    padding-top: 8px;
}

/* INPUT FORM ELEMENTS AND LAYOUTS */
.default-table-header {
    text-align: right;
    padding-right: 2px;
    vertical-align: middle;
}

.header-with-flag {
    padding-right: 18px
}

.header-with-icon {
    padding-right: 36px;
}

.table-layout .feedback-icon {
    margin-left: 0.5rem;
    font-size: 1.2rem;

    display: none;
    align-items: center;
    justify-content: center;
}

/* When UIManager adds one of these classes, the flag shows */
.feedback-icon.correct,
.feedback-icon.incorrect,
.feedback-icon.missed {
    display: inline-flex;
}

/* Divider for forms/radio buttons */
.divider {
    grid-column: 1 / -1;
    border-top: 3px solid #333;
    width: 100%;
    box-sizing: border-box;
    height: 3px;
    margin-top: 0.8rem;
}

/* Radio-button input form */
.radio-item {
    --sel-bg: #fff2f2;
    --sel-border: crimson;
    padding: 0.5rem;
    border: 1px solid black;
    border-radius: 6px;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.radio-item:hover {
    background-color: lightgray;
    border-radius: 4px;
}

.radio-item:has(> input[type="radio"]:checked) {
    background-color: var(--sel-bg);
    border-color: var(--sel-border);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--sel-border) 25%, transparent);
}

.radio-item:has(> input[type="radio"]:focus-visible) {
    outline: 2px solid var(--sel-border);
    outline-offset: 2px;
}

.radio-item:has(> input[type="radio"]:checked) label {
    font-weight: 700;
}

input[type="radio"] {
    accent-color: #d32f2f;
}

/* Hide native radio buttons – keep only your custom circles */
input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
}

.radio-wrapper {
  display: inline-block; /* Allows the element to size to its content */
  width: 1.7rem; /* Adjust as needed for the desired circle size */
  height: 1.7rem; /* Must match width for a perfect circle */
  border-radius: 50%; /* Makes the square element circular */
  background-color: #007bff; /* Example background color */
  display: flex; /* Use flexbox for easy centering of the letter */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  margin-right: 8px;
}

.radio-prefix {
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

.radio-input {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.radio-text {
  display: inline-block;
}


/* INPUT TABLE specific styling */
#input-table {
    --clear-width: 14px;
    --cell-gap: 0.5rem;
    border-collapse: separate; /* Original from final table block */
    border-spacing: 0 10px; /* vertical gap only */
    border-collapse: collapse; /* From table grid block */
    border-spacing: 0;
    border: 1px solid #333;
}

#input-table th,
#input-table td {
    border: 1px solid #333;
    padding: 4px 8px; /* Tweak as needed */
    /* table-layout specific styles */
}

#input-table .input-wrap {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) auto auto;
    column-gap: 0;
    align-items: center;
    /* outline: 1px solid #1e90ff; - Commented in original */
}

#input-table td:has(.feedback-icon.correct,
                   .feedback-icon.incorrect,
                   .feedback-icon.missed),
#input-table .input-wrap:has(.feedback-icon.correct,
                             .feedback-icon.incorrect,
                             .feedback-icon.missed) {
    --clear-width: 22px;
}

#input-table .clear-btn,
#input-table .clear-spacer {
    width: var(--clear-width);
    min-width: var(--clear-width);
    padding: 0;
    box-sizing: content-box;
    margin-left: var(--cell-gap);
}

#input-table .clear-spacer {
    visibility: hidden;
    pointer-events: none;
}

#input-table .slot-input > * {
    width: 100%;
    max-width: 100%;
}

.input-wrap > .math-field,
.input-wrap > input,
.input-wrap > select,
.input-wrap > .clear-btn,
.input-wrap > .clear-mathfield,
.input-wrap > .clear-spacer,
.input-wrap > .feedback-icon {
    outline: 1px dashed #d33;
}

/* SUBMIT BUTTON */
#submit-button {
    background-color: lightgreen;
    padding: 10px 12px 8px 12px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    width: fit-content; /* From radio button block */
}

#submit-button:hover {
    background-color: lightseagreen;
    transition: background-color 0.4s ease;
}

/* VALIDATION AND ERROR MESSAGES */
#validation-error-messages {
    white-space: pre-wrap;
    color: pink;
    display: none;
    margin-top: 1rem;
    margin-bottom: 1rem;
    max-width: 80%;
}

#validation-error-messages[style*="block"] {
    display: block;
}

#validation-error-messages details {
    margin-top: 10px;
}

#validation-error-messages summary {
    cursor: pointer;
    font-weight: bold;
    margin-bottom:10px;
}

#validation-error-messages details > ul > li {
    margin-bottom: 10px;
}

#validation-error-messages details[open] {
    padding-bottom: 10px;
}

/* SOLUTION TIPS SECTION */
.solution-tips {
    border-bottom: 2px solid black;
    margin-top: 1.5rem;
    font-size: 18px;
}

.solution-tips_holder {
    margin-left: 3rem;
}

.solution-tips__content-holder {
    margin-top: 0;
    margin-bottom: 1.5rem;
    margin-right: 3rem;
    background-color: var(--color_Block);
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-repeat: no-repeat;
    background-size: 100% 96%;
    background-position: center;
    max-height: 1000px;
}

.solution-tips__content {
    background-color: transparent;
    display: none;
    padding: 1rem 2rem 1rem;
}

.solution-tips__content-wrapper {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 0 1rem;
    border-left: 1rem solid indianred;
    max-height: 930px;
    overflow: auto;
    border-bottom-right-radius: 12px;
    border-top-right-radius: 12px;
}

.solution-tips__content ol {
    line-height: 2rem;
    list-style-type: square;
    margin: 0.5rem 1.5rem 0.5rem 1.5rem;
}

.solution-tips__content :is(ol, ul) li:not(:last-child) {
    margin-bottom: 0.5rem;
}

.tips-content {
    background-color: cornflowerblue;
    padding: 1.5rem 2rem;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    line-height: 2rem;
    margin-top: 4px;
}

.tips-section {
    display: flow-root;
    padding: 0.5rem 0.5rem 0.75rem;
}

.tips-heading {
    background-image: linear-gradient(to top, cornflowerblue, lightblue);
    padding: 5px 8px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.tips-title {
    margin-top: 1.5rem;
}

/* SOLUTION DETAILS SECTION */
.solution-details {
    border-bottom: 2px solid black;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    color: white;
}

.solution-details__holder {
    margin-left: 3rem;
    margin-top: 1rem;
    visibility: visible;
}

.solution-details__short-answer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    align-items: center;
    margin-right: 3rem;
    background-color: var(--color_Block);
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.solution-details__short-answer p {
    color: white;
    line-height: 2rem;
    text-align: center;
}

.solution-details__short-answer-wrapper {
    display: flex;
    gap: 0;
}

#solution-details__short-answer {
    padding: 0 1rem;
    border-radius: 12px;
}

.solution-details__short-answer-wrapper img {
    height: 24px;
    align-self: center;
}

.solution-details__details-holder {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.solution-details__steps-holder {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    background-color: var(--color_Block);
    margin-right: 3rem;
}

.solution-details__steps {
    display: flex;
    flex-direction: column;
    margin: 0 2rem;
    padding: 1.5rem 0;
}

.solution-details__steps div .steps-title {
    margin-left: 0;
}

.solution-details__steps p {
    padding-bottom: 0.2rem;
    padding-top: 0.5rem;
    line-height: 2rem;
}

.solution-details__steps .solution-step {
    margin-top: 0;
    margin-bottom: 0;
}

/* SOLUTION STEPS */
.steps-heading {
    /*👉background-image: linear-gradient(to right, darkkhaki, khaki);👈*/
    /* background-image: linear-gradient(to right, lightgray, gray); */
    background-color: lightgray;
    padding: 4px 10px;
    font-size: large;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 2px 2px 2px gray;
    /* color: #990000; */
    color: black;
}

.steps-title {
    margin-bottom: 0;
}

.steps-title2 {
    margin-top: 1.5rem;
}

.solution-step .solution-commentary p.steps-title {
    padding-top: 1rem;
}

.solution-step {
    margin-block: 0.5rem;
    display: grid;
    row-gap: 0rem;
}

.artifact-center {
    display: flex;
    justify-content: center;
}

.solution-step--final .solution-artifact {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Solution Steps Intro Block */
.sol-intro-div {
    background: var(--intro-bg);
    color: var(--intro-text);
    border: 1px solid var(--intro-border);
    border-radius: 12px;
    padding: 0.875rem 1.25rem 1rem;
    margin-block: 1rem;
    overflow: visible;
    box-shadow:
        0 6px 12px rgba(255, 255, 255, .10);
}

.sol-intro-div::after {
    content: "";
    display: block;
    clear: both;
}

.sol-intro-para {
    margin: .25rem 0;
    font-family: "Patrick Hand", ui-rounded, system-ui, Arial, sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    letter-spacing: 0.2px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-variant-numeric: lining-nums;
    color: var(--intro-ink, var(--intro-text));
}

.sol-intro-para::first-letter {
    color: var(--intro-drop) !important;
    font-size: 1.0rem; /* Fallback size */
}

/* Float-right emoji badge */
.intro-badge {
    float: right;
    display: grid;
    place-items: center;
    width: var(--badge-size);
    height: var(--badge-size);
    margin: .5rem 0 .6rem 1rem;
    border-radius: 50%;
    line-height: 1;
    font-size: calc(var(--badge-size) * 0.8);
    shape-outside: circle(50%);
    -webkit-shape-outside: circle(50%);
    pointer-events: none;
}

/* Drop cap — modern + fallback */
@supports (initial-letter: 2) {
    .sol-intro-para::first-letter {
        initial-letter: 2;
        margin: 0 12px 6px 0;
        color: #d7dbe7;
        font-weight: 700;
        text-shadow:
            1px 1px 0 rgba(255, 255, 255, .25),
            2px 2px 0 rgba(255, 255, 255, .18),
            3px 3px 0 rgba(255, 255, 255, .12);
        color: color-mix(in srgb, var(--intro-ink, #e8e8ee), #fff 15%);
    }
}

@supports not (initial-letter: 2) {
    .sol-intro-para::first-letter {
        float: left;
        font-size: 1.9em;
        line-height: 1;
        margin: 0 12px 4px 0;
        color: #d7dbe7;
        font-weight: 700;
        text-shadow:
            1px 1px 0 rgba(255, 255, 255, .25),
            2px 2px 0 rgba(255, 255, 255, .18),
            3px 3px 0 rgba(255, 255, 255, .12);
        color: color-mix(in srgb, var(--intro-ink, #e8e8ee), #fff 15%);
    }
}

/* FINAL ANSWER TABLE */
.final-answer-row > td {
    vertical-align: baseline;
}

.final-answer-name-cell {
    text-align: right;
    padding-right: 0;
    white-space: nowrap;
    line-height: 1;
}

.final-answer-equals-cell {
    padding-left: var(--eq-gap-left, var(--eq-gap));
    padding-right: var(--eq-gap-right, var(--eq-gap));
    white-space: nowrap;
    text-align: center;
}

.final-answer-value {
    display: inline-flex;
    line-height: 1;
    margin-left: 0;
    margin-right: var(--pill-gap-x);
    padding-block: 0.5rem;
    padding-inline: 8px;
    background: var(--bg-color, darkred);
    font-size: var(--font-size, 1.2rem);
    border-radius: 6px;
    box-shadow: var(--pill-shadow);
}

.final-answer-value-cell {
    overflow: visible;
}

.final-answer-table {
    border-collapse: separate;
    border-spacing: 0 var(--row-gap, 4px);
}

.final-answer-unit {
    font-size: 1rem;
}

/* ANIMATIONS / UTILITIES / OTHER */
.collapse-btn {
    width: 1.4rem;
    height: 1.4rem;
    padding: 0.6rem;
    position: relative;
    transform: rotate(90deg);
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.tip-btn {
    transform: rotate(0deg);
}

.fa-greater-than {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.greater-than-btn {
    display: flex;
    align-items: center;
}

.greater-than-btn h3 {
    margin-left: 10px;
}

.next-btn-holder {
    display: none;
    text-align: center;
    position: fixed;
    top: 50vh;
    right: 0;
    transform: translateY(-50%);
    transition: transform 0.5s ease-in-out;
}

#next-btn {
    font-size: 1.5rem;
    padding: 6px 10px;
    border-top-left-radius: 15px;
    background-color: lightpink;
}

#next-btn:hover {
    background-color: #DB7093;
    transition: transform 0.4s ease;
}

/* FLYOUT-BOX ANIMATIONS */
.flyout-box {
    width: 15rem;
    height: 20rem;
    position: absolute;
    margin: 0;
    top: 50vh;
    left: 50vw;
    animation: cartoon 3s 1;
    transform: translate3d(-100vw, -50%, 0) scale(1, 1) rotate(360deg);
    animation-play-state: paused;
}

.flyout-box img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

@keyframes cartoon {
    0% {
        transform: translate3d(-100vw, -50%, 0) scale(0.2, 0.2) rotate(360deg);
    }
    30% {
        transform: translate3d(-50%, -50%, 0) scale(0.5, 0.5) rotate(0deg);
    }
    50% {
        transform: translate3d(-50%, -50%, 0) scale(1.2, 1.2) rotate(0deg);
    }
    70% {
        transform: translate3d(-50%, -50%, 0) scale(0.5, 0.5) rotate(0deg);
    }
    100% {
        transform: translate3d(-100vw, -50%, 0) scale(0.2, 0.2) rotate(360deg);
    }
}

/* Infobox (Details element styling) */
.infobox summary {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    gap: 0.1rem;
    line-height: 1;
    cursor: pointer;
}

.infobox summary::-webkit-details-marker,
.infobox summary::marker {
    display: none;
}

.infobox .info,
.infobox .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    font-size: 1.2rem;
    line-height: 1.2rem;
}

.infobox ul {
    margin-left: 1rem;
    margin-top: 0.5rem;
    list-style-type: square;
    line-height: 2rem;
    color: brown;
    border-left: 3px solid dodgerblue;
    padding-left: 1.5rem;
}

/* Mathjax equation numbered comments */
.eq-comment-wrapper {
    margin: .5rem 1.5rem .5rem 1rem;
    /* border-top: 1px solid lightgray; */
    /* ⬇️ add this: bar to the left of all numbers */
    border-left: 3px solid #2a3dcc;
    padding-left: 0.75rem;  /* small gap between bar and numbers */
    border-radius: 10px;
}

.eq-comment-wrapper .eq-comments {
    list-style: none;
    counter-reset: item;
    line-height: 2rem;
    color: gray;
}

.eq-comment-wrapper .eq-comments li {
    text-indent: -30px;
    margin: 0.5rem 1rem 0.5rem 1.5rem;
}

.eq-comment-wrapper .eq-comments li:before {
    counter-increment: item;
    content: "(" counter(item) ")";
    margin-right: 0.5rem;
    color: gray;
}

/* Column Lite Unit Background */
.columnLite-unit {
    background:
        radial-gradient(
            ellipse closest-side at 50% 50%,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(255, 255, 255, 0.03) 40%,
            rgba(30, 30, 29, 0) 80%
        ),
        #1e1e1d;
    border-radius: 2rem;
    /* padding: 1rem; */
    background-repeat: no-repeat;
}

/* CHECKBOX STYLES */
/* Make checkbox rows behave exactly like radio rows */
.checkbox-item {
    --sel-bg: #fff2f2;
    --sel-border: crimson;
    padding: 0.4rem;
    border: 1px solid black;
    border-radius: 8px;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;    
    /* background-color: aliceblue; */

}

.checkbox-item:hover {
    background-color: lightgray;
    border-radius: 8px;
}

.checkbox-item:has(> input[type="checkbox"]:checked) {
    background-color: var(--sel-bg);
    border-color: var(--sel-border);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--sel-border) 25%, transparent);
}

.checkbox-item:has(> input[type="checkbox"]:focus-visible) {
    outline: 2px solid var(--sel-border);
    outline-offset: 2px;
}

/* Circular A/B/C/D prefix — identical to radio */
.checkbox-wrapper {
    display: inline-flex;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background-color: #007bff;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.checkbox-prefix {
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

/* Hide native checkbox, keep only our styled label */
.checkbox-field {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

/* Optional: bigger click area */
.checkbox-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    width: 100%;
    user-select: none;
}

/* Default: no space reserved for flags */
.radio-grid,
.checkbox-grid {
    --flag-col-width: 0;
}

/* When flags should be visible, use the active width */
.radio-grid.flags-visible,
.checkbox-grid.flags-visible {
    --flag-col-width: var(--flag-col-width-active, 1.25rem);
}







