/* =====================================================================
   sentence-table.css — the sentence table design from the owner's mockup (2026-11-28):
   purple header row with icons, each sentence a rounded row with a number badge, a large speaker
   button (added by daily-english.js), a "when to use" icon tile, and the Top 50 chips and progress bar.
   Markup: tools/seo-authoring/sentence_table.py. Works on pillar pages and on card-layout pages,
   so the tokens fall back to the site colours. Prefix: de-
   ===================================================================== */
.de-top50,.de-chips,.de-progress{--st-c:var(--ts-c,#7c3aed);--st-card:var(--card,#fff);--st-line:var(--line,#eae6f5);--st-ink:var(--ink,#1f1b3a);--st-muted:var(--muted,#6b6786)}
.de-top50 + .de-top50,.de-note + .de-top50{margin-top:14px}
.de-top{width:100%;line-height:1.5}
.de-top th{text-align:left}
/* two columns: English and Hindi meaning */
.de-top.de-2col td.de-en{width:52%}
.de-top.de-2col td.de-hi{width:auto}
/* the base speaker button (daily-english.js adds it to the English cell) */
.de-say{display:inline-grid;place-items:center;padding:0;border:0;cursor:pointer}
.de-say svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.de-say:focus-visible{outline:2px solid #7c3aed;outline-offset:2px}
/* card-layout pages: the old table wrapper and cell rules must not apply */
.t-scroll .de-top50{margin:0}
.de-top td,.de-top th{font-family:inherit}

/* ---------- the table ----------
   a gradient header row, each sentence as a rounded row, a large speaker button,
   an icon tile for "when to use", and a listened-progress bar under the table */
.de-ico{display:inline-block;width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.de-chips{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}
.de-chips span{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 16px;border:1px solid var(--st-line);border-radius:999px;background:var(--st-card);
  font-size:.9375rem;color:var(--st-ink);box-shadow:0 4px 14px rgba(91,33,182,.06)}
.de-chips .de-ico{color:var(--st-c)}
.de-top50{border:1px solid var(--st-line);border-radius:22px;background:color-mix(in srgb,var(--st-card) 80%,transparent);padding:12px;box-shadow:0 12px 34px -18px rgba(91,33,182,.35)}
.de-top{border-collapse:separate;border-spacing:0 10px;margin-top:-10px;font-size:1.0625rem}
.de-top thead th{padding:16px 18px;background:linear-gradient(135deg,#7c3aed,#8b5cf6);color:#fff;font-size:1.0625rem;font-weight:700;letter-spacing:0;text-transform:none;
  border:0;white-space:nowrap;box-shadow:inset -1px 0 0 rgba(255,255,255,.22)}
.de-top thead th:first-child{border-radius:14px 0 0 14px;text-align:center}
.de-top thead th:last-child{border-radius:0 14px 14px 0;box-shadow:none}
.de-top thead th .de-ico{width:22px;height:22px;margin-right:10px;vertical-align:-5px}
.de-top tbody td{padding:16px 18px;border:0;background:color-mix(in srgb,var(--st-c) 5%,var(--st-card));vertical-align:middle;box-shadow:inset -1px 0 0 var(--st-line)}
.de-top tbody td:first-child{border-radius:14px 0 0 14px}
.de-top tbody td:last-child{border-radius:0 14px 14px 0;box-shadow:none}
.de-top tbody tr:hover td{background:color-mix(in srgb,var(--st-c) 9%,var(--st-card))}
.de-top td.de-num{width:64px;text-align:center}
.de-top td.de-num span{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:10px;background:color-mix(in srgb,var(--st-c) 12%,var(--st-card));
  color:var(--st-ink);font-size:1.0625rem;font-weight:600}
.de-top td.de-en{width:34%;font-weight:700;color:var(--st-ink);white-space:normal}
.de-top td.de-en{position:relative;padding-right:76px}
.de-top td.de-hi{width:28%;color:var(--st-ink)}
.de-top td.de-use{color:var(--st-ink)}
.de-top td.de-use{display:table-cell}
.de-use-ico{display:inline-grid;place-items:center;width:44px;height:44px;margin-right:12px;vertical-align:middle;border-radius:12px;
  background:color-mix(in srgb,var(--st-c) 12%,var(--st-card));color:var(--st-c)}
.de-use-ico + span{display:inline-block;max-width:calc(100% - 60px);vertical-align:middle}
.de-use-ico .de-ico{width:22px;height:22px}
/* the speaker button the script adds to the English cell */
.de-top .de-say{position:absolute;right:16px;top:50%;width:48px;height:48px;margin:-24px 0 0;border-radius:14px;color:#fff;
  background:linear-gradient(135deg,#8b5cf6,#7c3aed);box-shadow:0 6px 16px rgba(124,58,237,.35)}
.de-top .de-say:hover{background:linear-gradient(135deg,#7c3aed,#6d28d9)}
.de-top .de-say svg{width:22px;height:22px}
.de-top tr.is-heard .de-num span{background:var(--st-c);color:#fff}
.de-progress{display:flex;align-items:center;gap:16px;max-width:820px;margin:16px auto 0;padding:12px 22px;border:1px solid var(--st-line);border-radius:999px;background:var(--st-card);
  font-size:.9375rem;color:var(--st-ink)}
.de-progress .de-bar{flex:1;height:12px;border-radius:999px;background:color-mix(in srgb,var(--st-c) 14%,transparent);overflow:hidden}
.de-progress .de-bar i{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#8b5cf6,#7c3aed);transition:width .3s ease}
.de-progress b{padding:4px 14px;border-radius:999px;background:color-mix(in srgb,var(--st-c) 10%,transparent);font-weight:600;white-space:nowrap}
@media (max-width:760px){
  .de-top50{padding:8px;border-radius:18px}
  .de-top,.de-top tbody{display:block;margin:0;border-spacing:0}
  .de-top thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .de-top tbody tr{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:10px;row-gap:4px;margin:0 0 10px;padding:14px;border-radius:14px;
    background:color-mix(in srgb,var(--st-c) 5%,var(--st-card));border:1px solid var(--st-line)}
  .de-top tbody td{display:block;padding:0;background:none !important;box-shadow:none;border-radius:0 !important;width:auto !important}
  .de-top tbody td::before{display:none}
  .de-top td.de-num{grid-row:1 / span 3;text-align:left}
  .de-top td.de-en{padding-right:60px;min-height:48px}
  .de-top .de-say{right:0;width:44px;height:44px;margin-top:-22px}
  .de-top td.de-hi{color:var(--st-muted)}
  .de-top td.de-use{display:flex;align-items:center;margin-top:6px;font-size:.9375rem}
  .de-use-ico{width:36px;height:36px;margin-right:10px}
  .de-progress{border-radius:16px;padding:10px 14px;gap:10px}
}
@media (prefers-reduced-motion:reduce){.de-progress .de-bar i{transition:none}}
@media print{.de-progress,.de-chips{display:none !important}}
/* card-layout pages set a smaller table text size; keep the site body size here */
.de-top td,.de-top th{font-size:1.0625rem}
@media (max-width:760px){.de-top td.de-use{font-size:.9375rem}}

/* the word list: the pronunciation hint sits under the word; a row hidden by the word search stays hidden */
.de-top tbody tr[hidden]{display:none !important}
.de-top.de-words td.de-en{width:24%}
.de-top.de-words td.de-hi{width:20%}
.de-say-it{display:block;margin-top:2px;font-size:.9375rem;font-weight:400;color:var(--st-muted);letter-spacing:.02em}
