/* Totum comparison result styles — complements Tailwind shell */

:root {
  --totum-blue: #00bbff;
  --totum-blue-hover: #0099cc;
}

.block h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.block h3 {
  margin: 1.15rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.block > p {
  margin: 0 0 0.75rem;
  color: #4b5563;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem 1.25rem;
}

.meta-item dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
}

.meta-item dd {
  margin: 0.2rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  color: #111827;
  word-break: break-all;
}

.summary-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #374151;
}

.summary-list li {
  margin-bottom: 0.45rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--totum-blue) 10%, white);
  color: var(--totum-blue);
}

.pill--warn {
  background: #fef3c7;
  color: #a16207;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -0.15rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

th {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}

td.num,
th.num {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

td.metric {
  font-weight: 500;
  color: #111827;
}

.delta-up {
  color: #a16207;
}

.delta-down {
  color: var(--totum-blue-hover);
}

.delta-neutral {
  color: #6b7280;
}

.delta-flag {
  color: #b91c1c;
  font-weight: 600;
}

.dominance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 700px) {
  .dominance {
    grid-template-columns: 1fr;
  }
}

.dominance-panel {
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}

.dominance-panel p {
  margin: 0.35rem 0;
  color: #374151;
}

.dominance-panel .title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: #111827;
}

.note {
  margin: 0.85rem 0 0;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-left: 3px solid var(--totum-blue);
  border-radius: 0 0.75rem 0.75rem 0;
  color: #4b5563;
  font-size: 0.9rem;
}

.note--warn {
  border-left-color: #eab308;
  background: #fefce8;
  color: #713f12;
}

.cue-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 700px) {
  .cue-cols {
    grid-template-columns: 1fr;
  }
}

.cue-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #374151;
}

.cue-list li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.rel-high {
  background: #dcfce7;
}

.rel-moderate {
  background: #eff6ff;
}

.rel-low {
  background: #fef3c7;
}

.rel-verylow {
  background: #fee2e2;
}

.speedup {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 500;
  color: var(--totum-blue);
}

.muted {
  color: #6b7280;
}

.footer-note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.chart-intro {
  margin: 0 0 1rem !important;
}

.chart-group-title {
  margin: 1.5rem 0 0.75rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  font-size: 1rem !important;
  color: #111827;
}

.chart-group-title:first-of-type {
  border-top: none;
  padding-top: 0;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.chart-card {
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}

.chart-card--wide {
  grid-column: 1 / -1;
}

.chart-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.chart-note {
  margin: 0 0 0.65rem !important;
  font-size: 0.8rem;
  color: #6b7280;
}

.chart-wrap {
  position: relative;
  height: 220px;
}

.chart-wrap--tall {
  height: 320px;
}

.chart-wrap--square {
  height: 360px;
}

.chart-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

@media print {
  .chart-card {
    break-inside: avoid;
  }

  .chart-wrap,
  .chart-wrap--tall,
  .chart-wrap--square {
    height: auto;
    min-height: 180px;
  }
}


.status.is-bad {
  color: #b91c1c;
}

@media print {
  body {
    background: #fff !important;
  }

  header,
  .no-print {
    display: none !important;
  }

  main {
    max-width: none !important;
    padding: 0 !important;
  }

  .block {
    break-inside: avoid;
    box-shadow: none !important;
    border-color: #d1d5db !important;
  }

  .table-wrap {
    overflow: visible;
  }
}
