/**
 * Version 4.3.4: reactions, comments and contained full-page readers for all
 * Teaching Portfolio and Pedagogical Practice records.
 */

/* Teaching popups use the same compact engagement-preview treatment as blog
 * popups, while preserving complete featured images such as certificates and
 * the Teaching Philosophy illustration. */
.had-detail-drawer.is-teaching-portfolio-context.is-blog-summary .had-blog-popup-engagement {
  display: block;
}
.had-detail-drawer.is-teaching-portfolio-context.is-blog-summary.has-feature-image .had-record-cover img {
  object-fit: contain;
  background: #eef4f6;
}
.had-detail-drawer.is-teaching-portfolio-context.is-blog-summary.has-feature-image .had-record-cover > span,
.had-detail-drawer.is-teaching-portfolio-context.is-blog-summary.has-feature-image .had-record-cover > b,
.had-detail-drawer.is-teaching-portfolio-context.is-blog-summary.has-feature-image .had-record-cover > em,
.had-detail-drawer.is-teaching-portfolio-context.is-blog-summary.has-feature-image .had-record-cover > i {
  display: none;
}
.had-detail-drawer.is-teaching-portfolio-context.is-blog-summary .had-lead {
  -webkit-line-clamp: 6;
}

/* The Teaching full page uses the same fixed application shell and independent
 * white reader pane as the Blog & Insights full page. */
html.had-document-page body.had-teaching-reader.had-theme {
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
body.had-teaching-reader.had-theme .had-app-shell {
  height: 100dvh !important;
  min-height: 560px !important;
  overflow: hidden !important;
}
body.admin-bar.had-teaching-reader.had-theme .had-app-shell {
  height: calc(100dvh - 32px) !important;
}
body.had-teaching-reader.had-theme .had-shell-body {
  height: calc(100dvh - var(--had-topbar)) !important;
  min-height: 0 !important;
  align-items: stretch !important;
  overflow: hidden !important;
}
body.admin-bar.had-teaching-reader.had-theme .had-shell-body {
  height: calc(100dvh - var(--had-topbar) - 32px) !important;
}
body.had-teaching-reader.had-theme .had-sidebar {
  position: relative !important;
  top: auto !important;
  height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
}
body.had-teaching-reader.had-theme .had-workspace {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
body.had-teaching-reader.had-theme .had-blog-single-screen {
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px 14px 12px !important;
  overflow: hidden !important;
}
body.had-teaching-reader.had-theme .had-blog-single-header {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  padding: 16px clamp(20px, 2.6vw, 38px) 17px;
  border: 1px solid #1d5265;
  background: linear-gradient(145deg, #062838, #075d66);
}
body.had-teaching-reader.had-theme .had-blog-single-header h1 {
  max-width: 1160px;
  margin: 8px 0 10px;
  font-size: clamp(27px, 2.75vw, 46px);
  line-height: 1.06;
  text-wrap: balance;
}
body.had-teaching-reader.had-theme .had-blog-single-meta {
  gap: 8px;
  font-size: 10px;
}
body.had-teaching-reader.had-theme .had-blog-return-top {
  margin-bottom: 2px;
  white-space: normal;
  text-align: center;
}
body.had-teaching-reader.had-theme .had-blog-single-article {
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #16889a #d9e6ea;
  background: #f7fafb;
  color: #25404a;
  box-shadow: none !important;
  outline: none;
}
body.had-teaching-reader.had-theme .had-blog-single-article:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(10, 169, 186, .45) !important;
}
body.had-teaching-reader.had-theme .had-blog-single-article::-webkit-scrollbar {
  width: 12px;
}
body.had-teaching-reader.had-theme .had-blog-single-article::-webkit-scrollbar-track {
  background: #d9e6ea;
}
body.had-teaching-reader.had-theme .had-blog-single-article::-webkit-scrollbar-thumb {
  border: 3px solid #d9e6ea;
  border-radius: 999px;
  background: #16889a;
}
body.had-teaching-reader.had-theme .had-blog-single-inner {
  width: 100%;
  min-height: 100%;
  padding: clamp(18px, 1.7vw, 28px) clamp(52px, 3.25vw, 62px) clamp(30px, 3vw, 44px) clamp(18px, 1.9vw, 30px);
}
body.had-teaching-reader.had-theme .had-blog-single-inner > figure,
body.had-teaching-reader.had-theme .had-blog-single-copy,
body.had-teaching-reader.had-theme .had-blog-single-inner > .had-blog-engagement,
body.had-teaching-reader.had-theme .had-blog-single-actions {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
body.had-teaching-reader.had-theme .had-blog-single-inner > figure {
  margin-top: 0;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid #c8dde2;
  background: #eef4f6;
  text-align: center;
}
body.had-teaching-reader.had-theme .had-blog-single-inner > figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 58vh;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
body.had-teaching-reader.had-theme .had-blog-single-copy {
  font-size: clamp(15px, .92vw, 17px);
  line-height: 1.72;
  overflow-wrap: anywhere;
}
body.had-teaching-reader.had-theme .had-blog-single-copy > :first-child {
  margin-top: 0;
}
body.had-teaching-reader.had-theme .had-blog-single-copy h2 {
  margin: 1.55em 0 .55em;
  color: #0a5362;
  font-size: clamp(23px, 1.7vw, 30px);
}
body.had-teaching-reader.had-theme .had-blog-single-copy h3 {
  margin: 1.4em 0 .45em;
  color: #0b6573;
  font-size: clamp(18px, 1.25vw, 23px);
}
body.had-teaching-reader.had-theme .had-blog-single-copy blockquote {
  margin: 0 0 28px;
  padding: 22px 26px;
  border-left: 4px solid #0aa9ba;
  background: #e8f5f7;
  color: #173f4c;
  font-size: 1.08em;
}
body.had-teaching-reader.had-theme .had-blog-single-copy ul,
body.had-teaching-reader.had-theme .had-blog-single-copy ol {
  padding-left: 24px;
}
body.had-teaching-reader.had-theme .had-blog-single-copy .had-teaching-table-wrap,
body.had-teaching-reader.had-theme .had-blog-single-copy .wp-block-table {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #b7d1d8;
  background: #fff;
}
body.had-teaching-reader.had-theme .had-blog-single-copy .had-teaching-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 13px;
}
body.had-teaching-reader.had-theme .had-blog-single-copy .had-teaching-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 11px;
  border: 1px solid #a8c8d1;
  background: #0b6373;
  color: #fff;
  text-align: left;
}
body.had-teaching-reader.had-theme .had-blog-single-copy .had-teaching-table td {
  padding: 9px 11px;
  border: 1px solid #c2d8de;
  vertical-align: top;
}
body.had-teaching-reader.had-theme .had-blog-single-copy .had-teaching-table tbody tr:nth-child(even) {
  background: #edf6f8;
}
body.had-teaching-reader.had-theme .had-blog-scroll-controls {
  right: 10px;
}

@media (max-width: 900px) {
  body.had-teaching-reader.had-theme .had-sidebar {
    position: fixed !important;
    top: var(--had-topbar) !important;
    height: auto !important;
  }
  body.admin-bar.had-teaching-reader.had-theme .had-sidebar {
    top: calc(var(--had-topbar) + 46px) !important;
  }
  body.had-teaching-reader.had-theme .had-blog-single-screen {
    padding: 8px !important;
    gap: 8px;
  }
  body.had-teaching-reader.had-theme .had-blog-single-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 18px;
  }
  body.had-teaching-reader.had-theme .had-blog-single-header h1 {
    font-size: clamp(24px, 7vw, 38px);
  }
  body.had-teaching-reader.had-theme .had-blog-return-top {
    justify-self: start;
  }
  body.had-teaching-reader.had-theme .had-blog-single-inner {
    padding: 20px 54px 34px 18px;
  }
}

@media (max-width: 782px) {
  body.admin-bar.had-teaching-reader.had-theme .had-app-shell {
    height: calc(100dvh - 46px) !important;
  }
  body.admin-bar.had-teaching-reader.had-theme .had-shell-body {
    height: calc(100dvh - var(--had-topbar) - 46px) !important;
  }
}

@media (max-width: 560px) {
  body.had-teaching-reader.had-theme .had-blog-single-header {
    padding: 12px 14px;
  }
  body.had-teaching-reader.had-theme .had-blog-single-inner {
    padding: 18px 46px 30px 14px;
  }
  body.had-teaching-reader.had-theme .had-blog-single-copy {
    font-size: 15px;
    line-height: 1.68;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.had-teaching-reader.had-theme .had-blog-single-article {
    scroll-behavior: auto;
  }
}
