/* Left-align the quiz container. text-align is inherited by default, so
   setting it once here carries down to every descendant that doesn't
   declare its own alignment — no universal selector or !important needed.
   If something still renders centered after this change, it has its own
   explicit text-align (or a centering layout property like justify-content
   or margin: auto) that needs a small, scoped override right on that
   element — not a blanket rule here. */
.quiz-page {
    text-align: left;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ==========================================================================
   QUIZ CSS: Layouts & Components (Dependent on atlas.css)
   ========================================================================== */

/* Beta Banner */
.beta-banner {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    padding: 0.25rem 0rem;
    font-size: 0.85rem;
    border: none;
    border-radius: 8px;
    margin-top: 0rem;      /* tighter top margin */
    margin-bottom: 0.75rem;   /* tighter bottom margin */
    display: flex;
    justify-content: flex-start; /* ensures left alignment */
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.beta-tag {
    background-color: var(--brand-teal);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1rem 1rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.beta-tag:hover {
    opacity: 0.9;
}

/* Progress Bar & Status Info */
.progress-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 9999px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--brand-teal);
    transition: width 0.3s ease;
}

/* Question & Option Cards */
.quiz-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.question-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.question-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
    line-height: 1.4;
    outline: none;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Option Buttons */
.option-btn {
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.9rem;
    min-height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.35;
    cursor: pointer;
    transition: all 0.15s ease;
}

.option-btn:hover, 
.option-btn:focus {
    border-color: var(--brand-teal);
    background: color-mix(in srgb, var(--brand-teal) 8%, white);
    transform: translateY(-1px);
    outline: 2px solid var(--brand-teal);
    outline-offset: 1px;
}

/* Button & Pill Utilities */
.cta-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Quiz Print-Specific Overrides */
@media print {
    .beta-banner, 
    .cta-container,
    .btn-sm-action {
        display: none !important;
    }
    .quiz-card {
        border: 1px solid var(--border-strong) !important;
        box-shadow: none !important;
    }
}

/* Responsive Rules */
@media (max-width: 640px) {
    .quiz-card { padding: 1.25rem; }
    .cta-container { flex-direction: column; gap: 0.5rem; }
    .beta-banner { text-align: left; }
    .option-btn { padding: 0.6rem 0.8rem; font-size: 0.9rem; }
}