/**
 * Version 4.4.0: unified Academic Items and clean Teaching Evidence reader.
 */

/* The former poster-like evidence grid is intentionally replaced by a readable article. */
.had-teaching-evidence-single-screen .had-blog-single-inner {
  padding: 22px 58px 36px 22px !important;
}
.had-teaching-evidence-single-screen .had-blog-single-copy {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
.had-teaching-evidence-single-screen .had-blog-single-copy > .had-tag-row {
  max-width: 1180px;
  margin: 28px auto 0;
}

.had-teaching-evidence-v440 {
  width: min(100%, 1220px);
  margin: 0 auto;
  color: #18343a;
  font-size: clamp(15px, .92vw, 18px);
}
.had-teaching-evidence-v440 p {
  max-width: 82ch;
  margin: 0 0 14px;
}
.had-evidence-intro-v440 {
  padding: clamp(20px, 2.5vw, 38px);
  border: 1px solid #b7d5da;
  background: linear-gradient(135deg, #f7fcfd, #edf8fa);
  box-shadow: 0 12px 32px rgba(4, 54, 63, .07);
}
.had-evidence-intro-v440 h2 {
  margin: 0 0 16px !important;
  color: #064e55 !important;
  font-size: clamp(30px, 3vw, 48px) !important;
  line-height: 1.05;
}

.had-evidence-section-v440 {
  margin-top: clamp(20px, 2.5vw, 34px);
  padding: clamp(20px, 2.5vw, 38px);
  border: 1px solid #c4dce0;
  background: #fff;
  box-shadow: 0 10px 28px rgba(5, 54, 63, .06);
}
.had-evidence-section-v440 > header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #0b7478;
}
.had-evidence-section-v440 > header > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: #075b60;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
}
.had-evidence-section-v440 header small {
  display: block;
  margin-bottom: 3px;
  color: #08747b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.had-evidence-section-v440 h2 {
  margin: 0 !important;
  color: #123b42 !important;
  font-size: clamp(24px, 2.2vw, 36px) !important;
  line-height: 1.12;
}
.had-evidence-section-v440 h3 {
  margin: 25px 0 9px !important;
  color: #0b5f66 !important;
  font-size: clamp(19px, 1.4vw, 25px) !important;
}

.had-evidence-figure-v440 {
  width: 100%;
  margin: 22px 0 4px !important;
  padding: clamp(10px, 1.2vw, 16px);
  border: 1px solid #b7d4d9;
  background: #f8fbfc;
}
.had-evidence-figure-v440 img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  margin: 0 auto;
  object-fit: contain;
  background: #fff;
}
.had-evidence-figure-v440 figcaption {
  margin-top: 10px;
  color: #3e6066;
  font-size: 13px;
  line-height: 1.45;
}
.had-evidence-official-v440 img,
.had-evidence-certificate-v440 img,
.had-evidence-photo-v440 img {
  width: auto;
  max-width: 100%;
}
.had-evidence-official-v440 img {
  max-height: 680px;
}
.had-evidence-certificate-v440 img {
  max-height: 760px;
}
.had-evidence-photo-v440 img {
  max-height: 580px;
}
.had-evidence-wide-v440 img {
  max-height: 610px;
}

.had-evidence-pair-v440 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-top: 20px;
}
.had-evidence-pair-v440 .had-evidence-figure-v440 {
  display: grid;
  grid-template-rows: 1fr auto;
  margin: 0 !important;
}
.had-evidence-pair-v440 img {
  height: 100%;
  min-height: 260px;
  max-height: 500px;
}

.had-evidence-note-v440 {
  max-width: 82ch;
  margin: 26px 0 0;
  padding: 18px 20px;
  border-left: 4px solid #0b7478;
  background: #eef8f9;
}
.had-evidence-note-v440 strong {
  color: #075b60;
}
.had-evidence-note-v440 p {
  margin: 5px 0 0;
}

/* The popup uses a clean preview; the complete article remains on the full page. */
.had-detail-drawer.is-teaching-portfolio-context .had-record-content .had-teaching-evidence-v440 {
  display: none;
}

/* Academic Item editor guidance added for the single-source teaching model. */
.had-portfolio-help {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #b9d5db;
  background: #f3fafb;
}

@media (max-width: 900px) {
  .had-teaching-evidence-single-screen .had-blog-single-inner {
    padding: 14px 44px 28px 12px !important;
  }
  .had-evidence-pair-v440 {
    grid-template-columns: 1fr;
  }
  .had-evidence-pair-v440 img {
    min-height: 0;
    height: auto;
  }
}

@media (max-width: 600px) {
  .had-teaching-evidence-single-screen .had-blog-single-inner {
    padding: 8px 38px 22px 7px !important;
  }
  .had-evidence-intro-v440,
  .had-evidence-section-v440 {
    padding: 16px;
  }
  .had-evidence-section-v440 > header {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .had-evidence-section-v440 > header > span {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
}
