.community-hero .community-verb {
  font-weight: 900;
}

.community-hero .community-verb-explore {
  color: #63b4ff;
}

.community-hero .community-verb-learn {
  color: #58d5bd;
}

.community-hero .community-verb-evaluate {
  color: #ffbf4f;
}

.community-hero .community-verb-run {
  color: #c23b78;
}

/* Public Community uses the same compact DataFlow curtain as Tutorials. */
.public-community-main {
  --community-page-gutter: clamp(14px, 2vw, 32px);
  width: 100%;
  max-width: none;
  padding: 0 0 50px;
}

.community-hero {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .62fr);
  gap: 36px;
  padding: clamp(40px, 5vw, 68px) var(--community-page-gutter, 24px);
  border-radius: 0;
  background-color: #031a34;
  background-image:
    linear-gradient(115deg, rgba(15, 111, 232, .16), transparent 47%),
    radial-gradient(circle at 86% 25%, rgba(0, 140, 120, .24), transparent 27%),
    linear-gradient(rgba(43, 111, 177, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 111, 177, .08) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
}

.community-hero .community-eyebrow {
  margin: 0 0 12px;
  color: #71b3ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.community-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: .98;
  letter-spacing: -.05em;
}

.community-hero .community-intro {
  max-width: 850px;
  margin: 20px 0 0;
  color: #c7d8e9;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
}

.community-category-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 360px;
  overflow: hidden;
  border: 1px solid rgba(143, 194, 239, .28);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
}

.community-category-counts div {
  display: grid;
  min-width: 0;
  align-content: center;
  padding: 20px 16px;
}

.community-category-counts div + div {
  border-left: 1px solid rgba(143, 194, 239, .2);
}

.community-category-counts strong {
  color: #ffbb40;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.community-category-counts span {
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: #d5e2ef;
  font-size: 12px;
  font-weight: 800;
}

.community-access-note {
  width: calc(100% - 2 * var(--community-page-gutter));
  margin: 18px auto 0;
  padding: 11px 14px;
  border: 1px solid #d4e0eb;
  border-top: 3px solid #0f6fe8;
  border-radius: 6px;
  color: #405b76;
  background: #fff;
  box-shadow: 0 4px 14px rgba(13, 43, 77, .05);
  font-size: 12px;
  line-height: 1.5;
}

.community-tools,
.public-community-grid,
.public-community-empty {
  width: calc(100% - 2 * var(--community-page-gutter));
  margin-right: auto;
  margin-left: auto;
}

.community-tools { margin-top: 18px; margin-bottom: 18px; }

.public-community-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}
.community-tools > *, .public-project-card { min-width: 0; }
.community-tools input, .community-tools select { width: 100%; min-width: 0; }
.project-author-avatar {
  position: relative;
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  background: #edf4fb;
  font-size: 12px;
  font-weight: 900;
}
.project-author-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.project-author-line b { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 850px) {
  .community-hero { grid-template-columns: 1fr; }
  .community-category-counts { min-width: 0; }
}

@media (max-width: 560px) {
  .community-hero { gap: 24px; padding: 30px 18px; }
  .community-category-counts { grid-template-columns: 1fr; }
  .community-category-counts div { grid-template-columns: 54px 1fr; align-items: center; padding: 13px 16px; }
  .community-category-counts div + div { border-top: 1px solid rgba(143, 194, 239, .2); border-left: 0; }
  .community-category-counts span { margin-top: 0; }
}

.public-community-header {
  min-height: 72px;
  flex-wrap: wrap;
  padding-block: 8px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #1976d2 0 20%, #d98a10 20% 40%, #008c78 40% 60%, #6e4bb8 60% 80%, #c23b78 80%) 1;
}

.public-community-brands {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.community-dataflow-brand {
  display: block;
  flex: 0 0 auto;
}

.public-community-header .community-dataflow-brand img {
  display: block;
  width: 150px;
  height: 42px;
  object-fit: contain;
}

.community-brand-divider,
.community-nav-divider {
  width: 1px;
  height: 28px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .3);
}

.community-header-context {
  color: #ffbf4f;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.community-utp-brand {
  display: flex;
  height: 40px;
  align-items: center;
  margin-left: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 5px;
  background: rgba(255, 255, 255, .96);
}

.public-community-header .community-utp-brand img {
  display: block;
  width: 126px;
  height: 31px;
  object-fit: contain;
}

.public-community-nav {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.community-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.public-community-header nav .community-language-switch a {
  display: inline-flex;
  min-width: 45px;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 4px;
  color: rgba(255, 255, 255, .78);
  background: transparent;
}

.public-community-header nav .community-language-switch a:hover,
.public-community-header nav .community-language-switch a.active {
  border-color: rgba(255, 255, 255, .7);
  color: #17365d;
  background: #fff;
}

.public-community-header .community-language-switch img {
  display: block;
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid rgba(23, 54, 93, .18);
  border-radius: 1px;
  object-fit: cover;
}

.community-language-switch span {
  font-size: 9px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .public-community-header {
    align-items: flex-start;
  }
  .public-community-brands,
  .public-community-nav {
    width: 100%;
  }
  .public-community-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .public-community-header .community-dataflow-brand img { width: 132px; }
  .community-header-context { font-size: 11px; }
  .community-utp-brand { width: 42px; padding-inline: 4px; overflow: hidden; }
  .public-community-header .community-utp-brand img { width: 126px; max-width: none; object-position: left center; }
  .community-nav-divider { display: none; }
}
