/* 班程內容彈窗 — 對齊 html.htm 版型（僅作用於彈窗內） */
#course-content-panel {
  font-family: "Noto Sans TC", "Manrope", sans-serif;
  color: #1a1c1a;
  background: #faf9f6;
  -webkit-font-smoothing: antialiased;
}
#course-content-panel .xf-cc-serif {
  font-family: "Noto Serif TC", serif;
}
#course-content-panel .xf-cc-main {
  background: #fff;
}
#course-content-panel .xf-cc-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 48px 20px 24px;
  border-bottom: 1px solid #c2c8c0;
  background: #faf9f6;
}
@media (min-width: 768px) {
  #course-content-panel .xf-cc-hd { padding: 24px 56px 24px 32px; }
}
#course-content-panel .xf-cc-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #d6e3d6;
  color: #5a665b;
  font-size: 12px;
  font-weight: 500;
}
#course-content-panel .xf-cc-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: #424842;
}
#course-content-panel .xf-cc-title {
  margin: 8px 0 0;
  font-family: "Noto Serif TC", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1c1a;
  text-wrap: balance;
}
@media (min-width: 768px) {
  #course-content-panel .xf-cc-title { font-size: 36px; line-height: 1.28; }
}
#course-content-panel .xf-cc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px;
  align-items: start;
}
/* 彈窗約 10 吋平板寬（≤800px），內容雙欄僅在彈窗內夠寬時啟用 */
@media (min-width: 640px) {
  #course-content-panel .xf-cc-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 24px 28px;
  }
  #course-content-panel .xf-cc-col-main,
  #course-content-panel .xf-cc-col-side {
    gap: 20px;
  }
}
#course-content-panel .xf-cc-col-main,
#course-content-panel .xf-cc-col-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  #course-content-panel .xf-cc-col-main,
  #course-content-panel .xf-cc-col-side { gap: 32px; }
}
#course-content-panel .xf-cc-theme {
  padding-bottom: 24px;
  border-bottom: 1px solid #c2c8c0;
}
#course-content-panel .xf-cc-label {
  font-size: 13px;
  font-weight: 500;
  color: #26422f;
}
#course-content-panel .xf-cc-theme-txt {
  margin: 8px 0 0;
  font-family: "Noto Serif TC", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1c1a;
}
#course-content-panel .xf-cc-sec-hd {
  display: flex;
  align-items: center;
  gap: 8px;
}
#course-content-panel .xf-cc-sec-hd .material-symbols-outlined {
  font-size: 22px;
  color: #26422f;
}
#course-content-panel .xf-cc-sec-title {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a1c1a;
}
#course-content-panel .xf-cc-body {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: #424842;
  max-width: 65ch;
}
#course-content-panel .xf-cc-box {
  background: #f4f4f0;
  border-radius: 16px;
  padding: 24px;
}
#course-content-panel .xf-cc-box .xf-cc-body { color: #1a1c1a; font-size: 15px; }
#course-content-panel .xf-cc-notes {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#course-content-panel .xf-cc-notes li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
#course-content-panel .xf-cc-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #d6e3d6;
  color: #5a665b;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
#course-content-panel .xf-cc-note-txt {
  font-size: 15px;
  line-height: 1.65;
  color: #1a1c1a;
}
#course-content-panel .xf-cc-img-wrap {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #c2c8c0;
  background: #f4f4f0;
}
#course-content-panel .xf-cc-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
#course-content-panel .xf-cc-card {
  border: 1px solid #c2c8c0;
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#course-content-panel .xf-cc-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #c2c8c0;
}
#course-content-panel .xf-cc-card-title {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: 18px;
  font-weight: 600;
  color: #1a1c1a;
}
#course-content-panel .xf-cc-card-accent {
  font-size: 14px;
  font-weight: 500;
  color: #26422f;
}
#course-content-panel .xf-cc-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}
#course-content-panel .xf-cc-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
#course-content-panel .xf-cc-meta-row .material-symbols-outlined {
  color: #26422f;
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
#course-content-panel .xf-cc-meta dt {
  font-size: 12px;
  color: #424842;
  font-weight: 500;
}
#course-content-panel .xf-cc-meta dd {
  margin: 2px 0 0;
  font-size: 14px;
  color: #1a1c1a;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
#course-content-panel .xf-cc-btn-primary {
  width: 100%;
  border: none;
  border-radius: 9999px;
  padding: 12px 24px;
  background: #26422f;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
#course-content-panel .xf-cc-btn-primary:hover { background: #3d5a45; }
#course-content-panel .xf-cc-instructor {
  display: flex;
  align-items: center;
  gap: 16px;
}
#course-content-panel .xf-cc-avatar {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid #c2c8c0;
  flex-shrink: 0;
  background: #f4f4f0;
}
#course-content-panel .xf-cc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#course-content-panel .xf-cc-inst-name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a1c1a;
}
#course-content-panel .xf-cc-inst-role {
  margin: 4px 0 0;
  font-size: 13px;
  color: #424842;
}
#course-content-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 30;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid #c2c8c0;
  background: #fff;
  color: #424842;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
#course-content-close:hover {
  background: #f4f4f0;
  color: #1a1c1a;
}
.course-content-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.course-content-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
#course-content-panel {
  max-width: min(800px, calc(100vw - 24px));
}
@supports (height: 100dvh) {
  #course-content-panel.xf-cc-panel-mobile {
    height: 100dvh;
  }
  @media (min-width: 640px) {
    #course-content-panel.xf-cc-panel-mobile {
      height: auto;
      max-height: min(88vh, 900px);
    }
  }
}