/**
 * Version 4.4.5: Teaching Evidence return control and course-guide image.
 *
 * The bottom return action had inherited a block layout from the full-width
 * Teaching Evidence repair layer. That made its link occupy the complete
 * article width. Restore a compact content-sized control while retaining a
 * comfortable touch target and safe wrapping on narrow screens.
 */

body.had-teaching-reader.had-theme .had-teaching-evidence-single-screen .had-blog-single-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 28px 0 0 !important;
  padding: 22px 0 0 !important;
  border-top: 1px solid #d0dfe3 !important;
  text-align: left !important;
}

body.had-teaching-reader.had-theme .had-teaching-evidence-single-screen .had-blog-single-actions > a {
  display: inline-flex !important;
  flex: 0 1 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: min(100%, 430px) !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid #08798a !important;
  background: #08798a !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}

body.had-teaching-reader.had-theme .had-teaching-evidence-single-screen .had-blog-single-actions > a:hover,
body.had-teaching-reader.had-theme .had-teaching-evidence-single-screen .had-blog-single-actions > a:focus-visible {
  background: #065f68 !important;
  border-color: #065f68 !important;
}

body.had-teaching-reader.had-theme .had-teaching-evidence-single-screen .had-blog-single-actions > a .dashicons {
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
  font-size: 16px !important;
  line-height: 16px !important;
}

/* The new 773 x 287 official study-guide crop should be displayed completely. */
body.had-teaching-reader.had-theme .had-teaching-evidence-single-screen .had-evidence-official-v440 img {
  display: block !important;
  width: min(100%, 773px) !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 773 / 287 !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 600px) {
  body.had-teaching-reader.had-theme .had-teaching-evidence-single-screen .had-blog-single-actions > a {
    max-width: 100% !important;
    min-height: 44px !important;
    padding: 11px 13px !important;
    font-size: 10px !important;
  }
}
