/* The Evolve wing and the lab: Train, Ask, Made and the lab pages; page() links it on those wings after museum.css */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1px; margin: 28px 0 8px; padding: 0; background: var(--line); border: 1px solid var(--line); }
.steps li { counter-increment: step; background: var(--surface); padding: 12px 14px 12px 52px; position: relative; font-size: .9375rem; line-height: 1.4; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 10px; font: 800 1.6rem/1 var(--display); color: var(--c7); font-variant-numeric: tabular-nums; }
.steps li b { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; }
.start-row { align-items: flex-end; }
.more-settings { margin-top: .75rem; }
.more-settings > summary, .glossary > summary, .everything > summary { cursor: pointer; font: 600 15px/1.4 var(--display); }
.finds-part { margin: 1.5rem 0; }
.finds { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.finds .empty { margin: 0; }
.star-card { display: block; border-top: 6px solid var(--warn); }
.star-card h4 { margin: 0 0 .25rem; font-size: 1.25rem; }
.star-card .ask { margin: 0 0 .25rem; }
.star-card .written { margin: .5rem 0; overflow-wrap: anywhere; }
.star-card .written .label, .star-card .try label { font: 600 12px/1.5 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: .4rem; }
.star-card .try { align-items: flex-end; }
.star-card .try .field { flex: 1 1 9rem; }
.star-card .try input { width: 100%; }
.star-card .output:empty { display: none; }
table.io { width: 100%; border-collapse: collapse; margin: .5rem 0; font-size: .9375rem; }
table.io th, table.io td { text-align: left; padding: .25rem .5rem .25rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
table.io th { font: 600 12px/1.5 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.glossary { margin: 1rem 0; padding: .75rem 1rem; border: 1px solid var(--line); border-left: 6px solid var(--evolve); background: var(--surface); }
.glossary dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .5rem 1.5rem; margin: .75rem 0 0; }
.glossary dt { font-weight: 700; font-family: var(--display); }
.glossary dd { margin: 0; font-size: .9375rem; color: var(--text); }
.everything { margin-top: 1.5rem; }
.everything > .card, .everything > section { margin-top: 1rem; }
.shelf-list { padding-left: 1.1rem; }
.shelf-list li { margin: .5rem 0; }
.tree.inner { margin-left: .75rem; border-left: 1px solid var(--border); padding-left: .5rem; }
.star { padding: .5rem .75rem; border-left: 6px solid var(--warn); background: var(--code-bg); }
.lead-line { margin: 0 0 .75rem; font: 700 1.25rem/1.3 var(--display); }
.console-form .btn.btn-big { font-size: 1.25rem; padding: .7rem 2.4rem; min-height: 3rem; }
.more-settings .controls .field { flex-direction: column; align-items: flex-start; }
.more-settings .hint { max-width: 34rem; }
.your-worlds { margin: 1rem 0 1.5rem; padding: .75rem 1rem; border: 1px solid var(--line); border-left: 6px solid var(--c7); background: var(--surface); }
.your-worlds h3 { margin: 0 0 .25rem; }
.saved-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.saved-list li { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .5rem 0; border-top: 1px solid var(--line); }
.saved-list li > div { flex: 1 1 20rem; min-width: 0; }
.saved-list .small { display: block; }
.more-settings label.check { font: inherit; font-size: .9375rem; text-transform: none; letter-spacing: 0; }
.all-challenges { margin: 1rem 0; }
.ch-ever { font-weight: 400; color: var(--muted); }
.ch-lead { max-width: 62ch; font-size: 1.05rem; }
.ch-map { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; max-width: 40rem; margin: 1rem 0 .4rem; }
.ch-sq { aspect-ratio: 1; border: 1px solid var(--line); background: var(--bg); }
.ch-sq.is-found { background: color-mix(in srgb, var(--text) calc(var(--share) * 100%), var(--bg)); border-color: var(--text); }
.ch-sq:hover, .ch-sq:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 640px) { .ch-map { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; } }
.ch-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 1rem 0; }
.ch-chip { padding: .35rem .8rem; font: inherit; font-size: .9rem; color: inherit; background: none; border: 1px solid var(--border); cursor: pointer; min-height: 36px; }
.ch-chip[aria-pressed=true] { background: var(--text); color: var(--bg); border-color: var(--text); }
.ch-group h3 { margin: 1.25rem 0 .5rem; }
.ch-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 8px; }
.ch-card { padding: .65rem .8rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--line); min-width: 0; scroll-margin-top: 5rem; }
.ch-card.is-found { border-top-color: var(--accent); }
.ch-card:target { outline: 3px solid var(--accent); }
.ch-card p { margin: 0 0 .35rem; }
.ch-title b { font: 700 1.05rem/1.2 var(--display); }
.ch-card .mark { display: inline-block; width: 1.1em; color: var(--muted); }
.ch-card.is-found .mark { color: var(--text); }
.ch-line { font-size: .9375rem; }
.ch-eg code { overflow-wrap: anywhere; }
.ch-stat { display: flex; align-items: center; gap: .5rem; font-size: .875rem; }
.ch-bar { flex: 1; height: .5rem; background: var(--code-bg); border: 1px solid var(--line); }
.ch-bar span { display: block; height: 100%; background: var(--accent); }
.ch-prog code { display: block; margin-top: .3rem; overflow-wrap: anywhere; }
.all-challenges > summary { cursor: pointer; font: 600 15px/1.4 var(--display); }
.challenge-list { list-style: none; margin: .5rem 0 0; padding: 0; columns: 2 26rem; column-gap: 2rem; }
.challenge-list li { break-inside: avoid; padding: .25rem 0; font-size: .9375rem; }
.challenge-list .mark { display: inline-block; width: 1.1em; color: var(--muted); }
.challenge-list li.is-found .mark { color: var(--text); }
.picker { position: relative; }
.console-form .btn.picker-button { text-transform: none; letter-spacing: 0; font-size: 1rem; min-height: 3rem; }
.picker-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(30rem, calc(100vw - 32px)); max-height: min(75vh, 44rem); overflow-y: auto; padding: 6px; background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.picker-menu [role^=menuitem] { display: grid; grid-template-columns: 1fr auto; gap: 0 .75rem; width: 100%; padding: .5rem .6rem; text-align: left; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.picker-menu [role^=menuitem]:hover, .picker-menu [role^=menuitem]:focus { background: var(--code-bg); outline: 2px solid var(--accent); outline-offset: -2px; }
.picker-menu [aria-disabled=true] { opacity: .55; cursor: not-allowed; }
.pm-name { grid-column: 1; font: 700 15px/1.3 var(--display); }
.pm-line { grid-column: 1; font-size: .875rem; color: var(--muted); line-height: 1.35; }
.pm-check, .pm-more { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-weight: 700; }
.pm-chips { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0; }
.pm-chips:empty { display: none; }
.pm-chip { font: 600 11px/1.2 var(--display); padding: 2px 7px; border: 1px solid var(--line); color: var(--muted); }
.pm-chip.is-memory { color: var(--text); border-color: var(--border); }
.pm-check { visibility: hidden; }
[aria-checked=true] > .pm-check { visibility: visible; }
.pm-tag { font: 600 11px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 2px 5px; border: 1px solid var(--border); margin-left: .35rem; vertical-align: 2px; }
.pm-now { font-weight: 400; color: var(--muted); margin-left: .35rem; }
.pm-head { margin: .4rem .6rem .2rem; font: 600 12px/1.4 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pm-sep { height: 1px; margin: 6px 0; background: var(--line); }
.picker-sub { margin: 0 0 6px 12px; padding-left: 6px; border-left: 2px solid var(--line); }
.pm-note { margin: .25rem .6rem; font-size: .875rem; color: var(--muted); }
.tweak-warn { margin: .5rem 0; padding: .5rem .75rem; border: 2px solid var(--accent); background: var(--code-bg); font-size: .9375rem; }
.tweak-warn .btn { margin-left: .5rem; }
.pm-find { width: 100%; margin: 0 0 6px; padding: .5rem .6rem; font: inherit; color: inherit; background: var(--code-bg); border: 1px solid var(--border); }
.pm-score { font: 600 12px/1 var(--display); margin-left: .35rem; color: var(--muted); white-space: nowrap; }
.pm-score.is-new { text-transform: uppercase; letter-spacing: .06em; padding: 2px 5px; border: 1px dashed var(--border); }
/* two lines of each model's story in the menu; the whole of it on focus and in the tooltip */
.picker-menu [data-model] .pm-line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.picker-menu [data-model]:focus .pm-line { display: block; }
@media (max-width: 640px) {
  .picker-menu { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; max-height: min(80dvh, 40rem); z-index: 70; border-top: 2px solid var(--text); }
  .picker-menu [role^=menuitem] { padding: .6rem; }
  .pm-line { font-size: .8125rem; }
  .pm-chip { font-size: 12.5px; padding: 3px 8px; }
  .pm-tag { font-size: 12px; }
}
html:has(#m-menu:not([hidden])) .wt-pill { display: none; }
.disk-line { margin: .25rem 0; font-weight: 700; }
.saved-list .row { gap: .5rem; flex: 0 0 auto; }
.saved-worlds { list-style: none; margin: .25rem 0 0; padding: 0; font-size: .9375rem; }
.saved-worlds li { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; justify-content: space-between; padding: .25rem 0; border-top: 1px solid var(--line); }
.btn-danger, button.btn-danger { background: var(--bad); color: var(--bg); border-color: var(--bad); }
dialog.confirm { max-width: min(32rem, calc(100vw - 32px)); padding: 1.25rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); }
dialog.confirm::backdrop { background: rgba(0, 0, 0, .5); }
dialog.confirm h3 { margin-top: 0; }
dialog.confirm .row { gap: .5rem; justify-content: flex-end; }
.evolve-nav { background: var(--bg); border-bottom: 1px solid var(--line); }
.evolve-nav-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; }
.evolve-nav [role=tablist] { display: flex; flex-wrap: wrap; gap: 0; }
.evolve-nav [role=tab] { display: inline-block; padding: .8rem .9rem .65rem; font: 700 15px/1.2 var(--display); color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.evolve-nav [role=tab]:hover { color: var(--text); }
.evolve-nav [role=tab][aria-selected=true] { color: var(--text); border-bottom-color: var(--c7); }
.linklike { background: none; border: 0; padding: .5rem 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
.tab-panel { padding-top: 1.25rem; }
.panel-head { margin-top: 1.5rem; }
.world-runs .run-group { margin: 1rem 0 1.5rem; }
.run-group h3 { margin: 0 0 .15rem; }
.world-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); margin-top: .5rem; }
.world-card { cursor: pointer; border-top: 4px solid var(--evolve); }
.world-card h4 { margin: 0 0 .25rem; font-size: 1.05rem; }
.world-card:hover { border-color: var(--text); }
@media (max-width: 640px) {
  #w-recorded .world-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #w-recorded .world-card { padding: 10px 12px; }
  #w-recorded .world-card h4 { font-size: .9375rem; overflow-wrap: anywhere; }
  .world-card h4 a { display: block; padding: .35rem 0; }
  #wp-model-line .linklike { padding: .6rem 0; }
  details.run-group { border-top: 1px solid var(--line); margin: 0; }
  details.run-group > summary { display: block; list-style: none; position: relative; padding: .6rem 0 .6rem 1.5rem; font: inherit; }
  details.run-group > summary::-webkit-details-marker { display: none; }
  details.run-group > summary::before { content: "▸"; position: absolute; left: .2rem; top: .6rem; font: 700 1.1rem/1.2 var(--display); color: var(--c7); }
  details.run-group[open] > summary::before { content: "▾"; }
  details.run-group > summary p { margin: 0; }
  details.run-group:not([open]) > summary p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  details.run-group[open] { padding-bottom: 1rem; }
}
.state { font-weight: 700; }
.state-running { color: var(--ok); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; margin: .25rem 0 .5rem; font-size: .9375rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .25rem; color: var(--muted); }
.world-head h2 { margin: 0 0 .25rem; }
.world-head .counters { margin: .5rem 0; }
.world-tabs { display: flex; flex-wrap: wrap; gap: 0; margin: 1rem 0 0; border-bottom: 1px solid var(--line); }
.world-tabs [role=tab] { padding: .6rem .9rem .5rem; font: 700 14px/1.2 var(--display); color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
.world-tabs [role=tab][aria-selected=true] { color: var(--text); border-bottom-color: var(--c7); }
.world-panel { padding-top: 1rem; }
.timeline { list-style: none; padding: 0; margin: .5rem 0; border-left: 2px solid var(--line); }
.timeline li { padding: .2rem 0 .2rem .75rem; }
.timeline .g { display: inline-block; min-width: 9.5rem; color: var(--muted); font-variant-numeric: tabular-nums; }
tr.noise td { color: var(--muted); }
.glossary-dialog { max-width: min(48rem, calc(100vw - 32px)); color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.glossary-dialog::backdrop { background: rgba(0, 0, 0, .5); }
.glossary-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .5rem 1.5rem; }
.glossary-list dt { font-weight: 700; font-family: var(--display); }
.glossary-list dd { margin: 0; font-size: .9375rem; }
.all-challenges h2 { margin-top: 0; }
.world-model { margin: 0 0 .25rem; font-size: .9375rem; color: var(--muted); }
.world-model .linklike { padding: 0; margin-left: .25rem; }
.insights { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 12px; margin: .5rem 0 1.5rem; padding: 0; list-style: none; }
.insights li { padding: .75rem .9rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c7); }
.insights li.muted { border-top-color: var(--line); }
.insights b { display: block; font: 800 2rem/1 var(--display); font-variant-numeric: tabular-nums; }
.insights b small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.insights .label { display: block; margin: .35rem 0 .25rem; font: 600 12px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.insights p { margin: 0; font-size: .9375rem; overflow-wrap: anywhere; }
#world-page tbody th[scope=row] { font: inherit; letter-spacing: normal; text-transform: none; color: var(--text); border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; }
tr.is-me th, tr.is-me td { background: var(--surface); font-weight: 700; }
tr.is-me th:first-child, #world-page tr.is-me th[scope=row]:first-child { border-left: 4px solid var(--c7); padding-left: 12px; }
#wp-siblings th[scope=row] { white-space: nowrap; }
.chal-key { margin-right: 1rem; white-space: nowrap; }
.chal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 6px; margin: .5rem 0 1.5rem; padding: 0; list-style: none; }
.chal-grid li { padding: .35rem .5rem; font-size: .875rem; border: 1px dashed var(--line); color: var(--muted); }
.chal-grid li.is-found { border: 1px solid var(--warn); border-left-width: 5px; color: var(--text); font-weight: 600; }
.chal-grid li.is-sibling { border: 1px solid var(--border); border-left: 5px solid var(--c7); color: var(--text); }
.chal-grid li.is-first { border: 2px solid var(--warn); border-left-width: 8px; background: var(--surface); color: var(--text); font-weight: 800; }
.chal-key.is-first { font-weight: 700; color: var(--text); }
.chal-grid .mark { display: inline-block; width: 1.3em; }
.first-ever { margin: .5rem 0 1.25rem; padding: .85rem 1rem; background: var(--surface); border: 2px solid var(--warn); border-left-width: 10px; }
.first-ever .eyebrow { margin: 0 0 .35rem; color: var(--text); font-size: 13px; }
.first-ever p { margin: .25rem 0; }
.first-ever b { font: 800 1.15rem/1.3 var(--display); }
.star-card.is-first { border-top-width: 12px; outline: 2px solid var(--warn); }
.first-badge { margin: 0 0 .35rem; font: 700 12px/1.4 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.chal-grid small { color: var(--muted); font-weight: 400; }
.model-card { border-top: 6px solid var(--c7); margin-bottom: 1.5rem; }
.model-card h3 { margin: .25rem 0 .5rem; font-size: 1.5rem; }
.model-card .lead { margin: 0 0 1rem; font-size: 1.0625rem; }
.model-facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0; }
.model-facts div { display: contents; }
.model-facts dt { font: 600 12px/1.7 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.model-facts dd { margin: 0; }
@media (max-width: 40rem) { .model-facts { grid-template-columns: 1fr; } .model-facts dd { margin-bottom: .5rem; } }
.pm-tag.pm-internal { border-style: dashed; color: var(--muted); }
/* a Shibboleth page's way on: doors to the pages it relates to, with Run last */
.ev-next { margin: var(--s-6) 0 var(--s-5); }
.ev-next h2 { margin: 0 0 var(--s-3); font: 700 var(--t-l)/1.2 var(--display); }
.ev-next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.ev-next a { display: grid; align-content: start; gap: var(--s-1); height: 100%; box-sizing: border-box; min-height: 44px; padding: var(--s-3) var(--s-4); color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--evolve); }
.ev-next a.is-run { border-left-color: var(--run); }
.ev-next a:hover, .ev-next a:focus-visible { border-color: var(--text); border-left-color: var(--evolve); }
.ev-next a.is-run:hover, .ev-next a.is-run:focus-visible { border-left-color: var(--run); }
.ev-next b { font: 700 var(--t-m)/1.2 var(--sans); }
.ev-next span { font-size: var(--t-s); color: var(--muted); }
/* a language a Shibboleth page names: its own page and Run, beside it */
.lang-links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin: var(--s-1) 0 0; font-size: var(--t-s); }
.lang-links a { display: inline-flex; align-items: center; min-height: 44px; }
