/* Nolan benchmarks page */
.b-hero { padding-top: 48px; padding-bottom: 8px; }
.b-hero h1 { margin: 0 0 .75rem; }
.b-hero .lead { margin-bottom: 0; max-width: 720px; }
section.wrap { padding-top: 20px; padding-bottom: 20px; }
.narrow { max-width: 760px; }
.b-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.b-card h2 { margin: 0 0 .4rem; }
.b-card h3 { margin: 0; font-size: 1.15rem; }
.b-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0 8px; }
.b-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.b-filter, .b-combo input { background: #0f1015; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: .95rem; min-width: 0; }
.b-filter { width: 200px; }
.b-filter:focus, .b-combo input:focus, .b-seg button:focus-visible, th.sortable:focus-visible { outline: 2px solid #ff3b3b; outline-offset: 1px; }
.b-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.b-seg button { background: #0f1015; color: var(--muted); border: 0; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.b-seg button[aria-pressed="true"] { background: #ff3b3b; color: #fff; }
.b-check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }

.b-tablewrap, .b-matrixwrap { margin-top: 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #0f1015; -webkit-overflow-scrolling: touch; }
.b-tablewrap { max-height: 640px; overflow-y: auto; }
.b-tablewrap.full { max-height: none; overflow-y: visible; }
.b-matrixwrap { max-height: 600px; overflow-y: auto; position: relative; }
.b-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.b-table th, .b-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.b-table th.num, .b-table td.num { text-align: right; }
.b-table thead th { position: sticky; top: 0; z-index: 3; background: #1b1d24; color: #c9cad2; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.b-table th.sortable { cursor: pointer; user-select: none; }
.b-table th.sortable:hover { color: #fff; }
.b-table th .arr { display: inline-block; width: 1em; margin-left: 4px; color: #ff3b3b; font-size: .75em; }
.b-table tbody tr:nth-child(even) td { background: rgba(255,255,255,.025); }
.b-table tbody tr:hover td { background: rgba(255,255,255,.06); }
.b-table tbody tr:last-child td { border-bottom: 0; }
.b-table td.first, .b-table th.first { position: sticky; left: 0; z-index: 2; background: #0f1015; }
.b-table thead th.first { z-index: 4; background: #1b1d24; }
.b-table tbody tr:nth-child(even) td.first { background: #13141a; }
.b-table tbody tr:hover td.first { background: #1a1c23; }
.b-none { text-align: center !important; color: var(--muted); padding: 28px !important; }

/* bracket: group label row plus a colored bar down the left edge of the group */
.b-group td { padding: 16px 14px; font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: .01em; border-bottom: 1px solid var(--line); position: static !important; }
.b-group.ok td { background: #16a34a !important; }
.b-group.bad td { background: #dc4a2c !important; }
.b-fast { color: #4ade80; }
.b-slow { color: #ff6b4a; }
.b-subtxt { color: var(--muted); font-size: .8rem; font-weight: 400; margin-top: 2px; }
.b-table tr.gm.ok td:first-child { border-left: 4px solid #22c55e; }
.b-table tr.gm.bad td:first-child { border-left: 4px solid #ef5a3c; }
.b-table tr.glast.ok td:first-child { border-bottom-left-radius: 6px; }
.b-table tr.glast.bad td:first-child { border-bottom-left-radius: 6px; }

.b-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .04em; }
.b-pill.ok { background: rgba(34,197,94,.16); color: #4ade80; border: 1px solid rgba(34,197,94,.45); }
.b-pill.bad { background: rgba(239,90,60,.16); color: #ff8a6b; border: 1px solid rgba(239,90,60,.5); }
.b-sub { color: var(--muted); font-size: .82rem; margin-left: 4px; }
.b-table td.num b { font-weight: 700; }
.b-track { display: block; width: 100%; height: 8px; }
.b-table .barcol { width: 100%; min-width: 120px; position: relative; padding-left: 14px; padding-right: 14px; }
.b-table .barcol::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(14px + (100% - 28px) * var(--p)); width: 0; border-left: 1px solid rgba(255,255,255,.35); pointer-events: none; }
.b-rtlab { position: absolute; left: calc(14px + (100% - 28px) * var(--p)); top: 50%; transform: translate(-50%, -50%); background: #1b1d24; padding: 0 6px; font-size: .7rem; letter-spacing: .05em; color: #fff; z-index: 1; }
.b-table th.barcol::after { display: none; }
.b-table td.num { padding-right: 18px; }
.b-bar { display: block; height: 100%; width: var(--w); border-radius: 4px; transition: width .45s cubic-bezier(.2,.8,.2,1), background-color .45s, box-shadow .45s; }
.b-table tbody tr:hover .b-bar.rok { background: #4ade80; box-shadow: 0 0 10px rgba(74,222,128,.7); }
.b-table tbody tr:hover .b-bar.rbad { background: #ef5a3c; }
.b-table tbody tr:hover .b-bar { width: var(--w2); }
.b-spd { display: flex; flex-direction: column; }
.b-spd .b-p, .b-spd .b-r { transition: none; }
.b-spd .b-p { order: 0; color: #fff; font-weight: 700; }
.b-spd .b-r { order: 1; color: var(--muted); font-size: .8rem; font-weight: 400; margin-top: 2px; }
.b-table tbody tr:hover .b-spd .b-p { color: var(--muted); font-size: .8rem; font-weight: 400; }
.b-table tbody tr:hover .b-spd .b-r { color: #fff; font-size: 1rem; font-weight: 700; }
.b-table tbody tr:hover .b-spd .b-p .b-fast { color: #4ade80; }
#b-blender { table-layout: fixed; }
#b-blender th.first, #b-blender td.first { width: 230px; }
#b-blender th.num, #b-blender td.num { width: 290px; }
@media (max-width: 640px) { #b-blender th.first, #b-blender td.first { width: 40%; } #b-blender th.num, #b-blender td.num { width: 45%; } }
#b-blender td.first { position: static; background: transparent !important; }
.b-bar.ok { background: #22c55e; }
.b-bar.bad { background: #ef5a3c; }

.b-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.b-badge.m { background: rgba(81,236,238,.14); color: #51ecee; border: 1px solid rgba(81,236,238,.4); }
.b-badge.e { background: rgba(255,179,71,.12); color: #ffb347; border: 1px dashed rgba(255,179,71,.6); }
.b-badge.n { background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line); }
.b-cardname { font-weight: 700; margin-bottom: 3px; }

.b-matrix td.first, .b-matrix th.first { min-width: 190px; }
.b-heat { display: inline-block; min-width: 76px; text-align: center; padding: 5px 8px; border-radius: 8px; font-weight: 700; }
.b-heat.est { font-style: italic; font-weight: 600; outline: 1px dashed rgba(255,179,71,.6); outline-offset: -1px; }
.b-table tr.sel td { background: rgba(255,59,59,.13) !important; }
.b-table tr.sel td.first { box-shadow: inset 4px 0 0 #ff3b3b; }

.b-picker { margin-top: 20px; max-width: 520px; }
.b-picker label { display: block; font-weight: 600; margin-bottom: 6px; }
.b-combo { position: relative; }
.b-combo input { width: 100%; padding: 12px 14px; font-size: 1rem; }
.b-combo ul { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px); max-height: 300px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: #1b1d24; border: 1px solid var(--muted); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.b-combo li { padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.b-combo li:hover, .b-combo li.act { background: rgba(255,59,59,.18); }
.b-combo li.custom { color: #ffb347; border-top: 1px solid var(--line); margin-top: 4px; }
.b-result { margin-top: 20px; }
.b-rhead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.b-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.b-tile { background: #0f1015; border: 1px solid var(--line); border-left-width: 4px; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.b-tile.ok { border-left-color: #22c55e; }
.b-tile.bad { border-left-color: #ef5a3c; }
.b-tile.est { border-style: dashed; border-left-style: solid; }
.b-tile .t { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.b-tile b { font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.b-tile.none b { font-size: 1.1rem; color: var(--muted); }
.b-tile .s, .b-tile .d { font-size: .85rem; color: var(--muted); }
.b-note { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(255,179,71,.08); border: 1px dashed rgba(255,179,71,.5); color: #ffcf8a; font-size: .9rem; }

.b-empty { margin-top: 14px; padding: 28px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; background: #0f1015; }
.b-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 18px; margin-top: 22px; }
.b-chart { background: #0f1015; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.b-chart svg { display: block; width: 100%; height: auto; margin-top: 8px; }
.b-chart .tick { fill: #9a9daa; font-size: 11px; font-family: inherit; }
.b-chart .bar { fill: #ff3b3b; }
.b-chart .bar2 { fill: #51ecee; }
.b-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-top: 20px; }
.b-how > div { background: #0f1015; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.b-how pre { margin: 10px 0 0; padding: 12px 14px; background: #0b0b0e; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.b-how code, .narrow code { font-size: .9rem; }
.b-mpill { display: none; margin-top: 5px; white-space: normal; }
@media (max-width: 640px) {
  .hm { display: none; }
  .b-mpill { display: block; }
  .b-table .barcol { min-width: 80px; }
  .b-table td.first { white-space: normal; }
  .b-card { padding: 18px 14px; border-radius: 16px; }
  .b-filter { width: 100%; }
  .b-tools { width: 100%; }
  .b-table th, .b-table td { padding: 9px 10px; }
  .b-tiles { grid-template-columns: 1fr 1fr; }
  .b-tile b { font-size: 1.4rem; }
}
