/* ==========================================================================
   CaptainsBet — foundation: tokens, reset, container, buttons, header, footer
   and the shared long-form blocks.

   Class prefix `cb-`. Values come from the Figma source (file PP, page CB,
   frame "1440w light": a 1180px column inside a 1440px canvas).
   ========================================================================== */

:root {
	--cb-bg: #FFFFFF;
	--cb-ink: #08151C;
	--cb-muted: #64717A;
	--cb-white: #FFFFFF;
	--cb-black: #000000;

	--cb-accent: #08CDEC;
	--cb-accent-ink: #00242B;
	--cb-yellow: #F6DF1B;
	--cb-kicker: #40707A;

	--cb-dark: #031F27;
	--cb-dark-2: #052C37;
	--cb-dark-3: #021A21;
	--cb-surface: #F4F7F8;
	--cb-line: #DFE7EA;

	/* Names the article and archive stylesheets use. Accent cyan fails contrast as text
	   on white, so text links take a deeper shade of it. */
	--cb-blue: #0788A0;
	--cb-blue-2: #08CDEC;
	--cb-orange: var(--cb-yellow);
	--cb-green: #BDF3C4;

	--cb-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--cb-display: 'Oswald', 'Arial Narrow', sans-serif;

	--cb-max: 1180px;
	--cb-gutter: 40px;
	--cb-radius: 10px;
	--cb-radius-lg: 20px;
}

/* --- Reset ---------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background: var(--cb-bg);
	color: var(--cb-ink);
	font-family: var(--cb-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/* clip, not hidden: hidden makes the body a scroll container and sticky children
	   stop sticking. */
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
mark { background: none; color: var(--cb-yellow); }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--cb-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.cb-visually-hidden {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* --- Container: 1180px column, 40px gutters ------------------------------- */

.cb-container {
	width: 100%;
	max-width: calc(var(--cb-max) + var(--cb-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--cb-gutter);
}

/* --- Type ----------------------------------------------------------------- */

/* Small spaced capitals above every heading. */
.cb-kicker {
	font-size: 12px;
	line-height: 1.366;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--cb-kicker);
}

.cb-kicker--light { color: var(--cb-yellow); }

/* Oswald Bold capitals, tight. <mark> in a heading turns a word yellow. */
.cb-display {
	font-family: var(--cb-display);
	font-weight: 700;
	font-size: clamp(38px, 5.9vw, 84px);
	line-height: .952;
	letter-spacing: -.035em;
	text-transform: uppercase;
}

/* --- Buttons ---------------------------------------------------------------- */

.cb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	border-radius: 8px;
	font-size: 16px;
	line-height: 1.366;
	font-weight: 800;
	white-space: nowrap;
	transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.cb-btn__arrow { transition: transform .2s ease; }
.cb-btn:hover .cb-btn__arrow { transform: translateX(4px); }

/* Cyan with a soft cyan glow. */
.cb-btn--primary {
	padding: 16px 22px;
	background: var(--cb-accent);
	color: var(--cb-accent-ink);
	box-shadow: 0 10px 28px rgba(8, 205, 236, .2);
}

.cb-btn--primary:hover { background: #3ADCF3; box-shadow: 0 12px 32px rgba(8, 205, 236, .38); transform: translateY(-1px); }

/* Yellow secondary button over the hero photo. */
.cb-btn--glass {
	padding: 16px 18px;
	border: 1px solid var(--cb-yellow);
	background: var(--cb-yellow);
	color: var(--cb-accent-ink);
	font-weight: 700;
	box-shadow: 0 10px 28px rgba(246, 223, 27, .25);
}

.cb-btn--glass:hover { background: #FFE94A; border-color: #FFE94A; box-shadow: 0 12px 32px rgba(246, 223, 27, .4); transform: translateY(-1px); }

/* Header: compact register button and the plain "Log In" link. */
.cb-btn--register {
	padding: 8px 15px;
	border-radius: 7px;
	background: var(--cb-accent);
	color: var(--cb-accent-ink);
	font-size: 14px;
	box-shadow: 0 10px 28px rgba(8, 205, 236, .2);
}

.cb-btn--register:hover { background: #3ADCF3; }

.cb-btn--login {
	padding: 8px 0;
	color: var(--cb-white);
	font-weight: 400;
}

.cb-btn--login:hover { color: var(--cb-accent); }

/* Plain buttons used by the archive and 404 templates. */
.cb-btn--lime { padding: 12px 22px; background: var(--cb-accent); color: var(--cb-accent-ink); }
.cb-btn--lime:hover { background: #3ADCF3; }
.cb-btn--outline { padding: 12px 22px; box-shadow: inset 0 0 0 1.5px var(--cb-ink); color: var(--cb-ink); }
.cb-btn--outline:hover { background: var(--cb-ink); color: var(--cb-white); }

/* Round white arrow on the image tiles. */
.cb-arrow {
	display: grid;
	place-items: center;
	flex: none;
	width: 38px; height: 38px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	background: var(--cb-white);
	color: var(--cb-accent);
	transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.cb-arrow svg { width: 16px; height: 16px; }

/* --- Pills: the filter switch over the tile grids ----------------------------- */

.cb-pills {
	display: inline-flex;
	gap: 4px;
	padding: 5px;
	border-radius: 99px;
	background: var(--cb-surface);
}

.cb-pills__btn {
	padding: 10px 15px;
	border-radius: 99px;
	font-size: 13px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--cb-muted);
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease;
}

.cb-pills__btn:hover { color: var(--cb-ink); }

.cb-pills__btn[aria-pressed="true"] { background: var(--cb-accent); color: var(--cb-accent-ink); }

.cb-pills--dark { background: rgba(255, 255, 255, .08); }
.cb-pills--dark .cb-pills__btn { color: #ADC1C6; }
.cb-pills--dark .cb-pills__btn:hover { color: var(--cb-white); }
.cb-pills--dark .cb-pills__btn[aria-pressed="true"] { color: var(--cb-accent-ink); }

/* --- Header ---------------------------------------------------------------- */

/* The tinted, blurred bar is drawn by a pseudo-element rather than by the header itself:
   in Chrome a backdrop-filter on the header clips anything that overflows it, which cuts
   the dropdown menus off at its edge. */
.cb-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding-block: 20px;
	overflow: visible;
	color: var(--cb-white);
}

.cb-header::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	background: rgba(3, 31, 39, .96);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.cb-header__bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 36px;
}

.cb-header__brand { display: flex; align-items: center; gap: 12px; flex: none; }
.cb-header__logo { flex: none; }

/* Country flag beside the wordmark: a fixed height so any upload ratio still lines up. */
.cb-header__flag { display: flex; flex: none; }

.cb-header__flag img {
	width: auto;
	height: 19px;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}
.cb-header__logo img { width: 130px; height: 20px; }
.cb-header__logo-text { font-size: 21px; font-weight: 800; letter-spacing: -.07em; }

.cb-nav { position: absolute; left: 50%; transform: translateX(-50%); }
.cb-nav:not(:has(li)) { display: none; }

.cb-nav__list { display: flex; align-items: center; gap: 26px; }
.cb-nav__item { position: relative; }

.cb-nav__link {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	line-height: 1.366;
	color: rgba(255, 255, 255, .78);
	white-space: nowrap;
	transition: color .15s ease;
}

.cb-nav__link:hover,
.cb-nav__link--current { color: var(--cb-white); }
.cb-nav__link--current { box-shadow: 0 2px 0 var(--cb-accent); }

/* WPML language switcher, when it is added to the primary menu. */
.cb-nav__item.wpml-ls-item .cb-nav__link,
.cb-nav__item.wpml-ls-menu-item .cb-nav__link { box-shadow: none; }

.cb-nav__link .wpml-ls-flag {
	display: inline-block;
	width: 18px;
	height: auto;
	margin-right: 8px;
	border-radius: 2px;
	vertical-align: -3px;
}

.cb-nav__link .wpml-ls-native, .cb-nav__link .wpml-ls-display { white-space: nowrap; }

/* The switcher's dropdown: one compact row per language, hung from the right edge of the
   menu item and only as wide as the language name. */
.cb-nav__item.wpml-ls-item > .cb-subnav,
.cb-nav__item.wpml-ls-menu-item > .cb-subnav { left: auto; right: -12px; min-width: 0; }

.cb-subnav__link .wpml-ls-flag {
	display: inline-block;
	width: 18px;
	height: auto;
	margin-right: 8px;
	border-radius: 2px;
	vertical-align: -3px;
}

.cb-subnav__link .wpml-ls-native, .cb-subnav__link .wpml-ls-display { white-space: nowrap; }

/* The flag and the language name are one line, never broken between the two. */
.cb-nav__link > span, .cb-subnav__link > span { display: inline-flex; align-items: center; }

.cb-nav__caret { display: grid; width: 10px; height: 7px; transition: transform .2s ease; }
.cb-nav__caret svg { width: 10px; height: 7px; }
.cb-nav__item:hover > .cb-nav__link .cb-nav__caret,
.cb-nav__item:focus-within > .cb-nav__link .cb-nav__caret { transform: rotate(180deg); }

.cb-subnav {
	position: absolute;
	top: 100%;
	left: -16px;
	min-width: 200px;
	/* An absolutely positioned dropdown otherwise shrinks to the width of the menu item
	   above it and clips its labels. */
	width: max-content;
	max-width: min(280px, calc(100vw - 32px));
	margin-top: 18px;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 12px;
	background: var(--cb-dark);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

/* Bridges the gap so the pointer can travel from the item to its menu. */
.cb-subnav::before { content: ''; position: absolute; inset: -20px 0 100%; }

.cb-nav__item:hover > .cb-subnav,
.cb-nav__item:focus-within > .cb-subnav { opacity: 1; visibility: visible; transform: none; }

.cb-subnav__link {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 14px;
	color: rgba(255, 255, 255, .78);
	transition: background-color .15s ease, color .15s ease;
}

.cb-subnav__link:hover,
.cb-subnav__link--current { background: rgba(255, 255, 255, .08); color: var(--cb-white); }

.cb-header__actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }

.cb-burger {
	display: none;
	width: 40px; height: 40px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 8px;
}

.cb-burger span,
.cb-burger span::before,
.cb-burger span::after {
	display: block;
	width: 18px; height: 2px;
	border-radius: 2px;
	background: var(--cb-white);
	transition: transform .2s ease, background-color .2s ease;
}

.cb-burger span { position: relative; }
.cb-burger span::before,
.cb-burger span::after { content: ''; position: absolute; left: 0; }
.cb-burger span::before { top: -6px; }
.cb-burger span::after { top: 6px; }
.cb-burger[aria-expanded="true"] span { background: transparent; }
.cb-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.cb-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Footer ---------------------------------------------------------------- */

.cb-footer { padding-block: 40px; background: var(--cb-dark-3); color: var(--cb-white); }

.cb-footer__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.cb-footer__logo img { width: 118px; height: auto; }
.cb-footer__logo-text { font-size: 21.6px; font-weight: 800; letter-spacing: -.07em; }

.cb-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.cb-footer__link { font-size: 13px; line-height: 1.366; color: #AABCC1; transition: color .15s ease; }
.cb-footer__link:hover { color: var(--cb-white); }

.cb-footer__bottom {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-top: 24px;
}

.cb-footer__age {
	display: grid;
	place-items: center;
	flex: none;
	width: 48px; height: 48px;
	border: 1px solid #84969B;
	border-radius: 50%;
	font-size: 16px;
	font-weight: 700;
}

.cb-footer__note { flex: 1; font-size: 12px; line-height: 1.366; color: #96AAB0; }

.cb-footer__tagline {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	font-size: 11px;
	line-height: 1.366;
	letter-spacing: .16em;
	text-transform: uppercase;
	white-space: nowrap;
}

.cb-footer__tagline::before { content: ''; width: 28px; height: 2px; background: var(--cb-accent); }

.cb-footer__pay { margin-top: 24px; }
.cb-footer__pay img { width: 100%; max-width: var(--cb-max); }

/* ==========================================================================
   Shared long-form blocks: SEO copy, contents, rich text, tables, FAQ and the
   author signature — used by the landing template and the article layout.
   ========================================================================== */

.cb-seo { padding-block: 64px; }
.cb-toc + .cb-seo { padding-top: 0; }

.cb-rich { color: var(--cb-ink); font-size: 17px; line-height: 1.7; }
.cb-rich > * + * { margin-top: 16px; }
.cb-seo .cb-rich > * { max-width: 900px; }

.cb-rich h2 {
	margin-top: 48px;
	font-family: var(--cb-display);
	font-weight: 700;
	font-size: 48px;
	line-height: .95;
	letter-spacing: -.035em;
	text-transform: uppercase;
}

.cb-rich h3 { margin-top: 32px; font-size: 22px; line-height: 1.366; font-weight: 700; }

.cb-rich h2:first-child, .cb-rich h3:first-child { margin-top: 0; }
.cb-rich h2 + *, .cb-rich h3 + * { margin-top: 14px; }

.cb-rich p, .cb-rich li { color: #3C4A52; }
.cb-rich a { color: var(--cb-blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.cb-rich a:hover { color: var(--cb-ink); }
.cb-rich strong { font-weight: 700; color: var(--cb-ink); }

.cb-rich ul, .cb-rich ol { padding-left: 24px; }
.cb-rich ul { list-style: disc; }
.cb-rich ol { list-style: decimal; }
.cb-rich li + li { margin-top: 8px; }
.cb-rich li::marker { color: var(--cb-accent); font-weight: 700; }

.cb-rich blockquote {
	padding: 24px 28px;
	border-left: 3px solid var(--cb-accent);
	border-radius: 0 var(--cb-radius-lg) var(--cb-radius-lg) 0;
	background: var(--cb-surface);
	font-size: 19px;
	line-height: 1.6;
}

/* Wide tables scroll inside their own box rather than reflow into cards. */
.cb-table-scroll {
	overflow-x: auto;
	border: 1px solid var(--cb-line);
	border-radius: 14px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.cb-rich table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }

.cb-rich caption { padding: 14px 20px; font-size: 13px; font-weight: 800; text-align: left; letter-spacing: .12em; text-transform: uppercase; color: var(--cb-kicker); }

.cb-rich th, .cb-rich td { padding: 14px 20px; border-bottom: 1px solid var(--cb-line); text-align: left; font-size: 15px; line-height: 1.5; }

.cb-rich thead th { background: var(--cb-dark-2); color: var(--cb-white); font-size: 13px; font-weight: 700; white-space: nowrap; }

.cb-rich tbody tr:nth-child(even) { background: var(--cb-surface); }
.cb-rich tbody tr:last-child td { border-bottom: 0; }

/* --- Table of contents ------------------------------------------------------ */

.cb-toc { padding-block: 48px; }
.cb-toc--inline { padding-block: 0; }

.cb-toc__card {
	padding: 24px 28px;
	border-radius: var(--cb-radius-lg);
	background: var(--cb-dark-2);
	color: var(--cb-white);
}

.cb-toc__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	text-align: left;
}

.cb-toc__title {
	font-family: var(--cb-display);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.1;
	letter-spacing: -.02em;
	text-transform: uppercase;
}

.cb-toc__chevron {
	position: relative;
	flex: none;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--cb-accent);
}

.cb-toc__chevron::before,
.cb-toc__chevron::after {
	content: '';
	position: absolute;
	top: 50%; left: 50%;
	width: 12px; height: 2px;
	margin: -1px 0 0 -6px;
	border-radius: 2px;
	background: var(--cb-accent-ink);
	transition: transform .25s ease;
}

.cb-toc__chevron::after { transform: rotate(90deg); }
.cb-toc__card.is-open .cb-toc__chevron::after { transform: rotate(0deg); }

.cb-toc__panel { overflow: hidden; transition: height .25s ease; }
.cb-toc__panel > .cb-toc__list { padding-top: 16px; }

/* Two columns that fill top to bottom, so the numbers read down rather than across. */
.cb-toc__list { counter-reset: cb-toc; columns: 2; column-gap: 28px; }

.cb-toc__item { break-inside: avoid; }
.cb-entry__rail .cb-toc__list { columns: 1; }

.cb-toc__item--l2 { counter-increment: cb-toc; }

.cb-toc__link {
	display: flex;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.5;
	font-weight: 500;
	color: #C2D2D6;
	transition: background-color .18s ease, color .18s ease;
}

.cb-toc__item--l2 > .cb-toc__link::before {
	content: counter(cb-toc, decimal-leading-zero);
	flex: none;
	font-weight: 800;
	color: var(--cb-accent);
}

.cb-toc__item--l3 > .cb-toc__link { padding-left: 42px; font-size: 14px; }

.cb-toc__link:hover,
.cb-toc__link.is-current { background: rgba(255, 255, 255, .08); color: var(--cb-white); }

/* --- FAQ ---------------------------------------------------------------------- */

.cb-faq { padding-block: 64px; }

.cb-faq__title {
	margin-bottom: 32px;
	font-family: var(--cb-display);
	font-weight: 700;
	font-size: 48px;
	line-height: .95;
	letter-spacing: -.035em;
	text-transform: uppercase;
}

.cb-faq__list { display: flex; flex-direction: column; }

.cb-faq__item { border-bottom: 1px solid var(--cb-line); }

.cb-faq__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	width: 100%;
	padding: 20px 0;
	text-align: left;
	font-size: 17px;
	line-height: 1.366;
	font-weight: 700;
	color: var(--cb-ink);
	transition: color .15s ease;
}

.cb-faq__trigger:hover { color: var(--cb-blue); }

/* A cyan plus that turns into a minus. */
.cb-faq__chevron { position: relative; flex: none; width: 14px; height: 14px; }

.cb-faq__chevron::before,
.cb-faq__chevron::after {
	content: '';
	position: absolute;
	top: 50%; left: 0;
	width: 14px; height: 2.4px;
	margin-top: -1.2px;
	border-radius: 2px;
	background: var(--cb-accent);
	transition: transform .25s ease;
}

.cb-faq__chevron::after { transform: rotate(90deg); }
.cb-faq__item.is-open .cb-faq__chevron::after { transform: rotate(0deg); }

.cb-faq__panel { overflow: hidden; transition: height .25s ease; }

.cb-faq__panel-inner { padding: 0 54px 22px 0; color: var(--cb-muted); font-size: 15px; line-height: 1.7; }
.cb-faq__panel-inner > * + * { margin-top: 10px; }

/* Home page: heading on the left, questions on the right. */
.cb-faq--section .cb-faq__grid {
	display: grid;
	grid-template-columns: minmax(0, 367fr) minmax(0, 736fr);
	justify-content: space-between;
	gap: 40px 77px;
	align-items: start;
}

.cb-faq--section .cb-faq__title { margin: 6px 0 0; font-size: 58px; line-height: .88; }

/* --- Author signature ------------------------------------------------------- */

.cb-author {
	margin-block: 24px 64px;
	padding: 28px;
	border-radius: var(--cb-radius-lg);
	background: var(--cb-surface);
}

.cb-author__label {
	margin-bottom: 16px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--cb-kicker);
}

.cb-author__card { display: flex; align-items: flex-start; gap: 20px; }

.cb-author__avatar {
	flex: none;
	width: 64px; height: 64px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--cb-dark-2);
	box-shadow: 0 0 0 3px var(--cb-white), 0 0 0 4.5px var(--cb-accent);
}

.cb-author__avatar img { width: 100%; height: 100%; object-fit: cover; }

.cb-author__initial {
	display: grid;
	place-items: center;
	width: 100%; height: 100%;
	color: var(--cb-white);
	font-family: var(--cb-display);
	font-size: 28px;
	font-weight: 700;
}

.cb-author__name { font-size: 20px; line-height: 1.366; font-weight: 700; }
.cb-author__name a:hover { color: var(--cb-blue); }
.cb-author__role { font-size: 14px; line-height: 1.6; color: var(--cb-muted); }
.cb-author__note { margin-top: 10px; max-width: 820px; font-size: 15px; line-height: 1.7; color: #3C4A52; }

.cb-author__more {
	display: inline-block;
	margin-top: 10px;
	font-weight: 700;
	color: var(--cb-blue);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.cb-author__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--cb-line);
}

.cb-author__meta-item { display: flex; gap: 6px; font-size: 13px; line-height: 20px; }
.cb-author__meta dt { color: var(--cb-muted); }
.cb-author__meta dd { font-weight: 700; }

.cb-author-page__intro { margin-bottom: 24px; }

/* --- 404 ---------------------------------------------------------------------- */

.cb-notfound { padding-block: 120px; text-align: center; }
.cb-notfound__code { font-family: var(--cb-display); font-weight: 700; font-size: 180px; line-height: 1; letter-spacing: -.035em; color: var(--cb-accent); }
.cb-notfound__title { margin-top: 16px; font-family: var(--cb-display); font-size: 42px; line-height: 1; font-weight: 700; text-transform: uppercase; }
.cb-notfound__text { margin: 14px auto 0; max-width: 560px; color: var(--cb-muted); font-size: 17px; line-height: 1.7; }
.cb-notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* --- Reveal on scroll ----------------------------------------------------------- */

.cb-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s ease var(--cb-delay, 0ms), transform .6s ease var(--cb-delay, 0ms);
}

.cb-reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Floating controls: back-to-top and the bonus button.
   ========================================================================== */

.cb-fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 60;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.cb-fab__top {
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border-radius: 50%;
	background: var(--cb-dark-2);
	color: var(--cb-white);
	box-shadow: 0 10px 24px rgba(3, 31, 39, .3);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease;
}

.cb-fab__top.is-visible { opacity: 1; visibility: visible; transform: none; }
.cb-fab__top:hover { background: var(--cb-dark); }
.cb-fab__top svg { width: 22px; height: 22px; }

.cb-fab__bonus {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 20px 8px 8px;
	border-radius: 100px;
	background: var(--cb-accent);
	color: var(--cb-accent-ink);
	font-size: 15px;
	line-height: 1.366;
	font-weight: 800;
	white-space: nowrap;
	box-shadow: 0 10px 28px rgba(8, 205, 236, .35);
	transition: transform .2s ease, box-shadow .2s ease;
}

.cb-fab__bonus:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(8, 205, 236, .5); }

.cb-fab__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: var(--cb-yellow);
	color: var(--cb-accent-ink);
}

.cb-fab__icon svg { width: 18px; height: 18px; animation: cb-wiggle 3.6s ease-in-out infinite; }

.cb-fab__ring {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, transparent 34%, rgba(255, 255, 255, .5) 50%, transparent 66%);
	transform: translateX(-130%);
	animation: cb-sheen 3.6s ease-in-out infinite;
	pointer-events: none;
}

@keyframes cb-sheen {
	0%, 12%   { transform: translateX(-130%); }
	46%, 100% { transform: translateX(130%); }
}

@keyframes cb-wiggle {
	0%, 60%, 100% { transform: none; }
	70% { transform: rotate(-12deg); }
	80% { transform: rotate(10deg); }
	90% { transform: rotate(-6deg); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199px) {
	.cb-nav__list { gap: 18px; }
	.cb-display { font-size: 68px; }
}

@media (max-width: 1023px) {
	:root { --cb-gutter: 24px; }

	.cb-header { padding-block: 14px; }
	.cb-header__actions { gap: 14px; }
	.cb-burger { display: flex; }

	.cb-nav {
		position: absolute;
		top: calc(100% + 14px);
		left: 0;
		right: 0;
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}

	.cb-nav.cb-is-open { opacity: 1; visibility: visible; transform: none; }

	.cb-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		padding: 10px;
		border: 1px solid rgba(255, 255, 255, .1);
		border-radius: 14px;
		background: var(--cb-dark);
		box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
	}

	.cb-nav__link { padding: 12px; font-size: 16px; }
	.cb-nav__link--current { box-shadow: inset 3px 0 0 var(--cb-accent); }

	.cb-subnav {
		position: static;
		min-width: 0;
		width: auto;
		max-width: none;
		margin: 0 0 6px 12px;
		padding: 0;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.cb-subnav::before { display: none; }

	.cb-display { font-size: 56px; }
	.cb-rich h2 { font-size: 38px; }
	.cb-toc__list { columns: 1; }

	/* Collapsed from the first paint. The server sends the list open, so a wide screen shows
	   it even without JavaScript; on a small screen it must not paint open and then snap shut
	   when main.js runs — or stay open until a first tap if the script is deferred. Once
	   main.js has wired the card it adds .is-ready, and `hidden` plus the height animation
	   take over from this rule. */
	.cb-toc__card:not(.is-ready) .cb-toc__panel { display: none; }

	.cb-faq--section .cb-faq__grid { grid-template-columns: 1fr; }
	.cb-faq--section .cb-faq__title { font-size: 48px; }
}

@media (max-width: 767px) {
	:root { --cb-gutter: 16px; }

	.cb-header__logo img { width: 110px; height: auto; }
	.cb-btn--login { display: none; }

	.cb-display { font-size: 42px; }

	.cb-seo { padding-block: 48px; }
	.cb-rich { font-size: 16px; }
	.cb-rich h2 { font-size: 32px; }
	.cb-rich h3 { font-size: 19px; }
	.cb-rich table { min-width: 480px; }
	.cb-rich th, .cb-rich td { padding: 12px 14px; font-size: 14px; }

	.cb-toc { padding-block: 32px; }
	.cb-toc__card { padding: 20px; }
	.cb-toc__title { font-size: 20px; }

	.cb-faq { padding-block: 48px; }
	.cb-faq__trigger { gap: 20px; font-size: 16px; }
	.cb-faq__panel-inner { padding-right: 0; }
	.cb-faq--section .cb-faq__title { font-size: 40px; }

	.cb-author { padding: 20px; }
	.cb-author__card { flex-direction: column; gap: 14px; }

	.cb-footer__bottom { flex-wrap: wrap; }
	.cb-footer__note { flex-basis: calc(100% - 68px); }
	.cb-footer__tagline { margin-left: 0; }

	.cb-notfound__code { font-size: 120px; }

	.cb-fab { right: 14px; bottom: 14px; gap: 10px; }
	.cb-fab__label { display: none; }
	.cb-fab__bonus { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}

	.cb-reveal { opacity: 1; transform: none; }
}
