/* =====================================================================
   h2e-pillar.css — the three Hindi-to-English translation pages in the tenses-pillar design:
     /hindi-to-english-translation-practice.html      (hub, with the practice engine)
     /hindi-to-english-paragraph-translation.html     (paragraphs and stories, with the engine)
     /hindi-to-english-translation-worksheets.html    (printable worksheets, no engine)
   The pages take their shell from /tenses-lessons.html (lq-core.css, tech-skills.css, ts- and tl- rules).
   The engine's own look stays in h2e-practice.css; this file gives it the tokens it used to read from
   course-landing.css and styles the page furniture around it. Sizes follow the site scale. Prefixes: h2e-, ws-
   ===================================================================== */
.page{
  --purple:#7c3aed; --purple-dark:#6d28d9; --purple-soft:#efe6fd; --purple-tint:#f6f1fe;
  --ink:#1f1b3a; --ink-2:#3a3760; --muted:#6b6786; --line:#eae6f5;
  --radius:16px; --radius-sm:12px; --radius-xs:10px;
  --shadow:0 4px 20px rgba(45,25,90,.05); --shadow-cta:0 6px 18px rgba(124,58,237,.28);
  --ease:.2s cubic-bezier(.2,.6,.2,1);
}
.page section[id],.page .h2e-act[id],.page .h2e-item[id],.page .ws-sheet[id]{scroll-margin-top:96px}
.page .ico{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.page ul,.page ol{margin:0;padding:0}
.page .tl-prose ol,.page .tl-prose ul{margin:10px 0 0;padding-left:26px;display:grid;gap:6px}
.page .tl-prose ol{list-style:decimal}
.page .tl-prose ul{list-style:disc}
.page .tl-prose li::marker{color:var(--purple);font-weight:700}
.page .tl-prose h3{margin:18px 0 6px;font-size:1.1875rem;font-weight:700;letter-spacing:-.01em;line-height:1.3;color:var(--ink)}
.page .tl-prose>h3:first-child{margin-top:0}
.page .tl-table.h2e-wrap td:first-child{white-space:normal}
.page .tl-table th{text-align:left}

/* a white card: one block of a section */
.h2e-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:20px;box-shadow:var(--shadow)}
.h2e-card+.h2e-card,.h2e-card+.h2e-two,.h2e-two+.h2e-card,.page .h2e-stack>*+*{margin-top:14px}
.page .h2e-two>.h2e-card{margin-top:0}
.page .tl-prose ol+p,.page .tl-prose ul+p{margin-top:12px}
.page .h2e-card>*+*{margin-top:14px}
.page .h2e-card>.sec-head+*{margin-top:0}
.sec-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.h2e-act .sec-head h3{margin:0}
.h2e-act.is-done>.sec-head .h2e-done-tag,section.is-done>.ts-sec .h2e-done-tag{display:inline-flex}
.ts-sec h2 .h2e-done-tag{vertical-align:middle;margin-left:10px;letter-spacing:0}
.h2e-sub{margin:0 0 6px;font-size:1.1875rem;font-weight:700;letter-spacing:-.01em;line-height:1.3;color:var(--ink)}
.h2e-note{padding:14px 16px;border:1px solid #dccff8;border-radius:var(--radius-sm);background:var(--purple-tint);font-size:.9375rem;line-height:1.65;color:var(--ink)}
.h2e-ex{padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius-sm);background:#fbfaff;font-size:1.0625rem;line-height:1.65;color:var(--ink)}
.h2e-ex p{margin:0}
.h2e-ex small{display:block;margin-bottom:4px;font-size:.8125rem;font-weight:600;color:var(--muted)}
.page .h2e-dash-row .ts-btn{min-height:44px;border:0;cursor:pointer}
.page button.ts-btn{font-family:inherit;border:0;cursor:pointer}
.page .ts-btn .ico{width:16px;height:16px;margin-left:6px;stroke-width:2.6}
.page .h2e-links{list-style:none}
.page .h2e-fixes,.page .h2e-legend,.page .h2e-badges{list-style:none}
.h2e-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}

/* the opening block: text beside the lesson picture */
.h2e-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:24px;align-items:center}
.h2e-intro img{display:block;width:100%;height:auto;border-radius:var(--radius-sm)}

/* practise by tense: one card for each tense lesson */
.h2e-tgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none}
.h2e-tgrid>li,.ws-pick>li{display:flex}
.h2e-tcard{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0;padding:16px;border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;color:var(--ink);text-decoration:none;transition:border-color var(--ease),box-shadow var(--ease)}
.h2e-tcard:hover{border-color:#d4bbf6;box-shadow:var(--shadow)}
.h2e-tcard:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
.h2e-tcard b{font-size:1.0625rem;font-weight:700;line-height:1.3}
.h2e-tcard span{font-size:.9375rem;line-height:1.5;color:var(--ink-2)}
.h2e-tcard i{font-style:normal;font-size:.9375rem;line-height:1.5;color:var(--muted)}
.h2e-tcard em{margin-top:auto;padding-top:8px;font-style:normal;font-size:.8125rem;font-weight:600;color:var(--purple-dark)}

/* links to the two child pages: one card per row */
.h2e-next{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}
.h2e-next h3{margin:0;font-size:1.1875rem;font-weight:700;letter-spacing:-.01em;line-height:1.3;color:var(--ink)}
.h2e-next p{margin:6px 0 0;font-size:1.0625rem;line-height:1.6;color:var(--ink-2)}

/* FAQ */
.h2e-faq{display:grid;gap:8px}
.h2e-faq details{border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;overflow:hidden}
.h2e-faq summary{list-style:none;display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:52px;padding:10px 16px;font-size:1.0625rem;font-weight:600;color:var(--ink);cursor:pointer}
.h2e-faq summary::-webkit-details-marker{display:none}
.h2e-faq summary::after{content:"";flex:none;width:9px;height:9px;margin-right:4px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform var(--ease)}
.h2e-faq details[open] summary::after{transform:rotate(-135deg)}
.h2e-faq summary:focus-visible{outline:2px solid var(--purple);outline-offset:-2px}
.h2e-faq .h2e-a{padding:0 16px 16px;font-size:1.0625rem;line-height:1.65;color:var(--ink-2)}
.h2e-faq a,.h2e-card a:not(.ts-btn):not(.h2e-btn):not(.h2e-tcard),.h2e-note a{color:var(--purple-dark);font-weight:600}

/* ---------- paragraph page ---------- */
.h2e-level{margin:0 0 12px;display:flex;flex-wrap:wrap;align-items:baseline;gap:10px}
.h2e-level b{font-size:.8125rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--purple-dark)}
.h2e-level span{font-size:.9375rem;color:var(--muted)}
.h2e-item-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.h2e-item-head h3{margin:0;font-size:1.1875rem;font-weight:700;letter-spacing:-.01em;line-height:1.3;color:var(--ink)}
.h2e-item-n{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 8px;border-radius:99px;background:var(--purple-soft);color:var(--purple-dark);font-size:.8125rem;font-weight:700}
.h2e-item-tag{margin-left:auto;padding:4px 10px;border-radius:99px;background:var(--purple-soft);color:var(--purple-dark);font-size:.8125rem;font-weight:600}
.h2e-item .h2e-done-tag{margin-left:0}
.h2e-item.is-done .h2e-done-tag{display:inline-flex}
.h2e-item-lead{font-size:.9375rem;line-height:1.6;color:var(--muted)}
.h2e-para-hi{font-size:1.1875rem;line-height:1.7}
.h2e-item .h2e-scene{grid-template-columns:minmax(0,1fr) 200px}
.h2e-try>summary .h2e-cue::before{content:"Open"}
.h2e-try[open]>summary .h2e-cue::before{content:"Close"}
.page .h2e-ans>summary h4{margin:0;font-size:1.0625rem;font-weight:700;color:var(--ink);line-height:1.3}
.page .h2e-try .h2e-mount{min-height:0}

/* ---------- worksheets page ---------- */
.ws-pick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;list-style:none}
.ws-sheet .ws-meta{font-size:.9375rem;line-height:1.6;color:var(--ink-2)}
.ws-sheet .ws-meta b{color:var(--ink)}
.ws-actions{display:flex;flex-wrap:wrap;gap:8px}
.ws-actions .ts-btn{min-height:44px}
.ws-list{list-style:decimal;padding-left:30px !important;display:grid;gap:8px;font-size:1.0625rem;line-height:1.55;color:var(--ink)}
.ws-list li::marker{color:var(--purple);font-weight:700}
.ws-key{border-top:1px dashed #d9d2ee;padding-top:14px}
.ws-key h4{margin:0 0 10px;font-size:1.0625rem;font-weight:700;color:var(--ink)}
.ws-printhead{display:none}

@media (max-width:900px){
  .h2e-tgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ws-pick{grid-template-columns:repeat(2,minmax(0,1fr))}
  .h2e-intro{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:760px){
  .h2e-card{padding:16px}
  .h2e-next{grid-template-columns:minmax(0,1fr)}
  .h2e-item .h2e-scene{grid-template-columns:minmax(0,1fr)}
  .h2e-item-tag{margin-left:0}
  .h2e-hero-actions .ts-btn,.ws-actions .ts-btn,.h2e-next .ts-btn{flex:1 1 auto;justify-content:center;text-align:center}
}
@media (max-width:520px){
  .h2e-tgrid,.ws-pick{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){.h2e-tcard,.h2e-faq summary::after{transition:none}}

/* ---------- print ---------- */
@page{margin:10mm}
@media print{
  .topbar,.site-footer,.mesh-bg,.ts-hero .ts-stats,.ts-hero .ts-path,.h2e-hero-actions,#be-consent,.toast,#scrollTopBtn,.h2e-noprint,.h2e-js,.h2e-mount,.h2e-line,.ws-actions{display:none !important}
  html,body{background:#fff !important}
  body::before,body::after{display:none !important}
  .page{color:#000}
  .page .max-w-6xl{max-width:none;padding-left:0;padding-right:0}
  .ts-hero{padding:0 0 6mm !important;margin:0 !important;background:none !important}
  .ts-hero .ts-kicker{display:none}
  .ts-hero .ts-h1{font-size:18pt !important;margin:0}
  .ts-hero .ts-sub{font-size:10.5pt;max-width:none}
  .h2e-card{box-shadow:none;border:0;padding:0}
  .tl-gap{padding-bottom:6mm}
  details.h2e-ans{border:0}
  section,table,.h2e-ex,.h2e-fixes li{break-inside:avoid}

  /* worksheets: one worksheet per page, its answer key on a page of its own */
  .ws-page .ws-noprint-sec{display:none !important}
  .ws-page .ts-hero{display:none}
  .ws-sheet{break-before:page;break-inside:auto}
  .ws-sheet:first-of-type{break-before:auto}
  .ws-sheet .ts-sec h2{font-size:13pt;margin:0;line-height:1.2}
  .ws-sheet .h2e-card>*+*{margin-top:1.5mm !important}
  .ws-sheet .ts-sec p{display:none}
  .ws-printhead{display:flex;justify-content:space-between;gap:10mm;margin:0;padding-bottom:1.2mm;border-bottom:1px solid #999;font-size:9.5pt;color:#333}
  .ws-sheet .ws-meta{font-size:9.5pt;margin:0 0 1mm}
  .ws-page .tl-gap{padding-bottom:0}
  .ws-sheet .ts-sec{margin:0 0 2mm}
  .ws-list{display:block;font-size:10pt;line-height:1.25}
  .ws-list li{break-inside:avoid;padding:.4mm 0 0}
  .ws-sheet .ws-q li::after{content:"";display:block;height:3.8mm;border-bottom:1px solid #bbb}
  .ws-covers{display:none}
  .ws-key,.ws-key[hidden]{display:block !important;break-before:page;border:0;padding:0}
  .ws-key h4{font-size:13pt;margin:0 0 3mm}
  .ws-key .ws-list li{padding:1.3mm 0}
  .ws-key .ws-list{font-size:11pt}
  body[data-ws-print] .ws-sheet:not(.is-printing){display:none !important}
  body[data-ws-print] .ws-sheet.is-printing{break-before:auto}
}
