
/* =========================================================
   GML Media Toolkit V8.0.4
   Readable desktop header + mega menus
   ========================================================= */

/* Header baseline */
@media (min-width: 851px){
  .topbar .inner{
    min-height:78px;
    padding-top:10px;
    padding-bottom:10px;
    gap:22px;
  }

  .topbar .site-brand-logo{
    width:205px;
    max-height:58px;
  }

  .top-links{
    gap:6px;
  }

  .top-links > a,
  .top-links > button,
  .top-link,
  [data-mega-target]{
    min-height:44px;
    padding:11px 13px;
    border-radius:11px;
    font-size:13px;
    font-weight:800;
    line-height:1;
  }

  .global-search{
    min-width:250px;
  }

  .global-search input{
    min-height:46px;
    font-size:13px;
  }

  /* Mega menu shell */
  .mega-menu{
    padding-top:12px;
  }

  .mega-menu .mega-panel,
  .mega-panel,
  .mega-menu-inner{
    width:min(1380px,calc(100vw - 44px));
    max-width:1380px;
    margin-inline:auto;
    border-radius:22px;
  }

  .mega-menu .mega-panel,
  .mega-panel{
    padding:28px 30px 30px;
  }

  /* Make every menu column breathe */
  .mega-grid,
  .mega-menu-grid,
  .mega-columns{
    gap:28px !important;
    align-items:start;
  }

  .mega-group,
  .mega-column{
    min-width:0;
  }

  .mega-group h4,
  .mega-column h4,
  .mega-heading,
  .mega-title{
    margin:0 0 14px;
    color:#8b97ad;
    font-size:10px !important;
    line-height:1.2;
    font-weight:950 !important;
    letter-spacing:.14em;
    text-transform:uppercase;
  }

  /* Tool rows/cards */
  .mega-item,
  .mega-link,
  .mega-tool,
  .mega-group a{
    min-height:68px;
    padding:10px 12px !important;
    gap:13px !important;
    border-radius:14px !important;
  }

  .mega-item img,
  .mega-link img,
  .mega-tool img,
  .mega-group a img{
    width:48px !important;
    height:48px !important;
    flex:0 0 48px !important;
    object-fit:contain;
  }

  .mega-item b,
  .mega-link b,
  .mega-tool b,
  .mega-group a b,
  .mega-item strong,
  .mega-link strong,
  .mega-tool strong,
  .mega-group a strong{
    display:block;
    color:#253048;
    font-size:13px !important;
    line-height:1.25 !important;
    font-weight:850 !important;
    letter-spacing:-.01em;
  }

  .mega-item small,
  .mega-link small,
  .mega-tool small,
  .mega-group a small,
  .mega-desc{
    display:block;
    margin-top:4px !important;
    color:#7e8aa0;
    font-size:10px !important;
    line-height:1.45 !important;
    font-weight:500 !important;
  }

  .mega-item:hover,
  .mega-link:hover,
  .mega-tool:hover,
  .mega-group a:hover{
    background:#f6f7fb !important;
  }

  /* Featured/info cards in menus */
  .mega-feature,
  .mega-side-card,
  .mega-privacy-card,
  .mega-workflow-card,
  .mega-card{
    padding:20px !important;
    border-radius:18px !important;
  }

  .mega-feature h3,
  .mega-side-card h3,
  .mega-privacy-card h3,
  .mega-workflow-card h3,
  .mega-card h3{
    font-size:20px !important;
    line-height:1.12 !important;
  }

  .mega-feature p,
  .mega-side-card p,
  .mega-privacy-card p,
  .mega-workflow-card p,
  .mega-card p{
    font-size:11px !important;
    line-height:1.6 !important;
  }

  /* Make All Tools menu more scannable */
  [data-mega-menu="all"] .mega-panel,
  #megaAll .mega-panel,
  #allToolsMega .mega-panel{
    max-height:min(720px,calc(100vh - 115px));
    overflow:auto;
  }

  /* Slightly larger action links inside menu */
  .mega-menu .secondary-btn,
  .mega-menu .primary-btn{
    min-height:44px;
    padding:11px 15px;
    font-size:11px;
  }
}

/* Wide screens */
@media (min-width: 1400px){
  .topbar .inner{
    max-width:1540px;
  }

  .mega-menu .mega-panel,
  .mega-panel,
  .mega-menu-inner{
    width:min(1450px,calc(100vw - 70px));
    max-width:1450px;
  }

  .mega-menu .mega-panel,
  .mega-panel{
    padding:32px 34px;
  }

  .mega-grid,
  .mega-menu-grid,
  .mega-columns{
    gap:34px !important;
  }

  .mega-item,
  .mega-link,
  .mega-tool,
  .mega-group a{
    min-height:72px;
  }

  .mega-item b,
  .mega-link b,
  .mega-tool b,
  .mega-group a b,
  .mega-item strong,
  .mega-link strong,
  .mega-tool strong,
  .mega-group a strong{
    font-size:14px !important;
  }

  .mega-item small,
  .mega-link small,
  .mega-tool small,
  .mega-group a small,
  .mega-desc{
    font-size:10.5px !important;
  }
}

/* Laptop range: readable but not oversized */
@media (min-width: 851px) and (max-width: 1180px){
  .topbar .site-brand-logo{
    width:175px;
  }

  .top-links > a,
  .top-links > button,
  .top-link,
  [data-mega-target]{
    padding:10px 9px;
    font-size:11.5px;
  }

  .global-search{
    min-width:190px;
  }

  .mega-menu .mega-panel,
  .mega-panel,
  .mega-menu-inner{
    width:calc(100vw - 24px);
  }

  .mega-menu .mega-panel,
  .mega-panel{
    padding:22px;
  }

  .mega-item,
  .mega-link,
  .mega-tool,
  .mega-group a{
    min-height:62px;
    padding:8px 9px !important;
  }

  .mega-item img,
  .mega-link img,
  .mega-tool img,
  .mega-group a img{
    width:42px !important;
    height:42px !important;
    flex-basis:42px !important;
  }

  .mega-item b,
  .mega-link b,
  .mega-tool b,
  .mega-group a b,
  .mega-item strong,
  .mega-link strong,
  .mega-tool strong,
  .mega-group a strong{
    font-size:12px !important;
  }

  .mega-item small,
  .mega-link small,
  .mega-tool small,
  .mega-group a small,
  .mega-desc{
    font-size:9.5px !important;
  }
}


/* Homepage tool count badge */
.home-tool-count-badge{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  margin:8px 0 0;
  padding:7px 10px;
  border:1px solid #ddd8ff;
  border-radius:999px;
  background:#f5f3ff;
  color:#5c50df;
  font-size:9px;
  font-weight:950;
  letter-spacing:.10em;
}
