/* Only used by the rhythm summary on page 6670. */
.mdl-rhythm-summary {
  box-sizing: border-box;
  width: 100%;
  max-width: 460px;
  margin: 1.5rem auto 2rem;
  padding: 16px;
  border: 1px solid #dce5d9;
  border-radius: 1.5rem;
  background: #f7faf4;
  color: #20221f;
  text-align: left;
}
.mdl-rhythm-summary *,
.mdl-rhythm-summary *::before,
.mdl-rhythm-summary *::after { box-sizing: border-box; }
.mdl-rhythm-summary .mdl-rhythm-summary__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.mdl-rhythm-summary .mdl-rhythm-summary__intro,
.mdl-rhythm-summary .mdl-rhythm-summary__hint {
  margin: 0 0 .5rem;
  color: #43513f;
  font-size: .8125rem;
  line-height: 1.4;
}
.mdl-rhythm-summary .mdl-rhythm-summary__hint {
  max-width: 420px;
  margin: .5rem auto 0;
  font-size: .75rem;
}
.mdl-rhythm-summary .mdl-rhythm-summary__viewport {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #62754a #e4ecdd;
  -webkit-overflow-scrolling: touch;
}
.mdl-rhythm-summary .mdl-rhythm-summary__track {
  display: flex;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mdl-rhythm-summary .mdl-rhythm-summary__slide {
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  list-style: none;
}
.mdl-rhythm-summary .mdl-rhythm-summary__slide::before { content: none; }
.mdl-rhythm-summary .mdl-rhythm-summary__figure { margin: 0; padding: 0; }
.mdl-rhythm-summary .mdl-rhythm-summary__artwork { position: relative; }
.mdl-rhythm-summary .mdl-rhythm-summary__image {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 3 / 4;
  margin: 0;
  border: 1px solid #dce5d9;
  border-radius: 1rem;
  background: #fff;
  object-fit: contain;
}
.mdl-rhythm-summary .mdl-rhythm-summary__logo {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: block;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-image: var(--mdl-rhythm-summary-logo);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.mdl-rhythm-summary .mdl-rhythm-summary__lesson-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  min-height: 44px;
  margin: .5rem auto 0;
  padding: .65rem .75rem;
  border: 1px solid #d4f45b;
  border-radius: .75rem;
  background: #d4f45b;
  color: #20221f;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.mdl-rhythm-summary .mdl-rhythm-summary__lesson-link:hover {
  border-color: #20221f;
  background: #e1fa8e;
  color: #20221f;
}
.mdl-rhythm-summary .mdl-rhythm-summary__lesson-link:focus-visible {
  outline: 3px solid #506d16;
  outline-offset: 3px;
}
.mdl-rhythm-summary .mdl-rhythm-summary__keyboard-hint { display: none; }
.mdl-rhythm-summary.is-initialized .mdl-rhythm-summary__keyboard-hint { display: inline; }
.mdl-rhythm-summary .mdl-rhythm-summary__controls {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
  max-width: 420px;
  margin: .5rem auto 0;
}
.mdl-rhythm-summary.is-initialized .mdl-rhythm-summary__controls { display: grid; }
.mdl-rhythm-summary .mdl-rhythm-summary__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: .6rem .65rem;
  border: 1px solid #20221f;
  border-radius: .75rem;
  background: #20221f;
  color: #fff;
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  white-space: normal;
}
.mdl-rhythm-summary .mdl-rhythm-summary__button:hover:not(:disabled) {
  border-color: #20221f;
  background: #d4f45b;
  color: #20221f;
}
.mdl-rhythm-summary .mdl-rhythm-summary__button:disabled {
  border-color: #c3cdbd;
  background: #e7ede1;
  color: #596450;
  cursor: default;
}
.mdl-rhythm-summary .mdl-rhythm-summary__button:focus-visible,
.mdl-rhythm-summary .mdl-rhythm-summary__viewport:focus-visible {
  outline: 3px solid #506d16;
  outline-offset: 3px;
}
.mdl-rhythm-summary .mdl-rhythm-summary__counter {
  min-width: 3.25rem;
  color: #20221f;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 600px) {
  .mdl-rhythm-summary {
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .mdl-rhythm-summary .mdl-rhythm-summary__viewport,
  .mdl-rhythm-summary .mdl-rhythm-summary__image,
  .mdl-rhythm-summary .mdl-rhythm-summary__controls,
  .mdl-rhythm-summary .mdl-rhythm-summary__lesson-link,
  .mdl-rhythm-summary .mdl-rhythm-summary__hint { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mdl-rhythm-summary .mdl-rhythm-summary__viewport { scroll-behavior: auto; }
}
