/* Healing Los Angeles Together, V2.
 * Every value comes from theme.json presets (--wp--preset--*, --wp--custom--*).
 * Do not add hex values, font families or px font sizes here.
 */

:root {
	--hlat-ease: var(--wp--custom--motion--ease);
	--hlat-shadow-card: var(--wp--preset--shadow--card);
	--hlat-hero-text-shadow: 0 2px 2px rgba(6,26,51,.92), 0 8px 24px rgba(6,26,51,.58);
}

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { -webkit-font-smoothing: antialiased; }

:focus-visible { outline: 3px solid var(--wp--preset--color--blue); outline-offset: 2px; }
.has-navy-background-color :focus-visible,
.has-night-background-color :focus-visible { outline-color: var(--wp--preset--color--gold); }

/* ---------- type helpers ---------- */
.hlat-eyebrow {
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--wp--preset--color--blue);
}
.has-navy-background-color .hlat-eyebrow,
.has-night-background-color .hlat-eyebrow,
.hlat-hero .hlat-eyebrow { color: var(--wp--preset--color--gold); }
.hlat-tag {
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--tag);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue);
}
.hlat-stat { font-family: var(--wp--preset--font-family--mono); font-weight: 700; font-size: var(--wp--preset--font-size--stat); line-height: 1.1; }
.hlat-narrow { max-width: var(--wp--custom--container--narrow); margin-inline: auto; }
em, i, cite { font-style: normal; } /* V2: no italics anywhere */

/* ---------- program rules (56 x 4px above the program heading) ---------- */
.hlat-rule { display: block; width: 56px; height: 4px; border-radius: var(--wp--custom--radius--rule); margin: 0 0 14px; }
.hlat-rule--eat-manna { background: var(--wp--preset--color--program-eat-manna); }
.hlat-rule--healing-bridges { background: var(--wp--preset--color--program-healing-bridges); }
.hlat-rule--mercy-seat { background: var(--wp--preset--color--program-mercy-seat); }

/* ---------- buttons: gold (default), navy, outline, ghost on navy ---------- */
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: var(--wp--custom--control--height);
	transition: transform var(--wp--custom--motion--standard) var(--hlat-ease), box-shadow var(--wp--custom--motion--standard) var(--hlat-ease), background-color var(--wp--custom--motion--standard) var(--hlat-ease);
}
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: var(--wp--preset--shadow--menu); }
.wp-block-button.is-style-navy .wp-block-button__link { background: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); }
.wp-block-button.is-style-navy .wp-block-button__link:hover { background: var(--wp--preset--color--night); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border-color: var(--wp--preset--color--navy); color: var(--wp--preset--color--navy); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; border-color: var(--wp--preset--color--white); color: var(--wp--preset--color--white); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
	width: 100%; min-height: var(--wp--custom--control--height);
	border: 1px solid var(--wp--preset--color--navy); border-radius: var(--wp--custom--radius--field);
	background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink);
	padding: 0 14px; font: inherit; transition: box-shadow var(--wp--custom--motion--standard) var(--hlat-ease);
}
textarea { padding: 12px 14px; min-height: 120px; }
input:hover, select:hover, textarea:hover { box-shadow: 0 4px 12px rgba(9, 38, 74, 0.14); }
label { font-size: var(--wp--preset--font-size--small); font-weight: 600; color: var(--wp--preset--color--navy); }
.hlat-newsletter-form { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.hlat-newsletter-form button, .hlat-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: var(--wp--custom--control--height); padding: 0 24px;
	border: 2px solid var(--wp--preset--color--gold); border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink); font: 600 1rem/1 var(--wp--preset--font-family--body); cursor: pointer;
	transition: transform var(--wp--custom--motion--standard) var(--hlat-ease), box-shadow var(--wp--custom--motion--standard) var(--hlat-ease);
}
.hlat-newsletter-form button:hover, .hlat-btn:hover { transform: translateY(-2px); box-shadow: var(--wp--preset--shadow--menu); }

/* ---------- cards and photo frames ---------- */
.hlat-card {
	background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--wp--custom--radius--card); box-shadow: var(--hlat-shadow-card); overflow: hidden;
	transition: transform var(--wp--custom--motion--standard) var(--hlat-ease), box-shadow var(--wp--custom--motion--standard) var(--hlat-ease);
}
a.hlat-card:hover, .hlat-card.is-linked:hover { transform: translateY(-3px); box-shadow: var(--wp--preset--shadow--menu); }
.hlat-photo { position: relative; overflow: hidden; border-radius: var(--wp--custom--radius--frame); background: var(--wp--preset--color--mist); }
.hlat-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hlat-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--wp--preset--gradient--photo-wash); mix-blend-mode: soft-light; }
.hlat-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--wp--preset--color--ivory); opacity: 0.1; }
.wp-block-cover__video-background { object-fit: cover; }

/* ---------- mission-left layout (Columns: about 5 of 12 left, 7 of 12 right) ---------- */
.hlat-split { gap: 48px 64px; align-items: flex-start; }
.hlat-split > .wp-block-column:first-child { flex-basis: 38%; }
.hlat-split > .wp-block-column:last-child { flex-basis: 62%; }
@media (max-width: 781px) { .hlat-split > .wp-block-column { flex-basis: 100% !important; } }

/* ---------- hero: one tint per route, ends in solid navy, ivory line pattern at 50% ---------- */
.hlat-hero { position: relative; isolation: isolate; overflow: hidden; background-color: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); }
/* The tint is drawn by ::before; the block's own dim layer stays hidden (core paints it black). */
.hlat-hero > .wp-block-cover__background { display: none; }
.hlat-hero::after {
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.5;
	background: url("../img/hero-lines.svg") center / cover no-repeat;
}
.hlat-hero .wp-block-cover__inner-container { position: relative; z-index: 3; }
.hlat-hero h1, .hlat-hero p { color: var(--wp--preset--color--white); }
.hlat-hero--night { --hlat-tint: var(--wp--preset--gradient--hero-night); }
.hlat-hero--deep { --hlat-tint: var(--wp--preset--gradient--hero-deep); }
.hlat-hero--blue { --hlat-tint: var(--wp--preset--gradient--hero-blue); }
.hlat-hero--sky { --hlat-tint: var(--wp--preset--gradient--hero-sky); }
.hlat-hero--slate { --hlat-tint: var(--wp--preset--gradient--hero-slate); }
.hlat-hero--steel { --hlat-tint: var(--wp--preset--gradient--hero-steel); }
.hlat-hero--ocean { --hlat-tint: var(--wp--preset--gradient--hero-ocean); }
.hlat-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--hlat-tint, var(--wp--preset--gradient--hero-blue)); }

/* ---------- header, navigation ---------- */
.wp-block-navigation .wp-block-navigation-item__content { min-height: 44px; display: inline-flex; align-items: center; }
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content { font-weight: 700; border-bottom: 3px solid var(--wp--preset--color--gold); }
.wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--mist) !important; border-radius: 10px; box-shadow: var(--wp--preset--shadow--menu); }

/* ---------- selectable option tiles (sponsor, request, forms) ---------- */
.hlat-opt {
	display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; cursor: pointer; min-height: 72px;
	padding: 16px 18px; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--mist); border-radius: var(--wp--custom--radius--card);
	font: inherit; color: inherit;
	transition: transform var(--wp--custom--motion--standard) var(--hlat-ease), box-shadow var(--wp--custom--motion--standard) var(--hlat-ease), border-color var(--wp--custom--motion--standard) var(--hlat-ease);
}
.hlat-opt:hover { transform: translateY(-3px); box-shadow: var(--wp--preset--shadow--menu); border-color: var(--wp--preset--color--blue); }
.hlat-opt[aria-pressed="true"] { border: 2px solid var(--wp--preset--color--navy); padding: 15px 17px; box-shadow: var(--hlat-shadow-card); }
.hlat-opt .hlat-dot { width: 22px; height: 22px; flex: none; margin-top: 2px; border: 2px solid var(--wp--preset--color--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hlat-opt[aria-pressed="true"] .hlat-dot { background: var(--wp--preset--color--navy); }
.hlat-opt[aria-pressed="true"] .hlat-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--white); }
.hlat-opt.is-check .hlat-dot { border-radius: 6px; }
.hlat-opt.is-check[aria-pressed="true"] .hlat-dot::after { border-radius: 2px; }
.hlat-opt b { display: block; font: 600 1.125rem/1.25 var(--wp--preset--font-family--heading); color: var(--wp--preset--color--navy); }
.hlat-opt span.hlat-opt__d { display: block; margin-top: 4px; font-size: var(--wp--preset--font-size--small); line-height: 1.5; }
.hlat-chip {
	min-height: var(--wp--custom--control--height); padding: 0 20px; border: 2px solid var(--wp--preset--color--navy); border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--white); color: var(--wp--preset--color--navy); font: 600 1rem/1 var(--wp--preset--font-family--body); cursor: pointer;
	transition: transform var(--wp--custom--motion--standard) var(--hlat-ease), box-shadow var(--wp--custom--motion--standard) var(--hlat-ease), background var(--wp--custom--motion--standard) var(--hlat-ease);
}
.hlat-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(9, 38, 74, 0.18); }
.hlat-chip[aria-pressed="true"] { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); }

/* ---------- give form (assets/js/give-form.js renders into .hlat-give) ---------- */
.hlat-give { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--mist); border-radius: var(--wp--custom--radius--frame); box-shadow: 0 1px 3px rgba(9,38,74,.08), 0 12px 32px rgba(9,38,74,.10); padding: 32px; }
.hlat-give fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.hlat-give legend { padding: 0; margin: 0 0 12px; font: 600 var(--wp--preset--font-size--subhead)/1.25 var(--wp--preset--font-family--heading); color: var(--wp--preset--color--navy); }
.hlat-give__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--wp--preset--color--mist); border-radius: 12px; padding: 6px; margin: 0 0 24px; }
.hlat-give__tab { min-height: 48px; border: 0; border-radius: 8px; background: transparent; color: var(--wp--preset--color--navy); font: 600 1rem/1 var(--wp--preset--font-family--body); cursor: pointer; }
.hlat-give__tab[aria-pressed="true"] { background: var(--wp--preset--color--white); box-shadow: 0 1px 3px rgba(9,38,74,.18), 0 4px 12px rgba(9,38,74,.12); }
.hlat-give__grid { display: grid; gap: 12px; }
.hlat-give__chips { display: flex; flex-wrap: wrap; gap: 12px; }
.hlat-give__summary { background: var(--wp--preset--color--cream); border: 1px solid var(--wp--preset--color--mist); border-radius: 12px; padding: 14px 18px; margin: 0 0 16px; font-weight: 600; color: var(--wp--preset--color--navy); }
.hlat-give__go { display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: center; border: 2px solid var(--wp--preset--color--gold); border-radius: var(--wp--custom--radius--button); background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink); font: 600 1.125rem/1 var(--wp--preset--font-family--body); cursor: pointer; box-shadow: 0 2px 6px rgba(9,38,74,.14); transition: transform var(--wp--custom--motion--standard) var(--hlat-ease), box-shadow var(--wp--custom--motion--standard) var(--hlat-ease); text-decoration: none; }
.hlat-give__go:hover { transform: translateY(-2px); box-shadow: var(--wp--preset--shadow--menu); }
.hlat-give__fine { margin: 14px 0 0; font-size: var(--wp--preset--font-size--small); line-height: 1.5; }
.hlat-give iframe { width: 100%; min-height: 1040px; border: 0; border-radius: var(--wp--custom--radius--frame); }

/* ---------- events (CPT archive and shortcode) ---------- */
.hlat-events { display: grid; gap: 16px; padding: 0; list-style: none; }
.hlat-events li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.hlat-events__date { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--navy); }
.hlat-events__program { font-size: var(--wp--preset--font-size--tag); font-weight: 600; border-top: 4px solid var(--wp--preset--color--navy); padding-top: 4px; display: inline-block; }
.hlat-events__program[data-program="eat-manna"] { border-top-color: var(--wp--preset--color--program-eat-manna); }
.hlat-events__program[data-program="healing-bridges"] { border-top-color: var(--wp--preset--color--program-healing-bridges); }
.hlat-events__program[data-program="mercy-seat"] { border-top-color: var(--wp--preset--color--program-mercy-seat); }

/* ---------- cookie banner (assets/js/cookie-consent.js) ---------- */
.hlat-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100000; display: flex; justify-content: center; }
.hlat-cookie[hidden] { display: none; }
.hlat-cookie__panel { width: 100%; max-width: 960px; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--mist); border-radius: var(--wp--custom--radius--frame); box-shadow: 0 2px 6px rgba(9,38,74,.1), 0 18px 44px rgba(9,38,74,.22); padding: 24px; animation: hlat-in var(--wp--custom--motion--entrance) var(--hlat-ease); }
.hlat-cookie__row { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--wp--preset--color--mist); }
.hlat-cookie__sw { position: relative; width: 52px; height: 30px; flex: none; border: 2px solid var(--wp--preset--color--navy); border-radius: 999px; background: var(--wp--preset--color--white); cursor: pointer; }
.hlat-cookie__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--wp--preset--color--navy); transition: transform var(--wp--custom--motion--standard) var(--hlat-ease); }
.hlat-cookie__sw[aria-pressed="true"] { background: var(--wp--preset--color--navy); }
.hlat-cookie__sw[aria-pressed="true"]::after { transform: translateX(22px); background: var(--wp--preset--color--white); }
.hlat-cookie__sw[disabled] { opacity: 0.6; cursor: not-allowed; }
.hlat-cookie__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hlat-cookie__btn { min-height: var(--wp--custom--control--height); padding: 0 22px; border-radius: var(--wp--custom--radius--button); border: 2px solid; font: 600 1rem/1 var(--wp--preset--font-family--body); cursor: pointer; }
.hlat-cookie__btn--gold { background: var(--wp--preset--color--gold); border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink); }
.hlat-cookie__btn--navy { background: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); }
.hlat-cookie__btn--out { background: transparent; border-color: var(--wp--preset--color--navy); color: var(--wp--preset--color--navy); }
@keyframes hlat-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- legal pages ---------- */
.hlat-legal h2 { scroll-margin-top: 24px; margin-top: 2.5rem; }
.hlat-legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.hlat-legal th, .hlat-legal td { border: 1px solid var(--wp--preset--color--mist); padding: 10px 12px; text-align: left; vertical-align: top; background: var(--wp--preset--color--white); }
.hlat-legal th { background: var(--wp--preset--color--mist); color: var(--wp--preset--color--navy); }

/* ---------- page sections used by the page templates ---------- */
.hlat-rule--blue { background: var(--wp--preset--color--blue); }
.hlat-photo--top img { object-position: 50% 35%; }
.hlat-photo--upper img { object-position: 50% 40%; }
.hlat-photo--low img { object-position: 50% 55%; }
.wp-block-cover.hlat-hero { padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--30); }
/* Doubled class beats core's has-custom-content-position rule, which zeroes the margin. */
.wp-block-cover.hlat-hero.hlat-hero .wp-block-cover__inner-container { width: 100%; max-width: var(--wp--style--global--content-size); margin-inline: auto; }
.hlat-hero .wp-block-site-logo { margin-bottom: var(--wp--preset--spacing--40); }
.hlat-hero h1 { text-transform: capitalize; }
.hlat-hero .wp-block-button__link { text-transform: uppercase; letter-spacing: .055em; font-size: var(--wp--preset--font-size--small); }
.hlat-intro { margin-bottom: 0; }
.hlat-intro + * { margin-block-start: var(--wp--preset--spacing--50); }
.hlat-card { position: relative; height: 100%; }
.hlat-card > .hlat-card__photo { margin: var(--wp--preset--spacing--30) var(--wp--preset--spacing--30) 0; }
.hlat-card__body > * { margin-block: 0; }
.hlat-card__body > * + * { margin-block-start: var(--wp--preset--spacing--20); }
.hlat-card__body > .hlat-card__link { margin-block-start: var(--wp--preset--spacing--30); }
.hlat-card__link a { font-weight: 600; color: var(--wp--preset--color--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hlat-card.is-linked .hlat-card__link a::after, .hlat-card.is-linked .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.hlat-card .wp-block-post-terms a { text-decoration: none; }
.hlat-note { background: var(--wp--preset--color--cream); border: 1px solid var(--wp--preset--color--gold); border-radius: var(--wp--custom--radius--card); padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40); font-size: var(--wp--preset--font-size--small); line-height: 1.5; }
.has-mist-background-color .hlat-note { background: var(--wp--preset--color--white); }
.hlat-list { padding-left: 1.25rem; }
.hlat-list li { margin: 0 0 0.5rem; }
.hlat-steps { list-style: none; counter-reset: hlat-step; padding: 0; }
.hlat-steps li { counter-increment: hlat-step; position: relative; margin: 0 0 var(--wp--preset--spacing--30); padding-left: 3.25rem; min-height: 2.25rem; }
.hlat-steps li::before { content: counter(hlat-step); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); font-family: var(--wp--preset--font-family--mono); font-weight: 700; }
.hlat-band .wp-block-site-logo { display: flex; justify-content: center; }
.wp-block-query .wp-block-post-template { padding: 0; }
.hlat-toc { display: grid; }
.hlat-toc a { display: block; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--wp--preset--color--mist); color: var(--wp--preset--color--navy); font-weight: 500; text-decoration: none; transition: padding var(--wp--custom--motion--standard) var(--hlat-ease), color var(--wp--custom--motion--standard) var(--hlat-ease); }
.hlat-toc a:hover { color: var(--wp--preset--color--blue); padding-left: 6px; }
.hlat-legal-layout { gap: 48px 64px; align-items: flex-start; }
.hlat-legal-layout > .wp-block-column:first-child { flex-basis: 24%; position: sticky; top: var(--wp--preset--spacing--40); }
.hlat-legal-layout > .wp-block-column:last-child { flex-basis: 76%; }
@media (max-width: 781px) { .hlat-legal-layout > .wp-block-column { flex-basis: 100% !important; position: static !important; } }
.hlat-events__photo { margin: 0 0 var(--wp--preset--spacing--30); }
.hlat-events__photo img { aspect-ratio: 3 / 2; }

/* ---------- footer ---------- */
.hlat-footer a { color: inherit; text-decoration: none; }
.hlat-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hlat-footer h2.hlat-eyebrow { margin: 0 0 var(--wp--preset--spacing--30); }
.hlat-footer__cols { gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
.hlat-footer__links { list-style: none; margin: 0; padding: 0; }
.hlat-footer__links li { margin: 0 0 var(--wp--preset--spacing--20); }
.hlat-footer__address { font-style: normal; line-height: 1.7; }
.hlat-footer__cols .wp-block-buttons { margin-bottom: var(--wp--preset--spacing--50); }
.hlat-footer__bottom { margin-top: var(--wp--preset--spacing--50); border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--white) 25%, transparent); }
.hlat-footer__bottom p { margin: 0; }
.hlat-hero .hlat-eyebrow, .hlat-hero h1, .hlat-hero p { text-shadow: var(--hlat-hero-text-shadow); }

/* Eyebrows over photos sit on a night chip so the gold text keeps its contrast on any image. */
.hlat-hero .hlat-eyebrow { width: fit-content; padding: 0.375rem 0.75rem; border-radius: var(--wp--custom--radius--field); background: color-mix(in srgb, var(--wp--preset--color--night) 72%, transparent); text-shadow: none; }
.hlat-hero .hlat-eyebrow.has-text-align-center { margin-inline: auto !important; }
.hlat-hero .hlat-eyebrow:not(.has-text-align-center) { margin-left: 0 !important; margin-right: auto !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.wp-block-button__link:hover, .hlat-opt:hover, .hlat-chip:hover, a.hlat-card:hover, .hlat-give__go:hover { transform: none; }
}

/* ---------- 2027 accessibility and journey compatibility bridge ----------
 * This unlayered bridge intentionally follows the legacy unlayered bundle.
 * New builds should use output/hlat-system-2027.css and its cascade layers.
 */
:root {
	--hlat-measure: 70ch;
	--hlat-focus-inner: var(--wp--preset--color--white);
	--hlat-focus-outer: var(--wp--preset--color--blue);
	--hlat-system-ink: oklch(28% 0.04 250);
	--hlat-system-accent: oklch(45% 0.12 250);
	--hlat-system-gold: oklch(72% 0.12 80);
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-block-start: 6rem; }
body { line-height: 1.6; overflow-wrap: break-word; }
:where(p, li, dd, dt, figcaption, blockquote) { text-wrap: pretty; }
:where(main p, main li, main dd) { max-inline-size: var(--hlat-measure); }
:where(h1, h2, h3, h4, h5, h6) { overflow-wrap: anywhere; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3.1vw, 4.75rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.8vw, 3.25rem); line-height: 1.12; letter-spacing: -0.022em; }
h3 { font-size: clamp(1.3rem, 1.12rem + 0.8vw, 2rem); line-height: 1.2; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--hlat-focus-inner);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--hlat-focus-outer);
	border-radius: max(2px, var(--wp--custom--radius--field));
}
:where(nav a, button, .wp-block-button__link, .hlat-btn, [role="button"], input[type="submit"], input[type="checkbox"], input[type="radio"]) {
	min-inline-size: 44px;
	min-block-size: 44px;
}
:where(main p, main li) a:not([class]) { text-decoration: underline; text-decoration-thickness: 0.1em; text-underline-offset: 0.16em; }

.hlat-card { container: hlat-card / inline-size; box-shadow: 0 1px 2px rgba(9,38,74,.08), 0 8px 22px rgba(9,38,74,.08); }
.hlat-card:has(.hlat-card__photo) { border-color: color-mix(in srgb, var(--wp--preset--color--navy) 24%, var(--wp--preset--color--mist)); }
@container hlat-card (min-width: 28rem) {
	.hlat-card__body { padding-inline: clamp(1.5rem, 5cqi, 3rem) !important; }
}

.hlat-give--direct { display: grid; gap: 1rem; align-content: start; }
.hlat-give--direct > * { margin: 0; }
.hlat-give--direct .hlat-eyebrow { color: var(--wp--preset--color--blue); }
.hlat-checks { display: grid; gap: .65rem; padding-inline-start: 1.35rem; }
.hlat-checks li::marker { color: var(--wp--preset--color--green); font-weight: 700; }

:where(table) { inline-size: 100%; border-collapse: collapse; }
:where(th, td) { padding: .75rem; text-align: start; vertical-align: top; border-block-end: 1px solid var(--wp--preset--color--mist); }
:where(dialog, [popover]) { max-inline-size: min(42rem, calc(100% - 2rem)); max-block-size: calc(100dvb - 2rem); overflow: auto; }
dialog::backdrop { background: color-mix(in srgb, var(--wp--preset--color--night) 72%, transparent); }

@media (max-width: 30rem) {
	.wp-block-cover.hlat-hero { padding-inline: 1rem; }
	.hlat-hero .wp-block-buttons, .hlat-cookie__actions { inline-size: 100%; }
	.hlat-hero .wp-block-button, .hlat-hero .wp-block-button__link, .hlat-cookie__btn { inline-size: 100%; }
	.hlat-give { padding: clamp(1rem, 6vw, 1.5rem); }
	.hlat-cookie { inset-inline: .5rem; inset-block-end: .5rem; }
	.hlat-cookie__panel { padding: 1rem; }
}

@media (forced-colors: active) {
	:focus-visible { outline: 3px solid CanvasText; box-shadow: none; }
	.hlat-card, .hlat-note, .hlat-give { border: 1px solid CanvasText; }
}

@media print {
	.hlat-header, .hlat-footer, [data-lang-switcher], .hlat-cookie, .wp-block-buttons, hlat-forms { display: none !important; }
	*, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
	body { font: 11pt/1.5 Georgia, serif; }
	main { max-inline-size: none; }
	a[href^="http"]::after { content: " (" attr(href) ")"; overflow-wrap: anywhere; }
	img { max-inline-size: 100% !important; break-inside: avoid; }
	h1, h2, h3 { break-after: avoid; }
	p, li, blockquote, table { orphans: 3; widows: 3; }
}
