/* 0003 */
.course-short-description {
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: normal;
  min-width: 0;
}
.course-short-description p, .course-short-description div,
.course-short-description ul, .course-short-description ol,
.course-short-description blockquote { margin: 0 0 .75em; }
.course-short-description > :last-child { margin-bottom: 0; }
.course-short-description h2 { font-size: 1.4em; }
.course-short-description h3 { font-size: 1.2em; }
.course-short-description h4 { font-size: 1.1em; }
.course-short-description h2, .course-short-description h3,
.course-short-description h4 { line-height: 1.5; margin: .5em 0; }
.course-short-description ul { list-style: disc outside; padding-left: 1.6em; }
.course-short-description ol { list-style: decimal outside; padding-left: 1.6em; }
.course-short-description blockquote { border-left: 3px solid #cfe0cc; padding-left: 1em; }
.course-short-description a { text-decoration: underline; }
.detail-panel > .course-short-description { margin: 1em 0; }
.course-summary-editor { width: 100%; min-width: 0; }
.course-summary-editor .rich-editor-surface { min-height: 180px; padding: 16px; }
.course-summary-editor .rich-editor-surface:empty::before { content: "輸入課程簡短說明…"; }
.course-summary-editor .rich-editor-surface:focus { outline: 2px solid #83aa87; outline-offset: -2px; }
.course-summary-schedule { margin-top: 12px; }
.course-summary-schedule > summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }

/* Keep the compact editor toolbar independent of the admin button palette. */
html body.admin-body .course-summary-editor .course-summary-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  padding: 5px 7px; background: #f6f7f7; border-bottom: 1px solid #dcdcde;
}
html body.admin-body .course-summary-editor .course-summary-toolbar button {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px;
  width: 32px; min-width: 32px; height: 32px; min-height: 32px; margin: 0;
  padding: 5px; border: 1px solid transparent !important; border-radius: 2px;
  color: #50575e !important; background: transparent !important; box-shadow: none !important;
  font-size: 14px; line-height: 1; cursor: pointer;
}
html body.admin-body .course-summary-editor .course-summary-toolbar button * {
  color: inherit !important; background: transparent !important;
}
html body.admin-body .course-summary-editor .course-summary-toolbar button svg {
  display: block; width: 22px; height: 22px; fill: none;
  stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
html body.admin-body .course-summary-editor .course-summary-toolbar button:hover,
html body.admin-body .course-summary-editor .course-summary-toolbar button.is-active,
html body.admin-body .course-summary-editor .course-summary-toolbar button[aria-pressed="true"] {
  color: #1d2327 !important; background: #dcdcde !important; border-color: #a7aaad !important;
}
html body.admin-body .course-summary-editor .course-summary-toolbar button:focus-visible {
  outline: 2px solid #2271b1; outline-offset: -2px;
}
html body.admin-body .course-summary-editor .course-summary-toolbar select {
  flex: 0 0 140px; width: 140px; min-width: 0; height: 32px; min-height: 32px;
  margin: 0 5px 0 0; padding: 3px 24px 3px 8px;
  border: 1px solid #b4b9be !important; border-radius: 2px;
  background-color: #fff !important; color: #50575e !important;
  font-size: 14px; font-weight: normal; line-height: 1.4;
}
