/* Study / Vocab screen (new design). Classes are .vc- prefixed;
   shared tokens come from styles.css. The vocabulary type colour
   and the warning pair exist only in the design boards so far —
   they are scoped here until styles.css grows tokens for them. */
.vc-root{
  --vc-vocab:#7a5fa0;
  --vc-vocab-wash:#f1ebfa;
  --vc-warn:#b97e14;
  --vc-warn-wash:#fdf6e0;
  max-width:720px;margin:0 auto;
}

/* session bar */
.vc-session{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px}
.vc-nav-btn{display:grid;place-items:center;width:44px;height:44px;flex:none;text-decoration:none;
  color:var(--muted);font-size:1.125rem;border-radius:50%}
.vc-nav-btn:hover{color:var(--ink)}
.vc-session-title{font-weight:700;font-size:.9375rem}
.vc-track{height:5px;border-radius:999px;background:var(--lav-2);overflow:hidden;margin-bottom:22px}
.vc-track i{display:block;height:100%;background:var(--violet);border-radius:999px}

/* meta row */
.vc-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.vc-chips{display:flex;gap:10px;flex-wrap:wrap}
.vc-chip{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;padding:4px 12px;
  font-size:.75rem;font-weight:800;letter-spacing:.05em}
.vc-chip-level{background:var(--vc-vocab-wash);color:var(--vc-vocab)}
.vc-chip-new{background:var(--lime);color:var(--violet-deep)}
.vc-chip-studied{background:var(--vc-vocab-wash);color:var(--vc-vocab)}
.vc-chapter{color:var(--muted);font-size:.8125rem;font-weight:600}
.vc-stage{color:var(--muted);font-size:.8125rem;margin-left:auto;text-align:right}

/* hero */
.vc-hero{background:var(--white);border:1px solid var(--lav-2);border-radius:var(--r-lg);padding:24px 32px 28px}
.vc-hero-grid{display:grid;gap:28px}
.vc-word,.vc-beats{min-width:0}
.vc-label{color:var(--vc-vocab);font-size:.6875rem;font-weight:800;letter-spacing:.09em;
  text-transform:uppercase;margin:0 0 10px}
.vc-reading{color:var(--violet);font-family:var(--jp);font-size:1rem;font-weight:500;margin:0 0 2px}
.vc-glyph{font-family:var(--jp);font-size:2.75rem;font-weight:700;line-height:1.2;margin:0}
.vc-romaji{color:var(--muted);font-size:.9375rem;margin:8px 0 0}
.vc-say{color:var(--violet-deep);font-size:.875rem;font-weight:800;margin:3px 0 0}
.vc-meaning-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px}
.vc-meaning{font-size:1.625rem;font-weight:800;letter-spacing:-.01em;margin:0}
.vc-listen{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;cursor:pointer;
  font-family:var(--sans);font-weight:700;font-size:.875rem;border-radius:12px;min-height:44px;
  padding:10px 20px;background:var(--violet);color:var(--white);text-decoration:none}
.vc-listen-sm{background:var(--lav-1);color:var(--violet);font-size:.75rem;min-height:44px;padding:8px 12px;flex:none}
.vc-beats .vc-listen{margin-bottom:22px}
.vc-morae{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:10px;max-width:430px}
.vc-mora{background:var(--vc-vocab-wash);border-radius:12px;padding:10px 6px 8px;text-align:center}
.vc-mora-kana{display:block;font-family:var(--jp);font-size:1.375rem;font-weight:700;color:var(--vc-vocab);line-height:1.3}
.vc-mora-romaji{display:block;font-size:.6875rem;font-weight:600;color:var(--muted)}
.vc-mora-combo{background:var(--vc-vocab)}
.vc-mora-combo .vc-mora-kana{color:var(--white)}
.vc-mora-combo .vc-mora-romaji{color:var(--white)}
.vc-mora-note{color:var(--muted);font-size:.8125rem;margin:12px 0 0}

/* cards and columns */
.vc-cols{display:grid;gap:20px;margin-top:20px}
.vc-card{background:var(--white);border:1px solid var(--lav-2);border-radius:20px;padding:20px 24px}
.vc-parts{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:12px}
.vc-part{display:block;-webkit-user-drag:none;background:var(--vc-vocab-wash);border-radius:12px;padding:12px 8px 10px;
  text-align:center;text-decoration:none}
.vc-part-glyph{display:block;font-family:var(--jp);font-size:2rem;font-weight:600;color:var(--vc-vocab);line-height:1.35}
.vc-part-reading{display:block;font-family:var(--jp);font-size:.75rem;font-weight:600;color:var(--ink)}
.vc-part-meaning{display:block;font-size:.6875rem;color:var(--muted)}
.vc-caption{color:var(--muted);font-size:.8125rem;margin:14px 0 0}
.vc-parts-word{margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--lav-2)}
.vc-parts-word .vc-family-glyph{font-size:1.25rem}
.vc-family{display:grid;gap:10px}
.vc-family-row{display:flex;align-items:baseline;gap:12px}
.vc-family-glyph{font-family:var(--jp);font-size:.9375rem;font-weight:700;min-width:84px}
.vc-family-line{color:var(--muted);font-size:.8125rem;font-family:var(--jp)}

/* examples */
.vc-examples{margin-top:26px}
.vc-example{display:flex;gap:16px;align-items:flex-start;background:var(--white);
  border:1px solid var(--lav-2);border-radius:16px;padding:14px 24px;margin-bottom:12px}
.vc-example-body{flex:1;min-width:0}
.vc-example-ja{font-family:var(--jp);font-size:1.0625rem;font-weight:500;margin:0}
.vc-example-kana{font-family:var(--jp);font-size:.75rem;color:var(--muted);margin:4px 0 0}
.vc-example-romaji{font-size:.75rem;color:var(--muted);margin:2px 0 0}
.vc-example-say{font-size:.75rem;color:var(--violet-deep);font-weight:800;margin:2px 0 0}
.vc-example-en{font-size:.8125rem;color:var(--muted);margin:4px 0 0}

/* watch out (the Remember-it box is kanji only since
   2026-12-02, so its word-side styles went with it) */
.vc-box{border-radius:16px;padding:16px 20px}
.vc-box-watch{background:var(--vc-warn-wash)}
.vc-label-watch{color:var(--vc-warn)}
.vc-box-text{font-size:.875rem;line-height:1.55;margin:0}

/* tomorrow + actions */
.vc-tomorrow{background:var(--white);border:1px solid var(--lav-2);border-radius:12px;
  padding:12px 16px;text-align:center;font-size:.875rem;font-weight:600;margin:20px 0 0}
.vc-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:24px}
.vc-prev{display:inline-flex;align-items:center;justify-content:center;background:var(--white);
  border:1px solid var(--lav-2);border-radius:16px;min-height:56px;padding:12px 26px;
  font-weight:700;font-size:.9375rem;color:var(--ink);text-decoration:none}
.vc-dots{color:var(--violet);font-size:.8125rem;letter-spacing:.15em;flex:1;text-align:center;min-width:120px}
.vc-practice{display:inline-flex;align-items:center;justify-content:center;background:var(--violet);
  color:var(--white);border-radius:16px;min-height:56px;padding:12px 26px;font-weight:700;
  font-size:1rem;text-decoration:none;box-shadow:0 4px 0 var(--violet-deep);margin-left:auto}
.vc-practice:active{transform:translateY(2px);box-shadow:0 2px 0 var(--violet-deep)}

@media (min-width:900px){
  .vc-hero-grid{grid-template-columns:1fr 1fr;gap:32px}
  .vc-glyph{font-size:3.5rem}
  .vc-cols{grid-template-columns:1fr 1fr}
  .vc-cols > .vc-card:only-child,.vc-cols > .vc-box:only-child{grid-column:span 2}
  .vc-family{grid-template-columns:1fr 1fr;gap:10px 24px}
}

/* Listen placement, per the boards: web pins it to the hero's
   top-right corner; phones keep it at the meaning row's right
   end. Phones also drop the stage line (chapter goes right),
   make the tomorrow strip plain text and the footer one row. */
.vc-hero{position:relative}
.vc-listen-hero{margin-left:auto}
@media (min-width:900px){
  .vc-listen-hero{position:absolute;top:24px;right:32px;margin:0}
  /* The board floats Listen in the beats column's empty top zone:
     button 164-208, beats label at 240. Live, the beats block starts
     at the hero's top and the pinned button lands on the first tile
     row — push the block down so the label clears the button with
     the board's 32px gap (24 pad + 76 = label at 100 from hero top;
     button bottom is 24 + 44 = 68). */
  .vc-beats{padding-top:76px}
}
@media (max-width:899px){
  .vc-stage{display:none}
  .vc-chapter{margin-left:auto}
  .vc-tomorrow{background:none;border:0;padding:4px 0}
  .vc-actions{flex-wrap:nowrap}
  .vc-dots{display:none}
  .vc-prev{white-space:nowrap;padding:12px 18px}
  .vc-practice{white-space:nowrap;flex:1;padding:12px 10px;font-size:.9375rem}
}

/* ---- the one-card layout (2026-11-18 redesign) ---- */
.vc-one{display:flex;flex-direction:column;gap:14px}
.vc-one .vc-track,.vc-one .vc-meta{margin-bottom:0}
.vc-one .vc-actions{margin-top:0}
.vc-main-card{background:var(--white);border:1px solid var(--lav-2);border-radius:var(--r-lg);
  flex:1;min-height:0;display:flex;flex-direction:column;padding:20px}
.vc-segs{display:flex;gap:2px;border:1px solid var(--lav-2);border-radius:16px;padding:4px;flex:none}
.vc-seg{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;
  background:none;border:0;border-radius:12px;padding:7px 0 6px;cursor:pointer;
  color:var(--muted);font-family:var(--sans);min-height:52px}
.vc-seg-glyph{font-family:var(--jp);font-size:1.25rem;font-weight:700;line-height:1.15}
.vc-seg-label{font-size:.6875rem;font-weight:700;letter-spacing:.03em}
.vc-seg-on{background:var(--lav-1);color:var(--violet)}
.vc-seg-body{flex:1;min-height:0;overflow-y:auto;margin-top:16px;overscroll-behavior:contain;
  -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 16px),transparent);
  mask-image:linear-gradient(to bottom,#000 calc(100% - 16px),transparent)}
.vc-seg-body[hidden]{display:none}
.vc-seg-body > .vc-label:not(:first-child){margin-top:22px}
.vc-main-card .vc-hero{background:none;border:0;border-radius:0;padding:0}
.vc-main-card .vc-example{background:var(--lav-1);border:0}
.vc-boxes{display:grid;gap:12px;margin-top:20px}
@media (min-width:900px){
  .vc-seg-body{min-height:400px}
  /* Desktop one-card bound: see kanji.css — the column is capped
     at the viewport the shell leaves so the segment body scrolls
     inside the card at short landscape heights. */
  .vc-one{max-height:calc(100vh - 104px);max-height:calc(100dvh - 104px)}
}
@media (min-width:900px) and (max-height:900px){
  .vc-seg-body{min-height:0}
}
@media (max-width:899px){
  .vc-one{height:calc(100vh - 130px);height:calc(100dvh - 130px);gap:12px}
  .vc-main-card{padding:16px}
}
