/* Model page additions on top of explorer.css (from the Flask explorer). */
.crumb { margin: 0 0 1rem; font-size: .88rem; }
.ckptname { margin: .1rem 0 0; font-size: .74rem; color: var(--global-text-color-light); }
.meaninput { margin-top: .2rem; }
.evaltable .evaltable-grp th { text-align: left; font-size: .68rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .04em; color: var(--global-text-color-light); padding-top: .55rem; }
.evaltable .evaltable-wins th, .evaltable .evaltable-wins td { font-size: .74rem; color: var(--global-text-color-light); }
body.loading #k-net, body.loading #k-curves { opacity: .55; transition: opacity .15s; }
.hint { color: var(--global-text-color-light); font-size: .85rem; }

/* --- generalization card --------------------------------------------------- */
.gen-h { font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  color: var(--global-text-color-light); margin: 1.1rem 0 .4rem; font-family: var(--global-font-mono); }
.gen-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gentable { border-collapse: collapse; width: 100%; font-size: .8rem; font-variant-numeric: tabular-nums; }
.gentable th, .gentable td { padding: .28rem .55rem; text-align: right; white-space: nowrap;
  border-bottom: 1px solid var(--global-divider-color); }
.gentable thead th { font-weight: 500; font-size: .72rem; color: var(--global-text-color-light);
  border-bottom: 1px solid var(--global-divider-strong); background: var(--global-card-bg-color); }
.gentable tbody th { text-align: left; font-weight: 400; color: var(--global-text-color); }
.gentable--sum { width: auto; min-width: 60%; }
.gentable--sum th:first-child { min-width: 7rem; }
.gentable .gen-grp { text-align: center; color: var(--global-text-color); border-left: 1px solid var(--global-divider-strong); }
.gentable .gen-grp-first { border-left: 1px solid var(--global-divider-strong); }
.gentable .gen-b { color: var(--global-text-color-light); }
.gentable .gen-d { font-size: .74rem; }
.gentable .gen-pos { color: var(--lb-win-fg); }
.gentable .gen-neg { color: var(--lb-lose-fg); }
.gentable .gen-na { text-align: left; color: var(--global-text-color-light); font-style: italic; }
.gentable--pc tbody tr:hover > * { background: color-mix(in srgb, var(--global-theme-color) 5%, transparent); }

/* averaging label on the side of the results table */
.evaltable .evaltable-side { text-align: left; vertical-align: middle; padding-right: 1rem; white-space: nowrap;
  font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  color: var(--global-text-color-light); }
.evaltable tr.evaltable-first > * { border-top: 1px solid var(--global-divider-color); }
.evaltable tbody tr.evaltable-first:first-child > * { border-top: 0; }

/* --- generalization: selectable summary rows ------------------------------ */
.gentable--sum tbody tr.gen-row { cursor: pointer; }
.gentable--sum tbody tr.gen-row:hover > * { background: color-mix(in srgb, var(--global-theme-color) 5%, transparent); }
.gentable--sum tbody tr.gen-row.is-sel > * { background: color-mix(in srgb, var(--global-theme-color) 10%, transparent); }
.gentable--sum tbody tr.gen-row.is-sel > th { box-shadow: inset 3px 0 0 var(--global-theme-color); }
.gentable--sum tbody tr.gen-row:focus-visible { outline: 2px solid var(--global-accent-color); outline-offset: -2px; }
.gen-pchead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.gen-pchead .gen-h { margin: 0; }

/* --- generalization: diverging per-circuit chart ---------------------------
   Pair validated with the dataviz validator (CVD ΔE ≈ 20 light and dark):
   light #3b6fb0 / #c06a2e, dark #4a90d0 / #c97a42. */
.gc { --gen-pos: #3b6fb0; --gen-neg: #c06a2e; --gc-name: 7.5rem; margin-top: .6rem; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .gc { --gen-pos: #4a90d0; --gen-neg: #c97a42; }
.gc-row, .gc-dir, .gc-axis { display: grid; grid-template-columns: var(--gc-name) 1fr; align-items: center; }
.gc-row { height: 22px; cursor: default; }
.gc-row:hover { background: color-mix(in srgb, var(--global-theme-color) 5%, transparent); }
.gc-name { font-size: .76rem; color: var(--global-text-color); padding-right: .6rem; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-plot { position: relative; height: 100%; margin: 0 4.5rem; }
.gc-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--global-divider-color); }
.gc-tick.gc-zero { background: var(--global-text-color-light); }
/* thin bar, 4px rounded at the data end, square at the zero baseline */
.gc-bar { position: absolute; top: 6px; height: 10px; }
.gc-pos { background: var(--gen-pos); border-radius: 0 4px 4px 0; }
.gc-neg { background: var(--gen-neg); border-radius: 4px 0 0 4px; }
.gc-clip { background-image: repeating-linear-gradient(135deg, transparent 0 3px, var(--global-bg-color) 3px 5px); }
.gc-val { position: absolute; top: 50%; transform: translateY(-50%); font-size: .7rem; color: var(--global-text-color-light); white-space: nowrap; }
.gc-dir { height: 18px; }
.gc-dl, .gc-dr { position: absolute; top: 0; font-size: .68rem; color: var(--global-text-color-light); white-space: nowrap; padding: 0 .4rem; }
.gc-axis { height: 18px; margin-top: 2px; }
.gc-tl { position: absolute; top: 2px; transform: translateX(-50%); font-size: .66rem; color: var(--global-text-color-light); white-space: nowrap; }
.gc-na { font-size: .76rem; color: var(--global-text-color-light); margin: .5rem 0 0; }
#gentip { position: fixed; z-index: 300; pointer-events: none; max-width: 22rem; padding: .45rem .6rem;
  background: var(--md-primary-900); color: #fff; font-size: .76rem; line-height: 1.45;
  border-radius: var(--global-radius); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
#gentip b { font-weight: 500; }
#gentip[hidden] { display: none; }
html[data-theme="dark"] #gentip { background: var(--md-primary-50); color: var(--md-primary-900); }
#graphcap:empty { display: none; }

/* align with the header and the other pages (content 1800px, 2rem sides) */
.wrap { max-width: 1800px; padding-left: 2rem; padding-right: 2rem; }
@media (max-width: 720px) { .wrap { padding-left: 16px; padding-right: 16px; } }

/* one-line experiment description under the model name (from the release registry) */
.iddesc { margin: -.15rem 0 .9rem; max-width: 46rem; font-size: .92rem; line-height: 1.5;
  color: var(--global-text-color-light); }
