/* ========== Content Sections — Public Rendering ==========
 * Reuses site-wide classes (.eyebrow, .lede, .approach__card, .faq-item,
 * .btn, .btn-primary, etc.) so dynamic sections match the home-page look.
 * Only styles specific to types not covered by the base stylesheet live here.
 */

.cs-root { position: relative; }
.cs-list { position: relative; }

.cs {
    padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}
.cs + .cs { padding-top: 0; }

/* Local section header — matches the home page's .approach__head:
 * centered, max-width 62rem, eyebrow-then-heading-then-lede. */
.cs__head {
    max-width: 62rem;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    text-align: center;
}
.cs__head .eyebrow { margin-bottom: 1.1rem; display: inline-block; }
.cs__h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    line-height: 1.12;
    color: var(--ink);
    margin: 0 auto;
    max-width: 30ch;
    letter-spacing: -0.01em;
}
.cs__head .lede {
    margin: 1rem auto 0;
    max-width: 60ch;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}
@media (max-width: 720px) {
    .cs__head { text-align: left; }
    .cs__h2, .cs__head .lede { margin-left: 0; margin-right: 0; }
}

.cs__body.prose {
    color: var(--ink-soft);
    line-height: 1.75;
    font-size: 1.02rem;
    max-width: none;
}
.cs__body.prose > * + * { margin-top: 0.9rem; }
.cs__body.prose p,
.cs__body.prose ul,
.cs__body.prose ol,
.cs__body.prose blockquote { max-width: none; }
.cs__body.prose h2, .cs__body.prose h3 {
    font-family: var(--font-serif); font-weight: 500;
    color: var(--ink); margin-top: 1.5rem;
    max-width: none;
}
.cs__body.prose ul, .cs__body.prose ol { padding-left: 1.4rem; }
.cs__body.prose li { margin: 0.35rem 0; }
.cs__body.prose a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cs__body.prose a:hover { color: var(--gold); }
.cs__body.prose img { max-width: 100%; height: auto; border-radius: 4px; margin: 1.25rem 0; }

/* ----- Image + Text ----- */
.cs--image-text .cs__grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}
.cs--image-text.cs--image-right .cs__grid-2 { direction: rtl; }
.cs--image-text.cs--image-right .cs__grid-2 > * { direction: ltr; }
.cs--image-text .cs__figure { margin: 0; }
.cs--image-text .cs__figure img { width: 100%; height: auto; border-radius: 4px; display: block; }
.cs--image-text .cs__figure-placeholder {
    aspect-ratio: 4/3;
    background: repeating-linear-gradient(45deg, #f1f5f9 0 8px, #e2e8f0 8px 16px);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 0.85rem;
}
.cs--image-text .cs__head {
    max-width: none;
    margin: 0 0 1.25rem;
    text-align: left;
}
.cs--image-text .cs__head .eyebrow { margin-bottom: 0.75rem; }
.cs--image-text .cs__h2 { margin: 0; max-width: none; }
.cs--image-text .cs__head .lede { margin: 0.75rem 0 0; max-width: none; }
@media (max-width: 720px) {
    .cs--image-text .cs__grid-2 { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ----- Quote ----- */
.cs--quote .cs__quote-eyebrow { display: block; margin-bottom: 1.5rem; }
.cs--quote .cs__quote {
    max-width: 820px;
    padding: 2rem 0 0;
    border-top: 1px solid var(--line);
    margin: 0;
}
.cs--quote .cs__quote p {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.35;
    color: var(--ink);
    margin: 0 0 1.25rem;
}
.cs--quote .cs__quote p::before { content: "\201C"; margin-right: 2px; color: var(--gold-bright); }
.cs--quote .cs__quote p::after { content: "\201D"; margin-left: 2px; color: var(--gold-bright); }
.cs--quote .cs__cite {
    display: flex; gap: 12px; align-items: baseline;
    font-size: 0.78rem; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.16em;
}
.cs--quote .cs__cite-author { color: var(--ink); font-weight: 600; }

/* ----- Card Grid (reuses .approach__card from style.css) -----
 * .approach section already sets padding + head styles. Only the column-count
 * modifier needs to override the site's default 3-up. */
.cs--card-grid { padding: 0; }
.cs__approach-grid.cs__approach-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.cs__approach-grid.cs__approach-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.cs__approach-grid.cs__approach-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.approach__image--placeholder {
    background: linear-gradient(135deg, #2a251d 0%, #1a1712 100%);
}
@media (max-width: 900px) {
    .cs__approach-grid--cols-3, .cs__approach-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .cs__approach-grid--cols-2, .cs__approach-grid--cols-3, .cs__approach-grid--cols-4 { grid-template-columns: 1fr; }
}

/* ----- Gallery ----- */
.cs__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.cs__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.cs__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.cs--gallery .cs__gallery { display: grid; gap: 1.25rem; }
.cs--gallery .cs__gallery-item { margin: 0; }
.cs--gallery .cs__gallery-link {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: var(--paper-alt);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.cs--gallery .cs__gallery-link:hover { transform: translateY(-3px); }
.cs--gallery .cs__gallery-item img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.cs--gallery .cs__gallery-link:hover img { transform: scale(1.04); }
.cs--gallery figcaption {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.55rem;
    letter-spacing: 0.02em;
}
@media (max-width: 900px) {
    .cs__grid--cols-3, .cs__grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .cs__grid--cols-2, .cs__grid--cols-3, .cs__grid--cols-4 { grid-template-columns: 1fr; }
}

/* ----- Stats ----- */
.cs--stats .cs__stats {
    list-style: none; padding: 1.5rem 0 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    border-top: 1px solid var(--line);
}
.cs--stats .cs__stats li { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 0.5rem; }
.cs--stats .cs__stats-number {
    font-family: var(--font-serif); font-weight: 500;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.02em;
}
.cs--stats .cs__stats-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ----- CTA Band (matches the site's dark cta-band; light variant recolours) ----- */
.cs--cta-band { padding: 0; }
.cs--cta-band .cs__cta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem;
    padding: clamp(2.5rem, 5vw, 3.5rem);
    border-radius: 4px;
    margin: clamp(2rem, 5vw, 3rem) auto;
}
.cs--cta-band.cs--cta-dark .cs__cta { background: var(--ink); color: var(--paper); }
.cs--cta-band.cs--cta-light .cs__cta { background: var(--paper-alt); color: var(--ink); }
.cs--cta-band .cs__cta-text { flex: 1 1 320px; text-align: left; }
.cs--cta-band .cs__cta-text .cs__h2 { max-width: none; margin: 0; }
.cs--cta-band .cs__cta-text > * + * { margin-top: 0.75rem; }
.cs--cta-band .cs__cta-text .eyebrow { color: var(--gold-bright); margin: 0; }
.cs--cta-band.cs--cta-light .cs__cta-text .eyebrow { color: var(--gold); }
.cs--cta-band .cs__cta-text .cs__h2 {
    color: inherit;
    margin: 0;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.cs--cta-band .cs__cta-text .lede { color: inherit; opacity: 0.85; margin: 0; }

/* ----- Accordion (reuses .faq / .faq-item) ----- */
.cs--accordion { padding: 0; }

/* ----- Hero Banner ----- */
.cs--hero-banner {
    position: relative; padding: clamp(5rem, 10vw, 7rem) 0; color: var(--paper);
    overflow: hidden;
    background: var(--ink);
    isolation: isolate;
}
.cs--hero-banner.cs--hero-has-image {
    background-image: var(--cs-hero-image);
    background-size: cover;
    background-position: center;
}
.cs--hero-banner .cs__hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(20, 17, 12, 0.35) 0%, rgba(20, 17, 12, 0.65) 55%, rgba(20, 17, 12, 0.88) 100%);
}
.cs--hero-banner .cs__hero { position: relative; z-index: 2; max-width: 720px; }
.cs--hero-banner .cs__eyebrow {
    color: var(--gold-bright);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 1rem;
    display: block;
}
.cs--hero-banner .cs__hero-heading {
    font-family: var(--font-serif); font-weight: 500;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.08;
    color: var(--paper);
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}
.cs--hero-banner .cs__hero-sub {
    color: rgba(251, 249, 245, 0.82);
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.55;
    max-width: 620px;
    margin: 0 0 1.75rem;
}

/* ----- Raw HTML ----- */
.cs--raw-html { padding: clamp(2rem, 4vw, 3rem) 0; }

/* ----- Unknown (admin-only warning) ----- */
.cs--unknown { padding: 30px 0; }
.cs__unknown {
    background: #fef3c7; border: 1px dashed #d4a017; color: #7c5b00;
    padding: 12px 16px; border-radius: 6px; font-size: 13px;
}
