/* ==========================================================================
   Castle Hill United FC — theme styles (v1.2)

   Direction: a Saturday morning at Fred Caterson Reserve. Club green and
   white, black type, photos of our own players. The one decorative idea is
   chalk pitch markings on green; everything else stays plain.
   Colours, fonts and sizes live in theme.json.
   ========================================================================== */

:root {
	--chu-radius: 6px;
	--chu-green: var(--wp--preset--color--forest);
	--chu-deep: var(--wp--preset--color--night);
	--chu-ink: var(--wp--preset--color--ink);
	--chu-muted: var(--wp--preset--color--muted);
	--chu-line: var(--wp--preset--color--line);
	--chu-paper: var(--wp--preset--color--mist);
	--chu-tint: var(--wp--preset--color--mint);
	/* Chalk pitch markings, drawn once and reused. */
	--chu-pitch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 640' fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='3'%3E%3Crect x='30' y='30' width='1140' height='580'/%3E%3Cpath d='M600 30v580'/%3E%3Ccircle cx='600' cy='320' r='96'/%3E%3Ccircle cx='600' cy='320' r='5' fill='%23ffffff' fill-opacity='.16'/%3E%3Cpath d='M1170 150h-176v340h176M1170 238h-60v164h60'/%3E%3Cpath d='M994 260a80 80 0 0 0 0 120'/%3E%3Cpath d='M30 150h176v340H30M30 238h60v164H30'/%3E%3Cpath d='M206 260a80 80 0 0 1 0 120'/%3E%3C/svg%3E");
	--chu-arc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='3'%3E%3Cpath d='M200 0v400'/%3E%3Ccircle cx='200' cy='200' r='120'/%3E%3Ccircle cx='200' cy='200' r='5' fill='%23ffffff' fill-opacity='.16'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3) { text-wrap: balance; }
:where(p, li) { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--chu-green); outline-offset: 3px; }
[id] { scroll-margin-top: 96px; }
.wp-site-blocks > header + *, .wp-site-blocks > main, .wp-site-blocks > footer { margin-block-start: 0; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
.chu-header { border-bottom: 1px solid var(--chu-line); }
.chu-crest { margin: 0; flex: none; }
.chu-crest img { display: block; height: auto; }
.chu-wordmark { margin: 0; font-weight: 800; font-size: 1.05rem; line-height: 1.1; letter-spacing: -0.01em; }
.chu-wordmark a { color: var(--chu-ink); text-decoration: none; }
.chu-wordmark span { font-weight: 500; font-size: 0.85rem; color: var(--chu-muted); letter-spacing: 0; }

.chu-nav .wp-block-navigation-item__content { text-decoration: none; padding-block: 0.35rem; }
.chu-nav > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
.chu-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--chu-green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.chu-nav .wp-block-navigation__submenu-container {
	background: #fff !important;
	color: var(--chu-ink) !important;
	border: 1px solid var(--chu-line) !important;
	border-radius: var(--chu-radius);
	padding: 0.4rem !important;
	min-width: 260px !important;
	box-shadow: 0 12px 32px rgba(13, 59, 32, 0.12);
	font-weight: 500;
}
.chu-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.5rem 0.7rem !important; border-radius: 4px; font-size: var(--wp--preset--font-size--sm); }
.chu-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--chu-tint); color: var(--chu-deep); }

@media (max-width: 1023px) {
	.chu-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.chu-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.chu-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem clamp(1rem, 5vw, 2.5rem) 2rem; }
.chu-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 0.9rem; padding-top: 3rem; }
.chu-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.05rem; }
.chu-nav .is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content { font-weight: 800; font-size: 1.25rem; color: var(--chu-green); }
.chu-nav .is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none; padding: 0.2rem 0 0.6rem !important; }
.chu-header-cta { flex: none; }
.chu-header-cta .wp-block-button__link { padding: 0.6rem 1.1rem; }
@media (max-width: 420px) { .chu-wordmark { font-size: 0.95rem; } .chu-wordmark span { font-size: 0.78rem; } .chu-crest img { width: 42px !important; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.wp-block-button__link { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.is-style-chu-light .wp-block-button__link { background: #fff !important; color: var(--chu-deep) !important; }
.is-style-chu-light .wp-block-button__link:hover { background: var(--chu-tint) !important; }
.is-style-chu-ghost .wp-block-button__link { background: transparent !important; color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.is-style-chu-ghost .wp-block-button__link:hover { box-shadow: inset 0 0 0 2px #fff; background: rgba(255, 255, 255, 0.08) !important; }
.is-style-chu-dark .wp-block-button__link { background: var(--chu-ink) !important; color: #fff !important; }
.is-style-chu-dark .wp-block-button__link:hover { background: var(--chu-deep) !important; }
.is-style-outline .wp-block-button__link { background: transparent !important; color: var(--chu-green) !important; border: 2px solid currentColor; padding: calc(0.8rem - 2px) calc(1.3rem - 2px); }
.is-style-outline .wp-block-button__link:hover { color: var(--chu-deep) !important; background: var(--chu-tint) !important; }

/* --------------------------------------------------------------------------
   Homepage hero: split layout on deep green
   -------------------------------------------------------------------------- */
.chu-hero { position: relative; overflow: hidden; isolation: isolate; }
.chu-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(60rem 36rem at 85% 30%, rgba(23, 119, 58, 0.75), transparent 60%), radial-gradient(30rem 24rem at 0% 100%, rgba(155, 216, 172, 0.14), transparent 70%); }
.chu-hero::after { content: ""; position: absolute; right: -14rem; bottom: -10rem; width: 44rem; height: 44rem; z-index: -1; pointer-events: none; background: var(--chu-arc) center / contain no-repeat; opacity: 0.6; }
.chu-hero-cols { gap: clamp(2rem, 5vw, 4.5rem) !important; }
.chu-hero-eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1.4rem !important; padding: 0.4rem 0.85rem; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.88); }
.chu-hero-eyebrow::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--wp--preset--color--pitch); box-shadow: 0 0 0 4px rgba(155, 216, 172, 0.2); }
.chu-hero-title { font-family: var(--wp--preset--font-family--display); font-weight: 400; line-height: 0.92; letter-spacing: 0; margin: 0 0 1.4rem !important; color: #fff; font-size: clamp(3rem, 7.2vw, 6.25rem) !important; max-width: 11ch; text-wrap: balance; }
.chu-hero-title span { color: var(--wp--preset--color--pitch); }
.chu-hero-text { max-width: 32rem; color: rgba(255, 255, 255, 0.86); margin: 0 !important; }
.chu-hero-buttons { margin-top: 2rem !important; gap: 0.75rem !important; }
.chu-hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2.25rem 0 0 !important; max-width: 36rem; }
.chu-hero-chips a { display: inline-flex; align-items: baseline; gap: 0.4rem; padding: 0.45rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; text-decoration: none; font-size: 0.875rem; font-weight: 600; transition: background 0.15s, border-color 0.15s; }
.chu-hero-chips a:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.35); }
.chu-hero-chips span { font-weight: 500; color: var(--wp--preset--color--pitch); font-size: 0.8125rem; }
.chu-hero-note { margin-top: 1.25rem !important; color: rgba(255, 255, 255, 0.7); }
.chu-hero-media { position: relative; }
.chu-hero-photo { margin: 0 !important; position: relative; }
.chu-hero-photo img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 60% 50%; border-radius: 1.5rem; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55); }
.chu-hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: 1.5rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); pointer-events: none; }
.chu-hero-badge { position: absolute; left: -1.5rem; bottom: -1.5rem; margin: 0 !important; max-width: 17rem; padding: 0.9rem 1.1rem 0.95rem; border-radius: 1rem; background: #fff; color: var(--chu-ink); font-size: 0.875rem; line-height: 1.35; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45); }
.chu-hero-badge strong { display: block; font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 1.35rem; line-height: 1.05; color: var(--chu-green); margin-bottom: 0.25rem; }
@media (max-width: 781px) {
	.chu-hero-cols { flex-direction: column-reverse; }
	.chu-hero-media { width: 100%; }
	.chu-hero-badge { left: 0.75rem; bottom: -1.1rem; max-width: 13.5rem; padding: 0.6rem 0.8rem; font-size: 0.75rem; }
	.chu-hero-badge strong { font-size: 1.05rem; }
	.chu-hero-copy { padding-top: 1.5rem; }
	.chu-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.chu-hero .wp-block-button__link { width: 100%; }
}

/* --------------------------------------------------------------------------
   2027 trials: site banner, menu item and homepage cards
   -------------------------------------------------------------------------- */
.chu-trials-bar { background: var(--wp--preset--color--pitch); color: var(--chu-deep); font-size: 0.875rem; }
.chu-trials-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0.55rem var(--wp--style--root--padding-right) 0.55rem var(--wp--style--root--padding-left); display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.1rem; row-gap: 0.2rem; }
.chu-trials-bar-lead { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; }
.chu-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--chu-green); box-shadow: 0 0 0 0 rgba(23, 119, 58, 0.6); animation: chu-pulse 2s infinite; }
@keyframes chu-pulse { 70% { box-shadow: 0 0 0 7px rgba(23, 119, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 119, 58, 0); } }
@media (prefers-reduced-motion: reduce) { .chu-dot { animation: none; } }
.chu-trials-bar-scope { color: rgba(13, 59, 32, 0.8); }
.chu-trials-bar-next { font-weight: 600; }
.chu-trials-bar a { margin-left: auto; font-weight: 800; color: var(--chu-deep); text-decoration: underline; text-underline-offset: 0.2em; white-space: nowrap; }
@media (max-width: 1180px) { .chu-trials-bar-scope { display: none; } }
@media (max-width: 600px) { .chu-trials-bar-inner { font-size: 0.8125rem; } .chu-trials-bar a { margin-left: 0; } }

.chu-nav .chu-nav-trials > .wp-block-navigation-item__content { color: var(--chu-green); font-weight: 800; }
.chu-nav .chu-nav-trials > .wp-block-navigation-item__content::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; margin-right: 0.4rem; border-radius: 50%; background: var(--chu-green); vertical-align: 0.12em; }

.chu-trials-home { background: var(--chu-paper); }
.chu-trial-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; max-width: var(--wp--style--global--wide-size); margin: 2rem auto 0 !important; }
.chu-trial-card { background: #fff; border: 1px solid var(--chu-line); border-radius: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; }
.chu-trial-card > * { margin: 0; }
.chu-trial-kicker { display: inline-block; align-self: flex-start; padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--chu-tint); color: var(--chu-deep); font-size: 0.8125rem; font-weight: 700; }
.chu-trial-card h3 { margin-top: 0.85rem; font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; }
.chu-trial-text { margin-top: 0.6rem !important; color: var(--chu-muted); font-size: var(--wp--preset--font-size--sm); }
.chu-trial-list { list-style: none; padding: 0; margin: 1.25rem 0 0 !important; border-top: 2px solid var(--chu-ink); }
.chu-trial-list li { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--chu-line); font-size: 0.9375rem; }
.chu-trial-list li.is-done { opacity: 0.45; text-decoration: line-through; }
.chu-trial-team { display: block; font-weight: 700; }
.chu-trial-when { display: block; margin-top: 0.15rem; font-variant-numeric: tabular-nums; }
.chu-trial-time { color: var(--chu-muted); }
.chu-trial-time::before { content: " · "; }
.chu-trial-links { margin-top: auto !important; padding-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; }
.chu-trial-btn { display: inline-block; padding: 0.65rem 1.1rem; border-radius: var(--chu-radius); background: var(--chu-green); color: #fff !important; text-decoration: none !important; font-weight: 700; }
.chu-trial-btn:hover { background: var(--chu-deep); }
.chu-trial-links a:not(.chu-trial-btn) { color: var(--chu-ink); font-weight: 600; }
.chu-trials-foot { max-width: var(--wp--style--global--wide-size); margin: 1.25rem auto 0 !important; color: var(--chu-muted); font-size: var(--wp--preset--font-size--sm); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.chu-section h2 { margin-top: 0; }
.chu-section-head { margin-bottom: var(--wp--preset--spacing--30); row-gap: 0.5rem !important; }
.chu-section-head p { margin: 0; }
.chu-kicker { margin: 0 0 0.5rem !important; font-weight: 700; color: var(--chu-green); }
.chu-photo { margin: 0; }
.chu-photo img { border-radius: var(--chu-radius); display: block; width: 100%; }

/* Coming up */
.chu-coming { border-bottom: 1px solid var(--chu-line); }
.chu-coming-title { margin-top: 0 !important; margin-bottom: 1rem !important; }
.chu-coming-item { padding: 0.25rem 1.5rem 0.25rem 0; }
.chu-coming-item + .chu-coming-item { border-left: 1px solid var(--chu-line); padding-left: 1.5rem; }
.chu-coming-item > * { margin-block: 0 0.4rem; }
.chu-coming-item h3 { margin-top: 0.3rem; }
.chu-coming-item h3 a { color: var(--chu-ink); }
.chu-date { color: var(--chu-muted); font-size: var(--wp--preset--font-size--sm); }
.chu-date strong { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--chu-green); margin-right: 0.15em; }
@media (max-width: 900px) {
	.chu-coming-item, .chu-coming-item + .chu-coming-item { border-left: 0; padding: 1rem 0; border-top: 1px solid var(--chu-line); }
}

/* Programs as a team sheet */
.chu-sheet { border-top: 2px solid var(--chu-ink); }
.chu-sheet-row {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr) 11rem;
	grid-template-areas: "age name when" "age desc when";
	column-gap: 1.5rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--chu-line);
}
.chu-sheet-row > * { margin: 0 !important; }
.chu-sheet-age { grid-area: age; font-family: var(--wp--preset--font-family--display); font-size: 2rem; line-height: 1; color: var(--chu-green); }
.chu-sheet-name { grid-area: name; }
.chu-sheet-name a { color: var(--chu-ink); text-decoration: none; }
.chu-sheet-name a:hover { text-decoration: underline; color: var(--chu-green); }
.chu-sheet-desc { grid-area: desc; color: var(--chu-muted); margin-top: 0.25rem !important; max-width: 60ch; }
.chu-sheet-when { grid-area: when; font-weight: 600; font-size: var(--wp--preset--font-size--sm); align-self: center; text-align: right; }
@media (max-width: 700px) {
	.chu-sheet-row { grid-template-columns: 1fr; grid-template-areas: "age" "name" "desc" "when"; }
	.chu-sheet-age { font-size: 1.6rem; margin-bottom: 0.25rem !important; }
	.chu-sheet-when { text-align: left; margin-top: 0.4rem !important; color: var(--chu-green); }
}

/* Why families stay */
.chu-reasons p { margin: 0 0 1rem; }
.chu-reasons strong { color: var(--chu-deep); }

/* Help run the club */
.chu-involved-lede { margin-top: 0.5rem !important; margin-bottom: var(--wp--preset--spacing--30) !important; max-width: 52ch; }
.chu-involve { border-top: 3px solid var(--chu-green); padding-top: 1rem; }
.chu-involve > * { margin-block: 0 0.6rem; }

/* Sponsors: logos in a ruled grid, full colour */
.chu-logos { border-top: 1px solid var(--chu-line); border-left: 1px solid var(--chu-line); }
.chu-logos .chu-logo {
	margin: 0 !important;
	height: 110px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 1.25rem;
	border-right: 1px solid var(--chu-line);
	border-bottom: 1px solid var(--chu-line);
	background: #fff;
}
.chu-logos .chu-logo a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.chu-logos .chu-logo img { max-height: 58px; max-width: 100%; width: auto; object-fit: contain; }

/* Local info and questions */
.chu-venue { padding-left: 1rem; border-left: 3px solid var(--chu-green); }
.chu-faq .wp-block-details { border-bottom: 1px solid var(--chu-line); padding: 0; margin: 0; }
.chu-faq .wp-block-details:first-child { border-top: 1px solid var(--chu-line); }
.chu-faq summary { list-style: none; cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 700; position: relative; }
.chu-faq summary::-webkit-details-marker { display: none; }
.chu-faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.9rem; font-size: 1.35rem; line-height: 1; color: var(--chu-green); font-weight: 600; }
.chu-faq details[open] summary::after { content: "\2212"; }
.chu-faq .wp-block-details > :not(summary) { margin: 0 0 1.1rem; color: var(--chu-muted); max-width: 64ch; }

/* Registration call to action */
.chu-cta h2 { margin: 0; color: #fff; }
.chu-cta p { margin: 0.4rem 0 0; color: rgba(255, 255, 255, 0.9); }
.chu-cta { background-image: var(--chu-arc); background-repeat: no-repeat; background-size: 340px auto; background-position: right -60px center; }

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */
.chu-page-head { background-image: var(--chu-arc); background-repeat: no-repeat; background-size: 420px auto; background-position: right -90px center; }
.chu-page-head .wp-block-post-title, .chu-page-head h1 { margin: 0.6rem 0 0; color: #fff; max-width: 20ch; }
.chu-page-head .wp-block-post-date, .chu-page-head .chu-post-date { color: rgba(255, 255, 255, 0.85); }
.chu-page-head .wp-block-post-date a { color: inherit; }
.chu-hero-excerpt { max-width: 60ch; margin-top: 0.9rem !important; color: rgba(255, 255, 255, 0.9); }
.chu-hero-excerpt p { margin: 0; }
.chu-search { max-width: 520px; margin-top: 1.25rem; }
.chu-search .wp-block-search__input { border-radius: var(--chu-radius); padding: 0.7rem 0.9rem; border: 0; }
.chu-search .wp-block-search__button { border-radius: var(--chu-radius); margin-left: 0.5rem; background: #fff; color: var(--chu-deep); }

/* Breadcrumbs */
.chu-crumbs { font-size: var(--wp--preset--font-size--sm); color: rgba(255, 255, 255, 0.85); }
.chu-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.chu-crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }
.chu-crumbs a { color: #fff; }
.chu-crumbs [aria-current] { opacity: 0.85; }

/* Inner pages: one left edge for headings, text and wide sections */
.chu-page-body > .wp-block-post-content { max-width: var(--wp--style--global--wide-size) !important; margin-left: auto !important; margin-right: auto !important; }
.chu-page-body > .wp-block-post-content > :not(.alignwide):not(.alignfull) { max-width: var(--wp--style--global--content-size) !important; margin-left: 0 !important; margin-right: auto !important; }
.chu-page-body > .wp-block-post-content > .alignwide { max-width: var(--wp--style--global--wide-size) !important; margin-left: 0 !important; margin-right: 0 !important; }

/* Page content rhythm */
.wp-block-post-content > * + * { margin-block-start: 1.2rem; }
.wp-block-post-content > .wp-block-heading { margin-block-start: var(--wp--preset--spacing--50); }
.wp-block-post-content > .wp-block-heading + * { margin-block-start: 0.75rem; }
.wp-block-post-content > :first-child { margin-block-start: 0; }
.wp-block-post-content > .alignwide, .wp-block-post-content > .wp-block-columns { margin-block-start: var(--wp--preset--spacing--40); }
.chu-lede { font-size: var(--wp--preset--font-size--lg); line-height: 1.55; }
.chu-small { font-size: var(--wp--preset--font-size--sm); color: var(--chu-muted); }

/* Quick facts: a ruled list, label above value */
.chu-glance { border-top: 2px solid var(--chu-ink); border-bottom: 1px solid var(--chu-line); padding-block: 1rem; row-gap: 1rem !important; }
.chu-glance .chu-stat { margin: 0 !important; font-weight: 700; line-height: 1.35; }
.chu-glance .chu-stat strong { display: block; font-size: var(--wp--preset--font-size--sm); font-weight: 500; color: var(--chu-muted); margin-bottom: 0.2rem; }

/* Lists */
.chu-check { list-style: none; padding-left: 0; }
.chu-check li { position: relative; padding-left: 1.3rem; margin-block: 0.45rem; }
.chu-check li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--chu-green); }
.chu-steps { list-style: none; padding-left: 0; counter-reset: chu-step; }
.chu-steps li { counter-increment: chu-step; position: relative; padding-left: 2.6rem; margin-block: 1rem; }
.chu-steps li::before { content: counter(chu-step); position: absolute; left: 0; top: -0.1rem; font-family: var(--wp--preset--font-family--display); font-size: 1.6rem; line-height: 1; color: var(--chu-green); width: 2rem; }

/* Grouped items (programs within a page, contacts, resources) */
.chu-item { border-top: 1px solid var(--chu-line); padding-top: 0.9rem; }
.chu-item > * { margin-block: 0 0.5rem; }
.chu-item h2, .chu-item h3 { margin-top: 0; }
.chu-item .chu-label { color: var(--chu-green); font-weight: 600; font-size: var(--wp--preset--font-size--sm); margin-bottom: 0.2rem; }
.chu-item .chu-check li { font-size: var(--wp--preset--font-size--sm); }

/* Green box for the main action on a page */
.chu-panel { border-radius: var(--chu-radius); padding: clamp(1.5rem, 4vw, 2.5rem) !important; margin-block-start: var(--wp--preset--spacing--50) !important; }
.chu-panel > * { margin-block: 0 0.75rem; }
.chu-panel > :last-child { margin-bottom: 0; }
.chu-panel h2 { margin: 0 0 0.5rem; color: #fff; }

/* Notice */
.chu-notice { background: var(--chu-tint); border-left: 3px solid var(--chu-green); border-radius: 0 var(--chu-radius) var(--chu-radius) 0; padding: 0.9rem 1.15rem; }
.chu-notice p { margin: 0; }

/* Mission statement */
.chu-bigquote { font-family: var(--wp--preset--font-family--display); font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.1; color: var(--chu-green); margin: 0; }

/* Timeline (history) */
.chu-timeline { border-left: 2px solid var(--chu-green); padding-left: 1.5rem; margin-block-start: var(--wp--preset--spacing--40) !important; }
.chu-tl-item { margin: 0 0 1.5rem !important; }
.chu-tl-item strong { display: block; font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; color: var(--chu-green); }

/* Life members */
.chu-members { row-gap: 0 !important; column-gap: 2rem !important; }
.chu-member { margin: 0 !important; padding: 0.7rem 0; border-bottom: 1px solid var(--chu-line); display: flex; gap: 1rem; align-items: baseline; }
.chu-member strong { flex: none; width: 3rem; font-variant-numeric: tabular-nums; color: var(--chu-green); }

/* Contacts */
.chu-email { word-break: break-word; }
.chu-email a { font-weight: 600; }

/* Shop */
.chu-product { text-align: left; }
.chu-product .chu-product-img { margin: 0 0 0.5rem !important; background: var(--chu-paper); border-radius: var(--chu-radius); overflow: hidden; }
.chu-product .chu-product-img img { object-fit: contain !important; padding: 0.75rem; }
.chu-product h2, .chu-product h3 { margin: 0; font-size: var(--wp--preset--font-size--md) !important; }

/* Newsletters */
.chu-newsletters { border-top: 1px solid var(--chu-line); row-gap: 0 !important; }
.chu-newsletter { margin: 0 !important; padding: 0.7rem 0; border-bottom: 1px solid var(--chu-line); }
.chu-newsletter a { font-weight: 600; }

/* Tables */
.chu-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chu-table table { border-collapse: collapse; width: 100%; font-size: var(--wp--preset--font-size--sm); font-variant-numeric: tabular-nums; }
.chu-table table.has-fixed-layout { table-layout: auto !important; }
.chu-table thead { border: 0; border-bottom: 2px solid var(--chu-ink); }
.chu-table th { text-align: left; font-weight: 700; padding: 0.6rem 0.9rem 0.6rem 0; border: 0; white-space: nowrap; }
.chu-table td { padding: 0.65rem 0.9rem 0.65rem 0; border: 0; border-bottom: 1px solid var(--chu-line); vertical-align: top; }
.chu-table th, .chu-table td { word-break: normal !important; overflow-wrap: normal !important; }
.chu-table td:first-child { font-weight: 600; }
.chu-table figcaption { margin-top: 0.6rem; color: var(--chu-muted); font-size: var(--wp--preset--font-size--xs); text-align: left; }
.chu-table-fees td:last-child, .chu-table-links td:last-child { text-align: right; white-space: nowrap; }
.chu-table-fees td:last-child { font-weight: 700; }
.chu-table-roll td:first-child, .chu-table-rounds td:nth-child(2) { white-space: nowrap; }
@media (max-width: 600px) { .chu-table table { min-width: 520px; } .chu-table.alignwide table { min-width: 720px; } .chu-table-links table, .chu-table-fees table { min-width: 0; } }

/* Images and embeds in pages */
.wp-block-post-content .wp-block-image.is-style-chu-rounded img, .is-style-chu-rounded img { border-radius: var(--chu-radius); }
.chu-gallery .wp-block-image { margin: 0; }
.chu-poster img { max-width: 480px; width: 100%; }
.wp-block-post-content .wp-block-embed figcaption { font-weight: 600; color: var(--chu-ink); text-align: left; }
.wp-block-post-content .wp-block-columns .wp-block-image { margin: 0; }

/* Posts */
.chu-post-item { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 1.5rem; padding-block: 1.25rem; border-bottom: 1px solid var(--chu-line); }
.chu-post-item .wp-block-post-featured-image { margin: 0; }
.chu-post-item .wp-block-post-featured-image img { border-radius: var(--chu-radius); }
.chu-post-text > * { margin-block: 0 0.4rem; }
.chu-post-text .wp-block-post-title a { color: var(--chu-ink); text-decoration: none; }
.chu-post-date { font-size: var(--wp--preset--font-size--sm); color: var(--chu-muted); }
@media (max-width: 600px) { .chu-post-item { grid-template-columns: 1fr; } }
.chu-terms a { font-weight: 600; }

/* Contact Form 7 */
.wpcf7 label { display: block; font-weight: 600; font-size: var(--wp--preset--font-size--sm); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
	width: 100%; margin-top: 0.35rem; padding: 0.75rem 0.9rem; border: 1px solid #9aa79f; border-radius: var(--chu-radius); font: inherit; background: #fff;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--chu-green); outline-offset: 1px; }
.wpcf7 input[type="submit"] { background: var(--chu-green); color: #fff; border: 0; border-radius: var(--chu-radius); padding: 0.8rem 1.4rem; font: inherit; font-weight: 700; cursor: pointer; }
.wpcf7 input[type="submit"]:hover { background: var(--chu-deep); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.chu-footer a { color: #fff; }
.chu-footer-brand { align-items: center; }
.chu-footer-brand figure { margin: 0; }
.chu-footer-name { margin: 0; font-weight: 800; font-size: 1.15rem; line-height: 1.15; }
.chu-footer-about { color: rgba(255, 255, 255, 0.8); max-width: 34ch; }
.chu-footer-label { margin: 0 0 0.75rem; font-weight: 700; color: var(--wp--preset--color--pitch); }
.chu-footer-list { list-style: none; padding: 0; margin: 0; font-size: var(--wp--preset--font-size--sm); }
.chu-footer-list li { padding: 0.25rem 0; }
.chu-footer-list a { color: rgba(255, 255, 255, 0.88); text-decoration: none; }
.chu-footer-list a:hover { color: #fff; text-decoration: underline; }
.chu-social a { margin-right: 1rem; }
.chu-footer-base { border-top: 1px solid rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.75); }
.chu-footer-base p { margin: 0; }
.chu-ack { max-width: 62ch; }
.chu-footer .wp-block-columns { row-gap: var(--wp--preset--spacing--40); }

/* --------------------------------------------------------------------------
   Older class names kept so pages built with v1.0/1.1 still look tidy
   until their layouts are re-applied.
   -------------------------------------------------------------------------- */
.is-style-chu-eyebrow { font-weight: 700; color: var(--chu-green); margin-bottom: 0.4rem !important; }
.chu-chip { display: block; margin: 0 0 0.25rem !important; color: var(--chu-green); font-weight: 600; font-size: var(--wp--preset--font-size--sm); }
.is-style-chu-card { border-top: 1px solid var(--chu-line); padding-top: 0.9rem; }
.is-style-chu-card > * { margin-block: 0 0.5rem; }
.chu-muted-on-dark { color: rgba(255, 255, 255, 0.85); }

/* Trial schedule tables: same column widths so stacked tables line up. */
.chu-table.chu-trials table, .chu-table.chu-trials table.has-fixed-layout { table-layout: fixed !important; width: 100%; min-width: 0 !important; }
.chu-trials th:nth-child(1) { width: 34%; }
.chu-trials th:nth-child(2) { width: 38%; }
.chu-trials th:nth-child(3) { width: 14%; }
.chu-trials th:nth-child(4) { width: 14%; }
@media (max-width: 600px) {
	.chu-trials th:nth-child(1) { width: 30%; }
	.chu-trials th:nth-child(2) { width: 40%; }
	.chu-trials th:nth-child(3) { width: 15%; }
	.chu-trials th:nth-child(4) { width: 15%; }
	.chu-trials td, .chu-trials th { font-size: 0.8125rem; padding-left: 0.25rem; padding-right: 0.25rem; }
}

/* Committee: one ruled card per role. */
.chu-people { row-gap: 0 !important; column-gap: 2rem !important; }
.chu-person { padding: 0.9rem 0 1rem; border-top: 1px solid var(--chu-line); }
.chu-person > * { margin: 0 !important; }
.chu-person-role { color: var(--chu-green); font-weight: 600; letter-spacing: 0.01em; }
.chu-person-name { font-weight: 700; font-size: var(--wp--preset--font-size--md); margin-top: 0.15rem !important; }
.chu-person-name.is-vacant { color: var(--chu-muted); font-weight: 600; font-style: italic; }
.chu-person-email { margin-top: 0.25rem !important; overflow-wrap: anywhere; }
.chu-person-email a { color: var(--chu-ink); }

/* Sponsors page: major sponsor feature and partner cards. */
.chu-sponsor-major { background: var(--chu-paper); border-radius: 1.25rem; padding: clamp(1.25rem, 4vw, 2.5rem); margin-top: var(--wp--preset--spacing--40) !important; }
.chu-sponsor-major .wp-block-columns { margin: 0; }
.chu-sponsor-major .chu-sponsor-logo { background: #fff; border-radius: 1rem; padding: 1.5rem; margin: 0; display: flex; align-items: center; justify-content: center; min-height: 11rem; }
.chu-sponsor-major .chu-sponsor-logo img { max-height: 120px; width: auto; max-width: 100%; object-fit: contain; }
.chu-sponsor-grid { gap: 1.25rem !important; }
.chu-sponsor { display: flex; flex-direction: column; border: 1px solid var(--chu-line); border-radius: 1rem; padding: 1.25rem 1.4rem 1.3rem; background: #fff; }
.chu-sponsor > * { margin: 0 !important; }
.chu-sponsor .chu-sponsor-logo { height: 5.5rem; display: flex; align-items: center; margin-bottom: 1rem !important; }
.chu-sponsor .chu-sponsor-logo img { max-height: 72px; max-width: 70%; width: auto; object-fit: contain; }
.chu-sponsor-wordmark { font-family: var(--wp--preset--font-family--display); font-size: 1.6rem; line-height: 1; color: var(--chu-deep); }
.chu-sponsor h3 { margin-bottom: 0.4rem !important; }
.chu-sponsor p + p { margin-top: 0.5rem !important; }
.chu-sponsor .chu-sponsor-link { margin-top: auto !important; padding-top: 0.9rem; }
.chu-sponsor-link a { font-weight: 700; color: var(--chu-green); }
