/* ============================================================
   Commercial Gear — Mega Menu
   Mirrors Next.js MainNav design language
   ============================================================ */

/* ── Reset / base ─────────────────────────────────────────── */
.cgmm-nav { display: flex; align-items: center; position: relative; }

.cgmm-nav *,
.cgmm-nav *::before,
.cgmm-nav *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Desktop item list ────────────────────────────────────── */
.cgmm-items {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

/* ── Shared button / link base ────────────────────────────── */
.cgmm-btn,
.cgmm-flat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: #9bb0bf;           /* muted ink — matches Next.js nav foreground */
  font-family: "Inter", Sans-serif; 
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 6px;
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease;
  position: relative;
}

.cgmm-btn:hover,
.cgmm-btn[aria-expanded="true"],
.cgmm-flat:hover {
  color: #ffffff;
  background: rgba(155, 176, 191, 0.1);
}

/* Chevron */
.cgmm-chevron {
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.cgmm-btn[aria-expanded="true"] .cgmm-chevron {
  transform: rotate(180deg);
}

/* ── Mega panel ───────────────────────────────────────────── */
.cgmm-panel {
  position: fixed;          /* fixed so it clears sticky header */
  left: 0;
  right: 0;
  top: var(--cgmm-header-bottom, 80px); /* set by JS */
  z-index: 9999;
  padding-top: 6px;
  transform-origin: top center;
}

.cgmm-panel[hidden] { display: none !important; }

/* Animate-in: 140ms fade + 4px drop */
@keyframes cgmm-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cgmm-panel.cgmm-open {
  display: block !important;
  animation: cgmm-in 140ms ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .cgmm-panel.cgmm-open { animation: none; }
}

/* Full-page backdrop — dims content when a panel is open */
.cgmm-backdrop {
  position: fixed;
  inset: 0;
  top: var(--cgmm-header-bottom, 80px);
  z-index: 9998;                        /* just below panel (9999) */
  background: rgba(4, 10, 21, 0.45);
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}
.cgmm-backdrop.cgmm-backdrop-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Panel shell — white card, full-bleed */
.cgmm-panel-inner {
  max-width: 1248px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(4, 10, 21, 0.08);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(4, 10, 21, 0.22), 0 4px 12px rgba(4, 10, 21, 0.1);
  overflow: hidden;
  display: flex;
  min-height: 240px;
  position: relative;
  z-index: 1;
}

/* ── Left rail ────────────────────────────────────────────── */
.cgmm-rail {
  flex-shrink: 0;
  width: 224px;
  background: #070a10;       /* dark navy — matches Next.js left-rail surface */
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cgmm-rail-label {
  font-family: "Inter", Sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1b3fa0;
}

.cgmm-rail-summary {
font-family: "Inter", Sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5em;
  letter-spacing: 0.04em;
  color: #8A93A3;
  flex: 1;
}

.cgmm-rail-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Inter", Sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5em;
  letter-spacing: 0.04em;
  color: #1b3fa0;
  text-decoration: none;
  margin-top: 8px;
  transition: color 120ms ease, gap 120ms ease;
}
.cgmm-rail-all:hover {
  color: #ff7a6e;
  gap: 8px;
}

/* ── Link grid ────────────────────────────────────────────── */
.cgmm-grid {
  flex: 1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 12px;
  align-content: start;
  background: #ffffff;  /* explicit opaque bg — prevents hero bleed-through */
}

/* Link item */
.cgmm-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #0b0f17;
  background: transparent;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}
.cgmm-link:hover {
  background: #f3f5f6;
  color: #1b3fa0;
  transform: translateX(1px);
}

/* Thumbnail icon container — 66×44px, 3:2, object-cover, rounded 6px */
.cgmm-thumb {
  flex-shrink: 0;
  width: 66px;
  height: 44px;
  border-radius: 6px;
  background: #eef2f4;       /* surface fallback */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 120ms ease;
}
.cgmm-link:hover .cgmm-thumb {
  background: #dce8ef;
}

.cgmm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Lucide-style icon inside thumb */
.cgmm-icon {
  width: 20px;
  height: 20px;
  color: #4a6270;
  flex-shrink: 0;
  transition: color 120ms ease;
}
.cgmm-link:hover .cgmm-icon { color: #1b3fa0; }

/* Icon small variant (mobile drawer) */
.cgmm-icon--small {
  width: 16px;
  height: 16px;
}

.cgmm-link-label {
  font-family: "Inter", Sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5em;
  letter-spacing: 0.04em;
  color: inherit;
}

/* ── Mobile hamburger ─────────────────────────────────────── */
.cgmm-mob-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(155, 176, 191, 0.3);
  border-radius: 8px;
  background: transparent;
  color: #9bb0bf;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}
.cgmm-mob-btn:hover {
  border-color: rgba(155, 176, 191, 0.6);
  color: #ffffff;
}

/* Toggle between open/close icons */
.cgmm-mob-close { display: none; }

.cgmm-mob-btn[aria-expanded="true"] .cgmm-mob-open  { display: none; }
.cgmm-mob-btn[aria-expanded="true"] .cgmm-mob-close { display: block; }

/* ── Mobile drawer ────────────────────────────────────────── */
.cgmm-drawer {
  position: fixed;
  inset: 0;
  top: var(--cgmm-header-bottom, 80px);
  z-index: 9998;
  background: #070a10;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cgmm-drawer[hidden] { display: none !important; }

@keyframes cgmm-drawer-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cgmm-drawer.cgmm-open {
  display: block !important;
  animation: cgmm-drawer-in 200ms ease forwards;
}

.cgmm-drawer-list {
  list-style: none;
  padding: 0 0 40px;
}

/* Mobile section header (Products, Capabilities) */
.cgmm-drawer-section { border-bottom: 1px solid rgba(155, 176, 191, 0.1); }

.cgmm-drawer-head {
  display: block;
  padding: 20px 24px 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #1b3fa0;
  font-family: "Inter", Sans-serif;
  text-decoration: none;
}

.cgmm-drawer-sub { list-style: none; padding: 0 0 16px; }

.cgmm-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  text-decoration: none;
  color: #9bb0bf;
  font-size: 13px;
  transition: color 120ms ease, background 120ms ease;
}
.cgmm-drawer-link:hover {
  color: #ffffff;
  background: rgba(155, 176, 191, 0.06);
}
.cgmm-drawer-link .cgmm-icon { color: #6ba8c4; }
.cgmm-drawer-link:hover .cgmm-icon { color: #1b3fa0; }

/* Flat utility links */
.cgmm-drawer-util {
  border-bottom: 1px solid rgba(155, 176, 191, 0.1);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}
.cgmm-drawer-util-link {
  display: block;
  padding: 10px 24px;
  color: #9bb0bf;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: color 120ms ease;
}
.cgmm-drawer-util-link:hover { color: #ffffff; }

/* Phone CTA */
.cgmm-drawer-phone { padding: 24px; }
.cgmm-drawer-phone-link {
  display: inline-block;
  padding: 12px 24px;
  background: #1b3fa0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 140ms ease;
}
.cgmm-drawer-phone-link:hover { background: #16358a; }

/* ── Responsive breakpoints ───────────────────────────────── */
@media (max-width: 900px) {
  .cgmm-items { display: none; }
  .cgmm-mob-btn { display: flex; }
}

@media (min-width: 901px) {
  .cgmm-mob-btn { display: none; }
  .cgmm-drawer  { display: none !important; }
}

/* Wide panel — bleed edge-to-edge but cap content */
@media (min-width: 1280px) {
  .cgmm-panel-inner { margin: 0 auto; }
}

/* Smaller desktop — reduce rail + grid columns */
@media (max-width: 1100px) and (min-width: 901px) {
  .cgmm-grid { grid-template-columns: repeat(2, 1fr); }
  .cgmm-rail { width: 200px; }
}

/* ============================================================
   LIGHT THEME VARIANT  — [cgmm_nav theme="light"]
   Blue-logo / light-background header (mirrors next-js-blue-theme
   MainNav.tsx). Additive only: every rule below is scoped to a
   --light modifier class, so the default dark nav is untouched.

   Tokens (next-js-blue-theme globals.css):
     --accent-ink   #1B3FA0   logo blue — links, active, icons
     --accent-hover #16358A
     --brand-tint   #EEF2FB   icon chips / hover fills
     --heading      #10141C
     --body         #4B5566
     --muted        #8A93A3
     --surface-alt  #F6F7F9   left-rail card
     --hairline     #E4E7EC
     --ink          #0B0F17   near-black mobile drawer
   ============================================================ */

/* Desktop item buttons + flat links — dark ink on white */
.cgmm-nav--light .cgmm-btn,
.cgmm-nav--light .cgmm-flat {
  color: #4b5566;
}
.cgmm-nav--light .cgmm-btn:hover,
.cgmm-nav--light .cgmm-btn[aria-expanded="true"],
.cgmm-nav--light .cgmm-flat:hover {
  color: #1b3fa0;
  background: #eef2fb;
}

/* Mobile hamburger — hairline border, dark icon */
.cgmm-nav--light .cgmm-mob-btn {
  border-color: #e4e7ec;
  color: #10141c;
}
.cgmm-nav--light .cgmm-mob-btn:hover {
  border-color: #1b3fa0;
  color: #1b3fa0;
}

/* ── Mega panel (teleported to <body> — modifier is on the panel) ── */
.cgmm-panel--light .cgmm-panel-inner {
  border-color: #e4e7ec;
  box-shadow: 0 16px 48px rgba(11, 15, 23, 0.12), 0 4px 12px rgba(11, 15, 23, 0.06);
}

/* Left rail — light card, blue eyebrow (was dark navy + coral) */
.cgmm-panel--light .cgmm-rail {
  background: #eef2fb;
  box-shadow: inset 0 0 0 1px #e4e7ec;
}
.cgmm-panel--light .cgmm-rail-label { color: #1b3fa0; }
.cgmm-panel--light .cgmm-rail-all { color: #1b3fa0; }
.cgmm-panel--light .cgmm-rail-all:hover { color: #16358a; }

/* Link grid — blue hover instead of coral */
.cgmm-panel--light .cgmm-link:hover { color: #1b3fa0; }
.cgmm-panel--light .cgmm-thumb { background: #eef2fb; }
.cgmm-panel--light .cgmm-link:hover .cgmm-thumb { background: #dfe6fa; }
.cgmm-panel--light .cgmm-icon { color: #4b5566; }
.cgmm-panel--light .cgmm-link:hover .cgmm-icon { color: #1b3fa0; }

/* ── Mobile drawer (teleported to <body> — modifier is on the drawer) ── */
.cgmm-drawer--light { background: #0b0f17; }
.cgmm-drawer--light .cgmm-drawer-section { border-bottom-color: rgba(255, 255, 255, 0.08); }
.cgmm-drawer--light .cgmm-drawer-link { color: #c7cad0; }
.cgmm-drawer--light .cgmm-drawer-link:hover { color: #ffffff; background: rgba(255, 255, 255, 0.05); }
.cgmm-drawer--light .cgmm-drawer-link .cgmm-icon { color: #9db0e4; }
.cgmm-drawer--light .cgmm-drawer-link:hover .cgmm-icon { color: #ffffff; }
.cgmm-drawer--light .cgmm-drawer-util { border-bottom-color: rgba(255, 255, 255, 0.08); }
.cgmm-drawer--light .cgmm-drawer-util-link { color: #c7cad0; }
.cgmm-drawer--light .cgmm-drawer-util-link:hover { color: #ffffff; }
.cgmm-drawer--light .cgmm-drawer-phone-link { background: #1b3fa0; }
.cgmm-drawer--light .cgmm-drawer-phone-link:hover { background: #16358a; }

/* ── Elementor header overrides ───────────────────────────── */
/* Make the shortcode widget fill available space in the nav row */
.elementor-widget.elementor-widget-shortcode { flex: 1; }

/* Right-align the mega nav inside its shortcode widget.
   Keyed to the nav itself (via :has) rather than a specific container
   data-id, so it works in any header template — the original header's
   [data-id="cghdr006"] and the "Blue Logo (Light)" header alike. */
.elementor-widget-shortcode:has(.cgmm-nav) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.elementor-widget-shortcode:has(.cgmm-nav) .elementor-shortcode {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

/* Fallback for engines without :has — pushes the items to the right edge
   from inside the nav (which is full-width within the shortcode wrapper). */
.cgmm-nav { width: 100%; justify-content: flex-end; }

/* ============================================================
   MEGA PANEL v2 — navy spec rail · described link cards · live
   preview. Overrides the panel rules above for both themes.
   Layout: [rail 268px] [links 1fr] [preview 300px]
   Link descriptions/photos come from each linked item's excerpt
   and featured image (mega-menu.php → cgmm_link_meta()).
   ============================================================ */
.cgmm-panel { padding-top: 10px; }
.cgmm-panel.cgmm-open { animation: cgmm-in2 .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes cgmm-in2 { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.cgmm-panel .cgmm-panel-inner,
.cgmm-panel--light .cgmm-panel-inner {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr) 300px;
  min-height: 0;
  border: 1px solid rgba(12, 24, 37, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(7, 17, 31, .45), 0 8px 20px -10px rgba(7, 17, 31, .2);
}

/* Rail */
.cgmm-panel .cgmm-rail,
.cgmm-panel--light .cgmm-rail {
  position: relative;
  width: auto;
  padding: 30px 28px 26px;
  gap: 0;
  overflow: hidden;
  background:
    radial-gradient(260px 200px at 0% 0%, rgba(53, 99, 224, .35), transparent 70%),
    linear-gradient(rgba(157, 184, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 184, 255, .07) 1px, transparent 1px),
    #07111F;
  background-size: auto, 28px 28px, 28px 28px, auto;
  box-shadow: none;
}
.cgmm-panel .cgmm-rail::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1px dashed rgba(157, 184, 255, .3);
  animation: cgmm-spin 40s linear infinite;
  pointer-events: none;
}
@keyframes cgmm-spin { to { transform: rotate(360deg); } }
.cgmm-panel .cgmm-rail-label,
.cgmm-panel--light .cgmm-rail-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 11px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9DB8FF;
}
.cgmm-panel .cgmm-rail-label::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.cgmm-rail-count {
  margin-top: 16px !important;
  font: 600 26px/1.15 "Space Grotesk", Inter, sans-serif;
  letter-spacing: -.02em;
  color: #fff;
  text-transform: capitalize;
}
.cgmm-panel .cgmm-rail-summary {
  margin-top: 10px !important;
  flex: none;
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: 0;
  color: #9FB0C8;
}
.cgmm-panel .cgmm-rail-all,
.cgmm-panel--light .cgmm-rail-all {
  align-self: flex-start;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(157, 184, 255, .35);
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: .02em;
  color: #fff;
  transition: background-color .25s ease, border-color .25s ease, gap .25s ease;
}
.cgmm-panel .cgmm-rail-all:hover,
.cgmm-panel--light .cgmm-rail-all:hover { color: #fff; background: #1B3FA0; border-color: #1B3FA0; gap: 10px; }
.cgmm-rail-cta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(157, 184, 255, .16);
}
.cgmm-rail { display: flex; flex-direction: column; }
.cgmm-rail-cta-k { font: 500 10.5px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; color: #6E86B8; }
.cgmm-rail-cta-phone { margin-top: 6px; font: 600 19px/1.2 "Space Grotesk", Inter, sans-serif; color: #fff !important; text-decoration: none; }
.cgmm-rail-cta-phone:hover { color: #9DB8FF !important; }
.cgmm-rail-cta-link { font-size: 13px; font-weight: 500; color: #9DB8FF !important; text-decoration: none; }
.cgmm-rail-cta-link:hover { color: #fff !important; }

/* Links */
.cgmm-panel .cgmm-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 18px;
}
.cgmm-panel .cgmm-grid--dense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cgmm-panel .cgmm-grid > li { opacity: 0; transform: translateY(6px); }
.cgmm-panel.cgmm-open .cgmm-grid > li { animation: cgmm-item .4s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(60ms + var(--i, 0) * 28ms); }
@keyframes cgmm-item { to { opacity: 1; transform: none; } }
.cgmm-panel .cgmm-link {
  position: relative;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  transform: none !important;
  transition: background-color .2s ease;
}
.cgmm-panel .cgmm-link:hover,
.cgmm-panel .cgmm-link.is-current,
.cgmm-panel--light .cgmm-link:hover { background: #F3F6FC; color: #0C1825; }
.cgmm-panel .cgmm-thumb,
.cgmm-panel--light .cgmm-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EEF3FD;
  transition: background-color .2s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.cgmm-panel .cgmm-link:hover .cgmm-thumb,
.cgmm-panel .cgmm-link.is-current .cgmm-thumb { background: #1B3FA0; transform: rotate(-6deg); }
.cgmm-panel .cgmm-icon,
.cgmm-panel--light .cgmm-icon { width: 19px; height: 19px; color: #1B3FA0; }
.cgmm-panel .cgmm-link:hover .cgmm-icon,
.cgmm-panel .cgmm-link.is-current .cgmm-icon,
.cgmm-panel--light .cgmm-link:hover .cgmm-icon { color: #fff; }
.cgmm-link-text { display: grid; gap: 3px; min-width: 0; padding-top: 1px; }
.cgmm-panel .cgmm-link-label {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.005em;
  color: #0C1825;
}
.cgmm-link-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6B7788;
}
.cgmm-link-arrow {
  flex: none;
  margin: 12px 0 0 auto;
  color: #1B3FA0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s ease, transform .25s ease;
}
.cgmm-link:hover .cgmm-link-arrow,
.cgmm-link.is-current .cgmm-link-arrow { opacity: 1; transform: none; }

/* Preview */
.cgmm-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 12px 12px 12px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #07111F;
  text-decoration: none;
  isolation: isolate;
}
.cgmm-preview-media { position: relative; flex: 1; min-height: 180px; overflow: hidden; }
.cgmm-preview-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .35s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.cgmm-preview:hover .cgmm-preview-media img { transform: scale(1.05); }
.cgmm-preview.is-swapping .cgmm-preview-media img { opacity: 0; transform: scale(1.04); }
.cgmm-preview-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 17, 31, .9)); }
.cgmm-preview-icon { position: absolute; inset: 0; display: none; place-items: center; }
.cgmm-preview-icon .cgmm-icon { width: 64px; height: 64px; color: rgba(157, 184, 255, .5); stroke-width: 1; }
.cgmm-preview.is-noimg .cgmm-preview-media {
  background:
    linear-gradient(rgba(157, 184, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 184, 255, .07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.cgmm-preview.is-noimg .cgmm-preview-media img { display: none; }
.cgmm-preview.is-noimg .cgmm-preview-icon { display: grid; }
.cgmm-preview-body { position: relative; display: grid; gap: 6px; padding: 16px 18px 18px; margin-top: -54px; z-index: 1; }
.cgmm-preview-k { font: 500 10px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: #9DB8FF; }
.cgmm-preview-title { font: 600 17px/1.25 "Space Grotesk", Inter, sans-serif; color: #fff; }
.cgmm-preview-desc { font-size: 12.5px; line-height: 1.5; color: #B4C1D4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cgmm-preview-cta { margin-top: 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.cgmm-preview:hover .cgmm-preview-cta { color: #9DB8FF; }

/* Top-level buttons: animated underline */
.cgmm-nav .cgmm-btn,
.cgmm-nav .cgmm-flat { position: relative; }
.cgmm-nav .cgmm-btn::after,
.cgmm-nav .cgmm-flat::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: #1B3FA0;
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.cgmm-nav .cgmm-btn[aria-expanded="true"]::after,
.cgmm-nav .cgmm-btn:hover::after,
.cgmm-nav .cgmm-flat:hover::after { transform: scaleX(1); }

@media (max-width: 1180px) and (min-width: 901px) {
  .cgmm-panel .cgmm-panel-inner,
  .cgmm-panel--light .cgmm-panel-inner { grid-template-columns: 230px minmax(0, 1fr); }
  .cgmm-preview { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cgmm-panel .cgmm-grid > li { opacity: 1; transform: none; animation: none !important; }
  .cgmm-panel .cgmm-rail::after { animation: none; }
}

/* ── Highlighted CTA (menu item CSS class "cgmm-cta") ─────── */
.cgmm-nav .cgmm-flat.cgmm-cta,
.cgmm-nav--light .cgmm-flat.cgmm-cta {
  margin-left: 10px;
  padding: 10px 18px;
  border-radius: 8px;
  background: #1b3fa0;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 18px -8px rgba(27, 63, 160, 0.7);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.cgmm-nav .cgmm-flat.cgmm-cta:hover,
.cgmm-nav .cgmm-flat.cgmm-cta:focus-visible,
.cgmm-nav--light .cgmm-flat.cgmm-cta:hover {
  background: #3563e0;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(53, 99, 224, 0.75);
}
.cgmm-nav .cgmm-flat.cgmm-cta::after { display: none; }

/* Mobile drawer: full-width filled button */
.cgmm-drawer-util-link.cgmm-cta,
.cgmm-drawer--light .cgmm-drawer-util-link.cgmm-cta {
  margin: 8px 24px 4px;
  padding: 13px 18px;
  border-radius: 8px;
  background: #1b3fa0;
  color: #ffffff;
  text-align: center;
}
.cgmm-drawer-util-link.cgmm-cta:hover,
.cgmm-drawer--light .cgmm-drawer-util-link.cgmm-cta:hover { background: #3563e0; color: #ffffff; }
