/* Nebraska volleyball post. Follows the site theme in styles/main.css:
   flat borders, no rounded corners or shadows, Times body, Courier for data.
   Chart colors: site red #cc0000 (Nebraska / won) and navy-blue #2a4bb8
   (opponent / lost), checked for color-vision-deficiency separation on the
   cream chart panel. */

article {
  display: flow-root;
}

.vb-logos {
  float: right;
  display: flex;
  gap: 8px;
  margin: 0.25rem 0 0.75rem 1rem;
}

.vb-logos img {
  width: 64px;
  height: 64px;
  padding: 4px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border);
}

.vb-summary {
  width: auto;
  min-width: 18rem;
  margin: 1rem 0 1.5rem;
}

.vb-summary th {
  text-align: left;
  font-weight: normal;
  background: var(--panel-3);
}

.vb-summary td {
  font-family: var(--font-pixel);
}

.vb-figure {
  margin: 0.75rem 0 1.75rem;
  padding: 10px;
  background: #f9f3e6;
  border: 1px solid #a7a099;
}

.vb-figure figcaption {
  margin-top: 8px;
  font-size: 0.95rem;
}

.vb-chart {
  position: relative;
  width: 100%;
}

.vb-chart svg {
  display: block;
  overflow: visible;
}

.vb-chart .vb-empty {
  margin: 1rem 0;
  font-style: italic;
}

.vb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.vb-legend .vb-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.vb-legend svg {
  display: block;
}

.vb-controls {
  margin: 0 0 8px;
}

.vb-controls select {
  font: inherit;
  max-width: 100%;
}

.vb-chart text {
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  fill: #4f4a40;
}

.vb-chart text.vb-num {
  font-family: var(--font-pixel);
  font-size: 11px;
}

.vb-chart text.vb-strong {
  fill: #000000;
  font-weight: bold;
}

.vb-chart text.vb-dim {
  fill: #8a8274;
}

.vb-grid line {
  stroke: #ddd3bf;
  shape-rendering: crispEdges;
}

.vb-axis-line {
  stroke: #9a948b;
  shape-rendering: crispEdges;
}

.vb-slot {
  fill: none;
  stroke: #8a8274;
  stroke-dasharray: 3 3;
}

.vb-hit {
  fill: transparent;
}

/* Classic yellow tooltip */
.vb-tip {
  position: fixed;
  z-index: 50;
  max-width: 280px;
  padding: 4px 7px;
  pointer-events: none;
  background: #ffffe1;
  color: #000000;
  border: 1px solid #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.9rem;
  line-height: 1.35;
}

.vb-tip .vb-tip-title {
  font-weight: bold;
}

.vb-tip .vb-tip-key {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  vertical-align: baseline;
}

.vb-tip .vb-tip-note {
  margin-top: 3px;
  font-style: italic;
}

.vb-details {
  margin: 0.75rem 0;
}

.vb-details summary {
  cursor: pointer;
  font-weight: bold;
}

.vb-table-scroll {
  overflow-x: auto;
  margin-top: 8px;
}

.vb-table-scroll table {
  font-size: 0.95rem;
}

.vb-table-scroll th {
  background: var(--panel-3);
  text-align: left;
  white-space: nowrap;
}

.vb-table-scroll td {
  white-space: nowrap;
}

.vb-table-scroll .num {
  text-align: right;
  font-family: var(--font-pixel);
}

.vb-table-scroll tr.vb-not-final td {
  color: var(--ink-dim);
}

.vb-credit {
  margin-top: 1.5rem;
}

@media (max-width: 520px) {
  .vb-logos {
    float: none;
    margin: 0 0 0.75rem;
  }

  .vb-logos img {
    width: 48px;
    height: 48px;
  }

  .vb-summary {
    width: 100%;
    min-width: 0;
  }

  .vb-figure {
    padding: 6px;
  }
}
