/* Shared category navigation: keep each label and count together. */
.nav-inner>a,.channel-inner>a,.channel-inner>strong,
.community-subnav-inner>a,.community-subnav-inner>span,
.enterprise-subnav .shell>a{flex-shrink:0}
.channel-inner>a,.community-subnav-inner>a,.enterprise-subnav .shell>a{
  display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;
  line-height:1.5;white-space:nowrap
}
.enterprise-subnav .shell{padding-block:0;align-items:stretch}
.enterprise-subnav .shell>a{border-bottom:2px solid transparent;padding-block:10px}
.enterprise-subnav .shell>a[aria-current=page]{border-bottom-color:#cf2437}

/* Short category groups use equal cells instead of uneven trailing rows. */
.directory-group div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.directory-group button,.directory-group a{
  display:flex;align-items:center;justify-content:center;min-width:0;min-height:36px;
  box-sizing:border-box;padding:7px 9px;font-size:12px;line-height:1.5;
  text-align:center;white-space:normal;word-break:normal;text-wrap:balance
}
.directory-group button:focus-visible,.directory-group a:focus-visible{
  outline:2px solid #285d96;outline-offset:2px
}
.enterprise-home-links{align-items:stretch;gap:10px}
.enterprise-home-links>a{
  display:inline-flex;align-items:center;justify-content:center;min-height:40px;
  padding:8px 14px;border:1px solid #cfdae7;background:#fff;box-sizing:border-box;
  text-align:center;line-height:1.5
}
.enterprise-home-links>a:hover{background:#edf3fa;border-color:#285d96}
.active-filters{display:flex;flex-wrap:wrap;align-items:center;gap:6px;line-height:1.5}
.active-filters span{display:inline-flex;align-items:center;min-height:30px;
  max-width:100%;margin-left:0;box-sizing:border-box}

/* Two catalogue choices remain side by side; long names wrap within their cell. */
.enterprise-catalog-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
.enterprise-catalog-tabs a{
  min-width:0;min-height:54px;justify-content:center;padding:12px 16px;
  text-align:center;line-height:1.5;box-sizing:border-box
}
.enterprise-catalog-label{min-width:0;text-wrap:balance}
.enterprise-catalog-tabs b{flex-shrink:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.comment-notice-tabs a{border-bottom:2px solid transparent;box-sizing:border-box;line-height:1.5}
.message-filters a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  border-bottom:2px solid transparent;box-sizing:border-box;line-height:1.5}
.help-index a,.search-start>a{box-sizing:border-box;min-height:44px}

/* Label/control pairs stay together at intermediate widths as well as on phones. */
@media(min-width:701px){
  .expo-filters{display:grid;grid-template-columns:max-content minmax(0,1fr) max-content minmax(0,1fr) max-content minmax(0,1fr) auto}
  .expo-filters select{min-width:0;width:100%}
  .expo-filters label{white-space:nowrap}
}
@media(min-width:701px) and (max-width:1100px){
  .expo-filters{grid-template-columns:max-content minmax(0,1fr)}
  .expo-filters button{grid-column:2;justify-self:end}
}
@media(max-width:700px){
  .directory-group button,.directory-group a{min-height:44px;font-size:13px}
  .enterprise-home-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .enterprise-home-links>a{min-width:0;min-height:44px;padding:10px 8px;text-wrap:balance}
  .enterprise-catalog-tabs a{padding:12px 8px;gap:6px}
  .enterprise-catalog-tabs b{padding:2px 5px}
  .comment-notice-tabs,.message-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
  .comment-notice-tabs a,.message-filters a{justify-content:center;text-align:center;padding:10px 8px;min-width:0}
  .help-index{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}
  .help-index a{display:flex;align-items:center;min-width:0;line-height:1.5}
  .search-start{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
  .search-start>a{display:flex;align-items:center}
  .library .facet-row,.expo-filters{grid-template-columns:max-content minmax(0,1fr)}
  .library .facet-row label,.expo-filters label{width:auto;white-space:nowrap}
  .expo-filters button{min-height:44px}
}
@media(max-width:350px){
  .library .facet-row,.expo-filters{grid-template-columns:minmax(0,1fr)}
  .library .facet-row button,.expo-filters button{grid-column:1}
}
