/* Client Stories page (sp-*). Schulman tokens and st-* components only; layout rules live here.
   Mosaic: 12-column grid, spans picked per row by a seeded layout so each page reads like an editorial spread. */

.hp-i--star { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z' fill='black'/%3E%3C/svg%3E"); }

/* Intro: copy left, rating sources right; clears the floating header bar */
.sp-intro { padding-top: calc(var(--header-height-mobile) + var(--space-3) + var(--space-9)); }
.sp-intro__in { display: grid; gap: var(--space-8); align-items: end; }
.sp-intro__copy { display: grid; gap: var(--space-4); justify-items: start; }
.sp-intro__copy .st-h1 { max-width: 13ch; font-size: clamp(44px, 7cqi, 76px); text-wrap: balance; }
.sp-sources { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.sp-source { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--white); }
.sp-source__label { font-family: var(--font-eyebrow); font-size: 12px; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.sp-source__score { display: flex; align-items: center; gap: var(--space-3); }
.sp-source__score b { font-family: var(--font-display); font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--blue-deep); }
.sp-source__count { margin: 0; font-size: 16px; line-height: 1.5; }
.sp-source__link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--touch-target); width: fit-content; color: var(--blue-deep); font-weight: 600; text-decoration: none; }
.sp-source__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-source--soon { background: transparent; box-shadow: inset 0 0 0 1px var(--blue-300); }
.sp-source--soon .sp-source__soon { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--charcoal); }
.sp-source--soon p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-muted); }

/* Stars */
.sp-stars { display: inline-flex; gap: 2px; color: var(--blue-deep); }
.sp-stars .st-i { width: 18px; height: 18px; }
.sp-source .sp-stars .st-i { width: 22px; height: 22px; }

/* Grid head */
.sp-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-7); }
.sp-count { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }

/* Mosaic */
.sp-grid-wrap { transition: opacity .22s ease; }
.sp-grid-wrap.is-fading { opacity: 0; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.sp-card { display: grid; grid-template-rows: auto 1fr auto auto; gap: var(--space-5); margin: 0; padding: var(--space-7) var(--space-6); border-radius: var(--radius-lg); background: var(--white); color: var(--charcoal); }
.sp-quote { margin: 0; }
.sp-quote p { margin: 0; padding-left: .42em; text-indent: -.42em; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; text-wrap: pretty; }
.sp-quote p { font-size: 22px; line-height: 1.28; }
.sp-attr { display: grid; gap: var(--space-1); }
.sp-name { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.sp-meta { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.sp-more { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--touch-target); width: fit-content; margin-block: calc(var(--space-2) * -1); color: var(--blue-deep); font-size: 15px; font-weight: 600; text-decoration: none; }
.sp-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.sp-tone-pale { background: var(--blue-100); }
.sp-tone-blue { background: var(--blue-deep); color: var(--off-white); }
.sp-tone-dark { background: var(--charcoal); color: var(--off-white); }
.sp-tone-blue .sp-stars, .sp-tone-dark .sp-stars, .sp-tone-blue .sp-more, .sp-tone-dark .sp-more { color: var(--off-white); }
.sp-tone-blue .sp-meta, .sp-tone-dark .sp-meta { color: var(--on-dark-muted); }
.sp-tone-blue .sp-meta { color: var(--off-white); }

.sp-photo { position: relative; min-height: 280px; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-100); }
.sp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Pager */
.sp-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-8); }
.sp-pg, .sp-pg-nav { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-width: var(--touch-target); height: var(--touch-target); padding-inline: var(--space-4); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--charcoal); font: inherit; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px var(--blue-300); transition: background-color .2s ease, color .2s ease; }
.sp-pg { padding-inline: 0; }
.sp-pg:hover, .sp-pg-nav:hover:not(:disabled) { background: var(--blue-100); }
.sp-pg.is-active { background: var(--charcoal); color: var(--off-white); box-shadow: none; }
.sp-pg-nav:disabled { opacity: .45; cursor: default; }
.sp-pg:focus-visible, .sp-pg-nav:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
.st-wrap > .sp-source-note { max-width: 62ch; margin: var(--space-6) auto 0; font-size: 14px; line-height: 1.6; text-align: center; color: var(--ink-muted); }
.st-wrap > .sp-source-note a { color: inherit; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { .sp-grid-wrap, .sp-pg, .sp-pg-nav { transition: none; } }

@container page (min-width: 720px) {
  .sp-intro { padding-top: calc(var(--header-height) + var(--space-7) + var(--space-10)); }
  .sp-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .sp-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-5); }
  .sp-s3, .sp-s4, .sp-s6 { grid-column: span 6; }
  .sp-s8, .sp-s12 { grid-column: span 12; }
  .sp-card { padding: var(--space-8) var(--space-7); }
  .sp-size-s .sp-quote p { font-size: 20px; line-height: 1.3; }
  .sp-size-l .sp-quote p { font-size: 26px; line-height: 1.22; }
  .sp-size-xl .sp-quote p { font-size: 30px; line-height: 1.18; }
}
@container page (min-width: 960px) {
  .sp-intro__in { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-9); }
  .sp-s3 { grid-column: span 3; }
  .sp-s4 { grid-column: span 4; }
  .sp-s6 { grid-column: span 6; }
  .sp-s8 { grid-column: span 8; }
  .sp-s12 { grid-column: span 12; }
  .sp-s3.sp-card { padding: var(--space-7) var(--space-6); }
  .sp-size-l .sp-quote p { font-size: clamp(26px, 2.3cqi, 32px); }
  .sp-size-xl .sp-quote p { font-size: clamp(30px, 2.8cqi, 40px); }
}
