/* ==========================================================================
   BCIJ Communities — main stylesheet
   Palette taken directly from the BCIJ logo.
   ========================================================================== */

:root {
	--black: #000;
	--ink: #111;
	--ink-2: #2b2b2b;
	--muted: #5b5b5b;
	--line: #e5e1d8;
	--paper: #fff;
	--sand: #f6f2ea;
	--red: #c3272e;
	--red-dark: #9e1d23;
	--green: #0d9447;
	--green-dark: #0a7437;
	--gold: #fcb03b;
	--gold-dark: #e89a1f;

	--font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
	--font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1200px;
	--narrow: 780px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 14px;
	--radius-lg: 24px;
	--shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06);
	--header-h: 84px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
.custom-logo, .card__media img, .featured-image img { display: block; }
a { color: var(--green-dark); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
	color: var(--ink);
}
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 12px; top: 12px; z-index: 1000; padding: 12px 18px;
	background: var(--gold); color: var(--black); font-weight: 700; text-decoration: none;
}
.site-main:focus { outline: none; }

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

/* ---------- Signature tri-bar (red / green / gold) ---------- */
.tri-bar { display: flex; height: 6px; }
.tri-bar span { flex: 1; }
.tri-bar span:nth-child(1) { background: var(--red); }
.tri-bar span:nth-child(2) { background: var(--green); }
.tri-bar span:nth-child(3) { background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .6em;
	padding: .95em 1.5em;
	border: 2px solid transparent; border-radius: 999px;
	font-family: var(--font-display); font-weight: 800; font-size: .95rem;
	letter-spacing: .04em; text-transform: uppercase; text-decoration: none; line-height: 1;
	cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .15s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn--sm { padding: .75em 1.2em; font-size: .82rem; }
.btn--sm .icon { display: none; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: #fff; color: var(--black); }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; }
.btn--outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--black); border-color: #fff; }
.btn--outline-dark { border-color: var(--black); color: var(--black); }
.btn--outline-dark:hover { background: var(--black); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
	display: inline-flex; align-items: center; gap: .4em;
	font-family: var(--font-display); font-weight: 800; font-size: .9rem;
	text-transform: uppercase; letter-spacing: .05em; color: var(--ink); text-decoration: none;
}
.link-arrow:hover { color: var(--red); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .15s ease; }

.eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font-family: var(--font-display); font-weight: 800; font-size: .8rem;
	text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 4px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--gold); }

.pill {
	display: inline-block; padding: .3em .8em; border-radius: 999px;
	background: var(--black); color: #fff; text-decoration: none;
	font-family: var(--font-display); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
}
.pill:hover { background: var(--red); color: #fff; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--line);
	transition: box-shadow .2s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-branding { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 0; }
.site-branding .custom-logo-link { display: block; flex: none; }
.site-branding .custom-logo { height: 64px; width: auto; }
.site-title { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; max-width: 24ch; }
.site-title a { color: var(--black); text-decoration: none; }
.site-description { margin: 2px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.3; }

.main-navigation { display: flex; align-items: center; gap: 22px; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation .menu { display: flex; align-items: center; gap: 4px; }
.main-navigation li { position: relative; }
.main-navigation .menu > li > a {
	display: block; padding: 10px 12px; border-radius: 8px;
	font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--ink); text-decoration: none;
}
.main-navigation .menu > li > a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a { color: var(--red); }
.main-navigation .menu-item-has-children { display: flex; align-items: center; }
.main-navigation .menu-item-has-children > a { padding-right: 2px; }
.submenu-toggle { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink); display: inline-flex; }
.submenu-toggle .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.main-navigation .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 230px; padding: 10px;
	background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 0 0 12px 12px;
	box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu,
.main-navigation .sub-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.main-navigation .sub-menu a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.main-navigation .sub-menu a:hover { background: var(--sand); color: var(--red); }

.menu-toggle { display: none; background: var(--black); color: #fff; border: 0; border-radius: 10px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline-flex; }

@media (max-width: 960px) {
	:root { --header-h: 72px; }
	.site-branding .custom-logo { height: 52px; }
	.menu-toggle { display: inline-flex; }
	.main-navigation {
		position: fixed; inset: calc(var(--header-h) + 6px) 0 0 0; z-index: 99;
		flex-direction: column; align-items: stretch; gap: 20px;
		padding: 24px var(--gutter) 40px; background: #fff; overflow-y: auto;
		transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
	}
	.admin-bar .main-navigation { top: calc(var(--header-h) + 6px + 46px); }
	.main-navigation.is-open { transform: none; visibility: visible; }
	.main-navigation .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.main-navigation .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.main-navigation .menu > li > a { padding: 16px 4px; font-size: 1.2rem; flex: 1; }
	.main-navigation .sub-menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 12px; display: none; }
	.main-navigation .sub-menu.is-open { display: block; }
	.main-navigation li:hover > .sub-menu { display: none; }
	.main-navigation li:hover > .sub-menu.is-open, .main-navigation li:focus-within > .sub-menu.is-open { display: block; }
	.header-cta { justify-content: center; padding: 1.1em; font-size: .95rem; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) {
	.site-title { font-size: .9rem; }
	.site-description { display: none; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--black); color: #fff;
}
.hero--photo::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background: var(--hero-img) center / cover no-repeat;
}
.hero--photo::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .75) 55%, rgba(0, 0, 0, .35) 100%);
}
.hero__inner {
	display: grid; grid-template-columns: 1.35fr .9fr; align-items: end; gap: 40px;
	min-height: min(82vh, 760px); padding-top: clamp(56px, 9vw, 110px);
}
.hero__copy { align-self: center; padding-bottom: clamp(48px, 7vw, 96px); }
.hero__title {
	font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
	font-size: clamp(2.5rem, 5.6vw, 5rem); line-height: .94; letter-spacing: -.02em;
	color: #fff; margin: 0 0 .4em; text-wrap: balance;
}
.hero__title .hl { color: var(--gold); }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .82); max-width: 40ch; margin-bottom: 2em; }

.hero__art { align-self: end; display: flex; justify-content: center; }
.figures { display: flex; align-items: flex-end; gap: clamp(10px, 1.6vw, 20px); height: clamp(280px, 38vw, 480px); }
.fig { display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.1vw, 14px); width: clamp(70px, 9vw, 118px); }
.fig i { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; }
.fig b { display: block; width: 100%; border-radius: 999px 999px 0 0; }
.fig--red { color: var(--red); }
.fig--green { color: var(--green); }
.fig--gold { color: var(--gold); }
.fig i, .fig b { background: currentColor; }
.fig--red b { height: clamp(150px, 20vw, 260px); }
.fig--green b { height: clamp(185px, 25vw, 320px); }
.fig--gold b { height: clamp(130px, 17.5vw, 225px); }
@media (prefers-reduced-motion: no-preference) {
	.fig { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
	.fig--green { animation-delay: .12s; }
	.fig--gold { animation-delay: .24s; }
	@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 860px) {
	.hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
	.hero__copy { padding-bottom: 36px; }
	.figures { height: 200px; }
	.fig { width: 62px; }
	.fig--red b { height: 110px; } .fig--green b { height: 136px; } .fig--gold b { height: 96px; }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--gold); color: var(--black); overflow: hidden; border-block: 3px solid var(--black); }
.ticker__track { display: flex; width: max-content; }
.ticker__list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker__list li {
	display: flex; align-items: center; white-space: nowrap; padding: 16px 0;
	font-family: var(--font-display); font-weight: 900; font-size: clamp(1rem, 1.8vw, 1.35rem); text-transform: uppercase; letter-spacing: .02em;
}
.ticker__list li::after { content: ""; width: 12px; height: 12px; margin: 0 28px; border-radius: 50%; background: var(--black); }
@media (prefers-reduced-motion: no-preference) {
	.ticker__track { animation: ticker 38s linear infinite; }
	.ticker:hover .ticker__track { animation-play-state: paused; }
	@keyframes ticker { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
	.ticker__list[aria-hidden="true"] { display: none; }
	.ticker__track { width: auto; justify-content: center; flex-wrap: wrap; }
	.ticker__list { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-title { font-weight: 900; font-size: clamp(2rem, 4.2vw, 3.3rem); text-transform: uppercase; letter-spacing: -.015em; line-height: 1; margin-bottom: .35em; }
.section-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); margin: 0; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
	position: relative; padding: 36px 30px 34px; background: #fff;
	border: 1px solid var(--line); border-top: 10px solid var(--c); border-radius: 6px 6px var(--radius) var(--radius);
	box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, .1); }
.pillar--red { --c: var(--red); }
.pillar--green { --c: var(--green); }
.pillar--gold { --c: var(--gold); }
.pillar__icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--c); color: #fff; margin-bottom: 22px; }
.pillar--gold .pillar__icon { color: var(--black); }
.pillar__icon .icon { width: 28px; height: 28px; }
.pillar__num { position: absolute; top: 22px; right: 26px; font-family: var(--font-display); font-weight: 900; font-size: 3rem; line-height: 1; color: var(--sand); }
.pillar__title { font-size: 1.45rem; text-transform: uppercase; font-weight: 900; }
.pillar__title a { color: inherit; text-decoration: none; }
.pillar__title a:hover { color: var(--c); }
.pillar p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* Communities */
.section--communities { background: var(--sand); }
.communities { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.communities__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.community {
	display: flex; align-items: center; gap: 16px; padding: 20px 24px;
	background: #fff; border-radius: 12px; border-left: 8px solid var(--c);
	font-family: var(--font-display); font-weight: 800; font-size: clamp(1.05rem, 1.8vw, 1.35rem); text-transform: uppercase; letter-spacing: .01em;
}
.community::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; }
.community--red { --c: var(--red); }
.community--green { --c: var(--green); }
.community--gold { --c: var(--gold); }
@media (max-width: 860px) { .communities { grid-template-columns: 1fr; } }

/* Front page page-content */
.section--page { padding-block: clamp(48px, 7vw, 88px); }

/* Statement */
.section--statement { background: var(--black); color: #fff; position: relative; overflow: hidden; }
.section--statement::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
	background: linear-gradient(90deg, var(--red) 0 33.33%, var(--green) 33.33% 66.66%, var(--gold) 66.66%);
}
.statement { margin: 0; position: relative; padding-top: 70px; }
.statement::before {
	content: "\201C"; position: absolute; top: -30px; left: -6px;
	font-family: var(--font-display); font-weight: 900; font-size: 9rem; line-height: 1; color: var(--gold);
}
.statement p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.25; letter-spacing: -.01em; margin-bottom: 1em; }
.statement cite { font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--gold); }
.statement cite::before { content: "— "; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, .1); }
.card__media { display: block; aspect-ratio: 16 / 10; background: var(--black); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 100%; padding-top: 18%; }
.card__placeholder span { width: 16%; border-radius: 999px 999px 0 0; }
.card__placeholder span:nth-child(1) { background: var(--red); height: 62%; }
.card__placeholder span:nth-child(2) { background: var(--green); height: 78%; }
.card__placeholder span:nth-child(3) { background: var(--gold); height: 52%; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 26px; flex: 1; }
.card__meta { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); }
.card__title { font-size: 1.3rem; margin: 4px 0 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--red); }
.card__excerpt { color: var(--muted); margin: 0 0 6px; font-size: .98rem; }
.card .link-arrow { margin-top: auto; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid, .card-grid--2 { grid-template-columns: 1fr; } }

/* CTA */
.section--cta { background: var(--gold); padding-block: clamp(56px, 8vw, 100px); }
.cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.cta__title { font-weight: 900; font-size: clamp(2.4rem, 6vw, 4.6rem); text-transform: uppercase; line-height: .95; letter-spacing: -.02em; margin-bottom: .3em; }
.cta__copy p { font-size: 1.15rem; max-width: 46ch; margin: 0; color: var(--ink-2); }
.cta__actions { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.cta__actions .btn-row { justify-content: flex-start; }
.cta__form { width: 100%; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--black); color: #fff; }
.page-hero .container { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.page-hero__title { color: #fff; font-weight: 900; text-transform: uppercase; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.page-hero__title span { color: var(--gold); }
.page-hero__sub { margin-top: 18px; font-size: 1.15rem; color: rgba(255, 255, 255, .78); max-width: 60ch; }
.page-hero__sub p:last-child { margin: 0; }
.page-hero__sub .search-form { margin-top: 8px; max-width: 520px; }
.page-hero--post .pill { background: var(--gold); color: var(--black); margin-bottom: 18px; }
.page-hero--post .page-hero__title { text-transform: none; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.entry-meta { margin-top: 18px; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.entry-meta a { color: #fff; }
.entry-meta .byline { margin-left: .2em; }

/* ---------- Layout with sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-block: clamp(40px, 6vw, 80px); }
.no-sidebar .layout { grid-template-columns: minmax(0, 1fr); }
.single.no-sidebar .layout__main { max-width: var(--narrow); margin-inline: auto; width: 100%; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }
.page-body { padding-block: clamp(40px, 6vw, 80px); }

/* ---------- Entry content ---------- */
.featured-image { margin: 0 0 36px; border-radius: var(--radius); overflow: hidden; }
.featured-image img { width: 100%; }
.entry-content > * { margin-block: 0 1.25em; }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.entry-content h3 { font-size: 1.45rem; margin-top: 1.4em; }
.entry-content h4 { font-size: 1.2rem; margin-top: 1.3em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--red); font-weight: 700; }
.entry-content blockquote, .wp-block-quote {
	margin-inline: 0; padding: 8px 0 8px 26px; border-left: 6px solid var(--gold);
	font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.35;
}
.entry-content blockquote cite, .wp-block-quote cite { display: block; margin-top: 10px; font-family: var(--font-text); font-size: .9rem; font-style: normal; font-weight: 600; color: var(--muted); }
.entry-content hr, .wp-block-separator { border: 0; height: 6px; background: linear-gradient(90deg, var(--red) 0 33.33%, var(--green) 33.33% 66.66%, var(--gold) 66.66%); margin-block: 2.5em; opacity: 1; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { font-family: var(--font-display); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .wp-element-caption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.entry-content img { border-radius: 10px; }
.entry-content pre { background: var(--sand); padding: 18px; border-radius: 10px; overflow-x: auto; }
.entry-content .alignwide { width: min(1100px, 100vw - 2 * var(--gutter)); margin-inline: calc(50% - min(1100px, 100vw - 2 * var(--gutter)) / 2); max-width: none; }
.entry-content .alignfull { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
.entry-content--full > .alignfull:first-child { margin-top: 0; }
.entry-content--full > *:not(.alignfull):not(.alignwide) { max-width: var(--narrow); margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.entry-content--full { padding-bottom: 60px; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }

/* Core block buttons adopt theme styles */
.wp-block-button__link {
	border-radius: 999px; padding: .95em 1.6em; background: var(--red); color: #fff;
	font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; text-decoration: none;
}
.wp-block-button__link:hover { filter: brightness(.92); color: #fff; }
.is-style-outline > .wp-block-button__link { background: transparent; border: 2px solid currentColor; color: var(--black); }
.wp-block-cover .wp-block-cover__inner-container h2 { color: inherit; }

/* Palette helpers for block editor colors */
.has-bcij-black-color { color: var(--black) !important; }
.has-bcij-red-color { color: var(--red) !important; }
.has-bcij-green-color { color: var(--green) !important; }
.has-bcij-gold-color { color: var(--gold) !important; }
.has-bcij-sand-color { color: var(--sand) !important; }
.has-bcij-white-color { color: #fff !important; }
.has-bcij-black-background-color { background-color: var(--black) !important; }
.has-bcij-red-background-color { background-color: var(--red) !important; }
.has-bcij-green-background-color { background-color: var(--green) !important; }
.has-bcij-gold-background-color { background-color: var(--gold) !important; }
.has-bcij-sand-background-color { background-color: var(--sand) !important; }
.has-bcij-white-background-color { background-color: #fff !important; }
.has-background { padding: 1.5em 1.75em; }

/* Entry footer / post nav */
.entry-footer { margin-top: 32px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { padding: 6px 12px; border-radius: 999px; background: var(--sand); color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 600; }
.tag-list a:hover { background: var(--black); color: #fff; }
.post-navigation { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 28px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation a { display: block; text-decoration: none; color: var(--ink); }
.nav-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--red); margin-bottom: 4px; }
.nav-title { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; line-height: 1.25; }
.post-navigation a:hover .nav-title { color: var(--green-dark); }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: 999px; border: 2px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700;
}
.pagination .page-numbers.current { background: var(--black); border-color: var(--black); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--black); }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], textarea, select {
	width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 10px; background: #fff;
	font: inherit; color: var(--ink); transition: border-color .15s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--black); outline: none; box-shadow: 0 0 0 3px rgba(252, 176, 59, .5); }
label { font-weight: 600; font-size: .95rem; }
button, input[type="submit"] { font: inherit; }
input[type="submit"] {
	border: 0; border-radius: 999px; padding: .95em 1.6em; background: var(--black); color: #fff; cursor: pointer;
	font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
input[type="submit"]:hover { background: var(--red); }

.search-form { display: flex; gap: 0; position: relative; }
.search-form .search-field { padding-right: 58px; border-radius: 999px; }
.search-submit { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--black); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.search-submit:hover { background: var(--red); }
.notfound .search-form { margin-bottom: 28px; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-meta a { color: var(--muted); font-size: .85rem; text-decoration: none; }
.comment-reply-link { font-size: .85rem; font-weight: 700; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent input { margin-top: 6px; }

/* ---------- Widgets ---------- */
.widget { margin-bottom: 40px; }
.widget-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 3px solid var(--black); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget li a { color: var(--ink); text-decoration: none; font-weight: 500; }
.widget li a:hover { color: var(--red); }
.layout__side .widget { background: var(--sand); padding: 24px; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255, 255, 255, .78); font-size: .97rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding-block: 64px 48px; }
.site-footer__brand .custom-logo { height: 110px; width: auto; margin-bottom: 20px; }
.site-footer__about { max-width: 38ch; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .widget-title { color: #fff; border-color: var(--gold); display: inline-block; }
.site-footer .widget li { border-color: rgba(255, 255, 255, .12); }
.site-footer .widget li a { color: rgba(255, 255, 255, .85); }
.site-footer .widget li a:hover { color: var(--gold); }
.footer-list, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding: 6px 0; display: flex; align-items: center; gap: 10px; }
.footer-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.footer-list li:nth-child(1)::before { background: var(--red); }
.footer-list li:nth-child(2)::before { background: var(--green); }
.footer-contact li { display: flex; gap: 12px; padding: 6px 0; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 4px; }
.social-nav ul { list-style: none; display: flex; gap: 10px; margin: 20px 0 0; padding: 0; }
.social-nav a { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); color: #fff; }
.social-nav a:hover { background: var(--gold); color: var(--black); }
.social-nav .icon { width: 20px; height: 20px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 22px; font-size: .85rem; }
.site-footer__bottom p { margin: 0; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; gap: 36px; } }

/* No results */
.no-results { padding: 40px; background: var(--sand); border-radius: var(--radius); }

/* WordPress core required classes */
.sticky .card__title::before { content: "★ "; color: var(--gold); }
.bypostauthor > .comment-body .fn::after { content: " (author)"; font-weight: 400; color: var(--muted); font-size: .85rem; }
.gallery-caption, .wp-caption-text { font-size: .88rem; color: var(--muted); }
.wp-caption { max-width: 100%; }

@media print {
	.site-header, .site-footer, .ticker, .hero__art, .tri-bar { display: none !important; }
	.hero, .page-hero, .section--statement { background: none !important; color: #000 !important; }
	.hero__title, .page-hero__title { color: #000 !important; }
}

/* Wider archive grid when there is no sidebar */
@media (min-width: 961px) { .no-sidebar .card-grid--2 { grid-template-columns: repeat(3, 1fr); } }

/* Block widgets (default WP 5.8+ widgets) */
.widget .wp-block-heading, .widget h2.wp-block-heading { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 3px solid var(--black); }
.site-footer .widget .wp-block-heading { color: #fff; border-color: var(--gold); }
.wp-block-search__label { font-family: var(--font-display); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.wp-block-search__inside-wrapper { gap: 8px; }
.wp-block-search__input { border-radius: 999px !important; }
.wp-block-search__button { margin: 0; border: 0; border-radius: 999px; padding: 0 18px; background: var(--black); color: #fff; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; cursor: pointer; }
.wp-block-search__button:hover { background: var(--red); }

/* ==========================================================================
   Elementor compatibility
   ========================================================================== */

/* Column options used by the News section / BCIJ News Grid widget */
@media (min-width: 961px) {
	.card-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
	.card-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
	.card-grid--cols-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}
.card-grid.card-grid--cols-1 { grid-template-columns: minmax(0, 1fr); }

/* Hero without the figures artwork */
.hero--no-art .hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.hero--no-art .hero__copy { padding-bottom: clamp(56px, 9vw, 110px); max-width: 900px; }

/* Section heading widget */
.bcij-heading { margin-bottom: 0; }
.bcij-heading--center { margin-inline: auto; text-align: center; }
.bcij-heading--center .eyebrow { justify-content: center; }
.bcij-heading--dark .section-title { color: #fff; }
.bcij-heading--dark .section-lead { color: rgba(255, 255, 255, .78); }
.bcij-divider { width: 100%; }

/* Elementor pages: no theme padding/width, Elementor controls the layout */
.bcij-elementor-page { width: 100%; }
.bcij-elementor-page::after { content: ""; display: table; clear: both; }

/* Keep theme "prose" styles from leaking into Elementor widgets */
.elementor img { border-radius: 0; }
.elementor .elementor-button { text-decoration: none; }
.elementor .elementor-button:hover { color: inherit; }

/* BCIJ widgets fill their Elementor column */
.elementor-widget[class*="elementor-widget-bcij-"] { width: 100%; }
.elementor-widget[class*="elementor-widget-bcij-"] > .elementor-widget-container { margin: 0; padding: 0; }

/* Elementor Canvas / Full Width layouts keep the brand background */
body.elementor-template-canvas { background: var(--paper); }

/* Elementor editor: the ticker should not scroll while editing */
.elementor-editor-active .ticker__track { animation-play-state: paused; }

/* Elementor Button widget: pill shape + brand type by default.
   (Colors come from the Elementor global Accent color = BCIJ red.) */
.elementor .elementor-button {
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-family: var(--font-display);
	font-weight: 800;
	padding: 15px 26px;
}

/* Pillar column options (desktop only; stacks below 900px) */
@media (min-width: 901px) {
	.pillars--cols-1 { grid-template-columns: minmax(0, 1fr); }
	.pillars--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pillars--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pillars--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
}

/* Breathing room between the page title band and Elementor content */
.page-hero + .bcij-elementor-page { padding-block: clamp(32px, 5vw, 64px); }
