/*
 * Header/footer chrome not covered by Tailwind utilities: the primary-nav
 * dropdowns. Plain CSS enqueued directly (not in the Mix build), reading the
 * theme tokens emitted to :root. Desktop breakpoint is 1360px (2026-11-18, six top-level items); the header
 * layout switches at the same width in css/clpr-refinements.css.
 */

/* Constrain the WP custom logo in the header (it renders at intrinsic size). */
.site-header .custom-logo-link { display: inline-block; line-height: 0; }
.site-header .custom-logo-link img,
.site-header img.custom-logo { height: 33px; width: auto; max-width: 100%; }

.primary-nav,
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--color-accent); text-decoration: none; }
.primary-nav > li > a { display: inline-flex; align-items: center; font-weight: 600; white-space: nowrap; }
@media (min-width: 1360px) { .primary-nav { flex-wrap: nowrap; } }
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--color-accent-hover); }

/* caret on items that have a dropdown */
.primary-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 0.4em; height: 0.4em;
	margin-left: 0.45em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	opacity: 0.55;
}

@media (min-width: 1360px) {
	.primary-nav .menu-item-has-children { position: relative; }
	.primary-nav .sub-menu {
		position: absolute;
		top: 100%; left: 0;
		min-width: 16rem;
		background: var(--color-white-base);
		border: 1px solid rgba(35, 53, 108, 0.10);
		border-radius: 0;
		box-shadow: 0 14px 34px rgba(35, 53, 108, 0.16);
		padding: 0.5rem;
		margin-top: 0.6rem;
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
		z-index: 60;
	}
	.primary-nav .menu-item-has-children:hover > .sub-menu,
	.primary-nav .menu-item-has-children:focus-within > .sub-menu {
		opacity: 1; visibility: visible; transform: translateY(0);
	}
	.primary-nav .sub-menu a {
		display: block;
		padding: 0.5rem 0.75rem;
		border-radius: 0;
		font-weight: 600;
		white-space: nowrap;
	}
	.primary-nav .sub-menu a:hover { background: var(--color-paper); color: var(--color-accent); }
}

/* Mobile (<1360px): the toggle reveals the menu; dropdowns expand inline. */
@media (max-width: 1359px) {
	.primary-nav .sub-menu { padding-left: 1rem; margin-top: 0.25rem; }
	.primary-nav .sub-menu a { display: block; padding: 0.35rem 0; font-weight: 600; }
}

/* Footer partner/supporter links row. */
.footer-supporters a { transition: opacity 0.15s ease; }
.footer-supporters a:hover { opacity: 0.7; }

/* -------------------------------------------------------------------------
 * Sticky table of contents (generic). Emitted as a [data-toc] nav, scroll-spied
 * by js/toc.js. Desktop only. Used by the event detail page.
 * ---------------------------------------------------------------------- */
.cfl-toc { display: none; }

@media (min-width: 1024px) {
	.cfl-toc {
		display: block;
		position: sticky;
		top: 6.5rem;
		max-height: calc(100vh - 8rem);
		overflow-y: auto;
	}
}

.cfl-toc__heading {
	margin: 0 0 0.75rem;
	font-family: var(--font-body, sans-serif);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: color-mix(in oklab, var(--color-ink, #23356c) 55%, transparent);
}
.cfl-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid color-mix(in oklab, var(--color-ink, #23356c) 12%, transparent);
}
.cfl-toc__link {
	display: block;
	margin-left: -2px;
	padding: 0.4rem 0 0.4rem 0.85rem;
	border-left: 2px solid transparent;
	font-family: var(--font-body, sans-serif);
	font-size: 0.9rem;
	line-height: 1.3;
	color: color-mix(in oklab, var(--color-ink, #23356c) 70%, transparent);
	text-decoration: none;
	transition: color 0.15s, border-color 0.15s;
}
.cfl-toc__link:hover { color: var(--color-ink, #23356c); }
.cfl-toc__link.is-active {
	color: var(--color-accent, #0085b7);
	border-left-color: var(--color-accent, #0085b7);
	font-weight: 600;
}

/* -------------------------------------------------------------------------
 * Event gallery "showcase" slider: one main image + thumbnail strip + side
 * arrows + dots + caption. Driven by js/event-gallery.js on the event page.
 * ---------------------------------------------------------------------- */
.cfl-showcase { --thumb: 4.75rem; }
.cfl-showcase:focus-visible { outline: 2px solid var(--color-accent, #0085b7); outline-offset: 4px; border-radius: 0.6rem; }

.cfl-showcase__viewport {
	position: relative;
	overflow: hidden;
	border-radius: 0.75rem;
	background: var(--color-ink, #23356c);
}
.cfl-showcase__track {
	display: flex;
	transition: transform 0.4s ease;
}
.cfl-showcase__slide {
	flex: 0 0 100%;
	min-width: 0;
	margin: 0;
}
.cfl-showcase__slide img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
}

.cfl-showcase__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 2.5rem;
	height: 2.5rem;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--color-ink, #23356c);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(7, 33, 44, 0.25);
	transition: background 0.15s ease;
}
.cfl-showcase__arrow:hover { background: #fff; }
.cfl-showcase__arrow:focus-visible { outline: 2px solid var(--color-accent, #0085b7); outline-offset: 2px; }
.cfl-showcase__arrow svg { width: 1.4rem; height: 1.4rem; }
.cfl-showcase__arrow--prev { left: 0.75rem; }
.cfl-showcase__arrow--next { right: 0.75rem; }

.cfl-showcase__caption {
	text-align: center;
	font-family: var(--font-body, sans-serif);
	font-size: 0.95rem;
	color: var(--color-ink, #23356c);
	opacity: 0.85;
	margin: 0.75rem 0 0;
	min-height: 1.4em;
}

.cfl-showcase__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 0.75rem;
}
.cfl-showcase__dot {
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--color-ink, #23356c) 22%, transparent);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}
.cfl-showcase__dot:hover { background: color-mix(in srgb, var(--color-ink, #23356c) 40%, transparent); }
.cfl-showcase__dot.is-active { background: var(--color-accent, #0085b7); transform: scale(1.2); }

.cfl-showcase__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1rem;
}
.cfl-showcase__thumb {
	flex: 0 0 auto;
	width: var(--thumb);
	height: calc(var(--thumb) * 0.7);
	padding: 0;
	border: 2px solid transparent;
	border-radius: 0.4rem;
	overflow: hidden;
	background: none;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}
.cfl-showcase__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cfl-showcase__thumb:hover { opacity: 1; }
.cfl-showcase__thumb.is-active { opacity: 1; border-color: var(--color-accent, #0085b7); }
.cfl-showcase__thumb:focus-visible { outline: 2px solid var(--color-accent, #0085b7); outline-offset: 2px; }

/* Blurred semicolon watermark behind the footer "Why the Semicolon?" block
   (prod asset, pulled 2026-07-31; the glow/blur is baked into the PNG). */
.footer-why { position: relative; }
.footer-why::before {
	content: "";
	position: absolute;
	top: -1.5rem;
	right: 0;
	width: 90px;
	height: 219px;
	background: url('../images/footer-semicolon.png') no-repeat top right / contain;
	pointer-events: none;
}
.footer-why > * { position: relative; }
