/* HEP Exam Prep theory UI. Scoped to the `.hep` plugin shell. */

/* ── 0. Standalone shell + design tokens. No theme or practical-app CSS is required. */
.hep, .hep * { box-sizing: border-box; min-width: 0; }
.hep {
  --c-ink: #102E3A;
  --c-primary: #0B6E79;
  --c-primary2: #095A64;
  --c-highlight: #F4B544;
  --c-highlight-tint: #FFF8E8;
  --c-accent: #B24636;
  --c-good: #14745E;
  --c-good-bg: #E7F6F1;
  --c-warn: #8E5B13;
  --c-warn-bg: #FBF1E0;
  --c-bg: #F8F6F0;
  --c-surface: #FFFFFF;
  --c-muted: #566667;
  --c-line: #DCE3DD;
  --r: 20px;
  /* Type scale. Seven steps, identical values in all three plugins. Use a
     step; do not invent a size. A new step goes into all three files. */
  --c-fs-xs: .75rem;                          /* 12px  eyebrow, badge, term label */
  --c-fs-sm: .8125rem;                        /* 13px  meta, caption, dense table text */
  --c-fs-md: .875rem;                         /* 14px  secondary body, buttons, UI text */
  --c-fs-base: 1rem;                          /* 16px  body */
  --c-fs-lg: 1.25rem;                         /* 20px  card title, h3, lead */
  --c-fs-xl: 1.5rem;                          /* 24px  section h2, stat number */
  --c-fs-2xl: clamp(1.9rem, 4.6vw, 2.6rem);   /* 30-42px fluid  hero h1, price */
  --r-sm: 12px;
  --shadow: 0 2px 4px rgba(16,46,58,.02), 0 12px 34px rgba(16,46,58,.05);
  --c-primary-tint: #EAF5F2;   /* selected / correct, light (teal)  */
  --c-accent-tint:  #FCEEEC;   /* wrong / flagged (rose)            */
  --c-accent-ink:   #9E3B33;   /* text on the rose background       */
  --c-good-ink:     #0f5f4f;   /* text on the teal background       */
  --c-soft:         #F5F6F1;   /* secondary block background        */
  --bw: 1.5px;                 /* control border                    */
  --pill: 999px;
  --tap: 48px;                 /* minimum tap target                */
  --focus-c: #0B6E79;
  width: min(1060px, calc(100vw - 28px));
  max-width: 100%;
  margin: 0 auto;
  padding: 4px;
  overflow-x: hidden;
  color: var(--c-ink);
  font-family: var(--wp--preset--font-family--manrope, "Manrope"), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Tools and cross-sell already pin their shell to the base step. Without this
     the quiz inherited whatever size the theme happened to set, so identical
     components rendered at different sizes across the three plugins. */
  font-size: var(--c-fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.hep.hep-theory { width: 100%; max-width: 1060px; }
.hep [hidden] { display: none !important; }
.hep button, .hep input, .hep select, .hep textarea { color: inherit; font: inherit; }
.hep button, .hep a { -webkit-tap-highlight-color: transparent; }
.hep a { color: inherit; }
.hep .hep-surface-header { margin: 0 0 18px; padding: clamp(20px, 4vw, 34px); border: 1px solid var(--c-line); border-radius: var(--r); background: linear-gradient(135deg, var(--c-primary-tint), #fff 72%); }
.hep .hep-surface-header h1, .hep .hep-surface-header h2 { margin: 4px 0 10px; color: var(--c-ink); font-size: var(--c-fs-2xl); line-height: 1.12; letter-spacing: 0; }
.hep .hep-surface-header p { max-width: 760px; margin: 0; color: var(--c-muted); }
.hep .hep-surface-header .hep-surface-eyebrow { color: var(--c-primary); font-size: var(--c-fs-sm); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.hep .hep-initial-shell button:disabled,
.hep .hep-initial-shell select:disabled { cursor: wait; }
.hep .hep-initial-help { margin: 18px 0 0; color: var(--c-muted); font-size: var(--c-fs-md); }
.hep .hep-initial-help a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.hep.hep-product-entry .hep-hero > h2,
.hep.hep-product-entry .hep-hero > p { display: none; }
.hep input[type="checkbox"], .hep input[type="radio"] { width: auto; height: auto; margin: 0; padding: 0; box-shadow: none; }
.hep .hep-theory-app, .hep .hep-card { color: var(--c-ink); }
.hep .hep-card { overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-surface); box-shadow: var(--shadow); }
.hep .hep-head { padding: 20px 22px; background: linear-gradient(135deg, var(--c-primary), var(--c-primary2)); color: #fff; }
.hep .hep-head.sm { padding: 14px 18px; }
.hep .hep-head h2 { margin: 0 0 4px; color: #fff; font-size: var(--c-fs-lg); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.hep .hep-head h3 { margin: 0; color: #fff; font-size: var(--c-fs-base); font-weight: 800; }
.hep .hep-head p { margin: 0; color: rgba(255,255,255,.85); font-size: var(--c-fs-md); overflow-wrap: anywhere; }
.hep .hep-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 11px 16px; cursor: pointer; border: 1.5px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-bg); color: var(--c-ink); font-family: inherit; font-size: var(--c-fs-md); font-weight: 750; line-height: 1.2; text-align: center; white-space: normal; transition: border-color .15s, transform .08s; }
.hep .hep-btn:hover { border-color: var(--c-primary2); }
.hep .hep-btn:active { transform: scale(.98); }
.hep .hep-btn.primary { border: 0; background: var(--c-primary); color: #fff; }
.hep .hep-btn:focus-visible { outline: 3px solid var(--focus-c); outline-offset: 2px; }
.hep .hep-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0; padding: 18px; border: 1px solid var(--c-highlight); border-radius: var(--r-sm); background: var(--c-highlight-tint); font-size: var(--c-fs-md); }
.hep .hep-buy > div { flex: 1 1 360px; }
.hep .hep-buy .hep-btn, .hep .hep-buy .hep-cta { flex: 0 1 auto; }
.hep .hep-buy strong { display: block; color: var(--c-primary); font-size: var(--c-fs-lg); }
.hep .hep-buy-plans { display: block; margin-top: 6px; color: var(--c-ink); font-weight: 800; }
.hep .hep-buy-steps { display: inline-block; margin-top: 4px; color: var(--c-muted); line-height: 1.4; }
.hep .hep-free-topics { margin: 18px 0; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r-sm); }
.hep .hep-free-topics h3 { margin: 0 0 12px; font-size: var(--c-fs-base); }
.hep .hep-free-topic-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hep .hep-free-topic-links a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.hep .hep-access-status { margin: 0 0 16px; padding: 12px 14px; border-left: 3px solid var(--c-primary); border-radius: var(--r-sm); background: var(--c-primary-tint); color: var(--c-primary); font-size: var(--c-fs-md); font-weight: 750; }
.hep .hep-entry-topic-status { margin: 0 0 16px; color: var(--c-muted); }
.hep .hep-topic-unavailable h3 { margin-top: 0; color: var(--c-primary); }
.hep .hep-topic-unavailable .hep-hero-actions { margin-bottom: 0; }
.hep .hep-note, .hep.hep-error { padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-soft); color: var(--c-ink); }
.hep .hep-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hep .hep-seo-panel { margin: 24px 0; padding: 24px clamp(16px, 3vw, 28px); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: var(--c-surface); }
.hep .hep-section-head { max-width: 780px; margin-bottom: 14px; }
.hep .hep-section-head h2 { margin: 3px 0 6px; color: var(--c-primary); font-size: var(--c-fs-xl); line-height: 1.18; }
.hep .hep-section-head p:not(.hep-surface-eyebrow) { margin: 0; color: var(--c-muted); }
.hep .hep-free-sample { background: var(--c-surface); }
.hep .hep-free-sample h2 { margin-top: 0; color: var(--c-primary); }
.hep .hep-preview-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 780px; margin: 16px 0 20px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-bg); overflow: hidden; }
.hep .hep-preview-steps span { display: flex; align-items: center; gap: 8px; padding: 11px 10px; color: var(--c-muted); font-size: var(--c-fs-md); font-weight: 750; }
.hep .hep-preview-steps span + span { border-left: 1px solid var(--c-line); }
.hep .hep-preview-steps b { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: var(--c-fs-xs); }
.hep .hep-sample-list { display: grid; gap: 16px; max-width: 860px; margin: 0; padding: 0; list-style: none; counter-reset: hep-sample; }
.hep .hep-sample-card { position: relative; padding: 18px 18px 18px 58px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: #fff; }
.hep .hep-sample-card:before { counter-increment: hep-sample; content: counter(hep-sample); position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: var(--c-fs-sm); font-weight: 850; line-height: 1; }
.hep .hep-sample-topic { margin: 0 0 5px; color: var(--c-primary); font-size: var(--c-fs-xs); font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.hep .hep-sample-card h3 { max-width: 720px; margin: 0 0 13px; color: var(--c-ink); font-size: var(--c-fs-base); line-height: 1.4; }
.hep .hep-sample-choices { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.hep .hep-sample-choices label { cursor: pointer; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; min-height: 48px; padding: 9px 12px; border: 1.5px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-bg); color: var(--c-ink); line-height: 1.4; }
.hep .hep-sample-choices label:hover { border-color: var(--c-primary2); background: #fff; }
.hep .hep-sample-choices label:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-tint); }
.hep .hep-sample-choices input { accent-color: var(--c-primary); }
.hep .hep-sample-letter { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #fff; color: var(--c-primary); font-size: var(--c-fs-sm); font-weight: 900; }
.hep .hep-sample-answer { margin-top: 12px; border-top: 1px solid var(--c-line); }
.hep .hep-sample-answer summary { cursor: pointer; width: fit-content; padding: 11px 0 2px; color: var(--c-primary); font-weight: 850; }
.hep .hep-sample-answer > div { display: grid; gap: 9px; margin-top: 10px; padding: 13px 14px; border-left: 3px solid var(--c-good); background: var(--c-good-bg); }
.hep .hep-sample-correct { display: grid; gap: 2px; margin: 0; color: var(--c-good-ink); }
.hep .hep-sample-correct span { font-size: var(--c-fs-xs); font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.hep .hep-sample-correct strong { line-height: 1.4; }
.hep .hep-sample-explain { margin: 0; color: var(--c-ink); font-size: var(--c-fs-base); line-height: 1.55; }
.hep .hep-sample-explain strong { color: var(--c-primary); }
.hep .hep-sample-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; max-width: 860px; margin-top: 18px; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-bg); }
.hep .hep-sample-next > div { display: grid; gap: 2px; }
.hep .hep-sample-next strong { color: var(--c-ink); }
.hep .hep-sample-next span { color: var(--c-muted); font-size: var(--c-fs-md); }
.hep .hep-content-trust { max-width: 860px; margin: 2px 0 0; padding: 12px 14px; border-left: 3px solid var(--c-warn); background: var(--c-warn-bg); color: var(--c-muted); font-size: var(--c-fs-md); line-height: 1.5; }
.hep .hep-content-trust strong { color: var(--c-ink); }
.hep .hep-course-depth { background: linear-gradient(135deg, #fff, var(--c-soft)); }
.hep .hep-depth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.hep .hep-depth-grid article,
.hep .hep-depth-support article { padding: 14px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: #fff; }
.hep .hep-depth-grid h3,
.hep .hep-depth-support h3 { margin: 0 0 6px; color: var(--c-ink); font-size: var(--c-fs-base); line-height: 1.25; }
.hep .hep-depth-grid p,
.hep .hep-depth-support p { margin: 0; color: var(--c-muted); font-size: var(--c-fs-md); line-height: 1.45; }
.hep .hep-depth-support { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 12px; margin-top: 12px; }
.hep .hep-depth-support ul { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.hep .hep-depth-support li { position: relative; padding-left: 18px; color: var(--c-ink); font-size: var(--c-fs-md); font-weight: 750; line-height: 1.35; }
.hep .hep-depth-support li:before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-good); }
.hep .hep-state-link-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hep .hep-state-link-grid a { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 10px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-bg); color: var(--c-primary); font-size: var(--c-fs-sm); font-weight: 850; line-height: 1.2; text-decoration: none; }
.hep .hep-state-link-grid a:hover { border-color: var(--c-primary); background: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hep .hep-exam-about { margin: 26px 0; padding: 24px clamp(16px, 3vw, 28px); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: var(--c-surface); }
.hep .hep-exam-about h2 { margin-top: 0; color: var(--c-primary); }
.hep .hep-exam-about p { max-width: 780px; margin: 0; color: var(--c-muted); }
.hep .hep-exam-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.hep .hep-exam-facts div { padding: 14px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-bg); }
.hep .hep-exam-facts dt { margin-bottom: 5px; color: var(--c-primary); font-size: var(--c-fs-xs); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.hep .hep-exam-facts dd { margin: 0; color: var(--c-ink); font-size: var(--c-fs-md); font-weight: 750; line-height: 1.4; }
.hep .hep-exam-facts dd + dd { margin-top: 3px; color: var(--c-muted); font-size: var(--c-fs-sm); font-weight: 600; }
.hep .hep-related-links { margin: 26px 0 0; padding: 24px clamp(16px, 3vw, 28px) 0; border-top: 1px solid var(--c-line); }
.hep .hep-related-links h2 { margin: 3px 0 12px; color: var(--c-primary); font-size: var(--c-fs-lg); }
.hep .hep-related-links ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.hep .hep-related-links li { padding: 14px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-bg); }
.hep .hep-related-links a { display: grid; gap: 3px; color: var(--c-primary); text-decoration: none; }
.hep .hep-related-links a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.hep .hep-related-links span { color: var(--c-muted); font-size: var(--c-fs-md); line-height: 1.45; }

@media (max-width: 700px) {
  .hep .hep-section-head h2 { font-size: var(--c-fs-lg); }
  .hep .hep-preview-steps { grid-template-columns: 1fr; }
  .hep .hep-preview-steps span + span { border-top: 1px solid var(--c-line); border-left: 0; }
  .hep .hep-sample-card { padding: 15px 12px; }
  .hep .hep-sample-card:before { position: static; margin-bottom: 8px; }
  .hep .hep-sample-choices label { grid-template-columns: auto auto minmax(0, 1fr); padding: 9px; }
  .hep .hep-sample-next { align-items: stretch; }
  .hep .hep-sample-next .hep-cta { width: 100%; }
  .hep .hep-depth-grid,
  .hep .hep-depth-support { grid-template-columns: 1fr; }
  .hep .hep-state-link-grid a { flex: 1 1 148px; justify-content: center; text-align: center; }
  .hep .hep-exam-facts { grid-template-columns: 1fr; gap: 10px; }
  .hep .hep-related-links ul { grid-template-columns: 1fr; }
  .hep .hep-related-links li,
  .hep .hep-related-links li + li { padding: 14px; border: 1px solid var(--c-line); }
}

/* ── 1. Primary action button (CTA) ── */
.hep .hep-cta {
  appearance: none; cursor: pointer; font-family: inherit; font-weight: 800; font-size: var(--c-fs-base);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap);
  background: var(--c-primary); color: #fff; border: none;
  border-radius: var(--r-sm); padding: 12px 20px; line-height: 1.2; text-align: center; min-width: 0; max-width: 100%;
  white-space: normal; overflow-wrap: anywhere; text-decoration: none;
  transition: box-shadow .15s, transform .08s;
}
.hep .hep-cta:hover { background: var(--c-primary2); box-shadow: 0 6px 18px rgba(11,110,121,.2); }
.hep .hep-cta:active { transform: scale(.98); }
.hep .hep-cta:focus-visible { outline: 3px solid var(--focus-c); outline-offset: 2px; }

/* Header + BCP-47 language picker. */
.hep .hep-head.sm { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; text-align: center; }
.hep .hep-head.sm > .hep-head-title:only-child { grid-column: 1 / -1; }
.hep .hep-head-title { min-width: 0; display: grid; gap: 3px; justify-items: center; }
.hep .hep-head.sm h3 { min-width: 0; margin: 0; font-size: var(--c-fs-base); line-height: 1.22; overflow-wrap: anywhere; text-align: center; }
.hep .hep-th-sub { display: block; font-size: var(--c-fs-sm); color: rgba(255,255,255,.88); }
.hep .hep-lang-picker { display: grid; gap: 2px; min-width: 132px; color: #fff; text-align: left; }
.hep .hep-lang-picker > span { font-size: var(--c-fs-xs); font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.hep .hep-lang-picker select { width: 100%; min-height: 38px; padding: 5px 30px 5px 10px; border: 1px solid rgba(255,255,255,.65); border-radius: var(--pill); background: #fff; color: var(--c-primary); font: inherit; font-size: var(--c-fs-sm); font-weight: 850; }
.hep .hep-lang-picker select:disabled { cursor: default; opacity: .92; }
.hep .hep-lang-control { display: grid; gap: 3px; }
.hep .hep-lang-status { min-height: 1em; color: rgba(255,255,255,.9); font-size: var(--c-fs-xs); font-weight: 700; text-align: left; }
.hep .hep-th-body { padding: 13px 14px 18px; overflow-x: hidden; max-width: 100%; }
.hep .hep-th-hint { font-size: var(--c-fs-md); color: var(--c-muted); margin: 0 0 12px; }

/* ── 3. LEARN — question accordion ── */
.hep .hep-learn-top { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.hep .hep-learn-top > div { min-width: 0; }
.hep .hep-learn-top strong { display: block; font-size: var(--c-fs-lg); color: var(--c-primary); line-height: 1.1; }
.hep .hep-learn-top .hep-btn { flex: 0 0 auto; min-height: 40px; padding: 7px 12px; font-size: var(--c-fs-md); }
.hep .hep-learn-filter { flex: 0 1 230px; display: grid; gap: 5px; min-width: 170px; font-weight: 850; color: var(--c-primary); }
.hep .hep-learn-filter span { font-size: var(--c-fs-xs); line-height: 1.2; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.hep .hep-learn-filter select { appearance: none; width: 100%; height: 42px; min-height: 42px; max-height: 42px; padding: 0 34px 0 11px; border: var(--bw) solid var(--c-line); border-radius: var(--r-sm); background: #fff linear-gradient(45deg, transparent 50%, var(--c-muted) 50%), linear-gradient(135deg, var(--c-muted) 50%, transparent 50%); background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; color: var(--c-ink); font: inherit; font-size: var(--c-fs-md); font-weight: 750; line-height: 1.2; }
.hep .hep-learn-bar { margin: -2px 0 8px; }
.hep .hep-study-card { border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); padding: 14px; box-shadow: var(--shadow); }
.hep .hep-study-meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: var(--c-muted); font-size: var(--c-fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.hep .hep-study-card .hep-choices.live { margin-top: 4px; }
.hep .hep-learn-audio-row { display: flex; align-items: center; justify-content: flex-start; min-height: 36px; margin: -4px 0 8px; }
.hep .hep-learn-audio-row .hep-audio-btn { margin: 0; }
.hep .hep-audio-empty { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 10px; border-radius: var(--pill); background: var(--c-soft); color: var(--c-muted); font-size: var(--c-fs-sm); font-weight: 750; }
.hep .hep-study-card .hep-learn-reveal { width: 100%; margin-top: 12px; }
.hep .hep-learn-answer { margin-top: 12px; border-top: 1px dashed var(--c-line); padding-top: 12px; }
.hep .hep-learn-ok { margin-bottom: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--c-good-bg); color: var(--c-good-ink); line-height: 1.45; }
.hep .hep-learn-toast { margin-top: 10px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--c-primary-tint); color: var(--c-primary); font-size: var(--c-fs-md); font-weight: 800; }
.hep .hep-learn-actions { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px; margin-top: 10px; position: sticky; bottom: 0; z-index: 2; background: var(--c-surface); padding: 8px 0; }
.hep .hep-learn-actions .hep-btn, .hep .hep-learn-actions .hep-cta { min-height: var(--tap); min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.hep .hep-learn-actions .hep-btn[disabled] { opacity: .45; cursor: not-allowed; }
.hep .hep-learn-extra-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.hep .hep-learn-extra-actions .hep-btn { width: 100%; min-height: var(--tap); min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.hep .hep-learn-pager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin: 10px 0; padding: 8px 0; }
.hep .hep-learn-pager span { color: var(--c-muted); font-size: var(--c-fs-md); font-weight: 800; white-space: nowrap; }
.hep .hep-learn-pager .hep-btn { min-height: 42px; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.hep .hep-learn-pager .hep-btn[disabled] { opacity: .45; cursor: not-allowed; }
.hep .hep-q { border: 1px solid var(--c-line); border-radius: var(--r-sm); margin-bottom: 10px; background: var(--c-surface); overflow: hidden; }
.hep .hep-q > summary { cursor: pointer; list-style: none; padding: 13px 15px; font-weight: 700; line-height: 1.45; }
.hep .hep-q > summary::-webkit-details-marker { display: none; }
.hep .hep-q[open] > summary { border-bottom: 1px solid var(--c-line); }
.hep .hep-q.miss > summary { background: var(--c-warn-bg); }
.hep .hep-qn { font-weight: 800; color: var(--c-primary); margin-right: 4px; }
.hep .hep-topic { display: inline-block; font-size: var(--c-fs-xs); font-weight: 700; padding: 1px 8px; border-radius: var(--pill); margin-left: 6px; background: var(--c-primary-tint); color: var(--c-primary); vertical-align: middle; }

/* ── 4. Choice list (LEARN: reveal · PRACTICE/EXAM: select) ── */
.hep .hep-choices { list-style: none; margin: 0; padding: 0; }
.hep .hep-choices.reveal { padding: 10px 15px; }
.hep .hep-choices.reveal li { padding: 8px 12px; border-radius: 8px; margin-bottom: 6px; background: var(--c-bg); line-height: 1.45; }
.hep .hep-choices.reveal li.ok { background: var(--c-good-bg); color: var(--c-good-ink); font-weight: 700; }
.hep .hep-tick { color: var(--c-good); font-weight: 800; }
.hep .hep-explain { padding: 11px 15px 14px; font-size: var(--c-fs-base); line-height: 1.55; color: #4d4356; background: #FAF7FB; border-top: 1px dashed var(--c-line); }
.hep .hep-src { display: inline-block; margin-left: 6px; font-size: var(--c-fs-sm); font-weight: 700; color: var(--c-primary); text-decoration: none; white-space: nowrap; }
.hep .hep-src:hover { text-decoration: underline; }

.hep .hep-choices.live { display: grid; gap: 8px; }
.hep .hep-choice { appearance: none; cursor: pointer; font-family: inherit; text-align: left; line-height: 1.4;
  display: flex; align-items: center; gap: 11px; min-height: var(--tap); padding: 11px 14px;
  border: var(--bw) solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-ink);
  transition: border-color .12s, background .12s; }
.hep .hep-choice:hover { border-color: var(--c-primary2); }
.hep .hep-choice.sel { border-color: var(--c-primary); background: var(--c-primary-tint); font-weight: 700; }
.hep .hep-choice.ok { border-color: var(--c-good); background: var(--c-good-bg); color: var(--c-good-ink); font-weight: 700; }
.hep .hep-choice.wrong { border-color: var(--c-accent); background: var(--c-accent-tint); color: var(--c-accent-ink); }
.hep .hep-choice:disabled { cursor: default; opacity: 1; }
/* A/B/C/D letter badge */
.hep .hep-choice-letter { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: var(--bw) solid var(--c-line); font-size: var(--c-fs-sm); font-weight: 800; color: var(--c-muted); background: #fff; }
.hep .hep-choice.sel .hep-choice-letter { border-color: var(--c-primary); color: var(--c-primary); }
.hep .hep-choice.ok .hep-choice-letter { border-color: var(--c-good); color: var(--c-good); }
.hep .hep-choice.wrong .hep-choice-letter { border-color: var(--c-accent); color: var(--c-accent); }
.hep .hep-choice span:last-child { overflow-wrap: anywhere; }

/* ── 5. PRACTICE (one question per screen) — live question + feedback ── */
.hep .hep-practice-screen { min-height: 0; }
.hep .hep-q-live { margin-bottom: 16px; }
.hep .hep-q-text { margin: 0 0 10px; font-size: var(--c-fs-lg); font-weight: 700; line-height: 1.38; color: var(--c-ink); outline: none; overflow-wrap: anywhere; }
.hep .hep-explain-live { margin-top: 12px; font-size: var(--c-fs-base); line-height: 1.55; }
.hep .hep-answer-card { padding: 13px 14px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-soft); }
.hep .hep-answer-card.is-correct { border-color: #BFE7DC; background: var(--c-good-bg); }
.hep .hep-answer-card.is-wrong { border-color: #F3C9C4; background: #FDF2F0; }
.hep .hep-answer-head { display: grid; gap: 4px; margin-bottom: 10px; }
.hep .hep-answer-head strong { color: var(--c-ink); line-height: 1.4; overflow-wrap: anywhere; }
.hep .hep-answer-kicker { font-size: var(--c-fs-sm); font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.hep .hep-answer-card.is-correct .hep-answer-kicker { color: var(--c-good-ink); }
.hep .hep-answer-card.is-wrong .hep-answer-kicker { color: var(--c-accent-ink); }
.hep .hep-answer-explain { margin-top: 2px; color: #4d4356; overflow-wrap: anywhere; }
.hep .hep-answer-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.hep .hep-answer-actions .hep-btn { min-height: 40px; padding: 8px 12px; font-size: var(--c-fs-md); }
.hep .hep-answer-actions .hep-btn[disabled] { opacity: .6; cursor: default; }
.hep .hep-answer-actions-loop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.hep .hep-answer-actions-loop .hep-cta,
.hep .hep-answer-actions-loop .hep-btn { width: 100%; min-height: var(--tap); margin-top: 0; }
.hep .hep-answer-actions-loop .hep-answer-toast { grid-column: 1 / -1; }
.hep .hep-answer-toast { color: var(--c-primary); font-size: var(--c-fs-md); font-weight: 800; }
.hep .hep-feedback { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(107,65,96,.18); text-align: left; }
.hep .hep-q > .hep-feedback { margin: 0 14px 14px; }
.hep .hep-feedback .hep-mini-link { min-height: 36px; border-color: rgba(232,106,94,.22); color: var(--c-accent-ink); }
.hep .hep-feedback-box { display: grid; gap: 9px; margin-top: 9px; padding: 11px; border: 1px solid rgba(232,106,94,.20); border-radius: var(--r-sm); background: #fff; }
.hep .hep-feedback-box[hidden] { display: none; }
.hep .hep-feedback-box label { display: grid; gap: 5px; color: var(--c-primary); font-weight: 850; }
.hep .hep-feedback-box label span { color: var(--c-muted); font-size: var(--c-fs-xs); text-transform: uppercase; letter-spacing: .04em; }
.hep .hep-feedback-box select,
.hep .hep-feedback-box textarea { width: 100%; min-width: 0; border: var(--bw) solid var(--c-line); border-radius: var(--r-sm); background: #fff; color: var(--c-ink); font: inherit; font-size: var(--c-fs-base); }
.hep .hep-feedback-box select { min-height: 42px; padding: 8px 10px; }
.hep .hep-feedback-box textarea { padding: 9px 10px; resize: vertical; line-height: 1.45; }
.hep .hep-feedback-disclaimer { margin: -2px 0 0; color: var(--c-muted); font-size: var(--c-fs-sm); line-height: 1.35; }
.hep .hep-feedback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hep .hep-feedback-actions .hep-btn { min-height: 40px; padding: 8px 12px; font-size: var(--c-fs-md); }
.hep .hep-feedback-status { color: var(--c-primary); font-size: var(--c-fs-md); font-weight: 800; }
.hep .hep-content-signal { margin: 12px 0 14px; padding: 12px; border: 1px solid rgba(107,65,96,.16); border-radius: var(--r-sm); background: linear-gradient(135deg, #fff, var(--c-soft)); text-align: left; }
.hep .hep-content-signal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hep .hep-content-signal-head > div { min-width: 0; display: grid; gap: 3px; }
.hep .hep-content-signal-head span { color: var(--c-muted); font-size: var(--c-fs-xs); font-weight: 900; letter-spacing: .05em; }
.hep .hep-content-signal-head strong { color: var(--c-primary); font-size: var(--c-fs-base); line-height: 1.25; }
.hep .hep-content-signal-head p { margin: 0; color: var(--c-muted); font-size: var(--c-fs-md); line-height: 1.4; }
.hep .hep-content-signal .hep-mini-link { flex: 0 0 auto; min-height: 38px; }
.hep .hep-content-signal-box { display: grid; gap: 9px; margin-top: 10px; padding: 11px; border: 1px solid rgba(107,65,96,.16); border-radius: var(--r-sm); background: #fff; }
.hep .hep-content-signal-box[hidden] { display: none; }
.hep .hep-content-signal-box label { display: grid; gap: 5px; color: var(--c-primary); font-weight: 850; }
.hep .hep-content-signal-box label span { color: var(--c-muted); font-size: var(--c-fs-xs); text-transform: uppercase; letter-spacing: .04em; }
.hep .hep-content-signal-box select,
.hep .hep-content-signal-box textarea { width: 100%; min-width: 0; border: var(--bw) solid var(--c-line); border-radius: var(--r-sm); background: #fff; color: var(--c-ink); font: inherit; font-size: var(--c-fs-base); }
.hep .hep-content-signal-box select { min-height: 42px; padding: 8px 10px; }
.hep .hep-content-signal-box textarea { padding: 9px 10px; resize: vertical; line-height: 1.45; }
.hep .hep-content-status { color: var(--c-primary); font-size: var(--c-fs-md); font-weight: 800; }
.hep .hep-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.hep .hep-th-progress { font-size: var(--c-fs-md); color: var(--c-muted); margin-bottom: 12px; font-weight: 700; }
.hep .hep-th-next { margin-top: 14px; width: 100%; }
.hep .hep-audio-btn { min-height: 38px; margin: 0 0 10px; padding: 7px 12px; font-size: var(--c-fs-md); }
.hep .hep-audio-btn.is-loading { background: #F9F3F7; border-color: rgba(107,65,96,.28); color: var(--c-primary); }
.hep .hep-audio-btn.is-playing { background: var(--c-primary); border-color: var(--c-primary); color: #fff; box-shadow: 0 6px 16px rgba(107,65,96,.20); }
.hep .hep-q > .hep-audio-btn { margin-left: 15px; margin-top: 10px; }
.hep .hep-explain-live .hep-audio-btn { display: inline-flex; margin: 0 0 8px; }

/* ── 6. RESULTS ── */
.hep .hep-result { text-align: center; padding: 22px 16px; border-radius: var(--r); background: var(--c-bg); border: 1px solid var(--c-line); margin-bottom: 8px; }
.hep .hep-result .big { font-size: var(--c-fs-xl); font-weight: 800; margin-bottom: 4px; }
.hep .hep-result.pass { background: var(--c-good-bg); border-color: #BFE7DC; }
.hep .hep-result.pass .big { color: var(--c-good); }
.hep .hep-result.fail { background: var(--c-warn-bg); border-color: #F0DDBB; }
.hep .hep-result.fail .big { color: var(--c-warn); }
/* result-screen action buttons: stacked VERTICALLY, full width, clearly separated, so they cannot sit edge to edge on mobile */
.hep .hep-result .hep-cta { display: flex; width: 100%; margin-top: 10px; }
.hep .hep-result-exam { display: grid; gap: 10px; }
.hep .hep-result-review { display: grid; gap: 10px; }
.hep .hep-result-review .big { margin-bottom: 0; }
.hep .hep-result-review .hep-result-note { margin: 0; color: var(--c-muted); font-size: var(--c-fs-md); line-height: 1.45; }
.hep .hep-result-score { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.82); }
.hep .hep-result-score b { display: block; font-size: var(--c-fs-2xl); line-height: 1; color: var(--c-primary); }
.hep .hep-result-score span { display: block; color: var(--c-ink); font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.hep .hep-result-actions { display: grid; gap: 8px; }
.hep .hep-result-actions .hep-btn, .hep .hep-result-actions .hep-cta { width: 100%; min-height: var(--tap); margin-top: 0; }
.hep .hep-result-breakdown { display: grid; gap: 8px; text-align: left; padding: 12px; border-radius: var(--r-sm); background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.82); }
.hep .hep-result-breakdown-h { font-size: var(--c-fs-sm); font-weight: 900; color: var(--c-primary); text-transform: uppercase; letter-spacing: .05em; }
.hep .hep-break-row { appearance: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border: var(--bw) solid var(--c-line); border-radius: var(--r-sm); background: #fff; color: var(--c-ink); font: inherit; text-align: left; }
.hep .hep-break-row:hover { border-color: var(--c-primary2); }
.hep .hep-break-row-static { cursor: default; }
.hep .hep-break-row-static:hover { border-color: var(--c-line); }
.hep .hep-break-row span { min-width: 0; display: grid; gap: 2px; }
.hep .hep-break-row b { font-size: var(--c-fs-md); line-height: 1.25; overflow-wrap: anywhere; }
.hep .hep-break-row i { font-style: normal; color: var(--c-muted); font-size: var(--c-fs-sm); font-weight: 800; }
.hep .hep-break-row em { display: block; height: 8px; border-radius: var(--pill); background: var(--c-line); overflow: hidden; }
.hep .hep-break-row em i { display: block; height: 100%; background: var(--c-primary); border-radius: var(--pill); }
.hep .hep-break-weak { margin: 2px 0 0; color: var(--c-accent-ink); font-size: var(--c-fs-md); font-weight: 850; text-align: center; }
.hep .hep-th-reviewh { margin: 22px 0 10px; }
.hep .hep-pretag { font-size: var(--c-fs-xs); font-weight: 700; color: #8a6d00; background: #fff3cd; border-radius: 6px; padding: 1px 6px; margin-left: 4px; white-space: nowrap; }

/* ── 7. Server-side SEO: About the exam + blueprint cards + FAQ ── */
.hep .hep-bp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 6px; }
.hep .hep-bp-card { border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: 12px 14px; background: var(--c-surface); }
.hep .hep-bp-pct { font-size: var(--c-fs-xl); font-weight: 800; color: var(--c-primary); line-height: 1.1; }
.hep .hep-bp-name { font-weight: 700; margin: 2px 0; }
.hep .hep-bp-n { font-size: var(--c-fs-sm); color: var(--c-muted); }
.hep .hep-faq { margin: 8px 0; }
.hep .hep-faq-item { border: 1px solid var(--c-line); border-radius: var(--r-sm); margin-bottom: 8px; background: var(--c-surface); }
.hep .hep-faq-item > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; list-style: none; }
.hep .hep-faq-item > summary::-webkit-details-marker { display: none; }
.hep .hep-faq-item > summary::before { content: "＋"; color: var(--c-primary); font-weight: 800; margin-right: 8px; }
.hep .hep-faq-item[open] > summary::before { content: "－"; }
.hep .hep-faq-item > div { padding: 0 14px 14px; color: var(--c-ink); }
.hep .hep-seo-disc { margin-top: 16px; color: var(--c-muted); line-height: 1.5; }
.hep .hep-sell-points { margin: 14px 0 16px; padding: 14px 16px; border: 1px solid rgba(232,106,94,.20); border-radius: var(--r-sm); background: #FDF3F1; }
.hep .hep-sell-points h3 { margin: 0 0 8px; color: var(--c-primary); font-size: var(--c-fs-base); }
.hep .hep-sell-points ul { margin: 0; padding-left: 20px; font-size: var(--c-fs-md); line-height: 1.5; }
.hep .hep-sell-points li { margin: 5px 0; }

/* ── 8. LANDING (hero · stats · mode cards · topic-pick · lifecycle) ── */
.hep .hep-home-back { appearance: none; cursor: pointer; background: none; border: none; font: inherit; color: var(--c-muted); font-weight: 700; padding: 4px 0; margin-bottom: 10px; }
.hep .hep-home-back:hover { color: var(--c-primary); }

.hep .hep-hero { text-align: center; padding: 8px 4px 6px; }
.hep .hep-hero h2 { margin: 0 0 6px; font-size: var(--c-fs-xl); font-weight: 800; color: var(--c-ink); line-height: 1.22; letter-spacing: 0; overflow-wrap: anywhere; }
.hep .hep-hero p { margin: 0 auto; max-width: 38em; color: var(--c-muted); font-size: var(--c-fs-base); line-height: 1.5; overflow-wrap: anywhere; }
.hep .hep-hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 11px; }
.hep .hep-hero-chip { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid rgba(107,65,96,.16); border-radius: var(--pill); background: var(--c-primary-tint); color: var(--c-primary); font-size: var(--c-fs-sm); font-weight: 800; line-height: 1.2; }
.hep .hep-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 12px 0 6px; }
.hep .hep-hero-actions .hep-cta,
.hep .hep-hero-actions .hep-btn { min-height: var(--tap); min-width: min(100%, 210px); }
.hep .hep-first-practice-guide { margin: 8px 0; color: var(--c-muted); font-size: var(--c-fs-md); line-height: 1.45; }
.hep .hep-pass-initial { padding: 12px 14px; box-shadow: none; }
.hep .hep-ready { margin: 10px 0 0; padding: 8px 12px; border-radius: var(--r-sm); background: var(--c-primary-tint); color: var(--c-primary); font-size: var(--c-fs-md); font-weight: 700; text-align: center; }
.hep .hep-pass-card { display: grid; gap: 12px; margin: 12px 0 0; padding: 14px; border: 1px solid rgba(47,93,98,.16); border-radius: var(--r); background: linear-gradient(180deg, #fff, #F9FCFB); box-shadow: 0 8px 22px rgba(47,93,98,.09); }
.hep .hep-pass-card.ready { border-color: rgba(47,93,98,.26); background: linear-gradient(180deg, #fff, #F2FAF7); }
.hep .hep-pass-card.almost_ready { border-color: rgba(220,146,47,.28); background: linear-gradient(180deg, #fff, #FFF8EC); }
.hep .hep-pass-card.needs_work { border-color: rgba(154,39,64,.20); background: linear-gradient(180deg, #fff, #FFF6F6); }
.hep .hep-pass-main { display: grid; gap: 7px; min-width: 0; }
.hep .hep-pass-score-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.hep .hep-pass-score-row strong { min-width: 0; color: var(--c-primary); font-size: var(--c-fs-lg); line-height: 1.15; overflow-wrap: anywhere; }
.hep .hep-pass-score-row span { flex: 0 0 auto; padding: 4px 8px; border-radius: var(--r-sm); background: rgba(47,93,98,.10); color: var(--c-primary); font-size: var(--c-fs-sm); font-weight: 900; line-height: 1.1; }
.hep .hep-pass-main p { margin: 0; color: var(--c-ink); font-size: var(--c-fs-md); line-height: 1.45; }
.hep .hep-pass-main em { color: var(--c-muted); font-size: var(--c-fs-xs); font-style: normal; font-weight: 750; line-height: 1.35; }
.hep .hep-pass-meter { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(47,93,98,.12); }
.hep .hep-pass-meter i { display: block; height: 100%; max-width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c-accent), var(--c-primary)); transition: width .24s ease; }
.hep .hep-pass-evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(94px, 1fr)); gap: 7px; margin: 0; }
.hep .hep-pass-evidence > div { min-width: 0; padding: 8px 9px; border: 1px solid rgba(47,93,98,.12); border-radius: var(--r-sm); background: rgba(255,255,255,.86); }
.hep .hep-pass-evidence dt { color: var(--c-muted); font-size: var(--c-fs-xs); font-weight: 850; line-height: 1.2; overflow-wrap: anywhere; }
.hep .hep-pass-evidence dd { margin: 3px 0 0; color: #45303F; font-size: var(--c-fs-base); font-weight: 950; line-height: 1.1; overflow-wrap: anywhere; }
.hep .hep-pass-evidence small { display: block; margin-top: 2px; color: var(--c-muted); font-size: var(--c-fs-xs); font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
.hep .hep-pass-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.hep .hep-pass-reasons span { min-width: 0; padding: 5px 8px; border-radius: 999px; background: rgba(154,39,64,.08); color: var(--c-accent-ink); font-size: var(--c-fs-xs); font-weight: 850; line-height: 1.15; overflow-wrap: anywhere; }
.hep .hep-pass-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; }
.hep .hep-pass-action { appearance: none; cursor: pointer; min-height: 42px; padding: 9px 10px; border: 1px solid rgba(154,39,64,.18); border-radius: var(--r-sm); background: #fff; color: var(--c-accent-ink); font: inherit; font-size: var(--c-fs-md); font-weight: 900; line-height: 1.2; text-align: center; box-shadow: 0 2px 8px rgba(154,39,64,.05); overflow-wrap: anywhere; }
.hep .hep-pass-action:hover { border-color: var(--c-accent); background: #FFF6F4; }
.hep .hep-pass-action:focus-visible { outline: 3px solid rgba(232,106,94,.32); outline-offset: 2px; }
.hep .hep-progress-card { display: grid; gap: 11px; margin: 12px 0 0; padding: 14px; border: 1px solid rgba(47,93,98,.16); border-radius: var(--r); background: linear-gradient(180deg, #fff, var(--c-bg)); box-shadow: 0 6px 18px rgba(47,93,98,.08); }
.hep .hep-progress-head { display: block; }
.hep .hep-progress-card strong { display: block; margin: 2px 0 4px; color: var(--c-primary); font-size: var(--c-fs-base); line-height: 1.22; letter-spacing: 0; overflow-wrap: anywhere; }
.hep .hep-progress-card p { margin: 0; color: var(--c-muted); font-size: var(--c-fs-md); line-height: 1.45; }
.hep .hep-progress-pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 7px; margin: 0; }
.hep .hep-progress-pills-1 { grid-template-columns: minmax(0, 1fr); }
.hep .hep-progress-pills-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hep .hep-progress-pills-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hep .hep-progress-pills-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hep .hep-progress-pills > div { display: flex; flex-direction: column; min-width: 0; padding: 8px 10px; border: 1px solid rgba(107,65,96,.12); border-radius: var(--r-sm); background: rgba(255,255,255,.86); }
.hep .hep-progress-pills dd { order: -1; margin: 0; color: #45303F; font-size: var(--c-fs-base); font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.hep .hep-progress-pills dt { margin-top: 2px; color: var(--c-muted); font-size: var(--c-fs-xs); font-weight: 800; letter-spacing: 0; line-height: 1.2; text-transform: none; overflow-wrap: anywhere; }
.hep .hep-progress-detail { border-top: 1px solid rgba(107,65,96,.1); padding-top: 2px; }
.hep .hep-progress-detail summary { cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 38px; color: var(--c-primary); font-weight: 900; list-style: none; }
.hep .hep-progress-detail summary::-webkit-details-marker { display: none; }
.hep .hep-progress-detail summary:after { content: "＋"; flex: 0 0 auto; color: var(--c-accent-ink); font-weight: 900; }
.hep .hep-progress-detail[open] summary:after { content: "−"; }
.hep .hep-progress-detail summary span { font-size: var(--c-fs-md); }
.hep .hep-progress-detail summary small { color: var(--c-muted); font-size: var(--c-fs-sm); font-weight: 800; text-align: right; }
.hep .hep-progress-revisit-head span { display: block; margin-bottom: 3px; color: var(--c-muted); font-size: var(--c-fs-xs); font-weight: 800; letter-spacing: 0; text-transform: none; }
.hep .hep-progress-weak { display: grid; gap: 8px; }
.hep .hep-progress-weak-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.hep .hep-progress-weak-chip { min-width: 0; padding: 9px 10px; border: 1px solid rgba(107,65,96,.14); border-radius: var(--r-sm); background: #fff; color: #45303F; box-shadow: 0 2px 8px rgba(107,65,96,.04); }
.hep .hep-progress-weak-grid .hep-progress-weak-chip { flex: 1 1 120px; }
.hep .hep-progress-weak-chip b { display: block; color: var(--c-primary); font-size: var(--c-fs-md); line-height: 1.18; overflow-wrap: anywhere; }
.hep .hep-progress-weak-chip span { display: block; margin-top: 3px; color: var(--c-muted); font-size: var(--c-fs-xs); font-weight: 850; line-height: 1.25; }
.hep .hep-progress-revisit { display: grid; gap: 8px; padding-top: 1px; }
.hep .hep-progress-revisit-head { display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.hep .hep-progress-revisit-head strong { margin: 0; font-size: var(--c-fs-md); color: var(--c-accent-ink); }
.hep .hep-progress-top { display: flex; flex-wrap: wrap; gap: 8px; }
.hep .hep-progress-q { appearance: none; cursor: pointer; display: grid; gap: 2px; min-height: 48px; padding: 9px 10px; border-radius: var(--r-sm); background: #fff; border: 1px solid #F3C9C4; color: var(--c-accent-ink); font: inherit; text-align: left; box-shadow: 0 2px 8px rgba(154,39,64,.05); }
.hep .hep-progress-top .hep-progress-q { flex: 1 1 86px; }
.hep .hep-progress-q:hover { border-color: var(--c-accent); background: #FDF4F2; }
.hep .hep-progress-q:focus-visible { outline: 3px solid rgba(232,106,94,.32); outline-offset: 2px; }
.hep .hep-progress-q b { font-size: var(--c-fs-base); line-height: 1.1; }
.hep .hep-progress-q span { color: #8A4A42; font-size: var(--c-fs-sm); font-weight: 850; }
@media (max-width: 560px) {
  .hep .hep-pass-card { padding: 14px 12px; }
  .hep .hep-pass-score-row { display: grid; gap: 7px; }
  .hep .hep-pass-score-row span { justify-self: start; }
  .hep .hep-pass-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hep .hep-pass-actions { grid-template-columns: minmax(0, 1fr); }
  .hep .hep-progress-card { padding: 14px 12px; }
  .hep .hep-progress-pills-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hep .hep-progress-pills-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hep .hep-progress-pills > div { padding: 8px; }
  .hep .hep-progress-revisit-head { display: grid; gap: 1px; }
  .hep .hep-progress-detail summary { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label toggle" "count toggle"; gap: 1px 8px; align-items: center; padding: 5px 0; }
  .hep .hep-progress-detail summary span { grid-area: label; }
  .hep .hep-progress-detail summary small { grid-area: count; max-width: none; line-height: 1.25; text-align: left; }
  .hep .hep-progress-detail summary:after { grid-area: toggle; }
  .hep .hep-progress-weak-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hep .hep-progress-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hep .hep-progress-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 9px 11px; }
  .hep .hep-progress-q b,
  .hep .hep-progress-q span { min-width: 0; overflow-wrap: anywhere; }
  .hep .hep-progress-q span { text-align: right; }
  .hep .hep-content-signal-head { display: grid; align-items: start; }
  .hep .hep-content-signal .hep-mini-link { width: 100%; justify-content: center; }
}
.hep .hep-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.hep .hep-stat { border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: 12px 6px; text-align: center; background: var(--c-surface); }
.hep .hep-stat-n { font-size: var(--c-fs-lg); font-weight: 800; color: var(--c-primary); line-height: 1.1; }
.hep .hep-stat-l { font-size: var(--c-fs-xs); color: var(--c-muted); text-transform: uppercase; letter-spacing: .03em; margin-top: 3px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .hep .hep-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hep .hep-freebar { margin: 12px 0 2px; padding: 11px 14px; border: 1px solid #F0DDBB; border-radius: var(--r-sm); background: var(--c-warn-bg); color: var(--c-ink); font-size: var(--c-fs-md); line-height: 1.5; }
.hep .hep-freebar b { color: var(--c-primary); }
.hep .hep-sec-k { margin: 18px 0 9px; color: var(--c-primary); font-size: var(--c-fs-base); font-weight: 850; letter-spacing: 0; }
/* mode card locked for a trial visitor (topic/miss): slightly dimmed, and the padlock is already in the label */
.hep .hep-modecard.locked:not(.on) { opacity: .72; }
.hep .hep-sec-h { margin: 18px 0 10px; font-size: var(--c-fs-base); color: var(--c-primary); }

.hep .hep-modecards { display: grid; gap: 10px; }
.hep .hep-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hep .hep-mc-group { margin: 8px 0 -2px; color: var(--c-muted); font-size: var(--c-fs-xs); font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.hep .hep-mc-group:first-child { margin-top: 0; }
.hep .hep-next-step { width: 100%; margin-top: 4px; }
.hep .hep-modecard { appearance: none; cursor: pointer; font: inherit; text-align: left; width: 100%;
  display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 76px;
  border: var(--bw) solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-ink);
  transition: border-color .12s, background .12s; }
.hep .hep-modecard:hover { border-color: var(--c-primary2); }
.hep .hep-modecard.on { border-color: var(--c-primary); background: var(--c-primary-tint); }
.hep .hep-modecard.empty:not(.on) { background: #FCFDFD; }
.hep .hep-mc-radio { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--c-line); position: relative; }
.hep .hep-modecard.on .hep-mc-radio { border-color: var(--c-primary); }
.hep .hep-modecard.on .hep-mc-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--c-primary); }
.hep .hep-mc-txt { min-width: 0; }
.hep .hep-mc-txt b { display: block; font-size: var(--c-fs-base); font-weight: 800; overflow-wrap: anywhere; }
.hep .hep-mc-txt i { display: block; font-style: normal; font-size: var(--c-fs-md); color: var(--c-muted); margin-top: 2px; overflow-wrap: anywhere; }
/* "due" question-count badge on the Revise your missed questions card */
.hep .hep-mc-badge { margin-left: auto; flex: 0 0 auto; min-width: 24px; height: 24px; display: inline-grid; place-items: center; padding: 0 7px; border-radius: var(--pill); background: var(--c-accent); color: #fff; font-size: var(--c-fs-sm); font-weight: 800; line-height: 1; }
.hep .hep-advanced-modes,
.hep .hep-blueprint,
.hep .hep-course-more { margin: 4px 0 0; border-top: 1px solid var(--c-line); }
.hep .hep-advanced-modes > summary,
.hep .hep-blueprint > summary,
.hep .hep-course-more > summary { cursor: pointer; padding: 12px 2px; color: var(--c-primary); font-size: var(--c-fs-md); font-weight: 850; }
.hep .hep-advanced-modes[open] > summary,
.hep .hep-blueprint[open] > summary,
.hep .hep-course-more[open] > summary { margin-bottom: 8px; }
.hep .hep-advanced-modes > .hep-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hep .hep-mode-start { display: flex; justify-content: flex-start; }
.hep .hep-mode-start .hep-start-btn { width: min(100%, 360px); }
.hep .hep-course-more { margin-top: 14px; }
.hep .hep-course-more .hep-content-signal { margin-top: 0; }

.hep .hep-state-pick { margin: 14px 0 10px; padding: 13px 15px; border: 1px solid rgba(107,65,96,.22); border-radius: var(--r-sm); background: var(--c-soft); }
.hep .hep-state-pick-h { margin: 0 0 9px; font-size: var(--c-fs-base); font-weight: 850; color: var(--c-primary); }
.hep .hep-state-fields { display: grid; grid-template-columns: minmax(220px, 420px); gap: 10px; align-items: end; }
.hep .hep-state-pick label { display: grid; gap: 5px; min-width: 0; font-weight: 800; color: var(--c-primary); }
.hep .hep-state-pick label span { font-size: var(--c-fs-sm); line-height: 1.2; color: var(--c-muted); }
.hep .hep-state-pick select,
.hep .hep-state-pick input { width: 100%; min-width: 0; padding: 8px 12px; font: inherit; font-size: var(--c-fs-base); min-height: 44px; border: var(--bw) solid var(--c-line); border-radius: var(--r-sm); background: #fff; color: var(--c-ink); }
.hep .hep-state-results { display: grid; gap: 6px; margin-top: 6px; padding: 6px; border: var(--bw) solid var(--c-line); border-radius: var(--r-sm); background: #fff; box-shadow: 0 10px 24px rgba(23, 49, 53, .12); }
.hep .hep-state-results[hidden] { display: none; }
.hep .hep-state-result { appearance: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 40px; padding: 8px 10px; border: 1px solid transparent; border-radius: var(--r-sm); background: #fff; color: var(--c-ink); font: inherit; text-align: left; }
.hep .hep-state-result:hover, .hep .hep-state-result[aria-selected="true"] { border-color: rgba(107,65,96,.24); background: var(--c-soft); }
.hep .hep-state-result b { min-width: 0; overflow-wrap: anywhere; font-size: var(--c-fs-base); }
.hep .hep-state-result span { color: var(--c-primary); font-size: var(--c-fs-sm); font-weight: 850; }
.hep .hep-state-noresult { padding: 8px 10px; color: var(--c-muted); font-size: var(--c-fs-md); }
.hep .hep-state-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; margin: -2px 0 14px; padding: 12px 14px; border: 1px solid #BFE7DC; border-radius: var(--r-sm); background: var(--c-good-bg); color: var(--c-good-ink); }
.hep .hep-state-note.locked { border-color: #F0DDBB; background: var(--c-warn-bg); color: var(--c-ink); }
.hep .hep-state-note b { display: block; line-height: 1.25; overflow-wrap: anywhere; }
.hep .hep-state-note span { display: block; color: var(--c-ink); font-size: var(--c-fs-md); line-height: 1.4; }
.hep .hep-mini-link { appearance: none; cursor: pointer; grid-row: 1 / span 2; grid-column: 2; min-height: 38px; padding: 7px 12px; border: var(--bw) solid rgba(27,158,131,.35); border-radius: var(--pill); background: #fff; color: var(--c-good-ink); font: inherit; font-size: var(--c-fs-sm); font-weight: 850; white-space: nowrap; }
.hep .hep-mini-link:hover { border-color: var(--c-good); }
/* Topic revision: a grid of topic cards pressed directly, replacing a hidden dropdown — shows every topic with its blueprint % and question count */
.hep .hep-topic-pick { margin: 12px 0 4px; padding: 12px 14px; border: 1px solid rgba(107,65,96,.22); border-radius: var(--r-sm); background: var(--c-soft); }
.hep .hep-topic-pick-h { font-weight: 800; color: var(--c-primary); font-size: var(--c-fs-md); margin-bottom: 10px; }
.hep .hep-topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.hep .hep-topic-chip { appearance: none; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 3px; min-height: 58px; padding: 10px 12px; border: var(--bw) solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-ink); font: inherit; transition: border-color .12s, background .12s; }
.hep .hep-topic-chip:hover { border-color: var(--c-primary2); }
.hep .hep-topic-chip.on { border-color: var(--c-primary); background: var(--c-primary-tint); box-shadow: inset 0 0 0 1px var(--c-primary); }
.hep .hep-topic-chip b { font-size: var(--c-fs-md); font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.hep .hep-topic-chip span { font-size: var(--c-fs-sm); color: var(--c-muted); }
/* Expansion block IMMEDIATELY BELOW the selected mode card: topic-pick where there is one, plus the Start button. Slightly indented with a teal left rail so it reads as attached to the card above. */
.hep .hep-mode-expand { display: grid; gap: 10px; margin: 2px 0 6px; padding: 2px 0 2px 10px; border-left: 3px solid var(--c-primary); }
.hep .hep-mode-expand .hep-topic-pick { margin: 0; }
.hep .hep-start-btn { width: 100%; margin: 0; }

@media (max-width: 700px) {
  .hep .hep-mode-grid,
  .hep .hep-advanced-modes > .hep-mode-grid { grid-template-columns: 1fr; }
  .hep .hep-modecard { min-height: 62px; }
  .hep .hep-mode-start .hep-start-btn { width: 100%; }
}

.hep .hep-life { margin: 18px 0 2px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-soft); font-size: var(--c-fs-md); display: grid; gap: 10px; }
.hep .hep-life-row, .hep .hep-life-tools, .hep .hep-life-upsell { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hep .hep-life-h, .hep .hep-life-upsell > span { font-weight: 850; color: var(--c-primary); margin-right: 2px; }
.hep .hep-life-link { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 10px; border: 1px solid rgba(107,65,96,.22); border-radius: var(--pill); background: #fff; color: var(--c-primary); font-weight: 800; line-height: 1.18; text-decoration: none; }
.hep .hep-life-link.primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.hep .hep-life-link.soft { background: #FFF5F3; border-color: rgba(232,106,94,.22); color: var(--c-accent); }
.hep .hep-life-link.tool { font-size: var(--c-fs-md); font-weight: 760; }
.hep .hep-life-link:hover { border-color: currentColor; text-decoration: none; }
.hep .hep-life-more { border-top: 1px dashed rgba(107,65,96,.18); padding-top: 8px; }
.hep .hep-life-more summary { width: fit-content; cursor: pointer; color: var(--c-primary); font-weight: 850; }
.hep .hep-life-more summary:focus-visible { outline: 3px solid rgba(107,65,96,.24); outline-offset: 3px; border-radius: var(--r-sm); }
.hep .hep-life-tools { margin-top: 8px; }
.hep .hep-life-upsell { border-top: 1px dashed rgba(107,65,96,.18); padding-top: 8px; }

/* ── 9. MOCK EXAM (one question per screen) — top bar · tools · nav.  (the question itself uses .hep-q-text from section 5) ── */
.hep .hep-exam-top { position: sticky; top: 0; z-index: 3; background: var(--c-surface); padding: 8px 0 10px; margin-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.hep .hep-exam-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 12px; width: 100%; margin-bottom: 8px; }
.hep .hep-exam-count { flex: 0 1 auto; min-width: 0; font-weight: 800; color: var(--c-ink); font-size: var(--c-fs-base); }
/* The clock is its own chip (pill background + icon) → always separate from the question number and easy to spot on mobile */
.hep .hep-th-clock { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  font-variant-numeric: tabular-nums; font-weight: 800; font-size: var(--c-fs-base); line-height: 1; color: var(--c-primary);
  background: var(--c-primary-tint); padding: 6px 12px; border-radius: var(--pill); }
.hep .hep-clock-ic { font-size: .95em; }
.hep .hep-th-clock.low { color: #fff; background: var(--c-accent); }
.hep .hep-progressbar { height: 6px; border-radius: var(--pill); background: var(--c-line); overflow: hidden; }
.hep .hep-progressbar i { display: block; height: 100%; background: var(--c-highlight); border-radius: var(--pill); transition: width .25s ease; }

.hep .hep-exam-tools { display: flex; gap: 8px; margin-bottom: 12px; }
.hep .hep-tool { appearance: none; cursor: pointer; font: inherit; font-size: var(--c-fs-md); font-weight: 700; min-height: 44px; padding: 7px 14px; border: var(--bw) solid var(--c-line); border-radius: var(--pill); background: var(--c-surface); color: var(--c-ink); }
.hep .hep-tool:hover { border-color: var(--c-primary2); }
.hep .hep-tool.on { border-color: var(--c-accent); background: var(--c-accent-tint); color: var(--c-accent-ink); }

.hep .hep-exam-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; margin-top: 16px; position: sticky; bottom: 0; background: var(--c-surface); padding: 10px 0; }
.hep .hep-exam-nav .hep-btn, .hep .hep-exam-nav .hep-cta { min-height: var(--tap); min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.hep .hep-exam-nav .hep-btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ── 10. Question grid (jump + status) ── */
.hep .hep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; margin: 12px 0; }
/* Three clearly distinct states: unanswered = white/grey · answered = solid teal · flagged = pink corner dot, which can overlap */
.hep .hep-grid-btn { position: relative; appearance: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font: inherit; font-weight: 800; font-size: var(--c-fs-md); aspect-ratio: 1; border: var(--bw) solid var(--c-line); border-radius: 9px; background: #fff; color: var(--c-muted); transition: transform .08s; }
.hep .hep-grid-btn:active { transform: scale(.93); }
.hep .hep-grid-btn.ans { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.hep .hep-grid-btn.flag { border-color: var(--c-accent); }
.hep .hep-grid-btn.flag::after { content: ""; position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--c-accent); border: 2px solid #fff; }
/* Current question: an INSET ring, avoiding outline-offset so it cannot overlap the neighbouring cell */
.hep .hep-grid-btn.cur { border-color: var(--c-ink); box-shadow: inset 0 0 0 2px var(--c-ink); color: var(--c-ink); }
.hep .hep-grid-btn.cur.ans { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.hep .hep-grid-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--c-fs-sm); color: var(--c-muted); margin: 6px 0; align-items: center; }
.hep .hep-grid-legend .lg { position: relative; display: inline-block; width: 15px; height: 15px; border-radius: 4px; border: var(--bw) solid var(--c-line); background: #fff; margin-right: 6px; vertical-align: -3px; }
.hep .hep-grid-legend .lg.ans { background: var(--c-primary); border-color: var(--c-primary); }
.hep .hep-grid-legend .lg.flag { border-color: var(--c-accent); }
.hep .hep-grid-legend .lg.flag::after { content: ""; position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--c-accent); border: 1.5px solid #fff; }

/* Question grid as a BOTTOM SHEET, sliding up over the current question so the learner never leaves the screen */
.hep .hep-sheet { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: flex-end; }
.hep .hep-sheet-backdrop { position: absolute; inset: 0; background: rgba(20,22,30,.42); opacity: 0; transition: opacity .22s ease; }
.hep .hep-sheet.open .hep-sheet-backdrop { opacity: 1; }
.hep .hep-sheet-panel { position: relative; background: var(--c-surface); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(20,22,30,.22); padding: 6px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 82vh; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .24s cubic-bezier(.22,.61,.36,1); }
.hep .hep-sheet.open .hep-sheet-panel { transform: translateY(0); }
.hep .hep-sheet-grab { width: 40px; height: 5px; border-radius: 999px; background: var(--c-line); margin: 6px auto 2px; }
.hep .hep-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 0 8px; }
.hep .hep-sheet-h { margin: 0; font-size: var(--c-fs-base); color: var(--c-primary); }
.hep .hep-sheet-x { appearance: none; cursor: pointer; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: var(--bw) solid var(--c-line); background: var(--c-surface); color: var(--c-muted); font-size: var(--c-fs-base); line-height: 1; }
.hep .hep-sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.hep .hep-sheet-foot { padding-top: 10px; }
.hep .hep-sheet-foot .hep-cta { width: 100%; }
@media (prefers-reduced-motion: reduce) { .hep .hep-sheet-backdrop, .hep .hep-sheet-panel { transition: none; } }

/* ── 11. Recommendation nudge ── */
.hep .hep-reco { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; padding: 12px 14px; border: 1px solid #F0DDBB; border-radius: var(--r-sm); background: var(--c-warn-bg); }
.hep .hep-reco b { color: var(--c-primary); }

/* ── 12. Flashcards + Match ── */
.hep .hep-flashcard { appearance: none; cursor: pointer; display: grid; align-content: center; gap: 10px; width: 100%; min-height: 230px; padding: 24px 20px; border: var(--bw) solid var(--c-line); border-radius: var(--r-sm); background: #fff; color: var(--c-ink); text-align: center; box-shadow: var(--shadow); }
.hep .hep-flashcard.flipped { background: var(--c-soft); border-color: rgba(107,65,96,.35); }
.hep .hep-flashcard strong { display: block; max-width: 34em; margin: 0 auto; font-size: var(--c-fs-lg); line-height: 1.35; color: var(--c-primary); overflow-wrap: anywhere; }
.hep .hep-flashcard em { display: block; max-width: 36em; margin: 0 auto; font-style: normal; color: var(--c-muted); line-height: 1.45; }
.hep .hep-card-k { display: block; font-size: var(--c-fs-xs); font-weight: 850; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.hep .hep-term-audio { display: flex; justify-content: center; margin: 0 0 10px; }
.hep .hep-term-audio .hep-audio-btn { margin: 0; }
.hep .hep-term-related { margin: 12px 0 0; color: var(--c-muted); font-size: var(--c-fs-md); }
.hep .hep-term-q { appearance: none; cursor: pointer; margin: 0 3px; min-width: 34px; min-height: 32px; border: var(--bw) solid var(--c-line); border-radius: 7px; background: var(--c-surface); color: var(--c-primary); font: inherit; font-weight: 800; }
.hep .hep-term-nav { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; margin-top: 14px; }
.hep .hep-term-nav .hep-btn, .hep .hep-term-nav .hep-cta { min-height: var(--tap); }

/* Match, mobile first: one term and four definitions on a single screen, with no scrolling up and down */
.hep .hep-match2 { margin: 2px 0 0; }
.hep .hep-match-dots { display: flex; justify-content: center; gap: 7px; margin: 0 0 12px; }
.hep .hep-match-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--c-line); background: #fff; color: #fff; font-size: var(--c-fs-xs); font-weight: 900; }
.hep .hep-match-dot.done { border-color: var(--c-good); background: var(--c-good); }
.hep .hep-match-score { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255,255,255,.72); }
.hep .hep-match-score b { color: var(--c-primary); font-size: var(--c-fs-xl); line-height: 1; }
.hep .hep-match-score span { color: var(--c-ink); font-size: var(--c-fs-md); font-weight: 800; }
.hep .hep-match-card { display: grid; gap: 7px; text-align: center; padding: 17px 14px; border: 1px solid rgba(107,65,96,.24); border-radius: var(--r-sm); background: var(--c-primary-tint); }
.hep .hep-match-card strong { color: var(--c-primary); font-size: var(--c-fs-lg); line-height: 1.28; overflow-wrap: anywhere; }
.hep .hep-match-card em { color: var(--c-muted); font-style: normal; font-size: var(--c-fs-md); line-height: 1.35; overflow-wrap: anywhere; }
.hep .hep-match-defs { display: grid; gap: 8px; margin-top: 8px; }
.hep .hep-mdef { appearance: none; cursor: pointer; min-height: 52px; padding: 12px 14px; border: var(--bw) solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-ink); font: inherit; font-size: var(--c-fs-md); font-weight: 600; line-height: 1.4; text-align: left; overflow-wrap: anywhere; transition: border-color .12s, background .12s; }
.hep .hep-mdef:hover { border-color: var(--c-primary2); }
.hep .hep-mdef.wrong { border-color: var(--c-accent); background: var(--c-accent-tint); animation: hep-shake .32s; }
.hep .hep-mdef.done { border-color: #BFE7DC; background: var(--c-good-bg); color: var(--c-good-ink); cursor: default; }
@keyframes hep-shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-3px); } }
.hep .hep-match-feedback { min-height: 24px; margin: 10px 0; color: var(--c-accent); font-weight: 800; }
.hep .hep-match-actions { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 8px; margin-top: 6px; }
.hep .hep-match-actions .hep-cta, .hep .hep-match-actions .hep-btn { width: 100%; min-height: var(--tap); }
@media (max-width: 560px) {
  .hep.hep-theory { width: 100%; max-width: 100%; }
  .hep .hep-th-body { padding: 10px 9px 14px; }
  .hep .hep-head.sm { padding-left: 12px; padding-right: 12px; }
  .hep .hep-head.sm { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .hep .hep-head-title { width: 100%; }
  .hep .hep-lang-picker { justify-self: center; width: min(100%, 220px); text-align: center; }
  .hep .hep-learn-top { align-items: stretch; flex-direction: column; }
  .hep .hep-learn-top .hep-btn { width: 100%; }
  .hep .hep-learn-filter { flex: 0 0 auto; min-width: 0; width: 100%; }
  .hep .hep-study-card { padding: 12px; }
  .hep .hep-study-meta { flex-direction: column; gap: 3px; }
  .hep .hep-buy .hep-cta { width: 100%; }
  .hep .hep-free-topic-links { display: grid; }
  .hep .hep-q-text { font-size: var(--c-fs-base); margin-bottom: 8px; }
  .hep .hep-choice { padding: 10px 11px; gap: 9px; }
  .hep .hep-answer-actions-loop { grid-template-columns: 1fr; }
  .hep .hep-learn-actions { grid-template-columns: 1fr; }
  .hep .hep-learn-extra-actions { grid-template-columns: 1fr; }
  .hep .hep-learn-pager { grid-template-columns: 1fr; text-align: center; }
  .hep .hep-term-nav { grid-template-columns: 1fr; }
  .hep .hep-match-actions { grid-template-columns: 1fr; }
  .hep .hep-break-row { grid-template-columns: 1fr; }
  .hep .hep-exam-nav { grid-template-columns: 1fr; }
  .hep .hep-state-fields { grid-template-columns: 1fr; }
  .hep .hep-state-note { grid-template-columns: 1fr; }
  .hep .hep-mini-link { grid-row: auto; grid-column: auto; width: 100%; margin-top: 6px; }
}

/* ── 13. Session content loading (loading · error · Show more) ── */
.hep .hep-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 16px; color: var(--c-muted); font-weight: 700; }
.hep .hep-spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--c-line); border-top-color: var(--c-primary); animation: hep-spin .8s linear infinite; }
@keyframes hep-spin { to { transform: rotate(360deg); } }
.hep .hep-loaderr { text-align: center; padding: 28px 16px; border: 1px solid #F0DDBB; border-radius: var(--r); background: var(--c-warn-bg); }
.hep .hep-loaderr p { margin: 0 0 12px; color: var(--c-ink); }
.hep .hep-learn-more { width: 100%; margin: 14px 0 4px; }
.hep .hep-empty-state { text-align: center; padding: 26px 16px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-soft); }
.hep .hep-empty-ic { width: 44px; height: 44px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: var(--c-good-bg); color: var(--c-good); font-weight: 900; font-size: var(--c-fs-lg); }
.hep .hep-empty-state h4 { margin: 0 0 8px; font-size: var(--c-fs-base); color: var(--c-ink); }
.hep .hep-empty-state p { max-width: 34em; margin: 0 auto 14px; color: var(--c-muted); line-height: 1.55; overflow-wrap: anywhere; }
.hep .hep-empty-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 14px; }
.hep .hep-empty-steps span { display: grid; place-items: center; min-height: 44px; padding: 8px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: #fff; color: var(--c-primary); font-size: var(--c-fs-sm); font-weight: 850; line-height: 1.25; }
.hep .hep-empty-actions { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; }
.hep .hep-empty-actions .hep-cta, .hep .hep-empty-actions .hep-btn { min-height: var(--tap); }
@media (max-width: 520px) { .hep .hep-empty-actions, .hep .hep-empty-steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hep .hep-spin { animation-duration: 0s; } }

/* ── 14. A11y focus + reduced-motion ── */
.hep .hep-modecard:focus-visible, .hep .hep-choice:focus-visible, .hep .hep-grid-btn:focus-visible,
.hep .hep-tool:focus-visible, .hep .hep-home-back:focus-visible, .hep .hep-flashcard:focus-visible,
.hep .hep-mterm:focus-visible, .hep .hep-mdef:focus-visible, .hep .hep-term-q:focus-visible,
.hep .hep-state-pick select:focus-visible, .hep .hep-state-pick input:focus-visible,
.hep .hep-lang-picker select:focus-visible, .hep .hep-learn-filter select:focus-visible,
.hep .hep-break-row:focus-visible, .hep .hep-feedback-box select:focus-visible,
.hep .hep-feedback-box textarea:focus-visible, .hep .hep-content-signal-box select:focus-visible,
.hep .hep-content-signal-box textarea:focus-visible { outline: 3px solid var(--focus-c); outline-offset: 2px; }

/* Direction comes from the BCP-47 registry. */
.hep .hep-theory-app[dir="rtl"] { direction: rtl; }
.hep .hep-theory-app[dir="rtl"] .hep-choice,
.hep .hep-theory-app[dir="rtl"] .hep-topic-chip,
.hep .hep-theory-app[dir="rtl"] .hep-feedback,
.hep .hep-theory-app[dir="rtl"] .hep-q-text,
.hep .hep-theory-app[dir="rtl"] .hep-explain,
.hep .hep-theory-app[dir="rtl"] .hep-answer-card,
.hep .hep-theory-app[dir="rtl"] .hep-lang-picker { text-align: right; }
@media (prefers-reduced-motion: reduce) {
  .hep .hep-progressbar i, .hep .hep-cta, .hep .hep-choice, .hep .hep-modecard { transition: none; }
  .hep .hep-mdef.wrong { animation: none; }
}

/* Free-preview lead capture. Inline, below the explanation, never a modal:
   an overlay at question 8 interrupts the one thing the learner came to do. */
.hep-lead {
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  background: var(--c-soft);
}
.hep-lead p { margin: 0 0 10px; font-size: var(--c-fs-md); }
.hep-lead-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hep-lead-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hep-lead-input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  font-size: var(--c-fs-base);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
}
.hep-lead-row .hep-cta { flex: 0 0 auto; margin: 0; }
.hep-lead-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hep-lead-note { margin: 10px 0 0; font-size: var(--c-fs-sm); color: var(--c-muted); }
.hep-lead-skip {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-muted);
  font-size: var(--c-fs-sm);
  text-decoration: underline;
  cursor: pointer;
  min-height: 32px;
}
@media (max-width: 420px) {
  .hep-lead-row { display: grid; gap: 8px; }
  .hep-lead-row .hep-cta { width: 100%; }
}

/* ── Public practice sets. Server-rendered free question sets; the only new
   behaviour is scoring, so this reuses the sample-card vocabulary above and
   adds marks, a score panel and the stacked action row it needs. */
.hep .hep-practice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.hep.hep-practice-set .hep-hero h1 { font-size: var(--c-fs-2xl); }
.hep .hep-practice-progress { color: var(--c-muted); font-size: var(--c-fs-md); }
.hep .hep-practice-result { display: grid; gap: 10px; justify-items: start; max-width: 860px; margin-top: 14px; padding: 16px; border: 1px solid var(--c-line); border-left: 3px solid var(--c-primary); border-radius: var(--r-sm); background: var(--c-surface); }
.hep .hep-practice-actions[hidden], .hep .hep-practice-result[hidden] { display: none; }
.hep .hep-practice-result:focus { outline: 3px solid var(--focus-c); outline-offset: 2px; }
.hep .hep-practice-review { text-decoration: none; }
.hep .hep-infection-guide { margin: 20px 0; padding: 18px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); }
.hep .hep-infection-guide h2 { margin: 0 0 10px; font-size: var(--c-fs-xl); line-height: 1.3; }
.hep .hep-infection-guide p, .hep .hep-infection-guide li { font-size: var(--c-fs-base); line-height: 1.6; }
.hep .hep-infection-guide a { overflow-wrap: anywhere; }
.hep .hep-infection-start { margin: 12px 0; }
.hep .hep-infection-start .hep-btn { text-decoration: none; }
.hep .hep-infection-author { color: var(--c-muted); }
.hep .hep-infection-checks { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--c-line); }
.hep .hep-infection-checks > summary { cursor: pointer; font-size: var(--c-fs-lg); font-weight: 700; }
.hep .hep-infection-check { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--c-line); }
.hep .hep-infection-check h3 { font-size: var(--c-fs-lg); line-height: 1.4; }
.hep .hep-infection-check ol { list-style-type: upper-alpha; }
.hep .hep-infection-check details > summary { cursor: pointer; min-height: 44px; font-size: var(--c-fs-base); }
.hep .hep-infection-checks summary:focus-visible { outline: 3px solid var(--focus-c); outline-offset: 2px; }
.hep .hep-practice-result p { margin: 0; color: var(--c-muted); font-size: var(--c-fs-md); }
.hep .hep-practice-result .hep-practice-score { color: var(--c-ink); font-size: var(--c-fs-lg); font-weight: 850; }
/* A mark on the card, not on the choice: the learner has already been shown
   which answer was right inside the explanation, and colouring the individual
   labels would fight the radio styling above. */
.hep .hep-sample-card.is-correct { border-color: var(--c-good); box-shadow: inset 3px 0 0 var(--c-good); }
.hep .hep-sample-card.is-wrong { border-color: var(--c-accent); box-shadow: inset 3px 0 0 var(--c-accent); }
@media (max-width: 480px) {
  .hep .hep-practice-actions { display: grid; }
  .hep .hep-practice-actions .hep-btn { width: 100%; }
  .hep .hep-practice-result .hep-cta { width: 100%; }
}

/* CNA foundations and the separate staff-only draft surface. */
.hep-foundation-topics { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 16px 0; }
.hep .hep-foundation-topics button { white-space: normal; text-align: left; min-height: 48px; }
.hep-staff-preview { max-width: 1100px; margin: 20px auto; padding: 16px; overflow-wrap: anywhere; }
.hep-draft-banner { border-left: 4px solid #8a4b08; background: #fff5e6; padding: 16px; color: #58330b; }
.hep-draft-card { border: 1px solid #dce8e5; border-radius: 8px; padding: 16px; margin: 16px 0; background: white; }
.hep-draft-card summary { min-height: 48px; padding: 8px 0; cursor: pointer; }
.hep-draft-card h2 { font-size: 20px; line-height: 1.5; }
.hep-draft-card li { margin: 12px 0; }
.hep-staff-preview summary:focus-visible { outline: 3px solid #2f5d62; outline-offset: 4px; }
@media (min-width: 768px) { .hep-foundation-topics { grid-template-columns: 1fr 1fr; } }

/* Learning workspace: a calm reading surface and a clear primary action. */
.hep.hep-theory .hep-surface-header {
  padding: clamp(24px, 4vw, 40px);
  border-color: var(--c-line);
  background: var(--c-bg);
}
.hep.hep-theory .hep-surface-header :is(h1,h2) { max-width: 21ch; letter-spacing: -.035em; line-height: 1.15; }
.hep.hep-theory .hep-surface-header p { max-width: 62ch; line-height: 1.7; }
.hep.hep-theory .hep-card { border-top: 3px solid var(--c-highlight); }
.hep.hep-theory .hep-head,
.hep.hep-theory .hep-head.sm {
  padding: 19px 26px;
  background: var(--c-ink);
  text-align: left;
}
.hep.hep-theory .hep-head-title { justify-items: start; gap: 5px; }
.hep.hep-theory .hep-head.sm h3 { text-align: left; line-height: 1.4; letter-spacing: -.015em; }
.hep.hep-theory .hep-th-sub { color: #DFE9E7; font-size: var(--c-fs-md); }
.hep.hep-theory .hep-th-body { padding: 26px; }
.hep.hep-theory .hep-hero { padding: 0 0 8px; text-align: left; }
.hep.hep-theory .hep-hero h2 { margin-bottom: 10px; letter-spacing: -.03em; }
.hep.hep-theory .hep-hero p { max-width: 62ch; margin: 0; line-height: 1.7; }
.hep.hep-theory .hep-hero-actions { justify-content: flex-start; gap: 12px; margin: 16px 0 24px; }
.hep.hep-theory .hep-hero-actions :is(.hep-cta,.hep-btn) { min-width: 0; flex: 1 1 180px; padding: 15px 18px; }
.hep.hep-theory :is(.hep-btn,.hep-cta) { font-weight: 750; line-height: 1.4; text-decoration: none; }
.hep.hep-theory .hep-btn { background: #fff; border-color: #BBCBC7; }
.hep.hep-theory .hep-btn:hover { background: var(--c-primary-tint); border-color: var(--c-primary); }
.hep.hep-theory .hep-btn.primary { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.hep.hep-theory .hep-cta { box-shadow: 0 3px 0 rgba(16,46,58,.1); }
.hep.hep-theory .hep-home-back { min-height: 44px; margin: -6px 0 12px; padding: 8px 0; font-size: var(--c-fs-md); }
.hep.hep-theory .hep-th-body > h3 { margin: 28px 0 14px; color: var(--c-ink); font-size: var(--c-fs-lg); letter-spacing: -.02em; }
.hep.hep-theory .hep-foundation-topics { gap: 10px; margin: 0 0 28px; }
.hep.hep-theory .hep-foundation-topics .hep-btn {
  justify-content: flex-start;
  min-height: 60px;
  padding: 15px 18px;
  border-color: var(--c-line);
  background: var(--c-bg);
  font-size: var(--c-fs-base);
  font-weight: 650;
  text-align: start;
}
.hep.hep-theory .hep-foundation-topics .hep-btn:hover { border-color: var(--c-primary); background: var(--c-primary-tint); }
.hep.hep-theory .hep-access-status { padding: 14px 16px; color: var(--c-good-ink); }
.hep.hep-theory .hep-progress-card { gap: 16px; padding: 22px; border-color: var(--c-line); background: var(--c-bg); box-shadow: none; }
.hep.hep-theory .hep-progress-card strong { color: var(--c-ink); }
.hep.hep-theory .hep-progress-pills { gap: 10px; }
.hep.hep-theory .hep-progress-pills > div { padding: 14px; border-color: var(--c-line); background: #fff; }
.hep.hep-theory .hep-progress-pills dd { margin-bottom: 5px; color: var(--c-ink); font-size: var(--c-fs-xl); letter-spacing: -.03em; }
.hep.hep-theory .hep-progress-pills dt { font-size: var(--c-fs-sm); font-weight: 650; line-height: 1.4; }
.hep.hep-theory .hep-progress-detail { border-color: var(--c-line); }
.hep.hep-theory .hep-progress-detail summary { min-height: 48px; }
.hep.hep-theory .hep-modecard { min-height: 92px; gap: 14px; padding: 18px; }
.hep.hep-theory .hep-modecard.on { box-shadow: inset 0 0 0 1px var(--c-primary); }
.hep.hep-theory .hep-mc-txt b { letter-spacing: -.015em; }
.hep.hep-theory .hep-mc-txt i { font-weight: 450; line-height: 1.5; }
.hep.hep-theory .hep-buy { margin-top: 28px; padding: 22px; border-color: #E5CB8F; background: #FFF8E8; }
.hep.hep-theory .hep-buy strong { color: var(--c-ink); letter-spacing: -.02em; }
.hep.hep-theory .hep-free-topics { padding: 20px; background: var(--c-bg); }
.hep.hep-theory .hep-free-topic-links { gap: 6px 20px; }
.hep.hep-theory .hep-free-topic-links a { display: inline-flex; align-items: center; min-height: 44px; }
.hep.hep-theory .hep-practice-screen { max-width: 780px; margin: 0 auto; }
.hep.hep-theory .hep-th-progress { padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid var(--c-line); font-weight: 650; }
.hep.hep-theory .hep-q-text { margin-bottom: 22px; font-size: var(--c-fs-xl); font-weight: 700; line-height: 1.5; letter-spacing: -.02em; }
.hep.hep-theory .hep-choices.live { gap: 12px; }
.hep.hep-theory .hep-choice { min-height: 62px; padding: 14px 16px; gap: 14px; font-size: var(--c-fs-base); line-height: 1.55; }
.hep.hep-theory .hep-choice:not(:disabled):hover { background: var(--c-bg); }
.hep.hep-theory .hep-choice.sel { background: var(--c-primary-tint); box-shadow: inset 0 0 0 1px var(--c-primary); }
.hep.hep-theory .hep-choice.ok { background: var(--c-good-bg); box-shadow: none; }
.hep.hep-theory .hep-choice.wrong { background: var(--c-accent-tint); box-shadow: none; }
.hep.hep-theory .hep-choice-letter { width: 32px; height: 32px; border-radius: 9px; font-size: var(--c-fs-md); }
.hep.hep-theory .hep-choice.ok .hep-choice-letter { color: var(--c-good-ink); }
.hep.hep-theory .hep-choice.wrong .hep-choice-letter { color: var(--c-accent-ink); }
.hep.hep-theory .hep-explain-live { margin-top: 22px; }
.hep.hep-theory .hep-answer-card { padding: 20px; }
.hep.hep-theory .hep-answer-explain,
.hep.hep-theory .hep-explain { color: var(--c-ink); line-height: 1.7; }
.hep.hep-theory .hep-explain { background: var(--c-bg); }
.hep.hep-theory .hep-answer-head { gap: 8px; margin-bottom: 12px; }
.hep.hep-theory .hep-answer-kicker { letter-spacing: .07em; }
.hep.hep-theory .hep-src { min-height: 32px; padding: 5px 0; white-space: normal; text-decoration: underline; text-underline-offset: 3px; }
.hep.hep-theory .hep-th-next { margin-top: 22px; }
.hep.hep-theory .hep-study-card { padding: 22px; box-shadow: none; }
.hep.hep-theory .hep-study-meta { gap: 8px; margin-bottom: 18px; font-size: var(--c-fs-sm); line-height: 1.5; }
.hep.hep-theory .hep-learn-filter select { height: 48px; min-height: 48px; max-height: none; background-position: calc(100% - 16px) 21px, calc(100% - 11px) 21px; font-size: var(--c-fs-base); }
.hep.hep-theory .hep-result { padding: 26px; background: var(--c-bg); }
.hep.hep-theory .hep-result-score { gap: 8px; padding: 20px; border-color: var(--c-line); background: #fff; }
.hep.hep-theory .hep-result-score b { color: var(--c-ink); letter-spacing: -.04em; }
.hep.hep-theory .hep-result-breakdown { padding: 18px; border-color: var(--c-line); background: #fff; }
.hep.hep-theory .hep-result-actions { gap: 12px; }
.hep.hep-theory .hep-feedback { margin-top: 18px; padding-top: 14px; }
.hep.hep-theory .hep-note { padding: 20px; line-height: 1.7; }
.hep.hep-theory .hep-lang-picker select { min-height: 44px; border-radius: 8px; font-size: var(--c-fs-md); }
.hep.hep-theory :is(button,a,input,select,textarea,summary):focus-visible { outline: 3px solid var(--focus-c); outline-offset: 3px; }
.hep.hep-theory .hep-head :is(button,a,input,select):focus-visible { outline-color: var(--c-highlight); }

@media (max-width: 560px) {
  .hep.hep-theory { padding: 0; }
  .hep.hep-theory .hep-surface-header { padding: 24px 20px; border-radius: 16px; }
  .hep.hep-theory .hep-card { border-radius: 16px; }
  .hep.hep-theory .hep-head.sm { padding: 17px 18px; justify-items: stretch; }
  .hep.hep-theory .hep-head-title { justify-items: start; }
  .hep.hep-theory .hep-th-body { padding: 18px 16px 22px; }
  .hep.hep-theory .hep-hero-actions { display: grid; grid-template-columns: 1fr; margin: 4px 0 24px; gap: 10px; }
  .hep.hep-theory .hep-hero-actions :is(.hep-cta,.hep-btn) { width: 100%; min-height: 50px; padding: 13px 16px; }
  .hep.hep-theory .hep-lang-picker { justify-self: start; width: min(100%, 220px); text-align: start; }
  .hep.hep-theory .hep-foundation-topics .hep-btn { min-height: 54px; padding: 13px 14px; }
  .hep.hep-theory .hep-progress-card,
  .hep.hep-theory .hep-buy,
  .hep.hep-theory .hep-free-topics { padding: 18px 14px; }
  .hep.hep-theory .hep-progress-pills { gap: 8px; }
  .hep.hep-theory .hep-progress-pills > div { padding: 12px 10px; }
  .hep.hep-theory .hep-progress-pills dd { font-size: var(--c-fs-lg); }
  .hep.hep-theory .hep-q-text { font-size: var(--c-fs-lg); line-height: 1.5; margin-bottom: 18px; }
  .hep.hep-theory .hep-choice { padding: 13px 11px; gap: 10px; min-height: 58px; }
  .hep.hep-theory .hep-choice-letter { width: 29px; height: 29px; border-radius: 8px; }
  .hep.hep-theory .hep-answer-card,
  .hep.hep-theory .hep-study-card,
  .hep.hep-theory .hep-result { padding: 16px; }
  .hep.hep-theory .hep-study-meta { gap: 3px; }
  .hep.hep-theory .hep-answer-explain { line-height: 1.65; }
  .hep.hep-theory .hep-th-progress { margin-bottom: 18px; }
  .hep.hep-theory .hep-mode-grid { grid-template-columns: 1fr; }
  .hep.hep-theory .hep-modecard { padding: 16px; min-height: 82px; }
}
