/**
 * HOS content blocks (ACF blocks) for block-editor inner pages: the numbered
 * guiding-principles panel, the values grid, the client quote and a general
 * callout. The client adds and edits these from the block editor; the layout
 * and prose defaults live in css/hos-inner.css.
 *
 * Design-system tokens throughout. On the front end these render inside
 * .hos-inner-main.fl-ds-page, so button anchors carry an explicit override of
 * the design-system base link rule. In the editor, css/hos-blocks-editor.css
 * supplies the tokens.
 */

/* ---- Guiding principles ---- */
.hos-principles { background: var(--ds-color-blue-tint); border-radius: var(--ds-radius-lg); padding: var(--ds-space-panel); display: flex; flex-direction: column; gap: var(--ds-space-lg); }
.hos-principles > h2 { margin: 0; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: clamp(1.5rem, 2.6vw, 1.875rem); line-height: 1.2; color: var(--ds-color-heading); }
.hos-principles__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--ds-space-lg); }
.hos-principles__list li { display: flex; align-items: flex-start; gap: var(--ds-space-md); }
.hos-principles__n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--ds-radius-pill); background: var(--ds-color-blue-dark); color: var(--ds-color-white); font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: var(--ds-text-lead); }
.hos-principles__list p { margin: 0; font-size: var(--ds-text-base); line-height: var(--ds-line-body); color: var(--ds-color-heading); max-width: 48ch; }

/* ---- Values grid ---- */
.hos-values { display: flex; flex-direction: column; gap: var(--ds-space-lg); }
.hos-values > h2 { margin: 0; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: clamp(1.625rem, 3vw, 2.125rem); line-height: 1.2; color: var(--ds-color-heading); }
.hos-values__intro { margin: 0; max-width: 60ch; color: var(--ds-color-body); }
.hos-values__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-md); }
.hos-value { border: 1px solid var(--ds-color-border); border-radius: var(--ds-radius-lg); padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: var(--ds-space-xs); }
.hos-value--green { background: var(--ds-color-green-tint); border-color: transparent; }
.hos-value--surface { background: var(--ds-color-surface); }
.hos-value--blue { background: var(--ds-color-blue-tint); border-color: transparent; }
.hos-value--orange { background: var(--ds-color-orange-tint); border-color: transparent; }
.hos-value h3 { margin: 0; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: var(--ds-text-h4); line-height: 1.25; color: var(--ds-color-heading); }
.hos-value p { margin: 0; font-size: var(--ds-text-sm); line-height: 1.6; color: var(--ds-color-body); }
@media (max-width: 520px) { .hos-values__grid { grid-template-columns: 1fr; } }

/* ---- Client quote ---- */
.hos-quote { margin: 0; background: var(--ds-color-blue-tint); border-radius: var(--ds-radius-lg); padding: var(--ds-space-panel); display: flex; flex-direction: column; gap: var(--ds-space-md); }
.hos-quote blockquote { margin: 0; padding: 0; border: 0; font-size: var(--ds-text-quote-sm); line-height: var(--ds-line-snug); color: var(--ds-color-heading); }
.hos-quote blockquote p { margin: 0; }
.hos-quote cite { font-style: normal; font-size: var(--ds-text-xs); font-weight: var(--ds-weight-semibold); color: var(--ds-color-muted); }

/* ---- Callout ---- */
.hos-callout { background: var(--ds-color-surface); border: 1px solid var(--ds-color-border); border-radius: var(--ds-radius-lg); padding: var(--ds-space-panel); display: flex; flex-direction: column; gap: var(--ds-space-sm); }
.hos-callout--blue { background: var(--ds-color-blue-tint); border-color: transparent; }
.hos-callout--red { background: var(--ds-color-red-tint); border-color: transparent; }
.hos-callout--green { background: var(--ds-color-green-tint); border-color: transparent; }
.hos-callout > h2, .hos-callout > h3 { margin: 0; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: var(--ds-text-h4); line-height: 1.3; color: var(--ds-color-heading); }
.hos-callout p { margin: 0; color: var(--ds-color-body); }
.hos-callout__btn { align-self: flex-start; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: var(--ds-space-xs); padding: 12px 24px; border-radius: var(--ds-radius-pill); border: 2px solid transparent; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-semibold); font-size: var(--ds-text-base); line-height: 1; }
.hos-callout p a { overflow-wrap: anywhere; }
.hos-callout a.hos-callout__btn { text-decoration: none; background: var(--ds-color-red-dark); color: var(--ds-color-white); }
.hos-callout a.hos-callout__btn:hover { background: var(--ds-color-red-hover); color: var(--ds-color-white); }

/* ---- Editor-only empty state ---- */
.hos-block-empty { margin: 0; padding: 16px; border: 1px dashed var(--ds-color-border-hover); border-radius: var(--ds-radius-md); color: var(--ds-color-muted); font-style: italic; }

/* ---- Funders ---- */
.hos-funders { display: flex; flex-direction: column; gap: var(--ds-space-md); }
.hos-funders__heading { margin: 0; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: clamp(1.5rem, 2.6vw, 1.875rem); line-height: 1.2; color: var(--ds-color-heading); }
.hos-funders__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hos-funders__item { display: flex; align-items: center; gap: var(--ds-space-md); padding: var(--ds-space-md) 0; border-bottom: 1px solid var(--ds-color-border); }
.hos-funders__item:last-child { border-bottom: 0; }
.hos-funders__logo { flex: none; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 160px; height: 80px; padding: 10px; background: var(--ds-color-white); border: 1px solid var(--ds-color-border); border-radius: var(--ds-radius-md); }
.hos-funders__logo--none { background: transparent; border-color: transparent; }
.hos-funders__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.hos-funders__body { margin: 0; font-size: var(--ds-text-base); line-height: var(--ds-line-snug); color: var(--ds-color-body); }
.hos-funders__name { font-weight: var(--ds-weight-bold); color: var(--ds-color-heading); }
.hos-funders a.hos-funders__name { text-decoration: none; color: var(--ds-color-red-dark); }
.hos-funders a.hos-funders__name:hover { text-decoration: underline; color: var(--ds-color-red-hover); }
.hos-funders__purpose { color: var(--ds-color-body); }

/* ---- Video / embed ---- */
.hos-embed { margin: 0; }
.hos-embed__frame { border-radius: var(--ds-radius-lg); overflow: hidden; background: var(--ds-color-surface); }
.hos-embed__frame iframe, .hos-embed__frame video, .hos-embed__frame embed, .hos-embed__frame object { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.hos-embed__ph { display: flex; align-items: center; justify-content: center; text-align: center; aspect-ratio: 16 / 9; padding: var(--ds-space-lg); border: 2px dashed var(--ds-color-border-hover); border-radius: var(--ds-radius-lg); color: var(--ds-color-muted); font-size: var(--ds-text-sm); }
.hos-embed figcaption { margin-top: var(--ds-space-sm); font-size: var(--ds-text-xs); color: var(--ds-color-muted); }

@media (max-width: 480px) { .hos-funders__logo { width: 112px; height: 56px; padding: 8px; } }

/* ---- Separator (core/separator): light hairline with room either side ---- */
.wp-block-separator:not(.is-style-dots) { border: 0; border-top: 1px solid var(--ds-color-border-hover, #d8d4cf); height: 0; background: none; width: 100%; max-width: none; margin: var(--ds-space-2xl, 48px) 0; opacity: 1; }
.wp-block-separator:not(.is-style-dots):not(.has-text-color):not(.has-background) { color: var(--ds-color-border-hover, #d8d4cf); }
.wp-block-separator.has-text-color:not(.is-style-dots), .wp-block-separator.has-background:not(.is-style-dots) { border-top-color: currentColor; }


/* ---- Quote marks (client design note, 23 Sept 2026) ----
   A large red opening mark above broker quotes, featured-story quotes and
   the client quote box. */
.hos-quote-mark::before {
	content: "\201C";
	display: block;
	height: 0.45em;
	margin-bottom: 14px;
	font-family: var(--ds-font-heading);
	font-weight: var(--ds-weight-bold);
	font-size: clamp(4.5rem, 7vw, 6rem);
	line-height: 1;
	color: var(--ds-color-red-core);
}

/* Staff quote block: same panel as the service-page broker quotes. */
.hos-person-quote { margin: 0; background: var(--ds-color-surface); border-radius: var(--ds-radius-lg); padding: var(--ds-space-panel); display: flex; flex-wrap: wrap; gap: var(--ds-space-lg); align-items: center; }
.hos-person-quote__media { flex: none; }
.hos-person-quote__media img { width: 112px; height: 112px; border-radius: var(--ds-radius-pill); object-fit: cover; display: block; }
.hos-person-quote__avatar { display: block; width: 112px; height: 112px; border-radius: var(--ds-radius-pill); background: var(--ds-color-border); }
.hos-person-quote__text { flex: 1 1 280px; display: flex; flex-direction: column; gap: var(--ds-space-sm); }
.hos-person-quote blockquote { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; font-style: normal; font-size: var(--ds-text-quote-sm); line-height: var(--ds-line-snug); color: var(--ds-color-heading); }
.hos-person-quote blockquote p { margin: 0 !important; font: inherit; color: inherit; }
.hos-person-quote__who { margin: 0 !important; display: flex; flex-direction: column; font-size: var(--ds-text-xs); line-height: 1.5; }
.hos-person-quote__who strong { color: var(--ds-color-heading); }
.hos-person-quote__who span { color: var(--ds-color-muted); }

/* Panels in the inner-page content flow: clear space above and below, so
   two panels in a row (e.g. a staff quote then a callout) do not touch. */
.hos-inner-main > .hos-person-quote,
.hos-inner-main > .hos-callout,
.hos-inner-main > .hos-quote,
.hos-inner-main > .hos-quotes { margin-top: 32px; margin-bottom: 32px; }
.hos-inner-main > .hos-person-quote:last-child,
.hos-inner-main > .hos-callout:last-child,
.hos-inner-main > .hos-quote:last-child,
.hos-inner-main > .hos-quotes:last-child { margin-bottom: 0; }

/* Client quotes carousel block (mechanics: css/hos-carousel.css + js/hos-carousel.js) */
.hos-quotes .hos-carousel__slide { padding: 0; }
.hos-quotes .hos-carousel__slide > .hos-quote { max-width: none; margin: 0; height: auto; box-sizing: border-box; justify-content: flex-start; }
.hos-quotes .hos-carousel__controls { margin-top: var(--ds-space-md); justify-content: flex-start; }
.hos-quotes--preview { display: flex; flex-direction: column; gap: var(--ds-space-md); }

/* The same mark on the partner quotes (Supporting the sector) and on quotes
   inside news posts and client stories (Catherine, 25 Sept: every quote box
   carries the mark). Sized like the in-text service-page quotes. */
.hos-ss-quote blockquote::before,
.hos-article-body blockquote::before {
	content: "\201C";
	display: block;
	height: 0.45em;
	margin-bottom: 6px;
	font-family: var(--ds-font-heading);
	font-weight: var(--ds-weight-bold);
	font-size: clamp(3.5rem, 5vw, 4.5rem);
	line-height: 1;
	color: var(--ds-color-red-core);
}

/* Button block (core/button) in posts and pages: the site's red pill button,
   matching the page banner buttons (.hos-inner-btn). The block's "Outline"
   style gives the white outlined button. Colours picked in the block's own
   colour settings still win. (1 Oct 2026: the Veterans' Foundation post
   showed WordPress's default grey button with red underlined text.) */
.wp-block-buttons .wp-block-button .wp-block-button__link,
.fl-ds-page .wp-block-buttons .wp-block-button .wp-block-button__link {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 28px;
	border: 2px solid transparent;
	border-radius: var(--ds-radius-pill);
	font-family: var(--ds-font-heading);
	font-weight: var(--ds-weight-semibold);
	font-size: var(--ds-text-base);
	line-height: 1.2;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.wp-block-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background),
.fl-ds-page .wp-block-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) { background: var(--ds-color-red-dark); }
.wp-block-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):hover,
.fl-ds-page .wp-block-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):hover { background: var(--ds-color-red-hover); }
.wp-block-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color),
.wp-block-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color):hover,
.fl-ds-page .wp-block-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color),
.fl-ds-page .wp-block-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color):hover { color: var(--ds-color-white); }
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link,
.fl-ds-page .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link { padding: 14px 28px; border: 2px solid var(--ds-color-muted); }
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:not(.has-background),
.fl-ds-page .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:not(.has-background) { background: var(--ds-color-white); }
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
.fl-ds-page .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) { color: var(--ds-color-heading); }
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:hover,
.fl-ds-page .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--ds-color-blue-dark); }
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):hover,
.fl-ds-page .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):hover { background: var(--ds-color-surface); }
.wp-block-buttons .wp-block-button .wp-block-button__link:focus-visible { outline: 3px solid var(--ds-color-blue-dark); outline-offset: 3px; }
.fl-ds-page .hos-article-body .wp-block-buttons,
.fl-ds-page .hos-inner-main .wp-block-buttons { margin-top: var(--ds-space-lg); margin-bottom: var(--ds-space-lg); }
