/* ==================================================
   WESTERN SHORT STORIES GUIDE (/western-short-stories/)
   Loaded after books-catalog.css and open-stories-catalog.css,
   which supply the hero, story rows, and guide panel. This file
   adds only the featured story and the group intros.
================================================== */

/* ---------- Featured story ---------- */

body.light-shell .wg-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 32px 48px;
  margin: 0 0 56px;
  padding: 40px 44px;
  border-radius: var(--cat-radius);
  background: var(--ls-ink);
  scroll-margin-top: 24px;
}

body.light-shell .wg-feature .cat-kicker {
  color: #d6a173;
}

body.light-shell .wg-feature h2 {
  margin: 0 0 6px;
  color: #f6f0e4;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

body.light-shell .wg-feature-meta {
  margin: 0 0 16px;
  color: #bfae96;
  font-family: var(--cat-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

body.light-shell .wg-feature-body > p:not(.cat-kicker):not(.wg-feature-meta) {
  max-width: 34rem;
  margin: 0;
  color: #d9cbb7;
  line-height: 1.7;
}

body.light-shell .wg-feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
}

body.light-shell .wg-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #efe6d4;
  border-radius: 3px;
  background: #efe6d4;
  color: var(--ls-ink);
  font-family: var(--cat-sans);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

body.light-shell .wg-btn:hover,
body.light-shell .wg-btn:focus-visible {
  border-color: #d6a173;
  background: #d6a173;
  color: var(--ls-ink);
}

body.light-shell .wg-feature-buy {
  margin: 0;
  color: #bfae96;
  font-family: var(--cat-sans);
  font-size: 0.84rem;
}

body.light-shell .wg-feature-buy a {
  color: #efe6d4;
  text-decoration: underline;
  text-decoration-color: rgba(239, 230, 212, 0.4);
  text-underline-offset: 3px;
}

body.light-shell .wg-feature-buy a:hover {
  text-decoration-color: #efe6d4;
}

body.light-shell .wg-feature-cover {
  display: block;
  justify-self: end;
  width: 100%;
  max-width: 220px;
}

body.light-shell .wg-feature-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

/* ---------- Groups ---------- */

body.light-shell .wg-group {
  scroll-margin-top: 24px;
}

body.light-shell .wg-group .cat-section-head {
  margin-bottom: 8px;
}

body.light-shell .wg-group-intro {
  max-width: 40rem;
  margin: 0 0 8px;
  color: var(--ls-muted);
  line-height: 1.65;
}

/* The form cards aren't links, so no hover lift. */
body.light-shell .western-guide div.cat-guide-card {
  cursor: default;
}

body.light-shell .western-guide div.cat-guide-card:hover {
  transform: none;
}

body.light-shell .western-guide .os-note a {
  color: var(--ls-link);
}

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  body.light-shell .wg-feature {
    grid-template-columns: 1fr;
    padding: 30px 22px;
  }

  body.light-shell .wg-feature-cover {
    order: -1;
    justify-self: center;
    max-width: 170px;
  }
}

/* ---------- Prose section (free stories page) ---------- */

body.light-shell .wg-prose {
  max-width: 44rem;
  margin: 0 auto 48px;
  padding: 8px 0 0;
  text-align: left;
}

body.light-shell .wg-prose h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
}

body.light-shell .wg-prose p:not(.cat-kicker) {
  margin: 0 0 14px;
  color: var(--ls-ink-soft);
  line-height: 1.75;
}

body.light-shell .wg-moods {
  scroll-margin-top: 24px;
}

/* ---------- Essay (quiet Western fiction page) ---------- */

body.light-shell .wg-essay {
  margin-bottom: 56px;
  scroll-margin-top: 24px;
}

body.light-shell .wg-essay p:not(.cat-kicker) {
  font-size: 1.08rem;
  line-height: 1.85;
}

body.light-shell .wg-essay .wg-essay-open {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ls-ink);
  line-height: 1.6;
}

body.light-shell .wg-closing {
  max-width: 36rem;
  margin: 8px auto 56px;
  padding: 0 16px;
  border: 0;
  text-align: center;
}

body.light-shell .wg-closing p {
  margin: 0 0 10px;
  color: var(--ls-ink-soft);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
}

body.light-shell .wg-closing p:last-child {
  color: var(--ls-ink);
}

/* A group with a single story (the reader's guide) uses one wider column
   instead of leaving the second column empty. */
body.light-shell .wg-group .os-list:has(> .os-row:only-child) {
  grid-template-columns: 1fr;
  max-width: 620px;
}
