/*
 * section-review.css
 * Independent clean-room implementation from a written spec.
 * Internal style-guide surfaces: a linked grid of "section review"
 * entries, and a gradient-library swatch grid used to browse the
 * theme's background-gradient tokens. Not customer-facing.
 */

.ocf-section-review__header {
  background: var(--ocf-bg-alt);
  padding: 8rem 0 3rem;
  border-bottom: 1px solid var(--ocf-border-light);
}

.ocf-section-review__header .eyebrow a {
  text-decoration: none;
  color: inherit;
}

.ocf-section-review__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  display: grid;
  gap: 1rem;
}

.ocf-section-review__item {
  gap: 0.75rem;
  display: grid;
  min-height: 12rem;
  padding: 1.25rem;
  border: 1px solid var(--ocf-border);
  border-radius: var(--card-radius);
  background: var(--ocf-bg);
  color: inherit;
  text-decoration: none;
}

.ocf-section-review__label {
  font-weight: var(--font-weight-bold);
  color: var(--ocf-heading);
}

.ocf-section-review__description,
.ocf-section-review__meta {
  font-size: var(--font-label-size);
  color: var(--ocf-body);
}

.ocf-section-review__meta {
  align-self: end;
}

.ocf-section-review__sample {
  border-bottom: 1px solid var(--ocf-border-light);
}

.ocf-section-review__sample-label {
  z-index: 20;
  position: sticky;
  top: 0;
  background: var(--ocf-bg);
  padding: 0.75rem 0;
  border-top: 1px solid var(--ocf-border-light);
  border-bottom: 1px solid var(--ocf-border-light);
}

.ocf-section-review__sample-label .container-global {
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 1rem;
}

.ocf-section-review__sample-label span {
  font-weight: var(--font-weight-bold);
  color: var(--ocf-heading);
}

.ocf-section-review__sample-label code {
  background: var(--ocf-bg-alt);
  padding: 0.35rem 0.5rem;
  color: var(--ocf-label);
  font-size: var(--font-label-size);
}

.ocf-gradient-library {
  padding-block: var(--section-pad);
}

.ocf-gradient-library__grid {
  gap: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ocf-gradient-card {
  gap: 1rem;
  display: grid;
  border: 1px solid var(--ocf-border-light);
  border-radius: var(--card-radius);
  background: var(--ocf-bg);
  overflow: hidden;
}

.ocf-gradient-card__preview {
  align-items: end;
  display: grid;
  min-height: clamp(11rem, 22vw, 16rem);
  padding: 1rem;
  color: var(--ocf-heading-alt);
  background-size: cover;
  background-position: center;
}

.ocf-gradient-card__preview--dark,
.ocf-gradient-card__preview--primary,
.ocf-gradient-card__preview--mixed {
  color: var(--ocf-heading-alt);
}

.ocf-gradient-card__preview--soft,
.ocf-gradient-card__preview--light,
.ocf-gradient-card__preview--surface {
  color: var(--ocf-heading);
}

.ocf-gradient-card__sample {
  max-width: 24rem;
}

.ocf-gradient-card__sample strong,
.ocf-gradient-card__sample span {
  display: block;
}

.ocf-gradient-card__sample strong {
  line-height: 1.1;
  font-family: var(--ocf-font-heading), system-ui, sans-serif;
  font-size: var(--font-h3-size);
}

.ocf-gradient-card__sample span {
  opacity: 0.82;
  margin-top: 0.35rem;
  font-size: var(--font-label-size);
}

.ocf-gradient-card__body {
  gap: 0.55rem;
  display: grid;
  padding: 0 1rem 1rem;
}

.ocf-gradient-card__body h2 {
  font-size: var(--font-h3-size);
  margin: 0;
  color: var(--ocf-heading);
}

.ocf-gradient-card__body p {
  color: var(--ocf-body);
  margin: 0;
}

.ocf-gradient-card__body code {
  background: var(--ocf-bg-alt);
  width: fit-content;
  padding: 0.35rem 0.5rem;
  color: var(--ocf-label);
  font-size: var(--font-label-size);
}

@media (max-width: 900px) {
  .ocf-section-review__grid {
    grid-template-columns: 1fr;
  }

  .ocf-gradient-library__grid {
    grid-template-columns: 1fr;
  }

  .ocf-section-review__sample-label .container-global {
    flex-direction: column;
    align-items: flex-start;
  }
}
