/* Vocabulary Bank - type & layout standard (in use since 2026-11-29).
   Linked AFTER each topic page's own <style>, so these values win.
   Scale: headword 30 / sentence 22 / word-by-word 18 / meaning 16-17 /
   romanisation 14-15 / smallest text 13.  Thai and meanings are weight 400,
   and Chinese text is 400 everywhere on these pages (300 was too thin to read). */
section.wrap{padding-top:clamp(36px,6vw,60px);padding-bottom:clamp(36px,6vw,60px)}
.sec-eyebrow{font-size:12px;letter-spacing:.22em}
.sec-desc{font-size:16px;color:var(--ivory-dim);font-weight:400}

/* "on this page" chips under the page title */
.vb-jump{border-bottom:1px solid var(--gold-line)}
.vb-jump-in{max-width:900px;margin:0 auto;padding:14px clamp(20px,5vw,48px);display:flex;flex-wrap:wrap;gap:8px}
.vb-jump a{font-family:var(--font-en);font-size:13.5px;font-weight:500;color:var(--gold);text-decoration:none;background:var(--bg-card);border:1px solid var(--gold-line);border-radius:100px;padding:7px 14px}
.vb-jump a span[data-lang="cn"]{font-family:var(--font-cn)}
@media(hover:hover){.vb-jump a:hover{border-color:var(--gold)}}

/* all the words at a glance */
.kw-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.kw-cell{padding:14px 16px;background:var(--bg-card)}
.kw-grid{align-items:stretch}
.kw-cell.kw-tall{grid-row:span 2}
.kw-cell .vc-th{font-size:24px;font-weight:400}
.kw-cell .vc-rom{font-size:14px;margin-top:2px}
.kw-cell .kw-mean{font-size:15.5px;font-weight:400;color:var(--ivory);margin-top:2px}

/* word + example card */
.pair-list{gap:20px}
.pair-card{padding:clamp(18px,3vw,26px)}
.pair-fruit-img,.pair-fruit-noimg{width:132px;height:132px}
.vocab-card .vc-word-row,.pair-card .vc-word-row{gap:12px;margin-bottom:6px}
.vocab-card .vc-th,.pair-card .vc-th{font-size:30px;font-weight:400;line-height:1.3}
.vocab-card .vc-rom,.pair-card .vc-rom{font-size:15px}
.vocab-card .vc-meaning,.pair-card .vc-meaning{font-size:17px;font-weight:400;color:var(--ivory);margin-bottom:0}
.pair-divider{margin:20px 0 18px}
.pair-sentence .sc-th{font-size:22px;font-weight:400;line-height:1.5}
.pair-sentence .sc-rom{font-size:14px;margin-bottom:6px}
.pair-sentence .sc-meaning{font-size:16px;font-weight:400;color:var(--ivory);margin-bottom:14px}
.ta-snd svg{width:16px;height:16px}

/* word by word: each word is a tappable tile */
.sc-gloss{gap:8px;border-top:none;padding-top:0;margin:0}
.gloss-word{background:var(--bg-card2);border:1px solid var(--gold-line);border-radius:10px;padding:8px 12px 9px;min-width:60px}
.gloss-word .gw-th{font-size:18px;font-weight:400;display:inline-flex;align-items:center;gap:5px}
.gloss-word .gw-rom{font-size:13px;margin-top:2px}
.gloss-word .gw-def{font-size:13.5px;font-weight:400;color:var(--ivory-dim);margin-top:2px;max-width:170px}
.gloss-word.has-audio .gw-icon{width:13px;height:13px;color:var(--gold)}
@media(hover:hover){.gloss-word.has-audio:hover{border-color:var(--gold)}}

@media(max-width:600px){
  .kw-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .kw-cell{padding:12px 13px}
  .kw-cell .vc-th{font-size:22px}
  .pair-fruit-img,.pair-fruit-noimg{width:96px;height:96px}
  .vocab-card .vc-th,.pair-card .vc-th{font-size:28px}
  .pair-sentence .sc-th{font-size:21px}
}

/* jump targets clear the sticky header */
section.wrap{scroll-margin-top:180px}
@media(max-width:600px){section.wrap{scroll-margin-top:130px}}

/* Chinese: Noto Sans SC Light is too thin on screen */
body.lang-cn{font-weight:400}
body.lang-cn .sec-desc,body.lang-cn .hero-sub{font-weight:400}

/* numbers page cards */
.ncard-th{font-size:24px}
.ncard-rom{font-size:14px}
.ncard-caption{font-size:14px;font-weight:400;color:var(--ivory)}
