/* Program sales pages (tools/build-program-pages.mjs). Loads AFTER ff.css + reset.css:
   the Generational Release page's own inline rules, plus the switcher, photo strips and phase cards. */

/* ---- from the Generational Release page ---- */
.hero-copy-col .hero-body + .hero-body { margin-top: 1.1rem; }
.hero-copy-col .dec-cta { margin: 2rem 0 0; text-align: left; }
.hero-copy-col .cta-note { text-align: left; }
.nav-cta { text-decoration: none; }
.section-white h3, .section-cream h3 { font-family: var(--serif); font-size: var(--t-title); font-weight: var(--w-regular); color: var(--cosmic-night); line-height: 1.2; margin: 2.75rem 0 0.75rem; }
.dec-cta { margin: 2.25rem 0 1.5rem; text-align: center; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-copy-col .dec-cta { justify-content: flex-start; }
.dec-cta .btn-gold, .dec-cta .btn-ghost { font-size: 1rem; padding: 1.2rem 2.25rem; text-decoration: none; }
.dec-sign { font-family: var(--serif); font-size: var(--t-lead); margin-top: 2rem; }

/* ---- program switcher (under the nav, part of the sticky header) ---- */
.prog-switch {
  display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.7rem 1.5rem; background: var(--warm-cream);
  border-bottom: 1px solid var(--gold-border);
}
.prog-switch a {
  font-family: var(--sans); font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: var(--w-bold); color: var(--gold-deep); text-decoration: none;
  padding: 0.6rem 1.35rem; border: 1px solid var(--gold-border); background: var(--divine-white);
  transition: background 0.2s, color 0.2s, border-color 0.2s; text-align: center; line-height: 1.3;
}
.prog-switch a:hover { border-color: var(--gold); }
.prog-switch a.on { background: var(--gold-gradient); color: #fff; border-color: transparent; }

/* ---- opening section after the hero ---- */
.section-white p.lead, .section-cream p.lead { font-family: var(--serif); font-size: var(--t-lead); line-height: 1.5; color: var(--gold-deep); }

/* ---- lists ---- */
.gold-list { list-style: none; margin: 1.75rem 0; padding: 0; }
.gold-list li { position: relative; padding: 0 0 1.1rem 1.75rem; font-size: var(--t-body); line-height: 1.7; color: var(--cosmic-night); }
.gold-list li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---- phases (content tables) as cards ---- */
.phase-cards { display: grid; gap: 1.25rem; margin: 2rem 0; }
.phase-card { background: #fff; border: 1px solid var(--gold-border); border-top: 2px solid var(--gold); padding: 1.75rem 2rem; }
.section-white .phase-card { background: var(--warm-cream); }
.section-white p.phase-name, .section-cream p.phase-name { font-family: var(--serif); font-size: var(--t-title); color: var(--cosmic-night); line-height: 1.2; margin: 0 0 0.75rem; }
.section-white p.phase-label, .section-cream p.phase-label { font-family: var(--sans); font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); font-weight: var(--w-bold); margin: 1rem 0 0.35rem; }
.phase-card .phase-part:first-of-type p.phase-label { margin-top: 0; }
.phase-card p { margin-bottom: 0.5rem; }
.phase-name strong { font-weight: var(--w-medium); }

/* ---- price tables ---- */
.value-table td:first-child { font-weight: var(--w-regular); }
.value-table .final-row td, .value-table .final-row td:first-child, .value-table .final-row td:last-child { color: var(--gold-deep); border-top: none; padding-top: 0.75rem; }
.value-table .final-row td strong { color: var(--gold-deep); font-size: inherit; }
.value-table .total-row td strong { font-size: inherit; font-weight: var(--w-medium); }
.section-white p.fine, .section-cream p.fine { color: var(--smoke); }

/* ---- photo strips ---- */
.photo-strip { background: var(--divine-white); padding: 0 4rem; }
.photo-strip + section, section + .photo-strip { margin-top: 0; }
.photo-strip-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding: 0; transform: translateY(0); }
.photo-strip figure { margin: 0; }
.photo-strip img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; border: 1px solid var(--gold-border); box-shadow: 10px 10px 0 rgba(179,138,50,0.12); }
/* the strip sits between two sections: give it the colour of the one above + breathing room */
.section-cream + .photo-strip { background: linear-gradient(var(--warm-cream) 50%, var(--divine-white) 50%); }
.section-white + .photo-strip { background: linear-gradient(var(--divine-white) 50%, var(--warm-cream) 50%); }

/* ---- confirmation page ---- */
.ty-page .section-cream { min-height: 70vh; padding-top: 7rem; }
.ty-page .hero-eyebrow { justify-content: center; }
.ty-page footer { background: var(--warm-cream); }

@media (max-width: 900px) {
  .hero-copy-col .dec-cta, .hero-copy-col .cta-note { text-align: center; justify-content: center; }
  .photo-strip { padding: 0 1.5rem; }
  .photo-strip-inner { gap: 0.75rem; }
}
@media (max-width: 760px) {
  .dec-cta .btn-gold, .dec-cta .btn-ghost { display: block; width: 100%; text-align: center; letter-spacing: 0.08em; padding-left: 1rem; padding-right: 1rem; }
  .prog-switch { gap: 0.4rem; padding: 0.55rem 0.6rem; flex-wrap: nowrap; }
  .prog-switch a { flex: 1 1 0; font-size: 1rem; letter-spacing: 0.04em; padding: 0.5rem 0.35rem; }
  .phase-card { padding: 1.4rem 1.25rem; }
  .value-table th, .value-table td { padding-left: 0.4rem; padding-right: 0.4rem; }
  .value-table td:last-child { white-space: normal; }
  /* three photos become a swipeable row */
  .photo-strip-inner { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .photo-strip figure { flex: 0 0 78%; scroll-snap-align: center; }
}

/* reset.css sizes the event page's #join form; here #join is a full section */
section#join { max-width: none; margin: 0; }
/* phones: the two-row header scrolls away instead of covering a fifth of the screen */
@media (max-width: 760px) { .site-header { position: relative; } }
