/*
 * Kurs → Studentenes plan (js/components/StudentPlan.js, 1.47.0): the plan
 * as students will read it, a preview of the HTML that is copied into
 * Canvas (its own inline styles), with "Kopier til Canvas" and the calendar.
 */

.sp-intro {
  margin-bottom: 0.5rem;
}

.sp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.sp-toolbar .btn.sp-copied {
  border-color: #146c43;
  background: #146c43;
  color: #fff;
}

.sp-status:empty {
  display: none;
}

.sp-help {
  margin-bottom: 0.75rem;
}

/* The page as it will look in Canvas, in a frame of its own */
.sp-preview {
  max-height: 36rem;
  overflow: auto;
  padding: 0.75rem 1rem;
  border: 2px solid var(--bh-black, #111);
  background: #fff;
  overflow-wrap: anywhere;
}

.sp-preview:focus-visible {
  outline: 3px solid var(--bh-navy, #1B2A4A);
  outline-offset: 2px;
}

/* Bold, as Canvas shows its headings (the app's own are lighter) */
.sp-preview h2,
.sp-preview h3,
.sp-preview h4 {
  font-weight: 700;
}

.sp-preview h2 {
  font-size: 1.2rem;
}

.sp-preview h3 {
  font-size: 1.05rem;
}

.sp-preview h4 {
  font-size: 0.95rem;
}

/* For which platform: Canvas and the rest (inline styles) or Moodle (Bootstrap classes) */
.sp-formats {
  margin: 0 0 0.5rem;
}

.sp-legend {
  float: left;
  width: auto;
  margin: 0 0.75rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #444;
  line-height: 1.9;
}
