.model-provider-hub {
  --provider-accent: #1768c8;
  --provider-accent-strong: #0752a8;
  --provider-accent-soft: #edf5ff;
  --provider-border: #d5dfeb;
  --provider-text: #101b2e;
  --provider-muted: #5b6e89;
}

.model-provider-hub[data-model-provider="alibaba"] {
  --provider-accent: #9b520f;
  --provider-accent-strong: #733d0a;
  --provider-accent-soft: #fff4e8;
}

.model-provider-hub[data-model-provider="moonshotai"] {
  --provider-accent: #08757c;
  --provider-accent-strong: #07575e;
  --provider-accent-soft: #e8f6f6;
}

.model-provider-hub[data-model-provider="zai"] {
  --provider-accent: #a13e60;
  --provider-accent-strong: #792c49;
  --provider-accent-soft: #fceef3;
}

.model-provider-hub .network-hub-hero {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: center;
  padding: 38px 0 24px;
}

.model-provider-hub .network-hub-hero .breadcrumbs {
  width: 100%;
  margin: 0 0 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.model-provider-hub .breadcrumbs a::after {
  content: none;
}

.model-provider-hub .network-hub-hero h1 {
  margin: 12px 0 14px;
  font-size: 46px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.model-provider-hub .network-hub-hero .hero-text {
  max-width: 660px;
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.55;
}

.model-provider-hub .provider-verified {
  margin: 0 0 18px;
  font-size: 13px;
}

.model-provider-hub .network-hub-hero .hero-actions {
  gap: 9px;
}

.model-provider-hub .network-hub-hero .hero-actions .button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}

.model-provider-hub .network-hub-visual {
  gap: 10px;
  padding: 18px;
  border-color: var(--provider-border);
  border-radius: 8px;
  background: #f7f9fc;
  box-shadow: none;
}

.model-provider-hub .network-visual-header img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.model-provider-hub .network-visual-header span {
  color: var(--provider-accent-strong);
}

.model-provider-hub .network-hub-visual p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.model-provider-hub .network-catalog-section {
  padding-top: 20px;
}

.model-provider-hub .network-catalog-section > .section-heading {
  max-width: none;
  margin: 0 0 22px;
  text-align: left;
}

.model-provider-hub .network-catalog-section .section-heading .eyebrow,
.model-provider-hub .network-catalog-section .section-heading p {
  margin-left: 0;
  margin-right: 0;
}

.model-provider-hub .network-catalog-section .section-heading h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.16;
}

.model-provider-hub .network-catalog-section .section-heading p:last-child {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

.model-provider-hub .gemini-directory-search {
  max-width: 560px;
  margin-bottom: 14px;
  --gemini-accent: var(--provider-accent);
}

.model-provider-hub .provider-filter-row {
  margin: 0 0 18px;
}

.model-provider-hub .provider-filter-row button {
  white-space: nowrap;
}

.model-provider-hub .network-catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  gap: 12px;
}

.model-provider-hub .single-model-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 640px;
}

.model-provider-hub .network-catalog-grid [hidden] {
  display: none;
}

.model-provider-hub .inventory-card {
  min-height: 0;
  padding: 17px;
  background: #fff;
}

.model-provider-hub .inventory-card h3 {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.model-provider-hub .inventory-card > p {
  min-height: 0;
  margin: 12px 0;
  color: #4f6078;
  font-size: 14px;
  line-height: 1.45;
}

.model-provider-hub .inventory-card .provider-card-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: auto;
}

.model-provider-hub .inventory-card .provider-card-facts div + div {
  margin: 0;
  border: 0;
}

.model-provider-hub .inventory-card .provider-directory-actions {
  margin-top: 12px;
}

.model-provider-hub .inventory-card:not([data-comparison-measured="true"]) .provider-directory-actions {
  grid-template-columns: 1fr;
}

.model-provider-hub .inventory-card .button {
  min-height: 38px;
  padding: 8px;
  font-size: 12px;
}

.model-provider-hub .inventory-card[data-model-group="earlier"] {
  border-top-color: #70849d;
}

.model-provider-hub .inventory-card[data-model-group="research"] {
  border-top-color: #9299a4;
}

.model-provider-hub .provider-reading {
  padding-top: 36px;
  padding-bottom: 36px;
}

.model-provider-hub .provider-reading .section-heading {
  margin-bottom: 14px;
  text-align: left;
}

.model-provider-hub .provider-reading .section-heading h2 {
  font-size: 30px;
}

.model-provider-hub .provider-reading-list {
  border-top: 1px solid var(--provider-border);
}

.model-provider-hub .provider-reading-link {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 20px;
  min-height: 116px;
  padding: 12px 0;
  border-bottom: 1px solid var(--provider-border);
  color: var(--provider-text);
  text-decoration: none;
}

.model-provider-hub .provider-reading-link:hover strong,
.model-provider-hub .provider-reading-link:focus-visible strong {
  color: var(--provider-accent-strong);
  text-decoration: underline;
}

.model-provider-hub .provider-reading-link img {
  display: block;
  width: 176px;
  height: 108px;
  object-fit: cover;
  border-radius: 4px;
}

.model-provider-hub .provider-reading-link strong,
.model-provider-hub .provider-reading-link small {
  display: block;
  overflow-wrap: anywhere;
}

.model-provider-hub .provider-reading-link strong {
  font-size: 19px;
  line-height: 1.3;
}

.model-provider-hub .provider-reading-link small {
  margin-top: 6px;
  color: var(--provider-muted);
  font-size: 14px;
  line-height: 1.45;
}

.model-provider-hub .provider-reading-arrow {
  color: var(--provider-accent);
  font-size: 20px;
}

.model-provider-hub .provider-reading-rubrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 16px;
}

.model-provider-hub .provider-reading-rubrics a {
  color: var(--provider-accent-strong);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 3px;
}

@media (max-width: 940px) {
  .model-provider-hub .network-hub-hero {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 20px;
  }

  .model-provider-hub .network-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .model-provider-hub .network-hub-hero {
    display: block;
    padding: 22px 0 8px;
  }

  .model-provider-hub .network-hub-hero .breadcrumbs {
    margin-bottom: 12px;
  }

  .model-provider-hub .network-hub-hero h1 {
    margin: 10px 0;
    font-size: 35px;
  }

  .model-provider-hub .network-hub-hero .hero-text {
    font-size: 15px;
  }

  .model-provider-hub .network-hub-visual {
    display: none;
  }

  .model-provider-hub .network-hub-hero .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .model-provider-hub .network-hub-hero .hero-actions .button {
    min-width: 0;
    padding: 9px 8px;
    font-size: 12px;
    text-align: center;
    white-space: normal;
  }

  .model-provider-hub .network-catalog-section {
    padding-top: 16px;
  }

  .model-provider-hub .network-catalog-section .section-heading h2 {
    font-size: 28px;
  }

  .model-provider-hub .network-catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .model-provider-hub .inventory-card .provider-card-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-provider-hub .provider-reading-link {
    grid-template-columns: 88px minmax(0, 1fr) 16px;
    gap: 10px;
    min-height: 86px;
  }

  .model-provider-hub .provider-reading-link img {
    width: 88px;
    height: 68px;
  }

  .model-provider-hub .provider-reading-link strong {
    font-size: 15px;
  }

  .model-provider-hub .provider-reading-link small {
    font-size: 12px;
  }
}
