/*
 * BetAPI Solutions — site styles (plugin: bap-site)
 * Every class is prefixed bap-. Page sections are pasted into Custom HTML
 * blocks and carry no <style> tags; all presentation lives here.
 */

/* ---------- Tokens ---------- */
:root {
	--bap-ink: #0d1b2a;
	--bap-ink-2: #172a40;
	--bap-ink-3: #22395a;
	--bap-text: #263343;
	--bap-muted: #5a6778;
	--bap-line: #dce2e9;
	--bap-line-dark: rgba(255, 255, 255, 0.14);
	--bap-bg: #ffffff;
	--bap-bg-alt: #f3f5f8;
	--bap-bg-soft: #e9f5f3;
	--bap-accent: #0b7a69;
	--bap-accent-strong: #075e51;
	--bap-accent-soft: #d6efea;
	--bap-gold: #f2b135;
	--bap-gold-strong: #d99a1c;
	--bap-on-dark: #e8eef5;
	--bap-on-dark-muted: #a9b7c8;
	--bap-radius: 14px;
	--bap-radius-sm: 8px;
	--bap-shadow: 0 1px 2px rgba(13, 27, 42, 0.06), 0 8px 24px rgba(13, 27, 42, 0.06);
	--bap-container: 1200px;
	--bap-gutter: clamp(16px, 4vw, 32px);
	--bap-space: clamp(56px, 8vw, 96px);
	--bap-font: inherit;
	--bap-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html { overflow-x: clip; }

/* ---------- Page wrapper ---------- */
.bap-page {
	color: var(--bap-text);
	font-family: var(--bap-font);
	font-size: 1.0625rem;
	line-height: 1.65;
	margin-block: 0 !important;
	width: 100%;
}
.bap-page.alignfull { max-width: none; }
.bap-page *, .bap-page *::before, .bap-page *::after { box-sizing: border-box; }
.bap-page :where(p, ul, ol, figure) { margin: 0; }
.bap-page :where(p + p) { margin-top: 1em; }
.bap-page :where(a) { color: var(--bap-accent); text-underline-offset: 3px; }
.bap-page :where(a:hover) { color: var(--bap-accent-strong); }
.bap-page :where(strong) { color: var(--bap-ink); font-weight: 700; }
.bap-hero :where(strong) { color: #fff; }
.bap-page :where(code) { font-family: var(--bap-mono); font-size: 0.9em; background: var(--bap-bg-alt); padding: 0.1em 0.35em; border-radius: 4px; }

.bap-page :where(h1, h2, h3, h4) {
	color: var(--bap-ink);
	font-family: inherit;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0;
}
.bap-page :where(h1) { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.bap-page :where(h2) { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.bap-page :where(h3) { font-size: clamp(1.15rem, 1.8vw, 1.35rem); letter-spacing: -0.01em; }
.bap-page :where(h4) { font-size: 1.05rem; letter-spacing: 0; }

/* ---------- Sections ---------- */
.bap-section { padding-block: var(--bap-space); background: var(--bap-bg); }
.bap-section--alt { background: var(--bap-bg-alt); }
.bap-section--soft { background: var(--bap-bg-soft); }
.bap-section--tight { padding-block: calc(var(--bap-space) * 0.6); }
.bap-section--dark {
	background: radial-gradient(1200px 500px at 85% -10%, rgba(11, 122, 105, 0.35), transparent 60%), var(--bap-ink);
	color: var(--bap-on-dark);
}
.bap-section--dark h1, .bap-section--dark h2, .bap-section--dark h3, .bap-section--dark h4,
.bap-section--dark strong { color: #fff; }
.bap-section--dark a:not(.bap-btn) { color: #7fe0cf; }
.bap-section--dark .bap-muted, .bap-section--dark .bap-lead { color: var(--bap-on-dark-muted); }

.bap-container { max-width: var(--bap-container); margin-inline: auto; padding-inline: var(--bap-gutter); }
.bap-container--narrow { max-width: 820px; }

.bap-section__head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }
.bap-section__head--center { margin-inline: auto; text-align: center; }
.bap-section__head h2 + p, .bap-section__head h2 + .bap-lead { margin-top: 16px; }
.bap-section__foot { margin-top: clamp(24px, 3vw, 36px); }
.bap-section__foot--center { text-align: center; }

.bap-eyebrow {
	display: inline-block;
	color: var(--bap-accent);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 14px !important;
}
.bap-section--dark .bap-eyebrow, .bap-hero .bap-eyebrow { color: #7fe0cf; }
.bap-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--bap-muted); line-height: 1.6; }
.bap-muted { color: var(--bap-muted); }
.bap-note { font-size: 0.875rem; color: var(--bap-muted); margin-top: 16px !important; }
.bap-prose > * + * { margin-top: 1em; }
.bap-prose h3 { margin-top: 1.6em; }
.bap-prose ul, .bap-prose ol { padding-left: 1.3em; }
.bap-prose li + li { margin-top: 0.4em; }

/* ---------- Buttons ---------- */
.bap-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bap-actions--center { justify-content: center; }
.bap-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 999px;
	border: 2px solid transparent;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.bap-btn:hover { transform: translateY(-1px); }
.bap-btn:focus-visible { outline: 3px solid var(--bap-gold); outline-offset: 2px; }
.bap-btn--primary { background: var(--bap-gold); color: var(--bap-ink) !important; }
.bap-btn--primary:hover { background: var(--bap-gold-strong); }
.bap-btn--secondary { background: transparent; color: var(--bap-ink) !important; border-color: var(--bap-ink); }
.bap-btn--secondary:hover { background: var(--bap-ink); color: #fff !important; }
.bap-section--dark .bap-btn--secondary, .bap-hero .bap-btn--secondary { color: #fff !important; border-color: rgba(255, 255, 255, 0.55); }
.bap-section--dark .bap-btn--secondary:hover, .bap-hero .bap-btn--secondary:hover { background: #fff; color: var(--bap-ink) !important; }
.bap-link-arrow { font-weight: 700; text-decoration: none; }
.bap-link-arrow::after { content: " \2192"; }

/* ---------- Hero ---------- */
.bap-hero {
	background: radial-gradient(900px 480px at 90% 0%, rgba(11, 122, 105, 0.45), transparent 60%),
		radial-gradient(700px 400px at 0% 100%, rgba(242, 177, 53, 0.12), transparent 60%), var(--bap-ink);
	color: var(--bap-on-dark);
	padding-block: clamp(56px, 8vw, 104px);
}
.bap-hero h1 { color: #fff; }
.bap-hero .bap-lead { color: var(--bap-on-dark-muted); margin-top: 20px; max-width: 640px; }
.bap-hero__grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 960px) { .bap-hero__grid { grid-template-columns: 1.05fr 0.95fr; } }
.bap-hero .bap-figure { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--bap-line-dark); }

/* ---------- Stat chips ---------- */
.bap-chips { list-style: none; padding: 0; margin: 32px 0 0 !important; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); max-width: 680px; }
.bap-chip {
	display: flex; flex-direction: column; gap: 2px;
	padding: 12px 14px;
	border-radius: var(--bap-radius-sm);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--bap-line-dark);
}
.bap-chip__value { font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1.2; }
.bap-chip__label { font-size: 0.8125rem; color: var(--bap-on-dark-muted); line-height: 1.35; }
.bap-section:not(.bap-section--dark) .bap-chip { background: var(--bap-bg); border-color: var(--bap-line); }
.bap-section:not(.bap-section--dark) .bap-chip__value { color: var(--bap-ink); }
.bap-section:not(.bap-section--dark) .bap-chip__label { color: var(--bap-muted); }

/* ---------- Grids and cards ---------- */
.bap-grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: 1fr; list-style: none; padding: 0; }
@media (min-width: 640px) {
	.bap-grid--2, .bap-grid--3, .bap-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
	.bap-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.bap-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.bap-card {
	position: relative;
	display: flex; flex-direction: column; gap: 10px;
	padding: clamp(20px, 2.4vw, 28px);
	background: var(--bap-bg);
	border: 1px solid var(--bap-line);
	border-radius: var(--bap-radius);
	box-shadow: var(--bap-shadow);
}
.bap-section--alt .bap-card { border-color: transparent; }
.bap-section--dark .bap-card { background: var(--bap-ink-2); border-color: var(--bap-line-dark); box-shadow: none; }
.bap-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bap-accent-soft); color: var(--bap-accent); flex: none; }
.bap-card__icon svg { width: 24px; height: 24px; }
.bap-card__title { font-weight: 800; font-size: 1.125rem; color: var(--bap-ink); line-height: 1.3; letter-spacing: -0.01em; }
.bap-section--dark .bap-card__title { color: #fff; }
.bap-card__text { color: var(--bap-muted); font-size: 1rem; }
.bap-section--dark .bap-card__text { color: var(--bap-on-dark-muted); }
.bap-card__meta { margin-top: auto !important; padding-top: 6px; font-size: 0.875rem; font-weight: 700; color: var(--bap-accent); }
.bap-card ul { padding-left: 1.2em; color: var(--bap-muted); font-size: 0.975rem; }
.bap-card--link { transition: border-color 0.15s ease, transform 0.15s ease; }
.bap-card--link:hover { border-color: var(--bap-accent); transform: translateY(-2px); }
.bap-card--link a.bap-card__cover { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.bap-card--link a.bap-card__cover:focus-visible { outline: 3px solid var(--bap-gold); outline-offset: 2px; }
.bap-card--accent { border-top: 4px solid var(--bap-accent); }
.bap-card--gold { border-top: 4px solid var(--bap-gold); }

/* ---------- Split: text + figure ---------- */
.bap-split { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) {
	.bap-split { grid-template-columns: 1fr 1fr; }
	.bap-split--reverse > :first-child { order: 2; }
}

/* ---------- Figures and inline SVG infographics ---------- */
.bap-figure { border-radius: var(--bap-radius); background: var(--bap-bg); border: 1px solid var(--bap-line); padding: clamp(12px, 2vw, 20px); }
.bap-section--alt .bap-figure { border-color: transparent; box-shadow: var(--bap-shadow); }
.bap-figure figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--bap-muted); text-align: center; }
.bap-figure--plain { background: none; border: 0; padding: 0; box-shadow: none !important; }
.bap-svg { display: block; width: 100%; height: auto; font-family: inherit; overflow: visible; }
.bap-svg text { font-family: inherit; font-size: 14px; fill: var(--bap-text); }
.bap-svg__box { fill: var(--bap-bg); stroke: var(--bap-line); stroke-width: 1.5; }
.bap-svg__box--alt { fill: var(--bap-bg-alt); stroke: var(--bap-line); stroke-width: 1.5; }
.bap-svg__box--soft { fill: var(--bap-accent-soft); stroke: var(--bap-accent); stroke-width: 1.5; }
.bap-svg__box--accent { fill: var(--bap-accent); stroke: none; }
.bap-svg__box--gold { fill: var(--bap-gold); stroke: none; }
.bap-svg__box--dark { fill: var(--bap-ink); stroke: none; }
.bap-svg__box--muted { fill: #eef1f4; stroke: #c9d1da; stroke-width: 1.5; stroke-dasharray: 5 4; }
.bap-svg__line { fill: none; stroke: #9aa7b6; stroke-width: 2; }
.bap-svg__line--accent { fill: none; stroke: var(--bap-accent); stroke-width: 2.5; }
.bap-svg__line--dash { fill: none; stroke: #9aa7b6; stroke-width: 2; stroke-dasharray: 6 5; }
.bap-svg__arrow { fill: #9aa7b6; }
.bap-svg__arrow--accent { fill: var(--bap-accent); }
.bap-svg__dot { fill: var(--bap-accent); }
.bap-svg__dot--gold { fill: var(--bap-gold); }
.bap-svg text.bap-svg__text--strong { font-weight: 800; fill: var(--bap-ink); }
.bap-svg text.bap-svg__text--muted { fill: var(--bap-muted); }
.bap-svg text.bap-svg__text--light { fill: #ffffff; }
.bap-svg text.bap-svg__text--light-muted { fill: var(--bap-on-dark-muted); }
.bap-svg text.bap-svg__text--ink { fill: var(--bap-ink); }
.bap-svg text.bap-svg__text--accent { fill: var(--bap-accent); font-weight: 700; }
.bap-svg text.bap-svg__text--sm { font-size: 12px; }
.bap-svg text.bap-svg__text--lg { font-size: 18px; }
.bap-svg text.bap-svg__text--xl { font-size: 24px; font-weight: 800; }
.bap-svg text.bap-svg__num { font-size: 16px; font-weight: 800; fill: #ffffff; }
.bap-hero .bap-svg text, .bap-section--dark .bap-svg text { fill: var(--bap-on-dark); }
.bap-hero .bap-svg .bap-svg__box, .bap-section--dark .bap-svg .bap-svg__box { fill: var(--bap-ink-2); stroke: var(--bap-line-dark); }
.bap-hero .bap-svg text.bap-svg__text--strong, .bap-section--dark .bap-svg text.bap-svg__text--strong { fill: #ffffff; }
.bap-hero .bap-svg text.bap-svg__text--muted, .bap-section--dark .bap-svg text.bap-svg__text--muted { fill: var(--bap-on-dark-muted); }
.bap-hero .bap-svg text.bap-svg__text--ink, .bap-section--dark .bap-svg text.bap-svg__text--ink { fill: var(--bap-ink); }
.bap-hero .bap-svg__line, .bap-section--dark .bap-svg__line { stroke: #4f6580; }
.bap-hero .bap-svg__arrow, .bap-section--dark .bap-svg__arrow { fill: #4f6580; }

/* ---------- Steps ---------- */
.bap-steps { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: bap-step; }
@media (min-width: 900px) { .bap-steps--row { grid-template-columns: repeat(var(--bap-cols, 5), 1fr); } }
.bap-step {
	position: relative;
	display: flex; gap: 14px; align-items: flex-start;
	padding: 18px 18px 20px;
	background: var(--bap-bg);
	border: 1px solid var(--bap-line);
	border-radius: var(--bap-radius);
}
.bap-steps--row .bap-step { flex-direction: column; }
.bap-section--alt .bap-step { border-color: transparent; box-shadow: var(--bap-shadow); }
.bap-section--dark .bap-step { background: var(--bap-ink-2); border-color: var(--bap-line-dark); }
.bap-step__num {
	flex: none;
	width: 38px; height: 38px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--bap-accent); color: #fff;
	font-weight: 800; font-size: 1rem;
}
.bap-step__title { font-weight: 800; color: var(--bap-ink); line-height: 1.3; }
.bap-section--dark .bap-step__title { color: #fff; }
.bap-step__text { color: var(--bap-muted); font-size: 0.975rem; margin-top: 4px !important; }
.bap-section--dark .bap-step__text { color: var(--bap-on-dark-muted); }

/* ---------- Compare columns ---------- */
.bap-compare { display: grid; gap: clamp(14px, 2vw, 22px); }
@media (min-width: 800px) { .bap-compare { grid-template-columns: 1fr 1fr; } }
.bap-compare__col { padding: clamp(22px, 2.6vw, 32px); border-radius: var(--bap-radius); background: var(--bap-bg); border: 1px solid var(--bap-line); display: flex; flex-direction: column; gap: 12px; }
.bap-compare__col--highlight { border: 2px solid var(--bap-accent); box-shadow: var(--bap-shadow); }
.bap-compare__col--muted { background: var(--bap-bg-alt); }
.bap-compare__label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bap-accent); }
.bap-compare__col--muted .bap-compare__label { color: var(--bap-muted); }
.bap-compare__title { font-size: 1.25rem; font-weight: 800; color: var(--bap-ink); line-height: 1.3; }

/* ---------- Lists ---------- */
.bap-checklist { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.bap-checklist li { position: relative; padding-left: 30px; }
.bap-checklist li::before {
	content: "";
	position: absolute; left: 0; top: 0.3em;
	width: 20px; height: 20px; border-radius: 50%;
	background: var(--bap-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230b7a69' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.bap-checklist--cross li::before {
	background: #f6e3e3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.5 6.5l7 7M13.5 6.5l-7 7' fill='none' stroke='%23a33a3a' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.bap-checklist--cols { grid-template-columns: 1fr; }
@media (min-width: 760px) { .bap-checklist--cols { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.bap-section--dark .bap-checklist li::before { background-color: rgba(127, 224, 207, 0.15); }

/* ---------- Facts (prepayment and key numbers) ---------- */
.bap-facts { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bap-facts { grid-template-columns: repeat(var(--bap-cols, 3), 1fr); } }
.bap-fact { padding: 22px; border-radius: var(--bap-radius); background: var(--bap-bg); border: 1px solid var(--bap-line); }
.bap-section--dark .bap-fact { background: var(--bap-ink-2); border-color: var(--bap-line-dark); }
.bap-fact__value { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--bap-accent); line-height: 1.1; letter-spacing: -0.02em; }
.bap-section--dark .bap-fact__value { color: var(--bap-gold); }
.bap-fact__label { display: block; margin-top: 8px; color: var(--bap-muted); font-size: 0.975rem; }
.bap-section--dark .bap-fact__label { color: var(--bap-on-dark-muted); }

/* ---------- Callout ---------- */
.bap-callout { padding: clamp(22px, 3vw, 36px); border-radius: var(--bap-radius); background: var(--bap-bg-soft); border-left: 5px solid var(--bap-accent); }
.bap-callout--gold { background: #fdf5e4; border-left-color: var(--bap-gold); }
.bap-callout--dark { background: var(--bap-ink); color: var(--bap-on-dark); border-left-color: var(--bap-gold); }
.bap-callout--dark strong { color: #fff; }
.bap-callout__title { font-weight: 800; font-size: 1.125rem; color: var(--bap-ink); margin-bottom: 6px !important; }
.bap-callout--dark .bap-callout__title { color: #fff; }

/* ---------- Tables ---------- */
.bap-table-wrap { overflow-x: auto; border-radius: var(--bap-radius); border: 1px solid var(--bap-line); background: var(--bap-bg); -webkit-overflow-scrolling: touch; }
.bap-table { width: 100%; border-collapse: collapse; font-size: 0.975rem; min-width: 560px; }
.bap-table th, .bap-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bap-line); }
.bap-table thead th { background: var(--bap-ink); color: #fff; font-weight: 700; font-size: 0.9rem; }
.bap-table tbody th { color: var(--bap-ink); font-weight: 700; }
.bap-table tbody tr:last-child th, .bap-table tbody tr:last-child td { border-bottom: 0; }
.bap-table tbody tr:nth-child(even) { background: var(--bap-bg-alt); }
.bap-table .bap-yes { color: var(--bap-accent); font-weight: 700; }
.bap-table .bap-no { color: var(--bap-muted); }

/* ---------- Link row / pills ---------- */
.bap-linkrow { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bap-pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 16px; border-radius: 999px;
	background: var(--bap-bg); border: 1px solid var(--bap-line);
	color: var(--bap-ink) !important; font-weight: 700; font-size: 0.95rem;
	text-decoration: none !important;
}
.bap-pill:hover { border-color: var(--bap-accent); color: var(--bap-accent) !important; }
.bap-pill--static { font-weight: 600; color: var(--bap-text) !important; }
.bap-pill--static:hover { border-color: var(--bap-line); color: var(--bap-text) !important; }
.bap-section--dark .bap-pill { background: transparent; border-color: var(--bap-line-dark); color: #fff !important; }
.bap-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--bap-accent-soft); color: var(--bap-accent-strong); font-size: 0.8125rem; font-weight: 700; }
.bap-badge--gold { background: #fdf0d2; color: #8a5d00; }

/* ---------- Provider name cloud (names as text, no logos) ---------- */
.bap-names { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bap-names li { padding: 7px 13px; border-radius: var(--bap-radius-sm); background: var(--bap-bg); border: 1px solid var(--bap-line); font-weight: 600; font-size: 0.95rem; color: var(--bap-ink); }
.bap-section--alt .bap-names li { border-color: transparent; }
.bap-names li a { color: inherit; text-decoration: none; }
.bap-names li a:hover { color: var(--bap-accent); }

/* ---------- FAQ ---------- */
.bap-faq { display: grid; gap: 12px; }
.bap-faq__item { border: 1px solid var(--bap-line); border-radius: var(--bap-radius); background: var(--bap-bg); }
.bap-section--alt .bap-faq__item { border-color: transparent; box-shadow: var(--bap-shadow); }
.bap-faq__q {
	cursor: pointer; list-style: none;
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 18px 22px;
	font-weight: 700; font-size: 1.0625rem; color: var(--bap-ink);
}
.bap-faq__q::-webkit-details-marker { display: none; }
.bap-faq__q::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--bap-accent); transition: transform 0.2s ease; }
.bap-faq__item[open] .bap-faq__q::after { transform: rotate(45deg); }
.bap-faq__q:focus-visible { outline: 3px solid var(--bap-gold); outline-offset: 2px; border-radius: var(--bap-radius); }
.bap-faq__a { padding: 0 22px 20px; color: var(--bap-muted); }

/* ---------- Final CTA ---------- */
.bap-cta { text-align: center; max-width: 760px; margin-inline: auto; }
.bap-cta h2 { color: #fff; }
.bap-cta .bap-lead { margin-top: 16px; }
.bap-cta__contact { margin-top: 20px !important; color: var(--bap-on-dark-muted); font-size: 0.975rem; }

/* ---------- Article (blog) ---------- */
.bap-article { max-width: 760px; margin-inline: auto; }
.bap-article h2 { margin-top: 2em; }
.bap-article h3 { margin-top: 1.5em; }
.bap-article > * + * { margin-top: 1em; }
.bap-article ul, .bap-article ol { padding-left: 1.3em; }
.bap-article li + li { margin-top: 0.4em; }
.bap-byline { font-size: 0.95rem; color: var(--bap-on-dark-muted); margin-top: 16px !important; }
.bap-toc { padding: 20px 24px; border-radius: var(--bap-radius); background: var(--bap-bg-alt); }
.bap-toc__label { font-weight: 800; color: var(--bap-ink); margin-bottom: 8px !important; }
.bap-toc ol { padding-left: 1.3em; }

/* ---------- Contact / form-free contact cards ---------- */
.bap-contact-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.bap-contact-list li { display: flex; gap: 12px; align-items: baseline; }
.bap-contact-list .bap-contact-list__label { min-width: 90px; font-weight: 700; color: var(--bap-ink); }

/* ---------- Breadcrumbs (Rank Math output wrapped by the plugin) ---------- */
.bap-breadcrumbs { max-width: var(--bap-container); margin: 0 auto; padding: 14px var(--bap-gutter) 0; font-size: 0.875rem; color: var(--bap-muted); }
.bap-breadcrumbs a { color: var(--bap-muted); text-decoration: none; }
.bap-breadcrumbs a:hover { color: var(--bap-accent); text-decoration: underline; }
.bap-breadcrumbs p { margin: 0; }

/* ======================================================================
 * Mega menu
 * Server-rendered <nav><ul><li><a>. Column labels are <span>, never headings.
 * Desktop: hover/focus panels. Mobile (< 1024px): accordion with the same links.
 * ==================================================================== */
.bap-mm { --bap-mm-h: 64px; position: static; font-size: 0.975rem; color: var(--bap-ink); flex: 1 1 auto; }
.bap-mm *, .bap-mm *::before, .bap-mm *::after { box-sizing: border-box; }
.bap-mm ul { list-style: none; margin: 0; padding: 0; }
.bap-mm a { text-decoration: none; color: inherit; }
.bap-mm__toggle, .bap-mm__sub-toggle {
	appearance: none; background: none; border: 0; padding: 0; margin: 0;
	font: inherit; color: inherit; cursor: pointer;
}
.bap-mm__toggle { display: none; }
.bap-mm__list { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.bap-mm__item { position: static; display: flex; align-items: center; }
.bap-mm__link, .bap-mm__label-top {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 44px; padding: 10px 12px; border-radius: 8px;
	font-weight: 700; white-space: nowrap; color: var(--bap-ink);
}
.bap-mm__link:hover, .bap-mm__item:focus-within > .bap-mm__link { color: var(--bap-accent); }
.bap-mm__link[aria-current="page"] { color: var(--bap-accent); }
.bap-mm__sub-toggle { width: 28px; height: 44px; margin-left: -10px; display: inline-grid; place-items: center; border-radius: 6px; }
.bap-mm__sub-toggle::before {
	content: ""; width: 8px; height: 8px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease;
}
.bap-mm__sub-toggle:focus-visible, .bap-mm__link:focus-visible, .bap-mm__toggle:focus-visible,
.bap-mm__panel a:focus-visible { outline: 3px solid var(--bap-gold); outline-offset: 2px; border-radius: 6px; }
.bap-mm__item--has-panel > .bap-mm__label-top { cursor: default; }

.bap-mm__panel {
	position: absolute; left: 0; right: 0; top: 100%;
	z-index: 100;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--bap-line);
	border-radius: 0 0 var(--bap-radius) var(--bap-radius);
	box-shadow: 0 24px 48px rgba(13, 27, 42, 0.14);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
.bap-mm__cols { display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 28px; max-width: 1100px; margin-inline: auto; }
.bap-mm__col { min-width: 0; }
.bap-mm__label { display: block; margin-bottom: 10px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bap-muted); }
.bap-mm__group + .bap-mm__group { margin-top: 18px; }
.bap-mm__links a { display: block; padding: 7px 0; font-weight: 600; color: var(--bap-ink); line-height: 1.35; }
.bap-mm__links a:hover { color: var(--bap-accent); }
.bap-mm__links a[aria-current="page"] { color: var(--bap-accent); }
.bap-mm__promo { padding: 20px; border-radius: var(--bap-radius); background: var(--bap-ink); color: var(--bap-on-dark); }
.bap-mm__promo-value { display: block; font-size: 1.6rem; font-weight: 800; color: var(--bap-gold); line-height: 1.15; }
.bap-mm__promo-text { display: block; margin-top: 6px; color: var(--bap-on-dark-muted); font-size: 0.9rem; line-height: 1.45; }
.bap-mm__promo-list { margin-top: 12px !important; display: grid; gap: 4px; font-size: 0.9rem; color: var(--bap-on-dark); }
.bap-mm__promo-link { display: inline-block; margin-top: 14px; color: #7fe0cf !important; font-weight: 700; }
.bap-mm__promo-link::after { content: " \2192"; }
.bap-mm__cta { margin-left: 8px; }
.bap-mm__cta a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
	border-radius: 999px; background: var(--bap-gold); color: var(--bap-ink); font-weight: 800; white-space: nowrap;
}
.bap-mm__cta a:hover { background: var(--bap-gold-strong); }

@media (min-width: 1024px) {
	.bap-mm__item--has-panel:hover > .bap-mm__panel,
	.bap-mm__item--has-panel:focus-within > .bap-mm__panel,
	.bap-mm__item--has-panel.is-open > .bap-mm__panel {
		opacity: 1; visibility: visible; transform: none;
		transition: opacity 0.15s ease, transform 0.15s ease;
	}
	.bap-mm__item--has-panel.is-closed > .bap-mm__panel { opacity: 0; visibility: hidden; }
	.bap-mm__item--has-panel:hover > .bap-mm__sub-toggle::before,
	.bap-mm__item--has-panel.is-open > .bap-mm__sub-toggle::before { transform: rotate(225deg) translateY(-2px); }
	/* hover bridge so the panel does not close when the pointer crosses the gap */
	.bap-mm__item--has-panel > .bap-mm__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
}

@media (max-width: 1023.98px) {
	.bap-mm { flex: 0 0 auto; }
	.bap-mm__toggle {
		display: inline-flex; align-items: center; gap: 10px;
		min-height: 44px; padding: 8px 14px; border-radius: 999px;
		border: 1px solid var(--bap-line); font-weight: 700;
	}
	.bap-mm__toggle-bars, .bap-mm__toggle-bars::before, .bap-mm__toggle-bars::after {
		display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.2s ease, opacity 0.2s ease;
	}
	.bap-mm__toggle-bars::before, .bap-mm__toggle-bars::after { content: ""; position: absolute; left: 0; }
	.bap-mm__toggle-bars::before { top: -6px; }
	.bap-mm__toggle-bars::after { top: 6px; }
	.bap-mm.is-open .bap-mm__toggle-bars { background: transparent; }
	.bap-mm.is-open .bap-mm__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
	.bap-mm.is-open .bap-mm__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

	/* Without JS the list stays visible (links remain usable); JS adds .bap-mm--js to collapse it. */
	.bap-mm__list { flex-direction: column; align-items: stretch; gap: 0; }
	.bap-mm--js .bap-mm__list {
		display: none;
		position: absolute; right: var(--bap-gutter); top: calc(100% + 6px); z-index: 100;
		width: min(92vw, 420px); max-height: calc(100vh - 110px); overflow-y: auto;
		padding: 8px 16px 16px; background: #fff;
		border: 1px solid var(--bap-line); border-radius: var(--bap-radius);
		box-shadow: 0 24px 48px rgba(13, 27, 42, 0.18);
	}
	.bap-mm--js.is-open .bap-mm__list { display: flex; }
	.bap-mm__item { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--bap-line); }
	.bap-mm__item:last-child { border-bottom: 0; }
	.bap-mm__link, .bap-mm__label-top { padding-inline: 0; flex: 1 1 auto; }
	.bap-mm__sub-toggle { width: 44px; margin: 0; }
	.bap-mm__panel {
		position: static; width: 100%; flex-basis: 100%;
		opacity: 1; visibility: visible; transform: none;
		padding: 0 0 14px; border: 0; box-shadow: none; border-radius: 0;
	}
	.bap-mm--js .bap-mm__panel { display: none; }
	.bap-mm--js .bap-mm__item.is-open > .bap-mm__panel { display: block; }
	.bap-mm__item.is-open > .bap-mm__sub-toggle::before { transform: rotate(225deg) translateY(-2px); }
	.bap-mm__cols { grid-template-columns: 1fr; gap: 14px; }
	.bap-mm__promo { display: none; }
	.bap-mm__links a { padding: 9px 0 9px 12px; }
	.bap-mm__label { margin: 6px 0 2px 12px; }
	.bap-mm__cta { margin: 14px 0 0; border-bottom: 0; }
	.bap-mm__cta a { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.bap-page *, .bap-mm * { transition: none !important; }
}

/* ======================================================================
 * Footer (template part markup supplied with the plugin)
 * ==================================================================== */
.bap-footer { background: var(--bap-ink); color: var(--bap-on-dark-muted); font-size: 0.95rem; }
.bap-footer a { color: var(--bap-on-dark); text-decoration: none; }
.bap-footer a:hover { color: #fff; text-decoration: underline; }
.bap-footer__inner { max-width: var(--bap-container); margin-inline: auto; padding: clamp(40px, 6vw, 64px) var(--bap-gutter) 28px; }
.bap-footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bap-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.bap-footer__brand { font-size: 1.15rem; font-weight: 800; color: #fff; margin: 0; }
.bap-footer__tagline { margin: 6px 0 0; }
.bap-footer__label { display: block; margin: 0 0 10px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bap-on-dark-muted); }
.bap-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bap-footer__notice { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--bap-line-dark); font-size: 0.875rem; line-height: 1.6; }
.bap-footer__legal { margin: 10px 0 0; font-size: 0.8125rem; }

/* Links to pages that are not published yet are printed as text by the plugin. */
.bap-link-pending { color: inherit; text-decoration: none; }
.bap-btn.bap-link-pending, .bap-card__cover.bap-link-pending { display: none; }
.bap-link-arrow.bap-link-pending { font-weight: inherit; }
.bap-link-arrow.bap-link-pending::after { content: none; }
.bap-pill.bap-link-pending { color: var(--bap-muted) !important; }

/* Step rows with a count other than five */
@media (min-width: 900px) {
	.bap-steps--row.bap-steps--3 { grid-template-columns: repeat(3, 1fr); }
	.bap-steps--row.bap-steps--4 { grid-template-columns: repeat(4, 1fr); }
	.bap-steps--row.bap-steps--6 { grid-template-columns: repeat(3, 1fr); }
}

/* ======================================================================
 * Header (template part markup supplied with the plugin)
 * ==================================================================== */
.bap-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--bap-line); margin-block: 0 !important; }
.admin-bar .bap-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bap-header { top: 46px; } }
.bap-header__inner { position: relative; max-width: var(--bap-container); margin-inline: auto; padding: 10px var(--bap-gutter); gap: 24px; align-items: center; }
.bap-header__brand { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.bap-header__brand a { color: var(--bap-ink); text-decoration: none; }
.bap-footer-wrap { margin-block: 0 !important; padding: 0 !important; }

/* Grid and flex children may shrink below their content width (keeps SVGs and tables inside the viewport). */
.bap-hero__grid > *, .bap-split > *, .bap-grid > *, .bap-compare > *, .bap-facts > *, .bap-steps > *, .bap-step > div, .bap-mm__col { min-width: 0; }
.bap-figure { max-width: 100%; }

/* Flex/gap containers handle their own spacing */
.bap-card > p + p, .bap-compare__col > p + p, .bap-fact > * + *, .bap-callout > p + p { margin-top: 0; }
.bap-callout > p + p { margin-top: 0.6em; }

/* Brand (logo mark + name) */
.bap-brand { margin: 0; flex: none; }
.bap-brand__link { display: inline-flex; align-items: center; gap: 10px; color: var(--bap-ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.bap-brand__link:hover { color: var(--bap-ink); }
.bap-brand__link:focus-visible { outline: 3px solid var(--bap-gold); outline-offset: 4px; border-radius: 6px; }
.bap-brand__mark { width: 36px; height: 36px; flex: none; display: block; }
.bap-brand__suffix { font-weight: 600; color: var(--bap-muted); }
@media (max-width: 420px) { .bap-brand__suffix { display: none; } }
.bap-footer__brand { display: flex; align-items: center; gap: 10px; }
.bap-brand__mark--footer { width: 30px; height: 30px; }
