/* /graph/sentences/ — 句图: sentences → words → characters, wired */
.lens-wrap { max-width: 1240px; }
.cover-meta a { color: inherit; }

.lens-pick { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.lens-set { border: 1px solid var(--border); border-radius: 999px; padding: .35rem .9rem; color: var(--navy);
            text-decoration: none; background: var(--white); font-size: var(--fs-label-zh); }
.lens-set.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.lens-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.lens-count { color: var(--muted); margin: 0; }
.lens-all { border: 1px solid var(--gold); background: var(--white); color: var(--navy); border-radius: 999px;
            padding: .3rem .9rem; cursor: pointer; font-family: inherit; font-size: var(--fs-label-zh); }

.lens-cols { position: relative; display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr) minmax(0, .75fr);
             column-gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.lens-wires { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.lc { display: flex; flex-direction: column; gap: .4rem; position: relative; }
.lc h3 { margin: 0 0 .4rem; font-size: var(--fs-label-zh); color: var(--muted); font-weight: normal; }
.lc-w, .lc-g { align-items: flex-start; }

.ln { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: 8px;
      padding: .35rem .6rem; cursor: pointer; transition: opacity .15s, border-color .15s; }
.ln:hover, .ln:focus-visible { border-color: var(--gold); outline: none; }
.ln-s .ln-t { font-size: 1.15rem; line-height: 1.6; }
.ln-en { font-size: .9rem; color: var(--muted); }
.ln-w, .ln-g { display: inline-flex; align-items: baseline; gap: .4rem; padding-right: 1.6rem; }
.ln-zh { font-size: 1.3rem; }
.ln-g .ln-zh { font-size: 1.5rem; }
.ln-py { font-size: var(--fs-label); color: var(--red); }
.ln-go { position: absolute; right: .35rem; top: .2rem; color: var(--muted); text-decoration: none; font-size: .85rem; }
.ln-go:hover { color: var(--gold); }
.ln mark.sent-hit { background: rgba(184, 150, 62, .35); color: inherit; border-radius: 3px; padding: 0 1px; }

/* overview (nothing focused): words and characters wrap as compact clouds, no wires */
.lens-cols:not(.focused) { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.25fr) minmax(0, 1fr); }
.lens-cols:not(.focused) :is(.lc-w, .lc-g) { flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: .35rem; }
.lens-cols:not(.focused) .lc h3 { flex-basis: 100%; }
/* overview chips stack: character on top, its reading under it, ↗ in the corner */
.lens-cols:not(.focused) :is(.ln-w, .ln-g) { flex-direction: column; align-items: center; gap: 0;
  padding: .3rem 1.1rem .25rem .55rem; line-height: 1.2; }
.lens-cols:not(.focused) .ln-go { right: .25rem; top: .1rem; font-size: .75rem; }

/* wires exist only for a hovered or focused node's paths */
.lens-wires .w { fill: none; stroke: var(--gold); stroke-width: 1.6; opacity: .85; }
/* hover preview: its paths stay bright, the rest fades back */
.peeking .ln:not(.lit) { opacity: .28; }
.peeking .ln.lit { border-color: var(--gold); }
/* focus: only the node's paths stay on the page (tap it again, or 全部, to come back) */
.focused .lens-wires .w { stroke-width: 1.8; opacity: .9; }
.focused .ln:not(.lit) { display: none; }
.focused .lc { gap: .8rem; }
.ln.at { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }

@media (max-width: 700px) {
  .lens-cols { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, .6fr); column-gap: 1.2rem; }
  .ln-s .ln-t { font-size: 1rem; }
  .ln-w, .ln-g { flex-direction: column; gap: 0; padding-right: .6rem; }
  .ln-go { display: none; }
  .ln.at .ln-go { display: block; }
}
