/* VEE Economics product page (econ.html), the template for the VEE
   courses (Economics, Mathematical Statistics, Accounting and Corporate
   Finance). Loaded after fm.css, which carries every shared product-page
   rule (tokens, Today card, path, collages, score cards and their rows,
   instructor cards, price terms, about, questions, close). This adds: the
   both-or-one choice before Buy, the step collages (a supply-and-demand board, the study manual, a chapter
   and its quiz, the final and its proctor step, the subject grade), the
   credit section's numbered list and grade meter, the proctor options and
   the subjects' chapter counts. Every colour is a Clear token or an
   fm.css / page.css token. */

/* ── Both or one ──────────────────────────────────────────────────────── */
/* The hero's and the close's choice before Buy (econ.html, vee-acf.html):
   both halves or one, each with its price, picked as universities.css's
   .choice cards are (the selection blue ring, never green). The radio
   itself is visually hidden; its card shows focus and the pick. */
.vee-buy { display: grid; row-gap: 16px; }
.vee-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 420px; margin: 0; padding: 0; border: 0; min-width: 0; }
.vee-pick__opt { position: relative; display: grid; justify-items: center; row-gap: 1px; padding: 9px 8px 8px; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--paper); cursor: pointer; text-align: center; transition: border-color 150ms ease; }
.vee-pick__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vee-pick__opt b { font-size: 15.5px; line-height: 21px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.vee-pick__opt span { font-size: 14px; line-height: 19px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.vee-pick__opt:has(input:checked) { border-color: var(--selection); box-shadow: 0 0 0 1px var(--selection); }
.vee-pick__opt:has(input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }
@media (hover: hover) { .vee-pick__opt:hover { border-color: var(--border-strong); } .vee-pick__opt:has(input:checked):hover { border-color: var(--selection); } }
@media (forced-colors: active) { .vee-pick__opt:has(input:checked) { outline: 2px solid Highlight; } }
.prod-close .vee-buy { justify-items: center; margin-top: 28px; }
.prod-close .vee-pick { width: 100%; }
.prod-close .vee-buy .prod-actions { margin-top: 4px; }

/* ── Step collages ───────────────────────────────────────────────── */
/* Learn: the Market Equilibrium lesson's board, a supply-and-demand cross,
   then the study manual's five learning objectives. */
.econ-vid { height: 156px; }
.econ-board { position: absolute; left: 16px; top: 42px; width: 120px; height: 92px; overflow: visible; }
.econ-board .axis { fill: none; stroke: var(--border-strong); stroke-width: 1.5; stroke-linecap: round; }
.econ-board .curve { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.econ-board .guide { fill: none; stroke: var(--border-strong); stroke-width: 1.2; stroke-dasharray: 3 3; }
.econ-board .eq { fill: var(--learn-hi); }
.econ-board text { fill: var(--muted-foreground); font-family: var(--font-sans); font-size: 11px; font-weight: 600; }
.econ-board__note { position: absolute; left: 134px; top: 72px; font-family: "Caveat", cursive; font-size: 19px; font-weight: 600; color: var(--learn); transform: rotate(-3deg); }
.econ-lo { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-top: 1px solid var(--hair-soft); font-size: 12.5px; line-height: 18px; color: var(--ink); }
.econ-lo b { flex-shrink: 0; width: 24px; font-size: 11px; font-weight: 650; color: var(--muted-foreground); }
.econ-lo span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Practice: a chapter's lessons, practice problems and quiz as rows. */
.econ-list-card { padding: 14px 14px 8px; border-radius: var(--radius-2xl); }
.econ-list-card__title { margin-top: 8px; font-size: 17px; line-height: 22px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.econ-rows { display: grid; margin-top: 6px; }
.econ-rows li { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 34px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink); }
.econ-rows li + li { border-top: 1px solid var(--hair-soft); }
.econ-rows li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--learn-hi); }
.econ-rows li.is-practice::before { background: var(--practice-hi); }
.econ-rows li.is-quiz { font-weight: 650; }
.econ-rows li.is-quiz::before { border-radius: 2px; background: var(--practice-hi); }
.econ-rows span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.econ-rows em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--muted-foreground); white-space: nowrap; }

/* Final: the proctor step before it starts, as Clear's VEE start step asks
   it: the two options, the student's own picked, then Begin Exam. */
.econ-proctor { display: grid; padding: 12px 14px 14px; border-radius: var(--radius-xl); }
.econ-radios { display: grid; row-gap: 6px; margin-top: 10px; }
.econ-radios li { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 10px; border-radius: var(--radius-lg); border: 1px solid var(--hair); font-size: 13px; color: var(--ink); }
.econ-radios li::before { content: ""; flex-shrink: 0; box-sizing: border-box; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--border-strong); }
.econ-radios li.is-on { border-color: var(--ink); font-weight: 600; }
.econ-radios li.is-on::before { border: 4px solid var(--ink); }
.econ-begin { justify-self: start; display: inline-flex; align-items: center; height: 30px; margin-top: 12px; padding: 0 14px; border-radius: 8px; background: var(--primary); color: var(--primary-foreground); font-size: 13px; font-weight: 650; }

/* Credit: the subject's grade card (quizzes, final, the 80% mark) and the
   monthly report tucked under it. */
.econ-grade { padding: 16px 16px 12px; border-radius: var(--radius-2xl); }
.econ-grade__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.econ-grade__label { font-size: 15px; line-height: 20px; font-weight: 650; color: var(--ink); }
.econ-badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; border: 1px solid var(--success); background: var(--paper); font-size: 12px; font-weight: 650; color: var(--card-foreground); white-space: nowrap; }
.econ-badge svg { width: 13px; height: 13px; fill: none; stroke: var(--success); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.econ-grade__val { margin-top: 6px; font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--primary-text); }
.econ-grade__bar { position: relative; display: block; height: 8px; margin: 14px 0 6px; border-radius: 999px; background: var(--meter-track); }
.econ-grade__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--brand-hi); }
.econ-grade__bar s { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); }
.econ-grade__scale { position: relative; height: 15px; font-size: 11.5px; line-height: 15px; color: var(--muted-foreground); }
.econ-grade__scale span { position: absolute; top: 0; left: 0; white-space: nowrap; }
.econ-grade__scale span:last-child { left: auto; right: 0; }
.econ-grade__scale .econ-grade__pass { left: 80%; transform: translateX(-50%); font-weight: 600; color: var(--card-foreground); }
.econ-grade__rows { display: grid; margin-top: 8px; }
.econ-grade__rows li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; font-size: 13px; color: var(--ink); }
.econ-grade__rows li + li { border-top: 1px solid var(--hair-soft); }
.econ-grade__rows em { font-style: normal; color: var(--muted-foreground); }
.econ-grade__rows b { font-weight: 650; font-variant-numeric: tabular-nums; }
.econ-sent { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-xl); }
.econ-sent__mark { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--success); }
.econ-sent__mark svg { width: 15px; height: 15px; fill: none; stroke: var(--on-accent-fill); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.econ-sent p { font-size: 13.5px; line-height: 18px; font-weight: 650; color: var(--ink); }
.econ-sent p span { display: block; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--muted-foreground); }

/* The goal step's dot: a tick for credit, drawn rather than filled. */
.leg__dot svg.econ-tick { fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── 3 · How you earn credit ─────────────────────────────────────── */
/* The four things that happen, numbered in the brand's solid green
   (white numeral, 4.8:1 or more in both themes). */
.econ-how { display: grid; row-gap: 18px; margin-top: 36px; max-width: 32em; counter-reset: econ-how; }
.econ-how li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; align-items: start; font-size: 17px; line-height: 1.5; color: var(--muted-foreground); text-wrap: pretty; }
.econ-how li::before { counter-increment: econ-how; content: counter(econ-how); display: grid; place-items: center; width: 30px; height: 30px; margin-top: -1px; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); font-size: 15px; font-weight: 700; }
.econ-how b { display: block; font-weight: 650; color: var(--ink); }
@media (forced-colors: active) { .econ-how li::before { border: 1px solid CanvasText; } }

/* The grade card: one bar split into the quizzes' 40 and the final's 60 (the
   practice and sample-exam lanes), the pass mark at 80. */
.econ-split { position: relative; display: flex; gap: 3px; height: 16px; margin: 26px 0 10px; }
.econ-split__seg { height: 100%; background: var(--tone-hi); transform-origin: 0 50%; }
.econ-split__seg:first-child { border-radius: 999px 3px 3px 999px; }
.econ-split__seg:last-of-type { border-radius: 3px 999px 999px 3px; }
.econ-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.econ-legend li { display: inline-flex; align-items: center; gap: 8px; }
.econ-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--tone-hi); }
.econ-legend b { font-weight: 650; color: var(--ink); }
.econ-legend .econ-legend__pass { margin-left: auto; }
.econ-legend .econ-legend__pass::before { width: 3px; height: 14px; border-radius: 2px; background: var(--ink); }

/* ── 5 · About ───────────────────────────────────────────────────── */
/* In place of FM's test windows: the two ways to be proctored, on the
   windows' ruled cards, the price on the right. */
.econ-proctors ol { display: grid; row-gap: 8px; margin-top: 14px; }
.econ-proctors li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--radius-xl); border: 1px solid var(--edge); background: var(--paper); }
.econ-proctors__name { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ink); }
.econ-proctors__name::before { content: ""; flex-shrink: 0; box-sizing: border-box; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--exams-hi); background: var(--exams-hi); }
.econ-proctors__sub { grid-column: 1; margin: 3px 0 0 24px; font-size: 15px; line-height: 20px; color: var(--muted-foreground); }
.econ-proctors__cost { grid-column: 2; grid-row: 1; font-size: 15px; line-height: 20px; font-weight: 650; color: var(--card-foreground); white-space: nowrap; }

/* The two subjects, side by side (fm.css's .parts--2): no syllabus weights
   for a VEE topic, so the chapters' count sits under the name (fm.css's
   .part__weight), the lessons as chips. */

/* ── Motion ──────────────────────────────────────────────────────── */
/* At FM's level (econ.js arms .score; finished by default, never under
   reduced motion): the grade bar's two parts fill in turn and the pass
   mark lands (the final's rows arrive as fm.css's rows do). */
.score.is-armed .econ-split__seg { transform: scaleX(0); }
.score.is-armed .econ-split .meter__mark { opacity: 0; transform: scaleY(0.4); }
.score.is-armed.is-in .econ-split__seg { transform: none; transition: transform 700ms var(--ease-signature) calc(150ms + var(--n) * 650ms); }
.score.is-armed.is-in .econ-split .meter__mark { opacity: 1; transform: none; transition: opacity 200ms ease 1400ms, transform 420ms var(--ease-emphasis) 1400ms; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .econ-proctors { max-width: 600px; }
}
@media (max-width: 600px) {
  .vee-pick { max-width: none; }
  .prod-close .vee-buy { justify-items: stretch; }
  .econ-how li { font-size: 16px; column-gap: 12px; }
  .econ-legend .econ-legend__pass { margin-left: 0; }
  .econ-proctors li { padding: 12px 14px; }
  .econ-proctors__name { font-size: 17px; }
}
