/* SkillQuest semantic color pairs. Layout and Theme 1 typography remain in theme-one.css. */
.cq-root[data-sq-theme]{color:var(--cq-ink);background:var(--cq-paper)}
.cq-root[data-sq-theme] h1,.cq-root[data-sq-theme] h2,.cq-root[data-sq-theme] h3{font-family:var(--cq-heading-font)!important}
.cq-root[data-sq-theme] button{font-family:var(--cq-interface-font)!important}
.cq-root[data-sq-theme] button.cq-brand{font-family:var(--cq-heading-font)!important}
.cq-root[data-sq-theme] button:disabled{opacity:1!important;filter:none}
.cq-root .cq-brand-light,.cq-root .cq-heading-dot{color:var(--cq-accent-readable)}
.cq-root .cq-eyebrow,.cq-root .cq-mission-state,.cq-root .cq-challenge>.cq-eyebrow,.cq-root .cq-recap>.cq-eyebrow{color:var(--cq-accent-link)}
.cq-root .cq-help:hover{color:var(--cq-accent-link)}
.cq-root .cq-dim,.cq-root .cq-path-link small,.cq-root .cq-track-tab small,.cq-root .cq-pill span,.cq-root .cq-order-controls button:disabled{opacity:1}
.cq-root .cq-topbar,.cq-root .cq-outline{background:var(--cq-pale)}
.cq-root .cq-outline:hover{background:var(--cq-paper)}
.cq-root .cq-primary{background:var(--cq-blue);color:var(--cq-primary-text)}
.cq-root .cq-primary:hover:not(:disabled){background:var(--cq-blue-dark);color:var(--cq-primary-hover-text)}
.cq-root .cq-primary:disabled{background:var(--cq-soft);color:var(--cq-soft-muted);opacity:1}
.cq-root .cq-campaign .cq-primary{background:var(--cq-orange);color:var(--cq-accent-text)}
.cq-root .cq-campaign .cq-primary:hover{background:var(--cq-orange-dark);color:var(--cq-accent-hover-text)}
.cq-root .cq-level-emblem{background:var(--cq-reward-bg);color:var(--cq-reward-ink);border-color:var(--cq-reward-ink)}
.cq-root .cq-mission-tile.is-complete{background:var(--cq-paper);border-color:var(--cq-success-solid)}
.cq-root .cq-mission-tile.is-complete:hover{background:var(--cq-success-bg);border-color:var(--cq-success-text)}
.cq-root .is-complete .cq-mission-number{background:var(--cq-success-bg);color:var(--cq-success-text);border-color:var(--cq-success-solid)}
.cq-root .is-complete .cq-tile-bottom{color:var(--cq-link)}
.cq-root .cq-mission-tile.is-complete:hover h3,.cq-root .cq-mission-tile.is-complete:hover>small,.cq-root .cq-mission-tile.is-complete:hover .cq-tile-bottom{color:var(--cq-success-text)}
.cq-root .cq-mission-tile.is-current:hover .cq-mission-number,.cq-root .cq-mission-tile.is-current:hover .cq-mission-state{color:var(--cq-pale-link)}
.cq-root .cq-stars .cq-icon{color:var(--cq-icon-muted);fill:none}
.cq-root .cq-stars .cq-icon.is-earned{color:var(--cq-star);fill:var(--cq-reward-bg)}
.cq-root .cq-brief-card .cq-stars .cq-icon{color:var(--cq-pale-link)}
.cq-root .is-complete:hover .cq-stars .cq-icon{color:var(--cq-success-text)}
.cq-root .cq-top-stats>span:nth-child(2) .cq-icon{color:var(--cq-star-pale);fill:none}
.cq-root .cq-footer button,.cq-root .cq-footer button:hover{color:var(--cq-soft-link)}
.cq-root .cq-stage-dots span{background:var(--cq-icon-muted)}
.cq-root .cq-stage-dots span.is-current{background:var(--cq-link)}
.cq-root .cq-stage-dots span.is-complete{background:var(--cq-link)}
.cq-root .cq-mini-meter span{background:var(--cq-soft-link)}
.cq-root .cq-level-meter span{background:var(--cq-link)}
.cq-root .cq-option.is-correct{border-color:var(--cq-success-solid);background:var(--cq-success-bg);color:var(--cq-success-text);box-shadow:inset 3px 0 var(--cq-success-solid)}
.cq-root .cq-option.is-correct .cq-option-letter{background:var(--cq-success-solid);border-color:var(--cq-success-solid);color:var(--cq-on-success)}
.cq-root .cq-order-controls button:disabled{color:var(--cq-muted);background:var(--cq-paper);border-style:dashed;cursor:not-allowed}
.cq-root .cq-feedback{background:var(--cq-success-bg);color:var(--cq-success-text);border-color:var(--cq-success-solid)}
.cq-root .cq-feedback .cq-feedback-head h2,.cq-root .cq-feedback-head>span,.cq-root .cq-feedback-head>b,.cq-root .cq-feedback>p,.cq-root .cq-takeaway,.cq-root .cq-feedback-actions>span:not(.cq-stars){color:var(--cq-success-text)}
.cq-root .cq-takeaway{border-color:var(--cq-success-text)}
.cq-root .cq-feedback .cq-stars .cq-icon{color:var(--cq-success-text)}
.cq-root .cq-feedback.is-retry{background:var(--cq-warning-bg);color:var(--cq-warning-text);border-color:var(--cq-warning-text)}
.cq-root .cq-feedback.is-retry .cq-feedback-head h2,.cq-root .cq-feedback.is-retry .cq-feedback-head>span,.cq-root .cq-feedback.is-retry>p,.cq-root .is-retry .cq-takeaway,.cq-root .is-retry .cq-feedback-actions>span:not(.cq-stars){color:var(--cq-warning-text)}
.cq-root .is-retry .cq-takeaway{border-color:var(--cq-warning-text)}
.cq-root .cq-big-badge{background:var(--cq-reward-bg);color:var(--cq-reward-ink);border-color:var(--cq-reward-ink);outline-color:var(--cq-reward-ink);box-shadow:inset 0 0 0 5px var(--cq-paper),0 3px 8px rgba(25,46,63,.13)}
.cq-root .cq-badge-art{background:var(--cq-paper);color:var(--cq-icon-muted);border-color:var(--cq-line);box-shadow:inset 0 0 0 4px var(--cq-paper)}
.cq-root .is-earned .cq-badge-yellow,.cq-root .is-earned .cq-badge-youtube{background:var(--cq-reward-bg);color:var(--cq-reward-ink);border-color:var(--cq-reward-ink)}
.cq-root .cq-confetti i:nth-child(3n){background:var(--cq-orange)}
.cq-root .cq-confetti i:nth-child(3n+1){background:var(--cq-blue)}
.cq-root button:focus-visible,.cq-root a:focus-visible{outline:2px solid var(--cq-ink);outline-offset:4px;box-shadow:0 0 0 4px var(--cq-paper)}
/* Shared hub and course panels use these tokens without restyling the surrounding theme. */
.cq-hub[data-sq-theme]{color:var(--cq-ink);background:var(--cq-paper);font-family:var(--cq-body-font)}
.cq-hub[data-sq-theme] .cq-hub-intro,.cq-hub[data-sq-theme] .content-card{background:var(--cq-paper);color:var(--cq-ink)}
.cq-hub[data-sq-theme] .cq-hub-intro h2,.cq-hub[data-sq-theme] .cq-hub-category h2,.cq-hub[data-sq-theme] .course-card h3{color:var(--cq-heading)}
.cq-hub[data-sq-theme] .course-card{background:var(--cq-paper);color:var(--cq-ink);border-color:var(--cq-line)}
.cq-hub[data-sq-theme] .course-card p,.cq-hub[data-sq-theme] .lead,.cq-hub[data-sq-theme] .course-meta,.cq-hub[data-sq-theme] .cq-hub-note,.cq-hub[data-sq-theme] .cq-hub-category-heading>span{color:var(--cq-muted)}
.cq-hub[data-sq-theme] .eyebrow,.cq-hub[data-sq-theme] .cq-hub-back a,.cq-hub[data-sq-theme] .cq-game-access--available{color:var(--cq-link)}
.cq-hub[data-sq-theme] .eyebrow,.cq-course-game-panel[data-sq-theme] .eyebrow{background:transparent}
.cq-hub[data-sq-theme] .course-thumb span{background:var(--cq-blue);color:var(--cq-primary-text)}
.cq-hub[data-sq-theme] .button,.cq-course-game-panel[data-sq-theme] .button{background:var(--cq-blue)!important;color:var(--cq-primary-text)!important;border-color:var(--cq-blue-dark)!important}
.cq-hub[data-sq-theme] .button:hover,.cq-course-game-panel[data-sq-theme] .button:hover{background:var(--cq-blue-dark)!important;color:var(--cq-primary-hover-text)!important}
.cq-hub[data-sq-theme] .button--orange,.cq-course-game-panel[data-sq-theme] .button--orange{background:var(--cq-orange)!important;color:var(--cq-accent-text)!important;border-color:var(--cq-orange-dark)!important}
.cq-hub[data-sq-theme] .button--orange:hover,.cq-course-game-panel[data-sq-theme] .button--orange:hover{background:var(--cq-orange-dark)!important;color:var(--cq-accent-hover-text)!important}
.cq-course-game-panel[data-sq-theme],.cq-purchase-benefit[data-sq-theme]{background:var(--cq-pale);color:var(--cq-pale-text);border-color:var(--cq-line);border-top-color:var(--cq-orange)}
.cq-course-game-panel[data-sq-theme] h2,.cq-purchase-benefit[data-sq-theme] h3{color:var(--cq-pale-heading)!important}
.cq-course-game-panel[data-sq-theme] p,.cq-purchase-benefit[data-sq-theme] p,.cq-purchase-benefit[data-sq-theme] li{color:var(--cq-pale-text)!important}
.cq-purchase-benefit[data-sq-theme] .cq-purchase-benefit-icon{background:var(--cq-paper);color:var(--cq-link)}
.cq-purchase-benefit[data-sq-theme] li::before{color:var(--cq-pale-link)}
/* Match the Studio/Tutor control selectors, retaining our checked color pairs. */
.cq-hub[data-sq-theme] a.button:not(.button--orange):not(.button--light){background:var(--cq-blue)!important;color:var(--cq-primary-text)!important;border-color:var(--cq-blue-dark)!important}
.cq-hub[data-sq-theme] a.button:not(.button--orange):not(.button--light):hover,.cq-hub[data-sq-theme] a.button:not(.button--orange):not(.button--light):focus{background:var(--cq-blue-dark)!important;color:var(--cq-primary-hover-text)!important}
.cq-course-game-panel[data-sq-theme] a.button.button--orange.tutor-btn-primary{background:var(--cq-orange)!important;color:var(--cq-accent-text)!important;border-color:var(--cq-orange-dark)!important}
.cq-course-game-panel[data-sq-theme] a.button.button--orange.tutor-btn-primary:hover,.cq-course-game-panel[data-sq-theme] a.button.button--orange.tutor-btn-primary:focus{background:var(--cq-orange-dark)!important;color:var(--cq-accent-hover-text)!important}
.cq-hub[data-sq-theme] .cq-game-card a.button.button--orange:hover,.cq-hub[data-sq-theme] .cq-game-card a.button.button--orange:focus{background:var(--cq-orange-dark)!important;color:var(--cq-accent-hover-text)!important}
/* Actual hub markup uses .course-label, not the early preview's .course-thumb. */
.cq-hub[data-sq-theme] .cq-game-card .course-label{background:var(--cq-blue)!important;color:var(--cq-primary-text)!important;border-color:var(--cq-blue-dark)!important}
.cq-hub[data-sq-theme] .cq-game-card h3 a{color:var(--cq-heading)!important}
.cq-hub[data-sq-theme] .cq-game-card h3 a:hover{color:var(--cq-link)!important}
/* Keep the painted surface paired with its checked foreground even where a
   theme has a more specific, fixed-white .content-card rule. */
.cq-course-game-panel[data-sq-theme].content-card,.cq-purchase-benefit[data-sq-theme]{background:var(--cq-pale)!important;color:var(--cq-pale-text)!important}
.cq-hub[data-sq-theme] a:focus-visible,.cq-course-game-panel[data-sq-theme] a:focus-visible,.cq-purchase-benefit[data-sq-theme] a:focus-visible{outline:2px solid var(--cq-link);outline-offset:4px;box-shadow:0 0 0 2px var(--cq-paper)}
