/*
Theme Name: Best Citizens
Theme URI: https://bestcitizens.com/
Author: Best Citizenships
Description: Black and gold boxed block theme (Fraunces headings, Roboto text) for Best Citizenships. Plugin-free: SEO tags and schema, short programme URLs, contact forms and cost calculators are built in.
Version: 2.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bestcitizens
*/

:root {
	--bc-ink: #0A0A0B;
	--bc-surface: #121214;
	--bc-surface-2: #18181B;
	--bc-surface-3: #1F1F23;
	--bc-ivory: #EEE9DF;
	--bc-heading: #F4EFE6;
	--bc-muted: #A59E92;
	--bc-gold: #C9A45C;
	--bc-gold-light: #E4C887;
	--bc-gold-deep: #A8833C;
	--bc-line: rgba(201, 164, 92, .16);
	--bc-line-strong: rgba(201, 164, 92, .34);
	--bc-gold-grad: linear-gradient(135deg, #E4C887 0%, #C9A45C 45%, #A8833C 100%);
	--bc-radius: 18px;
	--bc-radius-sm: 12px;
	--bc-pad: clamp(1.25rem, 3.6vw, 3rem);
	--bc-gap: clamp(.9rem, 2vw, 1.5rem);
	--bc-shell: 1440px;
	--bc-read: none;
	--bc-header-h: 76px;
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--bc-header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
	background: var(--bc-ink);
	background-image: radial-gradient(1200px 600px at 50% -200px, rgba(201,164,92,.10), transparent 70%);
	background-repeat: no-repeat;
	color: var(--bc-ivory);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
::selection { background: var(--bc-gold); color: var(--bc-ink); }
:focus-visible { outline: 2px solid var(--bc-gold-light); outline-offset: 3px; border-radius: 4px; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p, li) { text-wrap: pretty; }
strong, b { color: var(--bc-heading); font-weight: 600; }
hr, .wp-block-separator { border: 0; border-top: 1px solid var(--bc-line) !important; background: none !important; opacity: 1; margin-block: 2rem; }
.wp-block-separator.is-style-dots::before { color: var(--bc-gold); }
.screen-reader-text:not(:focus) { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; z-index: 1000; top: .5rem; left: .5rem; padding: .75rem 1rem; background: var(--bc-gold); color: var(--bc-ink); clip: auto; width: auto; height: auto; }
table, .bc-price, .bc-stat__num { font-variant-numeric: lining-nums tabular-nums; }

.wp-site-blocks { padding: 0 clamp(.75rem, 2.4vw, 1.5rem); }
.wp-site-blocks > * { max-width: var(--bc-shell); margin-inline: auto; }
.wp-site-blocks > * + * { margin-block-start: var(--bc-gap); }

/* ---------- The box ---------- */
.bc-box {
	background: linear-gradient(180deg, rgba(255,255,255,.018), transparent 140px), var(--bc-surface);
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius);
	padding: var(--bc-pad);
	position: relative;
	box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 30px 60px -40px rgba(0,0,0,.9);
}
.bc-box--flush { padding: 0; overflow: hidden; }
.bc-box--gold { border-color: var(--bc-line-strong); background: radial-gradient(900px 300px at 0% 0%, rgba(201,164,92,.13), transparent 60%), var(--bc-surface); }
.bc-stack { display: grid; gap: var(--bc-gap); }
.bc-grid { display: grid; gap: var(--bc-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.bc-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.bc-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.bc-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.bc-grid--6 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); }
.bc-layout { display: grid; gap: var(--bc-gap); align-items: start; }
@media (min-width: 1100px) { .bc-layout--sidebar { grid-template-columns: minmax(0, 1fr) 340px; } }
.bc-sticky { position: sticky; top: calc(var(--bc-header-h) + var(--bc-gap)); }
.admin-bar .bc-sticky { top: calc(var(--bc-header-h) + var(--bc-gap) + 32px); }

/* ---------- Typography helpers ---------- */
.bc-kicker { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bc-gold); margin: 0 0 .75rem; display: inline-flex; align-items: center; gap: .6rem; }
.bc-kicker::before { content: ""; width: 26px; height: 1px; background: var(--bc-gold); }
.bc-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--bc-muted); max-width: 60ch; }
.bc-muted { color: var(--bc-muted); }
.bc-gold { color: var(--bc-gold); }
.bc-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.bc-section-head h2 { margin: 0; }
.bc-section-head p { margin: .5rem 0 0; color: var(--bc-muted); }
.bc-title-rule { display: block; width: 56px; height: 2px; background: var(--bc-gold-grad); margin: 1.1rem 0 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.bc-btn, .wp-block-button__link, .wp-element-button, button.bc-btn, input[type=submit] {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	background: var(--bc-gold-grad) !important; color: var(--bc-ink) !important;
	border: 0 !important; border-radius: 999px !important; padding: .85em 1.6em !important;
	font: 600 .95rem/1.2 var(--wp--preset--font-family--primary); letter-spacing: .01em;
	text-decoration: none !important; cursor: pointer;
	box-shadow: 0 10px 30px -12px rgba(201,164,92,.55), inset 0 1px 0 rgba(255,255,255,.35);
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.bc-btn:hover, .wp-block-button__link:hover, input[type=submit]:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 34px -12px rgba(201,164,92,.7), inset 0 1px 0 rgba(255,255,255,.35); }
.bc-btn--ghost, .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent !important; color: var(--bc-gold-light) !important;
	box-shadow: inset 0 0 0 1px var(--bc-line-strong) !important;
}
.bc-btn--ghost:hover, .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(201,164,92,.08) !important; }
.bc-btn--sm { padding: .6em 1.15em !important; font-size: .875rem; }
.bc-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Header ---------- */
.bc-header { position: sticky; top: .75rem; z-index: 100; margin-top: .75rem; }
.admin-bar .bc-header { top: calc(.75rem + 32px); }
.bc-header__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	min-height: var(--bc-header-h); padding: .5rem clamp(1rem, 2.4vw, 1.75rem);
	background: rgba(14,14,16,.82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
	border: 1px solid var(--bc-line); border-radius: var(--bc-radius);
	box-shadow: 0 20px 40px -24px rgba(0,0,0,.9);
}
.bc-header .wp-block-site-logo img { max-height: 46px; width: auto; }
.bc-header .wp-block-site-title { margin: 0; font-family: var(--wp--preset--font-family--heading); font-size: 1.35rem; font-weight: 500; }
.bc-header .wp-block-site-title a { color: var(--bc-heading); text-decoration: none; }
.bc-header .wp-block-navigation { font-size: .92rem; font-weight: 500; gap: 1.4rem; }
.bc-header .wp-block-navigation a { color: var(--bc-ivory); text-decoration: none; }
.bc-header .wp-block-navigation a:hover { color: var(--bc-gold-light); text-decoration: none; }
.bc-header .wp-block-navigation__submenu-container {
	background: #141416 !important; color: var(--bc-ivory) !important; border: 1px solid var(--bc-line) !important;
	border-radius: var(--bc-radius-sm); padding: .5rem !important; min-width: 240px !important;
	box-shadow: 0 30px 60px -20px rgba(0,0,0,.95);
}
.bc-header .wp-block-navigation__submenu-container a { padding: .45rem .7rem !important; border-radius: 8px; }
.bc-header .wp-block-navigation__submenu-container a:hover { background: rgba(201,164,92,.08); }
.bc-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--bc-ink) !important; color: var(--bc-ivory) !important; padding: 1.5rem !important; }
.bc-header .wp-block-navigation__responsive-container-open, .bc-header .wp-block-navigation__responsive-container-close { color: var(--bc-gold-light); }
.bc-header__right { display: flex; align-items: center; gap: 1.25rem; }
@media (max-width: 781px) { .bc-header__cta { display: none; } }

/* ---------- Hero (page title box) ---------- */
.bc-hero { overflow: hidden; }
.bc-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(700px 260px at 100% 0%, rgba(201,164,92,.12), transparent 60%); }
.bc-hero h1 { margin: 0; max-width: 22ch; }
.bc-hero .bc-lead { margin-top: 1rem; }
.bc-breadcrumbs { font-size: .82rem; color: var(--bc-muted); margin-bottom: 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.bc-breadcrumbs a { color: var(--bc-muted); }
.bc-breadcrumbs a:hover { color: var(--bc-gold-light); }
.bc-breadcrumbs span[aria-hidden] { color: var(--bc-gold); opacity: .7; }
.bc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin-top: 1.25rem; font-size: .86rem; color: var(--bc-muted); }
.bc-meta a { color: var(--bc-ivory); }
.bc-meta__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--bc-gold); }
.bc-featured { margin: 0; }
.bc-featured img { display: block; width: 100%; aspect-ratio: 21/9; object-fit: cover; }

/* ---------- Content inside a box ---------- */
.bc-content { max-width: none; }
.bc-content--wide { max-width: none; }
.bc-content > :first-child { margin-top: 0; }
.bc-content > :last-child { margin-bottom: 0; }
.bc-content :where(.alignfull, .alignwide) { width: auto !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.bc-content .wp-block-post-content > * { max-width: none; }
.bc-content h2 { margin-top: 2.6rem; }
.bc-content h2::after { content: ""; display: block; width: 44px; height: 2px; margin-top: .8rem; background: var(--bc-gold-grad); border-radius: 2px; }
.bc-content h3 { margin-top: 2rem; }
.bc-content ul:not([class*="wp-block-"]):not(.bc-list), .bc-content .wp-block-list { padding-left: 1.2rem; }
.bc-content li::marker { color: var(--bc-gold); }
.bc-content blockquote, .wp-block-quote, .wp-block-pullquote { border: 0; border-left: 2px solid var(--bc-gold); padding: .25rem 0 .25rem 1.4rem; margin-inline: 0; font-family: var(--wp--preset--font-family--heading); font-size: 1.3rem; line-height: 1.45; color: var(--bc-heading); }
.bc-content cite { display: block; margin-top: .6rem; font: 500 .85rem var(--wp--preset--font-family--primary); color: var(--bc-gold); font-style: normal; }
.bc-content img { border-radius: var(--bc-radius-sm); }
.bc-content figcaption { color: var(--bc-muted); font-size: .85rem; text-align: center; }

/* Nested sections in content become sub-boxes */
.bc-content :where(.wp-block-group.has-background, .wp-block-group.is-style-column-box-shadow, .wp-block-column.is-style-column-box-shadow, .wp-block-media-text, .wp-block-cover, .wp-block-details, .wp-block-table, .wp-block-group.bc-sub) {
	border-radius: var(--bc-radius-sm);
}
.bc-content .wp-block-group.has-background, .bc-content .wp-block-group.is-style-column-box-shadow, .bc-content .wp-block-group.bc-sub {
	background: var(--bc-surface-2) !important; border: 1px solid var(--bc-line); padding: clamp(1rem, 2.6vw, 2rem) !important; box-shadow: none !important;
}
.bc-content .wp-block-columns { gap: var(--bc-gap) !important; }
.bc-content .wp-block-column.is-style-column-box-shadow, .bc-content .wp-block-column.has-background, .bc-content .wp-block-columns.bc-cards > .wp-block-column {
	background: var(--bc-surface-2) !important; border: 1px solid var(--bc-line); border-radius: var(--bc-radius-sm); padding: clamp(1rem, 2.4vw, 1.75rem) !important; box-shadow: none !important;
}
.bc-content .wp-block-media-text { background: var(--bc-surface-2); border: 1px solid var(--bc-line); overflow: hidden; }
.bc-content .wp-block-media-text__content { padding: clamp(1rem, 3vw, 2.25rem) !important; }
.bc-content .wp-block-media-text__media img { border-radius: 0; height: 100%; object-fit: cover; }
.bc-content .wp-block-cover { overflow: hidden; border: 1px solid var(--bc-line); padding: clamp(1.25rem, 4vw, 3rem) !important; }
.bc-content .wp-block-cover:not(.has-aspect-ratio) { min-height: 280px !important; }
/* Cover overlays: honour "no overlay" (dim 0); otherwise a light, even tint for legible text. */
.wp-block-cover .wp-block-cover__background.has-background-dim { background: linear-gradient(180deg, rgba(10,10,11,.25), rgba(10,10,11,.6)) !important; opacity: 1 !important; }
.wp-block-cover .wp-block-cover__background.has-background-dim-0, .wp-block-cover .wp-block-cover__background:not(.has-background-dim) { background: none !important; opacity: 0 !important; }
.wp-block-cover, .wp-block-cover h1, .wp-block-cover h2, .wp-block-cover h3, .wp-block-cover p { color: var(--bc-heading) !important; }
.bc-content .wp-block-image.is-style-rounded img, .bc-content .is-style-rounded-full img { border-radius: 999px; }

/* Tables */
.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--bc-line); background: var(--bc-surface-2); margin-block: 1.75rem; }
.wp-block-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .94rem; }
.wp-block-table th, .wp-block-table td { border: 0 !important; border-bottom: 1px solid var(--bc-line) !important; padding: .8rem 1rem; text-align: left; vertical-align: top; color: var(--bc-ivory); background: transparent !important; }
.wp-block-table thead th, .wp-block-table tr:first-child th { color: var(--bc-gold-light); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--bc-line-strong) !important; }
.wp-block-table tbody tr:hover td { background: rgba(201,164,92,.04) !important; }
.wp-block-table tr:last-child td { border-bottom: 0 !important; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) td { background: rgba(255,255,255,.015) !important; }
.wp-block-table figcaption { padding: .6rem 1rem; }

/* FAQ / details */
.wp-block-details { background: var(--bc-surface-2); border: 1px solid var(--bc-line); padding: 1rem 1.25rem !important; margin-block: .6rem !important; }
.wp-block-details summary { cursor: pointer; font-weight: 600; color: var(--bc-heading); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--bc-gold); font-size: 1.3rem; line-height: 1; transition: transform .2s ease; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details[open] summary { margin-bottom: .75rem; }

/* Lists with check styles from old content */
.is-style-list-check, .is-style-list-check-circle, .bc-checks { list-style: none; padding-left: 0 !important; }
.is-style-list-check li, .is-style-list-check-circle li, .bc-checks li { position: relative; padding-left: 1.6rem; margin-block: .45rem; }
.is-style-list-check li::before, .is-style-list-check-circle li::before, .bc-checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .45rem; border-left: 2px solid var(--bc-gold); border-bottom: 2px solid var(--bc-gold); transform: rotate(-45deg); }
.is-style-list-boxed { list-style: none; padding: 0 !important; display: grid; gap: .5rem; }
.is-style-list-boxed li { background: var(--bc-surface-2); border: 1px solid var(--bc-line); border-radius: 10px; padding: .7rem 1rem; }

/* Embeds, search */
.wp-block-embed iframe { border-radius: var(--bc-radius-sm); }
.wp-block-search__inside-wrapper { border: 1px solid var(--bc-line-strong) !important; border-radius: 999px; background: var(--bc-surface-2); padding: 4px !important; }
.wp-block-search__input { background: transparent !important; border: 0 !important; color: var(--bc-ivory) !important; padding: .6rem 1rem !important; }
.wp-block-search__input::placeholder { color: var(--bc-muted); }

/* ---------- Cards (programmes, posts, team) ---------- */
.bc-card {
	display: flex; flex-direction: column;
	background: var(--bc-surface-2); border: 1px solid var(--bc-line); border-radius: var(--bc-radius-sm);
	overflow: hidden; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bc-card:hover { border-color: var(--bc-line-strong); transform: translateY(-3px); box-shadow: 0 30px 50px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(201,164,92,.08); }
.bc-card__media { aspect-ratio: 16/10; overflow: hidden; background: #0f0f11; }
.bc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0 !important; transition: transform .5s ease; }
.bc-card:hover .bc-card__media img { transform: scale(1.04); }
.bc-card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.bc-card__tag { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bc-gold); }
.bc-card__title { font-family: var(--wp--preset--font-family--heading); font-size: 1.35rem; font-weight: 500; line-height: 1.2; margin: 0; color: var(--bc-heading); }
.bc-card__title a { color: inherit; }
.bc-card__title a:hover { color: var(--bc-gold-light); text-decoration: none; }
.bc-card__text { color: var(--bc-muted); font-size: .95rem; margin: 0; }
.bc-card__list { list-style: none; padding: 0; margin: .2rem 0 0; display: grid; gap: .4rem; font-size: .92rem; color: var(--bc-ivory); }
.bc-card__list li { position: relative; padding-left: 1.3rem; }
.bc-card__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--bc-gold); }
.bc-card__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--bc-line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bc-price { font-family: var(--wp--preset--font-family--heading); font-size: 1.55rem; color: var(--bc-gold-light); line-height: 1; }
.bc-price small { display: block; font: 500 .72rem var(--wp--preset--font-family--primary); color: var(--bc-muted); letter-spacing: .08em; text-transform: uppercase; margin-top: .3rem; }
.bc-link-arrow { font-weight: 600; font-size: .9rem; color: var(--bc-gold-light); white-space: nowrap; }
.bc-link-arrow::after { content: " \2192"; }

/* Feature tiles */
.bc-tile { background: var(--bc-surface-2); border: 1px solid var(--bc-line); border-radius: var(--bc-radius-sm); padding: clamp(1.1rem, 2.4vw, 1.6rem); }
.bc-tile h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
.bc-tile p { margin: 0; color: var(--bc-muted); font-size: .95rem; }
.bc-tile__num { font-family: var(--wp--preset--font-family--heading); color: var(--bc-gold); font-size: 1rem; margin-bottom: .75rem; display: block; }
.bc-stat { text-align: center; padding: 1.4rem 1rem; }
.bc-stat__num { display: block; font-family: var(--wp--preset--font-family--heading); font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1; background: var(--bc-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bc-stat__label { display: block; margin-top: .55rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bc-muted); }

/* Home hero */
.bc-home-hero { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 960px) { .bc-home-hero { grid-template-columns: 1.15fr .85fr; } }
.bc-home-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); margin: 0; }
.bc-home-hero h1 em { font-style: italic; background: var(--bc-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bc-home-hero__media { position: relative; border-radius: var(--bc-radius-sm); overflow: hidden; border: 1px solid var(--bc-line-strong); aspect-ratio: 4/3; }
.bc-home-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-home-hero__badge { position: absolute; left: 1rem; bottom: 1rem; background: rgba(10,10,11,.82); backdrop-filter: blur(8px); border: 1px solid var(--bc-line-strong); border-radius: 12px; padding: .8rem 1rem; }
.bc-home-hero__badge strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 1.6rem; font-weight: 500; color: var(--bc-gold-light); }
.bc-home-hero__badge span { font-size: .8rem; color: var(--bc-muted); }

/* Quote, testimonials */
.bc-quote { font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.35; color: var(--bc-heading); margin: 0; }
.bc-quote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--bc-gold); margin-bottom: .5rem; }
.bc-testimonial p { margin: 0 0 1rem; color: var(--bc-ivory); }
.bc-testimonial footer { font-size: .85rem; color: var(--bc-muted); }
.bc-testimonial footer strong { color: var(--bc-gold-light); }
.bc-person { display: flex; gap: 1rem; align-items: center; }
.bc-person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--bc-line-strong); flex: none; }
.bc-person h3 { font-size: 1.1rem; margin: 0; }
.bc-person p { margin: .2rem 0 0; font-size: .85rem; color: var(--bc-muted); }

/* Review box, related programmes */
.bc-review { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; align-items: baseline; font-size: .86rem; color: var(--bc-muted); border-left: 2px solid var(--bc-gold); padding: .3rem 0 .3rem 1rem; }
.bc-review p { margin: 0; }
.bc-review a { color: var(--bc-ivory); }
.bc-review__badge { color: var(--bc-gold); margin-right: .2rem; }
.bc-review__sources summary { cursor: pointer; color: var(--bc-gold-light); }
.bc-side-title { font-family: var(--wp--preset--font-family--heading); font-size: 1.25rem; margin: 0 0 1rem; color: var(--bc-heading); }
.bc-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.bc-links a { display: flex; justify-content: space-between; gap: .75rem; padding: .6rem .75rem; border-radius: 10px; color: var(--bc-ivory); border: 1px solid transparent; font-size: .93rem; }
.bc-links a::after { content: "\2192"; color: var(--bc-gold); }
.bc-links a:hover { border-color: var(--bc-line); background: rgba(201,164,92,.05); text-decoration: none; }

/* Post listing */
.bc-posts .wp-block-post-template { display: grid !important; gap: var(--bc-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)) !important; list-style: none; padding: 0; margin: 0; }
.bc-posts .wp-block-post { margin: 0 !important; background: var(--bc-surface-2); border: 1px solid var(--bc-line); border-radius: var(--bc-radius-sm); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.bc-posts .wp-block-post:hover { border-color: var(--bc-line-strong); transform: translateY(-3px); }
.bc-posts .wp-block-post-featured-image { margin: 0 !important; aspect-ratio: 16/10; overflow: hidden; }
.bc-posts .wp-block-post-featured-image img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 !important; }
.bc-posts .bc-post-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.bc-posts .wp-block-post-title { font-size: 1.2rem !important; margin: 0; line-height: 1.3; }
.bc-posts .wp-block-post-title a { color: var(--bc-heading); }
.bc-posts .wp-block-post-title a:hover { color: var(--bc-gold-light); text-decoration: none; }
.bc-posts .wp-block-post-date, .bc-posts .wp-block-post-terms { font-size: .8rem; color: var(--bc-muted); }
.bc-posts .wp-block-post-terms a { color: var(--bc-gold); }
.bc-posts .wp-block-post-excerpt { font-size: .93rem; color: var(--bc-muted); margin: 0; }
.bc-posts .wp-block-post-excerpt__more-link { display: none; }
.wp-block-query-pagination { margin-top: var(--bc-gap) !important; gap: .5rem; justify-content: center; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { padding: .5rem .9rem; border: 1px solid var(--bc-line); border-radius: 999px; color: var(--bc-ivory); }
.wp-block-query-pagination .current { background: var(--bc-gold); color: var(--bc-ink); border-color: var(--bc-gold); }

/* ---------- Forms ---------- */
.bc-form { display: grid; gap: 1rem; }
.bc-form__row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.bc-form label { display: grid; gap: .4rem; font-size: .86rem; font-weight: 500; color: var(--bc-ivory); }
.bc-form input, .bc-form select, .bc-form textarea, .bc-calc input, .bc-calc select {
	width: 100%; box-sizing: border-box; background: var(--bc-ink); color: var(--bc-ivory);
	border: 1px solid var(--bc-line-strong); border-radius: 10px; padding: .75rem .9rem; font: inherit; font-size: 1rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.bc-form textarea { min-height: 130px; resize: vertical; }
.bc-form input:focus, .bc-form select:focus, .bc-form textarea:focus, .bc-calc input:focus, .bc-calc select:focus { outline: none; border-color: var(--bc-gold); box-shadow: 0 0 0 3px rgba(201,164,92,.18); }
.bc-form .bc-hp { position: absolute !important; left: -9999px !important; }
.bc-notice { padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid var(--bc-line-strong); background: rgba(201,164,92,.08); }
.bc-notice--error { border-color: rgba(220,80,70,.5); background: rgba(220,80,70,.08); }

/* ---------- Calculators ---------- */
.bc-calc { display: grid; gap: 1.25rem; }
.bc-calc__head h2 { margin: 0; }
.bc-calc__head p { margin: .4rem 0 0; color: var(--bc-muted); }
.bc-calc__grid { display: grid; gap: 1rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.bc-calc__field { display: grid; gap: .4rem; align-content: start; }
.bc-calc__field > span { font-size: .86rem; font-weight: 500; }
.bc-calc__field small { color: var(--bc-muted); font-size: .78rem; }
.bc-calc__check { display: flex !important; align-items: center; gap: .6rem; font-size: .95rem; cursor: pointer; }
.bc-calc__check input { width: 1.1rem; height: 1.1rem; accent-color: var(--bc-gold); }
.bc-calc__section { grid-column: 1 / -1; margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--bc-line); }
.bc-calc__section h3 { font-size: 1.15rem; margin: 0; }
.bc-calc__section p, .bc-calc__note { margin: .3rem 0 0; color: var(--bc-muted); font-size: .88rem; }
.bc-calc__results { display: grid; gap: .5rem; background: var(--bc-ink); border: 1px solid var(--bc-line-strong); border-radius: var(--bc-radius-sm); padding: 1.25rem; }
.bc-calc__result { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--bc-line); font-size: .95rem; }
.bc-calc__result:last-child { border-bottom: 0; padding-top: .9rem; }
.bc-calc__result output { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--bc-ivory); white-space: nowrap; }
.bc-calc__result:last-child output { font-family: var(--wp--preset--font-family--heading); font-size: 1.6rem; font-weight: 500; color: var(--bc-gold-light); }
.bc-calc [hidden] { display: none !important; }

/* ---------- Footer ---------- */
.bc-footer { margin-bottom: clamp(.75rem, 2.4vw, 1.5rem); }
.bc-footer .bc-box { padding-bottom: 1.5rem; }
.bc-footer, .bc-footer p { font-size: .92rem; color: var(--bc-muted); }
.bc-footer h2, .bc-footer h3, .bc-footer strong { color: var(--bc-heading); }
.bc-footer a { color: var(--bc-ivory); }
.bc-footer a:hover { color: var(--bc-gold-light); }
.bc-footer .wp-block-columns { gap: var(--bc-gap) !important; }
.bc-footer .wp-block-social-links { gap: .6rem !important; }
.bc-footer .wp-block-social-link { background: var(--bc-surface-2) !important; border: 1px solid var(--bc-line); color: var(--bc-gold-light) !important; }
.bc-footer .wp-block-social-link a { color: var(--bc-gold-light) !important; }

/* ---------- WhatsApp button ---------- */
.bc-wa { position: fixed; right: clamp(.9rem, 2.4vw, 1.5rem); bottom: clamp(.9rem, 2.4vw, 1.5rem); z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bc-gold-grad); color: var(--bc-ink); box-shadow: 0 16px 34px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.15) inset; transition: transform .2s ease; }
.bc-wa:hover { transform: scale(1.06); }
.bc-wa svg { width: 28px; height: 28px; }

/* ---------- Old content clean-up ---------- */
.has-text-align-center { text-align: center; }
.wp-block-spacer { height: 1.5rem !important; }
.bc-content .wp-block-buttons { gap: .75rem; }
.bc-content .wp-block-image { margin-block: 1.5rem; }

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

/* ---------- Fixes from visual review ---------- */
.bc-stack > *, .bc-grid > *, .bc-layout > *, .bc-home-hero > *, .wp-block-columns > *, .bc-content > * { min-width: 0; }
.bc-home-hero h1 { overflow-wrap: anywhere; }
mark, .has-inline-color { background: transparent !important; }
mark { color: var(--bc-gold-light); }
/* Old content used the white "base" colour for text on coloured panels: keep it light. */
.has-base-color, .has-white-color, .has-tertiary-color, .has-main-accent-color { color: var(--bc-ivory) !important; }
.has-black-color, .has-border-dark-color { color: var(--bc-muted) !important; }
.bc-content .has-text-align-center::after, .bc-content [style*="text-align:center"]::after { margin-left: auto; margin-right: auto; }
.bc-content .wp-block-cover h2::after, .bc-content .wp-block-group.has-text-align-center h2::after { margin-left: auto; margin-right: auto; }

/* ---------- Flags ---------- */
.bc-flag { display: inline-block; width: 24px; height: 18px; border-radius: 3px; object-fit: cover; vertical-align: -0.12em; box-shadow: 0 0 0 1px rgba(255,255,255,.14); margin-right: .55em; flex: none; }
.bc-flag--nav { width: 20px; height: 15px; margin-right: .5em; vertical-align: -0.15em; }
.bc-flag--heading { width: .9em; height: auto; aspect-ratio: 4/3; min-width: 22px; vertical-align: 0.02em; margin-right: .4em; border-radius: 3px; }
h1 .bc-flag--heading { width: .7em; }
.bc-flag--cell { width: 22px; height: 16.5px; margin-right: .6em; }

/* ---------- Sub-page / related programme tiles ---------- */
.bc-pagetiles { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.bc-pagetiles a {
	display: flex; align-items: center; gap: .1rem; height: 100%; box-sizing: border-box;
	padding: .85rem 1rem; border-radius: var(--bc-radius-sm);
	background: var(--bc-surface-2); border: 1px solid var(--bc-line);
	color: var(--bc-ivory); font-size: .95rem; font-weight: 500; line-height: 1.35; text-decoration: none;
	transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.bc-pagetiles a span { flex: 1; }
.bc-pagetiles a::after { content: "\2192"; color: var(--bc-gold); margin-left: .75rem; transition: transform .18s ease; }
.bc-pagetiles a:hover { border-color: var(--bc-line-strong); background: rgba(201,164,92,.06); color: var(--bc-heading); transform: translateY(-1px); text-decoration: none; }
.bc-pagetiles a:hover::after { transform: translateX(3px); }

/* ---------- Image sizing on full-width pages ---------- */
/* Image showcases (covers with a fixed aspect ratio) and standalone images keep a comfortable size. */
.bc-content .wp-block-cover.has-aspect-ratio { max-width: min(100%, 720px); margin-inline: auto !important; }
.bc-content > .wp-block-image:not(.alignfull):not(.alignwide), .bc-content .wp-block-group > .wp-block-image:not(.alignfull):not(.alignwide) { max-width: 920px; margin-inline: auto; }
.bc-content .wp-block-image img { max-height: 620px; width: auto; max-width: 100%; margin-inline: auto; display: block; object-fit: contain; }
.bc-content .wp-block-media-text { grid-template-columns: minmax(0, 42%) minmax(0, 1fr) !important; }
.bc-content .wp-block-media-text.has-media-on-the-right { grid-template-columns: minmax(0, 1fr) minmax(0, 42%) !important; }
.bc-content .wp-block-media-text__media img { max-height: 520px; }
@media (max-width: 781px) { .bc-content .wp-block-media-text, .bc-content .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr !important; } }

/* Old colour classes that now map to dark shades must stay legible as text. */
.has-primary-accent-color, .has-border-light-color, .has-line-color, .has-surface-color, .has-surface-2-color, .has-ink-color { color: var(--bc-muted) !important; }
.has-primary-accent-color a, .has-main-accent-color a { color: var(--bc-gold-light) !important; }
.bc-footer p { color: var(--bc-muted) !important; }

/* ---------- Theme icons ---------- */
.bc-icon {
	display: inline-grid; place-items: center; width: 64px; height: 64px; flex: none;
	border-radius: 18px; color: var(--bc-gold-light);
	background: radial-gradient(120% 120% at 30% 20%, rgba(228,200,135,.18), rgba(201,164,92,.04) 60%), var(--bc-surface-3);
	border: 1px solid var(--bc-line-strong);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 24px -16px rgba(201,164,92,.45);
}
.bc-icon svg { width: 30px; height: 30px; }
.bc-icon--sm { width: 44px; height: 44px; border-radius: 13px; }
.bc-icon--sm svg { width: 22px; height: 22px; }
.wp-block-image:has(> .bc-icon), .wp-block-image:has(> a > .bc-icon) { margin-block: .25rem .9rem !important; width: auto !important; max-width: none !important; }
.wp-block-image.aligncenter:has(.bc-icon), .has-text-align-center .wp-block-image:has(.bc-icon), .wp-block-image.is-content-justification-center:has(.bc-icon) { display: flex; justify-content: center; }
.bc-tile .bc-icon { margin-bottom: 1rem; }

/* Old gold/purple panels in content become dark boxes with a gold edge (buttons excluded). */
.bc-content :is(.has-primary-background-color, .has-primary-alt-background-color, .has-primary-alt-accent-background-color, .has-main-background-color, .has-border-dark-background-color, .has-background[class*="-gradient-background"]):not(.wp-block-button__link):not(.wp-block-cover__background) {
	background: var(--bc-surface-2) !important; border: 1px solid var(--bc-line-strong) !important; color: var(--bc-ivory) !important;
}
.bc-content :is(.has-primary-background-color, .has-primary-alt-background-color, .has-primary-alt-accent-background-color, .has-main-background-color, .has-border-dark-background-color):not(.wp-block-button__link) :is(p, li, h2, h3, h4, h5) { color: var(--bc-ivory) !important; }

/* Roboto body text: regular weight, slightly looser for long reading. */
body { font-weight: 400; letter-spacing: .005em; }
.bc-content p, .bc-content li { font-weight: 400; }

/* ---------- FAQ accordions ---------- */
.bc-faq summary { align-items: center; }
.bc-faq summary :is(h3, h4, h5, h6) { margin: 0 !important; font-family: var(--wp--preset--font-family--primary); font-size: 1.02rem !important; font-weight: 600; line-height: 1.45; color: var(--bc-heading); letter-spacing: 0; }
.bc-faq summary :is(h3, h4, h5, h6)::after { display: none !important; }
.bc-faq summary .bc-flag { display: none; }
.bc-faq[open] summary :is(h3, h4, h5, h6) { color: var(--bc-gold-light); }
.bc-faq__answer > :first-child { margin-top: 0; }
.bc-faq__answer > :last-child { margin-bottom: 0; }
.bc-faq__answer { color: var(--bc-ivory); }

/* ---------- Link icons, social buttons ---------- */
.bc-li { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; margin-right: .45em; vertical-align: -0.15em; color: var(--bc-gold); }
.bc-li svg { width: 100%; height: 100%; }
a.bc-link-i { text-decoration: none; }
a.bc-link-i > span:last-child { border-bottom: 1px solid rgba(201,164,92,.35); }
a.bc-link-i:hover > span:last-child { border-bottom-color: var(--bc-gold-light); }
a.bc-social-btn { display: inline-flex; align-items: center; gap: .1rem; padding: .45rem .9rem; margin: .2rem .35rem .2rem 0; border: 1px solid var(--bc-line-strong); border-radius: 999px; background: var(--bc-surface-2); color: var(--bc-ivory); }
a.bc-social-btn > span:last-child { border: 0; }
a.bc-social-btn:hover { border-color: var(--bc-gold); color: var(--bc-gold-light); }
.bc-socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.bc-social-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bc-line-strong); background: var(--bc-surface-2); color: var(--bc-gold-light); transition: border-color .15s, transform .15s; }
.bc-social-icon:hover { border-color: var(--bc-gold); transform: translateY(-1px); }
.bc-social-icon .bc-li { margin: 0; width: 18px; height: 18px; color: inherit; }

/* ---------- Author profile ---------- */
.bc-author-profile { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: flex-start; }
.bc-author-profile > img { flex: none; }
.bc-author-profile > div { flex: 1 1 320px; min-width: 0; }
.bc-author-profile > p:empty, .bc-author-profile br { display: none; }
.bc-author-profile__avatar { width: 112px; height: 112px; border-radius: 50%; border: 1px solid var(--bc-line-strong); }
.bc-author-profile h1 { margin: 0 0 .5rem; font-size: clamp(2rem, 4vw, 3rem); }

/* FAQ group: one box around a run of accordions. */
.bc-content .bc-faq-group { background: var(--bc-surface-2); border: 1px solid var(--bc-line); border-radius: var(--bc-radius-sm); padding: .4rem 1.25rem; margin-block: 1.5rem; }
.bc-faq-group > .wp-block-details { background: none !important; border: 0 !important; border-bottom: 1px solid var(--bc-line) !important; border-radius: 0 !important; margin: 0 !important; padding: 1rem .1rem !important; }
.bc-faq-group > .wp-block-details:last-child { border-bottom: 0 !important; }
