/* =====================================================================
   h2e-practice.css — interactive layer for
   /hindi-to-english-translation-practice.html
   Sits on top of course-landing.css (cards, .prose, tables, FAQ).
   Type sizes follow the site scale: .8125 / .9375 / 1.0625 / 1.1875 / 1.3125 / 1.5rem,
   weights 400–700. Prefix: h2e-
   ===================================================================== */
.page{
  --ok:#15803d; --ok-soft:#e9f7ee; --ok-line:#bfe6cb;
  --warn:#92400e; --warn-soft:#fff6e3; --warn-line:#f5dfae;
  --c-s:#5b21b6; --c-s-bg:#efe6fd;      /* subject */
  --c-v:#9d174d; --c-v-bg:#fde7f1;      /* verb */
  --c-o:#115e59; --c-o-bg:#dff5f1;      /* object / place */
  --c-x:#92400e; --c-x-bg:#fdf0d5;      /* time / how */
}
.h2e-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.page :is(button,select,textarea,input){font-family:inherit}
html:not(.js) .h2e-js{display:none}
.page [hidden]{display:none !important}
.h2e-dash-row.h2e-flat{margin-top:0}

/* thin lesson-progress line at the very top of the window */
.h2e-line{position:fixed;left:0;top:0;height:3px;width:100%;z-index:60;pointer-events:none}
.h2e-line i{display:block;height:100%;width:0;background:var(--purple);border-radius:0 3px 3px 0;transition:width .4s cubic-bezier(.2,.6,.2,1)}

/* ---------- HERO additions ---------- */
.hero-actions .h2e-textlink{align-self:center;font-size:.9375rem;font-weight:600;color:var(--purple-dark);padding:0 4px}
.hero-actions .h2e-textlink:hover{text-decoration:underline}

/* ---------- DASHBOARD ---------- */
.h2e-dash{padding:24px}
.h2e-dash-top{display:grid;grid-template-columns:minmax(0,1.3fr) repeat(3,minmax(0,.7fr));gap:12px}
.h2e-stat{border:1px solid var(--line);border-radius:var(--radius-sm);padding:14px 16px;background:#fff;min-width:0}
.h2e-stat small{display:block;font-size:.8125rem;font-weight:600;color:var(--muted)}
.h2e-stat b{display:block;font-size:1.5rem;font-weight:700;color:var(--ink);line-height:1.2;margin-top:4px;font-variant-numeric:tabular-nums}
.h2e-stat b span{font-size:.9375rem;font-weight:600;color:var(--muted)}
.h2e-meter{height:8px;border-radius:99px;background:var(--purple-soft);margin-top:10px;overflow:hidden}
.h2e-meter i{display:block;height:100%;width:0;border-radius:99px;background:var(--purple);transition:width .4s cubic-bezier(.2,.6,.2,1)}
.h2e-dash-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-top:16px}
.h2e-field{display:flex;flex-direction:column;gap:6px;font-size:.8125rem;font-weight:600;color:var(--muted)}
.h2e-field select{height:44px;min-width:170px;padding:0 36px 0 14px;border:1.5px solid #d9d2ee;border-radius:var(--radius-sm);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6786' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/16px;
  appearance:none;-webkit-appearance:none;font-size:.9375rem;font-weight:600;color:var(--ink);cursor:pointer}
.h2e-field select:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
.h2e-dash-row .btn{height:44px}
.h2e-dash-note{margin-top:14px;font-size:.8125rem;color:var(--muted);line-height:1.5}
.h2e-dash-note a{color:var(--purple-dark);font-weight:600}
.h2e-dash-note a:hover{text-decoration:underline}
.h2e-focus{margin-top:16px;border:1px solid var(--warn-line);background:var(--warn-soft);border-radius:var(--radius-sm);padding:14px 16px;font-size:.9375rem;line-height:1.55;color:#5c3207}
.h2e-focus b{color:#4a2805}
.h2e-focus a{color:var(--purple-dark);font-weight:600}
.h2e-focus a:hover{text-decoration:underline}
.h2e-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;list-style:none}
.h2e-badge{display:flex;align-items:center;gap:8px;height:36px;padding:0 12px 0 8px;border-radius:99px;border:1px solid var(--line);background:#faf9fd;font-size:.8125rem;font-weight:600;color:var(--muted)}
.h2e-badge .ico{width:20px;height:20px;padding:3px;border-radius:50%;background:#ece9f5;color:#8b87a3;stroke-width:2.4}
.h2e-badge.on{border-color:#d4bbf6;background:var(--purple-tint);color:var(--purple-dark)}
.h2e-badge.on .ico{background:var(--purple);color:#fff}

/* ---------- small buttons ---------- */
.h2e-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:var(--radius-sm);
  border:1.5px solid #d9d2ee;background:#fff;color:var(--ink-2);font-size:.9375rem;font-weight:600;cursor:pointer;white-space:nowrap;
  transition:background var(--ease),border-color var(--ease),color var(--ease),transform var(--ease)}
.h2e-btn .ico{width:18px;height:18px}
.h2e-btn:hover{border-color:var(--purple);color:var(--purple-dark);background:var(--purple-tint)}
.h2e-btn:active{transform:scale(.98)}
.h2e-btn:focus-visible,.h2e-opt:focus-visible,.h2e-chip:focus-visible,.h2e-word:focus-visible,.h2e-pair:focus-visible,.h2e-input:focus-visible,.h2e-flash:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
.h2e-btn[disabled]{opacity:.5;cursor:default;pointer-events:none}
.h2e-btn.is-on{border-color:var(--purple);background:var(--purple-soft);color:var(--purple-dark)}
.h2e-btn-icon{width:44px;padding:0}
.h2e-btn-go{border-color:transparent;background:var(--purple);color:#fff;box-shadow:var(--shadow-cta)}
.h2e-btn-go:hover{background:var(--purple-dark);color:#fff;border-color:transparent}

/* ---------- ACTIVITY CARD ---------- */
.h2e-act{padding:24px}
.h2e-act .sec-head{margin-bottom:8px}
.h2e-act .sec-head h3{font-size:1.1875rem;font-weight:700;letter-spacing:-.2px;color:var(--ink);line-height:1.3}
.h2e-act-kind{display:inline-block;margin-left:auto;padding:4px 10px;border-radius:99px;background:var(--purple-soft);color:var(--purple-dark);font-size:.8125rem;font-weight:600;white-space:nowrap}
.h2e-lede{font-size:.9375rem;line-height:1.6;color:var(--muted);margin-bottom:14px}
.h2e-done-tag{display:none;align-items:center;gap:6px;margin-left:auto;padding:4px 10px;border-radius:99px;background:var(--ok-soft);color:var(--ok);font-size:.8125rem;font-weight:600;white-space:nowrap}
.h2e-done-tag .ico{width:14px;height:14px;stroke-width:3}
.is-done>.sec-head .h2e-done-tag{display:inline-flex}
.is-done>.sec-head .h2e-act-kind{display:none}
.toc-list a.is-done::before{content:"";background:var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center/14px no-repeat}

/* ---------- RUNNER (one question at a time) ---------- */
html.js .h2e-mount{min-height:300px}
html.js .h2e-mount.h2e-mount-s{min-height:200px}
.h2e-run{border:1px solid #e6dff7;background:#fbfaff;border-radius:var(--radius-sm);padding:18px}
.h2e-run-top{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.h2e-step{font-size:.8125rem;font-weight:600;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.h2e-dots{display:flex;gap:5px;flex:1;min-width:0}
.h2e-dots i{flex:1;max-width:44px;height:6px;border-radius:99px;background:#e4def3}
.h2e-dots i.ok{background:var(--ok)}
.h2e-dots i.mid{background:#d97706}
.h2e-dots i.now{background:var(--purple)}
.h2e-combo{font-size:.8125rem;font-weight:600;color:var(--c-x);background:var(--c-x-bg);padding:4px 10px;border-radius:99px;white-space:nowrap}
.h2e-q{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.h2e-q.has-pic{grid-template-columns:200px minmax(0,1fr);align-items:start}
.h2e-pic{border-radius:var(--radius-sm);overflow:hidden;background:var(--purple-soft);aspect-ratio:1/1}
.h2e-pic img{display:block;width:100%;height:100%;object-fit:cover}
.h2e-label{font-size:.8125rem;font-weight:600;color:var(--muted);letter-spacing:.1px}
.h2e-hi{font-size:1.1875rem;line-height:1.45;font-weight:600;color:var(--ink);margin-top:4px}
.h2e-en{font-size:1.1875rem;line-height:1.45;font-weight:600;color:var(--ink);margin-top:4px}
.h2e-sub{font-size:.9375rem;line-height:1.55;color:var(--ink-2);margin-top:6px}
.h2e-input{display:block;width:100%;margin-top:12px;min-height:52px;padding:13px 14px;border:1.5px solid #cfc7e6;border-radius:var(--radius-sm);background:#fff;
  font-size:1.0625rem;line-height:1.45;color:var(--ink);resize:none;transition:border-color var(--ease),box-shadow var(--ease)}
.h2e-input::placeholder{color:#75718f}
.h2e-input:focus{border-color:var(--purple);box-shadow:0 0 0 3px rgba(124,58,237,.14);outline:0}
.h2e-input.ok{border-color:var(--ok);background:#f6fcf8}
.h2e-input.no{border-color:#d97706}
.h2e-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.h2e-actions .h2e-spacer{flex:1}

/* options (multiple choice, fill the blank, true/false, listening, conversation) */
.h2e-opts{display:grid;gap:8px;margin-top:14px}
.h2e-opts.two{grid-template-columns:1fr 1fr}
.h2e-opt{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:10px 14px;text-align:left;border:1.5px solid #d9d2ee;border-radius:var(--radius-sm);background:#fff;
  font-size:1.0625rem;line-height:1.4;color:var(--ink);cursor:pointer;transition:border-color var(--ease),background var(--ease),transform var(--ease)}
.h2e-opt kbd{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--purple-soft);color:var(--purple-dark);font:600 .8125rem/1 "Inter",system-ui,sans-serif}
.h2e-opt:hover{border-color:var(--purple);background:var(--purple-tint)}
.h2e-opt:active{transform:scale(.99)}
.h2e-opt.ok{border-color:var(--ok);background:var(--ok-soft)}
.h2e-opt.ok kbd{background:var(--ok);color:#fff}
.h2e-opt.no{border-color:#d97706;background:var(--warn-soft)}
.h2e-opt.no kbd{background:#d97706;color:#fff}
.h2e-opts.locked .h2e-opt{cursor:default;pointer-events:none}
.h2e-opts.locked .h2e-opt:not(.ok):not(.no){opacity:.6}
.h2e-blank{display:inline-block;min-width:64px;border-bottom:2px solid var(--purple);text-align:center;color:var(--purple-dark);font-weight:700;padding:0 6px}

/* sentence builder + spot the mistake */
.h2e-tray,.h2e-bank{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.h2e-tray{min-height:60px;padding:8px;border:1.5px dashed #cfc7e6;border-radius:var(--radius-sm);background:#fff;align-items:center}
.h2e-tray:empty::before{content:"Tap the words in the right order";font-size:.9375rem;color:#75718f;padding:0 6px}
.h2e-tray.ok{border-style:solid;border-color:var(--ok);background:#f6fcf8}
.h2e-tray.no{border-color:#d97706}
.h2e-chip,.h2e-word{min-height:44px;padding:0 14px;border:1.5px solid #d9d2ee;border-radius:var(--radius-xs);background:#fff;font-size:1.0625rem;font-weight:600;color:var(--ink);cursor:pointer;
  box-shadow:0 2px 0 #e4def3;transition:transform var(--ease),border-color var(--ease),background var(--ease)}
.h2e-chip:hover,.h2e-word:hover{border-color:var(--purple);background:var(--purple-tint)}
.h2e-chip:active,.h2e-word:active{transform:translateY(2px);box-shadow:none}
.h2e-chip.used{visibility:hidden}
.h2e-word.ok{border-color:var(--ok);background:var(--ok-soft);color:var(--ok)}
.h2e-word.no{border-color:#d97706;background:var(--warn-soft)}
.h2e-word.hit{border-color:#d97706;background:var(--warn-soft);text-decoration:line-through;text-decoration-thickness:2px}
.h2e-words{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.h2e-words.locked .h2e-word{pointer-events:none}

/* feedback */
.h2e-fb{margin-top:14px}
.h2e-fb:empty{display:none}
.h2e-fb-box{border-radius:var(--radius-sm);padding:14px 16px;border:1px solid var(--warn-line);background:var(--warn-soft);font-size:.9375rem;line-height:1.6;color:#5c3207}
.h2e-fb-box.ok{border-color:var(--ok-line);background:var(--ok-soft);color:#14532d}
.h2e-fb-box.info{border-color:#e0d5f8;background:var(--purple-tint);color:#3b1d6b}
.h2e-fb-title{display:flex;align-items:center;gap:8px;font-size:1.0625rem;font-weight:700}
.h2e-fb-title .ico{width:20px;height:20px;stroke-width:2.6}
.h2e-fb-box p+p,.h2e-fb-title+p{margin-top:6px}
.h2e-fb-box mark{background:none;color:inherit;border-bottom:2px solid #d97706;padding-bottom:1px}
.h2e-model{margin-top:10px;padding:12px 14px;border-radius:var(--radius-xs);background:#fff;border:1px solid rgba(21,128,61,.2);color:var(--ink)}
.h2e-fb-box:not(.ok) .h2e-model{border-color:#e8dcc0}
.h2e-model-en{font-size:1.1875rem;font-weight:600;line-height:1.45}
.h2e-model-en span.say{background:var(--purple-soft);border-radius:4px;box-shadow:0 0 0 2px var(--purple-soft)}
.h2e-model small{display:block;font-size:.8125rem;font-weight:600;color:var(--muted);margin-bottom:2px}
.h2e-alt{margin-top:8px;font-size:.9375rem;color:var(--ink-2)}
.h2e-alt b{font-weight:600;color:var(--ink)}
.h2e-why{margin-top:10px;font-size:.9375rem;line-height:1.6;color:var(--ink-2)}
.h2e-why b{color:var(--ink)}
.h2e-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.h2e-tools .h2e-btn{min-height:40px;padding:0 12px;font-size:.8125rem}
.h2e-tools .h2e-btn .ico{width:16px;height:16px}

/* summary */
.h2e-sum{text-align:center;padding:12px 8px 6px}
.h2e-sum-score{font-size:1.5rem;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.h2e-sum p{font-size:.9375rem;line-height:1.6;color:var(--ink-2);margin-top:6px;max-width:520px;margin-inline:auto}
.h2e-sum .h2e-actions{justify-content:center}
.h2e-sum-tips{margin:14px auto 0;max-width:560px;text-align:left;border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;padding:12px 16px;font-size:.9375rem;line-height:1.6;color:var(--ink-2)}
.h2e-sum-tips a{color:var(--purple-dark);font-weight:600}
.h2e-sum-tips a:hover{text-decoration:underline}
.h2e-xp-pop{position:fixed;z-index:70;pointer-events:none;font-size:.9375rem;font-weight:700;color:var(--purple-dark);background:#fff;border:1px solid #d4bbf6;border-radius:99px;padding:6px 12px;box-shadow:var(--shadow);animation:h2e-pop 1.1s ease-out forwards}
@keyframes h2e-pop{0%{opacity:0;transform:translateY(6px)}15%{opacity:1;transform:translateY(0)}80%{opacity:1}100%{opacity:0;transform:translateY(-22px)}}

/* match the pairs */
.h2e-match{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
.h2e-match>div{display:flex;flex-direction:column;gap:8px}
.h2e-pair{min-height:52px;padding:10px 14px;text-align:left;border:1.5px solid #d9d2ee;border-radius:var(--radius-sm);background:#fff;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--ink);cursor:pointer;
  transition:border-color var(--ease),background var(--ease)}
.h2e-pair:hover{border-color:var(--purple);background:var(--purple-tint)}
.h2e-pair.sel{border-color:var(--purple);background:var(--purple-soft)}
.h2e-pair.ok{border-color:var(--ok-line);background:var(--ok-soft);color:#14532d;cursor:default;pointer-events:none}
.h2e-pair.no{border-color:#d97706;background:var(--warn-soft)}

/* flashcards */
.h2e-flash{display:block;width:100%;min-height:176px;padding:22px;text-align:center;border:1.5px solid #d9d2ee;border-radius:var(--radius);background:#fff;cursor:pointer;
  transition:border-color var(--ease),background var(--ease)}
.h2e-flash:hover{border-color:var(--purple)}
.h2e-flash small{display:block;font-size:.8125rem;font-weight:600;color:var(--muted)}
.h2e-flash b{display:block;margin-top:10px;font-size:1.3125rem;font-weight:700;line-height:1.35;color:var(--ink)}
.h2e-flash em{display:block;margin-top:10px;font-style:normal;font-size:.9375rem;line-height:1.5;color:var(--ink-2)}
.h2e-flash.back{background:var(--purple-tint);border-color:#d4bbf6}
.h2e-flash.back b{color:var(--purple-dark)}

/* conversation */
.h2e-chat{display:flex;flex-direction:column;gap:8px;margin-bottom:6px}
.h2e-bubble{width:fit-content;max-width:85%;padding:10px 14px;border-radius:14px 14px 14px 4px;background:#fff;border:1px solid var(--line);font-size:.9375rem;line-height:1.5;color:var(--ink)}
.h2e-bubble.b{align-self:flex-end;border-radius:14px 14px 4px 14px;background:var(--purple-soft);border-color:#e0d0fa}
.h2e-bubble small{display:block;font-size:.8125rem;color:var(--muted)}
.h2e-bubble.now{border-color:var(--purple);box-shadow:0 0 0 3px rgba(124,58,237,.1)}

/* speaking */
.h2e-speak{list-style:none;display:flex;flex-direction:column;gap:10px}
.h2e-speak li{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;padding:12px 14px}
.h2e-speak-en{flex:1 1 260px;min-width:0;font-size:1.0625rem;font-weight:600;line-height:1.45;color:var(--ink)}
.h2e-speak-en small{display:block;font-size:.8125rem;font-weight:500;color:var(--muted);margin-top:2px}
.h2e-speak-en span.hit{color:var(--ok)}
.h2e-speak-en span.miss{color:#b45309;text-decoration:underline dotted}
.h2e-speak-en span.say{background:var(--purple-soft);border-radius:4px}
.h2e-speak-res{flex:1 1 100%;font-size:.9375rem;line-height:1.5;color:var(--ink-2)}
.h2e-speak-res:empty{display:none}
.h2e-btn.rec{border-color:#be123c;background:#fff1f3;color:#9f1239}

/* ---------- STATIC LEARNING AIDS ---------- */
/* answers disclosure */
.h2e-ans{border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;overflow:hidden}
.h2e-ans>summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:52px;padding:10px 16px;cursor:pointer}
.h2e-ans>summary::-webkit-details-marker{display:none}
.h2e-ans>summary h3{font-size:1.1875rem;font-weight:700;letter-spacing:-.2px;color:var(--ink);line-height:1.3}
.h2e-ans>summary .h2e-cue{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:.8125rem;font-weight:600;color:var(--purple-dark);white-space:nowrap}
.h2e-ans>summary .h2e-cue::before{content:"Show"}
.h2e-ans[open]>summary .h2e-cue::before{content:"Hide"}
.h2e-ans>summary .h2e-cue .ico{width:16px;height:16px;stroke-width:2.6;transition:transform var(--ease)}
.h2e-ans[open]>summary .h2e-cue .ico{transform:rotate(180deg)}
.h2e-ans>summary:hover h3{color:var(--purple-dark)}
.h2e-ans[open]>summary{border-bottom:1px solid var(--line)}
.h2e-ans-body{padding:16px}
.h2e-ans-body>*+*{margin-top:14px}

/* colour-coded sentence parts */
.h2e-legend{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin-top:12px}
.h2e-legend li,.h2e-part{display:inline-flex;align-items:center;min-height:32px;padding:4px 12px;border-radius:var(--radius-xs);font-size:.9375rem;font-weight:600}
.h2e-part{min-height:40px;font-size:1.0625rem}
.p-s{background:var(--c-s-bg);color:var(--c-s)}
.p-v{background:var(--c-v-bg);color:var(--c-v)}
.p-o{background:var(--c-o-bg);color:var(--c-o)}
.p-x{background:var(--c-x-bg);color:var(--c-x)}
.h2e-diagram{margin-top:14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:#fbfaff;padding:16px}
.h2e-diagram-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.h2e-diagram-row+.h2e-diagram-row{margin-top:12px;padding-top:12px;border-top:1px dashed #ddd5f1}
.h2e-diagram-row>small{flex:0 0 64px;font-size:.8125rem;font-weight:600;color:var(--muted)}
.h2e-diagram .h2e-field{margin-bottom:14px}
.h2e-diagram .h2e-field select{min-width:0;width:100%;max-width:460px}
.h2e-diagram-rule{margin-top:12px;font-size:.9375rem;line-height:1.6;color:var(--ink-2)}

/* timeline */
.h2e-timeline{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px;padding-top:26px}
.h2e-timeline::before{content:"";position:absolute;left:0;right:0;top:8px;height:3px;border-radius:3px;background:linear-gradient(90deg,#d9cdf6,var(--purple))}
.h2e-tl{position:relative;border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;padding:14px}
.h2e-tl::before{content:"";position:absolute;top:-25px;left:18px;width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid var(--purple)}
.h2e-tl small{display:block;font-size:.8125rem;font-weight:600;color:var(--purple-dark)}
.h2e-tl b{display:block;margin-top:2px;font-size:1.0625rem;font-weight:700;color:var(--ink)}
.h2e-tl p{margin-top:6px;font-size:.9375rem;line-height:1.5;color:var(--ink-2)}
.h2e-tl p i{font-style:normal;font-weight:600;color:var(--ink)}
.h2e-tl a{display:inline-block;margin-top:8px;font-size:.8125rem;font-weight:600;color:var(--purple-dark)}
.h2e-tl a:hover{text-decoration:underline}

/* correct vs incorrect */
.h2e-fixes{list-style:none;display:flex;flex-direction:column;gap:10px;margin-top:12px}
.h2e-fixes li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;border:1px solid var(--line);border-radius:var(--radius-sm);overflow:hidden;background:#fff}
.h2e-fixes .x,.h2e-fixes .y{display:flex;gap:10px;padding:12px 14px;font-size:1.0625rem;line-height:1.45;font-weight:600}
.h2e-fixes .x{background:var(--warn-soft);color:#5c3207}
.h2e-fixes .y{background:var(--ok-soft);color:#14532d}
.h2e-fixes .x .ico,.h2e-fixes .y .ico{width:18px;height:18px;margin-top:3px;stroke-width:2.8}
.h2e-fixes .z{grid-column:1/-1;padding:10px 14px;font-size:.9375rem;line-height:1.55;color:var(--ink-2);border-top:1px solid var(--line)}
.h2e-fixes small{display:block;font-size:.8125rem;font-weight:600;opacity:.85}

/* scene picture beside a prompt list */
.h2e-scene{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:20px;align-items:start}
.h2e-scene figure{border-radius:var(--radius-sm);overflow:hidden;background:var(--purple-soft)}
.h2e-scene img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
.h2e-scene figcaption{padding:8px 12px;font-size:.8125rem;line-height:1.45;color:var(--ink-2);background:#fff;border-top:1px solid var(--line)}

/* paragraph blocks */
.h2e-para{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.h2e-para .ex{margin:0}
.h2e-para .ex small{display:block;font-size:.8125rem;font-weight:600;color:var(--muted);margin-bottom:4px}

/* share + worksheet strip */
.h2e-share{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.h2e-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:16px}
.h2e-two .h2e-act{margin:0}

/* link grid (internal links) */
.h2e-links{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.h2e-links a{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 14px;border:1px solid var(--line);border-radius:var(--radius-xs);background:#fbfaff;font-size:.9375rem;font-weight:600;color:var(--ink-2);transition:border-color var(--ease),background var(--ease),color var(--ease)}
.h2e-links a:hover{border-color:#d4bbf6;background:var(--purple-tint);color:var(--purple-dark)}
.h2e-links .ico{width:16px;height:16px;color:var(--purple);stroke-width:2.6}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1024px){
  .h2e-dash-top{grid-template-columns:repeat(3,minmax(0,1fr))}
  .h2e-dash-top .h2e-stat:first-child{grid-column:1/-1}
  .h2e-timeline{grid-template-columns:repeat(2,minmax(0,1fr));padding-top:0;gap:10px}
  .h2e-timeline::before,.h2e-tl::before{display:none}
}
@media (max-width:760px){
  .h2e-dash,.h2e-act{padding:18px}
  .h2e-two{grid-template-columns:minmax(0,1fr)}
  .h2e-scene{grid-template-columns:minmax(0,1fr)}
  .h2e-scene figure{max-width:260px}
  .h2e-para{grid-template-columns:minmax(0,1fr)}
  .h2e-q.has-pic{grid-template-columns:minmax(0,1fr)}
  .h2e-pic{max-width:220px}
  .h2e-run{padding:14px}
  .h2e-links{grid-template-columns:minmax(0,1fr)}
  .h2e-fixes li{grid-template-columns:minmax(0,1fr)}
  .h2e-act-kind{display:none}
}
@media (max-width:520px){
  .h2e-dash-top{grid-template-columns:1fr 1fr}
  .h2e-dash-top .h2e-stat:first-child{grid-column:1/-1}
  .h2e-stat{padding:12px}
  .h2e-field,.h2e-field select{width:100%}
  .h2e-dash-row .btn,.h2e-dash-row .h2e-btn{flex:1 1 100%}
  .h2e-match{grid-template-columns:minmax(0,1fr)}
  .h2e-timeline{grid-template-columns:minmax(0,1fr)}
  .h2e-opts.two{grid-template-columns:1fr}
  .h2e-actions .h2e-btn{flex:1 1 auto}
  .h2e-diagram-row>small{flex-basis:100%}
  .h2e-bubble{max-width:94%}
}
@media (prefers-reduced-motion:reduce){
  .h2e-xp-pop{animation:none;opacity:0}
  .h2e-line i,.h2e-meter i{transition:none}
}

/* ---------- PRINT: a clean worksheet ---------- */
@media print{
  .topbar,.site-footer,.h2e-js,.h2e-mount,.h2e-line,.hero-actions,.hero-art,.toc,.related,.start .btn,#be-consent,.toast,#scrollTopBtn,.h2e-noprint{display:none !important}
  body{background:#fff}
  .page{padding:0;max-width:none}
  .card{box-shadow:none;border:0;padding:0 0 10px}
  .row,.h2e-two{display:block;margin-top:10px}
  .hero{display:block;margin:0;padding:0 0 8px}
  .h2e-ans{border:0}
  .h2e-ans>summary .h2e-cue{display:none}
  .h2e-scene{display:block}
  .h2e-scene figure{display:none}
  section,table,.ex,.h2e-fixes li{break-inside:avoid}
  a{color:inherit;text-decoration:none}
}

/* toast (badge earned) — sits outside .page, so no tokens here */
.toast{position:fixed;left:50%;bottom:24px;z-index:80;transform:translate(-50%,16px);opacity:0;pointer-events:none;max-width:calc(100vw - 32px);
  padding:12px 18px;border-radius:12px;background:#1f1b3a;color:#fff;font:600 .9375rem/1.4 "Inter",system-ui,sans-serif;box-shadow:0 10px 30px rgba(31,27,58,.28);
  transition:opacity .2s ease,transform .2s cubic-bezier(.2,.6,.2,1)}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast:empty{display:none}
.h2e-stat b em{font-style:normal}
@media (prefers-reduced-motion:reduce){.toast{transition:none}}
/* very narrow phones: long button labels may wrap instead of widening the page */
@media (max-width:520px){
  .h2e-btn{white-space:normal;text-align:left;padding-top:8px;padding-bottom:8px;line-height:1.3}
  .h2e-share .h2e-btn,.h2e-tools .h2e-btn{flex:1 1 auto}
}

/* text column of a scene: lead-in plus the Hindi passage, beside the picture */
.h2e-scene-main{min-width:0}
.h2e-scene-main>*+*{margin-top:14px}

/* Hinglish note under the explanation; tense picker */
.h2e-hw{margin-top:6px}
.h2e-tense-pick{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.h2e-tense-pick .h2e-field select{min-width:260px}
@media (max-width:520px){.h2e-tense-pick .h2e-field select{min-width:0}}
