/* Word-list pages (tools/wordlist-authoring/build_word_lists.py): Hindi names and the 10-question quiz.
   Layout, cards and tables come from /assets/course-landing.css like /vegetables-names-in-english.html. */

/* a Hindi name: Devanagari, then its Roman line */
.wl-hi { display: block; font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif; font-size: 1.0625rem; line-height: 1.5; color: #1f1640; }
.wl-rom { display: block; font-size: .9375rem; color: #6b6890; }
.wl-table td:first-child { font-weight: 700; color: #1f1640; }

/* an item picture beside its name (fruits, birds, flowers, animals; cut from the picture sheets by cut_sheets.py) */
.wl-item { display: flex; align-items: center; gap: 12px; }
.wl-pic { flex: none; width: 64px; height: 64px; border-radius: 14px; background: #f4f0fd; box-shadow: inset 0 0 0 1px rgba(124,58,237,.10); }

/* Phones: course-landing.css stacks every row into a card that repeats the column names (about 240px per word).
   Word-list tables instead become one list: the column names once at the top, then one compact row per word:
   line 1 the word in bold and the Hindi (Devanagari + Roman), line 2 the note in smaller muted text. The table
   markup stays for desktop and crawlers. With a picture, the picture sits at the left of the row. */
@media (max-width: 640px) {
  .a-stack.wl-table { display: block; border: 1px solid rgba(124,58,237,.14); border-radius: 14px; background: #fff; overflow: hidden; }
  .a-stack.wl-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block;
    background: #f5f3fc; border-bottom: 1px solid #ece6fa; }
  .a-stack.wl-table thead tr { display: block; padding: 8px 14px; }
  .a-stack.wl-table th { display: inline; padding: 0; border: 0; background: none; font-size: .75rem; font-weight: 600;
    letter-spacing: .02em; text-transform: none; color: #6b6890; }
  .a-stack.wl-table th + th::before { content: " · "; }
  .a-stack.wl-table tbody { display: block; }
  .a-stack.wl-table tr { display: block; position: relative; border: 0; border-radius: 0; border-bottom: 1px solid #f1eff9;
    background: none; padding: 10px 14px; line-height: 1.45; }
  .a-stack.wl-table tbody tr:last-child { border-bottom: 0; }
  .a-stack.wl-table td, .a-stack.wl-table td:first-child { display: inline; width: auto; padding: 0; border: 0; background: none; }
  .a-stack.wl-table td::before { content: none; }
  .a-stack.wl-table td:first-child { font-weight: 700; color: #1f1640; }
  .a-stack.wl-table td:nth-child(2) { margin-left: 8px; }
  .a-stack.wl-table.wl-pair td:nth-child(2)::before { content: "– "; display: inline; margin: 0; font-size: inherit; font-weight: 400; color: #6b6890; }
  .a-stack.wl-table td:nth-child(n+3) { font-size: .875rem; color: #6b6890; }
  .a-stack.wl-table td:nth-child(3)::before { content: "\A"; white-space: pre; display: inline; margin: 0; }
  .a-stack.wl-table td:nth-child(n+4)::before { content: " · "; display: inline; margin: 0; font-size: inherit; font-weight: 400; color: inherit; }
  .wl-table .wl-hi, .wl-table .wl-rom { display: inline; }
  .wl-table .wl-hi { font-size: 1rem; }
  .wl-table .wl-rom { margin-left: 6px; font-size: .875rem; }
  .wl-table td:nth-child(n+3) .wl-hi { font-size: .9375rem; color: #1f1640; }
  .a-stack.wl-table tr:has(.wl-pic) { padding-left: 74px; min-height: 72px; }
  .wl-table .wl-item { display: inline; }
  .wl-table .wl-pic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 10px; }
}

/* quiz: every question is plain HTML (crawlable); word-lists.js checks the answer on tap */
.wl-quiz { list-style: none; counter-reset: wlq; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.wl-q { counter-increment: wlq; padding: 14px 16px; border: 1px solid rgba(124,58,237,.14); border-radius: 14px; background: #fff; }
.wl-qt { margin: 0 0 10px; font-weight: 700; color: #1f1640; }
.wl-qt::before { content: counter(wlq) ". "; color: #7c3aed; }
.wl-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-opt { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid rgba(124,58,237,.3); background: #f7f2fe;
  color: #3b1d8f; font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.wl-opt:hover { background: #efe6fd; }
.wl-opt:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }
.wl-opt.is-right { background: #dcfce7; border-color: #16a34a; color: #14532d; }
.wl-opt.is-wrong { background: #fee2e2; border-color: #dc2626; color: #7f1d1d; }
.wl-q.is-done .wl-opt { cursor: default; }
.wl-why { margin: 10px 0 0; font-size: .9375rem; color: #4b4566; }
.wl-score { margin: 14px 0 0; font-weight: 700; color: #5b21b6; }

/* the picture beside the title is desktop only: phones get a 1-pixel GIF (<picture> in the builder) and no box */
@media (max-width: 640px) { .hero-art.is-scene { display: none; } }

/* SEO wave B (4 Dec 2026): word chips (sight words, rhyming families) and the flash-card deck (word-lists.js) */
.wb-chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wb-chips li { padding: 4px 12px; border-radius: 999px; background: #f7f2fe; border: 1px solid rgba(124,58,237,.18);
  font-size: 1rem; font-weight: 600; color: #3b1d8f; }
.wb-flash { margin-top: 10px; }
.wb-flash-label { margin: 0; font-weight: 700; color: #1f1640; }
.wb-flash-go { margin-top: 12px; }
.wb-flash.is-on > .wb-chips, .wb-flash.is-on > .wb-flash-go { display: none; }
.wb-flash-ui { margin-top: 10px; text-align: center; }
.wb-card { display: grid; place-items: center; min-height: 160px; margin: 0 auto 12px; max-width: 26rem; border-radius: 18px;
  background: linear-gradient(135deg, #f6f1ff, #fdeef7); border: 1px solid rgba(124,58,237,.18);
  font-size: 3rem; font-weight: 700; color: #5b21b6; }
.wb-flash-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wb-count { margin: 8px 0 0; font-size: .875rem; color: #6b6890; }
