/* 18b-vocab-words.css — a deck's whole word list (/vocab/<deck>/words, vocab/words.html).
   Page-scoped (loaded by words.html only). Each list wears its topic colour (--list-rgb);
   the page its subject colour (--accent-rgb). Prose ≥ slate-300 on the dark page. */
.vw { max-width: 76rem; margin: 0 auto; padding: 0 0 4rem; }
.vw-sprite { position: absolute; }
.vw-crumbs { display: flex; gap: .4rem; font-size: .85rem; color: #cbd5e1; margin-bottom: .5rem; }
.vw-crumbs a { color: #e2e8f0; font-weight: 600; text-decoration: none; }
.vw-crumbs a:hover { color: #fff; }
.vw-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 1.5rem; }
.vw-head h1 { font-family: var(--font-display, inherit); font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; color: #f8fafc; line-height: 1.15; margin: 0; }
.vw-lead { margin: .35rem 0 0; color: #cbd5e1; font-size: .95rem; }
.vw-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: .7rem; font-size: .85rem; font-weight: 600;
  color: rgb(var(--list-rgb, var(--accent-rgb))); background: rgba(var(--list-rgb, var(--accent-rgb)), .12); border: 1px solid rgba(var(--list-rgb, var(--accent-rgb)), .4); text-decoration: none; white-space: nowrap; }
.vw-btn:hover { background: rgba(var(--list-rgb, var(--accent-rgb)), .22); }
.vw-btn svg { width: 1.05rem; height: 1.05rem; }
.vw-btn--solid { color: #0b1220; background: rgb(var(--accent-rgb)); border-color: transparent; padding: .6rem 1.1rem; font-size: .95rem; }
.vw-btn--solid:hover { background: rgb(var(--accent-rgb)); filter: brightness(1.1); }
.vw-btn--ghost { background: transparent; }

.vw-tools { position: sticky; top: .5rem; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  margin: 1.2rem 0 .8rem; padding: .6rem; border-radius: .9rem; background: rgba(8, 15, 30, .97); backdrop-filter: blur(8px); border: 1px solid rgba(148, 163, 184, .18); }
.vw-search { flex: 1 1 16rem; display: flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border-radius: .65rem; background: rgba(15, 23, 42, .9); border: 1px solid rgba(148, 163, 184, .28); color: #cbd5e1; }
.vw-search:focus-within { border-color: rgb(var(--accent-rgb)); }
.vw-search svg { width: 1.1rem; height: 1.1rem; flex: none; }
.vw-search input { all: unset; flex: 1; min-width: 0; color: #f8fafc; font-size: .95rem; }
.vw-search input::placeholder { color: #94a3b8; }
.vw-toggle { display: inline-flex; align-items: center; gap: .45rem; color: #e2e8f0; font-size: .88rem; cursor: pointer; }
.vw-toggle input { width: 1.05rem; height: 1.05rem; accent-color: rgb(var(--accent-rgb)); }
.vw-found { margin: 0; color: #cbd5e1; font-size: .85rem; }

.vw-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.vw-chip { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; padding: .3rem .65rem; border-radius: 99px; font-size: .82rem; text-decoration: none;
  color: #e2e8f0; background: rgba(var(--chip-rgb), .12); border: 1px solid rgba(var(--chip-rgb), .4); }
.vw-chip:hover { background: rgba(var(--chip-rgb), .24); }
.vw-chip b { color: rgb(var(--chip-rgb)); }
.vw-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16rem; }
.vw-chip small { color: #cbd5e1; font-size: .75rem; }

.vw-list { margin-bottom: 1.1rem; padding: 1rem; border-radius: 1.1rem; scroll-margin-top: 9rem;
  background: linear-gradient(180deg, rgba(var(--list-rgb), .08), rgba(15, 23, 42, .65) 9rem); border: 1px solid rgba(var(--list-rgb), .32);
  content-visibility: auto; contain-intrinsic-size: auto 900px; }
.vw-list[hidden] { display: none; }
.vw-list-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .7rem; }
.vw-list-ico { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .75rem; flex: none;
  color: rgb(var(--list-rgb)); background: rgba(var(--list-rgb), .16); border: 1px solid rgba(var(--list-rgb), .4); }
.vw-list-ico svg { width: 1.35rem; height: 1.35rem; }
.vw-list-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; color: #f8fafc; flex: 1 1 12rem; }
.vw-list-n { color: rgb(var(--list-rgb)); margin-inline-end: .2rem; }
.vw-list-count { color: #cbd5e1; font-size: .82rem; }
.vw-list-actions { display: flex; gap: .4rem; }

.vw-words { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.vw-word { display: grid; grid-template-columns: 2.6rem minmax(11rem, 15rem) minmax(9rem, 1fr) minmax(12rem, 1.5fr); align-items: start; gap: .3rem .9rem;
  padding: .55rem .65rem; border-radius: .75rem; background: rgba(15, 23, 42, .55); border: 1px solid rgba(148, 163, 184, .12); }
.vw-word[hidden] { display: none; }
.vw-word:hover { border-color: rgba(var(--list-rgb), .45); }
.vw-pic { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .65rem; color: rgb(var(--list-rgb)); background: rgba(var(--list-rgb), .12); }
.vw-pic:empty { background: transparent; }
.vw-pic svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vw-pic img { width: 100%; height: 100%; object-fit: contain; border-radius: .5rem; background: #fff; }
.vw-term { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .45rem; min-width: 0; }
.vw-term b { font-size: 1.08rem; color: #f8fafc; overflow-wrap: anywhere; }
.vw-term b[lang="zh"] { font-size: 1.35rem; font-weight: 500; }
.vw-ipa { color: #cbd5e1; font-size: .82rem; font-family: "Gentium Plus", "Charis SIL", "Noto Serif", serif; text-indent: 0; }
.vw-pos { font-size: .72rem; font-style: italic; color: rgb(var(--list-rgb)); }
.vw-reading { display: block; color: #cbd5e1; font-size: .85rem; }
.vw-say { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; align-self: center;
  color: rgb(var(--list-rgb)); background: rgba(var(--list-rgb), .12); border: 1px solid rgba(var(--list-rgb), .35); }
.vw-say:hover, .vw-say.is-playing { background: rgba(var(--list-rgb), .28); }
.vw-say:focus-visible { outline: 2px solid rgb(var(--list-rgb)); outline-offset: 2px; }
.vw-say svg { width: .95rem; height: .95rem; }
.vw-meaning { color: #e2e8f0; font-size: .95rem; line-height: 1.4; }
.vw-ex { color: #cbd5e1; font-size: .88rem; line-height: 1.45; }
.vw-ex mark { background: none; color: rgb(var(--list-rgb)); font-weight: 600; }
.vw-ex-zh { display: block; margin-top: .15rem; }

/* "Hide meanings": meanings and examples blurred until the word is tapped. */
.vw.is-hiding .vw-word:not(.is-shown) [data-vw-meaning] { filter: blur(7px); user-select: none; }
.vw.is-hiding .vw-word { cursor: pointer; }

@media (max-width: 760px) {
  .vw-word { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .vw-pic { width: 2.4rem; height: 2.4rem; grid-row: span 2; }
  .vw-meaning, .vw-ex { grid-column: 2; }
  .vw-list { padding: .75rem .6rem; }
  .vw-tools { top: .25rem; }
  .vw-search { padding: .35rem .6rem; }
  .vw-chip span { max-width: 9rem; }
}

html[data-theme="light"] .vw-crumbs, html[data-theme="light"] .vw-lead, html[data-theme="light"] .vw-list-count,
html[data-theme="light"] .vw-found, html[data-theme="light"] .vw-chip small, html[data-theme="light"] .vw-ipa,
html[data-theme="light"] .vw-reading, html[data-theme="light"] .vw-ex { color: #475569; }
html[data-theme="light"] .vw-crumbs a, html[data-theme="light"] .vw-toggle, html[data-theme="light"] .vw-chip, html[data-theme="light"] .vw-meaning { color: #1e293b; }
html[data-theme="light"] .vw-head h1, html[data-theme="light"] .vw-list-head h2, html[data-theme="light"] .vw-term b { color: #0f172a; }
html[data-theme="light"] .vw-tools { background: rgba(248, 250, 252, .92); border-color: rgba(15, 23, 42, .1); }
html[data-theme="light"] .vw-search { background: #fff; border-color: rgba(15, 23, 42, .18); color: #475569; }
html[data-theme="light"] .vw-search input { color: #0f172a; }
html[data-theme="light"] .vw-search input::placeholder { color: #64748b; }
html[data-theme="light"] .vw-list { background: linear-gradient(180deg, rgba(var(--list-rgb), .1), #fff 9rem); }
html[data-theme="light"] .vw-word { background: #f8fafc; border-color: rgba(15, 23, 42, .08); }
html[data-theme="light"] .vw-list-n, html[data-theme="light"] .vw-pos, html[data-theme="light"] .vw-chip b,
html[data-theme="light"] .vw-ex mark, html[data-theme="light"] .vw-btn:not(.vw-btn--solid),
html[data-theme="light"] .vw-say, html[data-theme="light"] .vw-pic, html[data-theme="light"] .vw-list-ico { color: color-mix(in srgb, rgb(var(--list-rgb, var(--accent-rgb))) 60%, #0f172a); }

/* Decks with no pictures (BEC, IELTS): no empty picture column. */
.vw--nopic .vw-word { grid-template-columns: minmax(12rem, 17rem) minmax(9rem, 1fr) minmax(12rem, 1.5fr); }
/* The site's input skin (dark box) must not show inside the search pill. */
.vw .vw-search input[type="search"] { background: transparent; border: 0; box-shadow: none; padding: 0; height: auto; outline: none; }
.vw .vw-search input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
@media (max-width: 760px) {
  .vw--nopic .vw-word { grid-template-columns: minmax(0, 1fr); }
  .vw--nopic .vw-meaning, .vw--nopic .vw-ex { grid-column: 1; }
  /* One swipeable row of list chips instead of a screenful. */
  .vw-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; scroll-snap-type: x proximity; }
  .vw-chips::-webkit-scrollbar { display: none; }
  .vw-chip { flex: none; scroll-snap-align: start; }
  .vw-head .vw-btn--solid { padding: .5rem .9rem; font-size: .9rem; }
  .vw-tools { gap: .45rem; padding: .5rem; margin: .9rem 0 .7rem; }
  .vw-toggle { font-size: .82rem; }
  .vw-list-head h2 { flex-basis: calc(100% - 3.2rem); font-size: 1.05rem; }
  .vw-list-head .vw-list-count { margin-inline-start: 3.15rem; }
  .vw-list-actions { margin-inline-start: auto; }
}

/* ▼▼ LIGHT THEME — GENERATED by scripts/build_light_theme.py from the rules above. Do not edit by hand: run the builder. Hand tuning goes in 36-theme-light.css. ▼▼ */
html[data-theme="light"] .vw-crumbs{color:rgb(48 65 85)}
html[data-theme="light"] .vw-crumbs a{color:rgb(44 63 88)}
html[data-theme="light"] .vw-crumbs a:hover{color:rgb(51 63 82)}
html[data-theme="light"] .vw-head h1{color:rgb(38 66 94)}
html[data-theme="light"] .vw-lead{color:rgb(48 65 85)}
html[data-theme="light"] .vw-tools{background-color:rgb(248 249 251/0.97)}
html[data-theme="light"] .vw-search{background-color:rgb(244 245 249/0.9);color:rgb(48 65 85)}
html[data-theme="light"] .vw-search input{color:rgb(38 66 94)}
html[data-theme="light"] .vw-search input::placeholder{color:rgb(61 75 94)}
html[data-theme="light"] .vw-toggle{color:rgb(44 63 88)}
html[data-theme="light"] .vw-found{color:rgb(48 65 85)}
html[data-theme="light"] .vw-chip{color:rgb(44 63 88)}
html[data-theme="light"] .vw-chip b{color:color-mix(in srgb,rgb(var(--chip-rgb)) 44%,#0f172a)}
html[data-theme="light"] .vw-chip small{color:rgb(48 65 85)}
html[data-theme="light"] .vw-list{background-image:linear-gradient(180deg, rgba(var(--list-rgb), .08), rgb(244 245 249/0.65) 9rem)}
html[data-theme="light"] .vw-list-ico{color:color-mix(in srgb,rgb(var(--list-rgb)) 44%,#0f172a)}
html[data-theme="light"] .vw-list-head h2{color:rgb(38 66 94)}
html[data-theme="light"] .vw-list-n{color:color-mix(in srgb,rgb(var(--list-rgb)) 44%,#0f172a)}
html[data-theme="light"] .vw-list-count{color:rgb(48 65 85)}
html[data-theme="light"] .vw-word{background-color:rgb(244 245 249/0.55)}
html[data-theme="light"] .vw-pic{color:color-mix(in srgb,rgb(var(--list-rgb)) 44%,#0f172a)}
html[data-theme="light"] .vw-term b{color:rgb(38 66 94)}
html[data-theme="light"] .vw-ipa{color:rgb(48 65 85)}
html[data-theme="light"] .vw-pos{color:color-mix(in srgb,rgb(var(--list-rgb)) 44%,#0f172a)}
html[data-theme="light"] .vw-reading{color:rgb(48 65 85)}
html[data-theme="light"] .vw-say{color:color-mix(in srgb,rgb(var(--list-rgb)) 44%,#0f172a)}
html[data-theme="light"] .vw-meaning{color:rgb(44 63 88)}
html[data-theme="light"] .vw-ex{color:rgb(48 65 85)}
html[data-theme="light"] .vw-ex mark{color:color-mix(in srgb,rgb(var(--list-rgb)) 44%,#0f172a)}
/* ▲▲ LIGHT THEME END ▲▲ */
