.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 30;
  inset: 8px auto auto 8px;
  padding: 12px 16px;
  border-radius: 4px;
  background: #173b30;
  color: #fff;
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus {
  transform: none;
}

.catalog-page > main {
  flex: none;
}

.catalog-page > .site-footer {
  margin-block-start: auto;
}

a:focus-visible, button:focus-visible, input:focus-visible, video:focus-visible {
  outline: 3px solid #a54c21;
  outline-offset: 3px;
}

.feature :is(a, button):focus-visible,
.skip-link:focus-visible {
  outline-color: #ffbd86;
}

:where(a, button) {
  touch-action: manipulation;
}

footer img {
  height: auto;
}

footer a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.filters button:not(.active):hover {
  background: #e9ebdf;
}

.heroWords h2 {
  font: normal clamp(58px, 5.45vw, 88px)/.97 Georgia, serif;
  letter-spacing: -.065em;
  margin: 0;
  overflow-wrap: anywhere;
}

.feature.has-changed .slideCopy.is-active h2 {
  animation: title-arrive 520ms cubic-bezier(.18,.8,.22,1) both;
}

.pager button {
  min-width: 34px;
  min-height: 34px;
}

.pager, .duration {
  font-variant-numeric: tabular-nums;
}

.slideArt :is(.artTop, .artCaption) span:first-child {
  padding: 5px 7px;
  border-radius: 3px;
  background: #14231ce8;
  color: white;
  text-shadow: none;
}

.slideArt :is(.cross, .corner) {
  color: white;
  text-shadow: 0 1px 4px #17251c;
}

.card {
  position: relative;
}

.card .launch {
  display: block;
  border-radius: 4px;
}

.card .launch:hover h3 {
  text-decoration: underline;
  text-underline-offset: .14em;
}

.card .save {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid #57635c;
}

.card .save:hover {
  background: #fff;
}

.card .save[aria-disabled="true"] {
  cursor: progress;
}

.catalog-status {
  margin-block: 0;
}

.catalog-status:not(:empty) {
  margin-top: 12px;
  color: #77321c;
}

.catalog-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 20px);
  margin-top: clamp(24px, 4vw, 36px);
  padding-top: 16px;
  border-top: 1px solid #d9d9cd;
}

.catalog-pager button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 90px;
  padding-inline: 9px;
  border: 1px solid #234738;
  border-radius: 5px;
  background: #234738;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}

.catalog-pager button:enabled:hover {
  background: #173b30;
}

.catalog-pager button:disabled {
  border-color: #cecec1;
  background: transparent;
  color: #657064;
  cursor: default;
}

.catalog-page-number {
  color: #3d5146;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

dialog {
  overscroll-behavior: contain;
}

.close:hover {
  border-radius: 4px;
  background: #e9ebdf;
}

.lessonInfo a:hover {
  color: #7f3a1a;
}

.lessonInfo a {
  min-height: 24px;
  overflow-wrap: anywhere;
}

.lesson-frame {
  position: relative;
}

#lessonStatus {
  position: absolute;
  inset: 0 0 auto;
  margin: 0;
  padding: .8rem 1rem;
  border-radius: 8px 8px 0 0;
  background: #f9ecdc;
  color: #77321c;
}

#lessonStatus:empty {
  padding: 0;
}

@media (max-width: 950px) {
  .heroWords h2 {
    font-size: clamp(44px, 6.4vw, 66px);
  }
}

@media (max-width: 650px) {
  .featureBottom {
    gap: 6px;
    padding-top: 10px;
  }

  .feature .pager {
    flex: none;
    display: grid;
    grid-template-columns: 44px minmax(2.5rem, auto) 44px;
    align-items: center;
    gap: 0;
    color: #f6f2e5;
  }

  .feature .pager[hidden] {
    display: grid !important;
  }

  .feature .pager button {
    display: grid;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #69867a;
    border-radius: 50%;
    background: #ffffff0d;
    font-size: 21px;
    line-height: 1;
  }

  .feature .pager button:active {
    border-color: #f1bd93;
    background: #f1bd93;
    color: #173b30;
  }

  .feature #position {
    text-align: center;
    white-space: nowrap;
    letter-spacing: .03em;
  }

  .feature #heroMeta {
    font-variant-numeric: tabular-nums;
  }

  .catalog .sectionHeading {
    flex-wrap: wrap;
    gap: 4px 14px;
  }

  .heroWords h2 {
    font-size: clamp(39px, 11.5vw, 50px);
  }

  .heroWords h2 br {
    display: none;
  }

  .heroWords h2 em::before {
    content: ' ';
  }
}

@media (max-width: 360px) {
  #grid {
    --columns: 1;
    row-gap: 20px;
  }

  .catalog-pager button {
    min-width: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature.has-changed .slideCopy.is-active h2 {
    animation: none;
  }
}

@media (forced-colors: active) {
  .filters button[aria-pressed="true"] {
    forced-color-adjust: none;
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
  }

  .catalog-pager button:disabled {
    color: GrayText;
    border-color: GrayText;
  }
}


/* Fit resource links to the width of the dialog. */

#lesson .lessonInfo { container-type: inline-size; }
#lesson .moment-bar { flex-wrap: wrap; }
#lesson .moment-list-toggle { margin-inline-start: auto; }
.lesson-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #d6d8cc;
}
.lesson-actions #resources { display: contents; }
.lessonInfo .lesson-actions a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 8px 12px;
  box-sizing: border-box;
  border: 1px solid #c4c9bb;
  border-radius: 6px;
  background: #f9f8f2;
  color: #234536;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: normal;
  text-decoration: none;
}
.lesson-actions svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lesson-actions #resources a:first-child { background: #234536; border-color: #234536; color: white; }
.lesson-actions #resources a:first-child:hover { background: #153428; }
.lessonInfo .lesson-actions a:hover { background: #e8ecdf; border-color: #889781; }
@container (min-width: 27rem) {
  .lesson-actions:has(#resources > a:nth-child(3):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36rem) {
  .catalog .filters,
  .catalog .filters[hidden] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .catalog .filters button {
    min-height: 44px;
    padding: 8px 10px;
  }
  .catalog .filters button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.personal-library {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-content:start;
}
.personal-library .sectionHeading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:clamp(22px,3.6vw,52px) clamp(18px,4vw,58px) 0;
  border-radius:12px 12px 0 0;
  background:#193c32;
  color:#fff8ea;
}
.personal-library .sectionHeading .count {
  flex:none;
  min-inline-size:9.5rem;
  padding:7px 12px;
  border:1px solid #658275;
  border-radius:2rem;
  color:#ede4cd;
  text-align:center;
}
.personal-library #libraryGuide {
  margin:0 0 clamp(24px,3vw,42px);
  padding:12px clamp(18px,4vw,58px) clamp(22px,3.6vw,52px);
  background:#193c32;
  color:#dce6da;
  border-radius:0 0 12px 12px;
  line-height:1.55;
}
.personal-library #discoverTitle {
  margin:0 0 18px;
  font:normal clamp(24px,2vw,33px)/1.2 Georgia,serif;
  letter-spacing:-.035em;
}
.personal-library .filters:not([hidden]) {margin-top:0}
.personal-library .filters[hidden] {display:none!important}
@media(max-width:480px) {
  .personal-library .sectionHeading {flex-direction:column;align-items:flex-start;gap:8px}
  .personal-library .sectionHeading .count {padding:5px 8px}
}

[data-library-pending] #classes > :not(.sectionHeading,#libraryGuide) {display:none!important}
@media (scripting: enabled) {
  [data-library-pending] > .site-footer {visibility:hidden}
}
.feature .pager button{display:grid;place-items:center}.feature .pager button svg{display:block}
