/* FLOOR9 Course Catalog & Detail Page — Unified with Design Language */
.catalog-content-section {
  padding: 56px 0 84px;
}
.catalog-search-wrap {
  margin-bottom: 42px;
}
.catalog-search-form {
  display: flex;
  gap: 12px;
  max-width: 720px;
}
.catalog-search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.catalog-search-input-wrap .ui-icon {
  position: absolute;
  left: 14px;
  color: #647890;
  pointer-events: none;
}
.catalog-search-form .catalog-search-input-wrap input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--hairline, #e5eaf1);
  border-radius: 6px;
  background: #fff;
  color: var(--ink, #111b28);
  font-family: inherit;
  font-size: .94rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
html[data-theme="dark"] .catalog-search-form .catalog-search-input-wrap input:not([type="checkbox"]):not([type="radio"]) {
  background: #0c1726;
  border-color: #40516a;
  color: var(--ink, #eef3fb);
}
.catalog-search-input-wrap input:focus {
  outline: none;
  border-color: var(--blue, #086bda);
  box-shadow: 0 0 0 3px rgba(8, 107, 218, 0.14);
}
.catalog-search-btn {
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--navy, #071b46);
  border-radius: 6px;
  background: var(--navy, #071b46);
  color: #fff;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.catalog-search-btn:hover {
  background: var(--blue, #086bda);
  border-color: var(--blue, #086bda);
}
.catalog-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 28px;
}
.catalog-filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 16px;
  border: 1px solid var(--hairline, #e5eaf1);
  border-radius: 4px;
  color: var(--ink, #111b28);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .16s cubic-bezier(.22, 1, .36, 1), border-color .16s cubic-bezier(.22, 1, .36, 1), color .16s cubic-bezier(.22, 1, .36, 1);
}
.catalog-filter-pill:hover,
.catalog-filter-pill:focus-visible {
  border-color: var(--blue, #086bda);
  color: var(--blue, #086bda);
}
.catalog-filter-pill.is-active {
  border-color: var(--navy, #071b46);
  background: var(--navy, #071b46);
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .catalog-filter-pill,
  .catalog-card,
  .catalog-card-action .ui-icon {
    transition: none;
  }
  .catalog-card:hover,
  .catalog-card:hover .catalog-card-action .ui-icon {
    transform: none;
  }
}
html[data-motion="reduce"] .catalog-filter-pill,
html[data-motion="reduce"] .catalog-card,
html[data-motion="reduce"] .catalog-card-action .ui-icon {
  transition: none;
}
html[data-motion="reduce"] .catalog-card:hover,
html[data-motion="reduce"] .catalog-card:hover .catalog-card-action .ui-icon {
  transform: none;
}
.catalog-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline, #e5eaf1);
}
.catalog-header-bar h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.03em;
  margin: 0;
  color: var(--ink, #111b28);
}
.catalog-count-pill {
  font-size: .78rem;
  font-weight: 600;
  color: #55677d;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--hairline, #e5eaf1);
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
  transition: border-color .16s cubic-bezier(.22, 1, .36, 1);
}
.catalog-card:hover {
  border-color: var(--blue, #086bda);
}
.catalog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.catalog-card-provider {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--blue, #086bda);
}
.catalog-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.035em;
  margin: 0 0 10px;
  color: var(--ink, #111b28);
}
.catalog-card h3 a {
  color: inherit;
  text-decoration: none;
}
.catalog-card h3 a:hover {
  color: var(--blue, #086bda);
}
.catalog-card-desc {
  font-size: .88rem;
  line-height: 1.6;
  color: #55677d;
  margin: 0 0 20px;
  flex-grow: 1;
}
.catalog-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.catalog-card-action {
  font-size: .84rem;
  font-weight: 600;
  color: var(--blue, #086bda);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.catalog-card:hover .catalog-card-action .ui-icon {
  transform: translate(2px, -2px);
}
.catalog-card-action .ui-icon {
  transition: transform .18s ease;
}
.catalog-empty-state {
  grid-column: 1 / -1;
  padding: 48px 32px;
  text-align: center;
  border: 1px dashed var(--hairline, #e5eaf1);
  border-radius: 6px;
  background: #fbfcfe;
}
.catalog-empty-state h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.catalog-empty-state p {
  font-size: .92rem;
  color: #647890;
  max-width: 540px;
  margin: 0 auto 20px;
}
.catalog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  font-size: .86rem;
}
.catalog-pagination a {
  padding: 8px 16px;
  border: 1px solid var(--hairline, #e5eaf1);
  border-radius: 5px;
  background: #fff;
  color: var(--ink, #111b28);
  text-decoration: none;
  font-weight: 550;
  transition: border-color .18s ease, background .18s ease;
}
.catalog-pagination a:hover {
  border-color: var(--blue, #086bda);
  color: var(--blue, #086bda);
}
.catalog-pagination span {
  color: #647890;
}

/* Detail Page */
.catalog-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 48px;
  align-items: start;
}
.catalog-lessons-block h2 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.035em;
  margin: 0 0 20px;
  color: var(--ink, #111b28);
}
.catalog-lessons-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border: 1px solid var(--hairline, #e5eaf1);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.catalog-lesson-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #edf1f6;
}
.catalog-lesson-item:last-child {
  border-bottom: 0;
}
.catalog-lesson-num {
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue, #086bda);
  background: #f0f6fd;
  border-radius: 4px;
  padding: 4px 8px;
  letter-spacing: .06em;
}
.catalog-lesson-title {
  font-size: .95rem;
  font-weight: 550;
  color: var(--ink, #111b28);
}
.catalog-boundary-callout {
  padding: 22px;
  border-left: 3px solid var(--blue, #086bda);
  background: #f7fafe;
  border-radius: 0 6px 6px 0;
}
.catalog-boundary-callout strong {
  display: block;
  font-size: .88rem;
  color: var(--navy, #071b46);
  margin-bottom: 6px;
}
.catalog-boundary-callout p {
  font-size: .86rem;
  line-height: 1.6;
  color: #55677d;
  margin: 0;
}
.catalog-sidebar-card {
  padding: 28px;
  border: 1px solid var(--hairline, #e5eaf1);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 27, 70, 0.04);
}
.catalog-sidebar-card .micro-label {
  display: block;
  margin-bottom: 8px;
}
.catalog-sidebar-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -.035em;
  margin: 0 0 10px;
  color: var(--ink, #111b28);
}
.catalog-sidebar-card p {
  font-size: .88rem;
  line-height: 1.6;
  color: #55677d;
  margin: 0 0 22px;
}
.catalog-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--navy, #071b46);
  border-radius: 5px;
  background: var(--navy, #071b46);
  color: #fff;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.catalog-btn-primary:hover {
  background: var(--blue, #086bda);
  border-color: var(--blue, #086bda);
  color: #fff;
}
.catalog-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  padding: 8px 18px;
  border: 1px solid var(--hairline, #e5eaf1);
  border-radius: 5px;
  background: #fbfcfe;
  color: #34485e;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 550;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.catalog-btn-secondary:hover {
  border-color: #b5c7dc;
  color: var(--ink, #111b28);
}

@media(max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-detail-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
@media(max-width: 600px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .catalog-search-form {
    flex-direction: column;
  }
  .catalog-search-btn {
    width: 100%;
  }
}

/* Workspace Integration */
.catalog-content-section--workspace {
  padding: 12px 0 40px;
}
.catalog-workspace-wrap {
  width: 100%;
  max-width: 1200px;
}
html[data-theme="dark"] .catalog-search-input-wrap input {
  background: var(--mineral);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .catalog-filter-pill {
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .catalog-filter-pill.is-active {
  background: #086bda;
  border-color: #2787ec;
  color: #fff;
}
html[data-theme="dark"] .catalog-search-btn {
  background: #086bda;
  border-color: #2787ec;
  color: #fff;
}
html[data-theme="dark"] .catalog-search-btn:hover {
  background: #397fd1;
  border-color: #397fd1;
}
html[data-theme="dark"] .catalog-count-pill,
html[data-theme="dark"] .catalog-card-desc,
html[data-theme="dark"] .catalog-sidebar-card p,
html[data-theme="dark"] .catalog-boundary-callout p,
html[data-theme="dark"] .catalog-pagination span,
html[data-theme="dark"] .catalog-empty-state p,
html[data-theme="dark"] .catalog-empty-lessons-note {
  color: var(--muted);
}
html[data-theme="dark"] .catalog-boundary-callout strong {
  color: var(--ink);
}
html[data-theme="dark"] .catalog-card {
  background: var(--paper);
  border-color: var(--line);
}
html[data-theme="dark"] .catalog-card h3 a {
  color: var(--ink);
}
html[data-theme="dark"] .catalog-card-header,
html[data-theme="dark"] .catalog-card-footer {
  border-color: var(--line);
}
html[data-theme="dark"] .catalog-header-bar {
  border-color: var(--line);
}
html[data-theme="dark"] .catalog-header-bar h2 {
  color: var(--ink);
}
html[data-theme="dark"] .catalog-empty-state {
  background: var(--paper);
  border-color: var(--line);
}
html[data-theme="dark"] .catalog-empty-state h3 {
  color: var(--ink);
}
html[data-theme="dark"] .catalog-pagination a {
  background: #152338;
  border-color: #4a5d78;
  color: var(--ink);
}
html[data-theme="dark"] .catalog-pagination a:hover {
  border-color: var(--blue);
  color: var(--blue);
}
html[data-theme="dark"] .catalog-boundary-callout {
  background: var(--mineral);
  border-color: var(--blue);
}
html[data-theme="dark"] .catalog-sidebar-card {
  background: var(--paper);
  border-color: var(--line);
}
html[data-theme="dark"] .catalog-sidebar-card h3 {
  color: var(--ink);
}
html[data-theme="dark"] .catalog-lessons-block h2 {
  color: var(--ink);
}
html[data-theme="dark"] .catalog-lessons-list {
  background: var(--paper);
  border-color: var(--line);
}
html[data-theme="dark"] .catalog-lesson-item {
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .catalog-lesson-title {
  color: var(--ink);
}
html[data-theme="dark"] .catalog-lesson-num {
  background: #152338;
  color: var(--blue);
}
html[data-theme="dark"] .catalog-btn-primary {
  background: #086bda;
  border-color: #2787ec;
  color: #fff;
}
html[data-theme="dark"] .catalog-btn-primary:hover {
  background: #397fd1;
  border-color: #397fd1;
  color: #fff;
}
html[data-theme="dark"] .catalog-btn-secondary {
  background: #152338;
  border-color: #4a5d78;
  color: var(--ink);
}
html[data-theme="dark"] .catalog-btn-secondary:hover {
  background: #203653;
  border-color: var(--blue);
  color: #fff;
}
.catalog-empty-lessons-note {
  color: #647890;
  margin-bottom: 24px;
}
.stage-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  background: #eaf7f1;
  color: #0c6750;
  border: 1px solid rgba(12, 103, 80, 0.14);
}
html[data-theme="dark"] .stage-pill {
  background: #173b34;
  color: #8ce0c3;
  border-color: rgba(140, 224, 195, 0.18);
}
body.page-courses main > .catalog-hero:first-child {
  margin-top: calc(-1 * var(--blend-top, 76px));
  padding-top: calc(clamp(48px, 6vw, 76px) + var(--blend-top, 76px));
}
body.page-courses:has(> .breadcrumbs, main > .catalog-hero > .shell > .breadcrumbs) .catalog-hero .breadcrumbs {
  background: transparent !important;
  border-bottom: 1px solid rgba(7, 27, 70, 0.06);
  margin-bottom: 20px;
  padding-bottom: 10px;
}
