/* =========================================================
   Brandon United FC — theme styles
   Colours come from Customizer as CSS variables (see helpers.php):
   --bufc-yellow  Villarreal CF yellow (#FFE715)
   --bufc-blue    BUFC crest blue (#00339B)
   --bufc-navy    deep navy (#002246)
   ========================================================= */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(../fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url(../fonts/public-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url(../fonts/public-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url(../fonts/public-sans-latin-700-normal.woff2) format("woff2"); }

:root {
	--bufc-yellow: #FFE715;
	--bufc-yellow-soft: #fffbc4;
	--bufc-yellow-deep: #d9c40e;
	--bufc-blue: #00339B;
	--bufc-blue-dark: #002674;
	--bufc-navy: #002246;
	--bufc-navy-2: #142f50;

	--ink: #0d1b2e;
	--ink-2: #44526a;
	--line: #dfe3ea;
	--paper: #ffffff;
	--tint: #f4f6f9;

	--font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
	--font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1240px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--radius: 10px;
	--shadow: 0 1px 2px rgb(13 27 46 / .06), 0 8px 24px -12px rgb(13 27 46 / .18);
	--shadow-lg: 0 2px 4px rgb(13 27 46 / .08), 0 22px 40px -18px rgb(13 27 46 / .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--bufc-blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--bufc-yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--bufc-navy); border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.05; letter-spacing: .005em; text-transform: uppercase; color: var(--bufc-navy); margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.icon { flex: none; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 999; background: var(--bufc-yellow); color: var(--bufc-navy); padding: .75rem 1rem; font-weight: 700; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* The kit stripe: a thin yellow/blue band used as a signature divider */
.stripe { height: 8px; background: linear-gradient(90deg, var(--bufc-yellow) 0 70%, var(--bufc-blue) 70% 85%, var(--bufc-yellow) 85% 100%); }

/* ---------- Buttons ---------- */
.btn { --b: var(--bufc-navy); display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.4em; border: 2px solid transparent; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .15s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn--yellow { background: var(--bufc-yellow); color: var(--bufc-navy); box-shadow: 0 6px 18px -8px rgb(0 0 0 / .45); }
.btn--yellow:hover { background: #fff04f; }
.btn--navy { background: var(--bufc-navy); color: #fff; }
.btn--navy:hover { background: var(--bufc-blue); }
.btn--ghost { color: #fff; border-color: rgb(255 255 255 / .7); }
.btn--ghost:hover { background: rgb(255 255 255 / .12); border-color: #fff; }
.btn--outline-navy { color: var(--bufc-navy); border-color: var(--bufc-navy); }
.btn--outline-navy:hover { background: var(--bufc-navy); color: #fff; }
.btn--sm { font-size: 1rem; padding: .65em 1.15em; }
.btn--block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--bufc-blue); }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(4px); }

.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bufc-blue); margin-bottom: .6rem; }
.eyebrow--yellow, .eyebrow--yellow a { color: var(--bufc-yellow); }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

.pill { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: var(--tint); color: var(--ink-2); }
.pill--open { background: #dff5e6; color: #0b6b2f; }
.pill--soon { background: var(--bufc-yellow-soft); color: #6b5a00; }
.pill--waitlist { background: #fff1d6; color: #8a4b00; }
.pill--full, .pill--closed { background: #eceff3; color: #4b5566; }

/* ---------- Utility (Safe Sport) bar ---------- */
.utility-bar { background: var(--bufc-navy); color: #dbe4f0; font-size: .875rem; }
.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.utility-bar__text { display: flex; align-items: center; gap: .5em; margin: 0; }
.utility-bar__text .icon { color: var(--bufc-yellow); width: 16px; height: 16px; }
.utility-bar__link { flex: none; color: var(--bufc-navy); background: var(--bufc-yellow); padding: .2rem .75rem; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: .8125rem; }
@media (max-width: 640px) { .utility-bar__inner { flex-direction: column; align-items: flex-start; gap: .35rem; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bufc-blue); color: #fff; box-shadow: 0 2px 0 var(--bufc-yellow); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; margin-right: auto; padding-block: .4rem; }
.brand__crest { width: auto; height: 62px; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .25)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.75rem; text-transform: uppercase; letter-spacing: .01em; }
.brand__sub { font-family: var(--font-head); font-weight: 600; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bufc-yellow); margin-top: .2rem; }

.primary-nav { display: flex; align-items: center; gap: 1rem; }
.primary-nav .menu { list-style: none; display: flex; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a { display: flex; align-items: center; gap: .25em; padding: .6rem .7rem; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; border-radius: 6px; }
.primary-nav .menu > li > a:hover, .primary-nav .menu > li:focus-within > a { background: rgb(255 255 255 / .1); }
.primary-nav .menu > .current-menu-item > a, .primary-nav .menu > .current-menu-ancestor > a, .primary-nav .menu > .current_page_parent > a { box-shadow: inset 0 -3px 0 var(--bufc-yellow); border-radius: 6px 6px 0 0; }
.primary-nav .sub-toggle { display: none; }
.primary-nav .menu-item-has-children > a::after { content: ""; width: .45em; height: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); margin-left: .35em; opacity: .8; }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: .5rem; position: absolute; left: 0; top: calc(100% + 4px); min-width: 250px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border-top: 4px solid var(--bufc-yellow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.primary-nav .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu, .primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: .95rem; text-transform: none; letter-spacing: 0; padding: .55rem .75rem; }
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu .current-menu-item > a { background: var(--tint); color: var(--bufc-blue); }

.nav-toggle { display: none; background: none; border: 2px solid rgb(255 255 255 / .4); color: #fff; border-radius: 8px; padding: .45rem; cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }

@media (max-width: 1100px) {
	.nav-toggle { display: block; }
	.primary-nav { position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); z-index: 60; flex-direction: column; align-items: stretch; gap: 1rem; padding: 5.5rem 1.25rem 2rem; background: var(--bufc-navy); overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
	.nav-open .primary-nav { transform: none; visibility: visible; box-shadow: -20px 0 60px rgb(0 0 0 / .4); }
	.nav-open .nav-toggle { position: fixed; right: var(--gutter); top: 1rem; z-index: 70; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.nav-open::after { content: ""; position: fixed; inset: 0; background: rgb(0 15 35 / .5); z-index: 55; }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav .menu > li { border-bottom: 1px solid rgb(255 255 255 / .1); display: flex; flex-wrap: wrap; }
	.primary-nav .menu > li > a { flex: 1; font-size: 1.35rem; padding: .8rem .25rem; }
	.primary-nav .menu-item-has-children > a::after { display: none; }
	.primary-nav .sub-toggle { display: grid; place-items: center; width: 48px; background: none; border: 0; color: var(--bufc-yellow); cursor: pointer; }
	.primary-nav .sub-toggle .icon { width: 24px; height: 24px; transition: transform .2s; }
	.primary-nav li.is-open > .sub-toggle .icon { transform: rotate(180deg); }
	.primary-nav .sub-menu { position: static; width: 100%; display: none; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; border: 0; padding: 0 0 .75rem .5rem; }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: none; }
	.primary-nav li.is-open > .sub-menu { display: block; }
	.primary-nav .sub-menu a { color: #dbe4f0; }
	.primary-nav .sub-menu a:hover { background: rgb(255 255 255 / .08); color: #fff; }
	.header-cta { justify-content: center; font-size: 1.2rem; }
}
@media (max-width: 520px) {
	.brand__crest { height: 50px; }
	.brand__name { font-size: 1.4rem; }
	.brand__sub { font-size: .75rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--bufc-navy); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
	linear-gradient(100deg, rgb(0 20 50 / .92) 0%, rgb(0 34 70 / .78) 38%, rgb(0 51 155 / .25) 70%, rgb(0 0 0 / .05) 100%),
	linear-gradient(0deg, rgb(0 20 50 / .5), transparent 40%); }
.hero__content { padding-block: clamp(4rem, 11vw, 9rem) clamp(3.5rem, 9vw, 7rem); max-width: var(--wrap); }
.hero__title { color: #fff; font-size: clamp(2.9rem, 7.5vw, 6rem); line-height: .92; max-width: 13ch; margin-bottom: 1.25rem; }
.hero__text { font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 40ch; color: #e6edf7; margin-bottom: 2rem; }
.hero .stripe { position: absolute; bottom: 0; left: 0; right: 0; }

/* ---------- Promo band ---------- */
.promo { background: var(--bufc-yellow); color: var(--bufc-navy); position: relative; }
.promo__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: 2rem; }
.promo__eyebrow { display: flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .25rem; }
.promo__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 .25rem; }
.promo__text { margin: 0; max-width: 65ch; }
@media (max-width: 760px) { .promo__inner { flex-direction: column; align-items: flex-start; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tint { background: var(--tint); }
.section--navy { background: var(--bufc-navy); color: #dbe4f0; }
.section--navy .section-title { color: #fff; }
.section-head { margin-bottom: 2.25rem; max-width: 60ch; }
.section-head--row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; max-width: none; }
.section-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: 0 0 .4rem; position: relative; padding-bottom: .9rem; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 6px; background: var(--bufc-yellow); border-radius: 3px; }
.section-title--sm { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-intro { font-size: 1.15rem; color: var(--ink-2); margin: .75rem 0 0; }
.section--navy .section-intro { color: #c3cfdf; }
.section-more { margin: 2rem 0 0; text-align: center; }
.season + .season { margin-top: 4rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 1100px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bufc-blue); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__badge { position: absolute; left: 0; bottom: 0; background: var(--bufc-yellow); color: var(--bufc-navy); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; padding: .3rem .9rem .3rem .75rem; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.card__body { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.25rem 1.35rem; flex: 1; border-top: 4px solid var(--bufc-blue); }
.card__meta:empty { display: none; }
.card__title { font-size: 1.6rem; margin: 0; color: var(--bufc-navy); }
.card:hover .card__title { color: var(--bufc-blue); }
.card__text { color: var(--ink-2); font-size: .975rem; }
.card__tag { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .4em; font-size: .85rem; font-weight: 700; color: var(--bufc-blue); }
.card__tag .icon { width: 16px; height: 16px; }
.card__date { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bufc-blue); }

.img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background:
	radial-gradient(circle at 70% 20%, rgb(255 255 255 / .12), transparent 50%),
	linear-gradient(135deg, var(--bufc-blue), var(--bufc-navy)); }
.img-placeholder__crest { width: auto !important; height: 58% !important; object-fit: contain !important; opacity: .9; filter: drop-shadow(0 6px 12px rgb(0 0 0 / .3)); }

/* ---------- Why ---------- */
.why { position: relative; overflow: hidden; }
.why::before { content: ""; position: absolute; right: -8%; top: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%; border: 60px solid rgb(255 255 255 / .03); pointer-events: none; }
.why__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.why__card { background: var(--bufc-navy-2); border-radius: var(--radius); padding: 1.75rem; border-left: 6px solid var(--bufc-yellow); }
.why__card h3 { color: var(--bufc-yellow); font-size: 1.6rem; }
.why__card p { margin: 0; font-size: 1.05rem; }
.values { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.values li { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; border: 2px solid rgb(255 255 255 / .25); border-radius: 999px; padding: .4rem 1.25rem; }
.values li::before { content: "●"; color: var(--bufc-yellow); margin-right: .5rem; font-size: .7em; vertical-align: .15em; }

/* ---------- Villarreal band ---------- */
.villarreal { background: var(--bufc-yellow); color: var(--bufc-navy); position: relative; overflow: hidden; }
.villarreal::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 38%; background: repeating-linear-gradient(-60deg, transparent 0 28px, rgb(0 34 70 / .05) 28px 56px); pointer-events: none; }
.villarreal__inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2rem 3rem; padding-block: clamp(3rem, 6vw, 4.5rem); position: relative; z-index: 1; }
.villarreal__badge img { width: 130px; height: auto; }
.villarreal__mono { display: grid; place-items: center; width: 130px; aspect-ratio: 1; border-radius: 50%; background: var(--bufc-navy); color: var(--bufc-yellow); font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; letter-spacing: .04em; box-shadow: inset 0 0 0 6px var(--bufc-yellow), inset 0 0 0 10px var(--bufc-navy); }
.villarreal .eyebrow { color: var(--bufc-navy); opacity: .8; }
.villarreal__title { font-size: clamp(2rem, 4vw, 3rem); }
.villarreal__copy p:not(.eyebrow) { max-width: 62ch; font-size: 1.1rem; }
.villarreal .link-arrow { color: var(--bufc-navy); }
@media (max-width: 640px) { .villarreal__inner { grid-template-columns: 1fr; } .villarreal__badge img, .villarreal__mono { width: 96px; } }

/* ---------- Feature (get involved) ---------- */
.feature-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.feature { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 320px; color: #fff; text-decoration: none; box-shadow: var(--shadow); isolation: isolate; }
.feature__media { position: absolute; inset: 0; z-index: -1; }
.feature__media img, .feature__media .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feature:hover .feature__media img { transform: scale(1.05); }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgb(0 20 50 / .92) 85%); }
.feature__body { position: absolute; inset: auto 0 0 0; padding: 1.75rem; display: flex; flex-direction: column; gap: .35rem; }
.feature__title { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; text-transform: uppercase; line-height: 1; }
.feature__title .icon { color: var(--bufc-yellow); width: 28px; height: 28px; transition: transform .15s; }
.feature:hover .feature__title .icon { transform: translateX(5px); }
.feature__text { color: #dbe4f0; max-width: 46ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bufc-yellow-soft); border-top: 1px solid rgb(0 0 0 / .04); }
.cta-band__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 2.75rem; }
.cta-band__title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 0 0 .75rem; }

/* ---------- Social ---------- */
.social { list-style: none; display: flex; gap: .5rem; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; text-decoration: none; transition: background .15s, color .15s, transform .15s; }
.social a:hover { transform: translateY(-2px); }
.social--footer a { background: rgb(255 255 255 / .1); color: #fff; }
.social--footer a:hover { background: var(--bufc-yellow); color: var(--bufc-navy); }
.social--dark a { background: var(--bufc-navy); color: #fff; }
.social--dark a:hover { background: var(--bufc-blue); }

/* ---------- Partners ---------- */
.partner-band { background: #fff; border-top: 1px solid var(--line); padding-block: 2.5rem; }
.partner-band__title { font-size: 1rem; letter-spacing: .14em; color: var(--ink-2); text-align: center; margin-bottom: 1.25rem; font-weight: 700; }
.partners { list-style: none; margin: 0; padding: 0; }
.partners--strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2.75rem; }
.partners--strip img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partners--strip a:hover img { filter: none; opacity: 1; }
.partners--strip .partner__name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.partners--strip a { text-decoration: none; }
.partners--strip a:hover .partner__name { color: var(--bufc-blue); }
.partners--cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.partners--cards a, .partners--cards li > span { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; background: #fff; transition: box-shadow .15s, border-color .15s; }
.partners--cards a:hover { box-shadow: var(--shadow); border-color: var(--bufc-yellow); }
.partner__logo { display: grid; place-items: center; height: 90px; }
.partner__logo img { max-height: 90px; width: auto; }
.partners--cards .partner__logo .partner__name { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--bufc-blue); text-transform: uppercase; text-align: center; }
.partner__title { font-weight: 700; color: var(--bufc-navy); }
.partner__blurb { color: var(--ink-2); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bufc-navy); color: #c3cfdf; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.6fr 1fr 1.2fr; padding-block: 3.5rem 2.5rem; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand { display: flex; gap: 1.25rem; align-items: flex-start; }
.site-footer__crest { width: 84px; height: auto; flex: none; }
.site-footer__name { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; line-height: 1.1; text-transform: uppercase; color: #fff; margin-bottom: .35rem; }
.site-footer__tagline { color: var(--bufc-yellow); font-weight: 600; margin-bottom: 1rem; }
.site-footer__heading { font-size: 1.1rem; letter-spacing: .12em; color: var(--bufc-yellow); margin-bottom: 1rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.footer-menu li { margin-bottom: .5rem; break-inside: avoid; }
.footer-menu a { text-decoration: none; color: #dbe4f0; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.contact-lines { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.contact-lines li { display: flex; gap: .6rem; margin-bottom: .75rem; }
.contact-lines .icon { color: var(--bufc-yellow); margin-top: .2rem; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: 1.25rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .85rem; }
.site-footer__base p { margin: 0; }
.site-footer__base a { text-decoration: none; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; isolation: isolate; background: var(--bufc-navy); color: #fff; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 85% 0%, rgb(0 51 155 / .9), transparent 60%), repeating-linear-gradient(-60deg, transparent 0 40px, rgb(255 255 255 / .025) 40px 80px); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image::before { background: linear-gradient(100deg, rgb(0 20 50 / .92), rgb(0 34 70 / .6) 60%, rgb(0 34 70 / .3)); }
.page-hero__inner { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.page-hero__title { color: #fff; font-size: clamp(2.5rem, 6vw, 4.25rem); margin: 0; max-width: 20ch; }
.page-hero__intro { font-size: 1.2rem; color: #dbe4f0; max-width: 60ch; margin: 1rem 0 0; }
.page-hero .stripe { position: absolute; bottom: 0; left: 0; right: 0; }

.subnav { background: #fff; border-bottom: 1px solid var(--line); position: relative; }
.subnav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: .5rem 0; overflow-x: auto; scrollbar-width: thin; }
.subnav a { display: block; white-space: nowrap; padding: .5rem .9rem; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink-2); }
.subnav a:hover { background: var(--tint); color: var(--bufc-blue); }
.subnav a[aria-current="page"] { background: var(--bufc-blue); color: #fff; }

.entry { padding-block: clamp(2.5rem, 5vw, 4rem); }
.entry-content { max-width: 78ch; }
.entry-content > .alignwide { max-width: min(1100px, calc(100vw - 2 * var(--gutter))); }
.entry-content > .alignfull { max-width: none; }
.entry-content:has(.people-grid, .card-grid, .partners--cards, .contact-cards, .wp-block-gallery, .wp-block-columns) { max-width: none; }
.entry-content > :is(p, ul, ol, h2, h3, h4, .wp-block-table, blockquote) { max-width: 78ch; }
.entry-content h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-top: 2.25rem; }
.entry-content h3 { font-size: 1.6rem; margin-top: 1.75rem; color: var(--bufc-blue); }
.entry-content > :first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: .35rem; }
.entry-content ul li::marker { color: var(--bufc-blue); }
.entry-content blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 6px solid var(--bufc-yellow); background: var(--tint); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.15rem; }
.entry-content .wp-block-table table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.entry-content .wp-block-table th { background: var(--bufc-navy); color: #fff; text-align: left; font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { padding: .65rem .85rem; border: 1px solid var(--line); }
.entry-content .wp-block-table tr:nth-child(even) td { background: var(--tint); }
.entry-content .wp-block-image img, .entry-feature img { border-radius: var(--radius); }
.entry-content .wp-block-gallery img { border-radius: 6px; }
.entry-content .wp-block-button__link { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; border-radius: 999px; padding: .8em 1.4em; background: var(--bufc-yellow); color: var(--bufc-navy); }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--bufc-navy); border: 2px solid var(--bufc-navy); }
.entry-content .wp-block-separator { border: 0; height: 6px; width: 64px; background: var(--bufc-yellow); border-radius: 3px; margin: 2.5rem 0; }
.entry-feature { margin: 0 0 2rem; max-width: 78ch; }

/* Steps list (registration how-to) */
.entry-content ol.steps, .entry-content .is-style-steps { list-style: none; padding: 0; counter-reset: step; }
.entry-content ol.steps > li, .entry-content .is-style-steps > li { counter-increment: step; position: relative; padding: .2rem 0 1.25rem 3.75rem; margin: 0; }
.entry-content ol.steps > li::before, .entry-content .is-style-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--bufc-yellow); color: var(--bufc-navy); font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; display: grid; place-items: center; }
.entry-content ol.steps > li:not(:last-child)::after, .entry-content .is-style-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 1.25rem; top: 2.8rem; bottom: .3rem; width: 2px; background: var(--line); }

/* Callout (core/group with class "callout") */
.callout, .is-style-callout { background: var(--bufc-yellow-soft); border-left: 6px solid var(--bufc-yellow); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.callout > :last-child, .is-style-callout > :last-child { margin-bottom: 0; }
.is-style-callout > :first-child { margin-top: 0; }

/* Program detail */
.program { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 3rem; align-items: start; }
.program__facts { order: 2; position: sticky; top: 100px; margin-top: clamp(2.5rem, 5vw, 4rem); }
.program__content { order: 1; }
@media (max-width: 900px) { .program { grid-template-columns: 1fr; gap: 0; } .program__facts { order: 0; position: static; } }
.facts { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.5rem; border-top: 6px solid var(--bufc-yellow); }
.facts dl { margin: 1rem 0; }
.facts__row { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.facts dt { display: flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.facts dt .icon { width: 15px; height: 15px; color: var(--bufc-blue); }
.facts dd { margin: .15rem 0 0; font-weight: 600; color: var(--bufc-navy); }
.facts__heading { display: flex; align-items: center; gap: .4rem; font-size: 1.25rem; margin: 1.25rem 0 .5rem; }
.facts__heading .icon { color: var(--bufc-blue); }
.facts__schedule { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .95rem; }
.facts__schedule li { padding: .5rem .75rem; background: var(--tint); border-radius: 6px; margin-bottom: .4rem; }
.facts__help { display: block; text-align: center; margin-top: .85rem; font-size: .9rem; font-weight: 600; }

/* People */
.people-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin: 1.5rem 0 2.5rem; }
.person--cards { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.person__photo { aspect-ratio: 6 / 7; background: linear-gradient(135deg, var(--bufc-blue), var(--bufc-navy)); display: grid; place-items: center; overflow: hidden; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initials { font-family: var(--font-head); font-weight: 800; font-size: 4rem; color: var(--bufc-yellow); letter-spacing: .02em; }
.person__body { padding: 1rem 1.2rem 1.25rem; border-top: 4px solid var(--bufc-yellow); flex: 1; }
.person__name { font-size: 1.5rem; margin: 0; }
.person__role { color: var(--bufc-blue); font-weight: 700; font-size: .9rem; margin: .2rem 0 .5rem; }
.person__cert { font-size: .85rem; color: var(--ink-2); margin: 0 0 .5rem; }
.person__bio { font-size: .9rem; color: var(--ink-2); }
.person__bio p { margin-bottom: .5em; }
.person__email { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; word-break: break-all; }
.person__email .icon { width: 16px; height: 16px; }
.people-list { display: grid; gap: .5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin: 1rem 0 2rem; }
.person--list .person__body { padding: .75rem 0; border-top: 0; border-bottom: 1px solid var(--line); }
.person--list .person__name { font-size: 1.25rem; }

/* Documents */
.doc-group { margin-bottom: 2.5rem; }
.doc-group__title { font-size: 1.8rem; }
.doc-list { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.doc-list li { margin: 0 !important; }
.doc { display: flex; align-items: center; gap: .85rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; height: 100%; transition: border-color .15s, box-shadow .15s; }
.doc:hover { border-color: var(--bufc-blue); box-shadow: var(--shadow); }
.doc > .icon { width: 28px; height: 28px; color: var(--bufc-blue); }
.doc__text { flex: 1; display: flex; flex-direction: column; }
.doc__title { font-weight: 700; }
.doc__desc { font-size: .85rem; color: var(--ink-2); }
.doc__ext { font-size: .7rem; font-weight: 800; letter-spacing: .06em; background: var(--bufc-navy); color: var(--bufc-yellow); padding: .2rem .45rem; border-radius: 4px; }

/* Contact */
.contact-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin: 1rem 0 2.5rem; }
.contact-card { background: var(--tint); border-radius: var(--radius); padding: 1.5rem; }
.contact-card h3 { font-size: 1.35rem; margin: .75rem 0 .35rem; }
.contact-card p { margin: 0 0 .35rem; word-break: break-word; }
.contact-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bufc-yellow); color: var(--bufc-navy); }
.contact-card__note { font-size: .85rem; color: var(--ink-2); }

/* Forms (Contact Form 7 and core) */
.wpcf7 { max-width: 640px; }
.wpcf7 label { display: block; font-weight: 600; margin-bottom: 1rem; }
.wpcf7 input:not([type=submit]):not([type=checkbox]), .wpcf7 textarea, .search-form input[type=search] { width: 100%; margin-top: .35rem; padding: .75rem .9rem; font: inherit; border: 2px solid var(--line); border-radius: 8px; background: #fff; }
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--bufc-blue); outline: none; }
.wpcf7 input[type=submit], .search-form button, .search-form input[type=submit] { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; padding: .8em 1.6em; border: 0; border-radius: 999px; background: var(--bufc-navy); color: #fff; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--bufc-blue); }

/* Posts */
.post-nav { display: flex; justify-content: space-between; gap: 1rem; max-width: 78ch; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-weight: 600; }
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .75rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current { background: var(--bufc-navy); color: #fff; border-color: var(--bufc-navy); }
.empty { font-size: 1.15rem; color: var(--ink-2); }

/* Block editor colour helpers (palette from theme.json) */
.has-bufc-yellow-background-color { background-color: var(--bufc-yellow) !important; }
.has-bufc-blue-background-color { background-color: var(--bufc-blue) !important; }
.has-bufc-navy-background-color { background-color: var(--bufc-navy) !important; }
.has-bufc-yellow-color { color: var(--bufc-yellow) !important; }
.has-bufc-blue-color { color: var(--bufc-blue) !important; }
.has-bufc-navy-color { color: var(--bufc-navy) !important; }

@media print {
	.utility-bar, .site-header, .site-footer, .partner-band, .cta-band, .subnav, .stripe { display: none !important; }
	.page-hero { background: none; color: #000; }
	.page-hero__title { color: #000; }
}
