/* Learn — same surface as kit Role clarity. Full-width tile, not a narrow column. */

.learn-page {
  background: var(--shell-bg);
  min-height: 100vh;
}

.learn-page .page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.learn-main {
  flex: 1;
  width: 100%;
  padding: var(--space-4) var(--shell-gutter) var(--space-6);
  box-sizing: border-box;
}

.learn-workspace {
  width: 100%;
  max-width: none;
  margin: 0;
}

.learn-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 var(--space-3);
  padding: 0;
  list-style: none;
  font-size: var(--kit-fs-md);
  line-height: 1.45;
  color: var(--surface-muted, var(--shell-chrome-muted));
}

.learn-crumb a {
  color: inherit;
  text-decoration: none;
}

.learn-crumb a:hover {
  color: var(--surface-fg, var(--shell-chrome-fg));
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.learn-crumb__sep {
  opacity: 0.45;
  user-select: none;
}

.learn-page .kit-surface-panel__header .kit-panel-header__section {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  align-self: stretch;
  text-align: center;
  text-wrap: wrap;
  white-space: normal;
}

.learn-workspace .kit-panel-header__placement {
  font-size: var(--kit-fs-display);
  line-height: 1.25;
  text-wrap: balance;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.learn-workspace .kit-role-detail__content a {
  color: var(--kit-font-content-heading, var(--role-fg));
}

.learn-workspace .kit-role-detail__desc {
  margin: 0.4rem 0 0;
  font-size: var(--role-body-size, var(--kit-fs-body));
  font-weight: var(--font-regular);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--kit-font-content-body, var(--role-muted));
}

.learn-workspace .kit-role-detail__scan + .kit-role-detail__desc,
.learn-workspace .kit-role-detail__desc + .kit-role-detail__scan {
  margin-top: 0.5rem;
}

.learn-workspace .kit-role-detail__scan {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.learn-workspace .kit-role-detail__scan > li {
  position: relative;
  margin: 0;
  padding-left: 0.95rem;
  font-size: var(--role-body-size, var(--kit-fs-body));
  font-weight: var(--font-regular);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--kit-font-content-body, var(--role-muted));
}

.learn-workspace .kit-role-detail__scan > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.38;
}

@media (max-width: 640px) {
  .learn-main {
    padding: var(--space-3) var(--space-3) var(--space-5);
  }
}
