/* ============================================================================
   91RONG-X / 玖融财商 — UI V1.0 UI kit
   The complete component vocabulary. Every surface composes from these; a
   surface must not invent a primitive.

   Grouped as: actions · labels · heads · cards · structured lists · media ·
   fields · wizard · disclosure · data display · states · overlay · toast.
   ========================================================================= */

/* ================================================================== actions */

.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  --btn-bd: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn svg { flex: none; }

.btn--secondary { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--secondary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--quiet { --btn-bg: transparent; --btn-fg: var(--ink-2); --btn-bd: transparent; padding-inline: 12px; }
.btn--quiet:hover { background: var(--paper-3); border-color: transparent; color: var(--ink); }

.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }
.btn--ink:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--paper); }

.btn--cobalt { --btn-bg: var(--cobalt); --btn-fg: #fff; --btn-bd: var(--cobalt); }
.btn--cobalt:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); }

.btn--invert { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn--invert:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--dark-text); --btn-bd: var(--line-invert); }
.btn--outline-light:hover { background: rgba(250, 247, 241, 0.10); border-color: var(--dark-text); color: var(--dark-text); }

.btn--sm { min-height: 38px; padding: 8px 16px; font-size: var(--fs-xs); }
.btn--lg { min-height: 54px; padding: 14px 30px; font-size: var(--fs-body); }
.btn--block { width: 100%; }
.btn--pill-none { border-radius: var(--r-sm); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.icon-btn:hover { background: var(--paper-2); border-color: var(--line-2); }

/* Text CTA — the editorial alternative to a button, used where the page is
   already dense with filled controls. */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--green);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  cursor: pointer;
}
.link-cta svg { transition: transform 0.18s var(--ease); }
.link-cta:hover { color: var(--green-deep); border-bottom-color: currentColor; }
.link-cta:hover svg { transform: translateX(3px); }
.link-cta--ink { color: var(--ink); }
.link-cta--ink:hover { color: var(--ink); }
.link-cta--light { color: var(--sage-soft); }
.link-cta--light:hover { color: #fff; }
.link-cta--sm { font-size: var(--fs-xs); }

.link-quiet {
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  font-size: var(--fs-sm);
  cursor: pointer;
}
.link-quiet:hover { color: var(--ink); border-bottom-color: var(--ink); }

.arrow-row { display: inline-flex; align-items: center; gap: 8px; }

/* =================================================================== labels */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-3);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tag--green { border-color: var(--green-soft); background: var(--green-soft); color: var(--green-deep); }
.tag--outline-green { border-color: var(--green-mid); color: var(--green-deep); }
.tag--cobalt { border-color: var(--cobalt-soft); background: var(--cobalt-soft); color: var(--cobalt-deep); }
.tag--sand { border-color: var(--sand); background: var(--sand-soft); color: #6d5528; }
.tag--ink { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.tag--sage { border-color: var(--sage-soft); background: var(--sage-soft); color: var(--green-deep); }
.tag--light { border-color: var(--line-invert); color: var(--dark-muted); }
.tag--lg { padding: 5px 13px; font-size: var(--fs-xs); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-xs);
  background: var(--paper-3);
  color: var(--ink-2);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge--green { background: var(--green-soft); color: var(--green-deep); }
.badge--cobalt { background: var(--cobalt-soft); color: var(--cobalt-deep); }
.badge--sand { background: var(--sand-soft); color: #6d5528; }
.badge--amber { background: var(--amber-soft); color: var(--amber); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }

.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-mid);
  display: inline-block;
  flex: none;
}
.status-dot--sand { background: var(--sand); }
.status-dot--amber { background: var(--amber); }

.meta-pair { display: inline-flex; align-items: baseline; gap: 7px; font-size: var(--fs-xs); color: var(--ink-3); }
.meta-pair__label { color: var(--ink-4); }

/* ===================================================================== heads */

.section-head { display: grid; gap: var(--s4); max-width: 68ch; }
.section-head--wide { max-width: none; }
.section-head--center { max-width: 62ch; margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head__title { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.34; letter-spacing: var(--ls-title); font-weight: 600; }
.section-head__lede { font-size: var(--fs-lede); line-height: 1.72; color: var(--ink-3); }
.section-head__foot { font-size: var(--fs-sm); color: var(--ink-4); }

.section-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5);
  margin-bottom: var(--s7);
}

.page-head { padding-block: clamp(2rem, 1.4rem + 2.4vw, 3.25rem) var(--s8); border-bottom: 1px solid var(--line); }
.page-head__inner { display: grid; gap: var(--s5); }
.page-head__title { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.26; font-weight: 600; }
.page-head__lede { font-size: var(--fs-lede); color: var(--ink-3); max-width: 62ch; line-height: 1.72; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--ink-4); }
.breadcrumb a { color: var(--ink-4); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb__sep { color: var(--ink-4); }

/* ===================================================================== cards */

.card {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.card--pad-sm { padding: var(--s5); }
.card--pad-lg { padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); }
.card--paper { background: var(--paper); }
.card--flat { border-radius: var(--r-md); }
.card--ink { background: var(--dark-2); border-color: var(--dark-2); color: var(--dark-text); }
.card--ink .card__title { color: var(--dark-text); }
.card--ink .card__text { color: var(--dark-muted); }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); }
.card__title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.42; font-weight: 600; }
.card__text { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.74; }
.card__foot { margin-top: auto; padding-top: var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); border-top: 1px solid var(--line); }
.card--ink .card__foot { border-top-color: var(--dark-line); }

/* --- Academy card (首页 §3 / 学院页): an editorial register entry, not a
   gradient SaaS tile. Numbered, hairline-separated, with real topic lines. --- */
.academy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.academy-card {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s7) var(--s6) var(--s6);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  min-height: 100%;
  transition: background 0.18s var(--ease);
}
.academy-card:hover { background: var(--paper-2); }
.academy-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.academy-card__index { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-4); letter-spacing: 0.06em; }
.academy-card__icon { color: var(--green); }
.academy-card__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; }
.academy-card__text { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.7; }
.academy-card__topics { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: var(--s4); }
.academy-card__topic { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--ink-2); }
.academy-card__topic::before { content: ""; width: 12px; height: 1px; background: var(--line-strong); flex: none; }
.academy-card__cta { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--green); padding-top: var(--s3); }
.academy-card:hover .academy-card__cta svg { transform: translateX(3px); }
.academy-card__cta svg { transition: transform 0.18s var(--ease); }

/* --- Program card: the product unit of 玖融. Always carries type, audience,
   duration, delivery, coach involvement and outcome (§31). --- */
.program-card {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.program-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.program-card--featured { border-color: var(--green-soft); background: linear-gradient(180deg, var(--green-tint), var(--white) 42%); }
.program-card--ink { background: var(--dark); border-color: var(--dark); color: var(--dark-text); }
.program-card--ink .program-card__title { color: var(--dark-text); }
.program-card--ink .program-card__pitch { color: var(--dark-muted); }
.program-card--ink .program-card__outcome { color: var(--dark-muted); border-top-color: var(--dark-line); }
.program-card--ink .meta-row { border-top-color: var(--dark-line); }
.program-card--ink .meta-row__label { color: var(--dark-faint); }
.program-card--ink .meta-row__value { color: var(--dark-muted); }
.program-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.program-card__title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.4; font-weight: 600; }
.program-card__title a { color: inherit; }
.program-card__title a:hover { color: var(--green-deep); }
.program-card__pitch { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.7; }
.program-card__meta { display: grid; gap: 0; border-top: 1px solid var(--line); }
.program-card__outcome {
  display: flex;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.68;
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}
.program-card__outcome svg { flex: none; margin-top: 3px; color: var(--green); }
.program-card__outcome strong { font-weight: 600; }
.program-card__foot { margin-top: auto; padding-top: var(--s5); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.program-card__price { font-size: var(--fs-xs); color: var(--ink-4); }

.meta-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: var(--s4);
  padding-block: 9px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  line-height: 1.6;
}
.program-card__meta .meta-row:first-child { border-top: 0; }
.meta-row__label { color: var(--ink-4); }
.meta-row__value { color: var(--ink-2); }
.meta-row--wide { grid-template-columns: 108px minmax(0, 1fr); }

/* --- Coach card (§32): portrait, identity, teaching topics, programs.
   Deliberately no hourly rate, no transaction numbers. --- */
.coach-card {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.coach-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.coach-card__body { display: flex; flex-direction: column; gap: var(--s3); padding: 0 var(--s5) var(--s5); }
.coach-card__name { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; }
.coach-card__name a { color: inherit; }
.coach-card__role { font-size: var(--fs-xs); color: var(--green-deep); font-weight: 600; letter-spacing: 0.01em; }
.coach-card__bio { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.7; }
.coach-card__topics { display: flex; flex-wrap: wrap; gap: 6px; }
.coach-card__programs { font-size: var(--fs-xs); color: var(--ink-4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.coach-card__programs a { color: var(--ink-2); }
.coach-card__programs a:hover { color: var(--green-deep); }

/* --- Format card (首页 §5): the three ways to learn. The middle one carries
   the recommended weight. --- */
.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); align-items: stretch; }
.format-card {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s7) var(--s6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.format-card--recommended {
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
  background: var(--white);
  position: relative;
  z-index: 1;
}
.format-card--recommended::before {
  content: "玖融推荐";
  position: absolute;
  top: calc(var(--s4) * -1 - 1px);
  left: var(--s6);
  padding: 4px 12px;
  background: var(--green);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.format-card__label { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--ink-4); letter-spacing: 0.1em; }
.format-card__title { font-family: var(--font-display); font-size: 1.3125rem; font-weight: 600; }
.format-card__for { font-size: var(--fs-sm); color: var(--ink-3); }
.format-card__list { display: grid; gap: 9px; }
.format-card__list li { display: flex; gap: 9px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }
.format-card__list svg { flex: none; margin-top: 3px; color: var(--green-mid); }
.format-card__foot { margin-top: auto; padding-top: var(--s5); }

/* --- Persona card (§10 Section 4): real problem + recommended path --- */
.persona-card {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s6) var(--s5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  border-top: 2px solid var(--ink);
}
.persona-card__title { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; }
.persona-card__label { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }
.persona-card__problems { display: grid; gap: 7px; }
.persona-card__problems li { display: flex; gap: 9px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }
.persona-card__problems svg { flex: none; margin-top: 4px; color: var(--ink-5); }
.persona-card__path { display: grid; gap: 8px; margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--line); }
.persona-card__path li { display: flex; align-items: baseline; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.persona-card__step { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--ink-4); flex: none; }

/* --- Media card (free learning / editorial) --- */
.media-card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.media-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.media-card__body { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); flex: 1 1 auto; }
.media-card__title { font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.5; font-weight: 600; }
.media-card__title a { color: inherit; }
.media-card__text { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.7; }
.media-card__foot { margin-top: auto; padding-top: var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); font-size: var(--fs-xs); color: var(--ink-4); }

/* --- Editorial row: text-first list item with a hairline, used where a grid
   of cards would be too heavy (免费学习列表 / 学院课程列表) --- */
.rowlist { display: grid; border-top: 1px solid var(--line); }
.rowlist__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: var(--s5);
  align-items: start;
  padding-block: var(--s5);
  border-bottom: 1px solid var(--line);
  transition: background 0.16s var(--ease);
}
a.rowlist__item:hover { background: var(--paper-2); }
.rowlist__kind { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--ink-4); letter-spacing: 0.06em; padding-top: 4px; }
.rowlist__title { font-size: var(--fs-body); font-weight: 600; color: var(--ink); font-family: var(--font-display); line-height: 1.5; }
.rowlist__text { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 5px; line-height: 1.7; }
.rowlist__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: var(--fs-xs); color: var(--ink-4); }
.rowlist__action { padding-top: 3px; }

/* --- Metric / outcome blocks -------------------------------------------- */
.metric { display: grid; gap: 4px; }
.metric__value { font-family: var(--font-display); font-size: var(--fs-metric); line-height: 1.1; font-weight: 600; color: var(--ink); }
.metric__label { font-size: var(--fs-xs); color: var(--ink-4); }

/* --- Quote (coach note / method) ---------------------------------------- */
.quote {
  display: grid;
  gap: var(--s4);
  padding: var(--s7);
  background: var(--sage-tint);
  border: 1px solid var(--sage-soft);
  border-radius: var(--r-lg);
}
.quote__mark { color: var(--green-mid); }
.quote__text { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.62; color: var(--ink); }
.quote__by { font-size: var(--fs-xs); color: var(--ink-3); }
.quote--plain { background: transparent; border: 0; border-left: 2px solid var(--green); border-radius: 0; padding: var(--s2) 0 var(--s2) var(--s6); }

/* ========================================================= structured lists */

/* Check list — outcomes, inclusions, workbook deliverables */
.checklist { display: grid; gap: 11px; }
.checklist li { display: flex; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7; }
.checklist svg { flex: none; margin-top: 4px; color: var(--green-mid); }
.checklist--tight { gap: 8px; }
.checklist--light li { color: var(--dark-muted); }
.checklist--light svg { color: var(--sage); }

.exclude-list { display: grid; gap: 10px; }
.exclude-list li { display: flex; gap: 10px; font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.7; }
.exclude-list svg { flex: none; margin-top: 4px; color: var(--ink-5); }

/* Numbered register list (§10 Section 9, method, steps) */
.register { display: grid; border-top: 1px solid var(--line); }
.register__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--s5);
  padding-block: var(--s5);
  border-bottom: 1px solid var(--line);
}
.register__index { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-4); padding-top: 3px; }
.register__title { font-size: var(--fs-body); font-weight: 600; color: var(--ink); }
.register__text { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 5px; line-height: 1.72; }

/* Timeline — learning journey by week / phase */
.timeline { display: grid; gap: 0; position: relative; }
.timeline__item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: var(--s6);
  padding-block: var(--s5);
  border-top: 1px solid var(--line);
}
.timeline__item:last-child { border-bottom: 1px solid var(--line); }
.timeline__mark { display: flex; align-items: baseline; gap: 10px; }
.timeline__week { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--green-deep); letter-spacing: 0.06em; }
.timeline__phase { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.timeline__body { display: grid; gap: 8px; }
.timeline__text { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.72; }
.timeline__tasks { display: grid; gap: 7px; margin-top: 3px; }
.timeline__tasks li { display: flex; gap: 9px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }
.timeline__tasks svg { flex: none; margin-top: 4px; color: var(--green-mid); }

/* Method steps (测 学 练 问 复盘) */
.method { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.method__step {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s6) var(--s5) var(--s6) 0;
  border-right: 1px solid var(--line);
}
.method__step:last-child { border-right: 0; }
.method__char { font-family: var(--font-display); font-size: 2rem; line-height: 1; font-weight: 600; color: var(--ink); }
.method__step--accent .method__char { color: var(--green); }
.method__title { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.method__text { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.7; }
.method__index { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--ink-4); }

/* Steps / stepper (assessment, enrollment) */
.stepper { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.stepper__item { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); color: var(--ink-4); }
.stepper__item + .stepper__item::before {
  content: "";
  width: 26px; height: 1px; background: var(--line-2);
  margin-inline: 12px;
  display: inline-block;
}
.stepper__num {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: var(--fs-2xs);
  flex: none;
}
.stepper__item.is-active { color: var(--ink); font-weight: 600; }
.stepper__item.is-active .stepper__num { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.stepper__item.is-done { color: var(--green-deep); }
.stepper__item.is-done .stepper__num { background: var(--green-soft); border-color: var(--green-soft); color: var(--green-deep); }

.progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); font-size: var(--fs-xs); color: var(--ink-4); }
.progress-track { height: 4px; border-radius: var(--r-pill); background: var(--paper-4); overflow: hidden; }
.progress-track__bar { height: 100%; background: var(--green); border-radius: var(--r-pill); transition: width 0.3s var(--ease); }

/* ===================================================================== media */

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-3);
  overflow: hidden;
}
.portrait img, .portrait svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait--wide { aspect-ratio: 16 / 10; }
.portrait--square { aspect-ratio: 1 / 1; }
.portrait--tall { aspect-ratio: 3 / 4; }
.portrait__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s4) var(--s5);
  background: linear-gradient(0deg, rgba(18, 33, 30, 0.72), rgba(18, 33, 30, 0));
  color: var(--paper);
  font-size: var(--fs-xs);
}

.figure { display: grid; gap: var(--s3); }
.figure__media { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); }
.figure__caption { font-size: var(--fs-xs); color: var(--ink-4); line-height: 1.6; }

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sage-soft);
  flex: none;
}
.avatar--sm { width: 34px; height: 34px; }
.avatar--lg { width: 64px; height: 64px; }
.avatar img, .avatar svg { width: 100%; height: 100%; object-fit: cover; }

/* ==================================================================== fields */

.field { display: grid; gap: 7px; }
.field__label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.field__hint { font-size: var(--fs-xs); color: var(--ink-4); line-height: 1.6; }
.field__error { font-size: var(--fs-xs); color: var(--danger); display: flex; align-items: center; gap: 6px; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--danger); background: var(--danger-soft); }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font-size: var(--fs-sm);
  line-height: 1.5;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-5); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: var(--focus); }
.textarea { min-height: 108px; resize: vertical; line-height: 1.7; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2355635f' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5.4 9.4L12 16l6.6-6.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }

/* Choice cards — used by the assessment runner (one task per screen) and the
   enrollment option picker. */
.choice { display: grid; gap: 10px; }
.choice__option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.choice__option:hover { border-color: var(--green-mid); background: var(--green-tint); }
.choice__option.is-selected { border-color: var(--green); background: var(--green-tint); box-shadow: inset 0 0 0 1px var(--green); }
.choice__option input { position: absolute; opacity: 0; pointer-events: none; }
/* M9 B4: the real radio is visually hidden, so the keyboard focus ring is drawn on its
   visible option card instead of the invisible input. */
.choice__option:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--cobalt); }
.check:has(input:focus-visible) .check__box { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--cobalt); }
fieldset.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.choice__mark {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  flex: none; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white);
}
.choice__option.is-selected .choice__mark { border-color: var(--green); background: var(--green); }
.choice__option.is-selected .choice__mark::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.choice__option--multi .choice__mark { border-radius: var(--r-xs); }
.choice__label { font-size: var(--fs-sm); color: var(--ink); line-height: 1.62; }
.choice__note { font-size: var(--fs-xs); color: var(--ink-4); margin-top: 3px; }
.choice--stack { gap: 8px; }

.check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.65; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  width: 18px; height: 18px; border-radius: var(--r-xs);
  border: 1px solid var(--line-strong); background: var(--white);
  flex: none; margin-top: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent;
}
.check input:checked + .check__box, .check.is-selected .check__box { background: var(--green); border-color: var(--green); color: #fff; }

/* Segmented control — audience toggle */
.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--white);
  gap: 2px;
}
.segmented__item {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.segmented__item:hover { color: var(--ink); background: var(--paper-2); }
.segmented__item.is-active { background: var(--ink); color: var(--paper); }
.segmented--light { background: transparent; border-color: var(--line-invert); }
.segmented--light .segmented__item { color: var(--dark-muted); }
.segmented--light .segmented__item.is-active { background: var(--paper); color: var(--ink); }

/* Chips — topic filter */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  white-space: nowrap;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), color 0.16s var(--ease);
}
.chip:hover { border-color: var(--ink-4); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip--light { border-color: var(--line-invert); color: var(--dark-muted); }
.chip--light.is-active { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips--scroll::-webkit-scrollbar { display: none; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding-block: var(--s4);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* =================================================================== wizard */

.wizard { display: grid; gap: var(--s6); }
.wizard__head { display: grid; gap: var(--s4); }
.wizard__progress { display: grid; gap: 8px; }
.wizard__card {
  display: grid;
  gap: var(--s5);
  padding: clamp(1.25rem, 1rem + 1.4vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.wizard__dimension { font-size: var(--fs-xs); color: var(--ink-4); letter-spacing: 0.04em; }
.wizard__question { font-family: var(--font-display); font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem); line-height: 1.5; font-weight: 600; }
.wizard__help {
  display: flex;
  gap: 10px;
  padding: var(--s4);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  line-height: 1.68;
}
.wizard__help svg { flex: none; margin-top: 2px; color: var(--green-mid); }
.wizard__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); padding-top: var(--s2); }
.wizard__nav { display: flex; gap: var(--s3); }

/* =============================================================== disclosure */

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__summary {
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding-block: var(--s5);
  cursor: pointer;
  list-style: none;
  transition: color 0.16s var(--ease);
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary:hover { color: var(--green-deep); }
.accordion__num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-4); flex: none; padding-top: 2px; }
.accordion__title { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; flex: 1 1 auto; }
.accordion__meta { font-size: var(--fs-xs); color: var(--ink-4); white-space: nowrap; }
.accordion__mark { flex: none; color: var(--ink-4); transition: transform 0.2s var(--ease); }
.accordion__item[open] .accordion__mark { transform: rotate(180deg); }
.accordion__panel { display: grid; gap: var(--s5); padding-bottom: var(--s6); }
.accordion__lessons { display: grid; gap: 0; }
.accordion__lesson { display: flex; align-items: baseline; gap: var(--s4); padding-block: 9px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); }
.accordion__lesson:first-child { border-top: 0; }
.accordion__lesson-kind { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--ink-4); width: 56px; flex: none; }
.accordion__lesson-time { margin-left: auto; font-size: var(--fs-xs); color: var(--ink-4); white-space: nowrap; }
.accordion__deliverables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.accordion__deliverable { padding: var(--s4); background: var(--paper-2); border-radius: var(--r-sm); }
.accordion__deliverable dt { font-size: var(--fs-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 5px; }
.accordion__deliverable dd { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }

/* ============================================================= data display */

/* Comparison table (learning formats) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.compare { min-width: 620px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; font-size: var(--fs-sm); vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--paper-2); font-weight: 600; color: var(--ink); font-size: var(--fs-xs); letter-spacing: 0.04em; border-bottom: 1px solid var(--line-2); }
.compare thead th:first-child { color: var(--ink-4); font-weight: 500; }
.compare tbody th { font-weight: 500; color: var(--ink-4); font-size: var(--fs-xs); width: 128px; background: transparent; }
.compare td { color: var(--ink-2); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare__col--featured { background: var(--green-tint); }
.compare td.compare__col--featured { font-weight: 500; }

/* Sample tool / workbook sheet — a real, readable artefact rather than a
   screenshot placeholder. */
.sheet {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  overflow: hidden;
}
.sheet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5) var(--s5) var(--s4);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.sheet__title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; }
.sheet__sub { font-size: var(--fs-xs); color: var(--ink-4); }
.sheet__grid { overflow-x: auto; }
.sheet table { min-width: 520px; }
.sheet th, .sheet td { padding: 11px 16px; font-size: var(--fs-xs); text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet thead th { color: var(--ink-4); font-weight: 500; background: var(--paper); }
.sheet th:first-child, .sheet td:first-child { text-align: left; color: var(--ink-2); }
.sheet tbody td { font-family: var(--font-mono); color: var(--ink-2); }
.sheet tfoot td { font-weight: 600; color: var(--ink); background: var(--paper-2); font-family: var(--font-sans); }
.sheet__cell--pos { color: var(--green-deep); }
.sheet__cell--neg { color: var(--danger); }
.sheet__foot { padding: var(--s4) var(--s5); font-size: var(--fs-xs); color: var(--ink-4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between; }

/* Data bars — the readable fallback next to any chart */
.bars { display: grid; gap: var(--s4); }
.bar { display: grid; gap: 7px; }
.bar__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); font-size: var(--fs-sm); }
.bar__name { color: var(--ink-2); }
.bar__value { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-3); }
.bar__track { height: 6px; border-radius: var(--r-pill); background: var(--paper-3); overflow: hidden; }
.bar__fill { height: 100%; border-radius: var(--r-pill); background: var(--green-mid); }
.bar--low .bar__fill { background: var(--amber); }
.bar--mid .bar__fill { background: var(--sage); }
.bar--high .bar__fill { background: var(--green); }

/* Dimension cards for the assessment result */
.dim-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.dim-card { display: grid; gap: 8px; padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.dim-card__name { font-size: var(--fs-sm); font-weight: 600; }
.dim-card__score { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.dim-card__note { font-size: var(--fs-xs); color: var(--ink-4); line-height: 1.6; }

/* ==================================================================== states */

.state {
  display: grid;
  gap: var(--s4);
  justify-items: start;
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: var(--paper-2);
}
.state--center { justify-items: center; text-align: center; }
.state__icon { color: var(--ink-4); }
.state__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; }
.state__text { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.72; max-width: 52ch; }
.state--error { border-color: var(--danger-soft); background: var(--danger-soft); }
.state--error .state__icon { color: var(--danger); }

.loading-stack { display: grid; gap: var(--s4); }
.skeleton {
  background: linear-gradient(90deg, var(--paper-3) 25%, var(--paper-4) 37%, var(--paper-3) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--r-sm);
}
.skeleton--line { height: 14px; }
.skeleton--title { height: 30px; width: 62%; }
.skeleton--block { height: 168px; border-radius: var(--r-md); }
.skeleton--card { height: 320px; border-radius: var(--r-lg); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}

.notice {
  display: flex;
  gap: 11px;
  padding: var(--s4) var(--s5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.7;
}
.notice svg { flex: none; margin-top: 3px; color: var(--ink-4); }
.notice--green { border-color: var(--green-soft); background: var(--green-tint); }
.notice--green svg { color: var(--green); }
.notice--sand { border-color: var(--sand); background: var(--sand-tint); }
.notice--sand svg { color: var(--amber); }
.notice--danger { border-color: var(--danger-soft); background: var(--danger-soft); }
.notice--danger svg { color: var(--danger); }
.notice--light { border-color: var(--dark-line); background: rgba(250, 247, 241, 0.05); color: var(--dark-muted); }
.notice strong { font-weight: 600; color: var(--ink); }
.notice--light strong { color: var(--dark-text); }

/* =================================================================== overlay */

.overlay-host { position: relative; z-index: var(--z-overlay); }
.overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s6);
}
.overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 33, 30, 0.46);
  backdrop-filter: blur(2px);
}
.overlay__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(84vh, 760px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 0;
}
.overlay__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5) var(--s5) var(--s4);
  border-bottom: 1px solid var(--line);
}
.overlay__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.overlay__body { padding: var(--s5); display: grid; gap: var(--s4); }
.overlay__text { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.74; }
.overlay__list { display: grid; gap: 10px; }
.overlay__list li { display: flex; justify-content: space-between; gap: var(--s4); font-size: var(--fs-sm); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.overlay__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.overlay__list span { color: var(--ink-3); text-align: right; }
.overlay__steps { display: grid; gap: 12px; counter-reset: ostep; }
.overlay__steps li { display: grid; gap: 3px; padding-left: 30px; position: relative; font-size: var(--fs-sm); color: var(--ink-3); }
.overlay__steps li::before {
  counter-increment: ostep;
  content: counter(ostep);
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.overlay__steps strong { color: var(--ink); font-weight: 600; }
.overlay__foot { padding: var(--s4) var(--s5) var(--s5); display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: flex-end; border-top: 1px solid var(--line); }

/* ===================================================================== toast */

.toast-host {
  position: fixed;
  right: var(--s6);
  bottom: var(--s6);
  z-index: var(--z-toast);
  display: grid;
  gap: 10px;
  max-width: min(380px, calc(100vw - 36px));
}
.toast {
  display: flex;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-sm);
  line-height: 1.6;
  box-shadow: var(--shadow-md);
  animation: toast-in 0.22s var(--ease);
}
.toast svg { flex: none; margin-top: 3px; color: var(--sage); }
.toast--warn svg { color: var(--sand); }
.toast--info svg { color: var(--sage-soft); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 599px) {
  .toast-host { left: var(--s4); right: var(--s4); bottom: var(--s4); max-width: none; }
  .overlay { padding: 0; align-items: flex-end; }
  .overlay__panel { width: 100%; max-height: 88vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .academy-grid { grid-template-columns: minmax(0, 1fr); }
  .format-grid { grid-template-columns: minmax(0, 1fr); }
  .method { grid-template-columns: minmax(0, 1fr); }
  .method__step { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--s5) 0; }
  .method__step:last-child { border-bottom: 0; }
  .timeline__item { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .rowlist__item { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .rowlist__kind { padding-top: 0; }
  .dim-grid { grid-template-columns: minmax(0, 1fr); }
  .accordion__deliverables { grid-template-columns: minmax(0, 1fr); }
  .register__item { grid-template-columns: 34px minmax(0, 1fr); gap: var(--s4); }
  .stepper__item + .stepper__item::before { width: 14px; margin-inline: 6px; }
  .wizard__actions { flex-direction: column-reverse; align-items: stretch; }
  .wizard__nav { width: 100%; }
  .wizard__nav .btn { flex: 1 1 auto; }
  .compare th, .compare td { padding: 12px 14px; }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .academy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .format-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method__step { border-bottom: 1px solid var(--line); }
  .dim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- M13 · Experiment A/B additions ---- */
.accordion__lesson-kind { display: inline-flex; justify-content: center; align-self: center; width: 44px; padding: 2px 0; border-radius: 4px; background: var(--paper-3); color: var(--ink-3); }
.accordion__lesson-kind[data-kind="练习"] { background: var(--green-soft, #dfeadf); color: var(--green-deep); }
.accordion__lesson-kind[data-kind="工具"] { background: #efe4ce; color: #7a5410; }
.accordion__lesson-kind[data-kind="作业"] { background: #e3e8f4; color: #274b9f; }
.accordion__meta { white-space: nowrap; }
.portrait--card { aspect-ratio: 4 / 3; }
.portrait--card svg { object-position: center 30%; }
.portrait__badge { position: absolute; right: 10px; top: 10px; font-size: 11px; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; background: rgba(250, 247, 241, 0.92); color: #7a5410; border: 1px solid #e3d3ac; }

/* ---- M13 · Experiment C (mobile learning flow) ---- */
@media (max-width: 640px) {
  .stepper { flex-wrap: nowrap; gap: 0; }
  .stepper__item { gap: 8px; flex: none; }
  .stepper__item:not(.is-active) > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stepper__item.is-active > span:last-child { white-space: nowrap; }
  .stepper__item + .stepper__item::before { width: 18px; margin-inline: 6px; }
  .portrait--tall { aspect-ratio: 4 / 3; }
}
