/* 1.3.1 — Minimal, namespaced presentation. The BuddyBoss sidebar, its
   original category row, and LifterLMS syllabus are intentionally untouched. */
.bb-single-course-sidebar .llms-cp-course-extra .llms-cp-icon,
.bb-single-course-sidebar .llms-cp-category-icon {
  display:inline-block;
  width:16px;
  height:16px;
  max-width:16px;
  vertical-align:-3px;
  margin-inline-end:5px;
  fill:none;
  stroke:currentColor;
  flex:none;
}
.bb-single-course-sidebar .llms-cp-course-extra .llms-cp-status {color:inherit;font:inherit}
.bb-single-course-sidebar .llms-cp-course-extra .llms-cp-link-button {
  display:inline;
  margin:0;
  padding:0;
  background:none;
  border:0;
  box-shadow:none;
  color:inherit;
  font:inherit;
  text-decoration:underline;
  text-underline-offset:2px;
  white-space:normal;
}
/* Small instructor row above the syllabus, no oversized custom container. */
.llms-cp-teacher-section {max-width:100%;margin:0 0 16px;clear:both}
.llms-cp-teacher-section .llms-cp-section-heading {margin:0 0 10px}
.llms-cp-teacher-section .llms-cp-teacher-card {
  display:flex;
  align-items:center;
  gap:12px;
  max-width:100%;
  min-width:0;
  padding:12px;
  border:1px solid var(--bb-content-border-color,#e5e7eb);
  border-radius:8px;
  background:transparent;
  box-shadow:none;
}
.llms-cp-teacher-section .llms-cp-portrait {width:64px;height:64px;flex:0 0 64px;overflow:hidden;border-radius:50%;background:#f0f1f3}
.llms-cp-teacher-section .llms-cp-portrait-image {display:block;width:100%;height:100%;object-fit:cover}
.llms-cp-teacher-section .llms-cp-portrait-placeholder {display:flex;align-items:center;justify-content:center;height:100%;color:#667085}
.llms-cp-teacher-section .llms-cp-portrait-placeholder svg {width:30px;height:30px}
.llms-cp-teacher-section .llms-cp-teacher-details {flex:1;min-width:0}
.llms-cp-teacher-section .llms-cp-teacher-name {margin:0 0 3px;font:inherit;font-weight:600;line-height:1.5}
.llms-cp-teacher-section .llms-cp-teacher-short {margin:0 0 4px;line-height:1.6;font-size:.92em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:pre-line}
.llms-cp-teacher-section .llms-cp-link-button {display:inline;position:static;padding:0;margin:0;background:none;border:0;box-shadow:none;font:inherit;font-size:.92em;color:var(--bb-primary-color,#2462ac);text-decoration:underline;text-underline-offset:2px}
/* Archive styles apply ONLY to the archive shortcode. */
.llms-cp-teachers-grid {display:grid;gap:14px}
.llms-cp-teachers-grid.llms-cp-columns-2 {grid-template-columns:repeat(2,minmax(0,1fr))}
.llms-cp-teachers-grid.llms-cp-columns-3 {grid-template-columns:repeat(3,minmax(0,1fr))}
.llms-cp-teachers-grid.llms-cp-columns-4 {grid-template-columns:repeat(4,minmax(0,1fr))}
.llms-cp-teachers-grid .llms-cp-archive-teacher {margin:0}
.llms-cp-teachers-grid .llms-cp-archive-teacher .llms-cp-section-heading {display:none}
.llms-cp-teachers-grid .llms-cp-archive-teacher .llms-cp-teacher-card {height:100%;align-items:flex-start}
/* Modal is a separate, isolated layer, never resizes course layout. */
.llms-cp-modal {display:none;position:fixed;inset:0;z-index:999999;overflow-y:auto;padding:16px;background:rgba(0,0,0,.55);align-items:center;justify-content:center}
.llms-cp-modal.is-open {display:flex}
body.llms-cp-modal-open {overflow:hidden}
.llms-cp-modal .llms-cp-dialog {position:relative;box-sizing:border-box;width:min(100%,620px);max-height:calc(100vh - 32px);overflow:auto;padding:20px;background:#fff;color:#272d34;border-radius:10px;box-shadow:0 12px 50px rgba(0,0,0,.18);outline:none}
.llms-cp-modal .llms-cp-close {position:absolute;top:8px;left:8px;width:32px;height:32px;padding:0;background:#f0f1f3;border:0;border-radius:50%;font-size:24px;line-height:30px;color:#252b33;cursor:pointer}
.llms-cp-modal .llms-cp-dialog-heading {display:flex;align-items:center;gap:12px;padding-inline-start:28px;padding-bottom:12px;border-bottom:1px solid #e7e9ef}
.llms-cp-modal .llms-cp-dialog-heading .llms-cp-portrait {flex:0 0 65px;width:65px;height:65px;overflow:hidden;border-radius:50%;background:#f0f1f3}
.llms-cp-modal .llms-cp-dialog-heading .llms-cp-portrait img {width:100%;height:100%;object-fit:cover}
.llms-cp-modal .llms-cp-dialog-heading h2 {font-size:1.2rem;margin:0 0 4px}
.llms-cp-modal .llms-cp-dialog-heading p {margin:0}
.llms-cp-modal .llms-cp-resume {padding:16px 0;border-bottom:1px solid #e7e9ef}
.llms-cp-modal .llms-cp-resume h3,.llms-cp-modal .llms-cp-teacher-courses h3 {font-size:1.05rem;margin:0 0 10px}
.llms-cp-modal .llms-cp-resume-body {overflow-wrap:anywhere;line-height:1.85}
.llms-cp-modal .llms-cp-teacher-courses {padding:14px 0 0}
.llms-cp-modal .llms-cp-course-list {list-style:none;margin:0;padding:0}
.llms-cp-modal .llms-cp-course-list li {list-style:none;margin:0 0 8px;padding:0}
.llms-cp-modal .llms-cp-course-list a {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:6px;background:#f7f8fa;text-decoration:none}
.llms-cp-modal .llms-cp-course-list svg {flex:0 0 16px;width:16px;height:16px}
@media(max-width:900px){.llms-cp-teachers-grid.llms-cp-columns-3,.llms-cp-teachers-grid.llms-cp-columns-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.llms-cp-teachers-grid{grid-template-columns:1fr!important}.llms-cp-modal{padding:8px}.llms-cp-modal .llms-cp-dialog{max-height:calc(100vh - 16px);padding:16px}.llms-cp-teacher-section .llms-cp-portrait{width:52px;height:52px;flex-basis:52px}}
