/* SynDB additions on top of the Plinth project stylesheet. Unlayered, so these win. */

.hero--split .hero-logo {
  margin: 0 0 0.5rem;
  height: 3.5rem;
  width: auto;
}
/* Plinth hides secondary hero buttons on phones; keep the worked example reachable. */
.hero--split .hero-actions .btn-secondary {
  display: inline-flex;
  justify-content: center;
}
.hero.hero--split h1 {
  max-width: none;
}
.hero-preview {
  border: 1px solid var(--pp-line);
  border-radius: 0.75rem;
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 0.45);
}

/* Content and screenshot sections share the feature grids' width after a split hero
   (Plinth only widens .features, .workflow-steps and .trust-panel). */
.hero--split ~ .landing-content {
  max-width: 1440px;
  padding: 1rem clamp(1rem, 5vw, 4.5rem) 2rem;
}
.landing-content .prose {
  max-width: none;
}

.dataset-tags,
.partner-grid {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}
.dataset-tags li,
.partner-grid li {
  margin: 0;
}
.dataset-tags {
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}
.dataset-tags a {
  display: block;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--pp-line);
  border-radius: 0.5rem;
  background: var(--pp-surface);
  color: var(--pp-ink);
  text-decoration: none;
  line-height: 1.4;
}
.dataset-tags a:hover,
.dataset-tags a:focus-visible {
  border-color: var(--pp-accent);
  color: var(--pp-accent);
}

/* Partner logos are dark-on-light artwork, so each sits on a light tile. */
.partner-grid {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.partner-grid a {
  display: grid;
  grid-template-rows: 6rem auto auto;
  gap: 0.25rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--pp-line);
  border-radius: 0.75rem;
  background: var(--pp-surface);
  color: var(--pp-ink);
  text-decoration: none;
  line-height: 1.4;
}
.partner-grid a:hover,
.partner-grid a:focus-visible {
  border-color: var(--pp-accent);
}
.prose .partner-grid img {
  width: 100%;
  height: 6rem;
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 0.5rem;
  box-sizing: border-box;
}
.partner-grid span {
  font-weight: 700;
}
.partner-grid small {
  color: var(--pp-ink-soft);
}
.prose a.btn {
  text-decoration: none;
}

/* One heading scale and one section rhythm for every section after the hero. */
.hero--split ~ section h2 {
  font-size: 1.5rem;
}
.landing-content > .prose > h2:first-child,
.landing-content > h2:first-child {
  margin-top: 0;
}
.hero--split ~ section {
  padding-top: 3rem;
  padding-bottom: 1rem;
}
.dataset-tags a {
  height: 100%;
  box-sizing: border-box;
}
.partner-grid a {
  grid-template-rows: 6rem minmax(2.8em, auto) auto;
  align-content: start;
}
.features-grid > .feature-card {
  height: 100%;
}

/* Tablets: stack the hero and use two feature columns before the phone layout. */
@media (min-width: 641px) and (max-width: 900px) {
  .hero.hero--split {
    grid-template-columns: minmax(0, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero--split ~ section h2 {
    font-size: 1.375rem;
  }
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .partner-grid a {
    grid-template-rows: 4rem auto auto;
    padding: 0.75rem;
    font-size: 0.875rem;
  }
  .prose .partner-grid img {
    height: 4rem;
    padding: 0.5rem;
  }
}

/* Plinth frames thumbnails at 16:10 and centres them; the crops read from the top left. */
.screenshot-slot img {
  object-position: left top;
}
