/* wordtree.css — the word tree and the "In other languages" sections (wordtree.js). Every class starts with "wt-". */
.wt-find { margin: 12px 0 8px; }
.wt-frow { display: flex; gap: 8px; align-items: center; }
.wt-q { flex: 1; min-width: 0; box-sizing: border-box; }
.wt-msg:empty { display: none; }
.wt-none { color: var(--ink-2); font-size: 15.5px; margin: 8px 0 4px; }
.wt-ex { margin: 6px 0 4px; }
.wt-fine { font: 12.5px/1.5 var(--sans); color: var(--muted); margin: 14px 0 0; }
.wt-title { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1.15; margin: 6px 0 0; }
.wt-title .wt-w.is-he, .wt-title .wt-w.is-el { font-family: var(--serif); font-weight: 500; }
.wt-psub { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.wt-w { unicode-bidi: isolate; }
.wt-w.is-la { font-style: italic; }

/* the tree: three columns with the lines drawn behind */
.wt-tbox { margin: 16px 0 6px; }
.wt-tree { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(18px, 6vw, 64px); padding: 12px 10px 16px;
  border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface); }
.wt-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.wt-edge { fill: none; stroke: color-mix(in srgb, var(--gold-2) 75%, transparent); stroke-linecap: round; }
.wt-en { font: 600 10.5px var(--sans); fill: var(--muted); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.wt-col { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; z-index: 1; }
.wt-ch { font: 700 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 2px; }
.wt-empty { margin: 6px 0; font: 12.5px/1.45 var(--sans); color: var(--muted); text-align: center; }
.wt-card { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 8px 8px; border: 1px solid var(--border-2); border-radius: var(--r-1);
  background: var(--paper); color: var(--ink); text-decoration: none; text-align: center; min-width: 0; }
.wt-card:hover { border-color: var(--gold-2); }
.wt-card.is-root { border: 2px solid var(--rubric); background: var(--surface-2); }
.wt-card .wt-w { font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.wt-card.is-he .wt-w { font-size: 22px; }
.wt-card.is-root .wt-w { font-size: 21px; color: var(--rubric); }
.wt-tag { font: 600 9.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wt-sub { font: 11.5px/1.3 var(--sans); color: var(--muted); overflow-wrap: anywhere; }

/* lists of matches (the tree page, and the word pages' section) */
.wt-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 7px 0; border-top: 1px solid var(--border); }
.wt-row:first-of-type { border-top: 0; }
.wt-rl { flex: 0 0 100%; font: 600 12px var(--sans); letter-spacing: .03em; color: var(--muted); }
.wt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wt-chip { display: inline-flex; align-items: baseline; gap: 2px; padding: 3px 10px; border: 1px solid var(--border-2); border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-size: 16px; }
.wt-chip:hover { border-color: var(--gold-2); color: var(--rubric); }
.wt-chip small { font: 11.5px var(--sans); color: var(--muted); }
.wt-chip b { font: 600 11.5px var(--sans); color: var(--gold); }
.wt-more { margin: 8px 0 0; font: 600 13.5px var(--sans); }
.wt-more a { color: var(--link); }
.wt-acts { margin-top: 12px; }

@media (max-width: 520px) {
  .wt-en { display: none; }
  .wt-tree { padding: 10px 4px 12px; gap: 0 14px; }
  .wt-card { padding: 6px 4px 7px; }
  .wt-card .wt-w { font-size: 15.5px; }
  .wt-card.is-he .wt-w { font-size: 19px; }
  .wt-card.is-root .wt-w { font-size: 17px; }
  .wt-sub { font-size: 10.5px; }
  .wt-title { font-size: 32px; }
}

/* the Words page's Word Tree tab */
.wt-intro p { color: var(--ink-2); font-size: 17px; line-height: 1.5; margin: 6px 0 10px; }
.wt-tab { margin-top: 6px; }
.wt-tabh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 4px 0 10px; }
.wt-tabh > .wt-w { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--rubric); }
.wt-tabh .wt-psub { font: 12.5px var(--sans); }
.wt-open { margin-left: auto; font: 600 13.5px var(--sans); color: var(--link); }
.wt-also { margin: 2px 0 6px; align-items: center; }
