/* Quiet circuit details for Learn and Tutor. Loaded after circuit.css. */

.bc-tutor {
  --bc-learning-trace: #4ae1f24d;
  --bc-learning-node: #4ae1f2;
}

.bc-learning-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, #4ae1f20b, transparent 30%),
    linear-gradient(180deg, #0a0f16, var(--bc-bg, #080b10));
}

.bc-learning-intro::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  right: 0;
  width: min(38vw, 35rem);
  height: 15rem;
  pointer-events: none;
  opacity: .45;
  background:
    linear-gradient(90deg, transparent 0 18%, #4ae1f24d 18% 18.2%, transparent 18.2% 100%),
    linear-gradient(90deg, transparent 0 54%, #ed53da36 54% 54.2%, transparent 54.2% 100%),
    linear-gradient(0deg, transparent 0 35%, #4ae1f242 35% 35.4%, transparent 35.4% 100%),
    linear-gradient(0deg, transparent 0 72%, #9aa8bb26 72% 72.4%, transparent 72.4% 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35% 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 35% 85%, transparent);
}

.bc-learning-intro .bc-container {
  position: relative;
  z-index: 1;
}

.bc-learning-intro h1 {
  text-wrap: balance;
}

.bc-learning-gate {
  max-width: 48rem;
  margin-top: 2rem;
}

.bc-learning-gate h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.bc-learning-path {
  align-items: stretch;
}

.bc-learning-path-item {
  position: relative;
  min-width: 0;
  background: linear-gradient(160deg, #141c26, var(--bc-panel, #111720) 55%);
  border-color: #344250;
  box-shadow: inset 0 1px #ffffff0a;
}

.bc-learning-path-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.95rem;
  right: -1rem;
  width: 1rem;
  height: 1px;
  background: linear-gradient(90deg, var(--bc-learning-trace), #9aa8bb40);
  pointer-events: none;
}

.bc-learning-step {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.bc-learning-step::before {
  content: "";
  width: .42rem;
  height: .42rem;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 .55rem #4ae1f23b;
}

.bc-learning-path-item:nth-child(2) .bc-learning-step::before {
  box-shadow: 0 0 .55rem #ed53da3b;
}

.bc-learning-path-item p,
.bc-learning-empty p {
  overflow-wrap: break-word;
}

.bc-learning-courses {
  background: linear-gradient(180deg, #0a0e15, var(--bc-bg, #080b10) 12rem);
}

.bc-learning-courses .bc-eyebrow::after {
  content: "";
  width: min(15rem, 28vw);
  height: .55rem;
  margin-left: .5rem;
  opacity: .55;
  background: repeating-linear-gradient(90deg, #79afbd7a 0 1px, transparent 1px 1rem);
}

.bc-learning-empty,
.bc-account-panel {
  position: relative;
  border-color: #344250;
  background: linear-gradient(145deg, #141c26, var(--bc-panel, #111720));
  box-shadow: inset 0 1px #ffffff0a;
}

.bc-learning-empty::before,
.bc-account-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 4.5rem;
  height: 1px;
  background: var(--bc-cyan, #4ae1f2);
  box-shadow: 0 0 .5rem #4ae1f259;
  pointer-events: none;
}

.bc-account-panel::before {
  background: var(--bc-magenta, #ed53da);
  box-shadow: 0 0 .5rem #ed53da4d;
}

.bc-account-links {
  border-image: linear-gradient(90deg, #4ae1f26e, var(--bc-border, #26303b) 60%) 1;
}

.bc-tutor-surface {
  min-width: 0;
  max-width: 100%;
}

.bc-tutor-surface :is(.tutor-card, .tutor-course-card, .tutor-course-loop) {
  box-shadow: inset 0 1px #ffffff0a;
}

body.bc-site :is(.tutor-dashboard-layout, .tutor-account-page-wrapper, .tutor-dashboard-isolated-page-wrapper, .tutor-page-wrap) {
  background-color: var(--bc-bg, #080b10);
  background-image: radial-gradient(circle at 94% 0, #4ae1f20a, transparent 26rem);
}

body.bc-site .tutor-dashboard-layout .tutor-dashboard-sidebar {
  border-right: 1px solid #344250;
  box-shadow: inset -1px 0 #4ae1f218;
}

body.bc-site .tutor-dashboard-layout .tutor-dashboard-header {
  box-shadow: inset 0 -1px #4ae1f229;
}

body.bc-site .tutor-login-wrap,
body.bc-site .tutor-page-wrap .tutor-card {
  border-color: #405064;
  box-shadow: inset 0 1px #4ae1f233;
}

@media (max-width: 760px) {
  .bc-learning-intro::before {
    display: none;
  }

  .bc-learning-path-item:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -1rem;
    left: 2rem;
    width: 1px;
    height: 1rem;
    background: linear-gradient(180deg, var(--bc-learning-trace), #9aa8bb40);
  }

  body.bc-site .tutor-dashboard-layout .tutor-dashboard-sidebar {
    border-right: 0;
    box-shadow: none;
  }
}

@media (max-width: 400px) {
  .bc-learning-path-item,
  .bc-learning-empty,
  .bc-account-panel {
    padding: 1.2rem;
  }

  .bc-learning-courses .bc-eyebrow::after {
    width: 3.5rem;
  }
}
