/* BLEUWIND Academy: premium learning experience. Mobile first. */

.ac { --ac-max: 1180px; }
.ac-wrap { max-width: var(--ac-max); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.ac-narrow { max-width: 820px; }
body.bw-academy main { background: #fff; }
body.bw-academy .bw-academy-error { background: #fdecea; color: #8a2412; border-radius: 12px; padding: .8rem 1rem; }
body.bw-academy .bw-academy-error.is-ok { background: #e7f6ec; color: #135e2a; }

/* ---------- shared ---------- */
.ac-kicker { display: inline-flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 800; color: var(--bw-turq); }
.ac-kicker-dark { color: var(--bw-ocean); }
.ac-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff; font-weight: 700; font-size: .85rem; backdrop-filter: blur(8px); }
.ac-chip-light { background: var(--bw-sky); color: var(--bw-navy); border-color: transparent; }
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.5rem; border-radius: 999px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; line-height: 1; transition: transform .2s var(--bw-ease), box-shadow .2s var(--bw-ease), background .2s; }
.ac-btn:hover { transform: translateY(-2px); }
.ac-btn-primary { background: linear-gradient(135deg, var(--bw-ocean), var(--bw-turq)); color: #fff; box-shadow: 0 14px 28px -14px rgba(8,126,174,.9); }
.ac-btn-navy { background: var(--bw-navy); color: #fff; box-shadow: 0 14px 28px -16px rgba(8,36,58,.9); }
.ac-btn-navy:hover { background: var(--bw-navy-2); }
.ac-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.8); }
.ac-btn-soft { background: var(--bw-sky); color: var(--bw-navy); }
.ac-btn[disabled], .ac-btn.is-disabled { opacity: .5; pointer-events: none; }
.ac-icon { width: 1.25em; height: 1.25em; flex: none; }
.ac-bar { height: 8px; border-radius: 999px; background: var(--bw-line); overflow: hidden; }
.ac-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bw-ocean), var(--bw-turq)); transition: width .8s var(--bw-ease); }
.ac-bar-dark { background: rgba(255,255,255,.18); }
.ac-section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.ac-section-mist { background: var(--bw-mist); }
.ac-h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .3rem 0 .6rem; }
.ac-lead { color: var(--bw-muted); font-size: 1.08rem; max-width: 44rem; margin: 0; }
.ac-rule { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.ac-rule::after { content: ""; flex: 1; height: 1px; background: var(--bw-line); }
.ac-disclaimer { background: var(--bw-navy); color: rgba(255,255,255,.82); text-align: center; font-size: .86rem; font-style: italic; padding: 1rem; }

/* ---------- hero ---------- */
.ac-hero { position: relative; color: #fff; overflow: hidden; background: var(--bw-navy); isolation: isolate; }
.ac-hero > img, .ac-hero > .ac-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ac-hero > .ac-hero-art { display: grid; place-items: center; background: linear-gradient(135deg, #DDF3FA, #BFE6F1); }
.ac-hero > .ac-hero-art svg { width: min(92%, 760px); height: auto; opacity: .95; }
.ac-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8,36,58,.9) 0%, rgba(8,36,58,.62) 42%, rgba(8,36,58,.1) 78%), linear-gradient(0deg, rgba(8,36,58,.55), transparent 45%); }
.ac-hero-inner { padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(5rem, 10vw, 7rem); max-width: 40rem; }
.ac-hero h1 { color: #fff !important; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.02; margin: .6rem 0 .4rem; text-transform: none; }
.ac-hero .ac-tagline { font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 800; font-style: italic; color: #fff; margin: 0 0 1rem; position: relative; display: inline-block; }
.ac-hero .ac-tagline::after { content: ""; position: absolute; left: 0; bottom: -.45rem; width: 4.5rem; height: 4px; border-radius: 4px; background: var(--bw-turq); }
.ac-hero p.ac-hero-lead { color: rgba(255,255,255,.9); font-size: 1.12rem; margin: 1.2rem 0 1.6rem; max-width: 34rem; }
.ac-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.ac-hero-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }

/* ---------- learning path strip ---------- */
.ac-path { position: relative; margin-top: -3rem; z-index: 2; }
.ac-path-card { background: #fff; border-radius: var(--bw-radius-lg); box-shadow: var(--bw-shadow); display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.1rem; gap: .4rem; }
.ac-path-step { min-width: 0; display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: 14px; text-decoration: none; color: var(--bw-navy); font-weight: 750; }
.ac-path-step:hover { background: var(--bw-mist); }
.ac-path-num { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--bw-navy); color: #fff; font-size: .8rem; font-weight: 800; flex: none; }
.ac-path-step .ac-icon { width: 1.9rem; height: 1.9rem; color: var(--bw-ocean); }
.ac-path-step + .ac-path-step { border-left: 1px solid var(--bw-line); border-radius: 0 14px 14px 0; }

/* ---------- course cards ---------- */
.ac-stage { margin-top: 2.2rem; }
.ac-stage-head { display: flex; align-items: baseline; gap: .8rem; margin: 0 0 1rem; }
.ac-stage-head h3 { margin: 0; font-size: 1.25rem; }
.ac-stage-head span { color: var(--bw-muted); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.ac-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ac-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; border-radius: var(--bw-radius); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--bw-shadow-soft); transition: transform .35s var(--bw-ease), box-shadow .35s var(--bw-ease); }
.ac-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--bw-ease); }
.ac-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,36,58,.92) 0%, rgba(8,36,58,.35) 55%, rgba(8,36,58,.05) 100%); }
.ac-card:hover { transform: translateY(-5px); box-shadow: var(--bw-shadow); }
.ac-card:hover img { transform: scale(1.06); }
.ac-card-body { padding: 1.15rem 1.2rem 1.1rem; }
.ac-card-num { font-size: .72rem; letter-spacing: .2em; font-weight: 800; color: var(--bw-turq); }
.ac-card h4 { color: #fff; font-size: 1.28rem; margin: .25rem 0 .55rem; letter-spacing: -.01em; }
.ac-card-meta { display: flex; align-items: center; gap: .9rem; font-size: .86rem; color: rgba(255,255,255,.85); }
.ac-card-meta .ac-icon { width: 1rem; height: 1rem; }
.ac-card-go { position: absolute; right: 1rem; bottom: 1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #fff; color: var(--bw-navy); display: grid; place-items: center; box-shadow: 0 8px 16px -8px rgba(0,0,0,.5); }
.ac-card .ac-bar { margin-top: .7rem; background: rgba(255,255,255,.25); width: calc(100% - 3.4rem); }
.ac-card-done { position: absolute; top: .9rem; left: .9rem; }

/* ---------- how it works / exam teaser ---------- */
.ac-steps { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.ac-step { background: #fff; border-radius: var(--bw-radius); padding: 1.3rem; box-shadow: var(--bw-shadow-soft); }
.ac-step .ac-icon { width: 2rem; height: 2rem; color: var(--bw-ocean); }
.ac-step h4 { margin: .7rem 0 .3rem; font-size: 1.05rem; }
.ac-step p { margin: 0; color: var(--bw-muted); font-size: .94rem; }
.ac-exam-teaser { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: var(--bw-radius-lg); overflow: hidden; background: var(--bw-navy); color: #fff; box-shadow: var(--bw-shadow); }
.ac-exam-teaser img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.ac-exam-teaser-copy { padding: clamp(1.6rem, 4vw, 2.6rem); }
.ac-exam-teaser h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: .4rem 0 .6rem; }
.ac-exam-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1.2rem 0 1.4rem; }
.ac-exam-facts div { background: rgba(255,255,255,.08); border-radius: 14px; padding: .8rem; text-align: center; }
.ac-exam-facts strong { display: block; font-size: 1.5rem; color: #fff; }
.ac-exam-facts span { font-size: .8rem; color: rgba(255,255,255,.75); }

/* ---------- course page ---------- */
.ac-course-hero .ac-hero-inner { padding-bottom: clamp(4rem, 8vw, 6rem); }
.ac-facts { display: flex; flex-wrap: wrap; gap: .6rem; }
.ac-course-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.ac-panel { background: #fff; border: 1px solid var(--bw-line); border-radius: var(--bw-radius); padding: 1.4rem; box-shadow: var(--bw-shadow-soft); }
.ac-panel h3 { margin: 0 0 .8rem; font-size: 1.15rem; }
.ac-objectives { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.ac-objectives li { display: flex; gap: .7rem; align-items: flex-start; }
.ac-objectives .ac-icon { color: var(--bw-ok); margin-top: .15rem; }
.ac-lessons { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.ac-lesson-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .9rem; border-radius: 16px; border: 1px solid var(--bw-line); background: #fff; text-decoration: none; color: var(--bw-ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.ac-lesson-row:hover { border-color: var(--bw-turq); box-shadow: var(--bw-shadow-soft); transform: translateX(3px); }
.ac-lesson-thumb { width: 88px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--bw-sky); display: grid; place-items: center; }
.ac-lesson-thumb img, .ac-lesson-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.ac-lesson-row h4 { margin: 0 0 .2rem; font-size: 1.05rem; }
.ac-lesson-row p { margin: 0; color: var(--bw-muted); font-size: .9rem; }
.ac-status { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 800; padding: .35rem .7rem; border-radius: 999px; background: var(--bw-mist); color: var(--bw-muted); white-space: nowrap; }
.ac-status.is-done { background: #e7f6ec; color: #18753a; }
.ac-status.is-next { background: var(--bw-sky); color: var(--bw-ocean); }
.ac-sticky { position: sticky; top: 6rem; display: grid; gap: 1rem; }
.ac-progress-big { font-size: 2.4rem; font-weight: 800; color: var(--bw-navy); line-height: 1; }

/* ---------- lesson page ---------- */
.ac-topbar { position: sticky; top: 0; z-index: 30; background: var(--bw-navy); color: #fff; }
.ac-topbar-inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }
.ac-topbar a { color: #fff; text-decoration: none; }
.ac-topbar-title { font-weight: 800; letter-spacing: .02em; display: flex; align-items: center; gap: .7rem; min-width: 0; }
.ac-topbar-title small { color: var(--bw-turq); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; }
.ac-topbar-progress { margin-left: auto; display: flex; align-items: center; gap: .8rem; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.ac-topbar-progress .ac-bar { width: 140px; }
.ac-topbar-back { border: 1.5px solid rgba(255,255,255,.6); border-radius: 999px; padding: .45rem .9rem; font-weight: 750; font-size: .88rem; white-space: nowrap; }
.ac-lesson-hero { position: relative; min-height: clamp(320px, 52vh, 520px); display: flex; align-items: flex-end; }
.ac-lesson-hero .ac-hero-inner { padding: 3.5rem 0 3rem; }
.ac-lesson-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.ac-lesson-hero.is-art { background: linear-gradient(135deg, #EAF7FB, #CDEFF7); color: var(--bw-navy); min-height: 0; }
.ac-lesson-hero.is-art::after { display: none; }
.ac-lesson-hero.is-art h1 { color: var(--bw-navy) !important; }
.ac-lesson-hero.is-art .ac-hero-lead { color: var(--bw-muted) !important; }
.ac-art-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; align-items: center; padding: 2.6rem 0; }
.ac-art-hero .ac-figure { background: #fff; }
.ac-course-pill { display: inline-flex; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.7); color: #fff; font-weight: 750; font-size: .9rem; background: rgba(8,36,58,.25); backdrop-filter: blur(6px); }
.is-art .ac-course-pill { color: var(--bw-navy); border-color: rgba(8,36,58,.25); background: #fff; }
.ac-underline { display: block; width: 4.5rem; height: 4px; border-radius: 4px; background: var(--bw-turq); margin: .9rem 0 0; }
.ac-lesson-body { display: grid; gap: clamp(1.8rem, 4vw, 3rem); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.ac-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center; }
.ac-block.is-text { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.ac-block:nth-of-type(even):not(.is-text) .ac-figure { order: -1; }
.ac-block h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 0 0 .7rem; }
.ac-block p { margin: 0 0 .75rem; font-size: 1.07rem; color: #233848; }
.ac-figure { margin: 0; background: var(--bw-mist); border-radius: var(--bw-radius); overflow: hidden; box-shadow: var(--bw-shadow-soft); }
.ac-figure svg.bw-dg, .ac-figure img { display: block; width: 100%; height: auto; }
.ac-figure figcaption { font-size: .85rem; color: var(--bw-muted); padding: .7rem 1rem; background: #fff; }
svg.bw-dg { font-family: var(--bw-font); }
.ac-callouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ac-callout { border-radius: var(--bw-radius); padding: 1.3rem 1.3rem 1.1rem; }
.ac-callout h3 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .7rem; font-size: 1.08rem; }
.ac-callout ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ac-callout li { display: flex; gap: .55rem; align-items: flex-start; font-weight: 600; }
.ac-callout li .ac-icon { color: var(--bw-ocean); margin-top: .1rem; }
.ac-callout-key { background: var(--bw-sky); }
.ac-callout-example { background: var(--bw-navy); color: #fff; }
.ac-callout-example h3 { color: #fff; }
.ac-callout-example p { color: rgba(255,255,255,.9); margin: 0; }
.ac-callout-safety { background: #FFF3EE; border: 1.5px solid #F6C6B5; }
.ac-callout-safety h3 { color: #A6341A; }
.ac-callout-safety p { margin: 0; color: #5d2a1d; }
.ac-terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.ac-term { background: var(--bw-mist); border-radius: 14px; padding: .8rem 1rem; }
.ac-term strong { color: var(--bw-navy); display: block; }
.ac-term span { color: var(--bw-muted); font-size: .93rem; }
.ac-summary { border-left: 4px solid var(--bw-turq); padding: .4rem 0 .4rem 1rem; font-size: 1.1rem; font-weight: 650; color: var(--bw-navy); }

/* quick question */
.ac-quick { background: #fff; border: 1px solid var(--bw-line); border-radius: var(--bw-radius-lg); box-shadow: var(--bw-shadow); overflow: hidden; }
.ac-quick-head { background: var(--bw-navy); color: #fff; padding: 1rem 1.3rem; display: flex; align-items: center; gap: .7rem; font-weight: 800; font-size: 1.1rem; }
.ac-quick-head .ac-icon { width: 1.8rem; height: 1.8rem; }
.ac-quick-body { padding: 1.3rem; }
.ac-quick legend { font-size: 1.15rem; font-weight: 800; color: var(--bw-navy); margin-bottom: .9rem; padding: 0; }
.ac-quick fieldset { border: 0; padding: 0; margin: 0; }
.ac-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.ac-option { position: relative; display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 14px; border: 1.5px solid var(--bw-line); background: var(--bw-mist); cursor: pointer; font-weight: 650; transition: border-color .2s, background .2s, transform .15s; }
.ac-option:hover { border-color: var(--bw-turq); background: #fff; }
.ac-option input { position: absolute; opacity: 0; pointer-events: none; }
.ac-option-letter { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #fff; border: 1.5px solid var(--bw-line); font-weight: 800; color: var(--bw-navy); flex: none; }
.ac-option:has(input:checked) { border-color: var(--bw-ocean); background: #fff; box-shadow: 0 0 0 4px rgba(25,179,201,.15); }
.ac-option:has(input:checked) .ac-option-letter { background: var(--bw-ocean); color: #fff; border-color: var(--bw-ocean); }
.ac-option.is-right { border-color: var(--bw-ok) !important; background: #eef9f1 !important; }
.ac-option.is-wrong { border-color: var(--bw-warn) !important; background: #fdf0ec !important; }
.ac-feedback { margin: 1rem 0 0; padding: .9rem 1rem; border-radius: 12px; font-weight: 650; display: none; }
.ac-feedback.is-shown { display: block; }
.ac-feedback.is-good { background: #e7f6ec; color: #135e2a; }
.ac-feedback.is-bad { background: #fdecea; color: #8a2412; }
.ac-quick-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.2rem; }
.ac-lesson-nav { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 3rem; border-top: 1px solid var(--bw-line); }
.ac-lesson-nav a { text-decoration: none; color: var(--bw-navy); font-weight: 750; display: inline-flex; align-items: center; gap: .5rem; }
.ac-note { font-size: .88rem; color: var(--bw-muted); }
.ac-review-badge { display: inline-flex; align-items: center; gap: .4rem; background: #FFF6DB; color: #7A5A00; border-radius: 999px; padding: .3rem .8rem; font-size: .78rem; font-weight: 800; }

/* ---------- quiz & exam ---------- */
.ac-quiz-head { background: linear-gradient(135deg, var(--bw-navy), var(--bw-navy-2)); color: #fff; padding: clamp(2.2rem, 5vw, 3.4rem) 0; }
.ac-quiz-head h1 { color: #fff !important; margin: .5rem 0 .4rem; font-size: clamp(2rem, 4.5vw, 3rem); }
.ac-quiz-head p { color: rgba(255,255,255,.85); margin: 0; }
.ac-qlist { display: grid; gap: 1.2rem; padding: 2rem 0; }
.ac-q { background: #fff; border: 1px solid var(--bw-line); border-radius: var(--bw-radius); padding: 1.3rem; box-shadow: var(--bw-shadow-soft); }
.ac-q-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .7rem; }
.ac-q-num { font-size: .75rem; letter-spacing: .16em; font-weight: 800; color: var(--bw-ocean); text-transform: uppercase; }
.ac-q h3 { margin: 0 0 1rem; font-size: 1.2rem; }
.ac-q .ac-figure { max-width: 560px; margin: 0 0 1rem; }
.ac-q-explain { margin-top: .9rem; padding: .9rem 1rem; border-radius: 12px; background: var(--bw-mist); }
.ac-q-explain strong { display: block; margin-bottom: .2rem; }
.ac-q.is-right { border-color: #9bd8ab; }
.ac-q.is-wrong { border-color: #f1b3a2; }
.ac-result { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; background: #fff; border-radius: var(--bw-radius-lg); box-shadow: var(--bw-shadow); padding: clamp(1.4rem, 4vw, 2.2rem); margin-top: -2.2rem; position: relative; }
.ac-ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ring, var(--bw-ocean)) calc(var(--p) * 1%), var(--bw-line) 0); }
.ac-ring > div { width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.ac-ring strong { font-size: 2rem; color: var(--bw-navy); line-height: 1; }
.ac-ring span { font-size: .75rem; color: var(--bw-muted); font-weight: 700; }
.ac-result h2 { margin: 0 0 .4rem; }
.ac-pass { color: var(--bw-ok); }
.ac-fail { color: var(--bw-warn); }
.ac-topics { display: grid; gap: .8rem; }
.ac-topic { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) auto; gap: 1rem; align-items: center; }
.ac-topic .ac-bar span.is-low { background: linear-gradient(90deg, #E4572E, #F4A261); }
.ac-timer { position: sticky; top: 0; z-index: 40; background: var(--bw-navy); color: #fff; box-shadow: 0 8px 18px -12px rgba(0,0,0,.6); }
.ac-timer-inner { display: flex; align-items: center; gap: 1rem; padding: .75rem 0; flex-wrap: wrap; }
.ac-timer-clock { font-variant-numeric: tabular-nums; font-size: 1.35rem; font-weight: 800; display: inline-flex; align-items: center; gap: .5rem; }
.ac-timer-clock.is-low { color: #FFB199; }
.ac-timer .ac-bar { flex: 1; min-width: 120px; }
.ac-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 1.4rem 0; }
.ac-rule-box { background: var(--bw-mist); border-radius: 16px; padding: 1rem; text-align: center; }
.ac-rule-box strong { display: block; font-size: 1.7rem; color: var(--bw-navy); }
.ac-rule-box span { color: var(--bw-muted); font-size: .88rem; font-weight: 650; }
.ac-table { width: 100%; border-collapse: collapse; }
.ac-table th, .ac-table td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--bw-line); font-size: .95rem; }
.ac-table th { color: var(--bw-muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- dashboard ---------- */
.ac-dash-head { background: linear-gradient(135deg, var(--bw-navy), #0B3B5A 60%, var(--bw-ocean)); color: #fff; padding: clamp(2.4rem, 5vw, 3.6rem) 0 clamp(4.5rem, 7vw, 5.5rem); }
.ac-dash-head h1 { color: #fff !important; margin: .4rem 0; font-size: clamp(2rem, 4.5vw, 3rem); }
.ac-dash-head p { color: rgba(255,255,255,.85); margin: 0; }
.ac-dash-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; margin-top: -3rem; position: relative; }
.ac-continue { display: grid; grid-template-columns: 180px 1fr; border-radius: var(--bw-radius-lg); overflow: hidden; background: #fff; box-shadow: var(--bw-shadow); text-decoration: none; color: var(--bw-ink); }
.ac-continue-media { background: var(--bw-sky); }
.ac-continue-media img, .ac-continue-media svg { width: 100%; height: 100%; object-fit: cover; }
.ac-continue-copy { padding: 1.3rem; }
.ac-continue-copy h3 { margin: .3rem 0 .4rem; font-size: 1.3rem; }
.ac-stat-card { background: #fff; border-radius: var(--bw-radius-lg); box-shadow: var(--bw-shadow); padding: 1.3rem; display: flex; gap: 1.2rem; align-items: center; }
.ac-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.ac-mini-card { display: grid; grid-template-columns: 76px 1fr; gap: .9rem; align-items: center; padding: .8rem; border-radius: 16px; background: #fff; border: 1px solid var(--bw-line); text-decoration: none; color: var(--bw-ink); transition: box-shadow .2s, transform .2s; }
.ac-mini-card:hover { box-shadow: var(--bw-shadow-soft); transform: translateY(-2px); }
.ac-mini-card img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.ac-mini-card h4 { margin: 0 0 .35rem; font-size: 1rem; }
.ac-mini-card small { color: var(--bw-muted); font-weight: 650; }
.ac-cert-list { display: grid; gap: .7rem; }
.ac-cert { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-radius: 16px; background: linear-gradient(135deg, #fff, var(--bw-sky)); border: 1px solid var(--bw-line); }

/* ---------- auth ---------- */
.ac-auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 80px); }
.ac-auth-media { position: relative; background: var(--bw-navy); color: #fff; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; padding: 2.5rem; }
.ac-auth-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ac-auth-media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,36,58,.9), rgba(8,36,58,.15) 60%); }
.ac-auth-media h2 { color: #fff !important; }
.ac-auth-form { display: flex; align-items: center; justify-content: center; padding: 2.5rem clamp(1rem, 5vw, 4rem); }
.ac-auth-form form { display: grid; gap: 1rem; width: min(100%, 420px); }
.ac-auth-form label { display: grid; gap: .4rem; font-weight: 700; color: var(--bw-navy); font-size: .95rem; }
.ac-auth-form input { padding: .9rem 1rem; font-size: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .ac-course-layout, .ac-dash-top, .ac-exam-teaser, .ac-art-hero { grid-template-columns: 1fr; }
    .ac-sticky { position: static; }
    .ac-callouts { grid-template-columns: 1fr; }
    .ac-steps { grid-template-columns: repeat(2, 1fr); }
    .ac-rules { grid-template-columns: repeat(2, 1fr); }
    .ac-auth { grid-template-columns: 1fr; }
    .ac-auth-media { min-height: 260px; }
}
@media (max-width: 760px) {
    .ac-path-card { grid-template-columns: repeat(2, 1fr); }
    .ac-path-step + .ac-path-step { border-left: 0; }
    .ac-block, .ac-block:nth-of-type(even):not(.is-text) { grid-template-columns: 1fr; }
    .ac-block .ac-figure { order: -1; }
    .ac-options { grid-template-columns: 1fr; }
    .ac-topbar-progress .ac-bar, .ac-topbar-progress .ac-hide-sm { display: none; }
    .ac-continue { grid-template-columns: 1fr; }
    .ac-continue-media { height: 170px; }
    .ac-result { grid-template-columns: 1fr; justify-items: start; }
    .ac-topic { grid-template-columns: 1fr auto; }
    .ac-topic .ac-bar { grid-column: 1 / -1; }
    .ac-lesson-row { grid-template-columns: auto 1fr; }
    .ac-lesson-row .ac-status { grid-column: 2; justify-self: start; }
    .ac-exam-facts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .ac-steps { grid-template-columns: 1fr; }
    .ac-lesson-thumb { width: 64px; height: 52px; }
    .ac-topbar-title span.ac-hide-sm { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
    .ac-reveal { animation: bw-rise .7s var(--bw-ease) both; }
}
@media print {
    .ac-topbar, .ac-timer, .site-header, footer { display: none !important; }
}

/* Grid columns: 3 / 2 / 1, and path strip that never overflows */
.ac-path-step span, .ac-path-step strong { min-width: 0; overflow-wrap: normal; hyphens: none; }
@media (max-width: 980px) { .ac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
    .ac-grid { grid-template-columns: 1fr; }
    .ac-path-card { grid-template-columns: 1fr 1fr; padding: .7rem; }
    .ac-path-step { padding: .55rem .5rem; gap: .5rem; font-size: .88rem; }
    .ac-path-step .ac-icon { width: 1.5rem; height: 1.5rem; flex: none; }
}

/* Headings and text on dark panels (beat the site-wide navy heading rule) */
body.bw .ac-exam-teaser h2, body.bw .ac-exam-teaser h3,
body.bw .ac-callout-example h2, body.bw .ac-callout-example h3,
body.bw .ac-hero h2, body.bw .ac-hero h3,
body.bw .ac-quiz-head h2, body.bw .ac-dash-head h2,
body.bw .ac-auth-media h3, body.bw .ac-timer h2, body.bw .ac-timer h3 { color: #fff; }
body.bw .ac-exam-teaser p, body.bw .ac-callout-example p, body.bw .ac-callout-example li,
body.bw .ac-quiz-head p, body.bw .ac-dash-head p, body.bw .ac-auth-media p { color: rgba(255,255,255,.86); }
.ac-exam-teaser { align-items: stretch; }
.ac-exam-teaser img { max-height: 420px; }
.ac-exam-teaser-copy { align-self: center; }
.ac-card-num { display: inline-block; align-self: flex-start; color: #fff; background: rgba(8,126,174,.85); padding: .22rem .6rem; border-radius: 999px; letter-spacing: .16em; }
.ac-card-body { display: flex; flex-direction: column; }
@media (max-width: 620px) { .ac-path-step .ac-icon { display: none; } }

/* ---------- curriculum v3: full-width figures, right-of-way poster, mobile fixes ---------- */
.ac-wrap.ac-topbar-inner { padding: .7rem clamp(1rem, 4vw, 2rem); }
.ac-wrap.ac-art-hero { padding: 2.6rem clamp(1rem, 4vw, 2rem); }
.ac-block.is-wide { grid-template-columns: minmax(0, 1fr); }
.ac-block.is-wide > div:first-child { max-width: 760px; }
.ac-wide-figure > svg.bw-dg { display: block; width: 100%; max-width: 760px; height: auto; border-radius: var(--bw-radius); box-shadow: var(--bw-shadow-soft); }
.bw-poster { background: var(--bw-navy); color: #fff; border-radius: var(--bw-radius); padding: clamp(1rem, 3vw, 1.6rem); box-shadow: var(--bw-shadow-soft); }
.bw-poster-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 800; margin-bottom: 1rem; }
.bw-poster-head strong { color: var(--bw-turq); letter-spacing: .08em; }
.bw-poster-legend { font-size: .85rem; font-weight: 650; color: rgba(255,255,255,.85); display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
.bw-poster-legend i { display: inline-block; width: 1rem; height: .7rem; border-radius: 1rem; }
.bw-poster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.bw-poster-card { background: #fff; color: var(--bw-navy); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.bw-poster-art svg { display: block; width: 100%; height: auto; }
.bw-poster-text { padding: .75rem .9rem .95rem; position: relative; }
.bw-poster-n { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--bw-navy); color: #fff; font-weight: 800; font-size: .85rem; margin-bottom: .35rem; }
.bw-poster-text h3 { font-size: 1rem; line-height: 1.25; margin: 0 0 .3rem; color: var(--bw-navy); }
.bw-poster-text p { font-size: .9rem; line-height: 1.45; margin: 0; color: var(--bw-muted); }
.bw-poster-foot { margin-top: 1rem; font-size: .9rem; color: rgba(255,255,255,.88); }

@media (max-width: 560px) { .bw-poster-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
    .ac-topbar-inner { gap: .6rem; }
    .ac-topbar-back .ac-hide-sm { display: none; }
    .ac-topbar-back { padding: .45rem .7rem; }
    .ac-course-pill { white-space: normal; }
}

/* Phase 1b: the learning-path strip switches to two columns before its words outgrow the columns (tablets). */
.ac-path-card { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
    .ac-path-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ac-path-step + .ac-path-step { border-left: 0; }
}
.ac-kicker, .ac-card-num, .ac-topbar-title small, .ac-q-num { font-size: max(.78rem, 12.5px); }
