/* Styles for the parts of the Dosti site that only exist under the CMS.

   The mock-up in /dosti-website was one fixed page: it had no prose section, no CTA band, no
   no-JavaScript fallbacks, and its enquiry form never reported a server result. All of that arrives
   with the backoffice - an author can build a page out of prose alone - so it lives here rather than
   in sections.css, which stays a faithful copy of the mock-up's own stylesheet.

   Loaded after tokens.css, so every value below comes from the same palette. */

/* ---- Prose section ---------------------------------------------------------------------- */
.d-sec--prose { background: var(--cream); color: var(--ink); padding: clamp(64px, 9vw, 140px) var(--gutter); }
.d-sec--prose .d-wrap { margin-inline: auto; }
.d-sec--prose.d-sec--narrow .d-wrap { max-width: 68ch; }
.d-sec--prose.d-sec--wide .d-wrap { max-width: 1100px; }
.d-sec--prose.d-sec--center { text-align: center; }
.d-sec--prose.d-sec--center .d-wrap { margin-inline: auto; }

.d-prose__h { font: 800 clamp(28px, 3.6vw, 52px)/1.04 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; margin: 0 0 .6em; }
.d-prose { font: 400 clamp(16px, 1.12vw, 18px)/1.7 var(--font-body); color: var(--muted); }
.d-prose > * + * { margin-top: 1em; }
.d-prose h2, .d-prose h3, .d-prose h4 { color: var(--ink); font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; line-height: 1.12; margin-top: 1.8em; }
.d-prose h2 { font-size: clamp(22px, 2.3vw, 32px); }
.d-prose h3 { font-size: clamp(19px, 1.8vw, 24px); }
.d-prose h4 { font-size: clamp(17px, 1.4vw, 20px); }
.d-prose strong { color: var(--ink); font-weight: 700; }
.d-prose a { color: var(--forest-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.d-prose a:hover, .d-prose a:focus-visible { color: var(--red); }
.d-prose ul, .d-prose ol { padding-left: 1.3em; }
.d-prose li + li { margin-top: .4em; }
.d-prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 3px solid var(--lime); font-size: 1.06em; color: var(--ink); }
.d-prose table { width: 100%; border-collapse: collapse; font-size: .95em; }
.d-prose th, .d-prose td { padding: 10px 12px; border-bottom: 1px solid rgba(23, 42, 30, .14); text-align: left; }
.d-prose th { color: var(--ink); font-weight: 700; }
.d-prose img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* ---- CTA band --------------------------------------------------------------------------- */
.d-sec--band { position: relative; background: var(--forest-900); color: var(--cream); padding: clamp(52px, 7vw, 108px) var(--gutter); overflow: hidden; }
/* The background picture is optional, so it is a custom property rather than a second rule. */
.d-sec--band::before { content: ""; position: absolute; inset: 0; background-image: var(--band-img, none); background-size: cover; background-position: center; opacity: .3; }
.d-sec--band > .d-wrap { position: relative; max-width: 1200px; margin-inline: auto; }
.d-band { display: grid; gap: clamp(22px, 3vw, 48px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .d-band { grid-template-columns: 1.4fr auto; } }
.d-band__h { font: 800 clamp(26px, 3.4vw, 48px)/1.05 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; margin: 0; }
.d-band__p { margin: .7em 0 0; max-width: 56ch; font: 400 clamp(15px, 1.05vw, 17px)/1.65 var(--font-body); color: rgba(245, 242, 230, .82); }
.d-band__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---- Enquiry form: honeypot and server result -------------------------------------------- */
/* Off-screen rather than display:none - a bot that skips hidden fields is exactly what this is for,
   and screen readers never reach it because the wrapper is aria-hidden. */
.enquiry__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__opt { font-weight: 400; opacity: .6; }
.enquiry__result { margin-top: 14px; padding: 13px 15px; border-radius: var(--radius); font: 400 14.5px/1.55 var(--font-body); border-left: 3px solid var(--muted); background: rgba(23, 42, 30, .06); color: var(--ink); }
.enquiry__result.is-ok { border-left-color: var(--forest-700); background: rgba(30, 90, 47, .1); }
.enquiry__result.is-error { border-left-color: var(--red); background: rgba(169, 43, 39, .08); }
.enquiry__result a { color: var(--forest-700); text-decoration: underline; }
.enquiry[aria-busy="true"] { opacity: .72; pointer-events: none; }

/* ---- No-JavaScript fallbacks -------------------------------------------------------------
   The scroll-driven scenes build themselves in JavaScript, so their copy would otherwise simply be
   absent. These lists are inside <noscript>, so they only ever render when there is no JavaScript at
   all - the reduced-motion and GSAP-failure paths are handled by html.static in sections.css. */
.fz-static, .process__static, .lineup-static { list-style: none; margin: 0; padding: clamp(40px, 6vw, 90px) var(--gutter); display: grid; gap: 28px; }
.fz-static, .process__static { background: var(--forest-950); color: var(--cream); }
.fz-static small, .process__static small { display: block; font: 700 11px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--lime); margin-bottom: 8px; }
.fz-static h3, .process__static h3 { font: 800 clamp(20px, 2.4vw, 30px)/1.1 var(--font-display); text-transform: uppercase; margin: 0 0 .4em; }
.fz-static p, .process__static p { margin: 0; max-width: 60ch; color: rgba(245, 242, 230, .8); font: 400 16px/1.65 var(--font-body); }
.lineup-static { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); text-align: center; color: var(--ink); }
.lineup-static img { display: block; margin: 0 auto 10px; height: 180px; width: auto; }
.lineup-static b { display: block; font: 800 18px/1.2 var(--font-display); text-transform: uppercase; }
.lineup-static span { font: 400 13px/1.4 var(--font-body); color: var(--muted); }
