/* Single-language focus-study view (/jp/, /cn/) — master-detail. Tier-grouped rail on
   the left, one large language-forward card on the right. Reuses the glyph block
   (.sc-hw / .sc-hero / .sc-gtext) from cards3.css. Desktop-
   first by design: the narrow-screen study surface is the SRS view, not this. */

.fc-layout {
  display: grid; grid-template-columns: 190px 1fr; gap: 1.8rem;
  max-width: 1180px; margin: 0 auto; padding: 0 1.5rem 3.5rem; align-items: start;
}

/* ── Rail ──────────────────────────────────────── */
.fc-rail { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
.fc-rail-group { margin-bottom: 1.3rem; }
.fc-rail-head {
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 0.55rem;
}
.fc-rail-items { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.fc-rail-item {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 9px; background: var(--white);
  cursor: pointer; padding: 0; transition: border-color 0.15s, background 0.15s;
}
.fc-rail-item:hover { border-color: var(--navy2); }
.fc-rail-item.sel { border-color: var(--navy); background: var(--navy); }
.fc-rail-glyph { font-family: var(--kai); font-size: 1.45rem; color: var(--ink); line-height: 1; }
.fc-rail-item.sel .fc-rail-glyph { color: #fff; }

/* ── Focus card ────────────────────────────────── */
.fc-focus { min-width: 0; }
.fc-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 2rem 2.2rem; }
.fc-top { display: grid; grid-template-columns: 240px 1fr; gap: 2.2rem; align-items: start; }

.fc-glyph .sc-hw, .fc-glyph .sc-hero {
  width: 240px; height: 240px; background: var(--cream); border-radius: 16px;
}
.fc-glyph .sc-gtext { font-size: 70px; }  /* viewBox units (0–100): it scales with the box */

.fc-head { min-width: 0; }

/* readings — the JP-forward hero (big) */
.fc-head .fc-readings { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.3rem; }
.fc-head .fc-yomi { font-size: 1.7rem; color: var(--ink); font-weight: 500; }
.fc-head .fc-yomi.fc-yomi-long { font-size: 1.15rem; line-height: 1.6; }
.fc-head .fc-yomi-tag {
  display: inline-block; min-width: 1.5em; margin-right: 0.6rem;
  font-size: 0.85rem; font-weight: 700; text-align: center; vertical-align: 0.18em;
  border-radius: 5px; padding: 0.12rem 0.4rem; background: var(--cream); color: var(--muted);
}
.fc-head .fc-yomi.on  .fc-yomi-tag { background: rgba(30, 42, 74, 0.12); color: var(--navy); }
.fc-head .fc-yomi.kun .fc-yomi-tag { background: rgba(196, 30, 58, 0.10); color: var(--red); }
.fc-head .fc-yomi.pin .fc-yomi-tag { background: rgba(30, 42, 74, 0.12); color: var(--navy); }
.fc-head .fc-yomi.trad { font-family: var(--kai); }
.fc-yomi .sc-play, .fc-word .sc-play { margin-left: 0.4rem; vertical-align: 0.3em; }

/* referent — the meaning, illustrated (dot-pile for numbers) */
.fc-referent { padding: 1rem 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); margin-bottom: 1.2rem; }
.fc-ref-label { font-size: 0.92rem; letter-spacing: 0.06em; color: var(--navy); font-weight: 700; margin-bottom: 0.7rem; }
.fc-dots { display: grid; grid-template-columns: repeat(5, 24px); gap: 0.5rem; width: max-content; margin-bottom: 0.7rem; }
.fc-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); border: 1.5px solid var(--navy); box-sizing: border-box; }
.fc-dot.empty { background: transparent; border-color: var(--border); }  /* unfilled ten-frame slot */
.fc-illus-todo { height: 0; }            /* reserved slot: per-referent icon later */
.fc-ref-gloss { font-size: 1.05rem; color: var(--muted); font-style: italic; }

/* vocabulary — the word tier, roomy */
.fc-card .fc-vocab { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.fc-vocab-tag { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 0.7rem; }
.fc-card .fc-vocab-tag { font-size: 0.92rem; letter-spacing: 0.06em; text-transform: none; color: var(--navy); }
.fc-word { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; padding: 0.45rem 0; }
.fc-word + .fc-word { border-top: 1px solid var(--cream); }
.fc-word-surface { font-family: var(--kai); font-size: 1.7rem; color: var(--navy); }
.fc-oku { color: var(--red); }
.fc-yomi .fc-oku { color: var(--muted); }  /* KANJIDIC okurigana: the tail, not the reading */
.fc-word-reading { color: var(--navy2); font-size: 1.05rem; font-weight: 500; }
.fc-word-gloss { color: var(--muted); font-size: 0.9rem; }
