/* Crisis Aid Toolkit 2: design tokens and the parts every section shares.
 * Colours come from the logo (blue #3269a6, gold #dda94f → #f6db81). Section widgets carry the
 * root class `cas` plus their own; rules are written `.cas .x` (0,2,0) so they beat Hello's and
 * Bootstrap's element and class resets (SkyDonate loads Bootstrap on every page). */
:root {
	--ca-ink: oklch(0.22 0.04 258);
	--ca-navy: oklch(0.27 0.075 258);
	--ca-navy-2: oklch(0.32 0.085 258);
	/* brand blue #0c5eba (client, 2 Nov 2026): the main colour for panels, primary buttons and links;
	   navy stays for text, the top bar and the footer */
	--ca-blue: #0c5eba;
	--ca-blue-dk: #094c97;
	--ca-deep: #082f5e;      /* emergency appeal hero */
	--ca-blue-50: oklch(0.965 0.015 250);
	--ca-gold: oklch(0.78 0.12 78);
	--ca-gold-hi: oklch(0.86 0.11 85);
	--ca-gold-ink: oklch(0.28 0.05 70);
	--ca-red: oklch(0.52 0.19 25);
	--ca-line: oklch(0.9 0.012 255);
	--ca-field: oklch(0.82 0.02 255);
	--ca-muted: oklch(0.45 0.025 258);

	--ca-display: "Figtree", system-ui, sans-serif;
	--ca-body: "Figtree", system-ui, sans-serif;

	--ca-s-1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
	--ca-s0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
	--ca-s1: clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem);
	--ca-s2: clamp(1.4rem, 1.25rem + 0.7vw, 1.8rem);
	--ca-s3: clamp(1.85rem, 1.5rem + 1.5vw, 2.75rem);
	--ca-s4: clamp(2.5rem, 1.7rem + 3.6vw, 5rem);

	--ca-wrap: 1240px;
	--ca-gut: clamp(16px, 4vw, 40px);
	--ca-sec: clamp(56px, 7vw, 104px);
	--ca-r: 10px;
	--ca-r-lg: 18px;

	--ca-ease: cubic-bezier(.2, .7, .2, 1);
	--ca-fast: 160ms;
	--ca-slow: 1100ms;
}

body.ca-site {
	margin: 0;
	font-family: var(--ca-body);
	font-size: var(--ca-s0);
	line-height: 1.6;
	color: var(--ca-ink);
	background: #fff;
	-webkit-text-size-adjust: 100%;
}
body.ca-site h1, body.ca-site h2, body.ca-site h3, body.ca-site h4 { font-family: var(--ca-display); letter-spacing: -0.02em; }
body.ca-site a { color: var(--ca-blue); }
body.ca-site :focus-visible { outline: 3px solid var(--ca-gold); outline-offset: 2px; }
html { scroll-padding-top: 90px; }
/* old page content (wide dividers, negative margins) never makes the page scroll sideways */
body.ca-site .elementor:not(.elementor-edit-area) { overflow-x: clip; }
/* old pages' own text and heading widgets carry per-widget fonts (Roboto, Red Hat Display) and 14–15px
 * text: the site's typefaces and body size win everywhere */
body.ca-site .elementor-widget-text-editor, body.ca-site .elementor-widget-text-editor :is(p, li, span, strong, em, a) { font-family: var(--ca-body) !important; }
body.ca-site .elementor-widget-text-editor { font-size: var(--ca-s0) !important; line-height: 1.7 !important; }
body.ca-site .ca-measure > .elementor-widget-container { max-width: 76ch; margin-inline: auto; }
body.ca-site .elementor-widget-heading .elementor-heading-title { font-family: var(--ca-display) !important; letter-spacing: -0.02em; text-transform: none !important; }

/* Section root */
.cas { font-family: var(--ca-body); color: var(--ca-ink); line-height: 1.6; }
.cas *, .cas *::before, .cas *::after { box-sizing: border-box; }
.cas img { max-width: 100%; height: auto; display: block; }
.cas h1, .cas h2, .cas h3, .cas h4 { font-family: var(--ca-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
.cas p { margin: 0; }
/* the old site's global CSS capitalises buttons and labels; the design is sentence case */
.cas, .cas * { text-transform: none; }
.cas ul, .cas ol { margin: 0; }
.cas button, .cas input, .cas select { font: inherit; color: inherit; }
.cas .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cas .wrap { width: 100%; max-width: calc(var(--ca-wrap) + var(--ca-gut) * 2); margin: 0 auto; padding: 0 var(--ca-gut); }
.cas.sec, .cas .sec { padding: var(--ca-sec) 0; }
.cas .h2 { font-size: var(--ca-s3); font-weight: 800; color: var(--ca-navy); }
.cas .lede { font-size: var(--ca-s1); line-height: 1.5; }
.cas .muted { color: var(--ca-muted); }
.cas .link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--ca-gold); color: var(--ca-navy); }
.cas .link:hover { text-decoration-color: currentColor; }
.cas .link--light { color: #fff; }
.cas .stars { color: var(--ca-gold); letter-spacing: 2px; }

/* Breadcrumb (appeal, giving, news and list pages) */
.cas .apl-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--ca-muted); }
.cas .apl-crumbs a { color: var(--ca-muted); text-decoration: none; }
.cas .apl-crumbs a:hover { color: var(--ca-blue); text-decoration: underline; }
.cas .apl-crumbs span[aria-hidden] { opacity: .5; }

/* The toolkit's own page templates run full width (Hello caps .site-main) */
main.site-main.cas { max-width: none; width: 100%; margin: 0; padding-left: 0; padding-right: 0; }

/* Tones */
.cas--mist { background: var(--ca-blue-50); }
.cas--navy { background: var(--ca-navy); color: #fff; }
.cas--navy .h2 { color: #fff; }

/* Buttons */
.cas .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-family: var(--ca-body); font-weight: 700; font-size: 0.97rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color var(--ca-fast), color var(--ca-fast), border-color var(--ca-fast); white-space: nowrap; box-shadow: none; }
.cas .btn--lg { min-height: 52px; padding: 0 28px; font-size: 1.03rem; }
.cas .btn--gold { background: var(--ca-gold); color: var(--ca-gold-ink); }
.cas .btn--gold:hover { background: var(--ca-gold-hi); color: var(--ca-gold-ink); }
/* --navy kept as a name for saved widget settings; both are the brand blue now */
.cas :is(.btn--navy, .btn--blue) { background: var(--ca-blue); color: #fff; }
.cas :is(.btn--navy, .btn--blue):hover { background: var(--ca-blue-dk); color: #fff; }
.cas .btn--glass { background: rgb(255 255 255 / .12); color: #fff; border-color: rgb(255 255 255 / .55); backdrop-filter: blur(6px); }
.cas .btn--glass:hover { background: rgb(255 255 255 / .22); color: #fff; }
.cas .btn--line { border-color: var(--ca-navy); color: var(--ca-navy); background: transparent; }
.cas .btn--line:hover { background: var(--ca-navy); color: #fff; }
.cas .btn--line-light { border-color: rgb(255 255 255 / .6); color: #fff; background: transparent; }
.cas .btn--line-light:hover { border-color: #fff; color: #fff; }
.cas .btn.is-busy { opacity: .7; cursor: progress; }

/* Editor hint (empty widget) */
.cas-hint { padding: 16px; border: 1px dashed var(--ca-field); border-radius: var(--ca-r); color: var(--ca-muted); font: 14px/1.4 var(--ca-body); }

@media (max-width: 720px) {
	html { scroll-padding-top: 70px; }
}
/* SkyDonate's Mini Cart (the basket that slides in on every add) in the Crisis Aid look:
   gold Donate (gold is only ever the donate action), add-ons that wrap instead of cutting off */
.skd-mc-panel { font-family: var(--ca-body); }
.skd-mc-panel :is(.skd-mc-title, .skd-mc-total-amt) { font-family: var(--ca-display); }
.skd-mc-panel .skd-mc-donate { background: var(--ca-gold) !important; color: var(--ca-gold-ink) !important; box-shadow: none !important; }
.skd-mc-panel .skd-mc-donate:hover { background: var(--ca-gold-hi) !important; }
.skd-mc-panel .skd-mc-addons-row { flex-wrap: wrap; overflow: visible; }
.skd-mc-panel .skd-mc-addon { flex: 1 1 100%; min-width: 0; white-space: normal; }
.skd-mc-panel .skd-mc-addon-title { white-space: normal; }
.skd-mc-panel .skd-mc-addons-label { letter-spacing: 0; text-transform: none; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
	.cas *, .cas *::before, .cas *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* One typeface everywhere: old content set its own (inline font-family, Inter/Roboto in HTML blocks, the
   system stack in WPForms and GiveWP's on-page parts) — the site's fonts win (QA 24 Nov 2026). */
body.ca-site main [style*="font-family"],
body.ca-site main [style*="font-family"] * { font-family: var(--ca-body) !important; }
body.ca-site .elementor-widget-html :is(p, li, span, a, td, th, strong, em, b, i, label, small, div, blockquote, button) { font-family: var(--ca-body) !important; }
body.ca-site .elementor-widget-html :is(h1, h2, h3, h4, h5, h6) { font-family: var(--ca-display) !important; }
body.ca-site :is(.wpforms-container, .give-form-wrap, .give-form, .give-embed-form-wrapper) :is(input, select, textarea, label, button, p, span, div, legend, small) { font-family: var(--ca-body) !important; }
/* Sky Prayer's masjid pages and SkyDonate's form blocks print their own Inter in inline <style> */
body.ca-site.single-prayer_city main :is(p, li, span, a, td, th, strong, em, label, small, div, button, input, select),
body.ca-site .skf-widget, body.ca-site .skf-widget :is(p, li, span, a, td, th, strong, em, label, small, div, button, input, select) { font-family: var(--ca-body) !important; }
body.ca-site.single-prayer_city main :is(h1, h2, h3, h4) { font-family: var(--ca-display) !important; }
/* Every dropdown shows its arrow (some old forms and the checkout title had none): one chevron for all
   single selects; Select2 / Choices.js boxes keep their own (QA 25 Nov 2026) */
body.ca-site select:not([multiple]):not([size]):not(.select2-hidden-accessible):not(.choices__input) {
	-webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231c4384' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 12px 8px !important;
	padding-right: 38px !important;
}
body.ca-site select:not([multiple]):not([size])::-ms-expand { display: none; }
body.ca-site :is([class*="elementor-widget-sky-prayer"], [class*="elementor-widget-sky_prayer"]) :is(p, li, span, a, td, th, strong, em, label, small, div, button, input, select) { font-family: var(--ca-body) !important; }

/* phones: small text links get a finger-sized tap area (an invisible margin round the link, the
   layout does not move) — top-bar phone number, crumbs, appeal card titles, footer phone/email,
   fundraiser crumbs */
@media (max-width: 720px) {
	body.ca-site :is(.cas .hd__toplinks a, .cas .apl-crumbs a, .cas .ap-card__title a, .cas .ft__about p a, .skdp-crumb a) { position: relative; }
	body.ca-site :is(.cas .hd__toplinks a, .cas .apl-crumbs a, .cas .ap-card__title a, .cas .ft__about p a, .skdp-crumb a)::after { content: ""; position: absolute; inset: -10px -4px; }
	body.ca-site .skdp-more { min-height: 40px; }
}
