/**
 * Horizon - Theme Styles
 *
 * The default theme for new CitySoft sites, and a library theme. Calm and neutral in sector:
 * a "label grid" (small uppercase labels with a square marker beside the content), hairline
 * rules, square corners, Schibsted Grotesk for headings and UI, Source Serif 4 for body text.
 * Built from the "C2 Harbor" Claude Design handoff (repo-docs/themes/client-assets/Horizon/
 * handoff/README.md is the spec; tokens.css there is the token source).
 *
 * RE-SKINNING: everything reads the four Brand Look inputs in section 1 (brand primary,
 * brand secondary, heading font, body font). Set them in Site Admin > Brand Look: they arrive
 * as --cs-brand-* / --cs-font-* and section 1 reads them, with the Harbor values as fallbacks.
 * Every tint, band and hover colour is derived from them with color-mix(). Precedence:
 * custom.css (loads last) > Brand Look > Horizon defaults. Do not edit component rules.
 *
 * Contents
 *   1. Tokens
 *   2. Base, focus, skip link, container
 *   3. Admin bar
 *   4. Header (utility bar, main row, logo, header button, menu button, search)
 *      - the nav itself is in nav-style.css
 *   5. Shared pieces (label grid, label, "more" link, placeholders, admin hint)
 *   6. Home: welcome + photos
 *   7. Home: quick links
 *   8. Home: events band
 *   9. Home: news cards
 *  10. Home: newsletter band
 *  11. Interior: title area + breadcrumb
 *  12. Main content area + sidebar
 *  13. Rich-text elements (no classes needed)
 *  14. Forms, pagination
 *  15. Buttons (incl. platform buttons)
 *  16. Platform channel typography
 *  17. Footer
 *  18. Reduced motion
 */

/* ========================================
   1. Tokens
   ======================================== */
:root {
	/* Brand Look inputs (the platform injects --cs-brand-* / --cs-font-* when a site sets them) */
	--hz-primary: var(--cs-brand-primary, #1F3A5F);     /* Harbor navy, 11.6:1 on white. Links, labels, buttons */
	--hz-secondary: var(--cs-brand-secondary, #E8A33D); /* Saffron. Decorative and button fill only, never text on white */
	--hz-font-heading: var(--cs-font-heading, "Schibsted Grotesk", "Helvetica Neue", Helvetica, sans-serif);
	--hz-font-body: var(--cs-font-body, "Source Serif 4", Georgia, serif);

	/* Neutrals (fixed) */
	--hz-ink: #1B1C1F;
	--hz-muted: #575A61;          /* 7.0:1 on white */
	--hz-line: #DEDFE2;           /* hairlines (decorative) */
	--hz-control-line: #85888F;   /* form-field borders: 3.5:1 on white (WCAG 1.4.11) */
	--hz-error: #B3261E;
	--hz-white: #fff;

	/* Derived from the brand colours. Hex fallbacks first (Harbor), color-mix() below. */
	--hz-primary-dark: #17293F;   /* link hover */
	--hz-primary-tint: #F6F7F9;   /* footer, dropdown hover, placeholder ground */
	--hz-primary-soft: #E6E9EE;   /* placeholder shapes */
	--hz-secondary-tint: #FDF6EC; /* events band */
	--hz-secondary-soft: #F8E3C5;

	/* Band / role colours ("Accented" colour use, the approved default) */
	--hz-band: var(--hz-primary);                 /* utility bar + newsletter band */
	--hz-on-band: #fff;
	--hz-on-band-muted: rgba(255, 255, 255, .88);
	--hz-on-band-line: rgba(255, 255, 255, .28);
	--hz-band-button: var(--hz-secondary);
	/* Text on the band button. Brand Look supplies a readable partner for its secondary colour;
	   a custom.css colourway with a DARK secondary sets this to #fff itself. */
	--hz-band-button-text: var(--cs-brand-secondary-text, #1B1C1F);
	--hz-header-rule: var(--hz-secondary);        /* rule under the main header row */
	--hz-header-rule-w: 3px;
	--hz-label: var(--hz-primary);                /* label-column text */
	/* Events band: 35% of the secondary ("golden", Nick 2026-10-16; the handoff had 10%).
	   Fallback hex below is the Harbor result; muted text on it is 5.3:1. */
	--hz-events-bg: #F8DFC1;
	--hz-event-date: var(--hz-primary);
	/* Focus ring. The design's saffron ring is about 2:1 on white, below the 3:1 a focus
	   indicator needs (THEME_BUILD_GUIDE gotcha 10), so light surfaces use the primary colour
	   and the dark bands use white. */
	--hz-focus: var(--hz-primary);

	/* Type */
	--hz-fs-body: 18px;
	--hz-lh-body: 1.6;
	--hz-fs-small: 14px;
	--hz-fs-label: 16px;                  /* uppercase, 600, .08em */
	--hz-fs-h1: clamp(40px, 5vw, 72px);   /* home welcome heading */
	--hz-fs-title: clamp(36px, 4.2vw, 56px); /* interior page title */
	--hz-fs-h2: 30px;
	--hz-fs-h3: 23px;
	--hz-fs-link-list: 21px;
	--hz-fs-lead: 19px;
	--hz-measure: 68ch;

	/* Space */
	--hz-container: 1320px;
	--hz-gutter: 24px;
	--hz-section-y: clamp(48px, 6vw, 96px);
	--hz-block-y: clamp(48px, 6vw, 88px);

	/* Shape */
	--hz-radius: 0;               /* square corners throughout; the logo is the only curve */
	--hz-control-h: 50px;
	--hz-tap: 44px;
	--hz-ease: 120ms ease-out;

	/* Aliases for the repo-wide names, so shared snippets pick up the palette */
	--theme-primary: var(--hz-primary);
	--theme-accent: var(--hz-secondary);
	--theme-dark: var(--hz-ink);
	--theme-font-primary: var(--hz-font-body);
	--theme-font-heading: var(--hz-font-heading);
}

/* Derived shades follow the brand colours (Brand Look, or --hz-primary / --hz-secondary in
   custom.css). Mix ratios are the handoff's tokens.css. Browsers without color-mix() keep the
   Harbor hex values above. */
@supports (color: color-mix(in oklab, red 50%, blue)) {
	:root {
		--hz-primary-dark: color-mix(in oklab, var(--hz-primary) 75%, black);
		--hz-primary-tint: color-mix(in oklab, var(--hz-primary) 4%, white);
		--hz-primary-soft: color-mix(in oklab, var(--hz-primary) 10%, white);
		--hz-secondary-tint: color-mix(in oklab, var(--hz-secondary) 10%, white);
		--hz-secondary-soft: color-mix(in oklab, var(--hz-secondary) 30%, white);
		--hz-events-bg: color-mix(in oklab, var(--hz-secondary) 35%, white);
	}
}
/* Lightness floor for the events band: with a DARK secondary (e.g. Ember's navy) a 35% mix is
   dark enough to drop the muted text and dates below 4.5:1, so lightness is held at 0.87 or
   above. Harbor's golden (0.91) and light secondaries are unchanged. */
@supports (color: oklch(from red l c h)) {
	:root {
		--hz-events-bg: oklch(from color-mix(in oklab, var(--hz-secondary) 35%, white) max(l, 0.87) c h);
	}
}

/* ========================================
   2. Base, focus, skip link, container
   ======================================== */
body {
	background: #fff;
	color: var(--hz-ink);
	font-family: var(--hz-font-body);
	font-size: var(--hz-fs-body);
	line-height: var(--hz-lh-body);
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--hz-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
a:hover {
	color: var(--hz-primary-dark);
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 2px solid var(--hz-focus);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100000;
	padding: 10px 16px;
	background: var(--hz-primary);
	color: #fff;
	font-family: var(--hz-font-heading);
	font-weight: 500;
	text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

img { max-width: 100%; height: auto; }

/* The theme's container: fluid, 24px gutters, 1320px of content (the design's own grid,
   rather than Bootstrap's stepped .container widths). */
.hz-wrap {
	width: 100%;
	max-width: calc(var(--hz-container) + 2 * var(--hz-gutter));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--hz-gutter);
	padding-right: var(--hz-gutter);
}
@media (max-width: 575.98px) {
	:root { --hz-gutter: 20px; }
}

/* ========================================
   3. Admin bar (WordPress-style, roleID 3+)
   ======================================== */
#admin-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 32px;
	background-color: #1d2327;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
	line-height: 32px;
}
.admin-bar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
	padding: 0 8px;
}
.admin-bar-left,
.admin-bar-right { display: flex; align-items: center; height: 100%; }
.admin-bar-item {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 8px;
	color: #c3c4c7;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.admin-bar-item:hover { background-color: #2c3338; color: #72aee6; text-decoration: none; }
.admin-bar-item i, .admin-bar-item svg { font-size: 14px; }
.admin-bar-label { margin-left: 6px; }
.admin-bar-logo { background-color: #2271b1; padding: 0 10px; }
.admin-bar-logo:hover { background-color: #135e96; color: #fff; }
.admin-bar-logout:hover { background-color: #b32d2e; color: #fff; }
body.admin-bar-active { padding-top: 32px; }
@media (max-width: 575.98px) {
	.admin-bar-label { display: none; }
}

/* ========================================
   4. Header
   Compact (Menu button + panel) is the DEFAULT layout. The desktop layout applies at
   992px+ unless theme.js adds .is-compact because the row does not fit. So desktop rules
   are all written as  @media (min-width: 992px) { .hz-header:not(.is-compact) ... }
   ======================================== */
.hz-header {
	position: relative;   /* the compact menu panel is positioned against the header */
	z-index: 1030;
	background: #fff;
	font-family: var(--hz-font-heading);
}

/* -- Utility bar (desktop only): search | social | account -- */
.hz-utility {
	display: none;
	background: var(--hz-band);
	color: var(--hz-on-band);
	--hz-focus: #fff;
}
.hz-utility-inner {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 24px;
	min-height: 40px;
	font-size: 14px;
	line-height: 1.2;
	white-space: nowrap;
}
.hz-utility a { color: var(--hz-on-band); text-decoration: none; }
.hz-utility a:hover { color: var(--hz-on-band); text-decoration: underline; }
/* Search and social each carry the divider that follows them, so hiding one hides both */
.hz-utility-search,
.hz-utility-social { display: flex; align-items: center; gap: 24px; }
.hz-utility-search::after,
.hz-utility-social::after {
	content: "";
	width: 1px;
	height: 16px;
	background: var(--hz-on-band-line);
}
.hz-utility-search:not(:has(.hz-search))::after { display: none; } /* search moved to the panel */
.hz-utility-account { display: flex; align-items: center; gap: 18px; }
.hz-utility-account a,
.hz-utility-social a { display: inline-flex; align-items: center; min-height: 40px; }

/* Social icon lists share one markup: the "Social Media Icons" section, a <ul> of icon links */
.hz-social ul,
.hz-social p {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hz-social li { margin: 0; }

/* -- Main row: logo | nav | header button | menu button -- */
.hz-bar {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 84px;
	border-bottom: var(--hz-header-rule-w) solid var(--hz-header-rule);
}

/* -- Logo. The "Logo" section is the whole lockup, edited in Pages > Sections:
      <p><img></p> <p>Organization name</p> (an optional second text line is a small
      tagline). Image only, text only, or both all work. The seeded placeholder image
      (horizon-logo-sun.svg) is swapped for the inline sun mark so it recolours. -- */
.hz-brand-wrap { min-width: 0; }
.hz-brand {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 12px;
	align-items: center;
	min-width: 0;
	padding: 12px 0;
	color: var(--hz-ink);
	text-decoration: none;
}
.hz-brand:hover { color: var(--hz-ink); text-decoration: none; }
.hz-brand > * { grid-column: 2; margin: 0; }
.hz-brand > :is(img, svg),
.hz-brand > p:has(img, svg) {
	grid-column: 1;
	grid-row: 1 / span 2;
	line-height: 0;
}
/* Text only, or image only: one column */
.hz-brand:not(:has(img, svg)) { grid-template-columns: minmax(0, 1fr); }
.hz-brand:not(:has(img, svg)) > * { grid-column: 1; }
.hz-brand:not(:has(> p:not(:has(img, svg)))) { grid-template-columns: auto; }
.hz-brand .hz-sun { display: block; width: 56px; height: 32px; }
/* The inline sun mark (horizonSun()): its shapes read the brand colours */
.hz-sun .hz-sun-s { fill: var(--hz-secondary); }
.hz-sun .hz-sun-p { fill: var(--hz-primary); }
.hz-brand img {
	display: block;
	width: auto;
	height: auto;
	max-height: 40px;
	max-width: min(260px, 55vw);
}
/* Wordmark: the first text line */
.hz-brand > p:not(:has(img, svg)) {
	max-width: 300px;
	font-family: var(--hz-font-heading);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.015em;
	text-wrap: balance;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	align-self: end;
}
/* Tagline: a second text line */
.hz-brand > p:not(:has(img, svg)) ~ p:not(:has(img, svg)) {
	margin-top: 3px;
	color: var(--hz-muted);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	-webkit-line-clamp: 1;
	align-self: start;
}
/* Image + one text line: centre the line against the image */
.hz-brand:has(img, svg) > p:not(:has(img, svg)):nth-of-type(2):last-of-type,
.hz-brand:not(:has(img, svg)) > p:only-of-type { grid-row: 1 / span 2; align-self: center; }
@media (min-width: 576px) {
	.hz-brand { column-gap: 14px; }
	.hz-brand .hz-sun { width: 70px; height: 40px; }
	.hz-brand img { max-height: 48px; max-width: 300px; }
	.hz-brand > p:not(:has(img, svg)) { font-size: 23px; -webkit-line-clamp: 2; }
	.hz-brand > p:not(:has(img, svg)) ~ p:not(:has(img, svg)) { font-size: 14px; }
}

/* -- Header button (desktop): the "Header Button" section, one link -- */
.hz-header-btn { display: none; flex: none; }
.hz-header-btn p { margin: 0; }
.hz-header-btn a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid var(--hz-primary);
	border-radius: var(--hz-radius);
	color: var(--hz-primary);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--hz-ease), color var(--hz-ease);
}
.hz-header-btn a::after { content: "\2192"; font-size: 15px; }
.hz-header-btn a:hover,
.hz-header-btn a:focus-visible { background: var(--hz-primary); color: #fff; text-decoration: none; }

/* -- Menu button (compact) -- */
.hz-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: none;
	height: 46px;
	margin-left: auto;
	padding: 0 14px;
	border: 1px solid var(--hz-ink);
	border-radius: var(--hz-radius);
	background: #fff;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}
.hz-menu-toggle .icon-close { display: none; }
.hz-menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.hz-menu-toggle[aria-expanded="true"] .icon-close { display: inline-block; }
@media (max-width: 359.98px) {
	.hz-menu-toggle span { display: none; } /* icon only on the narrowest phones (aria-label keeps the name) */
	.hz-menu-toggle { padding: 0 13px; }
}

/* -- Desktop layout: utility bar, nav in the row, header button; no Menu button -- */
@media (min-width: 992px) {
	.hz-header:not(.is-compact) .hz-utility { display: block; }
	.hz-header:not(.is-compact) .hz-bar { gap: 28px; }
	.hz-header:not(.is-compact) .hz-header-btn { display: block; }
	.hz-header:not(.is-compact) .hz-menu-toggle { display: none; }
	/* Nothing shrinks, so theme.js can see when the row overflows and switch to compact */
	.hz-header:not(.is-compact) :is(.hz-brand, .hz-brand-wrap, .hz-nav, .hz-header-btn) { flex: none; }
}

/* -- Header search (simpleSearchHeaderWidget). One widget: theme.js moves it between the
      utility bar and the compact panel. -- */
.hz-search .header-search-form {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
}
.hz-search .header-search-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.hz-search .header-search-msg { display: none !important; }
/* main.css styles every text input (2px border, margins, height !important); the id lifts
   these rules above it. */
.hz-search #headerSearchInput {
	min-width: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	color: inherit;
	font-family: var(--hz-font-heading);
	font-size: 14px;
	line-height: 1.2;
}
.hz-search #headerSearchInput:focus { outline: none; box-shadow: none; }
.hz-search .header-search-form:focus-within { outline: 2px solid var(--hz-focus); outline-offset: 3px; }

/* Magnifier glyph, drawn as a mask so it takes the text colour */
.hz-search .header-search-form::before,
.hz-search .btn-search::before {
	content: "";
	display: block;
	flex: none;
	width: 13px;
	height: 13px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7l126.6 126.7a32 32 0 0 1-45.3 45.3L330.7 376A208 208 0 1 1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7l126.6 126.7a32 32 0 0 1-45.3 45.3L330.7 376A208 208 0 1 1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Utility bar: icon + borderless 150px field; Enter submits, the button is visually hidden */
.hz-utility .hz-search .header-search-form { gap: 8px; min-height: 40px; }
.hz-utility .hz-search #headerSearchInput { width: 150px; padding: 0; color: var(--hz-on-band); }
.hz-utility .hz-search #headerSearchInput::placeholder { color: var(--hz-on-band-muted); opacity: 1; }
.hz-utility .hz-search .btn-search {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
.hz-utility .hz-search .btn-search::before { display: none; }

/* ========================================
   5. Shared pieces
   ======================================== */
/* The label grid: label column (flex 1 1 200px, max 310px) + content column (flex 999 1 560px),
   24px gap. Below about 784px of width the label stacks above the content. */
.hz-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
}
.hz-label-col {
	flex: 1 1 200px;
	max-width: 310px;
	padding-top: 10px;
}
.hz-content-col {
	flex: 999 1 560px;
	min-width: 0;
}
.hz-label-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}
/* The ink rule that opens a ruled block */
.hz-ruled {
	border-top: 1px solid var(--hz-ink);
	padding-top: 28px;
}

/* Section label: uppercase, with a square in the secondary colour */
.hz-label,
.main-content .hz-label {
	display: flex;
	gap: 10px;
	margin: 0;
	color: var(--hz-label);
	font-family: var(--hz-font-heading);
	font-size: var(--hz-fs-label);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.hz-label::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	margin-top: 2px;
	background: var(--hz-secondary);
}

/* "See all events ->" link: the section holds a plain link; the arrow is added here */
.hz-more p { margin: 0; }
.hz-more a {
	display: inline-flex;
	align-items: center;
	min-height: var(--hz-tap);
	font-family: var(--hz-font-heading);
	font-size: 16px;
	font-weight: 500;
}
.hz-more a::after { content: "\00a0\2192"; }

/* Photo frame: section HTML is <p><img></p>; the image fills a fixed-ratio frame */
:is(.hz-slide, .hz-card-photo) > p:has(img, .hz-ph),
:is(.hz-slide, .hz-card-photo) > img {
	position: relative;
	display: block;
	overflow: hidden;
	margin: 0;
	background: var(--hz-primary-tint);
}
:is(.hz-slide, .hz-card-photo) img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}
:is(.hz-slide, .hz-card-photo) > p:has(img, .hz-ph) > a { position: absolute; inset: 0; }

/* Tinted placeholder blocks (seeded horizon-slide-N / horizon-callout-N images, swapped for
   this markup by the theme so they follow Brand Look). Labelled with file name and ratio. */
.hz-ph {
	position: absolute;
	inset: 0;
	display: block;
	background: var(--hz-primary-tint);
}
.hz-ph::before {
	content: "";
	position: absolute;
	width: 14px;
	height: 14px;
	background: var(--hz-secondary);
}
.hz-ph-label {
	position: absolute;
	left: 16px;
	bottom: 14px;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .02em;
}
.hz-ph-slide {
	background:
		linear-gradient(var(--hz-primary-soft), var(--hz-primary-soft)) left bottom / 100% 38% no-repeat,
		linear-gradient(to top right, transparent calc(50% - .5px), var(--hz-line) calc(50% - .5px), var(--hz-line) calc(50% + .5px), transparent calc(50% + .5px)),
		var(--hz-primary-tint);
}
.hz-ph-slide::before { left: 16px; top: 16px; }
.hz-ph-callout {
	background:
		linear-gradient(var(--hz-primary-soft), var(--hz-primary-soft)) right top / 50% 100% no-repeat,
		var(--hz-primary-tint);
}
.hz-ph-callout::before { right: 16px; top: 16px; width: 12px; height: 12px; }
.hz-ph-callout .hz-ph-label { left: 14px; bottom: 12px; }

/* Admin-only reminder where a section is missing (deleted or renamed). Visitors never see it. */
.hz-admin-hint {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 16px 0;
	padding: 12px 14px;
	border: 2px dashed var(--hz-primary);
	background: #fff;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
}
.hz-admin-hint strong { color: var(--hz-primary); }
.hz-admin-hint a { font-weight: 600; }
.hz-bar > .hz-admin-hint { flex: 0 1 260px; margin: 8px 0; font-size: 12px; }

/* ========================================
   6. Home: welcome + photos
   ======================================== */
.hz-welcome-block { padding: clamp(40px, 6vw, 80px) 0 var(--hz-block-y); }
.hz-welcome-block .hz-label-col { padding-top: 14px; }

/* "Welcome Text": a heading, then one or two paragraphs side by side */
.hz-welcome {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 40px;
}
.hz-welcome > :is(h1, h2) {
	flex: 1 1 100%;
	max-width: 13em;
	margin: 0 0 16px;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: var(--hz-fs-h1);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: -.035em;
	text-wrap: balance;
}
.hz-welcome > p {
	flex: 1 1 320px;
	max-width: 430px;
	margin: 0;
	color: var(--hz-muted);
	font-size: var(--hz-fs-lead);
	text-wrap: pretty;
}
.hz-welcome > p:only-of-type { max-width: 640px; }

/* Photos (Slide 1-6): a static row at 4:5, each with a numbered caption.
   Phones: a sideways-scrolling row (each photo 78% wide) rather than a tall stack.
   576px+: three across (four when there are exactly four), so a short row never leaves an
   orphan; with fewer photos they keep the same size and sit at the left. */
.hz-slides {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 78%;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: 8px;
}
.hz-slides > .hz-slide { scroll-snap-align: start; }
@media (min-width: 576px) {
	.hz-slides {
		grid-auto-flow: row;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
		overflow: visible;
		padding-bottom: 0;
	}
}
@media (min-width: 992px) {
	.hz-slides.has-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hz-grid + .hz-slides { margin-top: clamp(48px, 6vw, 80px); }
.hz-slide {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 12px;
	align-content: start;
	min-width: 0;
}
.hz-slide > p:has(img, .hz-ph),
.hz-slide > img {
	grid-column: 1 / -1;
	grid-row: 1;
	aspect-ratio: 4 / 5;
	margin-bottom: 12px;
	border: 1px solid var(--hz-line);
}
.hz-slide-num {
	grid-column: 1;
	grid-row: 2;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}
.hz-slide > :is(p, div):not(:has(img, .hz-ph)) {
	grid-column: 2;
	margin: 0;
	color: var(--hz-muted);
	font-family: var(--hz-font-heading);
	font-size: 15px;
	line-height: 1.4;
}

/* ========================================
   7. Home: quick links ("Quick Links": one <ul> of links; a bold link is featured)
   ======================================== */
.hz-links-block { padding: 0 0 var(--hz-block-y); }
.hz-header + .hz-links-block { padding-top: clamp(40px, 6vw, 80px); }
.hz-links ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	column-gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hz-links li { margin: 0; }
.hz-links li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 62px;
	padding: 10px 0;
	border-bottom: 1px solid var(--hz-line);
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: var(--hz-fs-link-list);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -.01em;
	text-decoration: none;
}
.hz-links li > a::after {
	content: "\2192";
	flex: none;
	color: var(--hz-muted);
	font-size: 18px;
}
.hz-links li > a:hover { color: var(--hz-primary); text-decoration: underline; }
/* Icons from other themes' content (Ledger tiles) are not part of this design */
.hz-links li > a > :is(i, svg) { display: none; }
/* Featured link: bold in the editor */
.hz-links li > a :is(strong, b) {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
}
.hz-links li > a :is(strong, b)::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	background: var(--hz-secondary);
}
.hz-links li > a:has(strong, b)::after { color: var(--hz-ink); }

/* ========================================
   8. Home: events band (live from the Events module)
   ======================================== */
.hz-events-block {
	padding: var(--hz-block-y) 0;
	border-top: 1px solid var(--hz-line);
	border-bottom: 1px solid var(--hz-line);
	background: var(--hz-events-bg);
}
/* The static fallback ("Upcoming Events Static": a <ul>; each <li> = date <p>, <h3> title,
   details <p>) gets the live list's look through the :is() pairs below. */
:is(.hz-events, .hz-events-static ul) {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--hz-ink);
	list-style: none;
}
:is(.hz-event, .hz-events-static li) {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 24px;
	margin: 0;
	padding: 22px 0;
	border-bottom: 1px solid var(--hz-line);
	font-family: var(--hz-font-heading);
}
:is(.hz-event-date, .hz-events-static li > p:first-child) {
	flex: 0 0 130px;
	margin: 0;
	color: var(--hz-event-date);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}
:is(.hz-event-title, .hz-events-static li :is(h2, h3, h4)) {
	flex: 1 1 300px;
	margin: 0;
	color: var(--hz-ink);
	font-family: var(--hz-font-body);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	text-wrap: pretty;
}
:is(.hz-event-title, .hz-events-static li :is(h2, h3, h4)) a { color: var(--hz-ink); text-decoration: none; }
:is(.hz-event-title, .hz-events-static li :is(h2, h3, h4)) a:hover { color: var(--hz-ink); text-decoration: underline; }
:is(.hz-event-meta, .hz-events-static li :is(h2, h3, h4) ~ p) {
	display: flex;
	flex: 0 1 340px;
	flex-wrap: wrap;
	gap: 4px 24px;
	margin: 0;
	color: var(--hz-muted);
	font-size: 15px;
	line-height: 1.4;
}
.hz-event-meta span { white-space: nowrap; }

/* ========================================
   9. Home: news cards ("Callout Image N" + "Callout Text N")
   ======================================== */
.hz-news-block { padding: var(--hz-section-y) 0; }
/* No events band above: close the gap and open with an ink rule instead */
.hz-news-block:not(.hz-events-block + .hz-news-block) { padding-top: 0; }
.hz-news-block:not(.hz-events-block + .hz-news-block) .hz-grid { border-top: 1px solid var(--hz-ink); padding-top: 28px; }
.hz-header + .hz-news-block .hz-grid { border-top: 0; }
.hz-header + .hz-news-block { padding-top: clamp(40px, 6vw, 80px) !important; }

.hz-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px 0;
}
.hz-card {
	min-width: 0;
	padding: 0 24px;
	border-left: 1px solid var(--hz-line);
}
.hz-card-photo > p:has(img, .hz-ph),
.hz-card-photo > img {
	aspect-ratio: 1;
	margin-bottom: 22px;
}
.hz-card-text > p:first-of-type:not(:is(h2, h3, h4) ~ p) {
	margin: 0 0 10px;
	color: var(--hz-muted);
	font-family: var(--hz-font-heading);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .04em;
}
.hz-card-text :is(h2, h3, h4) {
	margin: 0 0 12px;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: var(--hz-fs-h3);
	font-weight: 500;
	line-height: 1.22;
	letter-spacing: -.015em;
	text-wrap: balance;
}
.hz-card-text :is(h2, h3, h4) a { color: var(--hz-ink); text-decoration: none; }
.hz-card-text :is(h2, h3, h4) a:hover { color: var(--hz-ink); text-decoration: underline; }
.hz-card-text :is(h2, h3, h4) ~ p {
	margin: 0;
	color: var(--hz-muted);
	font-size: 17px;
	text-wrap: pretty;
}

/* ========================================
   10. Home: newsletter band (Newsletter Text + core's email signup widget)
   ======================================== */
.hz-newsletter-block {
	padding: var(--hz-block-y) 0;
	background: var(--hz-band);
	color: var(--hz-on-band);
	--hz-focus: #fff;
	--hz-label: var(--hz-on-band-muted);
}
.hz-newsletter-block .hz-grid { padding: 36px 0; }
.hz-newsletter-block .hz-label-col { padding-top: 8px; }
.hz-newsletter-block .hz-label::before { background: #fff; }
.hz-newsletter-block a { color: var(--hz-on-band); }
.hz-newsletter {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 24px 48px;
}
.hz-newsletter-text { flex: 1 1 320px; min-width: 0; }
.hz-newsletter-text :is(h2, h3) {
	margin: 0 0 10px;
	color: var(--hz-on-band);
	font-family: var(--hz-font-heading);
	font-size: var(--hz-fs-h2);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -.02em;
}
.hz-newsletter-text p { margin: 0 0 8px; color: var(--hz-on-band-muted); font-size: 17px; }
.hz-newsletter-text > p:last-child { margin-bottom: 0; }
.hz-newsletter-form { flex: 1 1 380px; min-width: 0; font-family: var(--hz-font-heading); }
.hz-newsletter-form .footer-email-signup > h5 {
	margin: 0 0 8px;
	color: var(--hz-on-band);
	font-family: var(--hz-font-heading);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}
.hz-newsletter-form .footer-signup-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.hz-newsletter-form .footer-signup-form { margin: 0; }
.hz-newsletter-form .signup-input-group { display: flex; flex-wrap: wrap; }
.hz-newsletter-form #footerEmailInput {
	flex: 1 1 220px;
	min-width: 0;
	height: var(--hz-control-h) !important;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #fff;
	border-radius: 0;
	background: #fff;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: 16px;
	box-shadow: none;
}
.hz-newsletter-form #footerEmailInput::placeholder { color: #75777D; opacity: 1; }
.hz-newsletter-form #footerEmailInput:focus { outline: 2px solid #fff; outline-offset: 3px; box-shadow: none; }
.hz-newsletter-form #footerSignupBtn {
	flex: none;
	height: var(--hz-control-h);
	margin: 0;
	padding: 0 24px;
	border: 1px solid var(--hz-band-button);
	border-radius: 0;
	background: var(--hz-band-button);
	color: var(--hz-band-button-text);
	font-family: var(--hz-font-heading);
	font-size: 16px;
	font-weight: 500;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
}
.hz-newsletter-form #footerSignupBtn:hover { background: color-mix(in oklab, var(--hz-band-button) 85%, white); }
.hz-newsletter-form :is(.footer-signup-msg, .already-subscribed-msg) { margin: 8px 0 0; color: var(--hz-on-band); font-size: 15px; }

/* ========================================
   11. Interior: title area + breadcrumb
   Interior pages use their own two-column grid (.hz-page-grid): a 260px label column,
   which holds the section name in the title area and the sidebar below it, and the
   content column, which holds the breadcrumb, the title and the page body.
   ======================================== */
.hz-title-area { padding-top: clamp(32px, 5vw, 64px); }
.hz-title-grid {
	padding-bottom: clamp(24px, 3vw, 40px);
	border-bottom: 1px solid var(--hz-ink);
}
.hz-page-label .hz-label { margin-bottom: 18px; }
.hz-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	color: var(--hz-muted);
	font-family: var(--hz-font-heading);
	font-size: 14px;
	line-height: 1.4;
}
.hz-breadcrumb li { display: inline-flex; gap: 8px; }
.hz-breadcrumb li + li::before { content: "/"; color: var(--hz-muted); }
.hz-breadcrumb a { text-decoration: none; }
.hz-breadcrumb a:hover { text-decoration: underline; }
.hz-title-area h1 {
	max-width: 18em;
	margin: 0;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: var(--hz-fs-title);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -.03em;
	text-wrap: balance;
}
@media (min-width: 992px) {
	.hz-page-grid {
		display: grid;
		grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
		column-gap: 24px;
	}
	.hz-page-label { grid-column: 1; padding-top: 2px; }
	.hz-page-head { grid-column: 2; }
	.hz-page-label .hz-label { margin-bottom: 0; }
}

/* ========================================
   12. Main content area + sidebar
   The theme opens <main> in header.cfm and closes it in footer.cfm; the CMS writes the
   page body in between: #primary-content.c1 for the div layouts, #C1TABLE td.content for
   the older table layouts - selectors cover both (THEME_BUILD_GUIDE gotcha 4).
   ======================================== */
.main-content {
	padding: clamp(36px, 5vw, 56px) 0 clamp(64px, 7vw, 104px);
	min-height: 30vh;
}
/* Home page: the blocks above carry the page and the body is often empty */
body.is-homepage .main-content { min-height: 0; padding: var(--hz-block-y) 0; }
body.is-homepage .main-content.is-empty { display: none; }

.hz-content { min-width: 0; }
@media (min-width: 992px) {
	/* Sidebar in the label column, content beside it. The sidebar comes AFTER the content in
	   the source (footer.cfm prints it), so phones and screen readers get the content first. */
	.hz-layout.hz-page-grid .hz-content { grid-column: 2; grid-row: 1; }
	.hz-layout.hz-page-grid .hz-sidebar { grid-column: 1; grid-row: 1; }
}

/* The rich-text measure applies to TEXT, not the column: channels (calendars, directories)
   keep the full width. Only class-less elements (editor rich text) are capped, plus the
   theme's own classed pieces (gotcha 8). */
:where(.hz-content, .hz-content > div, .hz-content td.content) > :is(p, ul, ol, dl, h2, h3, h4, h5, h6, blockquote, hr, figure):not([class]),
:where(.hz-content, .hz-content > div, .hz-content td.content) > :is(.lead, .hz-table-scroll, table.table) {
	max-width: var(--hz-measure);
}

/* -- Sidebar: "In this section" + Sidebar Contact -- */
.hz-sidebar {
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-width: 0;
	margin-top: 56px;
}
@media (min-width: 992px) {
	.hz-sidebar { margin-top: 0; padding-top: 6px; }
}
.hz-section-nav .hz-label { margin-bottom: 14px; }
.hz-section-nav ul { margin: 0; padding: 0; list-style: none; }
.hz-section-nav > ul { border-top: 1px solid var(--hz-ink); }
.hz-section-nav li { margin: 0; list-style: none; }
.hz-section-nav li::marker { content: none; }
.hz-section-nav > ul > li { border-bottom: 1px solid var(--hz-line); }
.hz-section-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 0;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
}
.hz-section-nav a:hover { color: var(--hz-primary); text-decoration: underline; }
.hz-section-nav a[aria-current="page"] { font-weight: 600; }
.hz-section-nav a[aria-current="page"]::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	background: var(--hz-secondary);
}
/* Deeper pages show only under the branch you are in, indented */
.hz-sidebar .hz-section-nav ul ul { display: none; padding: 0 0 10px 16px; }
.hz-sidebar .hz-section-nav li.currentnav > ul { display: block; }
.hz-section-nav ul ul a { min-height: 40px; padding: 6px 0; color: var(--hz-muted); font-size: 15px; }
.hz-section-nav ul ul a[aria-current="page"] { color: var(--hz-ink); }

.hz-sidebar-card {
	padding: 20px 22px;
	border-top: 3px solid var(--hz-secondary);
	background: var(--hz-primary-tint);
	font-family: var(--hz-font-heading);
	font-size: 16px;
	line-height: 1.5;
}
.hz-sidebar-card > :first-child { margin-top: 0; }
.hz-sidebar-card > :last-child { margin-bottom: 0; }
.main-content .hz-sidebar-card :is(h2, h3, h4) {
	margin: 0 0 8px;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -.01em;
	text-transform: none;
}
.main-content .hz-sidebar-card p { margin: 0 0 8px; }

.admin-edit-link { margin-bottom: 16px; text-align: right; }

/* ========================================
   13. Rich-text elements - styled by element, no classes needed. Scoped to the content
   area; each rule pairs with .main-content so it outranks single-class rules (gotcha 1).
   ======================================== */
.main-content h1 {
	margin: 0 0 20px;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: var(--hz-fs-title);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -.03em;
	text-wrap: balance;
}
.main-content h2 {
	margin: 52px 0 14px;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: var(--hz-fs-h2);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -.02em;
	text-wrap: balance;
}
.main-content h3 {
	margin: 40px 0 10px;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: var(--hz-fs-h3);
	font-weight: 500;
	line-height: 1.22;
	letter-spacing: -.015em;
	text-wrap: balance;
}
.main-content h4 {
	margin: 36px 0 10px;
	color: var(--hz-label);
	font-family: var(--hz-font-heading);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.main-content :is(h5, h6) {
	margin: 28px 0 8px;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}
/* First thing in the body: no top margin */
:where(.hz-content, .hz-content > div, .hz-content > div > div, .hz-content td.content) > :is(h1, h2, h3, h4, h5, h6):first-child,
.hz-content .cs-edit-marker:first-child + :is(h1, h2, h3, h4, h5, h6) { margin-top: 0; }

.main-content p { margin: 0 0 20px; text-wrap: pretty; }
.main-content .lead {
	margin: 0 0 32px;
	color: var(--hz-muted);
	font-family: var(--hz-font-body);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.45;
}

.hz-content :is(p, li, td, dd, figcaption, blockquote) a:not(.btn) {
	color: var(--hz-primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.hz-content :is(p, li, td, dd, figcaption, blockquote) a:not(.btn):hover {
	color: var(--hz-primary-dark);
	text-decoration-thickness: 2px;
}

/* Lists: square markers in the secondary colour (decorative), numbers in the heading font */
.main-content .hz-content :is(ul, ol):not([class]) {
	margin: 0 0 24px;
	padding-left: 24px;
}
.main-content .hz-content :is(ul, ol):not([class]) li { margin-bottom: 8px; padding-left: 4px; }
.main-content .hz-content ul:not([class]) { list-style: square; }
.main-content .hz-content ul:not([class]) li::marker { color: var(--hz-secondary); font-size: 1.1em; }
.main-content .hz-content ol:not([class]) li::marker {
	color: var(--hz-primary);
	font-family: var(--hz-font-heading);
	font-weight: 600;
}
.main-content .hz-content :is(ul, ol):not([class]) :is(ul, ol) { margin: 8px 0 0; }

.main-content figure { margin: 36px 0; }
.main-content figure img { display: block; width: 100%; }
.main-content figcaption {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--hz-line);
	color: var(--hz-muted);
	font-family: var(--hz-font-heading);
	font-size: 14px;
	line-height: 1.5;
}

.main-content blockquote {
	margin: 40px 0;
	padding: 4px 0 4px 24px;
	border: 0;
	border-left: 3px solid var(--hz-secondary);
}
.main-content blockquote p {
	margin: 0 0 12px;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: -.01em;
}
.main-content blockquote :is(footer, cite) {
	display: block;
	color: var(--hz-muted);
	font-family: var(--hz-font-heading);
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.main-content blockquote footer::before { content: none; }

.main-content hr {
	margin: 48px 0;
	border: 0;
	border-top: 1px solid var(--hz-line);
	opacity: 1;
}

/* Data tables. Deliberately NOT a bare "table, th, td" rule: core renders several channels
   (login, email signup, mini calendar) as layout tables, and the table page layout
   (#C1TABLE) contains the editor's table (gotcha 4). Styled: tables with their OWN header
   cells, and anything with class="table". theme.js wraps them for sideways scrolling. */
.main-content :is(.hz-content table:has(> thead > tr > th, > tbody > tr > th, > tr > th), table.table) {
	width: 100%;
	margin: 0 0 28px;
	border-collapse: collapse;
	border-top: 1px solid var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: 16px;
	line-height: 1.45;
	--bs-table-bg: transparent;
}
.main-content :is(.hz-content table:has(> thead > tr > th, > tbody > tr > th, > tr > th), table.table) :is(thead th, tr:first-child > th) {
	padding: 12px 16px 12px 0;
	border-bottom: 1px solid var(--hz-ink);
	color: var(--hz-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-align: left;
	text-transform: uppercase;
	vertical-align: bottom;
}
.main-content :is(.hz-content table:has(> thead > tr > th, > tbody > tr > th, > tr > th), table.table) td {
	padding: 14px 16px 14px 0;
	border-bottom: 1px solid var(--hz-line);
	vertical-align: top;
}
.main-content :is(.hz-content table:has(> thead > tr > th, > tbody > tr > th, > tr > th), table.table) caption {
	caption-side: top;
	padding: 0 0 10px;
	color: var(--hz-muted);
	font-size: 14px;
}
.hz-table-scroll { overflow-x: auto; overflow-y: hidden; margin: 0 0 28px; }
.hz-table-scroll > table { margin-bottom: 0 !important; }

/* Bootstrap card (the "Contact card" snippet): square, hairline */
.main-content .card {
	margin: 0 0 24px;
	border: 1px solid var(--hz-line);
	border-top: 3px solid var(--hz-secondary);
	border-radius: 0;
	background: #fff;
	font-family: var(--hz-font-heading);
	font-size: 16px;
	line-height: 1.5;
}
.main-content .card-body { padding: 20px 22px; }
.main-content .card-body > :last-child { margin-bottom: 0; }
.main-content .card :is(.card-title, h2, h3, h4) {
	margin: 0 0 8px;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: 19px;
	font-weight: 500;
	letter-spacing: -.01em;
	text-transform: none;
}
.main-content .card p { margin-bottom: 8px; }

/* ========================================
   14. Forms, pagination
   main.css styles every input/select/textarea (2px #ccc border, 100% height, bottom margin;
   text inputs get "height: inherit !important"). The :is(..., #hz-form-scope) scope reaches
   one-ID strength so these win; #hz-form-scope itself matches nothing. min-height sets the
   50px control height because main.css pins height with !important.
   ======================================== */
:is(.main-content, #hz-form-scope) :is(
	input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
	input[type="number"], input[type="password"], input[type="search"],
	input[type="date"], input[type="time"], select, textarea
):where(:not(.hasDatepicker, .currency, .footer-email-input)) {
	min-height: var(--hz-control-h);
	padding: 0 14px;
	border: 1px solid var(--hz-control-line);
	border-radius: var(--hz-radius);
	background-color: #fff;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: 16px;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color var(--hz-ease), box-shadow var(--hz-ease);

	&:hover { border-color: var(--hz-ink); }
	&:focus {
		border-color: var(--hz-primary);
		box-shadow: inset 0 0 0 1px var(--hz-primary);
		outline: 2px solid var(--hz-focus);
		outline-offset: 2px;
	}
	&:is([aria-invalid="true"], .is-invalid, .error) { border-color: var(--hz-error); }
}
:is(.main-content, #hz-form-scope) textarea { min-height: 140px; padding-top: 12px; padding-bottom: 12px; }
:is(.main-content, #hz-form-scope) select { padding-right: 36px; }

.main-content label,
.main-content .form-label {
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: 15px;
	font-weight: 500;
}
.main-content :is(.form-text, .help-block, small.text-muted) { color: var(--hz-muted); font-family: var(--hz-font-heading); font-size: 14px; }
.main-content :is(.invalid-feedback, .error-message, .errorMsg) { color: var(--hz-error); font-family: var(--hz-font-heading); font-size: 14px; }
.main-content :is(input[type="checkbox"], input[type="radio"]) {
	width: 20px;
	height: 20px;
	accent-color: var(--hz-primary);
	vertical-align: -4px;
}
.main-content fieldset { margin: 0 0 24px; padding: 0; border: 0; }
.main-content legend {
	margin-bottom: 14px;
	color: var(--hz-label);
	font-family: var(--hz-font-heading);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Pagination (Bootstrap markup, used by several channels) */
.main-content .pagination {
	--bs-pagination-border-radius: 0;
	gap: 6px;
	flex-wrap: wrap;
	font-family: var(--hz-font-heading);
}
.main-content .pagination .page-link {
	display: grid;
	place-items: center;
	min-width: var(--hz-tap);
	min-height: var(--hz-tap);
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--hz-line);
	border-radius: 0 !important;
	background: #fff;
	color: var(--hz-ink);
	font-size: 15px;
	text-decoration: none;
	box-shadow: none;
}
.main-content .pagination .page-link:hover { border-color: var(--hz-ink); background: var(--hz-primary-tint); color: var(--hz-ink); }
.main-content .pagination .active > .page-link,
.main-content .pagination .page-link.active { border-color: var(--hz-primary); background: var(--hz-primary); color: #fff; }
.main-content .pagination .disabled > .page-link { border-color: var(--hz-line); background: #fff; color: var(--hz-muted); opacity: .6; }

/* ========================================
   15. Buttons
   Design: 50px, square, heading font 500 16px. Primary = brand fill; secondary = outline that
   fills on hover. main.css paints every .btn / .submit / .appInputButton green through one
   shared rule (and some of its button rules are id-scoped), so the scope below reaches
   one-ID strength (as in Ledger, KB 814). #hz-button-scope matches nothing. To override from
   custom.css use the same scope plus one class:
       :is(.main-content, #hz-button-scope) .appInputButton.appInputButton
   Left alone: .btn-close, store colour variants (meaningful in the cart), and module buttons
   that style themselves.
   ======================================== */
:is(.main-content, #hz-button-scope) :is(
	.btn,
	.submit,
	.appInputButton,
	input[type="submit"]:where(:not([class])),
	input[type="button"]:where(:not([class])),
	button[type="submit"]:where(:not([class])),
	.form-actions button
):where(:not(.btn-close, .btn-link, .button-green, .button-gray, .button-red, .button-blue, .button-burgundy)) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: var(--hz-control-h);
	padding: 0 22px;
	border: 1px solid var(--hz-primary);
	border-radius: var(--hz-radius);
	background-color: var(--hz-primary);
	background-image: none;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	font-family: var(--hz-font-heading);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--hz-ease), border-color var(--hz-ease), color var(--hz-ease);

	&:hover,
	&:focus-visible,
	&:active,
	&.active {
		background-color: var(--hz-primary-dark);
		border-color: var(--hz-primary-dark);
		color: #fff;
	}
	&:disabled, &.disabled {
		background-color: var(--hz-line);
		border-color: var(--hz-line);
		color: var(--hz-muted);
		cursor: not-allowed;
		opacity: 1;
	}
	&.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
	&.btn-lg { min-height: 56px; padding: 0 28px; font-size: 18px; }

	/* Secondary: outline that fills with the primary on hover */
	&:is(.btn-secondary, .btn-default, .btn-light, .btn-outline-primary, .btn-outline-secondary, .btn-outline-dark) {
		background-color: transparent;
		border-color: var(--hz-primary);
		color: var(--hz-primary);

		&:hover, &:focus-visible, &:active, &.active {
			background-color: var(--hz-primary);
			border-color: var(--hz-primary);
			color: #fff;
		}
	}
	/* Accent: the secondary colour as a fill, with its readable text colour */
	&:is(.btn-accent, .btn-warning) {
		background-color: var(--hz-band-button);
		border-color: var(--hz-band-button);
		color: var(--hz-band-button-text);

		&:hover, &:focus-visible { background-color: color-mix(in oklab, var(--hz-band-button) 85%, black); border-color: color-mix(in oklab, var(--hz-band-button) 85%, black); color: var(--hz-band-button-text); }
	}
}

:is(.main-content, #hz-button-scope) .btn.btn-link {
	min-height: 0;
	padding: 0;
	border-color: transparent;
	background: transparent;
	color: var(--hz-primary);
	text-decoration: underline;
	text-underline-offset: 3px;

	&:hover, &:focus-visible { background: transparent; color: var(--hz-primary-dark); }
}

/* The one core button rule stronger than the scope above (1,3,0). Same selector here, so
   load order decides. */
#showdocumentlist span.pull-right .btn-success:hover {
	background-color: var(--hz-primary-dark);
	border-color: var(--hz-primary-dark);
	color: #fff;
}

/* A paragraph of buttons (the "Button pair" snippet) */
.main-content p:has(> .btn + .btn) { display: flex; flex-wrap: wrap; gap: 12px; }

/* ========================================
   16. Platform channel typography
   Channels mark their text with shared classes (.appTitle1-3, .appOutput, .appLinkInline);
   main.css only gives them grey em sizes. Channel BOXES are styled by Brand Look tokens;
   channel TEXT is mapped here.
   ======================================== */
.appTitle1,
.main-content .appTitle1 {
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: var(--hz-fs-h2);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -.02em;
}
.appTitle2,
.main-content .appTitle2 {
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: var(--hz-fs-h3);
	font-weight: 500;
	line-height: 1.22;
}
.appTitle3,
.main-content .appTitle3 {
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}
.appOutput { color: var(--hz-ink); line-height: 1.55; }
a.appLinkInline,
.appLinkInline a { color: var(--hz-primary); }
a.appLinkInline:hover,
.appLinkInline a:hover { color: var(--hz-primary-dark); }

/* ========================================
   17. Footer
   ======================================== */
.hz-footer {
	padding: clamp(48px, 6vw, 72px) 0 28px;
	border-top: 1px solid var(--hz-line);
	background: var(--hz-primary-tint);
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: 16px;
	line-height: 1.5;
}
.hz-footer-cols {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 24px;
}
.hz-footer-cols > * { min-width: 0; }
.hz-footer-col { flex: 1 1 180px; }
.hz-footer-col > :last-child,
.hz-footer-org > :last-child { margin-bottom: 0; }

/* Organization block: small logo + name (the section's first heading), then the address */
.hz-footer-org { flex: 1 1 280px; max-width: 420px; }
.hz-footer-org.has-mark {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 12px;
	align-content: start;
}
.hz-footer-org.has-mark > * { grid-column: 1 / -1; }
.hz-footer-org.has-mark > .hz-footer-mark { grid-column: 1; grid-row: 1; align-self: center; line-height: 0; }
.hz-footer-org.has-mark > :is(h2, h3, h4):first-of-type { grid-column: 2; grid-row: 1; align-self: center; }
.hz-footer-mark .hz-sun { display: block; width: 49px; height: 28px; }
.hz-footer-mark img { display: block; width: auto; height: auto; max-height: 28px; max-width: 120px; }
.hz-footer-org :is(h2, h3, h4):first-of-type {
	margin: 0;
	color: var(--hz-ink);
	font-family: var(--hz-font-heading);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.2;
	text-wrap: balance;
}
.hz-footer-org > :is(h2, h3, h4):first-of-type + * { margin-top: 16px; }
.hz-footer-org p,
.hz-footer-org address {
	margin: 0 0 8px;
	color: var(--hz-muted);
	font-style: normal;
	line-height: 1.7;
}

.hz-footer-col :is(h2, h3, h4) {
	margin: 4px 0 16px;
	color: var(--hz-muted);
	font-family: var(--hz-font-heading);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.hz-footer-col ul {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hz-footer-col li { margin: 0; }
.hz-footer-col li a {
	display: inline-block;
	padding: 5px 0;
	color: var(--hz-ink);
	text-decoration: none;
}
.hz-footer-col li a:hover { color: var(--hz-ink); text-decoration: underline; }

/* Follow: 44px square icon buttons (scoped past the link-list rules above) */
.hz-footer-col .hz-social-boxed :is(ul, p) { display: flex; flex-wrap: wrap; gap: 6px; }
.hz-footer-col .hz-social-boxed li a {
	display: grid;
	place-items: center;
	width: var(--hz-tap);
	height: var(--hz-tap);
	border: 1px solid var(--hz-ink);
	color: var(--hz-ink);
	text-decoration: none;
	transition: background-color var(--hz-ease), color var(--hz-ease);
}
.hz-footer-col .hz-social-boxed li a:hover { background: var(--hz-ink); color: #fff; text-decoration: none; }
.hz-footer-col .hz-social-boxed li a { padding: 0; }

/* Bottom row: "Footer Text" - copyright line and links, all inline */
.hz-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 48px;
	padding-top: 20px;
	border-top: 1px solid var(--hz-line);
	color: var(--hz-muted);
	font-size: 14px;
}
.hz-footer-bottom > p { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.hz-footer-bottom a { color: var(--hz-muted); }
.hz-footer-bottom a:hover { color: var(--hz-ink); }

/* ========================================
   18. Reduced motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition: none !important;
		animation: none !important;
	}
}
