/* /caption-styles/ (scripts/site-pages/pages/styles.mjs): a gallery of every caption style,
   one rendered still per card. Builds on seo.css. */

.sg-hero {
  padding-block: 64px 60px;
}
.sg-intro {
  padding-top: 28px;
}
.sg-intro > p:first-child {
  font-size: 18px;
}
.sg-wide {
  max-width: 1180px;
}
.sg-group {
  margin-top: 44px;
}
.sg-group h2 small {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  margin-left: 6px;
  vertical-align: middle;
}
.sg-grid {
  list-style: none;
  padding: 0;
  margin: 18px 0 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.sg-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 90px;
}
.sg-card:target {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.sg-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  background: var(--stage);
}
.sg-meta {
  padding: 14px 16px 16px;
}
.sg-meta h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 17px;
}
.sg-meta p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
}
.sg-meta .sg-spec {
  margin-top: 10px;
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.sg-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--stage);
  color: var(--stage-ink);
}
.sg-tag.sg-free {
  background: var(--accent);
  color: var(--on-accent);
}
.sg-sw {
  display: inline-flex;
  gap: 4px;
}
.sg-sw i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.sg-picks th[scope='row'] {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .sg-picks th[scope='row'] {
    white-space: normal;
  }
}
.sg-picks a,
.sg-intro p a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
