/* Standalone performance modules; existing site tables are unaffected. */
.au-performance,
.au-performance-links {
  --au-performance-ink: #143c34;
  --au-performance-green: #136654;
  --au-performance-muted: #4a5c56;
  --au-performance-border: #dce3de;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  color: var(--au-performance-ink);
  overflow-wrap: anywhere;
}

.au-performance *,
.au-performance *::before,
.au-performance *::after,
.au-performance-links *,
.au-performance-links *::before,
.au-performance-links *::after {
  box-sizing: border-box;
}

.au-performance {
  width: 100%;
  max-width: 1100px;
  margin: 48px auto;
  background: #fff;
  line-height: 1.8;
}

.au-performance h2,
.au-performance h3,
.au-performance h4 {
  color: var(--au-performance-ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.au-performance h2 { margin: 0 0 14px; font-size: clamp(23px, 3vw, 30px); }
.au-performance h3 { margin: 0 0 16px; font-size: clamp(20px, 2.5vw, 24px); }
.au-performance h4 { margin: 0 0 10px; font-size: 17px; }
.au-performance p { margin: 0 0 14px; }

.au-performance-intro {
  max-width: 78ch;
  margin: 0 0 24px;
  color: var(--au-performance-muted);
  font-size: 15px;
}

.au-performance a {
  color: var(--au-performance-green);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.au-performance a:focus-visible,
.au-performance summary:focus-visible,
.au-performance .au-table-scroll:focus-visible,
.au-performance-links a:focus-visible {
  outline: 3px solid #538c76;
  outline-offset: 4px;
}

.au-performance-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  margin: 0 0 30px;
  padding: 0;
}

.au-performance-nav a {
  display: block;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--au-performance-border);
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.au-performance-nav a:hover { border-color: var(--au-performance-green); }

.au-performance .au-test-group {
  min-width: 0;
  max-width: 100%;
  margin: 0 0 30px;
  padding: 26px;
  border: 1px solid var(--au-performance-border);
  border-radius: 6px;
  background: #fff;
  scroll-margin-top: 100px;
}

.au-performance .au-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
  margin: 20px 0;
}

.au-performance .au-chart-grid > :only-child { grid-column: 1 / -1; }

.au-performance .au-chart {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--au-performance-border);
  border-radius: 4px;
  background: #fff;
}

.au-performance .au-chart > a {
  display: block;
  max-width: 100%;
  border-radius: 4px 4px 0 0;
  background: #fff;
  text-decoration: none;
  cursor: zoom-in;
}

.au-performance .au-chart img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  background: #fff;
}

.au-performance .au-chart figcaption {
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--au-performance-border);
  color: var(--au-performance-muted);
  font-size: 13px;
  line-height: 1.75;
  text-align: left;
}

.au-performance .au-chart figcaption p:last-child { margin-bottom: 0; }

.au-performance dl.au-test-conditions,
.au-performance .au-test-conditions > dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  min-width: 0;
  margin: 20px 0 0;
  padding: 0;
}

.au-performance .au-test-conditions > div,
.au-performance .au-test-conditions > dl > div {
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid var(--au-performance-border);
}

.au-performance .au-test-conditions dt {
  margin: 0 0 3px;
  color: var(--au-performance-ink);
  font-size: 13px;
  font-weight: 700;
}

.au-performance .au-test-conditions dd {
  margin: 0;
  color: var(--au-performance-muted);
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.au-performance .au-test-note {
  margin: 20px 0 0;
  padding: 0 0 0 14px;
  border-left: 3px solid var(--au-performance-green);
  color: var(--au-performance-muted);
  font-size: 13px;
  line-height: 1.8;
}

.au-performance details.au-test-source {
  min-width: 0;
  margin: 20px 0 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--au-performance-border);
  background: #fff;
  color: var(--au-performance-muted);
  font-size: 13px;
}

.au-performance .au-test-source > summary {
  width: fit-content;
  max-width: 100%;
  color: var(--au-performance-green);
  font-weight: 600;
  line-height: 1.7;
  cursor: pointer;
}

.au-performance .au-test-source[open] > summary { margin-bottom: 12px; }
.au-performance .au-test-source > :last-child { margin-bottom: 0; }

.au-performance-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 16px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.au-performance-links > * { min-width: 0; max-width: 100%; }

.au-performance-links > a,
.au-performance-links > li > a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  border: 1px solid var(--au-performance-border);
  border-radius: 4px;
  background: #fff;
  color: var(--au-performance-ink);
  font-size: 15px;
  line-height: 1.65;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.au-performance-links > a:hover,
.au-performance-links > li > a:hover { border-color: var(--au-performance-green); }
.au-performance-links strong { color: var(--au-performance-green); font-size: 16px; }
.au-performance-links p,
.au-performance-links small { margin: 0; color: var(--au-performance-muted); font-size: 13px; }

.au-performance .au-table-scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--au-performance-border);
  border-radius: 4px;
  background: #fff;
}

.au-performance .au-table-scroll table {
  width: 100%;
  min-width: 540px;
  max-width: none;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: auto;
  background: #fff;
  color: var(--au-performance-ink);
  font-size: 14px;
  line-height: 1.65;
}

.au-performance .au-table-scroll th,
.au-performance .au-table-scroll td {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--au-performance-border);
  background: #fff;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}

.au-performance .au-table-scroll thead th { color: var(--au-performance-green); font-weight: 700; }
.au-performance .au-table-scroll tbody tr:last-child > * { border-bottom: 0; }
.au-performance .au-table-scroll caption { padding: 12px 14px; color: var(--au-performance-muted); text-align: left; }

@media (max-width: 760px) {
  .au-performance { margin-block: 32px; }
  .au-performance .au-test-group { padding: 20px; }
  .au-performance .au-chart-grid,
  .au-performance dl.au-test-conditions,
  .au-performance .au-test-conditions > dl { grid-template-columns: minmax(0, 1fr); }
  .au-performance .au-chart-grid { gap: 16px; }
}

@media (max-width: 480px) {
  .au-performance .au-test-group { padding: 16px 12px; margin-bottom: 22px; }
  .au-performance-nav { gap: 8px; }
  .au-performance-nav a { padding: 8px 11px; font-size: 13px; }
  .au-performance .au-chart figcaption { padding: 12px; }
  .au-performance-links { grid-template-columns: minmax(0, 1fr); }
  .au-performance-links > a,
  .au-performance-links > li > a { padding: 16px; }
}

/* Full-width library plots keep translated labels readable at the reading-column width. */
.technical .au-performance .au-chart-grid{grid-template-columns:minmax(0,1fr)}
