/* The instructor-only palette: what only an instructor sees (this course welcome, and the
   "For the instructor" card on library homework, below). Student-visible content keeps the
   plain card background (--app-card-bg), so an instructor can tell the two apart at a glance. */
:root {
  --instructor-panel-bg: #f1f7ff;
  --instructor-panel-border: #b9d2ee;
  --instructor-panel-rule: #24528c;
  --instructor-panel-text: #24364b;
  --instructor-panel-heading: #17385e;
  --instructor-panel-link: #174e86;
}

.instructor-course-welcome {
  max-width: 1100px;
  margin: 1.25rem auto 0;
  padding: 1.2rem 1.5rem;
  box-sizing: border-box;
  border: 1px solid var(--instructor-panel-border);
  border-left: 5px solid var(--instructor-panel-rule);
  border-radius: 12px;
  background: var(--instructor-panel-bg);
  color: var(--instructor-panel-text);
  line-height: 1.6;
}
.instructor-course-welcome[hidden] { display: none; }
.instructor-course-welcome .icw-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}
.instructor-course-welcome h2 { margin: 0; font-size: 1.15rem; color: var(--instructor-panel-heading); }
.instructor-course-welcome .icw-close-btn {
  background: transparent;
  border: none;
  color: #557295;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  margin: -0.2rem -0.2rem 0 0;
}
.instructor-course-welcome .icw-close-btn:hover {
  color: #17385e;
  background: rgba(36, 82, 140, 0.12);
}
.instructor-course-welcome .icw-close-btn:focus-visible {
  outline: 2px solid #24528c;
  outline-offset: 2px;
}
.instructor-course-welcome p { margin: .5rem 0; }
.instructor-course-welcome nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .85rem 0; }
.instructor-course-welcome a { color: var(--instructor-panel-link); text-decoration: underline; text-underline-offset: .15em; }
.instructor-course-welcome a:focus-visible { outline: 3px solid var(--instructor-panel-rule); outline-offset: 3px; border-radius: 2px; }
.instructor-course-welcome .icw-help { font-size: .9rem; }
@media (max-width: 1150px) {
  .instructor-course-welcome { margin-left: 1rem; margin-right: 1rem; }
}

/* "For the instructor" on library homework: shared/js/library_assignments.js instructorInfoCard(),
   used by the Assignment Library, the Teaching Library's Homework cards, assignment-brief.html and
   the assignment manager's "From the library" rows. */
.instructor-info-card {
  box-sizing: border-box;
  background: var(--instructor-panel-bg);
  border: 1px solid var(--instructor-panel-border);
  border-left: 4px solid var(--instructor-panel-rule);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  color: var(--instructor-panel-text);
  font-size: 0.84rem;
  line-height: 1.5;
}
.instructor-info-card p { margin: 0 0 0.35rem; }
.instructor-info-card p:last-child { margin-bottom: 0; }
.instructor-info-card .instructor-info-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--instructor-panel-heading);
}
.instructor-info-card strong { color: var(--instructor-panel-heading); }
.instructor-info-card .instructor-info-status-pilot { font-weight: 600; }
.instructor-info-card a:not(.tl-btn) { color: var(--instructor-panel-link); text-decoration: underline; text-underline-offset: .15em; }
.instructor-info-card a:focus-visible { outline: 3px solid var(--instructor-panel-rule); outline-offset: 2px; }
.instructor-info-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
