/* Confusable panel — authored `confusable` clusters. Members side by side and LARGE,
   because for a visual cluster the difference IS the shape. Prose note demoted below. */

.cf-panel {
  border: 1px solid var(--rule, #D8D2C4);
  border-left: 3px solid var(--gold, #B08D57);
  background: #FFFDF8;
  border-radius: 3px;
  padding: 1.1rem 1.2rem 1rem;
  margin: 1.4rem 0;
}

/* ── head ── */
.cf-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.cf-mark {
  font-family: var(--zh, 'LXGW WenKai', serif);
  font-size: 1.05rem; color: var(--gold, #B08D57); letter-spacing: .06em;
}
.cf-basis {
  font-size: .74rem; letter-spacing: .04em;
  padding: .16rem .5rem; border-radius: 2px;
  background: #F1EADC; color: #6B5B3E; border: 1px solid #E2D8C2;
}
.cf-basis.cf-visual   { background: #EAF0F6; color: #33506F; border-color: #D3E0EC; }
.cf-basis.cf-phonetic { background: #F3EAF2; color: #6B3C63; border-color: #E6D3E3; }
.cf-basis.cf-semantic { background: #EAF3EC; color: #35603F; border-color: #D3E7D8; }
.cf-count { margin-left: auto; font-size: .72rem; color: #9A9284; }

/* ── members: the comparison row (the point of the panel) ── */
.cf-members {
  display: flex; flex-wrap: wrap; gap: .7rem;
}
.cf-member {
  flex: 1 1 8.5rem; min-width: 8.5rem;
  display: flex; flex-direction: column; align-items: center;
  gap: .18rem; padding: .7rem .5rem .8rem;
  background: #fff; border: 1px solid var(--rule, #D8D2C4); border-radius: 3px;
  cursor: pointer; font: inherit; text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cf-member:hover { border-color: var(--gold, #B08D57); transform: translateY(-1px); }
/* the one you're looking at — anchored, not just highlighted */
.cf-member.me {
  border-color: var(--gold, #B08D57);
  box-shadow: inset 0 0 0 1px var(--gold, #B08D57);
  background: #FFFBF2;
  cursor: default;
}
.cf-member.me:hover { transform: none; }

.cf-art { height: 132px; display: flex; align-items: center; justify-content: center; }
.cf-hw  { width: 132px; height: 132px; }
.cf-plain {
  font-family: var(--zh, 'LXGW WenKai', serif);
  font-size: 3.1rem; color: var(--navy, #1E2A4A); line-height: 1;
  letter-spacing: .02em;
}
.cf-surface {
  font-family: var(--zh, 'LXGW WenKai', serif);
  font-size: 1.15rem; color: var(--navy, #1E2A4A); margin-top: .25rem;
}
.cf-reading { font-size: .82rem; color: #6E6656; }
.cf-gloss   { font-size: .74rem; color: #9A9284; line-height: 1.3; }

/* ── grounding examples: distinct context per member ── */
.cf-examples {
  margin-top: 1rem; padding-top: .85rem;
  border-top: 1px dashed var(--rule, #D8D2C4);
  display: flex; flex-direction: column; gap: .55rem;
}
.cf-ex { display: flex; align-items: baseline; gap: .6rem; }
.cf-ex-for {
  flex: 0 0 auto; min-width: 2.4rem;
  font-family: var(--zh, 'LXGW WenKai', serif);
  font-size: 1rem; color: var(--gold, #B08D57);
}
.cf-ex-body { flex: 1 1 auto; }
.cf-ex-text {
  font-family: var(--zh, 'LXGW WenKai', serif);
  font-size: 1.02rem; color: var(--navy, #1E2A4A);
  display: flex; align-items: center; gap: .4rem;
}
.cf-ex-gloss { font-size: .76rem; color: #8A8274; line-height: 1.35; }

/* prose last — it explains the contrast the tiles already show */
.cf-note {
  margin-top: .85rem; padding-top: .7rem;
  border-top: 1px dashed var(--rule, #D8D2C4);
  font-size: .78rem; line-height: 1.5; color: #6E6656;
}

@media (max-width: 560px) {
  .cf-member { flex-basis: 6.5rem; min-width: 6.5rem; }
  .cf-art { height: 96px; }
  .cf-hw  { width: 96px; height: 96px; }
}
