/* BB Campus v8 — clean learning-surface shell. This replaces accumulated lesson-shell CSS. */
body.bb-campus-unified-v8,
body:has(.bbcc-room-wrap) {
  background: var(--bb-canvas);
  color: var(--bb-text);
}

body.bb-campus-unified-v8 *,
body:has(.bbcc-room-wrap) * { box-sizing: border-box; }

body.bb-campus-unified-v8 :where(a, button, input, select, textarea, summary):focus-visible,
body:has(.bbcc-room-wrap) :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--bb-focus);
  outline-offset: 3px;
}

.bbcc-wrap.bbcc-room-wrap {
  width: min(calc(100% - 2rem), 1240px);
  margin-inline: auto;
  padding: clamp(1rem, 2vw, 1.75rem) 0 clamp(2.2rem, 5vw, 4rem);
  color: var(--bb-text);
}

.bbcc-room-breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .56rem;
  width: 100%;
  min-height: 46px;
  margin: 0 0 1rem;
  padding: .74rem 1.08rem;
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, var(--bb-line-strong) 54%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bb-paper) 97%, var(--bb-primary-soft) 3%);
  color: var(--bb-text-muted);
  box-shadow: 0 5px 18px rgb(25 39 43 / .035);
  scrollbar-width: none;
  white-space: nowrap;
  font-size: .8rem;
  line-height: 1.28;
}
.bbcc-room-breadcrumb::-webkit-scrollbar { display: none; }
.bbcc-room-breadcrumb a {
  color: color-mix(in srgb, var(--bb-primary) 72%, var(--bb-text-muted));
  font-weight: 620;
  text-decoration: none;
}
.bbcc-room-breadcrumb a:hover { color: var(--bb-primary); text-decoration: underline; text-underline-offset: .18em; }
.bbcc-room-breadcrumb > span:last-child { color: var(--bb-text); font-weight: 760; }

.bbcc-content-view-layout,
.bbcc-module-pro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: clamp(1.2rem, 2.6vw, 2.2rem);
  align-items: start;
}

.bbcc-content-view-main,
.bbcc-module-pro-content { min-width: 0; }

.bbcc-content-view-card,
.bbcc-content-resource-standard,
.bbcc-content-rendered-pro {
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.bbcc-content-view-card { padding: 0; }
.bbcc-content-resource-standard > .bbcc-content-rendered-pro { padding: 0; }

.bbcc-content-module-nav,
.bbcc-module-pro-sidebar {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius-l);
  background: color-mix(in srgb, var(--bb-paper) 94%, var(--bb-primary) 6%);
  box-shadow: var(--bb-shadow-1);
}

.bbcc-content-module-nav > .bbcc-kicker,
.bbcc-module-pro-sidebar .bbcc-kicker,
.bbcc-kicker {
  display: inline-block;
  color: var(--bb-primary);
  font-size: .72rem;
  font-weight: 780;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.bbcc-content-module-nav h3,
.bbcc-module-pro-sidebar h3 { margin: .35rem 0 .8rem; color: var(--bb-deep); font-size: 1rem; line-height: 1.25; }

.bbcc-content-module-nav-list,
.bbcc-module-pro-nav { display: grid; gap: .25rem; }

.bbcc-content-module-nav-list a,
.bbcc-module-pro-nav a {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: .35rem .55rem;
  align-items: center;
  padding: .72rem .75rem;
  border-radius: 12px;
  color: var(--bb-text);
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.bbcc-content-module-nav-list a:hover,
.bbcc-module-pro-nav a:hover { background: var(--bb-primary-soft); transform: translateX(2px); }
.bbcc-content-module-nav-list a.is-active,
.bbcc-module-pro-nav a.is-active { background: var(--bb-primary); color: white; }
.bbcc-content-module-nav-list a > strong,
.bbcc-module-pro-nav a > strong { grid-column: 3; min-width: 0; font-size: .84rem; line-height: 1.25; }
.bbcc-content-module-nav-list a > span { font-size: .68rem; font-weight: 760; opacity: .72; }
.bbcc-content-module-nav-list a > em { font-size: .68rem; font-style: normal; opacity: .75; }
.bbcc-content-nav-icon { display: inline-flex; align-items: center; justify-content: center; font-style: normal; }

.bbcc-content-view-hero-pro,
.bbcc-content-progress-card,
.bbcc-content-continue-bar,
.bb-core-legacy-hidden { display: none; }

.bbcc-module-pro-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(220px,300px);
  gap: 1.4rem;
  margin-bottom: 1.6rem;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border-radius: var(--bb-radius-xl);
  background:
    radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--bb-accent) 26%, transparent) 0 10%, transparent 11%),
    linear-gradient(135deg, var(--bb-deep), color-mix(in srgb, var(--bb-primary) 85%, black 8%));
  color: white;
  box-shadow: var(--bb-shadow-2);
}
.bbcc-module-pro-hero h1 { margin: .3rem 0 .65rem; color: white; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.02; letter-spacing: -.035em; }
.bbcc-module-pro-hero p { max-width: 62ch; margin: 0; color: rgb(255 255 255 / .82); }
.bbcc-module-pro-hero .bbcc-kicker { color: color-mix(in srgb, var(--bb-accent) 78%, white 22%); }
.bbcc-module-pro-summary { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; align-content: start; padding: 1rem; border: 1px solid rgb(255 255 255 / .18); border-radius: var(--bb-radius-l); background: rgb(255 255 255 / .08); backdrop-filter: blur(10px); }
.bbcc-module-pro-summary > div { display: grid; gap: .15rem; }
.bbcc-module-pro-summary span { color: rgb(255 255 255 / .7); font-size: .72rem; }
.bbcc-module-pro-summary strong { font-size: 1.2rem; }
.bbcc-module-progress-wide { grid-column: 1 / -1; }

.bbcc-module-pro-actions,
.bbcc-content-continue-actions,
.bbcc-resource-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

.bbcc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .84rem;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.bbcc-btn:hover { transform: translateY(-1px); }
.bbcc-btn-primary { background: var(--bb-primary); color: white; }
.bbcc-btn-secondary { border-color: var(--bb-line-strong); background: white; color: var(--bb-primary); }

.bbcc-module-pro-list { display: grid; gap: .65rem; }
.bbcc-module-pro-item {
  display: grid;
  grid-template-columns: auto auto minmax(0,1fr) auto;
  gap: .8rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius-m);
  background: var(--bb-surface);
}
.bbcc-module-pro-item-index { color: var(--bb-accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.bbcc-module-pro-item-copy h3 { margin: .15rem 0; font-size: 1rem; line-height: 1.3; }
.bbcc-content-state { color: var(--bb-text-muted); }
.bbcc-module-pro-item.is-completed { border-color: color-mix(in srgb, var(--bb-primary) 25%, var(--bb-line)); background: var(--bb-primary-soft-2); }

.bbcc-content-resource[data-bb-resource="video"],
.bbcc-content-resource[data-bb-resource="h5p"],
.bbcc-content-resource[data-bb-resource="pdf"],
.bbcc-content-resource-quiz {
  margin-block: 1.35rem;
}

.bbcc-video-rendered iframe,
.bbcc-video-rendered video,
.bbcc-embed-rendered iframe,
.bbcc-pdf-frame { display: block; width: 100%; border: 0; }
.bbcc-video-rendered iframe,
.bbcc-video-rendered video { aspect-ratio: 16 / 9; min-height: 0; border-radius: 14px; background: #0e1719; }
.bbcc-pdf-frame { min-height: min(76vh, 880px); border-radius: 12px; background: white; }

.bbcc-content-resource-head { margin-bottom: 1rem; }
.bbcc-content-resource-head p { margin: .35rem 0 0; color: var(--bb-text-muted); }

@media (max-width: 980px) {
  .bbcc-content-view-layout,
  .bbcc-module-pro-layout { grid-template-columns: 1fr; }
  .bbcc-content-module-nav,
  .bbcc-module-pro-sidebar { position: static; max-height: none; }
  .bbcc-module-pro-hero { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bbcc-wrap.bbcc-room-wrap { width: min(calc(100% - 1rem), 1240px); padding-top: .65rem; }
  .bbcc-room-breadcrumb {
    flex-wrap: wrap;
    gap: .26rem .42rem;
    min-height: 40px;
    padding: .64rem .72rem;
    overflow: visible;
    border-radius: 12px;
    white-space: normal;
    font-size: .69rem;
    line-height: 1.34;
  }
  .bbcc-room-breadcrumb :where(a, > span:last-child) { min-width: 0; overflow-wrap: anywhere; }
  .bbcc-room-breadcrumb > span:not(:last-child) { opacity: .42; }
  .bbcc-module-pro-item { grid-template-columns: auto minmax(0,1fr); }
  .bbcc-module-pro-item-icon { display: none; }
  .bbcc-module-pro-item-copy { grid-column: 2; }
  .bbcc-module-pro-item-link { grid-column: 1 / -1; }
  .bbcc-btn { width: 100%; }
  .bbcc-module-pro-actions, .bbcc-content-continue-actions, .bbcc-resource-actions { display: grid; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .bbcc-btn,
  .bbcc-content-module-nav-list a,
  .bbcc-module-pro-nav a { transition: none; }
}

/* ==========================================================
   v8.0.1 — LEARNING SHELL COMPATIBILITY RESTORE
   Restores the validated Aula shell without touching semantic
   unit composition. The theme/public page hero is not part of
   a lesson and must not compete with the academic unit hero.
   ========================================================== */
body.bbcc-page-room :where(.entry-title, .page-title, .wp-block-post-title, .post-title, .bb-page-hero, .bb-hero-title),
body.bbcc-page-room :where(.entry-header, .page-header) {
  display: none !important;
}

body.bbcc-has-campus-shortcode .bb-generic-content {
  padding-top: 0 !important;
}

body.bbcc-has-campus-shortcode .bb-content-card {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.bbcc-page-room .bbcc-room-wrap,
body.bbcc-page-room .bbcc-content-view-pro,
body.bbcc-page-room .bbcc-module-view-wrap {
  width: min(calc(100% - 2rem), 1380px);
  max-width: 1380px;
}

@media (max-width: 720px) {
  body.bbcc-page-room .bbcc-room-wrap,
  body.bbcc-page-room .bbcc-content-view-pro,
  body.bbcc-page-room .bbcc-module-view-wrap {
    width: min(calc(100% - 1rem), 1380px);
  }
}

/* ==========================================================
   v8.0.11 — DASHBOARD COURSE PROGRESS RING RESTORE
   Restores only the geometric contract of the circular progress
   indicator used by /aula-virtual/. Colour/size remain owned by
   the existing dashboard design snippets.
   ========================================================== */
html body.page-id-1924 .bbcc-student-course-card-pro .bbcc-student-course-progress-ring {
  position: relative !important;
  display: grid !important;
  place-content: center !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

html body.page-id-1924 .bbcc-student-course-card-pro .bbcc-student-course-progress-ring::before {
  content: "" !important;
  position: absolute !important;
  inset: 7px !important;
  z-index: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,248,248,.98) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(32,49,58,.06) !important;
}

html body.page-id-1924 .bbcc-student-course-card-pro .bbcc-student-course-progress-ring strong,
html body.page-id-1924 .bbcc-student-course-card-pro .bbcc-student-course-progress-ring span {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: center !important;
}

html body.page-id-1924 .bbcc-student-course-card-pro .bbcc-student-course-progress-ring span {
  margin-top: 4px !important;
}

