/* Product-level learning experience
   ---------------------------------
   This layer defines page archetypes and interactive course components. It is
   intentionally separate from the low-level Quarto component styling. */

/* Brand and navigation */

.navbar-brand-logo {
  margin-right: 0.55rem;
  max-height: 2rem;
  width: 2rem;
}

.navbar-title::before {
  display: none;
}

.navbar-title {
  font-family: "Inter Display", Inter, ui-sans-serif, system-ui, sans-serif;
}

/* Custom learning title */

.fc-learning-header {
  background: transparent;
  border-bottom: 1px solid var(--fc-border);
  margin-bottom: 2.3rem;
  padding: 1.1rem 0 1.75rem;
}

.fc-title-context {
  align-items: center;
  color: var(--fc-brand-strong);
  display: flex;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 0.65rem;
  letter-spacing: 0.075em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.fc-title-position {
  align-items: center;
  color: var(--fc-muted);
  display: inline-flex;
  gap: 0.65rem;
}

.fc-title-position:not(:empty)::before {
  background: var(--fc-border-strong);
  border-radius: 999px;
  content: "";
  height: 0.25rem;
  width: 0.25rem;
}

.fc-title-layout {
  align-items: end;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.fc-title-copy h1.title {
  display: block !important;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  letter-spacing: -0.065em;
  margin: 0;
  max-width: 14ch;
}

.fc-title-copy .description {
  color: var(--fc-muted);
  font-size: 1.05rem;
  line-height: 1.62;
  margin-top: 1rem;
  max-width: 62ch;
}

.fc-title-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.fc-title-chip {
  background: var(--fc-surface-soft);
  border-radius: 999px;
  color: var(--fc-muted);
  font-size: 0.72rem;
  font-weight: 720;
  padding: 0.3rem 0.62rem;
}

.fc-title-chip-meta {
  background: var(--fc-brand-soft);
  color: var(--fc-brand-strong);
}

.fc-title-actions {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 12.5rem;
}

.fc-title-colab {
  align-items: center;
  border-radius: 0.75rem;
  display: inline-flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.72rem 1rem;
  text-decoration: none;
}

.fc-complete-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--fc-border-strong);
  border-radius: 0.75rem;
  color: var(--fc-muted);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  gap: 0.48rem;
  justify-content: center;
  padding: 0.64rem 0.85rem;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.fc-complete-button:hover {
  border-color: var(--fc-brand);
  color: var(--fc-brand-strong);
}

.fc-complete-button.is-complete {
  background: color-mix(in srgb, var(--fc-success) 12%, transparent);
  border-color: color-mix(in srgb, var(--fc-success) 35%, var(--fc-border));
  color: var(--fc-success);
}

.fc-complete-icon {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.66rem;
  height: 1.15rem;
  justify-content: center;
  width: 1.15rem;
}

.fc-lesson-progress {
  margin-top: 1.4rem;
}

.fc-progress-copy {
  color: var(--fc-muted);
  display: flex;
  font-size: 0.73rem;
  font-weight: 700;
  justify-content: space-between;
  margin-bottom: 0.42rem;
}

.fc-progress-track,
.fc-card-progress {
  background: var(--fc-surface-soft);
  border-radius: 999px;
  height: 0.3rem;
  overflow: hidden;
}

.fc-progress-track span,
.fc-card-progress span {
  background: linear-gradient(90deg, var(--fc-brand), var(--fc-accent));
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 300ms ease;
  width: 0;
}

.fc-learning-header > .quarto-title-meta,
.fc-colab-launch {
  display: none;
}

.sidebar-navigation a.fc-is-complete .menu-text::after {
  color: var(--fc-success);
  content: "✓";
  float: right;
  font-size: 0.72rem;
  font-weight: 900;
  margin-left: 0.5rem;
}
