/* Catalog sections use the same cards and colors as ContentDS. */
.sections-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:inherit}
.sections-toggle:hover:not(:disabled),.sections-toggle:focus-visible{background:transparent;color:#b8fa18}
.sections-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body.sections-open{overflow:hidden}
.catalog-modal {
  width: 70vw;
  height: 70vh;
  max-width: calc(100vw - 96px);
  max-height: calc(100vh - 128px);
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: #222;
  box-shadow: none;
  color: #fff;
  overflow: auto;
  padding: clamp(30px, 3.4vw, 44px);
  outline: none;
}
.catalog-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
}
.catalog-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 30px);
  justify-content: start;
  align-content: start;
}
.catalog-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: clamp(116px, 15vh, 176px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #2d2d2d;
  color: rgba(255, 255, 255, 0.88);
  box-shadow: none;
  padding: 22px;
  text-align: center;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.catalog-modal-card[hidden] {
  display: none !important;
}
.catalog-modal-card:hover,
.catalog-modal-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: none;
  transform: translateY(-1px);
}
.catalog-modal-card:disabled,
.catalog-modal-card[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}
.catalog-modal-card:disabled:hover,
.catalog-modal-card:disabled:focus-visible,
.catalog-modal-card[aria-disabled="true"]:hover,
.catalog-modal-card[aria-disabled="true"]:focus-visible {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transform: none;
}
.catalog-modal-card:focus-visible {
  outline: 2px solid rgba(184, 250, 24, 0.72);
  outline-offset: 3px;
}
.catalog-modal-card--trello {
  border-color: rgba(196, 163, 255, 0.28);
  background: #7542d9;
  box-shadow: none;
}
.catalog-modal-card--content,
.catalog-modal-card--content:hover,
.catalog-modal-card--content:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #000;
  box-shadow: none;
}
.catalog-modal-card--content:hover,
.catalog-modal-card--content:focus-visible {
  transform: none;
}
.catalog-modal-card--marketing {
  border-color: rgba(255, 122, 184, 0.42);
  background: #f04f9f;
  color: #fff;
}
.catalog-modal-card--marketing:hover,
.catalog-modal-card--marketing:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  background: #ff61ad;
}
.catalog-modal-card--health {
  border-color: rgba(184, 250, 24, 0.46);
  background: #b8fa18;
  color: #090811;
  box-shadow: none;
}
.catalog-modal-card--health:hover,
.catalog-modal-card--health:focus-visible {
  border-color: rgba(255, 255, 255, 0.52);
  background: #c6ff34;
}
.catalog-modal-card--b2b {
  border-color: rgba(255, 255, 255, 0.18);
  background: #ff5a00;
  color: #fff;
  box-shadow: none;
}
.catalog-modal-card--b2b:hover,
.catalog-modal-card--b2b:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: none;
}
.catalog-modal-card--dsd {
  padding: 0;
  overflow: hidden;
}
.catalog-modal-card--dsd:focus-within {
  border-color: rgba(255, 255, 255, 0.34);
}
.catalog-modal-card-main {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  color: inherit;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.catalog-modal-card-main:focus-visible {
  outline: 2px solid rgba(184, 250, 24, 0.72);
  outline-offset: -5px;
}
.catalog-modal-admin-link {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(9, 8, 17, 0.18);
  color: #fff;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.catalog-modal-admin-link:hover,
.catalog-modal-admin-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.18);
}
.catalog-modal-admin-link:focus-visible {
  outline: 2px solid rgba(184, 250, 24, 0.72);
  outline-offset: 3px;
}
.catalog-modal-admin-link svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.catalog-modal-card-title {
  display: block;
  max-width: 100%;
  color: currentColor;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.catalog-modal-card-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  align-items: center;
  justify-content: center;
}
.catalog-modal a{text-decoration:none}
.catalog-modal .catalog-modal-card{font:inherit;align-items:center;justify-content:center;text-align:center}
.catalog-modal .catalog-modal-card-title{font-size:20px;font-weight:850;line-height:1.1;overflow-wrap:anywhere}
.catalog-modal button:hover:not(:disabled){background:#2d2d2d}
@media(max-width:700px){.catalog-modal{width:calc(100vw - 24px);height:auto;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:18px}.catalog-modal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.catalog-modal .catalog-modal-card{min-height:105px;padding:14px}.catalog-modal .catalog-modal-card-title{font-size:17px}}

.header-title .logo{margin-right:0}
.sections-toggle{margin-right:clamp(0px,3vw,60px)}
.catalog-modal{border-color:rgba(255,255,255,.16)}
.catalog-modal-card{border-color:rgba(255,255,255,.16);box-shadow:none}
.catalog-modal-card:hover,.catalog-modal-card:focus-visible{transform:none;box-shadow:none}
.catalog-modal-card--search{background:#1f67d9;color:#fff}
.catalog-modal-card--loader{background:#123c2c;color:#fff}
.catalog-modal-card--loader:hover,.catalog-modal-card--loader:focus-visible{background:#174a38}
@media(max-width:1100px){.sections-toggle{margin-right:0}}

/* Fit every section inside the dialog instead of scrolling its last row. */
.catalog-modal{padding:clamp(16px,3dvh,36px);overflow:hidden}
.catalog-modal-grid{height:100%;min-height:0;grid-template-rows:repeat(4,minmax(0,1fr));gap:clamp(8px,2dvh,24px)}
.catalog-modal .catalog-modal-card{min-width:0;min-height:0;padding:clamp(8px,1.5dvh,20px)}
.catalog-modal .catalog-modal-card-title{font-size:clamp(14px,2.3dvh,20px)}
@media(max-width:700px){
 .catalog-modal{height:calc(100dvh - 32px);padding:12px}
 .catalog-modal-grid{grid-template-rows:repeat(8,minmax(0,1fr));gap:8px}
 .catalog-modal .catalog-modal-card{padding:6px}
 .catalog-modal .catalog-modal-card-title{font-size:clamp(12px,2dvh,17px)}
 .catalog-modal-admin-link{top:4px;right:4px;width:26px;height:26px}
 .catalog-modal-admin-link svg{width:16px;height:16px}
 .catalog-modal-card-main{padding:6px 32px 6px 6px}
}
@media(min-width:701px) and (max-height:600px){
 .catalog-modal{height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:16px}
}

/* Shared ContentDS navigation drawer. */
#catalogModal.is-navigation-drawer {
  position: fixed;
  inset: var(--catalog-container-top, 80px) auto auto var(--catalog-container-left, 0px);
  width: min(310px, var(--catalog-container-width, 100vw));
  height: var(--catalog-container-height, calc(100dvh - 80px));
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 12px;
  border: 1px solid #414146;
  border-radius: 0 0 0 12px;
  background: #202124;
  box-shadow: none;
  overflow: auto;
  overscroll-behavior: contain;
}
#catalogModal.is-navigation-drawer[open] { animation: milio-menu-slide 180ms ease-out; }
#catalogModal.is-navigation-drawer::backdrop { background: rgb(0 0 0 / 30%); }
@keyframes milio-menu-slide { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
#catalogModal .catalog-menu-header:not([hidden]) { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px 12px; }
#catalogModal .catalog-menu-header h2 { margin: 0; font-size: 18px; font-weight: 600; }
#catalogMenuCloseButton { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #ddd; font: 28px/1 sans-serif; cursor: pointer; }
#catalogModal.is-navigation-drawer .catalog-modal-grid { display: flex; flex-direction: column; gap: 2px; min-height: 0; }
#catalogModal.is-navigation-drawer .catalog-modal-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  height: auto;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #f1f1f3;
  box-shadow: none;
  text-align: left;
  transform: none;
  cursor: pointer;
}
#catalogModal.is-navigation-drawer .catalog-modal-card-title { font-family: inherit; font-size: 16px; font-weight: 400; line-height: 22px; text-align: left; }
#catalogModal.is-navigation-drawer .catalog-modal-card:hover:not(:disabled),
#catalogModal.is-navigation-drawer .catalog-modal-card:focus-visible,
#catalogMenuCloseButton:hover { background: #333338; }
#catalogModal.is-navigation-drawer .catalog-modal-card:focus-visible,
#catalogMenuCloseButton:focus-visible { outline: 2px solid #b8fa18; outline-offset: -2px; }
@media (min-width: 901px) {
  #catalogModal.is-navigation-drawer {
    width: min(372px, var(--catalog-container-width, 100vw));
  }
  #catalogModal.is-navigation-drawer .catalog-menu-header:not([hidden]) {
    justify-content: flex-end;
  }
  #catalogModal.is-navigation-drawer .catalog-menu-header h2 {
    display: none;
  }
  #catalogMenuCloseButton:focus-visible {
    outline: none;
    background: #333338;
  }
}
#catalogModal.is-navigation-drawer .catalog-modal-card:disabled { cursor: default; opacity: .4; }
#catalogModal.is-navigation-drawer .catalog-modal-card-main { position: static; display: flex; flex: 1; align-items: center; justify-content: flex-start; padding: 0; min-height: 22px; text-align: left; }
#catalogModal.is-navigation-drawer .catalog-modal-admin-link { position: static; width: 28px; height: 28px; flex: 0 0 28px; margin: -3px 0; padding: 4px; border: 0; box-shadow: none; background: transparent; }


#catalogModal.is-navigation-drawer { background: var(--page-overlay-background); color: var(--page-overlay-ink); border-color: var(--page-overlay-border); }
#catalogModal.is-navigation-drawer :is(.catalog-modal-card,.catalog-modal-card-main,.catalog-modal-admin-link,#catalogMenuCloseButton) { background: transparent; color: var(--page-overlay-ink); }
#catalogModal.is-navigation-drawer :is(.catalog-modal-card,#catalogMenuCloseButton):hover:not(:disabled),
#catalogModal.is-navigation-drawer :is(.catalog-modal-card,#catalogMenuCloseButton):focus-visible { background: var(--page-overlay-hover); }
@media (prefers-reduced-motion: reduce) { #catalogModal.is-navigation-drawer[open] { animation: none; } }

/* Purchase navigation uses the darker header palette and muted contours. */
#catalogModal.is-navigation-drawer :is(.catalog-modal-card,.catalog-modal-card-main,.catalog-modal-admin-link,#catalogMenuCloseButton):focus-visible {
  outline: 1px solid var(--page-overlay-border, #3f574f);
  outline-offset: -1px;
}
