/* figure layouts specific to the TRELLIS explainer; tokens and shared figure parts come from /education/sim.css */

.hl--content { background: var(--peach); }
.hl--context { background: var(--sky); }

.split-fig--wide-panel { grid-template-columns: minmax(0, 1fr) 340px; }

/* attribute-value instances inside the inspector */
.inst-label { font: 500 0.78rem/1.4 var(--mono); margin: 10px 0 4px !important; }
table.inst { width: 100%; border-collapse: collapse; font: 500 0.76rem/1.3 var(--mono); margin-bottom: 8px; }
table.inst th { text-align: left; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--ink); padding: 2px 4px; }
table.inst td { padding: 2px 4px; border-bottom: 1px solid var(--rule); }

.class-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; margin-top: 8px; font: 500 0.72rem/1.3 var(--mono); color: var(--ink-2); }
.class-legend i { display: inline-block; width: 12px; height: 8px; margin-right: 4px; }
.class-legend i.basic { width: 14px; height: 10px; border: 2px solid var(--coral); background: transparent; vertical-align: -1px; }

/* parser candidates */
.tbl-wrap--tight { margin: 10px auto 12px; }
table.cand td:first-child { font-family: var(--mono); font-size: 0.8rem; }
table.cand tr.is-best td { background: var(--butter); font-weight: 700; }
table.cand tr.is-out td { color: var(--ink-3); }

/* generation */
.check { display: inline-flex; align-items: center; gap: 6px; font: 600 0.78rem/1 var(--mono); }
.check input { accent-color: var(--ink); width: 16px; height: 16px; }
ol.gen-list { list-style: none; margin: 0; padding: 0; }
ol.gen-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 0; border-bottom: 1px solid var(--rule); }
ol.gen-list code { font-size: 0.8rem; line-height: 1.45; word-break: break-word; }
ol.gen-list mark { background: none; color: var(--coral); font-weight: 700; text-decoration: underline wavy; }
.chip { display: inline-block; padding: 1px 7px; border: 1px solid var(--ink); font: 600 0.68rem/1.5 var(--mono); text-align: center; }
.chip--memorized { background: var(--lilac); }
.chip--novel { background: var(--mint); }
.chip--error { background: var(--rose); }

/* learning curves */
.curve-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.curve-pair svg { width: 100%; height: auto; display: block; }

@media (max-width: 760px) {
  .split-fig--wide-panel, .curve-pair { grid-template-columns: minmax(0, 1fr); }
  ol.gen-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
