/* =============================================================
   Site-wide consistency layer.
   Loaded on every page, after the page stylesheets, so the same
   heading scale, section labels and buttons apply everywhere.
   Change the tokens here rather than in each page stylesheet.
   ============================================================= */

:root {
	--afrc-h1-main: clamp(44px, 5.6vw, 76px);   /* home + main pages (640px heroes) */
	--afrc-h1-sub: clamp(40px, 5vw, 72px);      /* sub pages (500px heroes) */
	--afrc-h1-weight: 820;
	--afrc-h2: clamp(32px, 3.6vw, 48px);        /* section titles */
	--afrc-h2-weight: 780;
	--afrc-heading-tracking: -.04em;
	--afrc-kicker: 800 12px/1.35 var(--afrc-font);
	--afrc-btn-radius: 999px;
	--afrc-btn-pad: 14px 26px;
	/* Some page token files redefine --afrc-red locally; buttons use this fixed brand red. */
	--afrc-brand-red: #e30613;
}

/* ---------- Page titles (hero h1) ---------- */
.afrc-hero-main h1,
.afrc-moments__hero h1,
.afrc-contact-hero h1 {
	font-size: var(--afrc-h1-main) !important;
	font-weight: var(--afrc-h1-weight) !important;
	letter-spacing: var(--afrc-heading-tracking) !important;
	line-height: 1.02 !important;
}
.afrc-hero-main--club-event h1 { font-size: var(--afrc-h1-sub) !important; }
/* The Sashimi title is a full sentence: keep it on two lines. */
.afrc-hero-main--page-sashimi-shimbun h1,
.afrc-hero-main--page-sashimi-shimbun-fr h1,
.afrc-hero-main--page-sashimi-shimbun-ja h1 { font-size: clamp(34px, 3.6vw, 52px) !important; }

/* ---------- Section titles (h2) ---------- */
.afrc-club-mission-statement h2,
.afrc-club-section > h2,
.afrc-club-section > * > h2,
.afrc-club-history-row h2,
.afrc-club-section__split-head h2,
.afrc-manifest > h2,
.afrc-manifest > * > h2,
.afrc-life h2,
.afrc-support h2,
.afrc-partners-directory h2,
.afrc-partners-cta h2,
.afrc-training-landing-hero h2,
.afrc-contact-card > h2,
.afrc-moments__body > h2,
.club-event-story > section > h2,
.club-event-story > section > div > h2 {
	font-size: var(--afrc-h2) !important;
	font-weight: var(--afrc-h2-weight) !important;
	letter-spacing: var(--afrc-heading-tracking) !important;
	line-height: 1.06 !important;
}

/* ---------- Section labels (the small red line above a title) ---------- */
.club-event-kicker,
.afrc-club-kicker,
.afrc-partners-label,
.afrc-contact-kicker,
.afrc-section-kicker {
	display: block;
	margin: 0 0 14px !important;
	color: var(--afrc-red) !important;
	font: var(--afrc-kicker) !important;
	letter-spacing: .13em !important;
	text-transform: uppercase !important;
}

/* ---------- Buttons: one primary, one secondary ---------- */
.afrc-btn--primary,
.afrc-training-landing-button--primary,
.afrc-partners-cta__btn,
.club-event-offer__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: var(--afrc-btn-pad) !important;
	border: 2px solid var(--afrc-brand-red) !important;
	border-radius: var(--afrc-btn-radius) !important;
	background: var(--afrc-brand-red) !important;
	color: var(--afrc-white) !important;
	font-weight: 750 !important;
	text-decoration: none !important;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.afrc-btn--primary:hover,
.afrc-training-landing-button--primary:hover,
.afrc-partners-cta__btn:hover,
.club-event-offer__cta:hover {
	background: var(--afrc-blue-deep) !important;
	border-color: var(--afrc-blue-deep) !important;
}
.afrc-btn--secondary,
.afrc-training-landing-button--ghost,
.afrc-club-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: var(--afrc-btn-pad) !important;
	border: 2px solid currentColor !important;
	border-radius: var(--afrc-btn-radius) !important;
	background: transparent !important;
	font-weight: 750 !important;
	text-decoration: none !important;
}
.afrc-btn--secondary:hover,
.afrc-training-landing-button--ghost:hover,
.afrc-club-button:hover { background: rgba(255, 255, 255, .12) !important; }

/* ---------- Section rhythm: one vertical spacing, alternating bands ---------- */
:root { --afrc-section-pad: clamp(58px, 7vw, 100px); }
.afrc-life,
.afrc-support,
.afrc-partners-directory,
.afrc-partners-cta,
.afrc-club-mission-statement,
.afrc-club-section,
.afrc-club-history-row {
	padding-top: var(--afrc-section-pad) !important;
	padding-bottom: var(--afrc-section-pad) !important;
}
/* Second band of a page on the light grey used by the guide pages. */
.afrc-partners-cta { background: #f4f6fb !important; }
/* The players carousel fades to white at its edges, so its band stays white. */

/* ---------- Content width: one wide column, centred, same side margins ---------- */
:root {
	--afrc-wrap: 1160px;
	--afrc-gutter: clamp(20px, 4vw, 48px);
	--afrc-wrap-pad: max(var(--afrc-gutter), calc((100% - var(--afrc-wrap)) / 2));
}
.afrc-life__inner,
.afrc-support__inner,
.afrc-manifest__inner,
.afrc-club-history-row__inner { max-width: var(--afrc-wrap) !important; }
.afrc-partners-inner { width: min(var(--afrc-wrap), calc(100% - 2 * var(--afrc-gutter))) !important; }
.afrc-club-section,
.afrc-moments__body,
.club-event-story > section {
	max-width: none !important;
	padding-left: var(--afrc-wrap-pad) !important;
	padding-right: var(--afrc-wrap-pad) !important;
}
.club-event-calendar > h2,
.club-event-calendar > .club-event-kicker,
.club-event-calendar > .club-event-calendar-note,
.club-event-calendar > div { max-width: var(--afrc-wrap) !important; }

/* ---------- Partners: same titles, button and cards as the other pages ---------- */
.afrc-partners-page h2 {
	color: var(--afrc-blue-deep) !important;
	font-family: var(--afrc-font) !important;
	font-style: normal !important;
	text-transform: none !important;
}
.afrc-partners-cta__btn { text-transform: none !important; letter-spacing: 0 !important; }
.afrc-partner-logo-card__link,
.afrc-partners-cta__card { border-radius: 8px !important; }
.afrc-partner-logo-card__logo-wrap { border-radius: 6px !important; }

/* ---------- Cards: 8px corners everywhere ---------- */
.club-event-calendar-card { border-radius: 8px !important; overflow: hidden; }
.club-event-calendar-card img { border-radius: 4px; }

/* ---------- Body text: one size, two colours (ink for text, muted for intros) ---------- */
.afrc-club-history-row__text p,
.afrc-partners-group__header p:not(.afrc-section-kicker),
.afrc-partners-cta__card p {
	font-size: 16px !important;
	line-height: 1.65 !important;
}
.afrc-club-history-row__text p:not(.afrc-club-history-row__subtitle) { color: var(--afrc-blue-ink) !important; }
.afrc-partners-group__header p:not(.afrc-section-kicker),
.afrc-partners-cta__card p,
.afrc-moment-card__body { color: var(--afrc-muted) !important; }
/* The Club photo strip stays full width whatever the section padding. */
.afrc-club-section .afrc-moments-flow {
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}
