:root {
  --cco-ink: #173742;
  --cco-ink-soft: #49636b;
  --cco-blue: #315f73;
  --cco-blue-dark: #234958;
  --cco-blue-pale: #eaf2f5;
  --cco-gold: #b19a73;
  --cco-line: #dce6e9;
  --cco-canvas: #f4f7f8;
  --cco-white: #ffffff;
  --cco-success: #17633a;
  --cco-warning: #8a5a18;
  --cco-danger: #8a2d2d;
  --cco-radius: 22px;
  --cco-shadow: 0 18px 50px rgba(23, 55, 66, 0.09);
}

.cco-hub-page main.site-main,
.cco-hub-page .entry-content,
.cco-hub-page .wp-site-blocks {
  max-width: none !important;
  padding: 0 !important;
}

.cco-hub-app,
.cco-entry-panel {
  color: var(--cco-ink);
  font-family: inherit;
}

.cco-hub-app *,
.cco-entry-panel * {
  box-sizing: border-box;
}

.cco-hub-app button,
.cco-hub-app input,
.cco-hub-app select,
.cco-hub-app textarea,
.cco-entry-panel button,
.cco-entry-panel input,
.cco-entry-panel select {
  font: inherit;
}

.cco-hub-app a,
.cco-entry-panel a {
  color: inherit;
}

.cco-hub-app :focus-visible,
.cco-entry-panel :focus-visible {
  outline: 3px solid #e1b564;
  outline-offset: 3px;
}

.cco-skip-link {
  background: var(--cco-ink);
  color: #fff !important;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -10rem;
  z-index: 100000;
}

.cco-skip-link:focus {
  top: 1rem;
}

.cco-preview-banner {
  background: #fff5d9;
  border-bottom: 1px solid #ead7a5;
  color: #5f4817;
  font-size: 0.9rem;
  padding: 0.7rem 1.25rem;
  text-align: center;
}

.cco-hub-layout {
  background: var(--cco-canvas);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 78vh;
}

.cco-hub-mobile-header {
  display: none;
}

.cco-hub-nav {
  align-self: stretch;
  background: var(--cco-ink);
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
}

.cco-hub-brand {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  margin: 0 0.55rem 2.2rem;
}

.cco-brand-mark {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 0.7rem;
  height: 44px;
  justify-content: center;
  letter-spacing: 0.12em;
  width: 44px;
}

.cco-hub-brand strong,
.cco-hub-brand small {
  display: block;
}

.cco-hub-brand strong {
  color: #fff;
  font-size: 1rem;
}

.cco-hub-brand small {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin-top: 0.16rem;
  text-transform: uppercase;
}

.cco-hub-nav ul {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cco-hub-nav li {
  margin: 0;
}

.cco-hub-nav a {
  align-items: center;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  font-size: 0.92rem;
  gap: 0.75rem;
  padding: 0.72rem 0.78rem;
  text-decoration: none;
}

.cco-hub-nav a:hover,
.cco-hub-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cco-hub-nav a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--cco-gold);
}

.cco-nav-icon {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  display: inline-flex;
  font-size: 0.95rem;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.cco-nav-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
  margin: auto 0.55rem 0;
  padding-top: 1rem;
}

.cco-hub-main {
  min-width: 0;
  padding: clamp(1.6rem, 4vw, 4rem);
}

.cco-page-heading {
  margin: 0 0 2rem;
  max-width: 840px;
}

.cco-eyebrow {
  color: var(--cco-blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

.cco-page-heading h1,
.cco-entry-panel h1 {
  color: var(--cco-ink);
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 0.8rem;
}

.cco-page-heading > p:last-child,
.cco-entry-panel > p {
  color: var(--cco-ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.cco-button {
  align-items: center;
  background: var(--cco-blue-dark);
  border: 0;
  border-radius: 13px;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.cco-button:hover {
  background: #183e4d;
  transform: translateY(-1px);
}

.cco-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.cco-button-small {
  font-size: 0.86rem;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
}

.cco-text-link {
  color: var(--cco-blue) !important;
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.cco-entry-panel {
  background: linear-gradient(135deg, #edf4f6, #fff 58%);
  border: 1px solid var(--cco-line);
  border-radius: 28px;
  box-shadow: var(--cco-shadow);
  margin: clamp(1rem, 4vw, 4rem) auto;
  max-width: 760px;
  padding: clamp(2rem, 6vw, 5rem);
}

.cco-entry-actions,
.cco-account-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.cco-test-checkout {
  border-top: 1px solid var(--cco-line);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.cco-test-checkout label,
.cco-filter-bar label,
.cco-lucky form label {
  color: var(--cco-ink-soft);
  display: grid;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 0.35rem;
}

.cco-test-checkout select,
.cco-filter-bar input,
.cco-filter-bar select,
.cco-lucky textarea {
  background: #fff;
  border: 1px solid #c8d8dd;
  border-radius: 10px;
  color: var(--cco-ink);
  min-height: 44px;
  padding: 0.65rem 0.75rem;
}

.cco-test-checkout select {
  display: block;
  margin: 0.5rem 0 1rem;
  width: min(100%, 420px);
}

.cco-progress-hero {
  align-items: center;
  background: linear-gradient(120deg, var(--cco-ink), var(--cco-blue));
  border-radius: var(--cco-radius);
  box-shadow: var(--cco-shadow);
  color: #fff;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  padding: clamp(1.4rem, 4vw, 2.3rem);
}

.cco-progress-hero .cco-eyebrow,
.cco-progress-hero p {
  color: rgba(255, 255, 255, 0.76);
}

.cco-progress-hero h2 {
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  margin: 0 0 0.4rem;
}

.cco-progress-track {
  background: rgba(255, 255, 255, 0.17);
  border-radius: 100px;
  height: 8px;
  margin-top: 1rem;
  max-width: 620px;
  overflow: hidden;
}

.cco-progress-track span {
  background: #fff;
  border-radius: inherit;
  display: block;
  height: 100%;
}

.cco-progress-number {
  align-items: baseline;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  flex: 0 0 120px;
  font-size: 2.7rem;
  height: 120px;
  justify-content: center;
}

.cco-progress-number small {
  font-size: 1rem;
}

.cco-dashboard-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cco-panel,
.cco-module,
.cco-technique-card,
.cco-certificate-card,
.cco-empty-state,
.cco-media-pending,
.cco-video-wrap {
  background: var(--cco-white);
  border: 1px solid var(--cco-line);
  border-radius: var(--cco-radius);
  box-shadow: 0 10px 32px rgba(23, 55, 66, 0.05);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.cco-panel {
  margin-bottom: 1.4rem;
}

.cco-panel h2,
.cco-module h2,
.cco-technique-card h2,
.cco-certificate-card h2,
.cco-empty-state h2 {
  color: var(--cco-ink);
  font-size: 1.35rem;
  margin: 0 0 0.7rem;
}

.cco-panel p,
.cco-module p,
.cco-technique-card p,
.cco-empty-state p,
.cco-media-pending p {
  color: var(--cco-ink-soft);
  line-height: 1.62;
}

.cco-panel-primary {
  background: linear-gradient(145deg, #fff, var(--cco-blue-pale));
}

.cco-task-list {
  margin-top: 1.4rem;
}

.cco-section-title {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.cco-section-title > span {
  color: var(--cco-ink-soft);
  font-size: 0.85rem;
  white-space: nowrap;
}

.cco-task-list ul,
.cco-requirements,
.cco-download-list,
.cco-session-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cco-task-list li,
.cco-download-list li {
  align-items: center;
  border-top: 1px solid var(--cco-line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 0;
}

.cco-task-list strong {
  color: var(--cco-blue);
  font-size: 0.78rem;
  text-align: right;
}

.cco-preview-note {
  color: var(--cco-warning);
  font-size: 0.82rem;
}

.cco-module-list {
  display: grid;
  gap: 1rem;
}

.cco-module {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 48px minmax(0, 1fr);
}

.cco-module-number {
  align-items: center;
  background: var(--cco-blue-pale);
  border-radius: 50%;
  color: var(--cco-blue);
  display: flex;
  font-size: 1.1rem;
  font-weight: 700;
  height: 48px;
  justify-content: center;
}

.cco-lesson-list {
  border-top: 1px solid var(--cco-line);
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.cco-lesson-list a {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.8rem 0;
  text-decoration: none;
}

.cco-lesson-list small {
  color: var(--cco-blue);
}

.cco-breadcrumb {
  align-items: center;
  color: var(--cco-ink-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.cco-breadcrumb a {
  color: var(--cco-blue);
}

.cco-lesson-content {
  color: var(--cco-ink-soft);
  font-size: 1rem;
  line-height: 1.72;
}

.cco-lesson-content > p,
.cco-lesson-content > h2,
.cco-lesson-content > section,
.cco-lesson-content > details,
.cco-lesson-content > figure,
.cco-lesson-content > aside {
  margin-inline: auto;
  max-width: 780px;
}

.cco-lesson-content h2 {
  color: var(--cco-ink);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.25;
  margin-top: 2.2rem;
}

.cco-source-kicker,
.cco-editorial-note {
  background: var(--cco-blue-pale);
  border-left: 4px solid var(--cco-blue);
  border-radius: 0 12px 12px 0;
  padding: 0.9rem 1rem;
}

.cco-learning-task-title {
  background: #f6f1e8;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0 !important;
  padding: 1rem 1.1rem 0.25rem;
}

.cco-learning-task-title + p {
  background: #f6f1e8;
  border-radius: 0 0 12px 12px;
  margin-top: 0;
  padding: 0.4rem 1.1rem 1rem;
}

.cco-solution {
  background: #f7fafb;
  border: 1px solid var(--cco-line);
  border-radius: 12px;
  margin-block: 1rem;
  padding: 0.9rem 1rem;
}

.cco-solution summary {
  color: var(--cco-blue-dark);
  cursor: pointer;
  font-weight: 700;
}

.cco-learning-figure {
  background: #fff;
  border: 1px solid var(--cco-line);
  border-radius: var(--cco-radius);
  overflow: hidden;
  padding: 1rem;
}

.cco-learning-figure img {
  display: block;
  height: auto;
  margin: auto;
  max-height: 620px;
  max-width: 100%;
  object-fit: contain;
}

.cco-learning-figure figcaption {
  color: var(--cco-ink-soft);
  font-size: 0.8rem;
  line-height: 1.5;
  padding-top: 0.8rem;
}

.cco-source-list ul {
  padding-left: 1.2rem;
}

.cco-source-list a {
  color: var(--cco-blue-dark);
  text-underline-offset: 0.18em;
}

.cco-lesson-meta,
.cco-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cco-lesson-meta span,
.cco-card-meta span {
  background: var(--cco-blue-pale);
  border-radius: 100px;
  color: var(--cco-blue-dark);
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
}

.cco-video-wrap,
.cco-media-pending {
  margin-bottom: 1.5rem;
}

.cco-video-wrap video {
  aspect-ratio: 16 / 9;
  background: #0d2027;
  border-radius: 14px;
  display: block;
  max-width: 100%;
  width: 100%;
}

.cco-lesson-content {
  color: #293f46;
  font-size: 1.02rem;
  line-height: 1.78;
  max-width: 790px;
}

.cco-lesson-content h2,
.cco-summary h2 {
  color: var(--cco-ink);
  font-size: 1.6rem;
  margin-top: 2rem;
}

.cco-summary {
  border-top: 1px solid var(--cco-line);
  margin: 2rem 0;
  max-width: 790px;
  padding-top: 0.8rem;
}

.cco-lesson-pagination {
  border-top: 1px solid var(--cco-line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem;
  padding-top: 1.2rem;
}

.cco-lesson-pagination a:last-child {
  text-align: right;
}

.cco-filter-bar {
  align-items: end;
  background: #fff;
  border: 1px solid var(--cco-line);
  border-radius: 18px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1.3fr 1fr 1fr 0.7fr auto;
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.cco-technique-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cco-technique-card details {
  border-top: 1px solid var(--cco-line);
  margin-top: 1rem;
  padding-top: 0.8rem;
}

.cco-technique-card summary {
  color: var(--cco-blue);
  cursor: pointer;
  font-weight: 700;
}

.cco-technique-card h3 {
  font-size: 1rem;
  margin: 1rem 0 0.25rem;
}

.cco-presence-steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.4rem;
}

.cco-presence-steps > div {
  border-left: 2px solid var(--cco-gold);
  padding: 0.3rem 1rem;
}

.cco-presence-steps strong {
  color: var(--cco-gold);
  font-size: 0.8rem;
}

.cco-presence-steps h2 {
  font-size: 1.08rem;
  margin: 0.4rem 0;
}

.cco-presence-steps p {
  color: var(--cco-ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cco-session-list article {
  align-items: center;
  border-top: 1px solid var(--cco-line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 0;
}

.cco-session-list h3 {
  margin: 0;
}

.cco-download-list li {
  background: #fff;
  border: 1px solid var(--cco-line);
  border-radius: 16px;
  margin-bottom: 0.8rem;
  padding: 1rem 1.2rem;
}

.cco-download-list strong,
.cco-download-list span {
  display: block;
}

.cco-download-list span {
  color: var(--cco-ink-soft);
  font-size: 0.86rem;
  margin-top: 0.2rem;
}

.cco-requirements li {
  align-items: center;
  border-top: 1px solid var(--cco-line);
  display: flex;
  gap: 0.8rem;
  padding: 0.9rem 0;
}

.cco-requirements li > span {
  align-items: center;
  border: 1px solid #b8c9ce;
  border-radius: 50%;
  color: var(--cco-ink-soft);
  display: flex;
  flex: 0 0 30px;
  height: 30px;
  justify-content: center;
}

.cco-requirements .is-met > span {
  background: var(--cco-success);
  border-color: var(--cco-success);
  color: #fff;
}

.cco-requirements strong,
.cco-requirements small {
  display: block;
}

.cco-requirements small {
  color: var(--cco-ink-soft);
}

.cco-certificate-card {
  background: linear-gradient(135deg, #fff, #f4efe6);
  border-color: #d8c7a9;
}

.cco-account-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cco-account-grid div {
  border-bottom: 1px solid var(--cco-line);
  padding-bottom: 0.8rem;
}

.cco-account-grid span,
.cco-account-grid strong {
  display: block;
}

.cco-account-grid span {
  color: var(--cco-ink-soft);
  font-size: 0.78rem;
}

.cco-lucky {
  bottom: 1rem;
  position: fixed;
  right: 1rem;
  z-index: 1000;
}

.cco-lucky-toggle {
  align-items: center;
  background: var(--cco-ink);
  border: 0;
  border-radius: 100px;
  box-shadow: 0 12px 36px rgba(23, 55, 66, 0.22);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-weight: 700;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
}

.cco-lucky-toggle span:first-child {
  color: #e7c887;
  font-size: 1.1rem;
}

.cco-lucky-panel {
  background: #fff;
  border: 1px solid var(--cco-line);
  border-radius: 20px;
  bottom: 3.8rem;
  box-shadow: var(--cco-shadow);
  max-height: min(620px, 76vh);
  overflow: auto;
  padding: 1.2rem;
  position: absolute;
  right: 0;
  width: min(370px, calc(100vw - 2rem));
}

.cco-lucky-panel h2 {
  margin: 0 0 0.3rem;
}

.cco-lucky-messages {
  background: var(--cco-blue-pale);
  border-radius: 14px;
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
  max-height: 220px;
  overflow: auto;
  padding: 0.9rem;
}

.cco-lucky-messages p {
  background: #fff;
  border-radius: 10px;
  color: var(--cco-ink-soft);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
  padding: 0.7rem;
}

.cco-lucky form {
  display: grid;
  gap: 0.7rem;
}

.cco-lucky textarea {
  min-height: 92px;
  resize: vertical;
}

.cco-lucky-privacy {
  color: var(--cco-ink-soft);
  font-size: 0.72rem;
  margin: 0.8rem 0 0;
}

.cco-toast {
  background: var(--cco-ink);
  border-radius: 10px;
  bottom: 1rem;
  color: #fff;
  left: 50%;
  max-width: calc(100vw - 2rem);
  padding: 0.8rem 1rem;
  position: fixed;
  transform: translateX(-50%);
  z-index: 2000;
}

@media (max-width: 1040px) {
  .cco-hub-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .cco-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cco-filter-bar .cco-button {
    width: max-content;
  }
}

@media (max-width: 760px) {
  .cco-hub-mobile-header {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--cco-line);
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 1rem;
  }
  .cco-hub-mobile-header p {
    margin: 0;
  }
  .cco-menu-toggle {
    background: var(--cco-blue-pale);
    border: 1px solid var(--cco-line);
    border-radius: 9px;
    color: var(--cco-ink);
    min-height: 40px;
    padding: 0.5rem 0.8rem;
  }
  .cco-hub-layout {
    display: block;
    min-height: 70vh;
  }
  .cco-hub-nav {
    display: none;
    padding: 1rem;
  }
  .cco-hub-nav.is-open {
    display: block;
  }
  .cco-hub-brand,
  .cco-nav-foot {
    display: none;
  }
  .cco-hub-main {
    padding: 1.35rem 1rem 5.5rem;
  }
  .cco-dashboard-grid,
  .cco-technique-grid,
  .cco-presence-steps,
  .cco-account-grid {
    grid-template-columns: 1fr;
  }
  .cco-progress-number {
    display: none;
  }
  .cco-module {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 1rem;
  }
  .cco-module-number {
    height: 38px;
    width: 38px;
  }
  .cco-filter-bar {
    grid-template-columns: 1fr;
  }
  .cco-filter-bar .cco-button {
    width: 100%;
  }
  .cco-task-list li,
  .cco-session-list article,
  .cco-download-list li {
    align-items: flex-start;
    flex-direction: column;
  }
  .cco-task-list strong {
    text-align: left;
  }
  .cco-lesson-pagination {
    grid-template-columns: 1fr;
  }
  .cco-lesson-pagination a:last-child {
    text-align: left;
  }
  .cco-lucky {
    bottom: 0.75rem;
    right: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cco-hub-app *,
  .cco-entry-panel * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
