/**
 * CBC pathway curriculum explorer.
 * Scoped deliberately to the child/CBC pathway viewer so the established
 * Certifiedge interface remains unchanged everywhere else.
 */
.ce-pathway-viewer--child .ce-pathway-viewer__body {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 4vw, 48px);
}

.ce-pathway-viewer--child .ce-cbc-curriculum-browser {
  position: static;
  max-height: none;
  overflow: visible;
  padding: clamp(24px, 3.6vw, 38px);
  border-radius: 24px;
}

/* Keep the introduction visually anchored at the left.  The previous
 * two-column header interacted badly with inherited card/grid rules and
 * produced a large apparently empty region on some screens. */
.ce-pathway-viewer--child .ce-cbc-curriculum-browser__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-browser__header > div:first-child {
  max-width: 820px;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-browser__header h2 {
  max-width: 760px;
  margin: 0 0 10px;
  color: #f8fafc;
  font-family: var(--ce-font, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-weight: 820;
  letter-spacing: -.025em;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-browser__header p:not(.ce-eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: #cbd5e1;
}

.ce-pathway-viewer--child .ce-cbc-curriculum-browser__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 220px));
  gap: 12px;
  justify-content: start;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-browser__meta > span {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 15px 16px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 16px;
  background: #f8fbfa;
  color: #334155 !important;
  font-size: .84rem;
  line-height: 1.35;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-browser__meta strong {
  color: #0f5f59 !important;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1;
}

.ce-pathway-viewer--child .ce-learning-search--cbc {
  margin: 30px 0 28px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
}
.ce-pathway-viewer--child .ce-learning-search--cbc label {
  color: #f8fafc;
}
.ce-pathway-viewer--child .ce-learning-search--cbc input {
  background: #ffffff !important;
  color: #0f172a !important;
  caret-color: #0f172a;
}
.ce-pathway-viewer--child .ce-learning-search--cbc input::placeholder {
  color: #64748b !important;
  opacity: 1;
}

.ce-pathway-viewer--child .ce-cbc-curriculum-browser__intro,
.ce-pathway-viewer--child .ce-cbc-next-focus__heading {
  display: grid;
  gap: 6px;
  margin: 8px 0 22px;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-browser__intro h3,
.ce-pathway-viewer--child .ce-cbc-next-focus__heading h3 {
  margin: 0;
  font-family: var(--ce-font, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-weight: 790;
  letter-spacing: -.018em;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-browser__intro h3,
.ce-pathway-viewer--child .ce-cbc-curriculum-browser__intro p {
  color: #f8fafc;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-browser__intro p {
  color: #cbd5e1;
}

.ce-pathway-viewer--child .ce-cbc-curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 286px), 1fr));
  gap: clamp(20px, 2.4vw, 28px);
}
.ce-pathway-viewer--child .ce-cbc-curriculum-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 17px;
  min-height: 232px;
  padding: clamp(20px, 2.2vw, 25px);
  overflow: hidden;
  border: 1px solid #dbe4ee;
  border-radius: 19px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 12px 30px rgba(2, 12, 27, .10);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 116, 144, .46);
  box-shadow: 0 18px 42px rgba(2, 12, 27, .15);
}
.ce-pathway-viewer--child .ce-cbc-curriculum-card:focus-visible {
  outline: 3px solid rgba(34, 211, 238, .62);
  outline-offset: 3px;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-card__index {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 30px;
  border-radius: 999px;
  background: #e8f5f2;
  color: #0f5f59 !important;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .08em;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-card__body {
  display: grid;
  align-content: start;
  gap: 11px;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-card__body h3 {
  margin: 0;
  color: #0f172a !important;
  font-family: var(--ce-font, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: -.012em;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-card__body p {
  margin: 0;
  color: #475569 !important;
  font-size: .94rem;
  line-height: 1.55;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-card__preview {
  display: grid;
  gap: 8px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-card__preview li {
  position: relative;
  padding-left: 14px;
  color: #334155 !important;
  font-size: .88rem;
  line-height: 1.42;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-card__preview li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0f766e;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
  font-size: .83rem;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-card__footer span {
  color: #64748b !important;
}
.ce-pathway-viewer--child .ce-cbc-curriculum-card__footer strong {
  color: #0f5f59 !important;
  white-space: nowrap;
}

.ce-pathway-viewer--child .ce-learning-search-results--cbc,
.ce-pathway-viewer--child .ce-cbc-context-path,
.ce-pathway-viewer--child .ce-cbc-learning-entry {
  color: #0f172a;
  background: #f8fafc;
}
.ce-pathway-viewer--child .ce-learning-search-results--cbc {
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
}
.ce-pathway-viewer--child .ce-cbc-result-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.ce-pathway-viewer--child .ce-cbc-result-heading h3,
.ce-pathway-viewer--child .ce-learning-search-results--cbc p {
  color: #0f172a !important;
}
.ce-pathway-viewer--child .ce-cbc-result-heading a {
  color: #075985 !important;
  font-weight: 760;
}
.ce-pathway-viewer--child .ce-cbc-context-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 13px 15px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  font-size: .9rem;
}
.ce-pathway-viewer--child .ce-cbc-context-path a {
  color: #0f5f59 !important;
  font-weight: 720;
}
.ce-pathway-viewer--child .ce-cbc-context-path a[aria-current="page"] {
  color: #0f172a !important;
}
.ce-pathway-viewer--child .ce-cbc-context-note {
  margin: 13px 0 0;
  color: #cbd5e1;
}

.ce-pathway-viewer--child .ce-pathway-viewer__detail {
  padding: clamp(24px, 3.5vw, 38px);
  border-radius: 24px;
}
.ce-pathway-viewer--child .ce-pathway-crumbs {
  display: none;
}
.ce-pathway-viewer--child .ce-cbc-next-focus {
  display: grid;
  gap: 20px;
  margin: 30px 0;
}
.ce-pathway-viewer--child .ce-cbc-learning-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 30px 0;
  padding: clamp(22px, 3vw, 28px);
  border: 1px solid #dbe4ee;
  border-radius: 18px;
}
.ce-pathway-viewer--child .ce-cbc-learning-entry h3,
.ce-pathway-viewer--child .ce-cbc-learning-entry p,
.ce-pathway-viewer--child .ce-cbc-learning-entry strong,
.ce-pathway-viewer--child .ce-cbc-learning-entry span {
  color: #0f172a !important;
}

@media (max-width: 760px) {
  .ce-pathway-viewer--child .ce-cbc-curriculum-browser__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .ce-pathway-viewer--child .ce-pathway-viewer__body { gap: 26px; }
  .ce-pathway-viewer--child .ce-cbc-curriculum-browser,
  .ce-pathway-viewer--child .ce-pathway-viewer__detail { padding: 19px; border-radius: 18px; }
  .ce-pathway-viewer--child .ce-cbc-curriculum-grid { grid-template-columns: 1fr; gap: 18px; }
  .ce-pathway-viewer--child .ce-cbc-curriculum-card { min-height: 0; padding: 19px; }
  .ce-pathway-viewer--child .ce-cbc-learning-entry { grid-template-columns: 1fr; }
  .ce-pathway-viewer--child .ce-cbc-learning-entry .ce-button { width: 100%; justify-content: center; }
  .ce-pathway-viewer--child .ce-cbc-result-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
  .ce-pathway-viewer--child .ce-cbc-curriculum-browser__meta { grid-template-columns: 1fr; }
  .ce-pathway-viewer--child .ce-cbc-curriculum-card__footer { display: grid; grid-template-columns: 1fr; }
  .ce-pathway-viewer--child .ce-learning-search--cbc { margin: 24px 0; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ce-pathway-viewer--child .ce-cbc-curriculum-card { transition: none; }
  .ce-pathway-viewer--child .ce-cbc-curriculum-card:hover { transform: none; }
}
