/* Your Course v15 improvement layer. Loaded only on the improved page, after every v14 stylesheet.
   Presentation only: never changes instrument content, order, anchors or scoring. */
:root{--yc-coral:#c43f22;--yc-coral-soft:#fde3d6;--yc-ink:#25291f;--yc-muted:#55574b;--yc-cream:#fbf6ec;--yc-focus:#1f4d3c;--yc-ring:0 0 0 3px #fbf6ec,0 0 0 6px #1f4d3c}
body{color:var(--yc-ink)}
:root{--muted:#55574b}
/* Keyboard focus: one clear, consistent, high-contrast ring */
:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:3px solid var(--yc-focus)!important;outline-offset:3px!important;border-radius:8px}
.option:has(input:focus-visible){outline:3px solid var(--yc-focus)!important;outline-offset:2px!important}
/* Sticky, calm header */
.header{position:sticky;top:0;z-index:40;background:color-mix(in srgb,var(--yc-cream) 92%,transparent);backdrop-filter:saturate(1.2) blur(8px);-webkit-backdrop-filter:saturate(1.2) blur(8px)}
.header nav a,.header nav .text-button,.motion-toggle{min-height:44px;display:inline-flex;align-items:center}
.yc-nav-start{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;background:var(--yc-coral);color:#fff9f2;font-weight:600;font-size:13px;text-decoration:none;transition:background .2s,transform .2s}
.yc-nav-start:hover{background:#a8341b;transform:translateY(-1px)}
body.yc-in-flow .yc-nav-start{display:none}
/* Hierarchy and contrast */
.eyebrow{color:#5b5d50}
.hero h1{text-wrap:balance}
h2,h3{text-wrap:balance}
p{text-wrap:pretty}
.primary{min-height:52px}
.text-button{min-height:44px}
.footer .text-button,.footer a{min-height:44px;display:inline-flex;align-items:center}
.instrument-credit a,.research-source,.article-source-list a,.assessment-scope a,.profile-links a{text-underline-offset:3px;text-decoration-thickness:1px}
/* Assessment progress */
.progress-track{height:8px!important;background:#ece6d6!important;border-radius:99px}
#progress{background:linear-gradient(90deg,#e0734f,var(--yc-coral))!important;border-radius:99px;transition:width .35s cubic-bezier(.2,.8,.2,1)}
.yc-progress-meta{display:flex;justify-content:space-between;gap:12px;margin-top:8px;font-size:13px;color:var(--yc-muted)}
.yc-progress-meta strong{color:var(--yc-ink);font-weight:600}
.option{min-height:56px;font-size:15px!important}
.option:has(input:checked){background:var(--yc-coral-soft)!important;border-color:var(--yc-coral)!important;box-shadow:inset 4px 0 0 var(--yc-coral)}
.quiz-actions .primary,.quiz-actions .text-button{min-height:48px}
/* Loading and error states */
.yc-status{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:60;max-width:min(92vw,520px);background:var(--yc-ink);color:#fff9f2;border-radius:14px;padding:12px 16px;font-size:14px;line-height:1.5;box-shadow:0 12px 40px #0003}
.yc-status button{background:#fff9f2;color:var(--yc-ink);border-radius:999px;padding:6px 14px;margin-left:10px;min-height:36px;font-weight:600}
.yc-status[hidden]{display:none}
html:not(.yc-ready) [data-start],html:not(.yc-ready) #start-assessment{opacity:.6;pointer-events:none}
/* Mobile: readable sizes and real touch targets (overrides tiny v14 mobile sizes) */
@media(max-width:750px){
 .header{height:64px}
 .header nav{gap:8px!important}
 .motion-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .motion-toggle{width:44px;justify-content:center;padding:0!important}
 .home-link{display:none!important}
 .hero .eyebrow,.eyebrow{font-size:11px!important}
 .hero-proof span,.hero-science-line,.hero-validation-note,.hero-facts,.instrument-credit{font-size:12px!important}
 .hero-value{font-size:15px!important}
 .stage-label,.example-label{font-size:9px!important}
 .example-copy strong{font-size:14px!important}.example-copy p{font-size:12px!important}
 .note-curiosity span{font-size:10px!important}
 .explore-options button{min-height:40px!important;font-size:12px!important;padding:0 14px!important}
 .hero-explore>span{font-size:11px!important}
 .assessment-intro-card>p,.assessment-intro-card li,.assessment-scope p,.assessment-scope a{font-size:14px!important}
 .anchor-preview span{font-size:12px!important}
 .assessment-intro-card .primary,.editorial-choice>.primary{font-size:15px!important;width:100%;justify-content:center}
 .profile-card .area-description summary,.area-description p,.profile-warning p,.editorial-notice,.editorial-choice>p{font-size:14px!important}
 .profile-links a{font-size:14px!important;min-height:44px;display:inline-flex;align-items:center}
 .area-option{font-size:13px!important;min-height:48px}
 .footer .text-button{font-size:13px!important}
 .quiz-actions{position:sticky;bottom:0;background:linear-gradient(to top,var(--bg) 75%,transparent);padding-top:14px;padding-bottom:12px;z-index:5}
 .journey-stage{font-size:11px!important}
}
@media(max-width:360px){.hero-proof span,.instrument-credit{font-size:11px!important}.stage-label,.example-label{font-size:8px!important}.explore-options button{font-size:11px!important;padding:0 10px!important}}
@media(prefers-reduced-motion:reduce){#progress,.yc-nav-start{transition:none!important}}
html.motion-paused #progress{transition:none}
.yc-unconfigured{display:block;margin-top:4px;font-weight:600;color:var(--yc-ink)}
