/* Courses tab — the "Add your own course" row at the foot of the catalog
   (courses.js buildAddRow, 2026-09-29). Closed it is a dashed row with a
   plus; open, it shows two stacked choices: copy the MCP instructions for
   the learner's own AI, or open the in-app course builder
   (course-builder/, styles/course-builder/builder.css). */

.course-add {
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.course-add:hover,
.course-add.is-open {
  border-color: var(--muted-dim);
  background: rgb(var(--tint-rgb) / calc(0.02 * var(--tint-k)));
}

.course-add.is-open {
  border-style: solid;
}

.course-add-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 18px 20px 18px 18px;
  color: var(--text);
  background: none;
  border: 0;
  border-radius: 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.course-add-plus {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--muted);
  border: 1px dashed currentColor;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s ease;
}

.course-add:hover .course-add-plus,
.course-add.is-open .course-add-plus {
  color: var(--xp-to);
  border-style: solid;
}

.course-add.is-open .course-add-plus {
  transform: rotate(45deg);
}

.course-add-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.course-add-title {
  color: var(--white);
  font-family: "Instrument Serif", var(--prose-heading);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.course-add-sub {
  color: var(--muted);
  font-size: 13px;
}

.course-add-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 16px;
  animation: course-add-in 0.18s ease-out;
}

.course-add-options[hidden] {
  display: none;
}

@keyframes course-add-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.course-add-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.course-add-option-title {
  margin-bottom: 3px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
}

.course-add-option p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.course-add-btn {
  padding: 8px 14px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.course-add-btn:hover {
  border-color: var(--accent);
}

.course-add-btn.is-done {
  color: var(--ok);
  border-color: var(--ok);
}

.course-add-btn-solid {
  color: var(--on-accent);
  background: var(--accent);
  border-color: transparent;
}

.course-add-btn-solid:hover {
  filter: brightness(1.08);
}

@media (max-width: 720px) {
  .course-add-option {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-add-options { animation: none; }
  .course-add-plus { transition: none; }
}
