/* cri-mega-sector - Browse-by-Sector intro choker + per-sector descriptors.
   Loaded from Magento design/head/includes next to the mega-menu script.
   Lives here, not inline, because that config value is a TEXT column
   (65,535 bytes) and the menu blob already sits at ~62 KB. */

/* Bold hook directly under the category head. */
.cgb-nav .mega .cat-choker {
  display: block;
  padding: 2px 10px 3px 14px;
  color: #0a1e40;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  max-width: 42ch;
}

/* Italic supporting line, closed off with a hairline rule. */
.cgb-nav .mega .cat-intro {
  display: block;
  padding: 0 10px 9px 14px;
  margin-bottom: 7px;
  color: #666;
  font-size: 11.5px;
  line-height: 1.5;
  font-style: italic;
  font-weight: 400;
  max-width: 44ch;
  border-bottom: 1px solid #ededed;
}

/* Sub-item that carries a descriptor: name on top, descriptor beneath,
   both inside the same <a> so the hover highlight covers the pair. */
.cgb-nav .mega .sub.sub-noted { padding-top: 5px; padding-bottom: 6px; }
.cgb-nav .mega .sub .sub-t { display: block; }
.cgb-nav .mega .sub .sub-note {
  display: block;
  margin-top: 1px;
  color: #6d6d6d;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 400;
}
.cgb-nav .mega .sub:hover .sub-note { color: #444; }

/* The sector column now carries descriptors - give the Browse mega room. */
.cgb-nav ul.top > li[data-c="browse"] .mega {
  min-width: 700px;
  grid-template-columns: minmax(230px, 0.82fr) minmax(340px, 1.18fr);
}

/* Safety net: a tall mega scrolls instead of running off a short screen.
   Desktop only - the mobile breakpoint renders megas inline. */
@media (min-width: 901px) {
  .cgb-nav .mega { max-height: calc(100vh - 150px); overflow-y: auto; }
}

@media (max-width: 900px) {
  .cgb-nav .mega .cat-choker { font-size: 14px; padding: 4px 10px 4px 10px; max-width: none; }
  .cgb-nav .mega .cat-intro { font-size: 13px; padding: 0 10px 10px; max-width: none; }
  .cgb-nav .mega .sub .sub-note { font-size: 12.5px; }
}
