/*
 * WordPress-specific additions. site.css (the original stylesheet) is never edited;
 * everything that differs from the static site lives here.
 */

/* 1. Sticky header on inner pages: stays in the flow (no content jump) and sticks to the top. */
.site-header.inner-header,
.site-header.inner-header.is-scrolled {
	position: sticky;
	top: 0;
}

/* 2. Admin bar offsets (logged-in editors only). */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media screen and (max-width: 600px) {
	/* The admin bar scrolls away on small screens. */
	.admin-bar .site-header.is-scrolled,
	.admin-bar .site-header.inner-header { top: 0; }
}

/* 3. Mobile drawer: respect device safe areas (notches). */
@media (max-width: 900px) {
	.site-nav { padding-top: max(112px, calc(env(safe-area-inset-top) + 96px)) !important; padding-bottom: max(42px, env(safe-area-inset-bottom)) !important; }
}

/* 4. Anchor targets are not hidden under the sticky header. */
[id] { scroll-margin-top: 96px; }

/* 5. Grids with fewer filled cards than designed tighten to the visible count (desktop). */
@media (min-width: 901px) {
	.uplift-fewer { grid-template-columns: repeat(var(--uplift-count), minmax(0, 1fr)) !important; }
}

/* 6. Generic pages (Privacy, Terms …) written in the block editor. */
.uplift-prose { max-width: 820px; margin: 0 auto; color: var(--body); font: 400 17px/1.7 var(--sans); }
.uplift-prose h2, .uplift-prose h3 { margin: 1.6em 0 .5em; color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: 1.15; }
.uplift-prose h2 { font-size: 34px; }
.uplift-prose h3 { font-size: 26px; }
.uplift-prose p, .uplift-prose ul, .uplift-prose ol { margin: 0 0 1em; }
.uplift-prose a { color: var(--gold-deep); text-decoration: underline; }
.uplift-prose img { max-width: 100%; height: auto; }

/* 7. Founder biography (rich text) keeps the original spacing. */
.founder-copy .uplift-rich > *:first-child { margin-top: 0; }

/* 8. Accessibility helper used by WordPress core output. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* 9. Editor-only preview notice on programmes whose detail page is off. */
.uplift-preview-note { position: relative; z-index: 5; padding: 10px 4.2%; background: var(--gold); color: #111; font: 600 13px/1.4 var(--sans); text-align: center; }

/* 10. Testimonial (template part, not placed until a section is designed). */
.uplift-testimonial { margin: 0; }
.uplift-testimonial blockquote { margin: 0 0 12px; font: 22px/1.35 var(--serif); }
.uplift-testimonial figcaption span { display: block; color: var(--gold-deep); font-size: 14px; }
.uplift-testimonial__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

/* 11. Client edit (2026-11-25): gold ribbon backgrounds removed. The wave strips are no longer
   output by the templates; the AI customisation card keeps its dark gradient without the image. */
.ai-custom { background: linear-gradient(145deg, #080907, #15130d); }
.dark-wave { display: none; }
