/**
 * Cell-Cup theme · main stylesheet.
 *
 * 1. Design tokens
 * 2. Base
 * 3. Layout helpers
 * 4. Components (buttons, eyebrow, placeholder, social)
 * 5. Header + desktop nav
 * 6. Language switcher
 * 7. Mobile menu
 * 8. Page hero
 * 9. Footer
 * 10. Mobile register bar
 * 11. Content (prose, post list)
 * 12. Motion (button sheen / fill, link underlines, card lift, scroll reveal,
 *     header intro + compact state, back-to-top)
 *
 * Design reference: 1440px desktop (docs/mockup), 390px mobile.
 */

/* 1. Design tokens ------------------------------------------------------ */

:root {
	--cc-accent: #F2BD18;
	--cc-black: #1A1A1A;
	--cc-cream: #FFFBEA;
	--cc-white: #FFFFFF;
	--cc-card-dark: #262626;
	--cc-border-cream: #EFE7CC;
	--cc-text-muted: #5E584A;
	--cc-text-muted-dark: #BDB6A0;
	--cc-text-soft-dark: #D9D3BE;
	--cc-text-faint-dark: #9A9484;
	--cc-line-dark: #333333;
	--cc-line-dark-strong: #4A4A4A;
	--cc-brown: #8A6A00;
	--cc-tag-bg: #FFF1B8;
	--cc-tag-text: #6B5200;

	--cc-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--cc-radius-pill: 999px;
	--cc-radius-sm: 18px;
	--cc-radius-md: 24px;
	--cc-radius-lg: 28px;
	--cc-radius-xl: 32px;

	/* Content column: max 1200px of content, centred, plus the gutters
	   (on a 1440px laptop that leaves ~120px on each side). The header
	   keeps the wider --cc-header-max so the nine-item nav still fits. */
	--cc-gutter: 56px;
	--cc-content: 1200px;
	--cc-container: calc(var(--cc-content) + 2 * var(--cc-gutter));
	--cc-header-max: 1440px;
	/* Full header height; --cc-header-h is the current one (it shrinks by
	   --cc-header-shrink once the page is scrolled, see 12. Motion). */
	--cc-header-full: 96px;
	--cc-header-shrink: 16px;
	--cc-header-h: var(--cc-header-full);

	--cc-section-y: 88px;
	--cc-shadow-card: 0 12px 30px rgba(26, 26, 26, .1);

	/* Focus ring colour: dark on light surfaces, accent on dark ones. */
	--cc-focus: var(--cc-black);
}

@media (max-width: 1023px) {
	:root {
		--cc-gutter: 32px;
		--cc-section-y: 64px;
	}
}

@media (max-width: 767px) {
	:root {
		--cc-gutter: 20px;
		--cc-header-full: 72px;
		--cc-header-shrink: 8px;
		--cc-section-y: 40px;
	}
}

/* 2. Base ---------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--cc-header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--cc-cream);
	color: var(--cc-black);
	font-family: var(--cc-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.cc-menu-open {
	overflow: hidden;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--cc-brown);
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 800;
	line-height: 1.15;
}

p,
ul,
ol,
address {
	margin: 0;
}

address {
	font-style: normal;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--cc-focus);
	outline-offset: 3px;
	border-radius: 4px;
}

.cc-on-dark,
.cc-header,
.cc-footer,
.cc-page-hero,
.cc-mobile-menu,
.cc-register-bar {
	--cc-focus: var(--cc-accent);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cc-skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: 12px 20px;
	border-radius: var(--cc-radius-pill);
	background: var(--cc-accent);
	color: var(--cc-black);
	font-weight: 700;
	transform: translateY(-200%);
}

.cc-skip-link:focus {
	transform: none;
	--cc-focus: var(--cc-black);
}

.cc-main:focus {
	outline: none;
}

/* 3. Layout helpers ---------------------------------------------------- */

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

.cc-section {
	padding-block: var(--cc-section-y);
}

/* 4. Components ------------------------------------------------------- */

.cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 14px 24px;
	border: 1px solid transparent;
	border-radius: var(--cc-radius-pill);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	/* Hosts the sheen / fill layers (see 12. Motion). */
	position: relative;
	isolation: isolate;
	overflow: hidden;
	transition: background-color .2s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.cc-btn--sm {
	padding: 12px 22px;
}

.cc-btn--block {
	display: flex;
	width: 100%;
	padding: 16px;
	font-size: 15px;
}

.cc-btn--primary {
	background: var(--cc-accent);
	color: var(--cc-black);
}

.cc-btn--primary:hover {
	color: var(--cc-black);
	box-shadow: 0 8px 22px rgba(242, 189, 24, .28);
}

.cc-btn--ghost {
	border-color: var(--cc-line-dark-strong);
	color: var(--cc-cream);
	font-weight: 600;
	/* Text turns dark once most of the fill has passed. */
	transition: color .2s ease .15s, border-color .35s ease;
}

.cc-btn--ghost.cc-btn--sm {
	padding-inline: 16px;
}

.cc-btn--ghost:hover,
.cc-btn--ghost:focus-visible {
	border-color: var(--cc-accent);
	color: var(--cc-black);
}

.cc-btn--dark {
	background: var(--cc-black);
	color: var(--cc-cream);
}

.cc-btn--dark:hover {
	color: var(--cc-cream);
	box-shadow: 0 8px 22px rgba(26, 26, 26, .25);
}

.cc-eyebrow {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--cc-brown);
}

.cc-on-dark .cc-eyebrow,
.cc-page-hero .cc-eyebrow {
	color: var(--cc-accent);
}

/* Neutral image placeholder: keeps the layout when a photo is missing. */
.cc-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(135deg, #2A2A2A 0 14px, #242424 14px 28px);
	color: #9A9A9A;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cc-ph {
	border-radius: inherit;
	text-align: center;
}

.cc-ph__label {
	padding: 12px;
}

.cc-ph--light {
	background: repeating-linear-gradient(135deg, #F3EBCB 0 14px, #EFE5BE 14px 28px);
	color: #8C7A3A;
}

.cc-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: var(--cc-radius-pill);
	background: var(--cc-tag-bg);
	color: var(--cc-tag-text);
	font-size: 12px;
	font-weight: 600;
}

.cc-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	list-style: none;
}

.cc-social__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid #444444;
	border-radius: 50%;
	color: var(--cc-cream);
	transition: border-color .15s ease, color .15s ease;
}

.cc-social__link:hover {
	border-color: var(--cc-accent);
	color: var(--cc-accent);
}

.cc-social__link:focus-visible {
	border-radius: 50%;
}

/* 5. Header + desktop nav --------------------------------------------- */

.cc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--cc-black);
	color: var(--cc-cream);
	transition: margin-bottom .3s ease, box-shadow .3s ease;
}

.admin-bar .cc-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.cc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: var(--cc-header-max);
	height: var(--cc-header-h);
	margin-inline: auto;
	padding-inline: var(--cc-gutter);
	transition: height .3s ease;
}

.cc-brand {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 12px;
	color: var(--cc-cream);
}

.cc-brand:hover {
	color: var(--cc-cream);
}

.cc-brand__mark {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--cc-accent);
	color: var(--cc-black);
	font-size: 13px;
	font-weight: 800;
}

.cc-brand__img {
	width: auto;
	height: 44px;
}

.cc-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.cc-brand__name {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: .02em;
}

.cc-brand__tagline {
	margin-top: 2px;
	color: var(--cc-text-muted-dark);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.cc-nav__list {
	display: flex;
	gap: 24px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

.cc-nav__list a {
	position: relative;
	display: block;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	background: linear-gradient(var(--cc-accent), var(--cc-accent)) no-repeat left bottom / 0 2px border-box;
	background-origin: border-box;
	color: var(--cc-cream);
	white-space: nowrap;
	transition: color .15s ease, border-color .15s ease, background-size .3s ease;
}

/* Extends the hit area to 44px without moving the underline. */
.cc-nav__list a::after {
	content: "";
	position: absolute;
	inset: -6px -8px;
}

.cc-nav__list a:hover,
.cc-nav__list a:focus-visible {
	background-size: 100% 2px;
	color: var(--cc-accent);
}

.cc-nav__list .current-menu-item > a,
.cc-nav__list .current-menu-ancestor > a,
.cc-nav__list .current_page_parent > a,
.cc-nav__list .current_page_ancestor > a {
	border-bottom-color: var(--cc-accent);
	color: var(--cc-accent);
}

.cc-header__actions {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 12px;
}

.cc-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cc-cream);
	cursor: pointer;
}

.cc-menu-toggle .cc-icon {
	stroke-width: 2.2;
}

/*
 * The mockup header (brand + tagline, 9 items at 14px/24px gap, actions) is
 * ~1500px wide and does not fit the 1440px container. On desktop the tagline
 * is dropped and the gaps tightened; below 1360px the hamburger takes over
 * (the tagline comes back there, since the bar has room).
 */
.cc-header .cc-nav__list {
	gap: 18px;
}

@media (min-width: 1360px) {
	.cc-header .cc-brand__tagline {
		display: none;
	}
}

@media (min-width: 1360px) and (max-width: 1439px) {
	.cc-header {
		--cc-gutter: 40px;
	}

	.cc-header .cc-nav__list {
		gap: 14px;
		font-size: 13px;
	}
}

@media (max-width: 1359px) {
	.cc-nav,
	.cc-header__actions {
		display: none;
	}

	.cc-menu-toggle {
		display: flex;
	}
}

@media (max-width: 767px) {
	.cc-brand {
		gap: 10px;
	}

	.cc-brand__mark {
		width: 36px;
		height: 36px;
		font-size: 10px;
	}

	.cc-brand__img {
		height: 36px;
	}

	.cc-brand__name {
		font-size: 18px;
	}

	.cc-header .cc-brand__tagline {
		display: none;
	}
}

/* 6. Language switcher (only with Polylang) -------------------------- */

.cc-lang {
	position: relative;
}

.cc-lang__toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: var(--cc-cream);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.cc-lang__toggle[aria-expanded="true"] .cc-icon {
	transform: rotate(180deg);
}

.cc-lang__list {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 160px;
	padding: 8px;
	border-radius: var(--cc-radius-sm);
	background: var(--cc-card-dark);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	list-style: none;
}

.cc-lang__list a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 10px;
	color: var(--cc-cream);
	font-size: 14px;
	font-weight: 500;
}

.cc-lang__list a:hover,
.cc-lang__list a[aria-current] {
	color: var(--cc-accent);
}

.cc-mobile-menu .cc-lang__list {
	top: auto;
	bottom: calc(100% + 8px);
}

/* 7. Mobile menu ------------------------------------------------------ */

.cc-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 0 var(--cc-gutter) calc(24px + env(safe-area-inset-bottom));
	overflow-y: auto;
	background: var(--cc-black);
	color: var(--cc-cream);
	overscroll-behavior: contain;
}

.cc-mobile-menu[hidden] {
	display: none;
}

.admin-bar .cc-mobile-menu {
	top: var(--wp-admin--admin-bar--height, 46px);
}

.cc-mobile-menu__bar {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-between;
	height: var(--cc-header-h);
}

.cc-mobile-menu__bar .cc-menu-toggle {
	display: flex;
}

.cc-mobile-menu__list {
	display: flex;
	flex-direction: column;
	padding: 0;
	list-style: none;
}

.cc-mobile-menu__list a {
	display: flex;
	align-items: center;
	min-height: 56px;
	border-bottom: 1px solid var(--cc-line-dark);
	color: var(--cc-cream);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.cc-mobile-menu__list a:hover,
.cc-mobile-menu__list .current-menu-item > a,
.cc-mobile-menu__list .current_page_parent > a,
.cc-mobile-menu__list .current-menu-ancestor > a {
	color: var(--cc-accent);
}

.cc-mobile-menu__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cc-mobile-menu__actions .cc-btn--ghost {
	border-color: #555555;
}

.cc-mobile-menu__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
}

@media (min-width: 1360px) {
	.cc-mobile-menu {
		display: none !important;
	}
}

/* 8. Page hero (common subpage hero) --------------------------------- */

.cc-page-hero {
	background: var(--cc-black);
	color: var(--cc-cream);
}

.cc-page-hero__inner {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: var(--cc-container);
	min-height: 380px;
	margin-inline: auto;
	padding: 56px var(--cc-gutter) 64px;
}

.cc-page-hero--md .cc-page-hero__inner {
	min-height: 320px;
}

.cc-page-hero__inner > * {
	max-width: 760px;
}

.cc-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	padding: 0;
	list-style: none;
	color: var(--cc-text-faint-dark);
	font-size: 13px;
}

.cc-breadcrumb li + li::before {
	content: "/";
	margin: 0 6px;
}

.cc-breadcrumb a {
	color: var(--cc-text-faint-dark);
}

.cc-breadcrumb a:hover {
	color: var(--cc-accent);
}

.cc-breadcrumb [aria-current] {
	color: var(--cc-cream);
}

.cc-page-hero__eyebrow {
	margin-top: 12px;
}

.cc-page-hero__title {
	color: var(--cc-cream);
	font-size: 64px;
	line-height: 1.04;
	letter-spacing: -.02em;
}

.cc-page-hero__lead {
	color: var(--cc-text-soft-dark);
	font-size: 18px;
	line-height: 1.6;
}

@media (max-width: 1023px) {
	.cc-page-hero__title {
		font-size: 52px;
	}
}

@media (max-width: 767px) {
	.cc-page-hero__inner,
	.cc-page-hero--md .cc-page-hero__inner {
		gap: 14px;
		min-height: 0;
		padding-block: 32px 40px;
	}

	.cc-page-hero__eyebrow {
		margin-top: 6px;
		font-size: 11px;
	}

	.cc-page-hero__title {
		font-size: 40px;
		line-height: 1.05;
	}

	.cc-page-hero__lead {
		font-size: 15px;
	}
}

/* 9. Footer ------------------------------------------------------------ */

.cc-footer {
	background: var(--cc-black);
	color: var(--cc-text-soft-dark);
	font-size: 14px;
	line-height: 1.5;
}

.cc-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 48px;
	max-width: var(--cc-container);
	min-height: 440px;
	margin-inline: auto;
	padding: 72px var(--cc-gutter) 40px;
}

.cc-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.3fr;
	gap: 48px;
}

.cc-footer__about {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.cc-footer__intro {
	max-width: 380px;
	line-height: 1.7;
}

.cc-footer__col {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cc-footer__title {
	margin-bottom: 6px;
	color: var(--cc-cream);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
}

.cc-footer__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0;
	list-style: none;
}

.cc-footer__list a,
.cc-footer__contact a {
	color: var(--cc-text-soft-dark);
}

.cc-footer__list a:hover,
.cc-footer__contact a:hover,
.cc-footer__legal a:hover {
	color: var(--cc-accent);
}

.cc-footer__list .current-menu-item > a {
	color: var(--cc-cream);
}

.cc-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cc-footer__cta {
	align-self: flex-start;
	margin-top: 6px;
}

.cc-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: auto;
	padding-top: 24px;
	border-top: 1px solid var(--cc-line-dark);
	color: var(--cc-text-faint-dark);
	font-size: 13px;
}

.cc-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	padding: 0;
	list-style: none;
}

.cc-footer__legal a {
	color: var(--cc-text-faint-dark);
}

@media (max-width: 1023px) {
	.cc-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 40px 32px;
	}

	.cc-footer__about {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.cc-footer__inner {
		gap: 40px;
		min-height: 0;
		padding-block: 48px 32px;
	}

	.cc-footer__grid {
		gap: 36px 20px;
	}

	.cc-footer__grid > .cc-footer__col:last-child {
		grid-column: 1 / -1;
	}

	/* 44px touch targets in the link lists. */
	.cc-footer__list,
	.cc-footer__contact {
		gap: 0;
	}

	.cc-footer__list a,
	.cc-footer__contact a,
	.cc-footer__legal a {
		display: flex;
		align-items: center;
		min-height: 44px;
	}

	.cc-footer__contact span {
		padding-block: 10px;
	}

	.cc-footer__bottom {
		flex-direction: column-reverse;
		align-items: flex-start;
	}

	.cc-footer__legal {
		gap: 0 24px;
	}
}

/* 10. Mobile register bar --------------------------------------------- */

.cc-register-bar {
	display: none;
}

@media (max-width: 1359px) {
	.cc-register-bar {
		position: fixed;
		right: 12px;
		bottom: calc(16px + env(safe-area-inset-bottom));
		left: 12px;
		z-index: 90;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		max-width: 560px;
		margin-inline: auto;
		padding: 8px 8px 8px 22px;
		border-radius: var(--cc-radius-pill);
		background: var(--cc-black);
		color: var(--cc-cream);
		box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
		transition: transform .25s ease, opacity .25s ease;
	}

	.cc-register-bar.is-hidden {
		opacity: 0;
		pointer-events: none;
		transform: translateY(calc(100% + 24px));
	}

	.cc-register-bar__text {
		overflow: hidden;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.3;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.cc-register-bar .cc-btn {
		padding: 13px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cc-register-bar {
		transition: none;
	}
}

/* Shared section heading pattern (eyebrow + H2, optional link on the right). */
.cc-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
}

.cc-section-head__titles {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cc-h2 {
	font-size: 44px;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.1;
}

.cc-h2--sm {
	font-size: 40px;
}

.cc-link-underline {
	padding-bottom: 4px;
	border-bottom: 2px solid var(--cc-accent);
	font-size: 15px;
	font-weight: 600;
}

@media (max-width: 767px) {
	.cc-h2,
	.cc-h2--sm {
		font-size: 26px;
	}
}

/* 11. Content ---------------------------------------------------------- */

.cc-prose {
	max-width: calc(800px + 2 * var(--cc-gutter));
	font-size: 17px;
	line-height: 1.7;
}

.cc-prose > * + * {
	margin-top: 1.1em;
}

.cc-prose h2 {
	margin-top: 1.8em;
	font-size: 32px;
}

.cc-prose h3 {
	margin-top: 1.5em;
	font-size: 22px;
	font-weight: 700;
}

.cc-prose a {
	color: var(--cc-brown);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cc-prose ul,
.cc-prose ol {
	padding-left: 1.3em;
}

.cc-meta {
	color: var(--cc-text-muted);
	font-size: 13px;
}

.cc-post-list {
	display: grid;
	gap: 32px;
}

.cc-post-list__item {
	padding: 28px 32px;
	border-radius: var(--cc-radius-md);
	background: var(--cc-white);
}

.cc-post-list__title {
	margin: 4px 0 8px;
	font-size: 24px;
	font-weight: 700;
}

/* 12. Motion ------------------------------------------------------------
 * Everything here is decoration: without JS or with reduced motion all
 * content is visible and static. Only opacity / transform / translate are
 * animated, so nothing shifts the layout (no CLS).
 */

/* Filled buttons: a diagonal light sheen sweeps across on hover / focus. */
.cc-btn--primary::after,
.cc-btn--dark::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	width: 60%;
	background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
	transform: translateX(-110%);
}

.cc-btn--dark::after {
	background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, 0) 100%);
}

/* Outline buttons: the accent colour fills in from the left. */
.cc-btn--ghost::before,
.cc-home-outline-btn::before,
.cc-vb-outline-btn::before,
.cc-gallery-videos__channel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--cc-accent);
	pointer-events: none;
	transform: scaleX(0);
	transform-origin: left center;
}

.cc-home-outline-btn,
.cc-vb-outline-btn,
.cc-gallery-videos__channel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	transition: color .25s ease, border-color .25s ease;
}

.cc-home-outline-btn:hover,
.cc-home-outline-btn:focus-visible,
.cc-vb-outline-btn:hover,
.cc-vb-outline-btn:focus-visible,
a.cc-gallery-videos__channel:hover,
a.cc-gallery-videos__channel:focus-visible {
	border-color: var(--cc-black);
	color: var(--cc-black);
}

/* Text links with the yellow underline: it swipes out and back in. */
.cc-link-underline {
	display: inline-block;
	transition: color .2s ease;
}

@media (prefers-reduced-motion: no-preference) {
	.cc-btn--primary:hover::after,
	.cc-btn--primary:focus-visible::after,
	.cc-btn--dark:hover::after,
	.cc-btn--dark:focus-visible::after {
		transform: translateX(270%);
		transition: transform .7s ease;
	}

	.cc-btn--ghost::before,
	.cc-home-outline-btn::before,
	.cc-vb-outline-btn::before,
	.cc-gallery-videos__channel::before {
		transition: transform .35s cubic-bezier(.65, 0, .35, 1);
	}

	.cc-link-underline:hover,
	.cc-link-underline:focus-visible {
		animation: cc-underline-swipe .55s ease;
	}
}

.cc-btn--ghost:hover::before,
.cc-btn--ghost:focus-visible::before,
.cc-home-outline-btn:hover::before,
.cc-home-outline-btn:focus-visible::before,
.cc-vb-outline-btn:hover::before,
.cc-vb-outline-btn:focus-visible::before,
.cc-gallery-videos__channel:hover::before,
.cc-gallery-videos__channel:focus-visible::before {
	transform: scaleX(1);
}

/* The border stays put; a same-colour background layer does the swipe. */
@keyframes cc-underline-swipe {
	0% {
		border-bottom-color: transparent;
		background: linear-gradient(var(--cc-accent), var(--cc-accent)) no-repeat right bottom / 100% 2px border-box;
	}

	45% {
		border-bottom-color: transparent;
		background: linear-gradient(var(--cc-accent), var(--cc-accent)) no-repeat right bottom / 0 2px border-box;
	}

	55% {
		border-bottom-color: transparent;
		background: linear-gradient(var(--cc-accent), var(--cc-accent)) no-repeat left bottom / 0 2px border-box;
	}

	100% {
		border-bottom-color: transparent;
		background: linear-gradient(var(--cc-accent), var(--cc-accent)) no-repeat left bottom / 100% 2px border-box;
	}
}

/* Footer links: a thin underline grows from the left (desktop / tablet). */
@media (min-width: 768px) {
	.cc-footer__list a,
	.cc-footer__contact a,
	.cc-footer__legal a {
		background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px;
		transition: color .15s ease, background-size .3s ease;
	}

	.cc-footer__list a:hover,
	.cc-footer__list a:focus-visible,
	.cc-footer__contact a:hover,
	.cc-footer__contact a:focus-visible,
	.cc-footer__legal a:hover,
	.cc-footer__legal a:focus-visible {
		background-size: 100% 1px;
	}
}

/* Cards: subtle lift on hover (pointer devices only). */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.cc-home-explore__card,
	.cc-home-news__card,
	.cc-home-timeline__card,
	.cc-home-program__day,
	.cc-home-cats__card,
	.cc-news-card,
	.cc-acc-hostel,
	.cc-acc-hotel,
	.cc-venue-card,
	.cc-tour-card,
	.cc-tour-step,
	.cc-tour-term,
	.cc-tour-tier,
	.cc-vb-sight,
	.cc-gallery-album,
	.cc-contact-person,
	.cc-program-day {
		transition: transform .25s ease, box-shadow .25s ease;
	}

	.cc-home-explore__card:hover,
	.cc-home-news__card:hover,
	.cc-home-timeline__card:hover,
	.cc-home-program__day:hover,
	.cc-home-cats__card:hover,
	.cc-news-card:hover,
	.cc-acc-hostel:hover,
	.cc-acc-hotel:hover,
	.cc-venue-card:hover,
	.cc-tour-card:hover,
	.cc-tour-step:hover,
	.cc-tour-term:hover,
	.cc-tour-tier:hover,
	.cc-vb-sight:hover,
	.cc-gallery-album:hover,
	.cc-contact-person:hover,
	.cc-program-day:hover {
		box-shadow: var(--cc-shadow-card);
		transform: translateY(-4px);
	}
}

/*
 * Scroll reveal. assets/js/ui.js adds .cc-reveal-on to <html> (only when
 * motion is allowed and IntersectionObserver exists) and .cc-reveal to the
 * blocks below the first screen; .is-visible plays the fade-up once.
 * Uses the `translate` property so it composes with hover transforms.
 */
@media (prefers-reduced-motion: no-preference) {
	.cc-reveal-on .cc-reveal:not(.is-visible) {
		opacity: 0;
	}

	.cc-reveal-on .cc-reveal.is-visible {
		animation: cc-fade-up .7s cubic-bezier(.2, .7, .2, 1) var(--cc-reveal-delay, 0s) both;
	}
}

@keyframes cc-fade-up {
	from {
		opacity: 0;
		translate: 0 28px;
	}

	to {
		opacity: 1;
		translate: none;
	}
}

@media print {
	.cc-reveal-on .cc-reveal {
		opacity: 1 !important;
		animation: none !important;
	}
}

/* Header: one-off intro (first page of the visit, see header.php). */
@media (prefers-reduced-motion: no-preference) {
	.cc-intro .cc-header .cc-brand,
	.cc-intro .cc-header .cc-nav__list > li,
	.cc-intro .cc-header .cc-header__actions > *,
	.cc-intro .cc-header .cc-menu-toggle {
		animation: cc-header-in .6s cubic-bezier(.2, .7, .2, 1) both;
	}

	.cc-intro .cc-header .cc-nav__list > li:nth-child(1) { animation-delay: .08s; }
	.cc-intro .cc-header .cc-nav__list > li:nth-child(2) { animation-delay: .12s; }
	.cc-intro .cc-header .cc-nav__list > li:nth-child(3) { animation-delay: .16s; }
	.cc-intro .cc-header .cc-nav__list > li:nth-child(4) { animation-delay: .2s; }
	.cc-intro .cc-header .cc-nav__list > li:nth-child(5) { animation-delay: .24s; }
	.cc-intro .cc-header .cc-nav__list > li:nth-child(6) { animation-delay: .28s; }
	.cc-intro .cc-header .cc-nav__list > li:nth-child(7) { animation-delay: .32s; }
	.cc-intro .cc-header .cc-nav__list > li:nth-child(8) { animation-delay: .36s; }
	.cc-intro .cc-header .cc-nav__list > li:nth-child(n+9) { animation-delay: .4s; }
	.cc-intro .cc-header .cc-header__actions > *,
	.cc-intro .cc-header .cc-menu-toggle { animation-delay: .42s; }
}

@keyframes cc-header-in {
	from {
		opacity: 0;
		translate: 0 -10px;
	}

	to {
		opacity: 1;
		translate: none;
	}
}

/*
 * Header: compact once the page is scrolled (ui.js toggles
 * .cc-header-compact on <html>). --cc-header-h drops by --cc-header-shrink
 * (sticky sub-navs and scroll offsets follow it) and the header gains the
 * same bottom margin, so the content below never moves.
 */
.cc-brand__mark,
.cc-brand__img,
.cc-brand__text {
	transform-origin: left center;
	transition: transform .3s ease;
}

.cc-header-compact {
	--cc-header-h: calc(var(--cc-header-full) - var(--cc-header-shrink));
}

.cc-header-compact .cc-header {
	margin-bottom: var(--cc-header-shrink);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.cc-header-compact .cc-header .cc-brand__mark,
.cc-header-compact .cc-header .cc-brand__img {
	transform: scale(.86);
}

.cc-header-compact .cc-header .cc-brand__text {
	transform: translateX(-6px) scale(.94);
}

/* Back to top (footer.php, ui.js). Sits above the mobile Register bar. */
.cc-to-top {
	position: fixed;
	right: 16px;
	bottom: calc(24px + env(safe-area-inset-bottom));
	z-index: 95;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--cc-accent);
	color: var(--cc-black);
	box-shadow: 0 10px 24px rgba(26, 26, 26, .22);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease, bottom .25s ease, visibility 0s linear .25s;
}

.cc-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease, bottom .25s ease, visibility 0s;
}

.cc-to-top .cc-icon {
	stroke-width: 2.4;
	transform: rotate(-90deg);
	transition: translate .25s ease;
}

.cc-to-top:hover {
	box-shadow: 0 14px 30px rgba(26, 26, 26, .3);
}

.cc-to-top:hover .cc-icon {
	translate: 0 -3px;
}

.cc-to-top:focus-visible {
	outline: 3px solid transparent;
	box-shadow: 0 0 0 3px var(--cc-black), 0 0 0 6px var(--cc-cream);
}

@media (min-width: 1360px) {
	.cc-to-top {
		right: 24px;
		bottom: 28px;
	}
}

@media (max-width: 1359px) {
	/* Register bar: 16px offset + 60px pill + 12px gap. */
	.cc-register-bar:not(.is-hidden) ~ .cc-to-top {
		bottom: calc(88px + env(safe-area-inset-bottom));
	}
}

@media (prefers-reduced-motion: reduce) {
	.cc-btn,
	.cc-btn::before,
	.cc-btn::after,
	.cc-home-outline-btn::before,
	.cc-vb-outline-btn::before,
	.cc-gallery-videos__channel::before,
	.cc-header,
	.cc-header__inner,
	.cc-nav__list a,
	.cc-brand__mark,
	.cc-brand__img,
	.cc-brand__text,
	.cc-to-top,
	.cc-to-top.is-visible,
	.cc-to-top .cc-icon {
		transition: none;
	}

	.cc-to-top {
		transform: none;
	}

	.cc-to-top:hover .cc-icon {
		translate: none;
	}
}

/* Image slots (Cell-Cup → Images) ------------------------------------------
 * A photo chosen for a placeholder keeps the placeholder box (same classes,
 * hidden caption for the same height) and fills it with object-fit: cover.
 * :where() keeps the position at zero specificity, so slots that are
 * positioned by their own class (e.g. absolute hero backgrounds) stay so. */
:where(.cc-ph--image) {
	position: relative;
}

.cc-ph--image {
	overflow: hidden;
	isolation: isolate;
	background: #242424;
}

.cc-ph--image.cc-ph--light {
	background: #EFE5BE;
}

.cc-ph--image > .cc-ph__label {
	visibility: hidden;
}

.cc-ph--image > img.cc-ph-img {
	position: absolute;
	z-index: -1;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border-radius: inherit;
	object-fit: cover;
	object-position: center;
}

/* Video boxes with a cover photo: darken it so the play button caption stays readable. */
.cc-home-video.cc-ph--image::after,
.cc-home-region__media.cc-ph--image::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .5));
	pointer-events: none;
}

.cc-ph--image .cc-home-video__caption {
	color: #FFFBEA;
}

/* Logo (bundled light version, 1495×928). Sized by height; the header
   keeps it inside its bar, the footer shows it larger. -------------------- */
.cc-brand {
	gap: 0;
}

.cc-brand__img {
	width: auto;
	height: 84px;
	max-width: none;
}

.cc-mobile-menu__bar .cc-brand__img {
	height: 64px;
}

.cc-footer .cc-brand__img {
	height: 120px;
}

@media (max-width: 767px) {
	.cc-header .cc-brand__img,
	.cc-mobile-menu__bar .cc-brand__img {
		height: 60px;
	}

	.cc-footer .cc-brand__img {
		height: 96px;
	}
}

/* ==========================================================================
 * Lightbox (assets/js/lightbox.js)
 * Full-screen photo viewer for any a[data-cc-lightbox]. The dialog is built
 * by the script; without JS the links simply open the image file. Motion is
 * a fade + slight scale only, and none with prefers-reduced-motion.
 * ========================================================================== */

a[data-cc-lightbox],
[data-cc-lightbox-open] {
	cursor: zoom-in;
}

.cc-lb-lock {
	overflow: hidden;
}

.cc-lb-lock body {
	padding-right: var(--cc-lb-scrollbar, 0);
}

.cc-lb {
	--cc-focus: var(--cc-accent);
	position: fixed;
	z-index: 10000;
	inset: 0;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	background: rgba(12, 12, 12, .97);
	color: var(--cc-cream);
	opacity: 0;
	overscroll-behavior: contain;
}

.cc-lb[hidden] {
	display: none;
}

.cc-lb.is-open {
	opacity: 1;
}

.cc-lb__bar {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	padding: 12px 16px 12px 28px;
}

.cc-lb__title {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	color: var(--cc-cream);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cc-lb__counter {
	flex-shrink: 0;
	color: var(--cc-text-muted-dark);
	font-size: 14px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: .04em;
}

.cc-lb__btn {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 251, 234, .22);
	border-radius: 50%;
	background: rgba(26, 26, 26, .72);
	color: var(--cc-cream);
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.cc-lb__btn:hover {
	border-color: var(--cc-accent);
	background: var(--cc-accent);
	color: var(--cc-black);
}

.cc-lb__btn:focus-visible {
	border-radius: 50%;
}

.cc-lb__stage {
	position: relative;
	display: flex;
	min-height: 0;
	padding: 0 88px 24px;
}

.cc-lb__figure {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	min-height: 0;
	margin: 0;
}

.cc-lb__frame {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
}

/* Centred, scaled down to fit, never larger than the file itself. */
.cc-lb__img {
	position: absolute;
	inset: 0;
	display: block;
	width: auto;
	height: auto;
	max-width: min(100%, var(--cc-lb-w, 100%));
	max-height: min(100%, var(--cc-lb-h, 100%));
	margin: auto;
	border-radius: 6px;
	object-fit: contain;
	opacity: 0;
	user-select: none;
	-webkit-user-drag: none;
}

.cc-lb__img.is-loaded {
	opacity: 1;
}

.cc-lb__spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 3px solid rgba(255, 251, 234, .2);
	border-top-color: var(--cc-accent);
	border-radius: 50%;
	opacity: 0;
}

.cc-lb__frame.is-loading .cc-lb__spinner {
	opacity: 1;
}

.cc-lb__error {
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	color: var(--cc-text-muted-dark);
	font-size: 15px;
	text-align: center;
	transform: translateY(-50%);
}

.cc-lb__error[hidden],
.cc-lb__caption[hidden] {
	display: none;
}

.cc-lb__caption {
	flex-shrink: 0;
	max-width: 72ch;
	margin-inline: auto;
	color: var(--cc-text-soft-dark);
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

.cc-lb__nav {
	position: absolute;
	top: calc(50% - 12px);
	width: 56px;
	height: 56px;
	transform: translateY(-50%);
}

.cc-lb__nav--prev {
	left: 16px;
}

.cc-lb__nav--next {
	right: 16px;
}

.cc-lb.is-single .cc-lb__nav,
.cc-lb.is-single .cc-lb__counter {
	display: none;
}

@media (max-width: 767px) {
	.cc-lb__bar {
		gap: 10px;
		padding: 8px 8px 8px 16px;
	}

	.cc-lb__title {
		font-size: 14px;
	}

	.cc-lb__counter {
		font-size: 13px;
	}

	.cc-lb__btn {
		width: 44px;
		height: 44px;
	}

	.cc-lb__stage {
		padding: 0 0 calc(76px + env(safe-area-inset-bottom));
	}

	.cc-lb__img {
		border-radius: 0;
	}

	.cc-lb__caption {
		padding-inline: 16px;
		font-size: 14px;
	}

	/* Prev / next sit side by side under the photo on phones. */
	.cc-lb__nav {
		top: auto;
		bottom: calc(16px + env(safe-area-inset-bottom));
		transform: none;
	}

	.cc-lb__nav--prev {
		left: calc(50% - 56px);
	}

	.cc-lb__nav--next {
		right: calc(50% - 56px);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.cc-lb {
		transition: opacity .22s ease;
	}

	.cc-lb__figure {
		transform: scale(.97);
		transition: transform .28s cubic-bezier(.2, .7, .2, 1);
	}

	.cc-lb.is-open .cc-lb__figure {
		transform: none;
	}

	.cc-lb__img {
		transition: opacity .2s ease;
	}

	.cc-lb.is-animated .cc-lb__img.is-loaded {
		animation: cc-lb-in .28s cubic-bezier(.2, .7, .2, 1);
	}

	.cc-lb__spinner {
		transition: opacity .2s ease .15s;
		animation: cc-lb-spin .8s linear infinite;
	}
}

@keyframes cc-lb-in {
	from {
		opacity: 0;
		transform: scale(.98);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes cc-lb-spin {
	to {
		transform: rotate(360deg);
	}
}

@media print {
	.cc-lb {
		display: none !important;
	}
}

/* Hover panel for cards without their own background (home news, gallery
   albums, tournament steps, program days). A plain lift + shadow hugged the
   image and text with no margin; instead a soft white panel appears around
   the card, 16px outside its content. ---------------------------------- */
.cc-home-news__card,
.cc-gallery-album,
.cc-tour-step,
.cc-program-day {
	position: relative;
	isolation: isolate;
}

.cc-home-news__card::after,
.cc-gallery-album::after,
.cc-tour-step::after,
.cc-program-day::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -16px;
	border-radius: var(--cc-radius-lg);
	background: var(--cc-white);
	box-shadow: var(--cc-shadow-card);
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
}

@media (hover: hover) {
	.cc-home-news__card:hover::after,
	.cc-gallery-album:hover::after,
	.cc-tour-step:hover::after,
	.cc-program-day:hover::after {
		opacity: 1;
	}

	.cc-home-news__card:hover,
	.cc-gallery-album:hover,
	.cc-tour-step:hover,
	.cc-program-day:hover {
		box-shadow: none;
	}
}

/* Image slots: no dark backdrop behind a loaded photo (it showed as a thin
   dark edge on rounded corners). */
.cc-ph--image:has(> img.cc-ph-img) {
	background: transparent;
}
