.ecosystem-toolbar[hidden], #directory-toggle[hidden] { display: none; }
.platform-logo { filter: none; opacity: 1; }

:where(html:not([data-design="invitation"])) .ecosystem-section {
  padding-block: clamp(24px, 2.6vw, 42px);
  background: #f8f9fb;
}
:where(html[data-design="forum"]) .ecosystem-section { background: #f4f7fc; }
:where(html:not([data-design="invitation"])) .ecosystem-section .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 26px;
  margin: 0 0 16px;
}
:where(html:not([data-design="invitation"])) .ecosystem-section .section-heading h2 {
  margin: 0; font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.15; letter-spacing: -.04em;
}
:where(html:not([data-design="invitation"])) .ecosystem-section .section-heading p { display: none; }
#directory-toggle {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: .6em;
  min-height: 44px; padding: 4px 0; border: 0;
  background: transparent; color: var(--blue); font: inherit; font-size: .875rem; font-weight: 600;
  line-height: 1.3; text-align: start; cursor: pointer;
}
#directory-toggle::after {
  content: ""; display: inline-block; width: .5em; height: .5em;
  border-right: 1.5px solid; border-bottom: 1.5px solid;
  transform: translateY(-.12em) rotate(45deg);
}
#directory-toggle[aria-expanded="true"]::after { transform: translateY(.12em) rotate(225deg); }
#directory-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
:where(html:not([data-design="invitation"])) .platform-grid {
  display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; border: 0;
}
:where(html:not([data-design="invitation"])) [data-compact] .platform-grid {
  grid-template-columns: repeat(6,minmax(0,1fr));
}
:where(html:not([data-design="invitation"])) .platform-card {
  min-height: 82px; padding: 14px clamp(12px,1.25vw,20px); border: 1px solid #dde1e7;
  border-radius: 5px; background: #fff;
}
:where(html:not([data-design="invitation"])) button.platform-card:hover,
:where(html:not([data-design="invitation"])) button.platform-card:focus-visible {
  border-color: var(--blue);
}
:where(html:not([data-design="invitation"])) .platform-logo { width: 145px; height: 36px; }
:where(html:not([data-design="invitation"])) .platform-logo-stage.is-symbol .platform-logo { width: 28px; max-width: 24%; height: 28px; }
:where(html:not([data-design="invitation"])) .platform-wordmark { color: #242a33; }
:where(html:not([data-design="invitation"])) .ecosystem-bottom { margin-top: 16px; }
:where(html:not([data-design="invitation"])) [data-compact] .ecosystem-bottom { justify-content: flex-end; align-items: flex-end; }
:where(html:not([data-design="invitation"])) [data-compact] .ecosystem-bottom > span { display: none; }

@media (max-width: 1080px) {
  :where(html:not([data-design="invitation"])) .platform-grid,
  :where(html:not([data-design="invitation"])) [data-compact] .platform-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  :where(html:not([data-design="invitation"])) .ecosystem-section .section-heading { flex-wrap: wrap; gap: 0 15px; margin-bottom: 9px; }
  :where(html:not([data-design="invitation"])) .platform-grid,
  :where(html:not([data-design="invitation"])) [data-compact] .platform-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  :where(html:not([data-design="invitation"])) .platform-card { min-height: 64px; padding: 10px 13px; }
  :where(html:not([data-design="invitation"])) .platform-logo { width: 120px; height: 30px; }
  :where(html:not([data-design="invitation"])) .platform-wordmark { font-size: .75rem; }
  :where(html:not([data-design="invitation"])) .platform-logo-stage { gap: 5px; }
}
