:root {
    --irl-primary: #7d92ff;  /* SpanishIRL brand */
}

/* App shell: reuse the existing article wrapper */
section.quizShortcode .single-post-container article {
    max-width: 960px;
    margin: 3rem auto 4rem;
    padding: 3rem 3.25rem 3.5rem;
    border-radius: 24px;
    background: #f7f7fb;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

/* Let mobile stay edge-to-edge */
@media (max-width: 768px) {
    section.quizShortcode .single-post-container article {
        margin: 0;
        border-radius: 0;
        padding: 1.25rem 1rem 2rem;
        box-shadow: none;
    }
}

/* Main CTA bar (Start button + slider) */
/* Main CTA bar: unified app-like control */
section.quizShortcode .slider-container {
    position: relative;
    width: 100%;
    margin: 1.75rem 0 2.25rem;
    padding: 1.4rem 3.25rem; /* space for + / – pills */
    background: #eef1ff !important;
    border-radius: 24px !important;
    box-shadow:
        0 12px 30px rgba(15,23,42,0.12),
        0 0 0 1px rgba(255,255,255,0.9) inset;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

/* Two-column layout on desktop */
@media (min-width: 768px) {
    section.quizShortcode .slider-container {
        flex-direction: row;
        align-items: center;
        gap: 1.75rem;
    }
}

/* Start practice button: big, pill, primary */
section.quizShortcode #start-quiz-button,
section.quizShortcode .slider-container .btn {
    width: 180px;
    border-radius: 999px !important;
    padding: 0.8rem 1.25rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    background: #4f46e5 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 12px 25px rgba(79,70,229,0.35);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

section.quizShortcode #start-quiz-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(79,70,229,0.45);
}

section.quizShortcode #start-quiz-button.is-active {
    background: #dc2626 !important;
}

/* Slider label */
section.quizShortcode #slider-value {
    display: none !important;
    /* 
	font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    width: auto !important;
    margin-bottom: 0.3rem; */	
}

@media (max-width: 767px) {
    section.quizShortcode #slider-value {
        display: block !important;
    }
}

/* Direction hints (no words needed) */
section.quizShortcode .slider-container::before,
section.quizShortcode .slider-container::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 28px;
    height: 28px;
    background: #e5e7eb;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #4b5563;
    box-shadow: 0 3px 8px rgba(15,23,42,0.25);
    transform: translateY(-50%);
}

section.quizShortcode .slider-container::before {
    content: "–";
    left: 1.25rem;
}

section.quizShortcode .slider-container::after {
    content: "+";
    right: 1.25rem;
}

/* Slider track */
section.quizShortcode input.slider,
section.quizShortcode input#cefr-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100% !important;
    height: 12px !important;
    border-radius: 999px;
    background: #e5e7eb;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.18);
    outline: none;
    transform: none !important; /* keep it non-reversed */
}

/* Track for WebKit */
section.quizShortcode input.slider::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: 999px;
}

/* Thumb (WebKit) */
section.quizShortcode input.slider::-webkit-slider-thumb,
section.quizShortcode input#cefr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(148,163,184,0.65);
    box-shadow: 0 6px 16px rgba(15,23,42,0.3);
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

section.quizShortcode input.slider::-webkit-slider-thumb:hover,
section.quizShortcode input#cefr-slider::-webkit-slider-thumb:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(15,23,42,0.35);
}

/* Firefox thumb + track */
section.quizShortcode input.slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(148,163,184,0.65);
    box-shadow: 0 6px 16px rgba(15,23,42,0.3);
}

section.quizShortcode input.slider::-moz-range-track {
    height: 12px;
    border-radius: 999px;
    background: #e5e7eb;
}

/* Tooltip */
section.quizShortcode .slider-container .slider-tooltip {
    position: absolute;
    top: -2.4rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #111827 !important;
    color: #fff !important;
    padding: 0.35rem 0.7rem !important;
    font-size: 0.75rem !important;
    border-radius: 999px !important;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

/* We override position, so all those breakpoint rules in the plugin are effectively neutralized. */

/* Overall line height and spacing for the quiz text */
section.quizShortcode .single_word_container {
    position: relative;
    font-size: 1.05rem;
    line-height: 2.4rem;
    letter-spacing: 0.01em;
}

/* Each word block */
section.quizShortcode .single_word_container .inline_block {
    margin: 0.1rem 0.22rem !important;
    font-size: 1.05rem !important;
}

/* Revealed words */
section.quizShortcode .single_word_container .inline_block.is_visible {
    margin: 0.1rem 0.22rem !important;
    letter-spacing: 1px;
}

/* Input blanks */
section.quizShortcode .single_word_container .single_input {
    display: inline-block;
    vertical-align: middle;
    min-width: 3.1ch;
    height: 2.3rem;
    padding: 0 0.55rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 1.05rem;
    font-weight: 500;
}

/* Correct / incorrect visual states – if your JS adds these classes */
section.quizShortcode .single_word_container .single_input.is_correct {
    border-color: #22c55e;
    background: #ecfdf3;
}

section.quizShortcode .single_word_container .single_input.is_error {
    border-color: #f97373;
    background: #fef2f2;
}

section.quizShortcode figure.wp-block-audio {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

section.quizShortcode .single_word_container .wp-block-audio audio {
    width: 100% !important;
    order: 1;
}

section.quizShortcode figure.wp-block-audio .wp-element-caption {
    order: 2;
    align-self: flex-end;
    font-size: 0.8rem;
    color: #6b7280;
}

/* App-like shell */
#esirl-deck-unique.esirl-deck-wrapper {
    max-width: 960px;
    margin: 2.5rem auto 4rem;
    padding: 0 1.25rem;
}

#esirl-deck-unique .esirl-deck-main-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

#esirl-deck-unique .esirl-deck-content {
    background: #f7f7fb;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
    border: none;
    padding: 2.25rem 2.25rem 2.5rem;
}

@media (max-width: 768px) {
    #esirl-deck-unique.esirl-deck-wrapper {
        margin: 0;
        padding: 0 1rem;
    }
    #esirl-deck-unique .esirl-deck-content {
        border-radius: 0;
        box-shadow: none;
    }
}

/* Nav buttons at bottom – app style */
#esirl-deck-unique .esirl-deck-nav {
    max-width: 960px;
    margin: 2rem auto 0;
    padding: 0 0.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: space-between;
}

#esirl-deck-unique .esirl-deck-nav .esirl-deck-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(15,23,42,0.06);
}

#esirl-deck-unique .esirl-deck-nav .esirl-deck-btn:hover {
    border-color: #cbd5e1;
    box-shadow: 0 5px 16px rgba(15,23,42,0.12);
}

/* Direction hints (no words needed) */
section.quizShortcode .slider-container::before,
section.quizShortcode .slider-container::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 28px;
    height: 28px;
    background: #e5e7eb;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #4b5563;
    box-shadow: 0 3px 8px rgba(15,23,42,0.25);
    transform: translateY(-50%);
}

section.quizShortcode .slider-container::before {
    content: "–";
    left: 1.25rem;
}

section.quizShortcode .slider-container::after {
    content: "+";
    right: 1.25rem;
}
/* Slider track */
section.quizShortcode input.slider,
section.quizShortcode input#cefr-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100% !important;
    height: 12px !important;
    border-radius: 999px;
    background: #e5e7eb;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.18);
    outline: none;
}

/* Track for WebKit */
section.quizShortcode input.slider::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: 999px;
}

/* Thumb */
section.quizShortcode input.slider::-webkit-slider-thumb,
section.quizShortcode input#cefr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(148,163,184,0.65);
    box-shadow: 0 6px 16px rgba(15,23,42,0.3);
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

section.quizShortcode input.slider::-webkit-slider-thumb:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(15,23,42,0.35);
}

/* Firefox thumb */
section.quizShortcode input.slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(148,163,184,0.65);
    box-shadow: 0 6px 16px rgba(15,23,42,0.3);
}
/* Use site font for the whole quiz area */
section.quizShortcode,
#esirl-deck-unique {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Header styles */
#esirl-deck-unique .esirl-deck-channel {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.35rem;
}

#esirl-deck-unique .esirl-deck-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: baseline;
    justify-content: space-between;
}

#esirl-deck-unique .esirl-deck-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

#esirl-deck-unique .esirl-deck-clip {
    font-weight: 500;
    color: #6b7280;
    font-size: 1rem;
}

#esirl-deck-unique .esirl-deck-showall-link {
    font-size: 0.9rem;
    color: var(--irl-primary);
    text-decoration: none;
}

#esirl-deck-unique .esirl-deck-showall-link::after {
    content: " →";
}

#esirl-deck-unique .esirl-deck-showall-link:hover {
    text-decoration: underline;
}
#esirl-deck-unique .esirl-deck-btn--series-link {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    font-weight: 500;
    color: var(--irl-primary);
}
