/* ==========================================================================
   BSC Mod — Barcelona Scooter Club
   Retro-mod: navy, mod red, mustard & cream; roundels and checkerboard.
   ========================================================================== */

:root {
	--bsc-navy: #14213d;
	--bsc-navy-2: #1d2f55;
	--bsc-red: #c8202f;
	--bsc-red-dark: #a3161f;
	--bsc-mustard: #e3a72f;
	--bsc-cream: #f5efe0;
	--bsc-cream-2: #ebe2cc;
	--bsc-ink: #16161a;
	--bsc-muted: #5f5a4f;
	--bsc-line: #d9cfb8;
	--bsc-white: #ffffff;

	--font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
	--font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .08);
	--shadow-hard: 6px 6px 0 var(--bsc-navy);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 76px;
}

/* --- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
	margin: 0;
	background: var(--bsc-white);
	color: var(--bsc-ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--bsc-red); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--bsc-red-dark); }
:focus-visible { outline: 3px solid var(--bsc-mustard); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; color: var(--bsc-navy); }
p { margin: 0 0 1em; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--bsc-mustard); color: var(--bsc-ink); padding: 10px 16px;
	border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow, .narrow { max-width: 820px; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-tight { padding-top: 0; }
.section-cream { background: var(--bsc-cream); }
.section-navy { background: var(--bsc-navy); color: var(--bsc-cream); }
.section-navy .section-title, .section-navy h2 { color: var(--bsc-white); }
.section-navy .kicker { color: var(--bsc-mustard); }
.section-navy .link-arrow { color: var(--bsc-white); }
.muted { color: var(--bsc-muted); }
.empty { color: var(--bsc-muted); font-style: italic; }

/* --- Type helpers -------------------------------------------------------- */
.kicker {
	font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: var(--bsc-red); margin: 0 0 .75em;
	display: inline-flex; align-items: center; gap: .6em;
}
.kicker::before { content: ""; width: 22px; height: 3px; background: currentColor; border-radius: 2px; }
.section-title, .page-title, .hero-title, .feature-title, .article-title, .cta-title, .panel-title {
	font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; text-transform: uppercase;
}
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.75rem); margin: 0; }
.page-title { font-size: clamp(2.2rem, 5.5vw, 4rem); margin: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--bsc-muted); max-width: 60ch; margin-top: 1rem; }

.link-arrow {
	display: inline-flex; align-items: center; gap: .45em; font-weight: 700;
	color: var(--bsc-navy); text-decoration: none; white-space: nowrap;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon, a:hover .link-arrow .icon { transform: translateX(4px); }

.icon { width: 20px; height: 20px; flex: none; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent;
	font: 700 .95rem/1 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
	transition: transform .15s, background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--bsc-red); color: var(--bsc-white); box-shadow: 0 4px 0 var(--bsc-red-dark); }
.btn-primary:hover { background: var(--bsc-red-dark); color: var(--bsc-white); }
.btn-light { background: var(--bsc-cream); color: var(--bsc-navy); }
.btn-light:hover { background: var(--bsc-white); color: var(--bsc-navy); }
.btn-outline { border-color: var(--bsc-navy); color: var(--bsc-navy); background: transparent; }
.btn-outline:hover { background: var(--bsc-navy); color: var(--bsc-white); }
.btn-ghost { border-color: rgba(245, 239, 224, .4); color: var(--bsc-cream); }
.btn-ghost:hover { border-color: var(--bsc-cream); color: var(--bsc-white); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: var(--bsc-white); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: var(--bsc-white); }

/* --- Roundel & checker --------------------------------------------------- */
.roundel { display: block; }
.checker {
	height: 18px;
	background: repeating-conic-gradient(var(--bsc-ink) 0 25%, var(--bsc-white) 0 50%) 0 0 / 18px 18px;
}

/* --- Header -------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--bsc-navy); color: var(--bsc-white);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
	transition: box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--bsc-white); text-decoration: none; flex: none; }
.brand:hover { color: var(--bsc-white); }
.brand-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em; }
.brand-sub { font-size: .72rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--bsc-mustard); margin-top: 4px; }

.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav .menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a {
	display: block; padding: 10px 12px; border-radius: var(--radius-sm);
	color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 700; font-size: .92rem;
	letter-spacing: .02em; position: relative;
}
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a { color: var(--bsc-white); }
.site-nav .current-menu-item > a::after, .site-nav .current_page_item > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--bsc-red);
}
.site-nav .menu li { position: relative; }
.site-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: var(--bsc-navy-2); border-radius: var(--radius-sm); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-member { background: var(--bsc-red); color: var(--bsc-white); min-height: 42px; padding: .55em 1.1em; white-space: nowrap; max-width: 180px; }
.btn-member span { overflow: hidden; text-overflow: ellipsis; }
.site-nav .menu a { white-space: nowrap; }
@media (min-width: 1021px) and (max-width: 1240px) { .site-nav .menu a { padding: 10px 8px; font-size: .88rem; } .site-nav { gap: 12px; } }
.btn-member:hover { background: var(--bsc-red-dark); color: var(--bsc-white); }

.lang-switcher { display: flex; gap: 2px; list-style: none; margin: 0; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.lang-switcher a {
	display: block; padding: 5px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700;
	color: rgba(255, 255, 255, .75); text-decoration: none; letter-spacing: .06em;
}
.lang-switcher a:hover { color: var(--bsc-white); }
.lang-switcher .is-current { background: var(--bsc-cream); color: var(--bsc-navy); }

.nav-toggle {
	display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 12px;
	background: rgba(255, 255, 255, .08); color: var(--bsc-white); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .when-open { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: block; }
.nav-toggle[aria-expanded="true"] .when-closed { display: none; }

@media (max-width: 1020px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100dvh - var(--header-h)); overflow: auto;
		flex-direction: column; align-items: stretch; gap: 16px; margin: 0;
		padding: 16px var(--gutter) 28px; background: var(--bsc-navy);
		border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s;
	}
	.admin-bar .site-nav { inset-block-start: calc(var(--header-h) + 46px); }
	.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu a { font-size: 1.15rem; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
	.site-nav .current-menu-item > a::after, .site-nav .current_page_item > a::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; padding: 0 0 0 16px; }
	.header-actions { justify-content: space-between; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
	.brand-name { font-size: 1rem; }
	.brand-logo { width: 42px; height: 42px; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--bsc-navy); color: var(--bsc-cream);
	padding-block: clamp(72px, 12vw, 150px) clamp(64px, 10vw, 120px);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero.has-image::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(20, 33, 61, .95) 0%, rgba(20, 33, 61, .75) 45%, rgba(20, 33, 61, .2) 100%);
}
.hero-rings { position: absolute; z-index: -1; right: -12vw; top: 50%; width: min(70vw, 760px); transform: translateY(-50%); opacity: .95; }
.hero.has-image .hero-rings { opacity: .25; }
.hero-rings .roundel { width: 100%; height: auto; animation: spin-in 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.hero-rings .roundel circle:first-child { fill: var(--bsc-navy-2); }
@keyframes spin-in { from { transform: scale(.85) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-inner { position: relative; }
.hero .kicker { color: var(--bsc-mustard); }
.hero-title {
	font-size: clamp(3rem, 10vw, 8.5rem); line-height: .92; margin: 0 0 .25em; color: var(--bsc-cream);
	text-shadow: .045em .045em 0 var(--bsc-red);
	max-width: 11ch;
}
.hero-text { font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 46ch; color: rgba(245, 239, 224, .88); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* --- Next ride band ------------------------------------------------------ */
.next-ride { background: var(--bsc-mustard); color: var(--bsc-ink); }
.next-ride-inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); padding-block: 28px; }
.next-ride .kicker { color: var(--bsc-ink); margin-bottom: .25em; }
.next-ride-date { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.2rem, 2.2vw, 1.6rem); margin: 0 0 .25em; color: var(--bsc-navy); }
.next-ride-text { flex: 1; }
.next-ride-text p:last-child { margin: 0; max-width: 70ch; }
.date-badge {
	flex: none; width: 92px; height: 92px; border-radius: 50%; background: var(--bsc-red); color: var(--bsc-white);
	display: grid; place-content: center; text-align: center; box-shadow: 0 0 0 6px var(--bsc-white), 0 0 0 12px var(--bsc-navy);
	margin: 12px;
}
.date-day { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; }
.date-month { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.next-ride .btn-outline { flex: none; }

/* Featured (sticky) post strip on the home page */
.featured-strip { background: var(--bsc-navy); padding-block: clamp(28px, 5vw, 56px); }
.featured-card {
	display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
	color: var(--bsc-white); text-decoration: none;
}
.featured-card:hover .featured-card-title { color: var(--bsc-mustard); }
.featured-card-media img {
	display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain;
	border-radius: 6px; box-shadow: 0 0 0 4px var(--bsc-red), 0 12px 30px rgba(0, 0, 0, .45);
}
.featured-card .kicker { color: var(--bsc-mustard); }
.featured-card-title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.05; margin: 0 0 .4em; color: var(--bsc-white); transition: color .2s; }
.featured-card-body p:not(.kicker) { color: var(--bsc-cream-2, #e9e1cd); max-width: 60ch; }
.featured-card .btn { margin-top: .5em; }
@media (max-width: 760px) {
	.featured-card { grid-template-columns: 1fr; }
	.featured-card-media { max-width: 360px; }
}
@media (max-width: 760px) {
	.next-ride-inner { flex-wrap: wrap; }
	.date-badge { width: 76px; height: 76px; }
	.date-day { font-size: 1.7rem; }
	.next-ride-text { flex-basis: calc(100% - 120px); }
}

/* --- Stats --------------------------------------------------------------- */
.stats { background: var(--bsc-white); border-bottom: 1px solid var(--bsc-line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--bsc-line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.5rem); color: var(--bsc-navy); line-height: 1; text-transform: uppercase; }
.stat-label { color: var(--bsc-muted); font-size: .92rem; }
@media (max-width: 760px) {
	.stats-grid { grid-template-columns: 1fr 1fr; }
	.stat { padding: 22px 16px; }
	.stat:nth-child(odd) { border-left: 0; padding-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--bsc-line); }
}

/* --- Section header ------------------------------------------------------ */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 4vw, 44px); flex-wrap: wrap; }

/* --- Cards --------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.card { background: var(--bsc-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20, 33, 61, .08), 0 18px 40px rgba(20, 33, 61, .14); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { aspect-ratio: 10 / 7; overflow: hidden; background: var(--bsc-cream-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 1.22rem; margin: 0; color: var(--bsc-navy); }
.card-excerpt { color: var(--bsc-muted); font-size: .97rem; margin: 0; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: var(--bsc-muted); margin: 0; }
.tag {
	display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--bsc-navy); color: var(--bsc-white);
	font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
a.tag:hover { background: var(--bsc-red); color: var(--bsc-white); }

.card-placeholder {
	position: relative; width: 100%; height: 100%; display: grid; place-items: center;
	background:
		radial-gradient(circle at 85% 20%, rgba(227, 167, 47, .25), transparent 40%),
		var(--bsc-navy);
	overflow: hidden;
}
.card-placeholder .roundel { width: 46%; max-width: 180px; opacity: .95; }
.card-placeholder .roundel circle:first-child { fill: var(--bsc-red); }
.card-placeholder .roundel circle:last-child { fill: var(--bsc-navy); }
.card-placeholder span {
	position: absolute; left: 16px; bottom: 14px; color: var(--bsc-cream);
	font-family: var(--font-display); text-transform: uppercase; font-size: .85rem; letter-spacing: .04em;
}
.card:nth-child(3n+2) .card-placeholder { background: var(--bsc-red); }
.card:nth-child(3n+2) .card-placeholder .roundel circle:first-child { fill: var(--bsc-navy); }
.card:nth-child(3n+2) .card-placeholder .roundel circle:last-child { fill: var(--bsc-red); }
.card:nth-child(3n+3) .card-placeholder { background: var(--bsc-mustard); }
.card:nth-child(3n+3) .card-placeholder span { color: var(--bsc-navy); }

/* Feature (first news item) */
.feature { margin-bottom: 40px; border-radius: var(--radius); overflow: hidden; background: var(--bsc-navy); color: var(--bsc-cream); }
.feature-link { display: grid; grid-template-columns: 1.25fr 1fr; color: inherit; text-decoration: none; min-height: 380px; }
.feature-media { overflow: hidden; min-height: 260px; }
.feature-media img, .feature-media .card-placeholder { width: 100%; height: 100%; object-fit: cover; }
.feature-media .card-placeholder { background: var(--bsc-red); }
.feature-media .card-placeholder .roundel circle:first-child { fill: var(--bsc-navy); }
.feature-media .card-placeholder .roundel circle:last-child { fill: var(--bsc-red); }
.feature-body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.feature-body .card-meta { color: rgba(245, 239, 224, .7); }
.feature-body .tag { background: var(--bsc-mustard); color: var(--bsc-ink); }
.feature-title { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--bsc-white); margin: 0; }
.feature-body p { color: rgba(245, 239, 224, .85); margin: 0; }
.feature-body .link-arrow { color: var(--bsc-mustard); }
@media (max-width: 860px) { .feature-link { grid-template-columns: 1fr; } .feature-media { aspect-ratio: 16 / 9; } }

/* Chips (category filter) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
	padding: 8px 16px; border-radius: 999px; border: 2px solid var(--bsc-line); color: var(--bsc-navy);
	text-decoration: none; font-weight: 700; font-size: .9rem;
}
.chip:hover { border-color: var(--bsc-navy); color: var(--bsc-navy); }
.chip.is-active { background: var(--bsc-navy); border-color: var(--bsc-navy); color: var(--bsc-white); }

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

/* --- Mosaic (home gallery teaser) --------------------------------------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.mosaic-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.mosaic-item:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-caption {
	position: absolute; inset: auto 0 0 0; padding: 32px 14px 12px; color: var(--bsc-white); font-weight: 700;
	background: linear-gradient(transparent, rgba(0, 0, 0, .7));
}
@media (max-width: 760px) {
	.mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
}

/* --- History ------------------------------------------------------------- */
.history-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.history-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.history-roundel { width: 140px; margin-top: 28px; }
.history-content { position: relative; }
.history-content.is-collapsed { max-height: 520px; overflow: hidden; }
.history-content.is-collapsed::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 160px;
	background: linear-gradient(transparent, var(--bsc-white));
}
.read-more-toggle { margin-top: 20px; }
.history-grid > .read-more-toggle { grid-column: 2; justify-self: start; margin-top: -20px; }
@media (max-width: 860px) { .history-grid > .read-more-toggle { grid-column: 1; margin-top: 0; } }
.entry-content .wp-block-preformatted, .entry-content pre.wp-block-verse { font-family: inherit; font-size: 1.05rem; white-space: pre-wrap; background: none; padding: 0; }
.footer-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
@media (max-width: 860px) {
	.history-grid { grid-template-columns: 1fr; }
	.history-aside { position: static; }
	.history-roundel { display: none; }
}

/* --- CTA band ------------------------------------------------------------ */
.cta-band { background: var(--bsc-red); color: var(--bsc-white); position: relative; overflow: hidden; }
.cta-band::after {
	content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
	background: radial-gradient(circle, var(--bsc-red) 0 30%, var(--bsc-white) 30% 52%, var(--bsc-navy) 52% 100%);
	opacity: .18;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(48px, 7vw, 80px); position: relative; z-index: 1; flex-wrap: wrap; }
.cta-title { color: var(--bsc-white); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: .3em; }
.cta-inner p { max-width: 58ch; margin: 0; color: rgba(255, 255, 255, .9); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Page hero ----------------------------------------------------------- */
.page-hero {
	position: relative; overflow: hidden; background: var(--bsc-cream);
	padding-block: clamp(48px, 8vw, 96px) clamp(36px, 6vw, 64px);
	border-bottom: 1px solid var(--bsc-line);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-roundel { position: absolute; width: clamp(180px, 28vw, 360px); right: -60px; bottom: -120px; opacity: .9; }

/* --- Entry content (Gutenberg) ------------------------------------------ */
.entry-content { font-size: 1.08rem; }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content h2 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.4em; }
.entry-content blockquote {
	margin-inline: 0; padding: 8px 0 8px 22px; border-left: 5px solid var(--bsc-red);
	font-size: 1.2rem; font-style: italic; color: var(--bsc-navy);
}
.entry-content figure { margin-inline: 0; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figcaption { color: var(--bsc-muted); font-size: .88rem; margin-top: .5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li::marker { color: var(--bsc-red); }
.entry-content hr { border: 0; height: 12px; background: repeating-conic-gradient(var(--bsc-ink) 0 25%, var(--bsc-white) 0 50%) 0 0 / 12px 12px; margin-block: 2.5em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border-bottom: 1px solid var(--bsc-line); text-align: left; }
.entry-content .wp-block-button__link { background: var(--bsc-red); border-radius: 999px; font-weight: 700; }
.entry-content .wp-block-gallery img { cursor: zoom-in; }
.entry-content iframe { border-radius: var(--radius-sm); }
.alignwide { margin-inline: calc(-1 * min(8vw, 120px)); }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
@media (max-width: 900px) { .alignwide { margin-inline: 0; } }
/* Content shown inside columns: keep wide/full blocks within their column. */
.gallery-legacy .alignwide, .gallery-legacy .alignfull,
.rides-content .alignwide, .rides-content .alignfull,
.history-content .alignwide, .history-content .alignfull,
.members-welcome .alignwide, .members-welcome .alignfull { margin-inline: 0; width: auto; max-width: 100%; }
.entry-content img { max-width: 100%; height: auto; }

/* --- Single article ------------------------------------------------------ */
.article-head { padding-block: clamp(40px, 7vw, 80px) 28px; }
.article-title { font-size: clamp(2rem, 4.8vw, 3.4rem); margin-top: 16px; }
.article-media { margin-bottom: 40px; }
.article-media { text-align: center; }
.article-media img { width: auto; max-width: 100%; max-height: 720px; margin-inline: auto; object-fit: contain; border-radius: var(--radius); }
.share { display: flex; align-items: center; gap: 8px; padding: 22px 0; margin-top: 40px; border-top: 1px solid var(--bsc-line); border-bottom: 1px solid var(--bsc-line); }
.share-label { font-weight: 700; margin-right: 8px; }
.share a, .share button {
	width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%;
	border: 2px solid var(--bsc-line); color: var(--bsc-navy); background: none; cursor: pointer;
}
.share a:hover, .share button:hover { border-color: var(--bsc-navy); background: var(--bsc-navy); color: var(--bsc-white); }
.share .is-copied { background: var(--bsc-mustard); border-color: var(--bsc-mustard); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block: 32px; }
.post-nav a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bsc-cream); color: var(--bsc-navy); text-decoration: none; font-weight: 700; height: 100%; }
.post-nav a:hover { background: var(--bsc-cream-2); }
.post-nav small { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bsc-red); }
.post-nav div:last-child a { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav div:last-child a { text-align: left; } }

/* --- Panels -------------------------------------------------------------- */
.panel { background: var(--bsc-cream); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.panel-red { background: var(--bsc-red); color: var(--bsc-white); }
.panel-red .kicker { color: var(--bsc-mustard); }
.panel-red .panel-title { color: var(--bsc-white); }
.panel-title { font-size: 1.6rem; margin: 0 0 .4em; }
.panel-title.small { font-size: 1.05rem; }
.panel-date { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; }
.panel-links { list-style: none; margin: 0; padding: 0; }
.panel-links li + li { border-top: 1px solid var(--bsc-line); }
.panel-links a { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--bsc-navy); text-decoration: none; font-weight: 700; }
.panel-links a:hover { color: var(--bsc-red); }
.panel-board { background: var(--bsc-navy); }
.panel-board .panel-title, .panel-board a { color: var(--bsc-cream); }
.panel-board li + li { border-color: rgba(255, 255, 255, .12); }

/* --- Rides / calendar ---------------------------------------------------- */
.rides-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.rides-aside { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .rides-layout { grid-template-columns: minmax(0, 1fr); } .rides-aside { position: static; } }
@media (max-width: 600px) {
	.bsc-calendar { padding: 10px; }
	.bsc-calendar table.simcal-calendar-grid { border-spacing: 2px !important; }
	.bsc-calendar .simcal-default-calendar-grid .simcal-day { height: 52px !important; padding: 4px !important; }
	.bsc-calendar .simcal-default-calendar-grid .simcal-events { display: none; }
	.bsc-calendar .simcal-current h3, .bsc-calendar .simcal-current { font-size: 1.05rem !important; }
}

.rides-content > .wp-block-separator:first-child { display: none; }
.rides-content .bsc-calendar { margin-block: 8px 40px; }
.bsc-calendar { background: var(--bsc-white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(12px, 2.5vw, 28px); overflow-x: auto; }
.bsc-calendar .simcal-calendar { font-family: var(--font-body) !important; }
.bsc-calendar .simcal-calendar-head { border: 0 !important; }
.bsc-calendar .simcal-current h3, .bsc-calendar .simcal-current {
	font-family: var(--font-display) !important; text-transform: uppercase; color: var(--bsc-navy) !important; font-size: 1.4rem !important; font-weight: 400 !important;
}
.bsc-calendar .simcal-nav { padding: 0 0 14px !important; }
.bsc-calendar .simcal-nav-button {
	width: 42px; height: 42px; border-radius: 50% !important; border: 2px solid var(--bsc-line) !important;
	background: var(--bsc-white) !important; color: var(--bsc-navy) !important; cursor: pointer;
}
.bsc-calendar .simcal-nav-button:hover { background: var(--bsc-navy) !important; color: var(--bsc-white) !important; border-color: var(--bsc-navy) !important; }
.bsc-calendar table.simcal-calendar-grid { width: 100% !important; table-layout: fixed; border: 0 !important; border-collapse: separate !important; border-spacing: 4px !important; }
.bsc-calendar .simcal-week-day {
	font-size: .75rem !important; text-transform: uppercase; letter-spacing: .1em; color: var(--bsc-muted) !important; padding: 8px 0 !important; border: 0 !important;
}
.bsc-calendar .simcal-day {
	background: var(--bsc-cream) !important; border: 0 !important; border-radius: 10px; vertical-align: top;
}
.bsc-calendar .simcal-day-void { background: transparent !important; }
.bsc-calendar .simcal-day-number { font-weight: 700; color: var(--bsc-navy) !important; }
.bsc-calendar .simcal-today { background: var(--bsc-mustard) !important; }
.bsc-calendar .simcal-today .simcal-day-number { background: transparent !important; color: var(--bsc-ink) !important; }
.bsc-calendar .simcal-day-has-events { box-shadow: inset 0 0 0 2px var(--bsc-red); }
.bsc-calendar .simcal-day-has-events .simcal-day-number { color: var(--bsc-red) !important; }
.bsc-calendar .simcal-event, .bsc-calendar .simcal-event-title { font-size: .82rem; line-height: 1.3; }
.bsc-calendar .simcal-events-dots b { color: var(--bsc-red) !important; }
.bsc-calendar .simcal-event-bubble, .simcal-event-bubble .qtip-content { font-family: var(--font-body); }
/* list view */
.bsc-calendar .simcal-default-calendar-list .simcal-day-label {
	background: var(--bsc-navy) !important; color: var(--bsc-white) !important; border-radius: 8px; padding: 8px 12px !important;
	font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; margin-top: 16px;
}
.bsc-calendar .simcal-default-calendar-list .simcal-day-label span { background: transparent !important; color: inherit !important; }
.bsc-calendar .simcal-default-calendar-list dd { margin: 0; padding: 14px 4px !important; border-bottom: 1px solid var(--bsc-line); }
.bsc-calendar .simcal-default-calendar-list ul { list-style: none; margin: 0; padding: 0; }
.bsc-calendar .simcal-event-title { font-weight: 700; color: var(--bsc-navy); font-size: 1.05rem; }
.bsc-calendar a { color: var(--bsc-red); }

/* --- Gallery ------------------------------------------------------------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--bsc-cream); border-radius: 999px; margin-bottom: 36px; }
.tab {
	display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer;
	padding: 10px 20px; border-radius: 999px; font: 700 .95rem var(--font-body); color: var(--bsc-navy);
}
.tab .icon { width: 18px; height: 18px; }
.tab[aria-selected="true"] { background: var(--bsc-navy); color: var(--bsc-white); }
.tab .count { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: rgba(20, 33, 61, .1); }
.tab[aria-selected="true"] .count { background: rgba(255, 255, 255, .18); }

.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 28px 22px; }
.album-card { color: inherit; text-decoration: none; display: block; }
.album-cover { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bsc-cream-2); box-shadow: var(--shadow); }
.album-cover::before, .album-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.album-cover img, .album-cover .card-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.album-card:hover .album-cover img { transform: scale(1.05); }
.album-count {
	position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px;
	background: rgba(20, 33, 61, .85); color: var(--bsc-white); font-size: .8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px;
}
.album-count .icon { width: 15px; height: 15px; }
.album-title { font-size: 1.12rem; margin: 14px 0 2px; }
.album-date { color: var(--bsc-muted); font-size: .88rem; margin: 0; }
.gallery-legacy { margin-top: 56px; }
.back-link { margin-top: 40px; }

.privacy-note { font-size: .88rem; color: var(--bsc-muted); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px 22px; }
.video-card { margin: 0; }
.video-player {
	position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
	border-radius: var(--radius); overflow: hidden; background: var(--bsc-navy);
}
.video-player img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; }
.video-player:hover img { transform: scale(1.04); opacity: .85; }
.video-player iframe, .video-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.entry-content .wp-block-video video { width: 100%; max-height: 80vh; border-radius: var(--radius-sm); background: #000; }
.video-placeholder { width: 40%; margin: auto; position: absolute; inset: 0; height: auto; top: 50%; transform: translateY(-50%); }
.play-button {
	position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%);
	display: grid; place-items: center; border-radius: 50%; background: var(--bsc-red); color: var(--bsc-white);
	box-shadow: 0 0 0 6px rgba(255, 255, 255, .85); transition: transform .2s;
}
.video-player:hover .play-button { transform: translate(-50%, -50%) scale(1.08); }
.play-button .icon { width: 28px; height: 28px; margin-left: 3px; }
.video-card figcaption { margin-top: 12px; font-weight: 700; color: var(--bsc-navy); display: flex; justify-content: space-between; gap: 12px; }
.video-card figcaption span { color: var(--bsc-muted); font-weight: 400; font-size: .88rem; white-space: nowrap; }

/* Lightbox */
.lightbox {
	position: fixed; inset: 0; z-index: 1000; background: rgba(10, 14, 26, .94);
	display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 24px 8px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: var(--bsc-cream); text-align: center; font-size: .95rem; }
.lightbox button {
	width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
	background: rgba(255, 255, 255, .1); color: var(--bsc-white); font-size: 2rem; line-height: 1;
}
.lightbox button:hover { background: var(--bsc-red); }
.lightbox-close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 600px) {
	.lightbox { grid-template-columns: 1fr; }
	.lightbox-prev, .lightbox-next { position: absolute; bottom: 20px; }
	.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }
}

/* --- Join (Fes-te soci) -------------------------------------------------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: clamp(48px, 7vw, 80px); }
.benefit { padding: 26px 22px; border-radius: var(--radius); border: 2px solid var(--bsc-navy); background: var(--bsc-white); box-shadow: var(--shadow-hard); }
.benefit-num { font-family: var(--font-display); color: var(--bsc-red); font-size: 1.6rem; display: block; margin-bottom: 10px; }
.benefit h3 { font-size: 1.15rem; }
.benefit p { color: var(--bsc-muted); margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }
.narrow-content { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 72px); }

.join-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 64px); align-items: start; background: var(--bsc-cream); border-radius: calc(var(--radius) * 1.5); padding: clamp(24px, 5vw, 56px); scroll-margin-top: calc(var(--header-h) + 20px); }
.join-roundel { width: 84px; margin-bottom: 20px; }
.fee { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-size: 1.6rem; color: var(--bsc-red); margin: 16px 0; text-transform: uppercase; }
.fee span { font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--bsc-muted); letter-spacing: .1em; }
@media (max-width: 860px) { .join-layout { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 700; font-size: .92rem; color: var(--bsc-navy); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea,
.login-card input[type="text"], .login-card input[type="password"], .search-form .search-field, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 13px 15px; border-radius: 10px; border: 2px solid var(--bsc-line); background: var(--bsc-white);
	font: inherit; font-size: 1rem; color: var(--bsc-ink); transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .login-card input:focus, .search-field:focus, .comment-form input:focus, .comment-form textarea:focus { border-color: var(--bsc-navy); outline: none; box-shadow: 0 0 0 3px rgba(227, 167, 47, .5); }
.field.check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--bsc-red); }
.field.check label { font-weight: 400; color: var(--bsc-ink); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 16px 18px; border-radius: 10px; background: var(--bsc-cream); border-left: 5px solid var(--bsc-mustard); margin-bottom: 20px; font-weight: 500; }
.alert-ok { background: #e7f4ea; border-color: #2f8a4a; }
.alert-error { background: #fbe7e8; border-color: var(--bsc-red); }

/* --- Members area -------------------------------------------------------- */
.login-section { background: var(--bsc-navy); color: var(--bsc-cream); min-height: 70vh; display: flex; align-items: center; }
.login-grid { display: grid; grid-template-columns: 1fr 440px; gap: clamp(28px, 6vw, 80px); align-items: center; }
.login-intro .page-title { color: var(--bsc-white); }
.login-intro .kicker { color: var(--bsc-mustard); }
.login-intro .lead { color: rgba(245, 239, 224, .8); }
.login-intro a { color: var(--bsc-mustard); }
.login-card { position: relative; background: var(--bsc-white); color: var(--bsc-ink); border-radius: calc(var(--radius) * 1.4); padding: 40px 32px 28px; box-shadow: 10px 10px 0 var(--bsc-red); }
.login-icon { position: absolute; top: -26px; left: 32px; width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: var(--bsc-mustard); color: var(--bsc-ink); }
.login-card form p { margin: 0 0 16px; }
.login-card label { display: block; font-weight: 700; font-size: .92rem; color: var(--bsc-navy); margin-bottom: 6px; }
.login-card .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.login-card .button-primary, .login-card input[type="submit"] {
	width: 100%; min-height: 50px; border: 0; border-radius: 999px; background: var(--bsc-red); color: var(--bsc-white);
	font: 700 1rem var(--font-body); cursor: pointer; box-shadow: 0 4px 0 var(--bsc-red-dark);
}
.login-card input[type="submit"]:hover { background: var(--bsc-red-dark); }
.login-lost { text-align: center; margin: 4px 0 0; font-size: .92rem; }
@media (max-width: 900px) { .login-grid { grid-template-columns: 1fr; } .login-section { padding-top: 64px; } }

.members-hero { background: var(--bsc-navy); color: var(--bsc-cream); border: 0; }
.members-hero .page-title { color: var(--bsc-white); }
.members-hero .kicker { color: var(--bsc-mustard); }
.members-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

.member-card {
	width: min(100%, 380px); aspect-ratio: 1.586; border-radius: 18px; padding: 22px 24px; position: relative; overflow: hidden;
	background: linear-gradient(135deg, var(--bsc-cream) 0%, #fff8e8 100%); color: var(--bsc-navy);
	box-shadow: 0 20px 40px rgba(0, 0, 0, .35); display: flex; flex-direction: column;
	transform: rotate(-2deg); transition: transform .3s;
}
.member-card:hover { transform: rotate(0); }
.member-card::after {
	content: ""; position: absolute; right: -50px; bottom: -50px; width: 190px; height: 190px; border-radius: 50%;
	background: radial-gradient(circle, var(--bsc-red) 0 26%, var(--bsc-white) 26% 50%, var(--bsc-navy) 50% 100%); opacity: .14;
}
.member-card-top { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); text-transform: uppercase; font-size: .9rem; }
.member-card-roundel { width: 34px; }
.member-card-name { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; margin: auto 0 10px; line-height: 1.1; }
.member-card-data { display: flex; gap: 24px; margin: 0; }
.member-card-data dt { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bsc-muted); }
.member-card-data dd { margin: 0; font-weight: 700; }
.member-card-data .ok { color: #2f8a4a; }
.member-card-data .pending { color: var(--bsc-red); }
.member-card-moto { font-size: .82rem; color: var(--bsc-muted); margin: 8px 0 0; }

.members-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .members-layout { grid-template-columns: minmax(0, 1fr); } }
.members-welcome { padding: 24px; border-radius: var(--radius); background: var(--bsc-cream); margin-bottom: 40px; }
.block-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.35rem; margin: 0 0 16px; }
.block-title .icon { color: var(--bsc-red); }
.members-main .block-title:not(:first-child) { margin-top: 48px; }
.notices { display: grid; gap: 10px; }
.notice-item { border: 2px solid var(--bsc-line); border-radius: var(--radius-sm); background: var(--bsc-white); }
.notice-item[open] { border-color: var(--bsc-navy); }
.notice-item summary { display: flex; gap: 16px; align-items: baseline; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 700; color: var(--bsc-navy); }
.notice-item summary::-webkit-details-marker { display: none; }
.notice-item summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; line-height: 1; color: var(--bsc-red); }
.notice-item[open] summary::after { content: "–"; }
.notice-item time { font-size: .8rem; color: var(--bsc-muted); white-space: nowrap; font-weight: 500; min-width: 90px; }
.notice-item .entry-content { padding: 0 18px 8px; font-size: 1rem; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-list a { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bsc-cream); color: var(--bsc-navy); text-decoration: none; }
.doc-list a:hover { background: var(--bsc-cream-2); }
.doc-icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: var(--bsc-red); color: var(--bsc-white); font-size: .7rem; font-weight: 700; letter-spacing: .06em; }
.doc-text { flex: 1; display: flex; flex-direction: column; }
.doc-text small { color: var(--bsc-muted); }

.members-only { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bsc-cream); border-left: 5px solid var(--bsc-navy); }
.members-only.is-locked { display: flex; gap: 12px; align-items: center; }
.members-only.is-locked p { margin: 0; }

/* --- 404 / search -------------------------------------------------------- */
.notfound { text-align: center; }
.notfound-roundel { width: 120px; margin: 0 auto 24px; }
.notfound .lead { margin-inline: auto; }
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 28px auto; }
.search-form label { flex: 1; }
.search-form .search-submit { border: 0; border-radius: 10px; padding: 0 20px; background: var(--bsc-navy); color: var(--bsc-white); font-weight: 700; cursor: pointer; }

/* --- Comments ------------------------------------------------------------ */
.comments { margin-top: 48px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--bsc-line); }
.comment-list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-form { display: grid; gap: 12px; }
.comment-form label { display: block; font-weight: 700; color: var(--bsc-navy); }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--bsc-ink); color: rgba(245, 239, 224, .8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-block: 64px 40px; }
.footer-roundel { width: 64px; margin-bottom: 16px; }
.footer-title { font-family: var(--font-display); color: var(--bsc-white); text-transform: uppercase; font-size: 1.3rem; margin: 0 0 6px; }
.footer-tagline { max-width: 36ch; }
.footer-heading { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bsc-mustard); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: rgba(245, 239, 224, .85); text-decoration: none; }
.site-footer a:hover { color: var(--bsc-white); text-decoration: underline; }
.footer-menu li, .footer-nav .menu li { margin-bottom: 8px; }
.social li { margin-bottom: 10px; }
.social a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .btn { margin-top: 14px; }
.footer-contact .btn:hover { text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.legal-menu { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- Reveal on scroll ---------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --- WP core alignment & captions --------------------------------------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .gallery-caption { font-size: .88rem; color: var(--bsc-muted); }
.sticky { position: relative; }
.bypostauthor { display: block; }

/* ==========================================================================
   Colour scheme: "Negre i or" (black & gold). Enabled in
   Customize › Barcelona Scooter Club › Colours.
   ========================================================================== */
.scheme-gold {
	--bsc-navy: #0e0e0e;
	--bsc-navy-2: #1d1d1d;
	--bsc-red: #c9a227;
	--bsc-red-dark: #9e7d14;
	--bsc-mustard: #e3c46a;
	--bsc-cream: #f5f1e8;
	--bsc-cream-2: #e9e1cd;
	--bsc-line: #ddd3bc;
	--bsc-gold-text: #8a6b0f; /* gold dark enough for text on light backgrounds */
}
:where(.scheme-gold) a { color: var(--bsc-gold-text); }
:where(.scheme-gold) a:hover { color: var(--bsc-ink); }
.scheme-gold .hero.has-image::before { background: linear-gradient(90deg, rgba(10, 10, 10, .95) 0%, rgba(10, 10, 10, .78) 45%, rgba(10, 10, 10, .25) 100%); }
.scheme-gold .kicker { color: var(--bsc-gold-text); }
.scheme-gold .hero .kicker, .scheme-gold .section-navy .kicker, .scheme-gold .login-intro .kicker,
.scheme-gold .members-hero .kicker, .scheme-gold .feature-body .card-meta { color: var(--bsc-red); }
.scheme-gold .next-ride .kicker { color: var(--bsc-ink); }

/* Dark text on gold surfaces */
.scheme-gold .btn-primary, .scheme-gold .btn-primary:hover,
.scheme-gold .btn-member, .scheme-gold .btn-member:hover,
.scheme-gold .date-badge, .scheme-gold .doc-icon, .scheme-gold .play-button,
.scheme-gold a.tag:hover, .scheme-gold .login-card input[type="submit"],
.scheme-gold .lightbox button:hover { color: var(--bsc-ink); }
.scheme-gold .btn-primary { box-shadow: 0 4px 0 var(--bsc-red-dark); }
.scheme-gold .date-badge { box-shadow: 0 0 0 6px var(--bsc-ink), 0 0 0 9px var(--bsc-red); }
.scheme-gold .btn-light { background: var(--bsc-red); color: var(--bsc-ink); }
.scheme-gold .btn-light:hover { background: var(--bsc-mustard); color: var(--bsc-ink); }
.scheme-gold .btn-outline:hover { color: var(--bsc-red); }
.scheme-gold .hero-cta .btn-light { background: transparent; color: var(--bsc-cream); border-color: rgba(245, 241, 232, .5); }
.scheme-gold .hero-cta .btn-light:hover { border-color: var(--bsc-red); color: var(--bsc-red); }

/* Header & menu accents */
.scheme-gold .site-nav .menu a:hover, .scheme-gold .site-nav .current-menu-item > a, .scheme-gold .site-nav .current_page_item > a { color: var(--bsc-red); }
.scheme-gold .site-header { border-bottom: 1px solid rgba(201, 162, 39, .35); }
.scheme-gold .lang-switcher .is-current { background: var(--bsc-red); color: var(--bsc-ink); }
.scheme-gold .site-footer a:hover, .scheme-gold .footer-heading { color: var(--bsc-red); }

/* Sections that were red become black with gold titles */
.scheme-gold .cta-band, .scheme-gold .panel-red { background: var(--bsc-navy); color: var(--bsc-cream); border-top: 3px solid var(--bsc-red); }
.scheme-gold .cta-title, .scheme-gold .panel-red .panel-title { color: var(--bsc-red); }
.scheme-gold .panel-red .kicker { color: var(--bsc-mustard); }
.scheme-gold .cta-band .btn-light { background: var(--bsc-red); color: var(--bsc-ink); }
.scheme-gold .cta-band .btn-ghost-light { border-color: rgba(201, 162, 39, .6); color: var(--bsc-red); }

/* Hero: gold roundel and gold shadow on the big title */
.scheme-gold .hero-title { text-shadow: .045em .045em 0 var(--bsc-red-dark); }
.scheme-gold .hero-rings .roundel circle:first-child { fill: #1a1a1a; }
.scheme-gold .hero-rings .roundel circle:nth-child(2) { fill: #262626; }

/* Placeholders & badges */
.scheme-gold .card:nth-child(3n+2) .card-placeholder span,
.scheme-gold .feature-media .card-placeholder span { color: var(--bsc-ink); }
.scheme-gold .card:nth-child(3n+3) .card-placeholder { background: #2a2a2a; }
.scheme-gold .card:nth-child(3n+3) .card-placeholder span { color: var(--bsc-red); }
.scheme-gold .feature-body .tag { background: var(--bsc-red); }
.scheme-gold .chip.is-active, .scheme-gold .tab[aria-selected="true"] { color: var(--bsc-red); }
.scheme-gold .bsc-calendar .simcal-day-has-events .simcal-day-number { color: var(--bsc-gold-text) !important; }
.scheme-gold .bsc-calendar .simcal-today { background: var(--bsc-mustard) !important; }
.scheme-gold .member-card { background: linear-gradient(135deg, #1b1b1b 0%, #0b0b0b 100%); color: var(--bsc-red); border: 1px solid rgba(201, 162, 39, .5); }
.scheme-gold .member-card-data dt, .scheme-gold .member-card-moto { color: rgba(245, 241, 232, .6); }
.scheme-gold .member-card-data dd { color: var(--bsc-cream); }
.scheme-gold .member-card-data .ok { color: #7fd18f; }
.scheme-gold .benefit { box-shadow: 6px 6px 0 var(--bsc-red); }
.scheme-gold .benefit-num { color: var(--bsc-gold-text); }
.scheme-gold .alert-error { border-color: #b3261e; }

/* ==========================================================================
   Colour scheme: "Blaugrana" (blau, grana i groc) — the club's own roundel:
   blue outer ring, yellow ring, deep red centre.
   ========================================================================== */
.scheme-blaugrana {
	--bsc-navy: #123a7c;
	--bsc-navy-2: #1b4a96;
	--bsc-red: #9b1c3d;
	--bsc-red-dark: #741530;
	--bsc-mustard: #f2c12e;
	--bsc-cream: #f6f1e4;
	--bsc-cream-2: #ece3cc;
	--bsc-line: #dcd2ba;
}
.scheme-blaugrana .roundel circle:nth-child(2) { fill: var(--bsc-mustard); }
.scheme-blaugrana .hero-rings .roundel circle:first-child { fill: var(--bsc-navy-2); }
.scheme-blaugrana .hero-title { text-shadow: .045em .045em 0 var(--bsc-red); }
.scheme-blaugrana .kicker { color: var(--bsc-red); }
.scheme-blaugrana .hero .kicker, .scheme-blaugrana .section-navy .kicker,
.scheme-blaugrana .login-intro .kicker, .scheme-blaugrana .members-hero .kicker { color: var(--bsc-mustard); }
.scheme-blaugrana .site-header { border-bottom: 3px solid var(--bsc-red); }
.scheme-blaugrana .site-nav .current-menu-item > a::after, .scheme-blaugrana .site-nav .current_page_item > a::after { background: var(--bsc-mustard); }
.scheme-blaugrana .date-badge { box-shadow: 0 0 0 6px var(--bsc-mustard), 0 0 0 12px var(--bsc-navy); }
.scheme-blaugrana .cta-band::after { background: radial-gradient(circle, var(--bsc-red) 0 30%, var(--bsc-mustard) 30% 52%, var(--bsc-navy) 52% 100%); opacity: .25; }
.scheme-blaugrana .member-card::after { background: radial-gradient(circle, var(--bsc-red) 0 26%, var(--bsc-mustard) 26% 50%, var(--bsc-navy) 50% 100%); }
.scheme-blaugrana .card-placeholder .roundel circle:first-child { fill: var(--bsc-mustard); }
.scheme-blaugrana .card-placeholder .roundel circle:nth-child(2) { fill: var(--bsc-white); }
.scheme-blaugrana .card:nth-child(3n+2) .card-placeholder .roundel circle:first-child,
.scheme-blaugrana .feature-media .card-placeholder .roundel circle:first-child { fill: var(--bsc-navy); }
.scheme-blaugrana .card:nth-child(3n+2) .card-placeholder .roundel circle:nth-child(2),
.scheme-blaugrana .feature-media .card-placeholder .roundel circle:nth-child(2) { fill: var(--bsc-mustard); }
.scheme-blaugrana .card:nth-child(3n+3) .card-placeholder .roundel circle:first-child { fill: var(--bsc-red); }
.scheme-blaugrana .benefit { box-shadow: 6px 6px 0 var(--bsc-red); }
.scheme-blaugrana .lang-switcher .is-current { background: var(--bsc-mustard); color: var(--bsc-navy); }
