/* Per-page styles for client-stories.html.
 *
 * This page has no hashed bundle of its own (the build that produces
 * global-*.css / index-*.css is not in this repository), so its layout is
 * hand-written here and layered over global-*.css, the same way
 * testimonials.css is layered over index-*.css. Typography, buttons, header
 * and footer all come from global-*.css; only the story cards are new.
 *
 * Colours come from the theme variables in themes/*.css where they exist, with
 * literal fallbacks so the page survives a missing theme.
 */
#client-stories-intro > p {
  max-width: 800px;
}

#client-stories-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.client-story {
  box-sizing: border-box;
  background-color: var(--gr-surface, #ffffff);
  border: 1px solid #e6e8ef;
  border-radius: 8px;
  padding: 24px;
}

.client-story > .story-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.client-story .story-logo {
  width: 120px;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
}

/* Shield badges (robot-badge.png, trophy-badge.png) stand in for a client logo
 * on stories without a named client. They are taller than wide, so they get a
 * little more height; the 120px box is kept so headings line up with the
 * logo cards. */
.client-story .story-logo.story-badge {
  height: 64px;
  max-height: 64px;
}

/* The SAP Taulia asset is the white-on-transparent variant, so it needs a dark
 * chip to sit on. Drop the class once a dark-on-light logo is available. */
.client-story .story-logo.on-dark {
  box-sizing: border-box;
  background-color: #1d2233;
  border-radius: 4px;
  padding: 6px 8px;
}

.client-story blockquote {
  margin: 16px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--gr-accent, #505b98);
}

.client-story blockquote > p {
  margin: 0;
}

.client-story blockquote > footer {
  display: block;
  margin-top: 8px;
  color: var(--gr-muted, #5a6274);
}

.client-story > .story-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

@media only screen and (min-width: 1024px) {
  #client-stories-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}
