/* FIX: Prevent font-swap layout shift on menu links */
.smm-nav {
  font-synthesis: none;
}
.smm-menu-link {
  font-size-adjust: from-font;
}
/*
 * Stackinova Mega Menu — Frontend CSS
*/

/* ROOT */
.smm-root *,
.smm-root *::before,
.smm-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.smm-root {
  --smm-primary:      #2563eb;
  --smm-hover:        rgba(255,255,255,.08);
  --smm-transition:   0.18s ease;
  --smm-panel-bg:     #ffffff;
  --smm-panel-rad:    0px;
  --smm-panel-shad:   0 8px 40px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
  font-family: inherit;
  position: relative;
  z-index: 9999;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}
.smm-root.smm-sticky { /* JS handles sticky */ }
.smm-root.smm-fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  width: 100% !important;
  margin-left: 0 !important;
  will-change: transform;
}

/* Announcement Bar */
.smm-ann-bar {
  background: var(--smm-ann-bg, #d4ff3e);
  color: var(--smm-ann-fg, #000);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}
.smm-ann-track {
  display: inline-flex;
  align-items: center;
  animation: smm-marquee calc(var(--smm-ann-speed, 40) * 1s) linear infinite;
  will-change: transform;
}
@keyframes smm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.smm-ann-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
}
.smm-ann-cta {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.smm-ann-sep { font-size: 10px; opacity: 0.6; margin-left: 4px; }

/* Nav Bar */
.smm-nav {
  background-color: var(--smm-header-bg);
  color: var(--smm-header-fg);
  position: relative;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.smm-nav-inner {
  max-width: var(--smm-nav-max-width, 1360px);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: grid;
  align-items: center;
}

@media (min-width: 769px) {
  .smm-nav-inner {
    grid-template-columns: auto 1fr auto;
    gap: 48px;
  }
}

/* Logo */
.smm-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--smm-header-fg);
  flex-shrink: 0;
  width: var(--smm-logo-w, auto);
  min-width: 0;
}
.smm-logo-img {
  height: var(--smm-logo-h, 40px);
  width: auto;
  max-width: 300px;
  display: block;
  object-fit: contain;
}
.smm-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

/* Desktop Menu */
.smm-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: flex-start;
}
.smm-menu--center { justify-content: center; }
.smm-menu--right  { justify-content: flex-end; }
.smm-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  color: var(--smm-header-fg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 0;
  transition: opacity var(--smm-transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
/* Stackinova-style underline indicator */
.smm-menu-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--smm-primary);
  border-radius: 2px;
  transition: width 0.2s ease;
}
.smm-menu-link:hover::after,
.smm-menu-item.smm-open > .smm-menu-link::after {
  width: calc(100% - 20px);
}
.smm-menu-link:hover,
.smm-menu-item.smm-open > .smm-menu-link {
  opacity: 0.85;
}
.smm-chevron {
  display: inline-flex;
  transition: transform var(--smm-transition);
  opacity: 0.7;
}
.smm-menu-item.smm-open .smm-chevron { transform: rotate(180deg); }

/* Right area */
.smm-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* CTA Button */
.smm-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--smm-cta-bg);
  color: var(--smm-cta-fg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 50px;
  transition: background var(--smm-transition), color var(--smm-transition), transform var(--smm-transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.smm-cta-btn:hover {
  background: var(--smm-cta-hover-bg);
  color: var(--smm-cta-hover-fg);
  transform: translateY(-1px);
}
.smm-root.smm-scrolled .smm-cta-btn:not(.smm-cta-btn--full):hover {
  background: var(--smm-cta-sticky-hover-bg);
  color: var(--smm-cta-sticky-hover-fg);
}
.smm-cta-btn--full {
  width: 100%;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  transform: none !important;
  box-sizing: border-box;
}
.smm-cta-icon { display: inline-flex; align-items: center; }

/* Burger */
.smm-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--smm-transition), background var(--smm-transition);
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
}
.smm-burger:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.smm-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--smm-header-fg);
  border-radius: 2px;
  transition: transform var(--smm-transition), opacity var(--smm-transition);
}

/* =====================================================
 * MEGA PANEL — Stackinova
 * Full-width panel, white rounded box, flex columns
 * ===================================================== */
.smm-menu-item { position: static; }

/* The outer wrapper — transparent, full nav width */
.smm-mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  border-top: none;
  box-shadow: none;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  pointer-events: none;
  z-index: 200;
  overflow: visible;
  will-change: opacity, transform;
}
.smm-menu-item.smm-open > .smm-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.smm-mega-panel[data-panel-align="left"],
.smm-mega-panel[data-panel-align="right"] {
  left: 0; right: 0;
  transform: translateY(-6px);
}
.smm-menu-item.smm-open > .smm-mega-panel[data-panel-align="left"],
.smm-menu-item.smm-open > .smm-mega-panel[data-panel-align="right"] {
  transform: translateY(0);
}

/* Panel Inner — the white box (like brand_dropdown_inner + brand_dropdown_bg) */
.smm-panel-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: var(--smm-nav-max-width, 1360px);
  margin: 8px auto 0;
  width: 100%;
  background: var(--smm-panel-bg, #ffffff);
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
  border-top: 3px solid var(--smm-panel-border, var(--smm-primary));
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Columns wrapper */
.smm-panel-cols {
  display: flex;
  flex-direction: row;
  gap: 0;
  overflow-x: clip; /* clip without creating scroll context, avoids clipping column borders */
  overflow-y: auto;
  max-height: 560px;
  padding: 24px 24px 16px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.smm-panel-cols::-webkit-scrollbar { width: 4px; }
.smm-panel-cols::-webkit-scrollbar-track { background: transparent; }
.smm-panel-cols::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* Layout variants */
.smm-panel-inner.smm-panel--two_column { max-width: 860px; }
.smm-panel-inner.smm-panel--full_width_grid .smm-panel-cols { display: block; padding: 0; }

/* Individual columns */
.smm-col {
  padding: 0 24px 0 0;
  min-height: 0;
  flex: 1 1 0;
  min-width: 180px;
}
.smm-col:last-child { padding-right: 0; }
.smm-col--left {
  border-right: 1px solid #eef0f4;
  padding-right: 24px;
  flex: 1 1 0;
  min-width: 200px;
  background: transparent;
}
.smm-col--middle {
  border-right: 1px solid #eef0f4;
  padding-right: 24px;
  flex: 1 1 0;
  background: transparent;
}
.smm-col--middle .smm-col-grouped,
.smm-col--middle .smm-link-list,
.smm-col--middle .smm-featured-link { padding-left: 24px; }
.smm-col--right {
  background: transparent;
  padding-right: 0;
  flex: 1 1 0;
  min-width: 200px;
}
.smm-col--right .smm-col-grouped,
.smm-col--right .smm-link-list,
.smm-col--right .smm-featured-link { padding-left: 24px; }

.smm-col--middle .smm-col-grouped,
.smm-col--middle .smm-link-list,
.smm-col--middle .smm-featured-link,
.smm-col--right .smm-col-grouped,
.smm-col--right .smm-link-list,
.smm-col--right .smm-featured-link { padding-left: 24px; }

/* Link Lists */
.smm-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}
.smm-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  color: #0f0f0f;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  transition: background var(--smm-transition), color var(--smm-transition);
  -webkit-tap-highlight-color: transparent;
}
.smm-link-list a:hover { background: #f0f4ff; color: var(--smm-primary); }
.smm-link-list a::after {
  content: '→';
  font-size: 12px;
  color: var(--smm-primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
}
.smm-link-list a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Featured Link */
.smm-featured-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: #eef2ff;
  color: var(--smm-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: background var(--smm-transition);
  -webkit-tap-highlight-color: transparent;
}
.smm-featured-link:hover { background: #dbe4ff; }

/* Grouped Links */
.smm-col-grouped { display: flex; flex-direction: column; gap: 20px; }
.smm-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #0f0f0f;
  margin-bottom: 4px;
  padding: 8px 0 0;
}
.smm-group-icon {
  display: inline-flex;
  align-items: center;
  color: var(--smm-primary, #2563eb);
  flex-shrink: 0;
}
.smm-expandable { position: relative; }
.smm-expand-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: all var(--smm-transition);
  -webkit-tap-highlight-color: transparent;
}
.smm-expand-btn:hover { border-color: var(--smm-primary); color: var(--smm-primary); }
.smm-expand-btn[aria-expanded="true"] {
  background: var(--smm-primary);
  border-color: var(--smm-primary);
  color: #fff;
}
/* Flyout card — appears to the right of the parent link */
.smm-sub-links {
  display: none;
  position: absolute;
  left: calc(100% + 6px);
  top: -6px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
  border: 1px solid #eef0f4;
  min-width: 220px;
  z-index: 50;
  padding: 6px 0;
  pointer-events: none;
}
.smm-sub-links.smm-open {
  display: block;
  pointer-events: auto;
}
.smm-sub-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.smm-sub-links ul li a {
  display: block;
  padding: 8px 16px;
  color: #0f0f0f;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0;
  transition: background var(--smm-transition), color var(--smm-transition);
  -webkit-tap-highlight-color: transparent;
}
.smm-sub-links ul li a:hover {
  background: #f0f4ff;
  color: var(--smm-primary);
}
.smm-sub-link {
  display: block;
  padding: 7px 10px;
  color: #555;
  text-decoration: none;
  font-size: 13px;
  border-radius: 4px;
  transition: background var(--smm-transition), color var(--smm-transition);
  -webkit-tap-highlight-color: transparent;
}
.smm-sub-link:hover { background: #f0f4ff; color: var(--smm-primary); }

/* Blog Posts column */
.smm-col-blogs { display: flex; flex-direction: column; padding-left: 12px; }
.smm-blogs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.smm-blogs-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6b7280;
}
.smm-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--smm-primary);
  text-decoration: none;
  white-space: nowrap;
}
.smm-view-all:hover { text-decoration: underline; }
.smm-blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.smm-blog-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.smm-blog-list li:last-child .smm-blog-item { border-bottom: none; }
.smm-blog-item:hover { opacity: 0.75; }
.smm-blog-item .smm-blog-thumb {
  width: 120px;
  height: 84px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #eef0f4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.smm-blog-item .smm-blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.smm-blog-item .smm-blog-thumb-placeholder { color: #b0b8c8; }
.smm-blog-item .smm-blog-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #1a1a2e;
  line-height: 1.45;
}

/* Featured Insight */
.smm-col-insight { padding: 28px 24px; }
.smm-insight-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
}
.smm-insight-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: #eef0f4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid #e8ecf0;
}
.smm-insight-thumb img { width: 100%; height: 100%; object-fit: cover; }
.smm-insight-placeholder { color: #b0b8c8; }
.smm-insight-post-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 10px;
}
.smm-insight-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--smm-primary);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.smm-insight-cta:hover { text-decoration: underline; }

/* Full Width Grid (Industries) */
.smm-grid-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 4px;
  padding: 24px;
}
.smm-grid-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #1a1a2e;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--smm-transition), color var(--smm-transition);
  -webkit-tap-highlight-color: transparent;
}
.smm-grid-link:hover { background: #f0f4ff; color: var(--smm-primary); }
.smm-grid-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.smm-grid-link-text { font-size: 14px; font-weight: 500; }
.smm-grid-link-sub  { font-size: 12px; color: #64748b; margin-top: 2px; }

/* Icon Grid */
.smm-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 24px;
}
.smm-icon-item { display: flex; flex-direction: row; align-items: center; }
.smm-icon-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #1a1a2e;
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  transition: background var(--smm-transition), color var(--smm-transition);
  -webkit-tap-highlight-color: transparent;
}
.smm-icon-link:hover { background: #f0f4ff; color: var(--smm-primary); }
.smm-icon-link:hover .smm-icon-svg { color: var(--smm-primary); }
.smm-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--smm-primary);
  width: 22px;
  height: 22px;
}

.smm-icon-link::after {
  content: '→';
  margin-left: auto;
  font-size: 13px;
  color: var(--smm-primary);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
}
.smm-icon-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.smm-icon-svg svg { width: 22px; height: 22px; }
.smm-icon-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  min-width: 24px;
  color: #64748b;
  transition: all var(--smm-transition);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  margin-right: 8px;
}
.smm-icon-expand:hover { border-color: var(--smm-primary); color: var(--smm-primary); }
.smm-icon-expand[aria-expanded="true"] {
  background: var(--smm-primary);
  border-color: var(--smm-primary);
  color: #fff;
}
.smm-icon-img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.smm-icon-label { font-size: 14px; font-weight: 500; color: #1a1a2e; }
.smm-icon-sub { display: none; padding: 4px 0 4px 48px; flex-basis: 100%; }
.smm-icon-sub.smm-open { display: block; }
.smm-icon-sub a {
  display: block;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background var(--smm-transition), color var(--smm-transition);
  -webkit-tap-highlight-color: transparent;
}
.smm-icon-sub a:hover { background: #f1f5f9; color: var(--smm-primary); }
.smm-icon-sub-links { display: none; padding-left: 42px; }
.smm-icon-sub-links.smm-open { display: block; }
.smm-icon-sub-link {
  display: block;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background var(--smm-transition), color var(--smm-transition);
  -webkit-tap-highlight-color: transparent;
}
.smm-icon-sub-link:hover { background: #f1f5f9; color: var(--smm-primary); }

/* Promo Card */
.smm-promo-card {
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px;
}
.smm-promo-logo  { font-size: 18px; font-weight: 800; }
.smm-promo-title { font-size: 15px; font-weight: 700; color: #1e293b; }
.smm-promo-desc  { font-size: 13px; color: #475569; line-height: 1.5; }
.smm-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  margin-top: 4px;
  -webkit-tap-highlight-color: transparent;
}
.smm-promo-cta:hover { text-decoration: underline; }

/* Panel Bottom Bar */
.smm-panel-footer {
  background: var(--smm-panel-footer-bg, #fff6db);
  border-radius: 0 0 8px 8px;
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 15px 24px;
  display: block;
}
.smm-panel-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}
.smm-panel-footer-text {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--smm-panel-footer-fg, #374151);
}
.smm-panel-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--smm-panel-footer-cta-bg, var(--smm-primary));
  color: var(--smm-panel-footer-cta-fg, #fff);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--smm-transition), transform var(--smm-transition);
  -webkit-tap-highlight-color: transparent;
}
.smm-panel-footer-cta:hover { background: #1d4ed8; transform: translateY(-1px); }

/* =====================================================
 * MOBILE OVERLAY
 * ===================================================== */
.smm-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left:   env(safe-area-inset-left,   0px);
  padding-right:  env(safe-area-inset-right,  0px);
}
.smm-mobile-overlay.smm-open {
  display: block;
}
.smm-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: sticky;
  top: 0;
  background: #000;
  z-index: 1;
  padding-top: max(14px, env(safe-area-inset-top, 14px));
}
.smm-mobile-actions { display: flex; align-items: center; gap: 8px; }
.smm-mobile-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--smm-cta-bg);
  color: var(--smm-cta-fg);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.smm-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.smm-close-btn:hover { background: rgba(255,255,255,.2); }
.smm-mobile-menu {
  list-style: none;
  padding: 12px 0;
}
.smm-mobile-item { border-bottom: 1px solid rgba(255,255,255,.07); }
.smm-mobile-item:last-child { border-bottom: none; }
.smm-mobile-link {
  display: block;
  flex: 1;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.smm-mobile-link:hover { color: rgba(255,255,255,.8); }
.smm-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.smm-mobile-toggle:hover { color: rgba(255,255,255,.8); }
.smm-mobile-chevron {
  flex-shrink: 0;
  margin-left: auto;
  transition: transform var(--smm-transition);
  color: rgba(255,255,255,.6);
}
.smm-mobile-toggle[aria-expanded="true"] .smm-mobile-chevron { transform: rotate(180deg); }
.smm-mobile-sub {
  display: none;
  margin: 0 12px 12px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.smm-mobile-sub.smm-open { display: block; }
.smm-mobile-sub-inner { padding: 8px 0; }
.smm-mobile-featured-link {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--smm-primary);
  text-decoration: none;
  background: #eef2ff;
  margin: 8px 12px;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.smm-mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 14.5px;
  font-weight: 400;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  -webkit-tap-highlight-color: transparent;
}
.smm-mobile-sub-link:last-child { border-bottom: none; padding-bottom: 14px; }
.smm-mobile-sub-link:hover { color: #2563eb; background: #f9fafb; }
.smm-mobile-sub-link:hover .smm-mobile-sub-icon { color: #2563eb; }
.smm-mobile-sub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--smm-primary);
  width: 20px;
  height: 20px;
}
.smm-mobile-sub-icon svg { width: 20px; height: 20px; }
.smm-mobile-sub-link--indent { padding-left: 32px; font-size: 13px; color: #6b7280; }
.smm-mobile-sub-banner {
  margin: 0 12px 12px;
  background: #fef9e7;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  word-break: break-word;
}
.smm-mobile-sub-banner-text { font-size: 13px; color: #374151; line-height: 1.5; font-weight: 500; }
.smm-mobile-sub-banner-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--smm-primary);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: background var(--smm-transition);
  -webkit-tap-highlight-color: transparent;
  white-space: normal;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.smm-mobile-sub-banner-cta:hover { background: #1d4ed8; }
.smm-mobile-group-header {
  padding: 12px 20px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 8px;
}
.smm-mobile-group-header svg,
.smm-mobile-group-header img { width: 18px; height: 18px; flex-shrink: 0; }
.smm-mobile-footer {
  padding: 16px 20px;
  padding-bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 24px));
}
.smm-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
}

/* RESPONSIVE */
/* Tablet: prevent three-column panel from overflowing on narrow desktop/tablet */
@media (min-width: 769px) and (max-width: 1100px) {
  .smm-panel-cols {
    flex-wrap: wrap;
  }
  .smm-col--left {
    flex: 1 1 0;
    min-width: 160px;
  }
  .smm-col--middle {
    flex: 1 1 0;
    min-width: 180px;
  }
  .smm-col--right {
    flex: 1 1 0;
    min-width: 160px;
  }
  .smm-nav-inner {
    gap: 24px;
  }
}
@media (max-width: 768px) {
  .smm-menu { display: none; }
  .smm-burger { display: flex; }
  .smm-cta-btn:not(.smm-cta-btn--full) { display: none; }
  /* Mobile grid: logo takes all space, burger pushed to far right */
  .smm-nav-inner {
    padding: 0 16px;
    gap: 0;
    grid-template-columns: 1fr auto;
  }
  /* Hide the empty middle menu column on mobile */
  .smm-nav-inner > ul.smm-menu { display: none; }
  /* Right area: only show burger on mobile */
  .smm-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}
@media (min-width: 769px) {
  .smm-mobile-overlay,
  .smm-mobile-backdrop,
  .smm-burger { display: none !important; }
}

/* STICKY STATE */
.smm-root.smm-scrolled .smm-nav {
  background-color: var(--smm-sticky-bg);
  color: var(--smm-sticky-fg);
  box-shadow: 0 2px 20px rgba(0,0,0,.12);
}
.smm-root.smm-scrolled .smm-menu-link { color: var(--smm-sticky-fg); }
.smm-root.smm-scrolled .smm-menu-link:hover,
.smm-root.smm-scrolled .smm-menu-item.smm-open > .smm-menu-link {
  color: var(--smm-sticky-fg);
  opacity: 0.75;
}
.smm-root.smm-scrolled .smm-cta-btn:not(.smm-cta-btn--full) {
  background: var(--smm-cta-sticky-bg);
  color: var(--smm-cta-sticky-fg);
}
.smm-root.smm-sticky-blur.smm-scrolled .smm-nav {
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
}
.smm-root.smm-has-sticky-logo.smm-scrolled .smm-logo .smm-logo-img--normal { display: none !important; }
.smm-root.smm-has-sticky-logo.smm-scrolled .smm-logo .smm-logo-img--sticky { display: block !important; }
.smm-root.smm-scrolled .smm-burger span { background: var(--smm-sticky-fg); }

/* ACCESSIBILITY */
.smm-menu-link:focus-visible,
.smm-cta-btn:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; border-radius: 6px; }
.smm-burger:focus-visible,
.smm-close-btn:focus-visible,
.smm-mobile-toggle:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

/* iOS / ANDROID */
html.smm-scroll-locked {
  overflow: hidden;
  padding-right: var(--smm-scrollbar-w, 0px);
}
.smm-root,
.smm-mega-panel,
.smm-mobile-overlay {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .smm-mega-panel,
  .smm-ann-track,
  .smm-mobile-overlay,
  .smm-mobile-sub,
  .smm-chevron,
  .smm-cta-btn,
  .smm-menu-link,
  .smm-nav {
    transition: none !important;
    animation: none !important;
  }
}

/* Print: hide the nav entirely */
@media print {
  .smm-root { display: none !important; }
}

/* ══════════════════════════════════════════════
   CTA BUTTON — Text Swap Animation
   ══════════════════════════════════════════════ */
.smm-btn-inner {
    display:        flex;
    flex-direction: column;
    overflow:       hidden;
    height:         16.8px;
    position:       relative;
}

.smm-btn-text-orig,
.smm-btn-text-hover {
    display:     block;
    transition:  transform 0.25s ease, opacity 0.25s ease;
    line-height: 1.2;
    white-space: nowrap;
}

.smm-btn-text-orig {
    transform: translateY(0);
    opacity:   1;
}

.smm-btn-text-hover {
    transform: translateY(100%);
    opacity:   0;
    position:  absolute;
    top:       0;
    left:      0;
    width:     100%;
}

.smm-cta-btn:hover .smm-btn-text-orig {
    transform: translateY(-100%);
    opacity:   0;
}

.smm-cta-btn:hover .smm-btn-text-hover {
    transform: translateY(0%);
    opacity:   1;
}
