.w11-ahp-implied {
  color: #b2182b;
  font-weight: 600;
}

html[data-theme="dark"] .w11-ahp-implied {
  color: #ff8795;
}

.w11-ahp-scale img {
  min-width: 560px;
}

.w11-ahp-matrix-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.w11-ahp-matrix-pair > div {
  min-width: 0;
  overflow-x: auto;
}

@media (max-width: 700px) {
  .w11-ahp-matrix-pair {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.w11-ahp-walkthrough {
  margin: 1.25rem 0;
}

.w11-ahp-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.w11-ahp-controls[hidden] {
  display: none;
}

.w11-ahp-controls button {
  padding: 0.35rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: 0.25rem;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.w11-ahp-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}

.w11-ahp-controls button:focus-visible {
  outline: 2px solid var(--global-theme-color, #b2182b);
  outline-offset: 3px;
}

.w11-ahp-status {
  flex-basis: 100%;
}

.w11-ahp-walkthrough .mc-teaching-figure {
  margin-top: 0;
}

@media print {
  .w11-ahp-controls,
  .w11-ahp-walkthrough.w11-ahp-ready .w11-ahp-current {
    display: none;
  }

  .w11-ahp-walkthrough .w11-ahp-print {
    display: block !important;
  }
}
