/* FIVE MODEL IMAGE LAB — benchmark layout and accessible flat mobile table. */
.benchmark-page .benchmark-split {
  display:block;
  font-size:clamp(14px,1.7vw,20px);
  line-height:1.45;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
  font-weight:850;
  font-variant-numeric:tabular-nums;
}
.benchmark-page .metrics-ribbon>div:nth-child(2) { min-width:0; }
.benchmark-page .chart-foot { display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-weight:650; }
.benchmark-page .benchmark-reading {
  background:transparent;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:27px 0 25px;
  margin-top:36px;
  margin-bottom:12px;
}
.benchmark-reading-heading { display:flex;align-items:center;gap:12px;margin-bottom:18px; }
.benchmark-reading-heading>span {
  display:grid;place-items:center;
  width:28px;height:28px;flex:0 0 28px;
  border-radius:50%;border:1px solid var(--primary);
  color:var(--primary);font-size:14px;font-weight:900;
}
.benchmark-reading h3 { color:var(--text);font-size:clamp(17px,2vw,22px);margin:0;letter-spacing:-.025em; }
.benchmark-reading-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px; }
.benchmark-reading-grid article { min-width:0; }
.benchmark-reading-grid h4 {font-size:14px;font-weight:850;margin:0 0 7px;color:var(--primary)}
.benchmark-reading-grid p {font-size:13px;line-height:1.75;color:var(--muted);margin:0;max-width:650px}
.benchmark-reading-note {margin:18px 0 0;color:var(--muted);font-size:12px;line-height:1.7}
/* Desktop: numeric headers and numeric cells use exactly the same alignment. */
.benchmark-page .data-table-panel { min-width:0; }
.benchmark-page .benchmark-tablewrap { width:100%;overflow-x:auto;overscroll-behavior-x:contain; }
.benchmark-page .benchmark-table {
  width:100%;min-width:980px;table-layout:fixed;
  border-collapse:collapse;border-spacing:0;
  font-variant-numeric:tabular-nums;
}
.benchmark-page .benchmark-table thead th {
  text-align:left;vertical-align:bottom;
  padding:17px 11px 16px;
  line-height:1.48;font-size:11px;font-weight:800;
  white-space:normal;overflow-wrap:normal;
  border-bottom:1px solid var(--line);
  background:var(--surface2);color:var(--muted);
}
.benchmark-page .benchmark-table tbody th,
.benchmark-page .benchmark-table tbody td {
  padding:18px 11px;line-height:1.5;
  vertical-align:middle;font-size:12px;
  border-bottom:1px solid var(--line);
  background:var(--surface);color:var(--text);
}
.benchmark-page .benchmark-table th.metric-numeric,
.benchmark-page .benchmark-table td.metric-numeric {text-align:right;}
.benchmark-page .benchmark-table tbody th.metric-model {text-align:left;font-weight:850;font-size:13px;overflow-wrap:anywhere;}
.benchmark-page .benchmark-table td.metric-numeric {white-space:nowrap;}
.benchmark-page .benchmark-table td.metric-config {text-align:left;overflow-wrap:anywhere;}
.benchmark-page .benchmark-table tbody tr:last-child th,
.benchmark-page .benchmark-table tbody tr:last-child td {border-bottom:0;}
.benchmark-page .benchmark-table tbody tr:hover th,
.benchmark-page .benchmark-table tbody tr:hover td {background:var(--surface2);}
.benchmark-page .benchmark-units {
  margin:0;padding:13px 17px 17px;font-size:11px;line-height:1.6;color:var(--muted);
  border-top:1px solid var(--line);
}
@media(max-width:860px){
  .benchmark-reading-grid {grid-template-columns:1fr;gap:19px;}
  .benchmark-page .data-table-panel {border:0;border-radius:0;box-shadow:none;background:transparent;overflow:visible;padding:0;}
  .benchmark-page .benchmark-tablewrap {overflow:visible;border:0;background:transparent;}
  .benchmark-page .benchmark-table,
  .benchmark-page .benchmark-table tbody {display:block;min-width:0;width:100%;}
  .benchmark-page .benchmark-table colgroup {display:none;}
  .benchmark-page .benchmark-table thead {
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;
  }
  .benchmark-page .benchmark-table tbody tr {
    display:block;margin:0;padding:13px 0 16px;
    border:0;border-bottom:1px solid var(--line);
    border-radius:0;background:transparent;box-shadow:none;
  }
  .benchmark-page .benchmark-table tbody tr:first-child{border-top:1px solid var(--line);}
  .benchmark-page .benchmark-table tbody th.metric-model {
    display:block;padding:10px 0 14px;font-size:16px;font-weight:900;
    border:0;text-align:left;background:transparent;color:var(--text);
  }
  .benchmark-page .benchmark-table tbody td {
    display:grid;grid-template-columns:minmax(0,1fr) max-content;
    align-items:baseline;gap:12px;
    width:100%;padding:10px 0;
    border:0;border-top:1px solid var(--line);
    border-radius:0;background:transparent;box-shadow:none;
    text-align:right!important;font-size:12px;
    white-space:normal;
    min-width:0;
  }
  .benchmark-page .benchmark-table tbody td::before {
    content:attr(data-label);display:block;text-align:left;
    color:var(--muted);font-weight:650;font-size:12px;
    overflow-wrap:anywhere;min-width:0;
  }
  .benchmark-page .benchmark-table tbody td.metric-config {overflow-wrap:anywhere;}
  .benchmark-page .benchmark-table tbody tr:hover th,
  .benchmark-page .benchmark-table tbody tr:hover td {background:transparent;}
  .benchmark-page .benchmark-units {padding:14px 0;border:0;font-size:11px;}
}
@media(max-width:560px){
  .benchmark-page .metrics-ribbon {grid-template-columns:1fr;}
  .benchmark-page .metrics-ribbon>div,
  .benchmark-page .metrics-ribbon>div:nth-child(2),
  .benchmark-page .metrics-ribbon>div:last-child {
    grid-column:auto;border-right:0;border-bottom:1px solid var(--line);padding:14px 18px;
  }
  .benchmark-page .metrics-ribbon>div:last-child {border-bottom:0;}
  .benchmark-page .benchmark-split {font-size:18px;}
  .benchmark-page .benchmark-reading {margin-top:28px;padding:21px 0;}
  .benchmark-page .benchmark-table tbody td {gap:8px;font-size:11px;}
  .benchmark-page .benchmark-table tbody td::before {font-size:11px;}
}