/* Crypto Buying Guide — scoped under .cbg so it can't leak into the theme.
   Override the colours from your theme with e.g. .cbg { --cbg-accent: #0a7; } */
.cbg {
	--cbg-accent: #f7931a;
	--cbg-accent-ink: #1d1d1f;
	--cbg-accent-text: #a85a00;
	--cbg-ink: #1d2230;
	--cbg-muted: #5b6270;
	--cbg-line: #e3e6eb;
	--cbg-soft: #f6f7f9;
	--cbg-card: #ffffff;
	--cbg-ok: #13804b;
	--cbg-warn-bg: #fff5e6;
	--cbg-radius: 16px;
	box-sizing: border-box;
	max-width: 980px;
	margin: 0 auto;
	color: var(--cbg-ink);
	font-size: 17px;
	line-height: 1.6;
	text-align: left;
}
.cbg *, .cbg *::before, .cbg *::after { box-sizing: inherit; }
.cbg h2, .cbg h3 { color: var(--cbg-ink); margin: 0 0 .4em; line-height: 1.25; letter-spacing: -.01em; text-transform: none; }
.cbg h2 { font-size: 1.6em; }
.cbg h3 { font-size: 1.2em; }
.cbg p { margin: 0 0 .8em; }
.cbg a { color: var(--cbg-accent-text); text-decoration: underline; text-underline-offset: 2px; }
.cbg a:hover { text-decoration-thickness: 2px; }
.cbg ul, .cbg ol { margin: 0; padding: 0; }
.cbg-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Intro */
.cbg-intro { margin-bottom: 2.25em; }
.cbg-lead { font-size: 1.2em; line-height: 1.5; max-width: 46em; }
.cbg-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5em; margin: 1em 0 1.25em !important; }
.cbg-chips li { display: inline-flex; align-items: center; gap: .45em; margin: 0; padding: .45em .9em; border-radius: 999px; background: var(--cbg-soft); border: 1px solid var(--cbg-line); font-size: .92em; font-weight: 600; }
.cbg-chips .cbg-icon { width: 18px; height: 18px; color: var(--cbg-accent-text); }
.cbg-jump { display: flex; flex-wrap: wrap; gap: .35em 1.1em; font-size: .95em; }
.cbg-jump a { font-weight: 600; }

/* Sections */
.cbg-section { margin: 0 0 3em; scroll-margin-top: 90px; }
.cbg-sub { color: var(--cbg-muted); max-width: 46em; }
.cbg-small, .cbg-disclaimer { color: var(--cbg-muted); font-size: .88em; }
.cbg-disclaimer { border-top: 1px solid var(--cbg-line); padding-top: 1em; }
.cbg-h3 { margin-top: 1.6em !important; }

/* Buttons */
.cbg .cbg-btn {
	-webkit-appearance: none; appearance: none;
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: 46px; padding: .6em 1.2em; margin: 0;
	border: 2px solid var(--cbg-accent); border-radius: 999px;
	background: var(--cbg-accent); color: var(--cbg-accent-ink);
	font: inherit; font-weight: 700; font-size: .95em; line-height: 1.2;
	text-decoration: none; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none;
	transition: filter .15s ease, opacity .15s ease;
}
.cbg .cbg-btn:hover { filter: brightness(.95); text-decoration: none; }
/* Themes often restyle button:hover/:focus — pin our colours. */
.cbg .cbg-btn, .cbg .cbg-btn:hover, .cbg .cbg-btn:focus, .cbg .cbg-btn:active { background: var(--cbg-accent) !important; color: var(--cbg-accent-ink) !important; border-color: var(--cbg-accent) !important; }
.cbg .cbg-btn--ghost, .cbg .cbg-btn--ghost:hover, .cbg .cbg-btn--ghost:focus, .cbg .cbg-btn--ghost:active { background: transparent !important; color: var(--cbg-ink) !important; border-color: var(--cbg-line) !important; }
.cbg .cbg-btn--ghost:hover { border-color: var(--cbg-ink) !important; }
.cbg .cbg-dot, .cbg .cbg-dot:hover, .cbg .cbg-dot:focus { background: #c6cbd3 !important; }
.cbg .cbg-dot[aria-current="step"] { background: var(--cbg-accent) !important; }
.cbg .cbg-btn:focus-visible, .cbg a:focus-visible, .cbg-track:focus-visible, .cbg-dot:focus-visible, .cbg summary:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.cbg .cbg-btn--ghost { background: transparent; color: var(--cbg-ink); border-color: var(--cbg-line); }
.cbg .cbg-btn--ghost:hover { border-color: var(--cbg-ink); filter: none; }
.cbg .cbg-btn--block { display: flex; width: 100%; margin-top: auto; }
.cbg .cbg-btn[disabled] { opacity: .35; cursor: default; filter: none; }

/* Carousel */
.cbg-carousel { background: var(--cbg-soft); border: 1px solid var(--cbg-line); border-radius: calc(var(--cbg-radius) + 6px); padding: 1.5em; }
.cbg-carousel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25em 1em; }
.cbg-count { color: var(--cbg-muted); font-weight: 600; font-size: .95em; margin: 0 !important; }
.cbg-progress { display: none; height: 6px; border-radius: 99px; background: var(--cbg-line); margin: .6em 0 1.1em; overflow: hidden; }
.cbg-progress__bar { display: block; height: 100%; width: 16.66%; background: var(--cbg-accent); border-radius: inherit; transition: width .3s ease; }
.cbg-track {
	position: relative; display: flex; gap: 1em;
	overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
	padding: .25em 0 .75em; margin-top: 1em; border-radius: var(--cbg-radius);
}
.cbg-slide {
	flex: 0 0 86%; scroll-snap-align: start;
	display: grid; grid-template-columns: 150px 1fr; gap: 1.5em; align-items: center;
	background: var(--cbg-card); border: 1px solid var(--cbg-line); border-radius: var(--cbg-radius);
	padding: 1.75em; min-height: 260px;
}
.cbg-slide__art { position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #fff3e0, #ffe0b3); color: var(--cbg-accent-text); }
.cbg-slide__art .cbg-icon { width: 68px; height: 68px; stroke-width: 1.4; }
.cbg-slide__num { position: absolute; top: 2px; right: 2px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--cbg-ink); color: #fff; font-weight: 800; font-size: 1.1em; border: 3px solid var(--cbg-card); }
.cbg-slide__kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78em !important; font-weight: 700; color: var(--cbg-accent-text); margin-bottom: .2em !important; }
.cbg-slide h3 { font-size: 1.45em; }
.cbg-slide__time { display: inline-block; margin: .2em 0 0 !important; padding: .25em .75em; border-radius: 999px; background: var(--cbg-soft); color: var(--cbg-muted); font-size: .88em; font-weight: 600; }
.cbg-nav { display: none; align-items: center; justify-content: space-between; gap: 1em; margin-top: .75em; }
.cbg-dots { display: flex; gap: .5em; flex-wrap: nowrap; justify-content: center; align-items: center; min-width: 0; }
.cbg .cbg-dot { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; min-height: 0; padding: 0; margin: 0; border-radius: 50%; border: 0; background: #c6cbd3; cursor: pointer; box-shadow: none; transition: transform .2s, background .2s; }
.cbg .cbg-dot[aria-current="step"] { background: var(--cbg-accent); transform: scale(1.35); }

/* Enhanced (JS on): one slide at a time, nav visible */
.cbg-carousel.is-enhanced .cbg-track { scrollbar-width: none; }
.cbg-carousel.is-enhanced .cbg-track::-webkit-scrollbar { display: none; }
.cbg-carousel.is-enhanced .cbg-slide { flex-basis: 100%; }
.cbg-carousel.is-enhanced .cbg-nav, .cbg-carousel.is-enhanced .cbg-progress { display: flex; }
.cbg-carousel.is-enhanced .cbg-progress { display: block; }

/* Option cards */
.cbg-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; margin: 1.25em 0 1em; }
.cbg-option { position: relative; display: flex; flex-direction: column; background: var(--cbg-card); border: 1px solid var(--cbg-line); border-radius: var(--cbg-radius); padding: 1.4em; }
.cbg-option--best { border: 2px solid var(--cbg-accent); box-shadow: 0 8px 24px rgba(247, 147, 26, .14); }
.cbg-badge { align-self: flex-start; padding: .2em .7em; border-radius: 999px; background: var(--cbg-accent); color: var(--cbg-accent-ink); font-size: .78em !important; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .7em !important; }
.cbg-badge--alt { background: #dbeafe; color: #1e3a8a; }
.cbg-badge--muted { background: #e8eaee; color: var(--cbg-ink); }
.cbg-meter { display: flex; gap: 4px; margin-bottom: .6em; }
.cbg-meter i { width: 28px; height: 6px; border-radius: 99px; background: var(--cbg-line); }
.cbg-meter i.on { background: var(--cbg-ink); }
.cbg-option h3 { font-size: 1.35em; margin-bottom: .15em; }
.cbg-option__alt { color: var(--cbg-muted); font-size: .93em; }
.cbg-facts { list-style: none; margin: 0 0 .9em !important; font-size: .93em; }
.cbg-facts li { margin: 0; padding: .35em 0; border-top: 1px dashed var(--cbg-line); }
.cbg-how { font-size: .93em; }
.cbg-note { font-size: .86em; color: var(--cbg-muted); background: var(--cbg-soft); border-radius: 10px; padding: .6em .8em; margin-bottom: 1.1em !important; }
.cbg-note--warn { background: var(--cbg-warn-bg); color: #7a4300; }

/* Wallets */
.cbg-wallets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1em; margin: 1.25em 0 .5em; }
.cbg-wallet { background: var(--cbg-card); border: 1px solid var(--cbg-line); border-radius: var(--cbg-radius); padding: 1.2em 1.3em; }
.cbg-wallet h3 { margin-bottom: .1em; }
.cbg-wallet__meta { font-size: .85em !important; font-weight: 700; color: var(--cbg-accent-text); margin-bottom: .5em !important; }
.cbg-wallet p { font-size: .95em; }
.cbg-wallet a { font-weight: 600; font-size: .93em; }

/* Numbered lists */
.cbg-list { list-style: none; counter-reset: cbg; }
.cbg-list li { counter-increment: cbg; position: relative; padding: .1em 0 .9em 2.75em; margin: 0; }
.cbg-list li::before { content: counter(cbg); position: absolute; left: 0; top: 0; width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; background: var(--cbg-ink); color: #fff; font-weight: 800; font-size: .9em; }

/* Tips */
.cbg-tips { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .75em; margin: 1.25em 0 1.25em !important; }
.cbg-tips li { display: flex; gap: .75em; align-items: flex-start; margin: 0; background: var(--cbg-card); border: 1px solid var(--cbg-line); border-radius: 12px; padding: 1em; font-size: .95em; }
.cbg-tips .cbg-icon { color: var(--cbg-ok); margin-top: .1em; }
.cbg-safety { display: flex; gap: .9em; align-items: flex-start; background: #eef6ff; border: 1px solid #c9defc; color: #12305c; border-radius: var(--cbg-radius); padding: 1.1em 1.25em; }
.cbg-safety .cbg-icon { width: 30px; height: 30px; color: #1d4ed8; }

/* FAQ */
.cbg-faq details { border: 1px solid var(--cbg-line); border-radius: 12px; background: var(--cbg-card); margin: 0 0 .6em; }
.cbg-faq summary { cursor: pointer; list-style: none; padding: .9em 2.6em .9em 1.1em; font-weight: 700; position: relative; }
.cbg-faq summary::-webkit-details-marker { display: none; }
.cbg-faq summary::after { content: "+"; position: absolute; right: 1.1em; top: 50%; transform: translateY(-50%); font-size: 1.3em; font-weight: 400; color: var(--cbg-muted); }
.cbg-faq details[open] summary::after { content: "\2212"; }
.cbg-faq details p { padding: 0 1.1em 1em; margin: 0; color: var(--cbg-muted); }

/* Small screens */
@media (max-width: 860px) {
	.cbg-options { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.cbg { font-size: 16px; }
	.cbg h2 { font-size: 1.4em; }
	.cbg-carousel { padding: 1.1em .9em; margin-left: -4px; margin-right: -4px; }
	.cbg-slide { grid-template-columns: 1fr; gap: .9em; padding: 1.3em 1.2em; text-align: center; align-content: start; }
	.cbg-slide__art { width: 108px; height: 108px; margin: 0 auto; }
	.cbg-slide__art .cbg-icon { width: 50px; height: 50px; }
	.cbg-slide__num { width: 34px; height: 34px; font-size: .95em; }
	.cbg-slide h3 { font-size: 1.3em; }
	.cbg-nav .cbg-btn { padding: .55em .95em; }
	.cbg .cbg-dot { width: 9px; height: 9px; }
	.cbg-dots { gap: .4em; }
	.cbg-nav { gap: .5em; }
}
@media (prefers-reduced-motion: reduce) {
	.cbg *, .cbg-track { transition: none !important; scroll-behavior: auto !important; }
}
