@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

/* ─── Design tokens ──────────────────────────────────────────────────── */
:root {
  --ch-purple:       #493290;
  --ch-purple-deep:  #120139;
  --ch-purple-light: #8B5CF6;
  --ch-magenta:      #D946EF;
  --ch-orange:       #FF7A1A;
  --ch-text:         #120139;
  --ch-muted:        #6B7280;
  --ch-line:         #ede8f5;
  --ch-bg:           rgba(255,255,255,0.96);
  --ch-shadow:       0 20px 50px rgba(18,1,57,.1), 0 4px 12px rgba(18,1,57,.06);
  --ch-height:       100px;
}

/* ─── @property for beam animation ──────────────────────────────────── */
@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ─── Reset scope ────────────────────────────────────────────────────── */
.cmh-header *, .cmh-mobile *, .cmh-search-overlay * {
  box-sizing: border-box;
}
.cmh-header a, .cmh-mobile a {
  text-decoration: none;
  color: inherit;
}
.cmh-header ul, .cmh-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cmh-header button, .cmh-mobile button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
}
.cmh-header img { display: block; }
/* Banner icon must stay inline within text flow */
@keyframes megaphone-wiggle {
  0%, 88%, 100% { transform: rotate(0deg); }
  90%            { transform: rotate(-12deg); }
  93%            { transform: rotate(10deg); }
  96%            { transform: rotate(-6deg); }
  98%            { transform: rotate(4deg); }
}
.cmh-mega-banner .notice-icon {
  display: inline-block !important;
  vertical-align: middle;
  margin-right: 6px;
  filter: brightness(0) saturate(100%) invert(22%) sepia(58%) saturate(900%) hue-rotate(232deg) brightness(90%) contrast(105%);
  animation: megaphone-wiggle 5s ease-in-out infinite;
  transform-origin: bottom left;
}

/* ─── Force Outfit on every element inside the header/mobile/search ─── */
.cmh-header, .cmh-header *,
.cmh-mobile, .cmh-mobile *,
.cmh-search-overlay, .cmh-search-overlay * {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}

/* ─── Header shell ───────────────────────────────────────────────────── */
.cmh-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* No transition here — reveal is instant on first scroll-up tick */
}
/* Transition only on the hidden state so hiding animates but reveal is instant */
.cmh-header.is-hidden {
  transform: translateY(-100%);
  transition: transform 320ms cubic-bezier(.4,0,.2,1);
}

.cmh-header-inner {
  position: relative;
  background: var(--ch-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ch-line);
}

.cmh-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--ch-height);
  display: flex;
  align-items: center;
  gap: 0;
}

/* ─── Logo ───────────────────────────────────────────────────────────── */
.cmh-logo { display: flex; align-items: center; flex-shrink: 0; }
.cmh-logo img { width: 285px; height: auto; }

/* ─── Desktop Nav ────────────────────────────────────────────────────── */
.cmh-nav { flex: 1; min-width: 0; display: flex; justify-content: center; }
.cmh-nav-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.cmh-nav-item { position: static; }

.cmh-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  color: var(--ch-text) !important;
  white-space: nowrap;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: color 150ms, border-color 150ms;
}
.cmh-nav-btn:hover { color: var(--ch-purple) !important; border-bottom-color: var(--ch-purple); background: none; }
.cmh-nav-item.is-open .cmh-nav-btn { color: var(--ch-purple) !important; border-bottom-color: var(--ch-purple); background: none; }

.cmh-chev {
  opacity: .6;
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.cmh-nav-item.is-open .cmh-chev { transform: rotate(180deg); }

/* ─── Actions (right) ────────────────────────────────────────────────── */
.cmh-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 0;
  color: var(--ch-text);
  transition: background 150ms, color 150ms;
}
.icon-btn:hover { background: rgba(73,50,144,.07); color: var(--ch-purple); }

.cmh-mobile-toggle { display: none; }

@keyframes cta-shimmer {
  0%        { left: -80%; }
  55%, 100% { left: 150%; }
}
.cmh-cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: var(--ch-purple);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 0;
  white-space: nowrap;
  transition: background 150ms, transform 150ms;
  position: relative;
  overflow: hidden;
}
.cmh-cta::after {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  animation: cta-shimmer 3s ease-in-out infinite;
  pointer-events: none;
}
.cmh-cta:hover { background: var(--ch-purple-deep); transform: translateY(-1px); color: #fff !important; }

/* ─── Mega Panel shell ───────────────────────────────────────────────── */
.cmh-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  border-top: none;
  border-bottom: 1px solid var(--ch-line);
  box-shadow: var(--ch-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  z-index: 999;
  overflow: hidden;
}

/* Animated gradient top bar */
@keyframes gradient-sweep {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.cmh-mega::before {
  content: '';
  position: absolute; top: 0; left: 0;
  height: 3px; width: 100%;
  background: linear-gradient(to right,
    var(--ch-purple-deep),
    var(--ch-magenta),
    #7b5ea7,
    var(--ch-purple),
    var(--ch-magenta),
    var(--ch-purple-deep));
  background-size: 200% 100%;
  animation: gradient-sweep 5s linear infinite;
}

/* Per-panel breathing backgrounds */
@keyframes breathe-expertise {
  0%, 100% { background-color: #f8f4fe; }
  50%       { background-color: #ffffff; }
}
@keyframes breathe-solutions {
  0%, 100% { background-color: #fdf8f4; }
  50%       { background-color: #ffffff; }
}
@keyframes breathe-case-studies {
  0%, 100% { background-color: #fdf4ec; }
  50%       { background-color: #ffffff; }
}
@keyframes breathe-about {
  0%, 100% { background-color: #f8f4fe; }
  50%       { background-color: #ffffff; }
}
.panel-expertise    { animation: breathe-expertise    10s ease-in-out infinite; }
.panel-solutions    { animation: breathe-solutions    10s ease-in-out infinite 2s; }
.panel-case-studies { animation: breathe-case-studies 10s ease-in-out infinite 4s; }
.panel-about        { animation: breathe-about        10s ease-in-out infinite 1s; }

.cmh-nav-item.is-open > .cmh-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ─── Mega inner grid ────────────────────────────────────────────────── */
.cmh-mega-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 24px 28px;
  display: grid;
  gap: 32px;
  align-items: start;
}

/* Expertise: fixed 400px col 1 + auto col 2 + featured */
.panel-expertise .cmh-mega-inner {
  grid-template-columns: 400px 1fr 300px;
}

/* Solutions: 3 visual cols (col1 = stacked small groups) + featured */
.panel-solutions .cmh-mega-inner {
  grid-template-columns: 1fr 1.5fr 1fr 280px;
}

/* Case Studies: full-width single block */
.panel-case-studies .cmh-mega-inner {
  grid-template-columns: 1fr;
  padding-bottom: 28px;
}

/* About: Inside Effectual (narrow) | News & Resources (narrower) | Recent News (wide) */
.panel-about .cmh-mega-inner {
  grid-template-columns: 0.65fr 0.5fr 1fr;
}

/* ─── Mega column ────────────────────────────────────────────────────── */
.cmh-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(73,50,144,.1);
}
.cmh-col-head h6 {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ch-purple);
}
/* Clickable column headers */
.cmh-col-head-link {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: var(--ch-purple) !important;
  transition: color 150ms;
}
.cmh-col-head-link:hover { color: var(--ch-purple-deep) !important; }

.cmh-col-icon { display: none !important; }

.cmh-col-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Subsection (3rd-level group) */
.cmh-subsection { margin-bottom: 12px; }
.cmh-subsec-head {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ch-purple);
  margin-bottom: 4px;
  padding-left: 0;
}
.cmh-subsec-link {
  color: var(--ch-purple) !important;
  transition: color 150ms;
}
.cmh-subsec-link:hover { color: var(--ch-purple-deep) !important; }

/* ─── Mega link ──────────────────────────────────────────────────────── */
.cmh-mega-link {
  display: block;
  padding: 3px 0;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.35;
  color: var(--ch-text) !important;
  transition: color 150ms, transform 150ms;
}
.cmh-mega-link:hover { color: var(--ch-purple) !important; background: none; transform: translateX(4px); }

/* ─── Featured column ────────────────────────────────────────────────── */
.cmh-featured {
  background: transparent;
  padding: 0;
  color: var(--ch-text);
  position: relative;
}

.cmh-featured-tag { display: none; }

.cmh-featured-title {
  color: var(--ch-text); font-size: 17px; font-weight: 700;
  margin: 0 0 10px; line-height: 1.3;
}
.cmh-featured-desc {
  font-size: 16px; color: #1a1a1a;
  margin: 0 0 16px; line-height: 1.5;
}
.cmh-featured-img {
  display: block;
  max-width: 100%; width: auto; height: auto !important;
  border-radius: 6px;
  margin-bottom: 16px;
}
.cmh-featured-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 600; color: var(--ch-text) !important;
  transition: color 150ms;
}
.cmh-featured-link:hover { color: var(--ch-purple) !important; }

/* Video thumbnail — rounded on all 4 corners to look like a video player */
.cmh-video-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  cursor: pointer;
  border-radius: 8px; overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(18,1,57,.15);
}
.cmh-video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.cmh-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 54px; height: 54px;
  background: rgba(0,0,0,.6); border-radius: 50%;
  display: grid; place-items: center;
  transition: background 150ms;
}
.cmh-video-wrap:hover .cmh-play-btn { background: rgba(0,0,0,.8); }
.cmh-play-triangle {
  display: block; width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
  margin-left: 3px;
}
.cmh-video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ─── Announcement banner ────────────────────────────────────────────── */
.cmh-mega-banner {
  background: #f4f0ff;
  border-top: 1px solid #e0d7ff;
  padding: 14px 48px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ch-text);
  text-align: center;
}
.cmh-mega-banner a { color: var(--ch-purple); font-weight: 600; margin-left: 8px; }
.cmh-mega-banner a:hover { text-decoration: underline; }

/* ─── Section labels ─────────────────────────────────────────────────── */
.cmh-section-label {
  margin: 0 0 16px;
  font-size: 11px; font-weight: 800; font-family: 'Outfit', system-ui, -apple-system, sans-serif !important;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ch-purple);
}

/* ─── Case Studies panel ─────────────────────────────────────────────── */
.cmh-cs-block { width: 100%; }

.cmh-cs-viewall {
  display: inline-block;
  margin: 16px 0 24px;
  font-size: 14px; font-weight: 600; color: var(--ch-text);
}
.cmh-cs-viewall:hover { color: var(--ch-purple); text-decoration: underline; }

.cmh-cs-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cmh-cs-card { display: flex; flex-direction: column; gap: 10px; }
.cmh-cs-thumb img {
  width: 100%; height: auto; aspect-ratio: 2/1;
  object-fit: cover; border-radius: 0;
}
/* Prevent underline animation on CS thumbnail links */
.cmh-cs-thumb a::after { display: none !important; }

.cmh-cs-body { display: flex; flex-direction: column; gap: 6px; }
.cmh-cs-title {
  font-size: 18px; font-weight: 700; color: #120139 !important;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cmh-cs-title:hover { color: var(--ch-purple); }
.cmh-cs-excerpt { font-size: 16px; color: #1a1a1a; line-height: 1.5; }

.cmh-cs-divider {
  height: 1px; background: var(--ch-line);
  margin-bottom: 16px;
}

.cmh-cs-logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.cmh-cs-logos::-webkit-scrollbar { display: none; }
.cmh-cs-logo-link { flex-shrink: 0; display: inline-flex; align-items: center; }
.cmh-cs-logo-link img {
  height: 60px; width: auto;
  max-width: none;
  object-fit: contain;
  opacity: .7;
  transition: opacity 150ms;
}
.cmh-cs-logo-link:hover img { opacity: 1; }

/* ─── Recent News rail ───────────────────────────────────────────────── */
.cmh-news-rail { padding-left: 24px; border-left: 1px solid var(--ch-line); }
.cmh-news-list {
  list-style: none; padding: 0; margin: 0 0 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.cmh-news-list li { position: relative; padding-left: 14px; }
.cmh-news-list li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ch-text);
}
.cmh-news-list a {
  font-size: 16px; font-weight: 400; color: var(--ch-text); line-height: 1.35;
  transition: color 150ms;
}
.cmh-news-list a:hover { color: var(--ch-purple); }
.cmh-news-footer a {
  font-size: 13px; font-weight: 600; color: var(--ch-text);
}
.cmh-news-footer a:hover { color: var(--ch-purple); text-decoration: underline; }

/* ─── Pills ──────────────────────────────────────────────────────────── */
.cmh-pill {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
  margin-left: 7px; vertical-align: middle;
  text-transform: uppercase; letter-spacing: .05em;
}
.cmh-pill-hiring { background: #f4d7f4; color: #5e007f; }
.cmh-pill-join   { background: #fff3e0; color: #924500; }
.cmh-pill-aws    { background: #e8f3ff; color: #1a6bb0; border: 1px solid #b3d4f5; font-size: 9px; }
.cmh-pill-ai     { background: #ede8ff; color: var(--ch-purple); border: 1px solid rgba(73,50,144,0.2); }

/* ─── About panel stat counters ─────────────────────────────────────── */
.cmh-stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(73,50,144,0.08);
  max-width: 1140px;
  margin: 0 auto;
}
.cmh-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cmh-stat-num {
  font-size: 26px; font-weight: 700;
  color: var(--ch-purple);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cmh-stat-label {
  font-size: 11px; font-weight: 600;
  color: var(--ch-purple);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ─── Search Overlay ─────────────────────────────────────────────────── */
.cmh-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,1,57,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms, visibility 200ms;
}
.cmh-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cmh-search-inner {
  width: 100%; max-width: 640px;
  position: relative;
}
.cmh-search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(18,1,57,.25);
}
.cmh-search-icon {
  flex-shrink: 0;
  margin: 0 4px 0 20px;
  opacity: .45;
  color: var(--ch-text);
}
.cmh-search-input {
  flex: 1;
  border: none; outline: none;
  padding: 18px 20px;
  font-size: 18px;
  color: var(--ch-text);
  background: transparent;
}
.cmh-search-input::placeholder { color: #aaa; }
.cmh-search-close {
  position: absolute;
  top: -52px; right: 0;
  color: rgba(255,255,255,.8);
  transition: color 150ms;
}
.cmh-search-close:hover { color: #fff; }

/* ─── Search results (Pagefind) ──────────────────────────────────────── */
.cmh-search-results {
  margin-top: 6px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(18,1,57,.18);
  max-height: 56vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cmh-search-result {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ch-line);
  transition: background 150ms;
}
.cmh-search-result:last-child { border-bottom: none; }
.cmh-search-result:hover { background: rgba(73,50,144,.05); }
.cmh-result-title {
  display: block;
  font-size: 15px; font-weight: 600;
  color: var(--ch-text);
  line-height: 1.35;
}
.cmh-search-result:hover .cmh-result-title { color: var(--ch-purple); }
.cmh-result-excerpt {
  display: block;
  font-size: 13px; color: #555;
  margin-top: 3px; line-height: 1.4;
}
/* Pagefind highlights the matching word */
.cmh-result-excerpt mark {
  background: rgba(73,50,144,.12);
  color: var(--ch-purple);
  border-radius: 2px;
  padding: 0 2px;
  font-style: normal;
}
.cmh-search-notice {
  padding: 16px 20px;
  font-size: 14px; color: var(--ch-muted);
}

/* ─── Mobile menu (left app-style drawer) ────────────────────────────── */
.cmh-mobile {
  position: fixed;
  inset: 0 auto 0 0;                 /* pinned to the LEFT edge */
  width: min(340px, 86vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  z-index: 1050;
  transform: translateX(-100%);      /* slides in from the left */
  transition: transform 320ms cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 40px rgba(18,1,57,.18);
  overflow: hidden;                  /* inner area scrolls, head/cta pinned */
}
.cmh-mobile.is-open { transform: translateX(0); }

.cmh-mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1040;
  opacity: 0; visibility: hidden;
  transition: opacity 300ms, visibility 300ms;
}
.cmh-mobile-overlay.is-open { opacity: 1; visibility: visible; }

.cmh-mobile-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cmh-mob-head {
  flex-shrink: 0;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ch-line);
}
.cmh-mob-head img { width: 150px; height: auto; }

.cmh-mob-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 16px;
}
.cmh-mob-foot {
  flex-shrink: 0;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ch-line);
}
.cmh-mob-cta {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* Top-level accordion section */
.cmh-mob-section {
  border-bottom: 1px solid var(--ch-line);
}
.cmh-mobile .cmh-mob-trigger {
  width: 100%;
  min-height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  font-size: 16px; font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ch-text);
  transition: color 150ms, background 150ms;
  background: transparent;
}
.cmh-mob-trigger:active { background: rgba(73,50,144,.06); }
.cmh-mob-trigger:hover { color: var(--ch-purple); }
.cmh-mob-trigger[aria-expanded="true"] {
  color: var(--ch-purple);
  background: rgba(73,50,144,.05);
}
.cmh-mob-trigger[aria-expanded="true"] .cmh-mob-chev { transform: rotate(180deg); }
.cmh-mob-chev { transition: transform 220ms ease; flex-shrink: 0; opacity: .55; }

.cmh-mob-panel { padding: 4px 0 10px; background: rgba(73,50,144,.025); }

/* Column accordion (2nd level) */
.cmh-mob-col {
  margin: 2px 12px;
  border-radius: 10px;
  overflow: hidden;
}
.cmh-mobile .cmh-mob-col-trigger {
  width: 100%;
  min-height: 46px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 11px 16px 11px 24px;
  font-size: 14px; font-weight: 600;
  color: var(--ch-text);
  background: transparent;
  transition: color 150ms, background 150ms;
}
.cmh-mob-col-trigger:active { background: rgba(73,50,144,.06); }
.cmh-mob-col-trigger:hover { color: var(--ch-purple); }
.cmh-mob-col-trigger[aria-expanded="true"] { color: var(--ch-purple); }
.cmh-mob-col-trigger[aria-expanded="true"] .cmh-mob-chev { transform: rotate(180deg); }

.cmh-mob-col-panel { padding: 2px 0 6px; }

/* Top-level item that has no children */
.cmh-mobile .cmh-mob-top-link {
  display: flex; align-items: center;
  min-height: 54px;
  padding: 14px 24px;
  font-size: 16px; font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ch-text);
  border-bottom: 1px solid var(--ch-line);
  transition: color 150ms, background 150ms;
}
.cmh-mob-top-link:active { background: rgba(73,50,144,.06); }
.cmh-mob-top-link:hover { color: var(--ch-purple); }

/* Column heading that's just a direct link (no children) */
.cmh-mobile .cmh-mob-col-link {
  display: flex; align-items: center;
  min-height: 46px;
  margin: 2px 12px;
  padding: 10px 16px 10px 24px;
  font-size: 14px; font-weight: 600;
  color: var(--ch-text);
  border-radius: 10px;
  transition: color 150ms, background 150ms;
}
.cmh-mob-col-link:active { background: rgba(73,50,144,.06); }
.cmh-mob-col-link:hover { color: var(--ch-purple); }

/* Individual leaf links */
.cmh-mobile .cmh-mob-link {
  display: flex; align-items: center;
  min-height: 42px;
  padding: 9px 20px 9px 36px;
  font-size: 14px; font-weight: 400;
  color: var(--ch-text);
  transition: color 150ms;
}
.cmh-mob-link:active { color: var(--ch-purple); }
.cmh-mob-link:hover { color: var(--ch-purple); }

/* Subsection label in mobile (static, not expandable) */
.cmh-mob-subsec-label {
  display: block;
  padding: 12px 20px 4px 24px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ch-muted);
}

/* ─── E logo (mobile only) ───────────────────────────────────────────── */
.cmh-logo-e { display: none; }
.cmh-logo .cmh-logo-e { width: 38px; height: 38px; }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1140px) {
  .cmh-nav { display: none; }

  /* Hamburger trigger pinned far-left, opens the left drawer */
  .cmh-mobile-toggle { display: grid; order: -1; margin-right: 4px; }

  /* Swap full wordmark → compact E mark */
  .cmh-logo-full { display: none; }
  .cmh-logo-e    { display: block; }

  /* Push the search + CTA actions to the right */
  .cmh-actions { margin-left: auto; }

  /* Keep a compact CTA visible in the bar */
  .cmh-cta {
    display: inline-flex;
    padding: 9px 16px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .cmh-container { padding: 0 14px; height: 72px; }

  .cmh-cs-cards  { grid-template-columns: 1fr; }
  .cmh-cs-logos  { flex-wrap: wrap; gap: 12px; }
}

/* Show nav only on wide screens */
@media (min-width: 1141px) {
  .cmh-mobile-toggle { display: none !important; }
}
