/* The brief page pattern (Compare, the agent job): question title, at most three dropdowns, one plain table,
   results in words, method folded at the bottom. Loaded after mock.css and views.css. */
.brief-page h1.q{max-width:20ch;margin-bottom:10px}
.brief-page p.lede{margin-bottom:22px}
.filters{display:flex;flex-wrap:wrap;gap:12px 18px;margin:0 0 6px}
.filters label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--muted)}
.filters select{font:inherit;font-size:14.5px;color:var(--ink);background-color:var(--card);border:1px solid var(--rule);border-radius:8px;padding:8px 32px 8px 12px;appearance:none;-webkit-appearance:none;cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 16px) 55%,calc(100% - 11px) 55%;background-size:5px 5px;background-repeat:no-repeat}
.filters select:hover{border-color:var(--faint)}
.scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
table.brief{width:100%;border-collapse:collapse;margin-top:22px;font-variant-numeric:tabular-nums}
table.brief th,table.brief td{text-align:left;vertical-align:top}
table.brief thead th{font-size:13px;font-weight:500;color:var(--muted);padding:0 12px 10px 0;border-bottom:2px solid var(--ink);vertical-align:bottom}
table.brief thead th small{display:block;font-size:11.5px;color:var(--faint)}
table.brief .sw{display:inline-block;width:10px;height:10px;border-radius:2px;border:1.5px solid;margin-right:6px;vertical-align:-1px}
table.brief tbody th,table.brief tbody td{padding:12px 12px 12px 0;border-bottom:1px solid var(--rule);font-weight:400}
table.brief td.v{font-family:var(--mono);font-size:14px;white-space:nowrap}
table.brief tr.grp th{padding:22px 0 8px;border-bottom:1px solid var(--rule);display:table-cell}
table.brief tr.grp b{font-size:15px;margin-right:10px}table.brief tr.grp span{font-size:13.5px;color:var(--muted)}
.rowbtn{all:unset;cursor:pointer;display:flex;flex-direction:column;gap:1px;font-size:15px;color:var(--ink)}
.rowbtn::before{content:"";position:absolute;width:0;height:0;margin:7px 0 0 -14px;border-left:6px solid var(--faint);border-top:4px solid transparent;border-bottom:4px solid transparent;transition:transform .15s}
.rowbtn[aria-expanded=true]::before{transform:rotate(90deg);border-left-color:var(--indigo)}
.rowbtn:hover{color:var(--indigo)}
.rowbtn:focus-visible{outline:2px solid var(--indigo);outline-offset:2px;border-radius:4px}
.rowbtn small,table.brief tbody th>small{display:block;font-size:12.5px;color:var(--faint)}
table.brief tbody th{padding-left:16px}
table.brief tr.exp td{padding:14px 0 22px;white-space:normal}
.w{text-decoration:underline dotted var(--faint);text-underline-offset:3px;cursor:help;color:var(--ink)}
.w.s2{color:var(--cost)}.w.s3{color:var(--cost);font-weight:600}.w.ok{color:var(--grS)}.w.na{color:var(--faint)}
.status{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font-size:13.5px;color:var(--muted);margin:14px 0 18px}
.fold{margin-top:12px;border:1px solid var(--rule);border-radius:10px;background:var(--card)}
.fold>summary{cursor:pointer;padding:14px 18px;font-weight:600;list-style:none;display:flex;gap:10px;align-items:center}
.fold>summary::-webkit-details-marker{display:none}
.fold>summary::before{content:"";flex:none;width:0;height:0;border-left:7px solid var(--indigo);border-top:5px solid transparent;border-bottom:5px solid transparent;transition:transform .15s}
.fold[open]>summary::before{transform:rotate(90deg)}
.fold>.in{padding:2px 18px 18px;display:flex;flex-direction:column;gap:10px}
.fold>.in>p{margin:0;color:var(--muted);max-width:76ch}
.fold .ctl{margin:0}
.fine{font-size:13px;color:var(--muted);margin:18px 0 0;max-width:90ch}
/* Compare: the table's own controls sit just above it, always open */
.tablectl{margin:18px 0 0;padding:14px 18px;border:1px solid var(--rule);border-radius:10px;background:var(--card);display:flex;flex-direction:column;gap:10px}
.tablectl .ctl,.tablectl .pick,.tablectl .keys{margin:0}
.pick button.all{border-style:dashed;color:var(--indigo)}
/* A wide table keeps its row names in view while it scrolls sideways */
table.brief.wide{width:max-content;min-width:100%;margin-top:0}
.scroll.wide{margin:22px calc(50% - 50vw + 24px) 0}
table.brief.wide thead th{min-width:7.5em;max-width:10em}
table.brief.wide thead th:first-child,table.brief.wide tbody tr:not(.grp):not(.exp)>th{position:sticky;left:0;z-index:1;background:var(--paper);min-width:12em;max-width:16em;box-shadow:1px 0 0 var(--rule)}
table.brief.wide tr.exp td>*{position:sticky;left:0;max-width:min(92vw,1100px)}
/* the agent job page */
.brief-page .runline{font-size:13px;color:var(--muted);font-family:var(--mono);margin:12px 0 0}
@media (max-width:760px){
  .filters label{flex:1 1 100%}.filters select{width:100%}
  table.brief{min-width:520px}
  .tablectl{padding:12px}.tablectl .pick{gap:6px}.tablectl .pick button{font-size:13px;padding:3px 10px}
  .scroll.wide{margin:22px -16px 0}
  table.brief.wide thead th:first-child{padding-left:16px}table.brief.wide tbody tr:not(.grp):not(.exp)>th{padding-left:30px}table.brief.wide tr.grp th,table.brief.wide tr.exp td{padding-left:16px}
  table.brief.wide thead th:first-child,table.brief.wide tbody tr:not(.grp):not(.exp)>th{min-width:8.5em;max-width:9.5em}
  table.brief tbody th{padding-left:14px}
  .rowbtn small{display:none}
}
/* Compare, Best tuned: the tuned result with the as-shipped one under it */
.tw2{display:inline-flex;flex-direction:column;gap:2px}
.tw2 .was{font-size:11.5px;color:var(--faint);cursor:help;white-space:nowrap}
table.brief thead th small.cfg{cursor:help;max-width:16ch}

/* Compare: the layer pictures above the table, the routes to the other benchmarks, and the test conditions. */
.brief-page a.jump{font-weight:600;white-space:nowrap}
.brief-page p.hint{margin:0 0 12px;font-size:14px;color:var(--muted);max-width:86ch}
.band.compact{border-top:0;padding-top:0;margin-top:0}
.band.compact .towers{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.band.compact .tower{cursor:pointer;gap:3px;padding:9px}
.band.compact .tower .sb{font-size:12.5px;min-height:2.6em}
.band.compact .slab{padding:3px 6px;font-size:12px}
.band.compact .slab.hot em{font-size:11px}
.tower .act{margin-top:auto;padding-top:6px;font-size:13px;font-weight:600;color:var(--indigo)}
.tower:hover .act{text-decoration:underline}
.band.compact+.keys{margin-top:12px;font-size:12.5px}
.tdetail .go{display:inline-block;font:inherit;font-weight:600;font-size:15px;color:var(--paper);background:var(--ink);border:0;border-radius:8px;padding:9px 16px;cursor:pointer;text-decoration:none}
.tdetail .go:hover{background:var(--indigo)}
.routes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0 0}
.routes a{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border:1px solid var(--rule);border-radius:10px;background:var(--card);color:var(--ink);text-decoration:none}
.routes a:hover{border-color:var(--indigo)}
.routes a b{color:var(--indigo)}
.routes a span{font-size:13.5px;color:var(--muted)}
.brief-page h2#results{margin-top:38px;scroll-margin-top:12px}
.brief-page .filters{align-items:flex-end}
.cond{margin:14px 0 0;padding:12px 16px;border-left:3px solid var(--ink);background:var(--card);border-radius:0 8px 8px 0;display:flex;flex-direction:column;gap:6px}
.cond p{margin:0;font-size:13.5px;color:var(--muted);max-width:104ch}
.cond p b{color:var(--ink)}
.mw{display:inline-flex;flex-direction:column;gap:1px}
.mw .mv{font-weight:600;font-size:14px}
.mw .w{font-size:12.5px;font-family:var(--sans,inherit)}
table.brief thead th{position:sticky;top:0;z-index:2;background:var(--paper);padding-top:8px}
table.brief thead th.hi{box-shadow:inset 0 -3px 0 var(--indigo);color:var(--ink)}
table.brief thead th:first-child{z-index:3}
/* The table scrolls inside its own box so the column names and the job names stay in view. */
.scroll{overflow:visible}
.scroll.wide{max-height:86vh;overflow:auto}
@media (max-width:760px){.routes{grid-template-columns:1fr}.band.compact .towers{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.brief-page .filters{gap:10px 12px}.brief-page .filters label{flex:1 1 40%;min-width:0}.brief-page .filters .ctl{flex:1 1 100%;margin:0}.brief-page p.lede{font-size:16px}}

/* Evidence in each cell, and the collapsed controls above the table. */
.mw .ev{font-size:11px;color:var(--faint);font-family:var(--mono);cursor:help}
.mw .ev.few{color:var(--orS);font-weight:600}
details.adv{margin:8px 0 0;border:1px solid var(--rule);border-radius:10px;background:var(--card);padding:0 14px}
details.adv>summary{cursor:pointer;list-style:none;display:flex;flex-wrap:wrap;gap:2px 12px;align-items:baseline;padding:10px 0;font-size:14.5px}
details.adv>summary::-webkit-details-marker{display:none}
details.adv>summary b::before{content:"";display:inline-block;width:0;height:0;margin-right:8px;border-left:6px solid var(--indigo);border-top:4px solid transparent;border-bottom:4px solid transparent;transition:transform .15s}
details.adv[open]>summary b::before{transform:rotate(90deg)}
details.adv>summary span{color:var(--muted);font-size:13.5px}
details.adv .pick{margin:2px 0 12px}details.adv .pick .lbl{display:none}
details.adv p.note{margin:6px 0 10px;max-width:96ch}
.brief-page p.readme{margin:14px 0 0;font-size:13.5px;color:var(--muted);max-width:104ch}
.brief-page .keys{margin-top:14px}
.cond{margin-top:10px}
.mw .tb{font-size:11px;color:var(--faint);font-family:var(--mono);cursor:help}
