/* ============================================
   MARITIME LEXICON QUIZ — v6
   Uses the site's CSS variables so light/dark mode work automatically.
   Changes from v5:
   - Footnote styling inside the round-feedback panel.
   - Lexicon link on the start screen.
   - Lexicon page (lexicon.html) layout styles.
   ============================================ */

.quiz-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 9rem 1.5rem 4rem;
    min-height: calc(100vh - 14rem);
}

.quiz-loading {
    text-align: center;
    color: var(--text-light);
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    padding: 4rem 0;
}

/* --- Start screen --- */
.q-start {
    text-align: center;
}

.q-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.q-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--main);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.q-deck {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--text-body);
    line-height: 1.65;
    max-width: 36em;
    margin: 0 auto 2.5rem;
}

.q-deck em.yn {
    font-style: italic;
    font-weight: 500;
    color: var(--main);
}

/* --- Vertical level picker --- */
.q-level-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--main);
    margin-bottom: 1rem;
}

.q-levels-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-width: 34rem;
    margin: 0 auto 1.5rem;
}

.q-level {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: 1.5px solid var(--divider);
    border-radius: 4px;
    padding: 0.95rem 1.2rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: var(--text-body);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    width: 100%;
}

.q-level:hover {
    border-color: var(--secondary);
}

/* Matches Support page .phase-num */
.q-level-num {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    color: var(--main);
    text-align: center;
    border: 1.5px solid var(--main);
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.q-level-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.q-level-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--main);
    line-height: 1.2;
}

.q-level-subtitle {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.5;
}

/* Selected level — the round draws only from this difficulty */
.q-level.selected {
    background: var(--main);
    border-color: var(--main);
    color: var(--bg);
    box-shadow: inset 4px 0 0 var(--secondary);
}

.q-level.selected .q-level-num {
    background: var(--secondary);
    color: var(--bg);
    border-color: var(--secondary);
}

.q-level.selected .q-level-name {
    color: var(--bg);
}

.q-level.selected .q-level-subtitle {
    color: var(--bg);
    opacity: 0.85;
}

.q-pool-line {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.98rem;
    color: var(--text-body);
    margin: 1rem auto 2rem;
    max-width: 32em;
}

.q-pool-line strong {
    color: var(--main);
    font-style: normal;
    font-weight: 700;
}

/* --- Primary action button (matches give-cta pattern) --- */
.q-btn {
    display: inline-block;
    background: var(--secondary);
    color: var(--bg);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.4rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.q-btn:hover:not(:disabled) {
    background: var(--main);
}

.q-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.q-btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--main);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2rem;
    border: 1.5px solid var(--main);
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    margin-left: 0.5rem;
}

.q-btn-secondary:hover {
    background: var(--main);
    color: var(--bg);
}

/* --- Round screen --- */
.q-round-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--divider);
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-light);
}

.q-round-top strong {
    color: var(--main);
    font-weight: 800;
}

.q-progress {
    display: flex;
    gap: 4px;
    margin-bottom: 2rem;
}

.q-progress-step {
    flex: 1;
    height: 3px;
    background: var(--divider);
    border-radius: 1.5px;
    transition: background 0.3s ease;
}

.q-progress-step.done-correct { background: var(--main); }
.q-progress-step.done-wrong { background: var(--secondary); }
.q-progress-step.current { background: var(--text-body); }

.q-term-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.q-term {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--main);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.q-term-tag {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 0.18rem 0.55rem;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.q-prompt {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.75rem;
}

.q-options {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.75rem;
}

.q-option {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.2rem;
    background: transparent;
    border: 1.5px solid var(--divider);
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.55;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.q-option:hover:not(:disabled) {
    border-color: var(--secondary);
}

.q-option:disabled {
    cursor: default;
}

.q-option-letter {
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--main);
    border: 1.5px solid var(--divider);
    border-radius: 50%;
    background: transparent;
    margin-top: 0.05rem;
}

.q-option.is-correct {
    border-color: var(--main);
    background: rgba(26, 58, 42, 0.06);
}

.q-option.is-correct .q-option-letter {
    background: var(--main);
    color: var(--bg);
    border-color: var(--main);
}

.q-option.is-wrong {
    border-color: rgba(180, 80, 60, 0.6);
    background: rgba(180, 80, 60, 0.05);
}

.q-option.is-wrong .q-option-letter {
    background: rgba(180, 80, 60, 0.8);
    color: var(--bg);
    border-color: rgba(180, 80, 60, 0.8);
}

.q-option.is-dimmed {
    opacity: 0.55;
}

/* --- Feedback panel --- */
.q-feedback {
    margin: 1.5rem 0 1.75rem;
    padding: 1.25rem 1.4rem;
    border-left: 3px solid var(--secondary);
    background: rgba(160, 136, 64, 0.06);
}

.q-feedback-head {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
    color: var(--main);
}

.q-feedback-head.is-wrong {
    color: var(--secondary);
}

.q-feedback-body {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.98rem;
    color: var(--text-body);
    line-height: 1.7;
}

.q-feedback-body em.yn {
    color: var(--main);
    font-style: italic;
    font-weight: 500;
}

.q-next-row {
    display: flex;
    justify-content: flex-end;
}

/* --- Results screen --- */
.q-results {
    text-align: center;
}

.q-rank-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.q-rank-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.4rem, 5.5vw, 3.6rem);
    color: var(--main);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.q-rank-blurb {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.55;
    max-width: 30em;
    margin: 0 auto 2rem;
}

.q-score {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 4rem;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 2rem;
}

.q-score-out {
    font-size: 1.6rem;
    color: var(--text-light);
}

.q-results-review {
    text-align: left;
    margin: 2rem 0 2.5rem;
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--divider);
    border-radius: 4px;
}

.q-results-review-head {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--main);
    margin-bottom: 1.1rem;
}

.q-review-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--divider);
}

.q-review-row:last-child {
    border-bottom: none;
}

.q-review-mark {
    flex: 0 0 auto;
    width: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 50%;
    margin-top: 0.15rem;
}

.q-review-mark.is-correct {
    background: var(--main);
    color: var(--bg);
}

.q-review-mark.is-wrong {
    background: rgba(180, 80, 60, 0.85);
    color: var(--bg);
}

.q-review-term {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--main);
    line-height: 1.2;
}

.q-review-correct {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.55;
    margin-top: 0.1rem;
}

.q-review-yankee {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-left: 0.5rem;
}

.q-results-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.q-results-actions .q-btn-secondary {
    margin-left: 0;
}

/* --- Dark mode tweaks (mostly automatic, a few overrides) --- */
[data-theme="dark"] .q-feedback {
    background: rgba(200, 176, 96, 0.08);
}

[data-theme="dark"] .q-option.is-correct {
    background: rgba(229, 219, 208, 0.06);
}

[data-theme="dark"] .q-option.is-wrong {
    background: rgba(200, 100, 80, 0.12);
    border-color: rgba(220, 130, 110, 0.6);
}

[data-theme="dark"] .q-option.is-wrong .q-option-letter {
    background: rgba(220, 130, 110, 0.85);
}

[data-theme="dark"] .q-review-mark.is-wrong {
    background: rgba(220, 130, 110, 0.85);
}

[data-theme="dark"] .q-feedback-head.is-wrong {
    color: rgba(220, 150, 130, 1);
}

/* --- Mobile tweaks --- */
@media (max-width: 600px) {
    .quiz-main {
        padding: 7rem 1rem 3rem;
    }

    .q-level {
        padding: 0.85rem 0.95rem;
        gap: 0.75rem;
    }

    .q-level-num {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 0.95rem;
    }

    .q-level-name {
        font-size: 0.75rem;
        letter-spacing: 0.12em;
    }

    .q-level-subtitle {
        font-size: 0.86rem;
    }

    .q-results-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .q-results-actions .q-btn,
    .q-results-actions .q-btn-secondary {
        margin-left: 0;
        text-align: center;
    }
}

/* --- iPhone-compact tweaks (≤430px) --- */
@media (max-width: 430px) {
    .quiz-main {
        padding: 6rem 0.75rem 2.5rem;
    }

    /* Start screen */
    .q-eyebrow {
        font-size: 0.7rem;
        letter-spacing: 0.22em;
        margin-bottom: 0.5rem;
    }

    .q-title {
        font-size: 1.7rem;
        letter-spacing: 0.04em;
        margin-bottom: 0.75rem;
    }

    .q-deck {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 1.75rem;
    }

    .q-level-label {
        font-size: 0.65rem;
        letter-spacing: 0.18em;
        margin-bottom: 0.7rem;
    }

    .q-levels-vertical {
        gap: 0.4rem;
        margin-bottom: 1.1rem;
    }

    .q-level {
        padding: 0.7rem 0.85rem;
        gap: 0.65rem;
        border-radius: 3px;
    }

    .q-level-num {
        width: 2rem;
        height: 2rem;
        font-size: 0.88rem;
    }

    .q-level-name {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }

    .q-level-subtitle {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .q-pool-line {
        font-size: 0.9rem;
        margin: 0.5rem auto 1.5rem;
    }

    .q-btn {
        padding: 0.85rem 1.75rem;
        font-size: 0.75rem;
        letter-spacing: 0.16em;
        width: 100%;
    }

    /* Round screen */
    .q-round-top {
        font-size: 0.65rem;
        letter-spacing: 0.16em;
        padding-bottom: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .q-progress {
        margin-bottom: 1.5rem;
    }

    .q-term-label {
        font-size: 0.62rem;
        letter-spacing: 0.18em;
        margin-bottom: 0.35rem;
    }

    .q-term {
        font-size: 1.85rem;
        line-height: 1.05;
        margin-bottom: 0.4rem;
    }

    .q-term-tag {
        font-size: 0.55rem;
        letter-spacing: 0.14em;
        padding: 0.15rem 0.45rem;
        margin-bottom: 1rem;
    }

    .q-prompt {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 1.25rem;
    }

    .q-options {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .q-option {
        padding: 0.75rem 0.9rem;
        gap: 0.65rem;
        font-size: 0.92rem;
        line-height: 1.45;
        border-radius: 3px;
    }

    .q-option-letter {
        width: 1.4rem;
        height: 1.4rem;
        font-size: 0.7rem;
    }

    .q-feedback {
        margin: 1rem 0 1.25rem;
        padding: 0.9rem 1rem;
        border-left-width: 2px;
    }

    .q-feedback-head {
        font-size: 0.7rem;
        letter-spacing: 0.14em;
        margin-bottom: 0.5rem;
    }

    .q-feedback-body {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .q-next-row {
        margin-top: 0.5rem;
    }

    /* Results screen */
    .q-rank-eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.22em;
        margin-bottom: 0.4rem;
    }

    .q-rank-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 0.35rem;
    }

    .q-rank-blurb {
        font-size: 0.98rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }

    .q-score {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .q-score-out {
        font-size: 1.2rem;
    }

    .q-results-review {
        margin: 1.25rem 0 1.5rem;
        padding: 1rem 1.1rem;
        border-radius: 3px;
    }

    .q-results-review-head {
        font-size: 0.65rem;
        letter-spacing: 0.18em;
        margin-bottom: 0.75rem;
    }

    .q-review-row {
        gap: 0.65rem;
        padding: 0.5rem 0;
    }

    .q-review-mark {
        width: 1.15rem;
        height: 1.15rem;
        font-size: 0.7rem;
    }

    .q-review-term {
        font-size: 1.05rem;
    }

    .q-review-correct {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .q-review-yankee {
        font-size: 0.52rem;
        letter-spacing: 0.14em;
    }
}

/* ============================================
   v6 ADDITIONS: footnotes, lexicon link, lexicon page
   ============================================ */

/* --- Footnotes shown after the explanation in the round feedback --- */
.q-feedback-footnotes {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0.85rem 0 0;
    border-top: 1px dashed var(--divider);
    font-family: 'Lora', Georgia, serif;
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.6;
}

.q-feedback-footnotes li {
    padding: 0.4rem 0 0.4rem 1.1rem;
    position: relative;
}

.q-feedback-footnotes li::before {
    content: '†';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.q-feedback-footnotes li em {
    font-style: italic;
}

/* --- Lexicon callout on the start screen --- */
.q-lexicon-callout {
    max-width: 34rem;
    margin: 3rem auto 0;
    padding: 1.75rem 1.85rem 1.5rem;
    border: 1px solid var(--divider);
    border-top: 2px solid var(--secondary);
    border-radius: 4px;
    text-align: left;
    background: rgba(160, 136, 64, 0.04);
}

.q-lexicon-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.85rem;
}

.q-lexicon-body {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 0.9rem;
}

.q-lexicon-body strong {
    color: var(--main);
    font-weight: 700;
}

.q-lexicon-sources {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 1.3rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--divider);
}

.q-lexicon-sources strong {
    color: var(--main);
    font-style: normal;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-right: 0.35rem;
}

.q-lexicon-version {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    text-align: right;
    margin: 0;
    padding-top: 0.5rem;
    opacity: 0.7;
}

.q-lexicon-cta {
    text-align: center;
    margin-top: 0.5rem;
}

.q-btn-lexicon {
    margin-left: 0;
    font-size: 0.72rem;
    padding: 0.75rem 1.6rem;
    letter-spacing: 0.18em;
}

/* When the callout appears on the lexicon page itself, let it fill the
   column width and sit closer to the page header (no top margin reset). */
.lexicon-intro-callout.q-lexicon-callout {
    max-width: 100%;
    margin: 0 0 2.5rem;
}

/* ============================================
   LEXICON PAGE
   ============================================ */

.lexicon-main {
    max-width: 820px;
}

.lexicon-header {
    text-align: center;
    margin: 0 0 2.5rem;
    padding: 0;
    width: 100%;
}

.lexicon-header .q-eyebrow,
.lexicon-header .q-title,
.lexicon-header .q-deck,
.lexicon-header .lexicon-back {
    text-align: center;
}

.lexicon-header .q-deck {
    margin-left: auto;
    margin-right: auto;
}

.lexicon-back {
    margin-top: 1.25rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lexicon-back a {
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(184, 151, 58, 0.3);
    padding-bottom: 2px;
}

.lexicon-back a:hover {
    border-bottom-color: var(--secondary);
}

/* --- A-Z jump navigation (top of page; static, flows with content) --- */
.lexicon-jumpnav {
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
    padding: 1rem 0;
    margin: 0 0 2.5rem;
    text-align: center;
    background: transparent;
}

/* On wide screens, hide the inline A-Z (the floating side index takes over)
   and just show the meta line */
@media (min-width: 1100px) {
    .lexicon-jumpnav .lexicon-jumpnav-inner {
        display: none;
    }
    .lexicon-jumpnav {
        border-top: none;
        padding: 0 0 1.1rem 0;
    }
}

.lexicon-jumpnav-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

.lexicon-jumpnav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--main);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.lexicon-jumpnav a:hover {
    border-color: var(--secondary);
    background: rgba(160, 136, 64, 0.06);
}

.lexicon-meta {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 0.55rem;
}

/* --- Floating side index (desktop only) --- */
.lexicon-sideindex {
    display: none;
}

@media (min-width: 1100px) {
    .lexicon-sideindex {
        display: block;
        position: fixed;
        top: 50%;
        left: 1.25rem;
        transform: translateY(-50%);
        z-index: 80;
        max-height: 80vh;
    }

    /* Hide the floating index during a round (it sits outside #lexicon-landing-content) */
    body.quiz-active .lexicon-sideindex {
        display: none;
    }

    .lexicon-sideindex-rail {
        display: flex;
        flex-direction: column;
        gap: 0.18rem;
        padding: 0.7rem 0.45rem;
        background: rgba(250, 248, 245, 0.85);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid var(--divider);
        border-radius: 999px;
    }

    [data-theme="dark"] .lexicon-sideindex-rail {
        background: rgba(15, 26, 20, 0.82);
    }

    .lexicon-sideindex a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 1.85rem;
        height: 1.85rem;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 0.7rem;
        color: var(--text-light);
        text-decoration: none;
        border-radius: 50%;
        transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    }

    .lexicon-sideindex a:hover {
        color: var(--main);
        background: rgba(160, 136, 64, 0.10);
    }

    .lexicon-sideindex a.active {
        color: var(--bg);
        background: var(--secondary);
        font-weight: 800;
        transform: scale(1.08);
    }
}

/* Also style any .active state in the top horizontal nav (visible on narrow screens) */
.lexicon-jumpnav-inner a.active {
    color: var(--bg);
    background: var(--secondary);
    border-color: var(--secondary);
    font-weight: 800;
}

/* --- Letter sections --- */
.lexicon-letter {
    margin-bottom: 2.5rem;
    scroll-margin-top: 7rem;
}

.lexicon-letter-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 2.4rem;
    color: var(--secondary);
    border-bottom: 1px solid var(--divider);
    padding-bottom: 0.4rem;
    margin-bottom: 1.4rem;
    line-height: 1;
}

/* --- Individual entry --- */
.lexicon-entry {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--divider);
}

.lexicon-entry:last-child {
    border-bottom: none;
}

.lexicon-term {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 1.55rem;
    color: var(--main);
    line-height: 1.1;
    margin-bottom: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.55rem;
}

.lexicon-difficulty {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    color: var(--text-light);
    border: 1px solid var(--divider);
    padding: 0.18rem 0.45rem;
    border-radius: 2px;
    cursor: default;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.lexicon-difficulty:hover {
    color: var(--bg);
    background: var(--secondary);
    border-color: var(--secondary);
}

.lexicon-tag-yankee {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 0.18rem 0.5rem;
    border-radius: 2px;
}

.lexicon-definition {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 1.08rem;
    color: var(--main);
    line-height: 1.55;
    margin-bottom: 0.7rem;
}

.lexicon-explanation {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 0;
}

.lexicon-explanation em.yn {
    color: var(--main);
    font-style: italic;
    font-weight: 500;
}

.lexicon-footnotes {
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0.7rem 0 0;
    border-top: 1px dashed var(--divider);
    font-family: 'Lora', Georgia, serif;
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

.lexicon-footnotes li {
    padding: 0.3rem 0 0.3rem 1.1rem;
    position: relative;
}

.lexicon-footnotes li::before {
    content: '†';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 0.95rem;
}

/* --- Lexicon page: iPhone --- */
@media (max-width: 600px) {
    .lexicon-jumpnav {
        padding: 0.7rem 0;
    }
    .lexicon-jumpnav a {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.72rem;
    }
    .lexicon-letter-heading {
        font-size: 2rem;
    }
    .lexicon-term {
        font-size: 1.4rem;
    }
}

@media (max-width: 430px) {
    .lexicon-jumpnav {
        padding: 0.55rem 0;
    }
    .lexicon-jumpnav-inner {
        gap: 0.2rem;
    }
    .lexicon-jumpnav a {
        width: 1.55rem;
        height: 1.55rem;
        font-size: 0.65rem;
    }
    .lexicon-letter {
        scroll-margin-top: 6rem;
    }
    .lexicon-letter-heading {
        font-size: 1.7rem;
    }
    .lexicon-term {
        font-size: 1.2rem;
        gap: 0.4rem;
    }
    .lexicon-definition {
        font-size: 0.98rem;
    }
    .lexicon-explanation {
        font-size: 0.92rem;
        line-height: 1.65;
    }
    .lexicon-footnotes {
        font-size: 0.82rem;
    }
    .q-feedback-footnotes {
        font-size: 0.8rem;
    }
    .q-lexicon-callout {
        margin-top: 2.25rem;
        padding: 1.3rem 1.2rem 1.15rem;
    }
    .q-lexicon-body {
        font-size: 0.92rem;
        line-height: 1.6;
    }
    .q-lexicon-sources {
        font-size: 0.8rem;
    }
    .q-btn-lexicon {
        font-size: 0.66rem;
        padding: 0.7rem 1.3rem;
        letter-spacing: 0.16em;
    }
}

/* ============================================
   v7 ADDITIONS — Lexicon landing layout, sidebar quiz
   ============================================ */

/* Fix L3 difficulty badge alignment with the term (was baseline, now centered) */
.lexicon-term {
    align-items: center;
}

/* The lexicon-landing page uses the same .content-area 2/3+1/3 grid as index.html */
body.lexicon-landing main { padding-bottom: 5rem; }

.lexicon-landing .content-area {
    /* Inherits style.css .content-area — no overrides needed */
}

/* The page header (eyebrow + title + deck) for the lexicon landing */
.lexicon-page-header {
    max-width: 1080px;
    margin: 7.5rem auto 2rem;
    padding: 0 4.5rem;
    text-align: center;
}

.lexicon-page-header .q-eyebrow {
    margin-bottom: 0.6rem;
}

.lexicon-page-header .page-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    color: var(--main);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.8rem;
}

.lexicon-page-header .page-deck {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--text-body);
    line-height: 1.55;
    max-width: 32em;
    margin: 0 auto;
}

/* Hero placeholder for the schooner-terms image */
.lexicon-hero-figure {
    margin: 0 0 2.5rem;
}

.lexicon-hero-placeholder {
    aspect-ratio: 16 / 9;
    background:
        repeating-linear-gradient(
            45deg,
            transparent, transparent 12px,
            rgba(160, 136, 64, 0.08) 12px, rgba(160, 136, 64, 0.08) 24px
        ),
        var(--bg);
    border: 1.5px dashed var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.5;
    padding: 2rem;
}

.lexicon-hero-placeholder .placeholder-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.4rem;
}

.lexicon-hero-figure figcaption {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.85rem;
    line-height: 1.5;
}

/* Main lexicon prose */
.lexicon-landing-content .content-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.lexicon-landing-content .content-text:last-child {
    margin-bottom: 0;
}

.lexicon-cta-row {
    margin-top: 2.5rem;
    text-align: center;
}

.lexicon-cta-row .q-btn {
    padding: 1.1rem 2.6rem;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
}

/* Sources callout (rendered as inline section inside main column) */
.lexicon-sources-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--divider);
}

/* ============================================
   SIDEBAR QUIZ
   ============================================ */
.sidebar-quiz {
    text-align: left;
}

.sidebar-quiz .q-eyebrow {
    margin-bottom: 0.4rem;
}

.q-sidebar-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--main);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0.6rem;
}

.q-sidebar-deck {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.q-sidebar-progress-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.q-sidebar-progress-label strong {
    color: var(--main);
    font-weight: 800;
}

.q-sidebar-score {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    color: var(--text-body);
    margin: 1.1rem 0 1.3rem;
}

.q-sidebar-score strong {
    color: var(--main);
    font-weight: 700;
    font-size: 1.05rem;
}

/* In the sidebar, the level picker is narrower — adjust spacing */
.sidebar-quiz .q-levels-vertical {
    margin-bottom: 1rem;
    max-width: 100%;
    gap: 0.45rem;
}

.sidebar-quiz .q-level {
    padding: 0.75rem 0.85rem;
    gap: 0.7rem;
}

.sidebar-quiz .q-level-num {
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
}

.sidebar-quiz .q-level-name {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.sidebar-quiz .q-level-subtitle {
    font-size: 0.84rem;
    line-height: 1.45;
}

.sidebar-quiz .q-pool-line {
    margin: 0.8rem 0 1.2rem;
    font-size: 0.88rem;
}

/* Full-width buttons in the sidebar */
.q-btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0.65rem;
}

.q-btn-block:last-child {
    margin-bottom: 0;
}

.q-btn-quit {
    margin-top: 0.5rem;
}

/* ============================================
   MAIN-COLUMN ROUND/RESULTS (when quiz-active)
   ============================================ */
#quiz-main-shell {
    display: none;  /* JS toggles to "" when needed */
}

.q-round-main,
.q-results-main {
    max-width: 100%;
}

.q-results-main {
    text-align: center;
}

.q-results-main .q-results-review {
    text-align: left;
}

/* When quiz is active, keep the sidebar visible alongside */
body.quiz-active .sidebar {
    /* leave sticky behavior */
}

/* ============================================
   FIX: Lexicon page — page-header is now outside .quiz-main as a
   standalone block at the top (matches the quiz.html pattern), so
   the lexicon-main column starts directly with the intro callout.
   ============================================ */
main.quiz-main.lexicon-main {
    padding-top: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .lexicon-page-header {
        padding: 0 2.5rem;
        margin: 6.5rem auto 1.5rem;
    }
}

@media (max-width: 768px) {
    .lexicon-page-header {
        padding: 0 1.5rem;
        margin: 6rem auto 1rem;
    }

    .lexicon-landing .content-area {
        /* On narrow screens the grid collapses to single column from style.css */
    }

    /* Stack: quiz sidebar appears ABOVE the main lexicon content on mobile.
       The page-header sits above .content-area, so the order becomes:
       page header → quiz card → lexicon body. */
    .lexicon-landing .sidebar {
        position: static;
        padding-top: 0;
        margin-top: 0;
        margin-bottom: 2.5rem;
        order: 1;
    }
    .lexicon-landing .main-col {
        order: 2;
    }
}

@media (max-width: 430px) {
    .lexicon-page-header {
        padding: 0 1rem;
    }

    .q-sidebar-title {
        font-size: 1.25rem;
    }

    .sidebar-quiz .q-level {
        padding: 0.65rem 0.7rem;
    }
}

/* ============================================
   v7.1 ADDITIONS — Lexicon entries inside .main-col
   ============================================ */

/* On the merged Lexicon page (quiz.html), the entries live inside the
   2/3 main column. Tighten typography for the narrower width. */
.lexicon-landing .main-col .lexicon-body {
    /* No max-width override needed — main-col already constrains */
}

.lexicon-landing .main-col .lexicon-letter {
    margin-bottom: 2rem;
}

.lexicon-landing .main-col .lexicon-letter-heading {
    font-size: 2rem;
    padding-bottom: 0.3rem;
    margin-bottom: 1.1rem;
}

.lexicon-landing .main-col .lexicon-entry {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
}

.lexicon-landing .main-col .lexicon-term {
    font-size: 1.4rem;
}

.lexicon-landing .main-col .lexicon-definition {
    font-size: 1rem;
}

.lexicon-landing .main-col .lexicon-explanation {
    font-size: 0.95rem;
}

/* Make the intro callout fit the column width on quiz.html */
.lexicon-landing .main-col .lexicon-intro-callout.q-lexicon-callout {
    max-width: 100%;
    margin: 0 0 1.5rem;
}

/* On narrow screens, the static top A-Z bar still works the same */

/* ============================================
   Lexicon difficulty legend (small key under the A-Z bar)
   ============================================ */
.lexicon-legend {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 0 2rem;
    padding: 0.65rem 0.9rem;
    background: rgba(160, 136, 64, 0.05);
    border-left: 2px solid var(--secondary);
    border-radius: 0 3px 3px 0;
}

.lexicon-legend em {
    font-style: italic;
    margin-right: 0.4rem;
}

.lexicon-legend .lexicon-difficulty {
    vertical-align: baseline;
    margin: 0 0.15rem;
}

@media (max-width: 600px) {
    .lexicon-legend {
        font-size: 0.78rem;
        padding: 0.55rem 0.75rem;
    }
}

/* ============================================
   Difficulty legend INSIDE the About callout
   (replaces the previous standalone .lexicon-legend strip)
   ============================================ */
.q-lexicon-legend-inline {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.85;
    margin: 0.9rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--divider);
}

.q-lexicon-legend-inline strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--main);
    display: inline-block;
    margin-right: 0.5rem;
}

.q-lexicon-legend-inline .lexicon-difficulty {
    vertical-align: baseline;
    margin: 0 0.15rem 0 0.35rem;
}

/* ============================================
   Align sidebar top with the About-this-lexicon card on the Lexicon page.
   Default .sidebar (used on index.html/support.html) has padding-top: 5.5rem
   to clear an above-the-fold heading; on the Lexicon page the callout is
   the first thing in the main column, so we want zero top offset.
   ============================================ */
body.lexicon-landing .sidebar {
    padding-top: 0;
}

/* ============================================
   Page header: swap default vs quiz-active content
   ============================================ */
.lexicon-page-quiz {
    display: none;
}

body.quiz-active .lexicon-page-default {
    display: none;
}

body.quiz-active .lexicon-page-quiz {
    display: block;
}

/* ============================================
   Quiz-active sidebar — stretch to match main column,
   push Score + Quit Round to the bottom.
   ============================================ */
body.quiz-active .content-area {
    align-items: stretch;
}

body.quiz-active .sidebar {
    height: 100%;
}

body.quiz-active .sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body.quiz-active .sidebar-quiz-active {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* margin-top: auto pushes the score row + everything after it to the bottom */
body.quiz-active .sidebar-quiz-active .q-sidebar-score {
    margin-top: auto;
    font-size: 0.82rem;
    color: var(--text-light);
    padding-top: 1.2rem;
    border-top: 1px dashed var(--divider);
}

body.quiz-active .sidebar-quiz-active .q-sidebar-score strong {
    font-size: 0.95rem;
    color: var(--main);
}

body.quiz-active .sidebar-quiz-active .q-btn-quit {
    margin-top: 0.5rem;
}

/* ============================================
   Sidebar progress: red for wrong, plus the
   completed-term list with check/X marks.
   ============================================ */

/* Override the default done-wrong (which was gold) — now red */
.q-progress-step.done-wrong {
    background: rgba(180, 80, 60, 0.85);
}

/* List of answered terms in the sidebar (below the progress dashes) */
.q-sidebar-answered {
    list-style: none;
    margin: 0.85rem 0 1rem;
    padding: 0;
    font-family: 'Lora', Georgia, serif;
}

.q-sidebar-answered-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.22rem 0;
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.3;
}

.q-sidebar-mark {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.62rem;
    border-radius: 50%;
    color: var(--bg);
}

.q-sidebar-mark.is-correct {
    background: var(--main);
}

.q-sidebar-mark.is-wrong {
    background: rgba(180, 80, 60, 0.85);
}

.q-sidebar-answered-term {
    flex: 1 1 auto;
    color: var(--main);
    font-weight: 500;
}

[data-theme="dark"] .q-progress-step.done-wrong,
[data-theme="dark"] .q-sidebar-mark.is-wrong {
    background: rgba(220, 130, 110, 0.85);
}

/* ============================================
   "Correct" indicators use a brighter green (matches the Support page
   .phase-funded color), since var(--main) reads nearly black.
   ============================================ */
.q-progress-step.done-correct {
    background: #2e7d32;
}

.q-sidebar-mark.is-correct,
.q-review-mark.is-correct {
    background: #2e7d32;
}

.q-option.is-correct {
    border-color: #2e7d32;
    background: rgba(46, 125, 50, 0.08);
}

.q-option.is-correct .q-option-letter {
    background: #2e7d32;
    border-color: #2e7d32;
}

/* Dark-mode counterpart — brighter leafy green to keep contrast on dark bg */
[data-theme="dark"] .q-progress-step.done-correct,
[data-theme="dark"] .q-sidebar-mark.is-correct,
[data-theme="dark"] .q-review-mark.is-correct {
    background: #66bb6a;
}

[data-theme="dark"] .q-option.is-correct {
    border-color: #66bb6a;
    background: rgba(102, 187, 106, 0.10);
}

[data-theme="dark"] .q-option.is-correct .q-option-letter {
    background: #66bb6a;
    border-color: #66bb6a;
}

/* ============================================
   Big score display in the sidebar (mid-round + results)
   ============================================ */
.q-sidebar-score-big {
    text-align: center;
    margin: 1.25rem 0 0.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--divider);
}

.q-sidebar-score-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 3.6rem;
    color: var(--secondary);
    line-height: 1;
}

.q-sidebar-score-label {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.88rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

.q-sidebar-score-sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--main);
    margin-top: 0.4rem;
}

/* In mid-round, the score is the bottom anchor — push it down */
body.quiz-active .sidebar-quiz-active .q-sidebar-score-big {
    margin-top: auto;
}

/* In results, the score is the headline — sits near the top */
.q-sidebar-score-big.q-sidebar-score-results {
    margin: 0.5rem 0 1.5rem;
    border-top: none;
    padding-top: 0;
}

.q-sidebar-score-big.q-sidebar-score-results .q-sidebar-score-number {
    font-size: 4.2rem;
}

/* Next Question button below progress dashes — slim spacing */
.q-btn-next-sidebar {
    margin: 0.25rem 0 1rem;
}

/* ============================================
   Results sidebar — rank + blurb
   ============================================ */
.q-rank-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--secondary);
    margin: 0.5rem 0 0.4rem;
}

.q-sidebar-rank-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--main);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.q-sidebar-rank-blurb {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.q-sidebar-results-actions {
    margin-top: auto;
}

/* ============================================
   Main column: ordered review list at results
   ============================================ */
.q-results-list-main {
    /* No top spacing — sits where landing-content was */
}

.q-results-list-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--main);
    line-height: 1.1;
    margin: 0.2rem 0 1rem;
}

.q-results-list-meta {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.q-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: rev;
}

.q-results-list-row {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--divider);
}

.q-results-list-row:last-child {
    border-bottom: none;
}

.q-results-list-num {
    flex: 0 0 auto;
    width: 1.85rem;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--text-light);
    border: 1px solid var(--divider);
    border-radius: 50%;
    background: transparent;
    margin-top: 0.1rem;
}

.q-results-list-row .q-review-mark {
    flex: 0 0 auto;
    width: 1.4rem;
    height: 1.4rem;
    margin-top: 0.25rem;
}

.q-results-list-body {
    flex: 1 1 auto;
    min-width: 0;
}

.q-results-list-term {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--main);
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.q-results-list-term .q-review-yankee {
    vertical-align: 0.18em;
    margin-left: 0.4rem;
}

.q-results-list-answer {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.55;
}

.q-results-list-yours {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.88rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

/* ============================================
   SCORE card — used in both round and results state
   ============================================ */
.q-score-card {
    border: 1px solid var(--divider);
    border-top: 3px solid var(--secondary);
    border-radius: 4px;
    background: rgba(160, 136, 64, 0.04);
    padding: 1rem 1.1rem 1.1rem;
    text-align: center;
    margin: 1rem 0 0.85rem;
}

/* Pin to the bottom when inside the in-progress sidebar */
body.quiz-active .sidebar-quiz-active > .q-score-card {
    margin-top: auto;
}

.q-score-card-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.3rem;
}

.q-score-card-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 3.4rem;
    color: var(--main);
    line-height: 1;
}

.q-score-card.is-final .q-score-card-number {
    font-size: 4rem;
    color: var(--secondary);
}

.q-score-card-sub {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.86rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.q-score-card-correct {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--main);
    margin-top: 0.4rem;
}

/* Rank block inside the final score card */
.q-score-card-rank {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--divider);
}

.q-score-card-rank-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.q-score-card-rank-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--main);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.q-score-card-rank-blurb {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.5;
    margin: 0;
}

/* Results action buttons live right under the score card so they're always
   visible without scrolling. */
.q-sidebar-results-actions {
    margin: 0;
}

/* ============================================
   Feedback panel — green for Correct, red for Not quite
   ============================================ */
.q-feedback {
    margin-top: 1.5rem;
    padding: 1.25rem 1.4rem;
    border-left: 3px solid var(--divider);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 4px 4px 0;
}

.q-feedback.is-correct {
    border-left-color: #2e7d32;
    background: rgba(46, 125, 50, 0.06);
}

.q-feedback.is-wrong {
    border-left-color: rgba(180, 80, 60, 0.85);
    background: rgba(180, 80, 60, 0.06);
}

.q-feedback.is-correct .q-feedback-head {
    color: #2e7d32;
}

.q-feedback.is-wrong .q-feedback-head {
    color: rgba(180, 80, 60, 1);
}

/* Dark-mode equivalents */
[data-theme="dark"] .q-feedback.is-correct {
    background: rgba(102, 187, 106, 0.10);
    border-left-color: #66bb6a;
}

[data-theme="dark"] .q-feedback.is-correct .q-feedback-head {
    color: #66bb6a;
}

[data-theme="dark"] .q-feedback.is-wrong {
    background: rgba(220, 130, 110, 0.12);
    border-left-color: rgba(220, 130, 110, 0.85);
}

[data-theme="dark"] .q-feedback.is-wrong .q-feedback-head {
    color: rgba(220, 150, 130, 1);
}

/* ============================================
   Results state: collapse sidebar (no stretch),
   so it sizes to its content rather than to the
   tall main-column review list.
   ============================================ */
body.quiz-active.quiz-results .content-area {
    align-items: start;
}

body.quiz-active.quiz-results .sidebar,
body.quiz-active.quiz-results .sidebar-inner,
body.quiz-active.quiz-results .sidebar-quiz-active {
    height: auto;
}

/* The Score card no longer needs to be flex-pinned at the bottom in results */
body.quiz-active.quiz-results .sidebar-quiz-active > .q-score-card {
    margin-top: 1rem;
}

/* ============================================
   Fix the Change Level button alignment.
   .q-btn-secondary has a 0.5rem left margin by default
   (for inline pairs with a primary button); cancel that
   when the button is in block (full-width) form so it
   lines up flush with Another Round.
   ============================================ */
.q-btn-block.q-btn-secondary,
.q-btn-secondary.q-btn-block {
    margin-left: 0;
}

/* ============================================
   FLOURISH — confetti canvas overlay + whimper flag
   ============================================ */
.q-flourish-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 200;
}

/* Respect users who prefer reduced motion: no canvas animation */
@media (prefers-reduced-motion: reduce) {
    .q-flourish-canvas { display: none; }
}

/* ============================================
   Links inside the About-this-lexicon callout and lexicon footnotes —
   gold accent with subtle underline, matching the site's other inline
   gold-link pattern. Visited state darkens to var(--secondary-visited)
   via the universal a:visited rule in style.css.
   ============================================ */
.q-lexicon-callout a,
.lexicon-footnotes a,
.q-feedback-footnotes a {
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(184, 151, 58, 0.3);
    padding-bottom: 1px;
    transition: border-color 0.2s ease;
}

.q-lexicon-callout a:hover,
.lexicon-footnotes a:hover,
.q-feedback-footnotes a:hover {
    border-bottom-color: var(--secondary);
}

.q-lexicon-callout a:visited,
.lexicon-footnotes a:visited,
.q-feedback-footnotes a:visited {
    color: var(--secondary-visited);
    border-bottom-color: rgba(122, 102, 51, 0.3);
}

/* ============================================
   Topic tags — pills shown on each lexicon entry and in the About card
   ============================================ */

/* Pill on each entry (next to L-badge / Yankee chip) — subtle, smaller, italic */
.lexicon-tag-topic {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--text-light);
    border: 1px solid var(--divider);
    border-radius: 2px;
    padding: 0.14rem 0.5rem;
    margin-right: 0.1rem;
    cursor: default;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.lexicon-tag-topic:hover {
    color: var(--main);
    border-color: var(--secondary);
}

/* Topics list inside the About card — wrap, gap, consistent rhythm */
.q-lexicon-topics-list {
    display: inline;
}

.lexicon-topic-pill {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: var(--main);
    border: 1px solid var(--divider);
    border-radius: 2px;
    padding: 0.22rem 0.55rem;
    margin: 0.15rem 0.05rem;
    white-space: nowrap;
    cursor: default;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.lexicon-topic-pill:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.lexicon-topic-pill .lexicon-topic-count {
    font-style: normal;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-left: 0.25rem;
}

.lexicon-topic-pill:hover .lexicon-topic-count {
    color: var(--secondary);
}

@media (max-width: 600px) {
    .lexicon-tag-topic {
        font-size: 0.72rem;
        padding: 0.1rem 0.4rem;
    }
    .lexicon-topic-pill {
        font-size: 0.78rem;
        padding: 0.14rem 0.4rem;
    }
}

/* ============================================
   Quiz term — category chip row (Jeopardy-style hint).
   Holds the existing "From Yankee's history" chip plus topic tags.
   ============================================ */
.q-term-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.5rem;
    align-items: center;
}

/* The Yankee chip already has its own gold styling via .q-term-tag —
   we just need to drop the bottom margin since the parent row handles spacing. */
.q-term-categories .q-term-tag {
    margin-bottom: 0;
}

.q-term-topic {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light);
    border: 1px solid var(--divider);
    padding: 0.18rem 0.55rem;
    border-radius: 2px;
}

@media (max-width: 600px) {
    .q-term-topic {
        font-size: 0.58rem;
        letter-spacing: 0.14em;
        padding: 0.15rem 0.45rem;
    }
}

/* ============================================
   Lexicon filter UI — search + topic + difficulty
   ============================================ */
.lexicon-controls {
    margin: 1rem 0 2rem;
    padding: 1.1rem 1.2rem 1rem;
    border: 1px solid var(--divider);
    border-top: 2px solid var(--secondary);
    border-radius: 4px;
    background: rgba(160, 136, 64, 0.03);
}

.lexicon-controls-search {
    margin-bottom: 0.9rem;
}

.lexicon-controls-search input[type="search"] {
    width: 100%;
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    color: var(--main);
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--divider);
    border-radius: 3px;
    background: var(--bg);
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.lexicon-controls-search input[type="search"]:focus {
    outline: none;
    border-color: var(--secondary);
}

.lexicon-filter-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.lexicon-filter-row:last-child {
    margin-bottom: 0;
}

.lexicon-filter-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--main);
    flex: 0 0 auto;
    min-width: 3.5rem;
    padding-top: 0.25rem;
}

.lexicon-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    flex: 1 1 auto;
}

.lexicon-filter-pill {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--text-light);
    background: transparent;
    border: 1px solid var(--divider);
    border-radius: 2px;
    padding: 0.22rem 0.55rem;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.lexicon-filter-pill:hover {
    color: var(--main);
    border-color: var(--secondary);
}

.lexicon-filter-pill.active {
    color: var(--bg);
    background: var(--secondary);
    border-color: var(--secondary);
}

.lexicon-filter-pill.active:hover {
    background: var(--main);
    border-color: var(--main);
}

/* L-badges in difficulty filter — use the same letter-spacing as the entry L-badges */
.lexicon-filter-pill[data-difficulty] {
    letter-spacing: 0.14em;
    font-size: 0.68rem;
    min-width: 2rem;
    text-align: center;
}

.lexicon-controls-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--divider);
    font-family: 'Lora', Georgia, serif;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lexicon-filter-count.has-filter {
    color: var(--main);
    font-style: normal;
    font-weight: 500;
}

.lexicon-clear-filters {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--main);
    background: transparent;
    border: 1px solid var(--main);
    border-radius: 2px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.lexicon-clear-filters:hover {
    background: var(--main);
    color: var(--bg);
}

/* Hidden by filters — used on entries and letter sections */
.lexicon-entry.filtered-out,
.lexicon-letter.filtered-out {
    display: none;
}

/* Dimmed A-Z letter (no visible entries for it) */
a[data-letter].disabled {
    opacity: 0.25;
    pointer-events: none;
}

.lexicon-empty {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    padding: 3rem 1rem;
}

/* Small-screen tweaks */
@media (max-width: 600px) {
    .lexicon-controls {
        padding: 0.9rem 0.95rem 0.85rem;
    }
    .lexicon-filter-row {
        gap: 0.45rem;
    }
    .lexicon-filter-label {
        font-size: 0.62rem;
        letter-spacing: 0.14em;
        min-width: 3rem;
    }
    .lexicon-filter-pill {
        font-size: 0.66rem;
        padding: 0.2rem 0.45rem;
    }
}

/* ============================================
   Sidebar quiz — topic picker (optional filter)
   ============================================ */
.q-topic-picker {
    margin: 0.85rem 0 0.5rem;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--divider);
}

.q-topic-picker-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--main);
    margin-bottom: 0.55rem;
}

.q-topic-picker-hint {
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.12em;
}

.q-topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
}

.q-topic-pill {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    color: var(--text-light);
    background: transparent;
    border: 1px solid var(--divider);
    border-radius: 2px;
    padding: 0.18rem 0.5rem;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.q-topic-pill:hover {
    color: var(--main);
    border-color: var(--secondary);
}

.q-topic-pill.active {
    color: var(--bg);
    background: var(--secondary);
    border-color: var(--secondary);
}

.q-topic-pill.active:hover {
    background: var(--main);
    border-color: var(--main);
}

.q-topic-clear {
    display: inline-block;
    margin-top: 0.55rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.q-topic-clear:hover {
    color: var(--main);
}

.q-topics-summary {
    font-style: italic;
    color: var(--main);
}

/* Disabled Begin button uses existing .q-btn:disabled styling, but we override
   the cursor here for clarity when an impossible filter combo is selected. */
.q-btn[disabled] {
    cursor: not-allowed;
}

/* ============================================
   COMPACT QUIZ LAYOUT — single-column during a round (MOBILE ONLY)
   On screens ≤ 768px during an active round (but NOT during results):
     - Hide the sidebar entirely (the In Progress card is gone)
     - Show a compact progress strip + Quit at top of main column
     - Show a Next button at the bottom of the answer/feedback block
   On desktop (> 768px), the sidebar's In Progress card stays visible as before.
   During the results screen, the sidebar reappears on all viewports.
   ============================================ */

/* Hide the compact widgets by default; they only appear during a mobile round */
.q-mobile-strip,
.q-btn-next-mobile {
    display: none;
}

@media (max-width: 768px) {
    /* During an active (non-results) round, hide the sidebar entirely on
       mobile — the In Progress card is gone there. (.lexicon-landing is on
       the body itself, so combine the class selectors.) */
    body.lexicon-landing.quiz-active:not(.quiz-results) .sidebar {
        display: none;
    }

    /* Show the compact strip and Next button only on mobile */
    body.quiz-active:not(.quiz-results) .q-mobile-strip {
        display: block;
        padding: 0.75rem 0 1rem 0;
        margin-bottom: 1.25rem;
        border-bottom: 1px solid var(--divider);
    }
    body.quiz-active:not(.quiz-results) .q-btn-next-mobile {
        display: block;
        width: 100%;
        margin-top: 1.5rem;
        scroll-margin-bottom: 2.5rem;
        margin-bottom: 1rem;
    }

    /* During an active round, let the main column use the full width
       so the layout doesn't leave a stranded empty sidebar column. */
    body.lexicon-landing.quiz-active:not(.quiz-results) .content-area {
        grid-template-columns: 1fr;
    }
}

/* Compact strip styling — applies whenever the strip is visible (all viewports) */
.q-mobile-strip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
}

.q-mobile-strip-progress-label strong {
    color: var(--text-body);
    font-weight: 700;
}

.q-mobile-strip-score {
    font-variant-numeric: tabular-nums;
}

.q-mobile-strip-quit {
    background: none;
    border: 1px solid var(--divider);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
}

.q-mobile-strip-quit:hover,
.q-mobile-strip-quit:focus-visible {
    color: var(--text-body);
    border-color: var(--text-body);
    outline: none;
}

.q-mobile-strip-dashes {
    margin-top: 0.7rem;
    display: flex;
    gap: 4px;
}

.q-mobile-strip-dashes .q-progress-step {
    flex: 1;
    min-width: 0;
}

/* ============================================
   STANDALONE QUIZ PAGE LAYOUT  (body.quiz-page)
   Single-column, centered, works at any viewport width.
   ============================================ */

body.quiz-page main {
    padding-bottom: 4rem;
}

#quiz-root {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 480px) {
    #quiz-root {
        padding: 0 1rem;
    }
}

/* Landing: level pickers, topic filter, Begin button */
.q-landing .q-levels-vertical {
    margin-bottom: 1.75rem;
}
.q-landing .q-topic-picker {
    margin-bottom: 1.5rem;
}

/* Status strip — sits at the top of the round screen */
.q-status-strip {
    padding: 0.75rem 0 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--divider);
}
.q-status-strip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
}
.q-status-strip-progress-label strong {
    color: var(--text-body);
    font-weight: 700;
}
.q-status-strip-score {
    font-variant-numeric: tabular-nums;
}
.q-status-strip-quit {
    background: none;
    border: 1px solid var(--divider);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
}
.q-status-strip-quit:hover,
.q-status-strip-quit:focus-visible {
    color: var(--text-body);
    border-color: var(--text-body);
    outline: none;
}
.q-status-strip-dashes {
    margin-top: 0.7rem;
    display: flex;
    gap: 4px;
}
.q-status-strip-dashes .q-progress-step {
    flex: 1;
    min-width: 0;
}

/* Next button (between explanation and the next question) */
.q-btn-next {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    scroll-margin-bottom: 2.5rem;
}

/* Results screen */
.q-results .q-eyebrow {
    margin-bottom: 0.75rem;
}
.q-results-progress {
    display: flex;
    gap: 4px;
    margin-bottom: 2rem;
}
.q-results-progress .q-progress-step {
    flex: 1;
    min-width: 0;
}
.q-results-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}
.q-results-actions .q-btn-block.q-btn-secondary {
    margin-left: 0;
}
.q-results .q-results-list-heading {
    margin-top: 2.5rem;
}

/* Back-to-lexicon link */
.q-back-link {
    text-align: center;
    margin-top: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.q-back-link a {
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.q-back-link a:hover {
    color: var(--main);
    border-bottom-color: var(--main);
}

/* ============================================
   LEXICON-PAGE SIDEBAR CTA
   Small "Take the Quiz" card replacing the in-sidebar quiz UI.
   ============================================ */

.lexicon-quiz-cta {
    background: var(--bg);
    border: 1px solid var(--divider);
    border-radius: 6px;
    padding: 1.75rem 1.5rem;
    text-align: center;
}
.lexicon-quiz-cta .q-eyebrow {
    margin-bottom: 0.5rem;
}
.lexicon-quiz-cta h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
    color: var(--text-body);
}
.lexicon-quiz-cta p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}
.lexicon-quiz-cta .q-btn {
    width: 100%;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .lexicon-quiz-cta {
        padding: 1.5rem 1.25rem;
    }
}
