/* Study Edition product pages (scripts/build_study_pages.py) */
.st-main h2 { margin-top: 2.2rem; }
.st-hero {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}
.st-cover {
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 14px 34px rgba(26, 58, 46, 0.30), 0 2px 6px rgba(0, 0, 0, 0.15);
}
.st-kicker {
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: 0.2rem;
}
.st-hero h1 { margin: 0 0 0.2rem; line-height: 1.15; }
.st-sub { font-style: italic; color: var(--color-text-muted); margin-bottom: 1rem; }
.st-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.st-facts li {
  padding: 0.35rem 0.8rem;
  background: #fff;
  border: 1px solid var(--color-cream-dark);
  border-radius: 999px;
  font-size: 0.95rem;
}
.st-facts strong { color: var(--color-dark-green); }
.st-price-line { margin: 1.2rem 0 0.6rem; }
.st-buy {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: var(--color-dark-green);
  color: var(--color-cream);
  text-decoration: none;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 1.15rem;
  border-radius: 3px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(26, 58, 46, 0.25);
}
.st-buy:hover { background: #24503f; color: #fff; }
.st-buy--soon { background: var(--color-cream-dark); color: var(--color-text-muted); cursor: default; }
.st-format { font-size: 0.95rem; color: var(--color-text-muted); }

.st-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 0.8rem;
}
.st-shot { text-decoration: none; color: var(--color-text-muted); font-size: 0.9rem; font-style: italic; }
.st-shot img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0.35rem;
  border: 1px solid var(--color-cream-dark);
  box-shadow: 0 6px 16px rgba(26, 58, 46, 0.14);
  transition: transform 0.15s;
}
.st-shot:hover img { transform: translateY(-3px); }

.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.st-list { padding-left: 1.2rem; }
.st-list li { margin-bottom: 0.4rem; }
.st-toc { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.st-toc li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; border-bottom: 1px dotted var(--color-cream-dark); }
.st-pg { color: var(--color-text-muted); white-space: nowrap; }

.st-complete {
  margin: 2.6rem 0 1rem;
  padding: 1.6rem;
  background: var(--color-dark-green);
  color: var(--color-cream);
  border: 1px solid var(--color-gold);
  border-radius: 4px;
}
.st-complete h2 { margin-top: 0; color: var(--color-cream); }
.st-complete .st-kicker { color: var(--color-gold-bright); }

.st-faq h3 { margin-top: 1.1rem; color: var(--color-dark-green); }

.st-lightbox {
  position: fixed; inset: 0; z-index: 130;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; background: rgba(16, 32, 26, 0.88);
}
.st-lightbox[hidden] { display: none; }
.st-lightbox img { max-width: 100%; max-height: calc(100vh - 90px); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.st-lightbox p { color: #f4f1e8; font-style: italic; margin-top: 0.6rem; }
.st-lightbox button {
  position: absolute; top: 10px; right: 14px; border: none; background: none;
  color: #f4f1e8; font-size: 2.2rem; cursor: pointer;
}

@media (max-width: 760px) {
  .st-hero { grid-template-columns: 1fr; }
  .st-cover { max-width: 260px; }
  .st-gallery { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .st-two { grid-template-columns: 1fr; }
}
.st-buy--light { background: #fff; color: var(--color-dark-green); }
.st-buy--light:hover { background: var(--color-cream); color: var(--color-dark-green); }

/* Collection page: grid of the ten books */
.st-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; margin-top: 1rem; }
.st-card { display: flex; flex-direction: column; gap: 0.15rem; text-decoration: none; color: var(--color-text-dark); font-size: 0.95rem; line-height: 1.3; }
.st-card img { width: 100%; height: auto; border-radius: 2px; box-shadow: 0 8px 20px rgba(26, 58, 46, 0.22); margin-bottom: 0.5rem; transition: transform 0.15s; }
.st-card:hover img { transform: translateY(-4px); }
.st-card-n { font-size: 0.8rem; font-variant: small-caps; letter-spacing: 0.06em; color: var(--color-gold); }
@media (max-width: 900px) { .st-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .st-cards { grid-template-columns: repeat(2, 1fr); } }
