/* Empower Hub IELTS Roadmap. Same brand as eh-ielts (.ehi). Everything is scoped to .ehr; never use .ehf (footer clash). */
.ehr{--p:#5f01cf;--o:#f5a623;--d:#1A0B2E;--mut:#6b6380;--line:#ebe4f7;--soft:#f6f2fd;--ok:#067647;--okbg:#ecfdf3;--bad:#b42318;
  font-family:Poppins,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--d);line-height:1.55;max-width:860px;margin:0 auto;padding:8px 16px 40px;box-sizing:border-box}
.ehr *,.ehr *::before,.ehr *::after{box-sizing:border-box}
.ehr [hidden]{display:none!important}
.ehr h2{font-size:clamp(1.4rem,4vw,1.9rem);line-height:1.2;margin:4px 0 10px;color:var(--d)}
.ehr h3{font-size:1.15rem;margin:2px 0 6px;color:var(--d)}
.ehr h4{font-size:1.05rem;margin:0 0 8px;color:var(--d)}
.ehr p{margin:0 0 10px}
.ehr-small{font-size:.82rem;color:var(--mut)}
.ehr-eyebrow{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--p)}
.ehr-center{text-align:center}
.ehr-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ehr-err{color:var(--bad);font-size:.9rem;margin-top:8px}
.ehr-note{background:#fff8e6;color:#7a4a00;border-radius:12px;padding:8px 12px;font-size:.88rem}

.ehr .ehr-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:12px 24px;background:var(--o);color:var(--d);font:inherit;font-weight:700;font-size:.95rem;cursor:pointer;text-decoration:none;min-height:46px;transition:transform .12s,background .15s;margin:0}
.ehr .ehr-btn:hover{background:#ffb53d;color:var(--d)}
.ehr .ehr-btn:active{transform:scale(.97)}
.ehr .ehr-btn:disabled{opacity:.55;cursor:default}
.ehr .ehr-ghost{background:var(--soft);color:var(--p)}
.ehr .ehr-ghost:hover{background:#ece3fb;color:var(--p)}
.ehr .ehr-link{background:none;border:0;padding:6px;color:var(--p);font:inherit;font-size:.9rem;text-decoration:underline;cursor:pointer}
.ehr-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.ehr-actions.ehr-center{justify-content:center}

.ehr-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;margin:16px 0}
.ehr-hero{background:linear-gradient(135deg,#f3ecff,#fff7e8);border-radius:22px;padding:28px 22px;text-align:center;margin:8px 0 18px}
.ehr-hero p{max-width:600px;margin:0 auto 14px}
.ehr-teaser{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.ehr-teaser li{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 16px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ehr-chips{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}
.ehr-chip{display:inline-block;font-size:.75rem;font-weight:700;color:var(--p);background:var(--soft);border-radius:99px;padding:3px 10px;vertical-align:middle}
.ehr-chip-o{color:#a05e00;background:#fff4e0}

.ehr-head{margin:8px 0 14px}
.ehr-progress{height:10px;background:var(--soft);border-radius:99px;overflow:hidden;margin:6px 0 4px}
.ehr-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--p),#8b3dff);border-radius:99px;transition:width .4s}
.ehr-continue{width:100%;margin:6px 0 10px!important}

/* Map */
.ehr-stage{margin:26px 0 0}
.ehr-stage-h{margin-bottom:10px}
.ehr-stage-n{font-size:.75rem;font-weight:700;color:var(--mut);text-transform:uppercase;letter-spacing:.06em}
.ehr-path{list-style:none;margin:0 0 0 14px;padding:0 0 0 18px;border-left:3px dashed var(--line)}
.ehr-step{position:relative;margin:0 0 10px}
.ehr-step-in{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px 12px;color:var(--d);text-decoration:none;transition:border-color .15s,box-shadow .15s}
a.ehr-step-in:hover{border-color:#cdb6f4;box-shadow:0 4px 14px rgba(95,1,207,.08);color:var(--d)}
.ehr-node{position:absolute;left:-33px;top:50%;transform:translateY(-50%);width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;background:#fff;border:3px solid var(--line);color:var(--mut)}
.ehr-thumb{width:96px;height:54px;object-fit:cover;border-radius:10px;flex:none;background:var(--soft)}
.ehr-step-t{display:flex;flex-direction:column;min-width:0}
.ehr-step-t b{font-weight:600;line-height:1.3}
.ehr-step.is-done .ehr-node{background:var(--ok);border-color:var(--ok);color:#fff}
.ehr-step.is-current .ehr-step-in{border:2px solid var(--o);box-shadow:0 6px 20px rgba(245,166,35,.18)}
.ehr-step.is-current .ehr-node{background:var(--o);border-color:var(--o);color:var(--d);animation:ehr-pulse 1.8s infinite}
.ehr-step.is-locked .ehr-step-in{opacity:.55;background:#fbfafd}
.ehr-step.is-review .ehr-node{border-color:#cdb6f4;color:var(--p)}
.ehr-stage.is-review .ehr-path{border-left-color:#f1edf8}
@keyframes ehr-pulse{0%,100%{box-shadow:0 0 0 0 rgba(245,166,35,.5)}50%{box-shadow:0 0 0 8px rgba(245,166,35,0)}}
@media (prefers-reduced-motion:reduce){.ehr-step.is-current .ehr-node{animation:none}}
.ehr-finish.is-locked{opacity:.7}
.ehr-finish .ehr-card{margin:10px 0}
.ehr-art iframe{width:100%;height:720px;border:1px solid var(--line);border-radius:14px;margin-top:8px;background:#fff}

/* Step page */
.ehr-back{display:inline-block;margin:4px 0 12px;color:var(--p);text-decoration:none;font-weight:600;font-size:.9rem}
.ehr-video{position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#000;margin:10px 0 6px}
.ehr-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.ehr-notes{background:var(--soft);border-radius:14px;padding:12px 16px;margin:12px 0}
.ehr-task{margin-top:22px}
.ehr-task .ehi{margin-top:8px}
.ehr-gate{position:sticky;bottom:0;background:rgba(255,255,255,.96);backdrop-filter:blur(6px);border-top:1px solid var(--line);padding:12px 0;margin-top:16px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;z-index:5}
.ehr-gate-msg{margin:0;font-size:.92rem;color:var(--mut)}
.ehr-gate.is-done .ehr-gate-msg{color:var(--ok);font-weight:600}

/* Placement */
.ehr-steps-bar{display:flex;gap:6px;margin-bottom:12px}
.ehr-steps-bar span{flex:1;text-align:center;font-size:.75rem;font-weight:700;padding:6px;border-radius:99px;background:var(--soft);color:var(--mut)}
.ehr-steps-bar .is-on{background:var(--p);color:#fff}
.ehr-steps-bar .is-done{background:#e2d4fb;color:var(--p)}
.ehr-field{display:block;margin:0 0 14px}
.ehr-field span{display:block;font-weight:600;margin-bottom:6px}
.ehr-field em{font-weight:400;color:var(--mut)}
.ehr-field select,.ehr-field input{width:100%;max-width:360px;font:inherit;padding:10px 12px;border:1px solid #d6cce8;border-radius:12px;background:#fff;color:var(--d)}
.ehr-qn{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;border-radius:50%;background:var(--soft);color:var(--p);font-size:.78rem;font-weight:700;margin-right:8px;flex:none}
.ehr-pairs{display:grid;gap:8px;grid-template-columns:1fr}
@media (min-width:640px){.ehr-pairs{grid-template-columns:1fr 1fr}}
.ehr-pair{display:flex;align-items:center;gap:8px}
.ehr .ehr-pick{flex:1;border:2px solid var(--line);background:#fff;border-radius:12px;padding:10px;font:inherit;font-weight:600;color:var(--d);cursor:pointer;min-height:44px}
.ehr .ehr-pick:hover{border-color:#cdb6f4}
.ehr .ehr-pick.is-on{border-color:var(--p);background:var(--soft);color:var(--p)}
.ehr-ctest{line-height:2.4;background:#fcfbfe;border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin:0 0 14px}
.ehr-gap{white-space:nowrap}
.ehr-gap b{font-weight:600}
.ehr-gap input{font:inherit;font-weight:600;color:var(--p);border:0;border-bottom:2px solid var(--p);background:var(--soft);padding:0 3px;border-radius:4px 4px 0 0;min-width:3ch}
.ehr-gap input:focus{outline:2px solid var(--o);outline-offset:1px}
.ehr-q{margin:0 0 14px}
.ehr-q p{display:flex;align-items:flex-start}
.ehr-opts{display:flex;flex-wrap:wrap;gap:8px;padding-left:34px}
.ehr-opt{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:12px;padding:8px 12px;cursor:pointer}
.ehr-opt:has(input:checked){border-color:var(--p);background:var(--soft)}
.ehr-level{display:flex;align-items:center;justify-content:center;gap:16px;margin:10px 0;text-align:left}
.ehr-level-big{font-size:3.2rem;font-weight:800;color:var(--p);line-height:1}
.ehr-parts{display:grid;gap:10px;text-align:left;margin:14px auto;max-width:420px}
.ehr-parts span{font-size:.85rem;color:var(--mut)}
.ehr-parts b{float:right;font-size:.85rem}
.ehr-compare{background:var(--okbg);color:var(--ok);border-radius:12px;padding:10px 14px}

/* Tabs and Practice */
.ehr-tabs{display:flex;gap:6px;background:var(--soft);border-radius:999px;padding:4px;margin:4px 0 14px;width:max-content;max-width:100%}
.ehr-tabs a{padding:8px 18px;border-radius:999px;color:var(--p);font-weight:600;text-decoration:none;font-size:.92rem}
.ehr-tabs a.is-on{background:#fff;box-shadow:0 1px 4px rgba(26,11,46,.08);color:var(--d)}
.ehr-pgroup{margin:18px 0 0}
.ehr-pgroup h3{margin-bottom:2px}
.ehr-pgrid{display:grid;grid-template-columns:1fr;gap:10px;margin-top:8px}
@media (min-width:640px){.ehr-pgrid{grid-template-columns:1fr 1fr}}
.ehr-pcard{display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;color:var(--d);text-decoration:none;transition:border-color .15s,box-shadow .15s}
.ehr-pcard:hover{border-color:#cdb6f4;box-shadow:0 4px 14px rgba(95,1,207,.08);color:var(--d)}
.ehr-pcard b{font-weight:600;line-height:1.3}
.ehr-pgo{color:var(--p);font-weight:700;font-size:.88rem;margin-top:4px}
.ehr-practice-one .ehi{margin-top:10px}

/* Focus timer (Pomodoro) */
.ehr-pomo{position:fixed;left:16px;bottom:16px;z-index:9990;font-family:Poppins,system-ui,sans-serif}
.ehr-pomo-toggle{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:999px;padding:10px 16px;background:#1A0B2E;color:#fff;font:inherit;font-weight:600;font-size:.88rem;cursor:pointer;box-shadow:0 6px 18px rgba(26,11,46,.25)}
.ehr-pomo[data-state="running"] .ehr-pomo-toggle{background:#5f01cf}
.ehr-pomo[data-state="break"] .ehr-pomo-toggle{background:#067647}
.ehr-pomo-panel{position:absolute;left:0;bottom:52px;width:260px;background:#fff;border:1px solid #ebe4f7;border-radius:18px;padding:16px;box-shadow:0 12px 32px rgba(26,11,46,.18);color:#1A0B2E}
.ehr-pomo-phase{margin:0;font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#5f01cf}
.ehr-pomo[data-state="break"] .ehr-pomo-phase{color:#067647}
.ehr-pomo-clock{margin:2px 0 10px;font-size:2.4rem;font-weight:800;font-variant-numeric:tabular-nums;line-height:1}
.ehr-pomo-modes{display:flex;gap:6px;margin-bottom:10px}
.ehr-pomo-modes button{flex:1;border:1px solid #ebe4f7;background:#fff;border-radius:999px;padding:6px;font:inherit;font-size:.8rem;cursor:pointer;color:#1A0B2E}
.ehr-pomo-modes button.is-on{border-color:#5f01cf;background:#f6f2fd;color:#5f01cf;font-weight:700}
.ehr-pomo-btns{display:flex;gap:8px;margin-bottom:6px}
.ehr-pomo .ehr-btn{flex:1;min-height:40px;padding:8px 12px;border:0;border-radius:999px;background:#f5a623;color:#1A0B2E;font:inherit;font-weight:700;cursor:pointer}
.ehr-pomo .ehr-ghost{background:#f6f2fd;color:#5f01cf}
.ehr-pomo .ehr-small{font-size:.75rem;color:#6b6380;margin:0}
@media print{.ehr-pomo{display:none}}

/* disclaimer */
.ehr-disclaimer{margin:28px 0 8px;padding:14px 16px;border:1px solid var(--line);border-left:4px solid var(--o);border-radius:10px;background:#fffdf7;font-size:13px;line-height:1.6;color:var(--mut)}
.ehr-disclaimer strong{display:block;color:var(--d);font-size:13px;margin-bottom:2px}
.ehr-disclaimer p{margin:0!important;color:var(--mut)!important;font-size:13px!important}
.ehr-disclaimer a{color:var(--p);font-weight:600}
/* 0.5.0: "Before you start" message and phase headings */
.ehr-notice{margin:14px 0;padding:14px 16px;border:1px solid #e2d4fb;border-left:4px solid var(--p);border-radius:12px;background:var(--soft);font-size:.9rem;line-height:1.6}
.ehr-notice strong{display:block;color:var(--p);margin-bottom:2px}
.ehr-notice p{margin:0!important;color:var(--d)!important}
.ehr h2.ehr-phase{font-size:1.25rem;margin:30px 0 4px;padding-bottom:6px;border-bottom:2px solid var(--line);color:var(--p)}
.ehr-teaser li.ehr-teaser-phase{background:none;border:0;padding:10px 4px 0;font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--p)}
.ehr-accept-row{margin-top:12px}
