/*
 * Sanctuary pages that mirror the app (Today, Rituals, Journeys, My practice,
 * guides): one narrow reading column on the site's forest palette, with
 * cards, rows, chips and forms shaped like the app's.
 */
.sp-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 104px 20px 120px;
  display: grid;
  gap: 22px;
  color: var(--cream);
}
.sp-page h1 { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.1; margin: 0; }
.sp-page h2 { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.6rem; margin: 0; }
.sp-page h3 { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.3rem; margin: 0; }
.sp-page p { margin: 0; line-height: 1.6; }
.sp-eyebrow { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.sp-muted { color: var(--muted); }
.sp-caption { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.sp-gold { color: var(--gold); }
.sp-back { color: var(--gold); text-decoration: none; font-size: 0.95rem; }
.sp-back:hover, .sp-back:focus-visible { text-decoration: underline; }
.sp-section { display: grid; gap: 12px; }
.sp-section > .sp-label { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.sp-card {
  background: rgba(38, 61, 46, 0.42);
  border: 1px solid rgba(226, 195, 109, 0.24);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
}
.sp-card--gold { border-color: rgba(226, 195, 109, 0.6); background: rgba(185, 160, 93, 0.12); }
.sp-list { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.sp-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--cream); text-align: left; text-decoration: none; font: inherit; cursor: pointer;
}
.sp-row:last-child { border-bottom: 0; }
.sp-row:hover, .sp-row:focus-visible { background: rgba(185, 160, 93, 0.1); outline: none; }
.sp-row__text { flex: 1; display: grid; gap: 2px; }
.sp-row__title { font-weight: 600; }
.sp-row__detail { color: var(--muted); font-size: 0.92rem; }
.sp-row__chevron { color: var(--gold); }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chip {
  border: 1px solid rgba(226, 195, 109, 0.4); border-radius: 999px; padding: 6px 14px;
  background: transparent; color: var(--cream); font: inherit; font-size: 0.92rem; cursor: pointer; text-decoration: none;
}
.sp-chip[aria-pressed="true"], .sp-chip.is-active { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.sp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-field { display: grid; gap: 6px; }
.sp-field label { font-size: 0.85rem; color: var(--muted); }
.sp-field input, .sp-field textarea, .sp-field select {
  background: rgba(17, 21, 18, 0.7); color: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font: inherit;
}
.sp-field textarea { min-height: 96px; resize: vertical; }
.sp-details { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.sp-details > summary { cursor: pointer; font-weight: 600; }
.sp-details[open] > summary { margin-bottom: 10px; }
.sp-notice { border-left: 2px solid var(--gold); padding-left: 14px; color: var(--muted); }
.sp-empty { color: var(--muted); font-style: italic; }
.sp-grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 700px) {
  .sp-page { padding-top: 84px; padding-bottom: 110px; }
}
/* styles.css caps h1/h2 widths for the home page's hero; these pages use the full column. */
.sp-page h1, .sp-page h2, .sp-page h3, [data-page-root] h1, [data-page-root] h2 { max-width: none; }
