/* EnglishLamp Global Lesson Design Layer 1.0 — preview draft.
   Applied at render time to regular WordPress lesson content. No content changes.
   Purpose-built cinematic/scroll experiences keep their own styles. */
:root{
  --eld-ink:#26364d;
  --eld-muted:#536780;
  --eld-blue:#315ef5;
  --eld-navy:#0b1d3f;
  --eld-cyan:#33c3e8;
  --eld-stroke:rgba(11,29,63,.12);
  --eld-paper:#ffffff;
  --eld-stripe:#f5f9ff;
  --eld-radius:18px;
  --eld-sans:Manrope,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --eld-serif:Newsreader,Georgia,serif;
}

/* Plain posts and pages inherit these values regardless of how they were authored. */
.elp-design-reading-root{
  --eld-line-height:1.78;
  font-family:var(--eld-sans);
  font-size:clamp(1rem,.92rem + .19vw,1.055rem);
  line-height:var(--eld-line-height);
  color:var(--eld-ink);
  overflow-wrap:break-word;
}
.elp-design-reading-root > :is(p,.wp-block-paragraph),
.elp-design-reading-root :is(.wp-block-group,.wp-block-column) > p{
  margin-block:0 1.2em;
  line-height:var(--eld-line-height);
}
.elp-design-reading-root > :is(h2,h3,h4,h5,h6),
.elp-design-reading-root :is(.wp-block-group,.wp-block-column) > :is(h2,h3,h4){
  font-family:var(--eld-serif)!important;
  color:var(--eld-navy)!important;
  letter-spacing:-.026em;
  text-wrap:pretty;
}
.elp-design-reading-root > h2,.elp-design-reading-root .wp-block-group > h2{
  margin:1.45em 0 .52em;
  font-size:clamp(1.7rem,2.5vw,2.3rem);
  line-height:1.15!important;
  font-weight:600!important;
}
.elp-design-reading-root > h3,.elp-design-reading-root .wp-block-group > h3{
  margin:1.25em 0 .5em;
  font-size:clamp(1.36rem,2.0vw,1.78rem);
  line-height:1.19!important;
  font-weight:600!important;
}
.elp-design-reading-root > h4,.elp-design-reading-root > h5,.elp-design-reading-root > h6{
  margin:1.15em 0 .5em;line-height:1.3!important;
}
.elp-design-reading-root > :is(ul,ol),
.elp-design-reading-root .wp-block-group > :is(ul,ol){
  padding-inline-start:1.5em;
  margin-block:.9em 1.35em;
}
.elp-design-reading-root > :is(ul,ol) > li,
.elp-design-reading-root .wp-block-group > :is(ul,ol) > li{
  padding-inline-start:.12em;
  margin-block:.38em;
  line-height:1.7;
}
.elp-design-reading-root > blockquote,
.elp-design-reading-root > .wp-block-quote{
  margin:1.6em 0;padding:1.1em 1.4em;
  border-inline-start:3px solid var(--eld-cyan)!important;
  border-radius:0 14px 14px 0;
  background:rgba(49,94,245,.055);
  color:var(--eld-ink);
}
.elp-design-reading-root > blockquote p:last-child{margin-bottom:0;}
.elp-design-reading-root > hr,
.elp-design-reading-root > .wp-block-separator{
  margin:1.8em 0;border-color:var(--eld-stroke);
}
.elp-design-reading-root > figure:not(.wp-block-table):not(.elg-stage),
.elp-design-reading-root > .wp-block-image{
  max-width:100%;
  margin-block:1.5em;
}
.elp-design-reading-root > figure figcaption{font:.78rem/1.55 var(--eld-sans);color:var(--eld-muted);}
.elp-design-reading-root > :is(p,ul,ol,blockquote) a{
  color:var(--eld-blue);text-underline-offset:3px;text-decoration-thickness:1px;
}

/* The two audio controls form a single tight block after each list's longest label.
   The LI itself stays display:list-item, so bullets and numbering are untouched. */
.elp-design-reading-root .elp-audio-aligned-list > li.elp-audio-row{
  display:list-item!important;
  width:auto!important;max-width:100%!important;
  list-style-position:outside!important;
}
.elp-design-reading-root .elp-audio-aligned-list > li.elp-audio-row > .elp-audio-row-layout{
  display:inline-grid!important;
  grid-template-columns:minmax(0,var(--elp-audio-copy-width,auto)) max-content!important;
  grid-auto-flow:column!important;
  align-items:center!important;
  justify-content:start!important;
  vertical-align:middle!important;
  gap:9px!important;
  width:max-content!important;
  max-width:100%!important;
  margin:0!important;padding:0!important;
  background:transparent!important;border:0!important;
}
.elp-design-reading-root .elp-audio-row-copy{
  display:block!important;
  min-width:0!important;
  margin:0!important;padding:0!important;
  color:inherit!important;
  overflow-wrap:anywhere;
  line-height:1.48;
}
.elp-design-reading-root .elp-audio-row-control{
  display:inline-flex!important;
  align-items:center!important;justify-content:flex-start!important;
  vertical-align:middle!important;
  width:max-content!important;max-width:100%!important;
  margin:0!important;padding:0!important;
  color:inherit!important;
}
.elp-design-reading-root .elp-audio-row-control > .compact_audio_player_wrapper.elp-audio-enhanced,
.elp-design-reading-root .elp-audio-row-control.compact_audio_player_wrapper.elp-audio-enhanced,
.elp-design-reading-root .elp-audio-row-control > .elle-audio-wrap.elp-audio-enhanced{
  margin:0!important;padding:0!important;
}
.elp-design-reading-root .elp-audio-row-control .elp-audio-player.elp-audio-minimal,
.elp-design-reading-root .elp-audio-row-control.elp-audio-player.elp-audio-minimal{
  gap:5px!important;margin:0!important;padding:0!important;
}

/* Standardize traditional HTML tables, WordPress Table blocks and TablePress. */
.elp-design-reading-root :is(.elp-table-frame,.elf-table-scroll,figure.wp-block-table){
  max-width:100%!important;
  margin-block:1.4em 2em;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;
  border-radius:var(--eld-radius);
}
.elp-design-reading-root .elp-table-frame:not(figure){
  box-shadow:0 12px 35px rgba(11,29,63,.055);
}
.elp-design-reading-root table.elp-premium-table,
.elp-design-reading-root table.tablepress,
.elp-design-reading-root table.elf-restored-table{
  width:100%!important;
  min-width:520px;
  border:1px solid var(--eld-stroke)!important;
  border-radius:var(--eld-radius)!important;
  border-spacing:0!important;
  border-collapse:separate!important;
  background:var(--eld-paper)!important;
  box-shadow:none!important;
  font-family:var(--eld-sans)!important;
  font-size:.91rem!important;
  line-height:1.5!important;
  text-align:left;
}
.elp-design-reading-root table.elp-premium-table :is(thead th,thead td),
.elp-design-reading-root table.tablepress :is(thead th,thead td),
.elp-design-reading-root table.elf-restored-table :is(thead th,thead td){
  padding:13px 15px!important;
  border:0!important;
  color:#fff!important;
  background:linear-gradient(130deg,#0b1d3f,#173e75)!important;
  font-family:var(--eld-sans)!important;
  font-weight:800!important;
  line-height:1.45!important;
  vertical-align:middle!important;
  text-align:left!important;
  white-space:normal!important;
}
.elp-design-reading-root table.elp-premium-table :is(tbody td,tbody th),
.elp-design-reading-root table.tablepress :is(tbody td,tbody th),
.elp-design-reading-root table.elf-restored-table :is(tbody td,tbody th){
  padding:12px 15px!important;
  border:0!important;
  border-bottom:1px solid var(--eld-stroke)!important;
  color:var(--eld-ink)!important;
  background:var(--eld-paper)!important;
  font-family:var(--eld-sans)!important;
  vertical-align:top!important;
  text-align:left;
  width:auto;
}
.elp-design-reading-root table.elp-premium-table tbody tr:nth-child(even) > *,
.elp-design-reading-root table.tablepress tbody tr:nth-child(even) > *,
.elp-design-reading-root table.elf-restored-table tbody tr:nth-child(even) > *{
  background:var(--eld-stripe)!important;
}
.elp-design-reading-root table.elp-premium-table tbody tr:last-child > *,
.elp-design-reading-root table.tablepress tbody tr:last-child > *,
.elp-design-reading-root table.elf-restored-table tbody tr:last-child > *{
  border-bottom:0!important;
}
.elp-design-reading-root table.elp-premium-table :is(td,th) p{
  margin:0!important;line-height:1.45!important;
}
.elp-design-reading-root table.elp-premium-table tbody tr:hover > *{
  background:#edf5ff!important;
}
.elp-design-reading-root table.elp-premium-table caption{
  padding:8px 3px!important;color:var(--eld-muted)!important;text-align:left!important;
}

/* Dark mode adopts exactly the same layout and contrast hierarchy. */
body.el-dark .elp-design-reading-root{
  --eld-ink:#dfebf9;
  --eld-muted:#9eb1ca;
  --eld-navy:#f2f8ff;
  --eld-stroke:rgba(210,232,255,.13);
  --eld-paper:#101f35;
  --eld-stripe:#142844;
  color:var(--eld-ink);
}
body.el-dark .elp-design-reading-root > :is(h2,h3,h4,h5,h6),
body.el-dark .elp-design-reading-root :is(.wp-block-group,.wp-block-column) > :is(h2,h3,h4){
  color:#f2f8ff!important;
}
body.el-dark .elp-design-reading-root > blockquote{background:#142844;color:var(--eld-ink);}
body.el-dark .elp-design-reading-root table.elp-premium-table :is(tbody td,tbody th),
body.el-dark .elp-design-reading-root table.tablepress :is(tbody td,tbody th){
  color:var(--eld-ink)!important;
}
body.el-dark .elp-design-reading-root table.elp-premium-table tbody tr:hover > *{
  background:#1b3655!important;
}
@media(max-width:600px){
  .elp-design-reading-root{font-size:1rem;line-height:1.72;}
  .elp-design-reading-root > :is(ul,ol){padding-inline-start:1.25em;}
  .elp-design-reading-root .elp-audio-aligned-list > li.elp-audio-row > .elp-audio-row-layout{gap:7px!important;}
  .elp-design-reading-root :is(.elp-table-frame,.elf-table-scroll,figure.wp-block-table){margin-block:1.25em 1.6em;}
  .elp-design-reading-root table.elp-premium-table :is(thead th,thead td,tbody td,tbody th){
    padding:10px 12px!important;
  }
}

/* Audio text and controls stay a single compact two-column row even
   when older WordPress content was wrapped inside paragraph/spans. */
.elp-design-reading-root .elp-audio-row-layout .elp-audio-row-copy > p{
  display:inline!important;
  margin:0!important;padding:0!important;
  line-height:inherit!important;
}
.elp-design-reading-root .elp-audio-row-layout .elp-audio-row-control,
.elp-design-reading-root .elp-audio-row-layout .compact_audio_player_wrapper.elp-audio-enhanced{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:max-content!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;padding:0!important;
  background:transparent!important;
  border:0!important;border-radius:0!important;
  box-shadow:none!important;
}
.elp-design-reading-root .elp-audio-row-layout .elp-audio-player.elp-audio-minimal{
  display:inline-flex!important;
  align-items:center!important;
  flex-flow:row nowrap!important;
  width:max-content!important;
  gap:5px!important;
  margin:0!important;padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.elp-design-reading-root .elp-audio-row-layout .elp-audio-player.elp-audio-minimal > .elp-audio-speed{
  display:inline-flex!important;
  margin:0!important;
}

/* === EnglishLamp unified premium tables v2 (Forms of Verbs reference) ===
   The article card uses overflow:hidden; earlier 1100px table widths escaped
   its inner 760px reading column. Center the SCROLL VIEWPORT inside the
   article's actual padded width and let the table scroll *inside* it. */
.entry-content .elp-auto-table-frame,
.elle-authored-content .elp-auto-table-frame {
  box-sizing:border-box!important;
  position:relative!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  display:block!important;
  width:min(1060px,calc(100vw - 100px))!important;
  max-width:min(1060px,calc(100vw - 100px))!important;
  min-width:0!important;
  margin:24px 0 32px!important;
  padding:0!important;
  background:var(--eld-paper)!important;
  border:1px solid var(--eld-stroke)!important;
  border-radius:20px!important;
  box-shadow:0 14px 34px rgba(7,20,46,.07)!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-inline:contain!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-color:#829cbd #edf2fa;
  scrollbar-width:thin;
}
.entry-content .elp-auto-table-frame::-webkit-scrollbar{height:9px}
.entry-content .elp-auto-table-frame::-webkit-scrollbar-track{background:#edf2fa;border-radius:9px}
.entry-content .elp-auto-table-frame::-webkit-scrollbar-thumb{background:#829cbd;border-radius:9px;border:2px solid #edf2fa}
.entry-content .elp-auto-table-frame > table.elp-standard-table,
.entry-content .elp-auto-table-frame > table.elp-premium-table,
.entry-content .elp-auto-table-frame > table.tablepress,
.entry-content .elp-auto-table-frame > table.elf-restored-table,
.entry-content figure.elp-auto-table-frame > table{
  display:table!important;
  table-layout:auto!important;
  box-sizing:border-box!important;
  position:static!important;
  left:auto!important;
  transform:none!important;
  float:none!important;
  width:100%!important;
  max-width:none!important;
  min-width:max(560px,100%)!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
  border-spacing:0!important;
  border-collapse:separate!important;
  background:var(--eld-paper)!important;
  color:var(--eld-ink)!important;
  font-family:var(--eld-sans)!important;
  font-size:.92rem!important;
  line-height:1.52!important;
}
.entry-content .elp-auto-table-frame > table.elp-standard-table:has(thead tr > :nth-child(5)){
  min-width:max(1040px,100%)!important;
}
.entry-content .elp-auto-table-frame > table.elp-standard-table :is(thead th,thead td){
  padding:17px 18px!important;
  background:#142d57!important;
  background-image:linear-gradient(110deg,#10254b,#17396d)!important;
  border:0!important;
  border-inline-end:1px solid rgba(255,255,255,.06)!important;
  border-bottom:0!important;
  color:#fff!important;
  font:800 .88rem/1.5 var(--eld-sans)!important;
  letter-spacing:0!important;
  text-align:left!important;
  white-space:normal!important;
  vertical-align:middle!important;
}
.entry-content .elp-auto-table-frame > table.elp-standard-table :is(tbody td,tbody th){
  padding:13px 18px!important;
  border:0!important;
  border-bottom:1px solid rgba(11,29,63,.085)!important;
  border-inline-end:1px solid rgba(11,29,63,.045)!important;
  background:#fff!important;
  color:#1d3458!important;
  font:500 .94rem/1.65 var(--eld-sans)!important;
  vertical-align:middle!important;
  text-align:left!important;
  white-space:normal!important;
  width:auto!important;
  max-width:none!important;
}
.entry-content .elp-auto-table-frame > table.elp-standard-table tbody tr:nth-child(even)>*{
  background:#f4f7fc!important;
}
.entry-content .elp-auto-table-frame > table.elp-standard-table tbody tr:last-child>*{
  border-bottom:0!important;
}
.entry-content .elp-auto-table-frame > table.elp-standard-table tbody tr:hover>*{
  background:#eaf2fc!important;
}
.entry-content .elp-auto-table-frame > table.elp-standard-table :is(tbody td,tbody th)[rowspan]{
  vertical-align:middle!important;
  border-bottom:1px solid rgba(11,29,63,.085)!important;
}
.entry-content .elp-auto-table-frame > table.elp-standard-table :is(td,th) > p{
  margin:0!important;max-width:none!important;
  line-height:inherit!important;
}
.entry-content .elp-auto-table-frame > table.elp-standard-table .compact_audio_player_wrapper.elp-audio-enhanced{
  display:inline-flex!important;
  vertical-align:middle!important;
  width:max-content!important;
  max-width:none!important;
  margin:0 0 0 6px!important;
  padding:0!important;
  white-space:nowrap!important;
}
.entry-content .elp-auto-table-frame > table.elp-standard-table .elp-audio-player.elp-audio-minimal{
  display:inline-flex!important;
  gap:5px!important;
  margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  vertical-align:middle!important;
}
.entry-content .elp-auto-table-frame > table.elp-standard-table :is(th,td)[width]{
  width:auto!important;
}
/* Clear discoverability of horizontal overflow, including on desktops with
   hidden native scrollbars. A visible hint is inserted only if clipped. */
.entry-content .elp-table-overflow-hint,
.elle-authored-content .elp-table-overflow-hint{
  display:block;
  position:relative;
  left:50%;
  transform:translateX(-50%);
  width:min(1060px,calc(100vw - 100px));
  max-width:none!important;
  padding:0 6px;
  margin:10px 0 7px;
  text-align:right;
  color:var(--eld-muted);
  font:600 .7rem/1.4 var(--eld-sans);
}
.entry-content .elp-table-overflow-hint[hidden]{display:none!important}

/* Failsafe before JS: raw legacy tables must not get clipped by the old
   wide-content transform when the audio/table script is delayed. */
.entry-content .elle-authored-content > table:not(.elp-premium-table),
.entry-content > table:not(.elp-premium-table){
  display:block!important;
  box-sizing:border-box!important;
  overflow-x:auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  left:auto!important;
  transform:none!important;
  margin:1.3em 0!important;
  -webkit-overflow-scrolling:touch!important;
}
/* Content-only tables should still have room to breathe within panels. */
body.el-dark .entry-content .elp-auto-table-frame{
  background:#101f35!important;
  border-color:rgba(210,232,255,.15)!important;
  box-shadow:0 16px 35px rgba(0,0,0,.2)!important;
  scrollbar-color:#638db7 #132844;
}
body.el-dark .entry-content .elp-auto-table-frame > table.elp-standard-table{
  background:#101f35!important;
}
body.el-dark .entry-content .elp-auto-table-frame > table.elp-standard-table :is(tbody td,tbody th){
  color:#e2eefb!important;
  background:#101f35!important;
  border-color:rgba(221,237,255,.10)!important;
}
body.el-dark .entry-content .elp-auto-table-frame > table.elp-standard-table tbody tr:nth-child(even)>*{
  background:#142844!important;
}
body.el-dark .entry-content .elp-auto-table-frame > table.elp-standard-table tbody tr:hover>*{
  background:#1c3654!important;
}
@media(max-width:680px){
  .entry-content .elp-auto-table-frame,
  .elle-authored-content .elp-auto-table-frame{
    width:calc(100vw - 100px)!important;
    max-width:calc(100vw - 100px)!important;
    margin:18px 0 26px!important;
    border-radius:14px!important;
  }
  .entry-content .elp-auto-table-frame > table.elp-standard-table :is(thead th,thead td){
    padding:12px 13px!important;
    font-size:.8rem!important;
  }
  .entry-content .elp-auto-table-frame > table.elp-standard-table :is(tbody td,tbody th){
    padding:11px 13px!important;
    font-size:.85rem!important;
  }
  .entry-content .elp-table-overflow-hint{margin:7px 0 5px;}
}
