/* --- Expanded detail row (Landscape) ---------------------- */
.t-detail { display: none; }
.t-detail.open { display: table-row; }
.t-row.expanded { background: var(--bg-1) !important; }
.t-row.expanded .t-chev { color: var(--accent); }
.t-detail td { padding: 0; background: var(--bg-1); border-bottom: 1px solid var(--line); }
.t-detail-inner {
  padding: 20px 24px 24px 58px;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 32px;
}
.t-detail-h {
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.t-detail-h::before { content: "// "; }
.t-detail-about p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.65;
}
.t-detail-links {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 11px;
}
.t-detail-links a { color: var(--ink-dim); border-bottom: 1px solid transparent; }
.t-detail-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.t-detail-toolchain { display: flex; flex-direction: column; gap: 24px; }
.t-detail-section + .t-detail-section { padding-top: 4px; }

/* Inline bullet-separated tool list — single wrapped row of clickable names. */
.t-dt-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 12.5px;
  line-height: 1.7;
}
.t-dt-name {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
a.t-dt-name { color: var(--ink); }
a.t-dt-name:hover { color: var(--accent); border-bottom-color: var(--accent); }
.t-dt-sep { color: var(--ink-muted); }

/* --- Testing detail row (unified) ------------------------- */
.t-detail .methodology { margin-top: 20px; }
.t-detail .m-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.t-detail .m-tab {
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: lowercase;
  letter-spacing: 0.4px;
  padding: 6px 14px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.t-detail .m-tab:hover { color: var(--ink); }
.t-detail .m-tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.t-detail .methodology-content { display: none; }
.t-detail .methodology-content.open { display: block; }

/* Panel header: badge + name + type glyph */
.t-detail .m-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--ink);
}
.t-detail .m-head-name { font-weight: 550; color: var(--ink); }
.t-detail .m-head-score {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-muted);
}

/* Meta pills — replaces all the inline #21262d pills */
.t-detail .m-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
}
.t-detail .m-meta li {
  padding: 2px 8px;
  color: var(--ink-dim);
  background: var(--bg-2);
  border: 1px solid var(--line);
}

/* The list primitive */
.t-detail .m-list { list-style: none; margin: 0; padding: 0; }
.t-detail .m-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
.t-detail .m-list-grid .m-group + .m-group { margin-top: 0; }
@media (max-width: 900px) {
  .t-detail .m-list-grid { grid-template-columns: 1fr; }
  .t-detail .m-list-grid .m-group + .m-group { margin-top: 14px; }
}
.t-detail .m-group + .m-group { margin-top: 14px; }
.t-detail .m-group-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.t-detail .m-items { list-style: none; margin: 0; padding: 0; }
.t-detail .m-items--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.t-detail .m-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 3px 0;
  font-size: 12px;
  color: var(--ink-dim);
}
.t-detail .m-ico {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-align: center;
  color: var(--ink-muted);
}
.t-detail .m-label { color: var(--ink); }
.t-detail .m-why { display: none; color: var(--ink-dim); margin-left: 6px; }
.t-detail .m-why.visible { display: inline; }

.t-detail .m-item.is-pass    .m-ico { color: var(--accent); }
.t-detail .m-item.is-partial .m-ico { color: var(--warn);   }
.t-detail .m-item.is-fail    .m-ico { color: var(--red);    }
.t-detail .m-item.is-blocked .m-ico { color: var(--ink-muted); }
.t-detail .m-item.is-na      .m-ico { color: var(--ink-muted); }

/* Findings / blockers */
.t-detail .m-findings { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.t-detail .m-findings + .m-findings { margin-top: 8px; border-top: 0; padding-top: 0; }
.t-detail .m-findings-h {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  color: var(--ink);
}
.t-detail .m-findings-red .m-findings-h { color: var(--red); }
.t-detail .m-findings ul { list-style: none; margin: 0; padding-left: 10px; font-size: 11px; color: var(--ink-dim); }
.t-detail .m-findings ul li::before { content: "· "; color: var(--ink-muted); }
.t-detail .m-findings-red ul li { color: color-mix(in srgb, var(--red) 70%, var(--ink-dim)); }

/* Show details toggle */
.t-detail .m-show-more {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--line);
  padding: 4px 10px;
  margin-top: 12px;
  cursor: pointer;
}
.t-detail .m-show-more:hover { color: var(--ink); border-color: var(--line-2); }

/* --- Tighter detail layout (less width for description) --- */
.t-detail-inner { grid-template-columns: 1fr 2fr; }
.t-detail-about p { max-width: 480px; }

/* --- Testing methodology overview (restored) -------------- */
.t-methodology {
  border: 1px solid var(--line);
  background: var(--bg-1);
  margin: 18px 0 22px;
}
.t-methodology-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.t-methodology-summary::-webkit-details-marker { display: none; }
.t-methodology-chev { color: var(--accent); width: 12px; transition: transform 0.15s; }
.t-methodology[open] .t-methodology-chev { transform: rotate(90deg); }
.t-methodology-title { color: var(--ink); font-size: 12px; letter-spacing: 0.4px; }
.t-methodology-meta  { color: var(--ink-muted); font-size: 10.5px; margin-left: auto; }
.t-methodology-body {
  border-top: 1px solid var(--line);
  padding: 18px 24px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
}
@media (max-width: 900px) { .t-methodology-body { grid-template-columns: 1fr; } }
.t-methodology-section { min-width: 0; }
.t-methodology-section .t-detail-h {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ink);
  margin-bottom: 8px;
  text-transform: none;
}
.t-methodology-section .t-detail-h::before { content: none; }
.t-methodology-lede {
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.55;
  margin: 0 0 12px;
  max-width: 56ch;
}
.t-methodology-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--ink-muted);
  align-items: center;
}
.t-methodology-scale .t-grade { margin-right: 4px; }

/* The unified .m-list primitive is used inside the methodology panel too —
   scope its inner-cell tokens so they render outside .t-detail as well. */
.t-methodology .m-list { list-style: none; margin: 0; padding: 0; }
.t-methodology .m-group + .m-group { margin-top: 14px; }
.t-methodology .m-group-label {
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.t-methodology .m-items { list-style: none; margin: 0; padding: 0; }
.t-methodology .m-items--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.t-methodology .m-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 3px 0;
  font-size: 12px;
  color: var(--ink-dim);
}
.t-methodology .m-ico {
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 11px;
  text-align: center;
  color: var(--ink-muted);
}
.t-methodology .m-label { color: var(--ink); }
.t-methodology .m-why { display: none; color: var(--ink-dim); margin-left: 6px; }
.t-methodology .m-why.visible { display: inline; }
.t-methodology .m-show-more {
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 10px;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--line);
  padding: 4px 10px;
  margin-top: 12px;
  cursor: pointer;
}
.t-methodology .m-show-more:hover { color: var(--ink); border-color: var(--line-2); }
