/*
Theme Name: CasinoBloggers
Theme URI: https://casinobloggers.com
Author: CasinoBloggers
Author URI: https://casinobloggers.com
Description: A dark, premium, ad-ready WordPress blog theme built for casino, gambling and betting information content. Includes seven configurable ad zones, built-in schema markup, reading-time meta, responsible-gambling compliance blocks and a fast, dependency-free front end.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casinobloggers
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles
*/

/* =========================================================================
   1. Design tokens
   ====================================================================== */

:root {
	--cb-bg:            #0c0e13;
	--cb-bg-alt:        #12151c;
	--cb-surface:       #171b24;
	--cb-surface-2:     #1e232e;
	--cb-border:        #262c38;
	--cb-border-soft:   #1d222c;

	--cb-text:          #e8eaf0;
	--cb-text-muted:    #9aa3b5;
	--cb-text-dim:      #6b7488;

	--cb-gold:          #d4af37;
	--cb-gold-bright:   #f0cc5c;
	--cb-gold-dim:      #8f7523;
	--cb-emerald:       #1fae72;
	--cb-emerald-dim:   #0f6b45;
	--cb-red:           #d64545;

	--cb-radius:        14px;
	--cb-radius-sm:     8px;
	--cb-shadow:        0 10px 30px rgba(0, 0, 0, .45);
	--cb-shadow-sm:     0 4px 14px rgba(0, 0, 0, .3);

	--cb-font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--cb-font-display:  'Playfair Display', Georgia, 'Times New Roman', serif;

	--cb-max:           1240px;
	--cb-gap:           28px;
}

/* =========================================================================
   2. Reset & base
   ====================================================================== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--cb-bg);
	background-image:
		radial-gradient(900px 500px at 12% -8%, rgba(212, 175, 55, .07), transparent 62%),
		radial-gradient(800px 460px at 92% 4%, rgba(31, 174, 114, .06), transparent 60%);
	background-attachment: fixed;
	color: var(--cb-text);
	font-family: var(--cb-font);
	font-size: 17px;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, video, iframe, embed, object { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--cb-gold-bright); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--cb-gold); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cb-font-display);
	font-weight: 700;
	line-height: 1.22;
	color: #fff;
	margin: 0 0 .55em;
	letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.25em; }

ul, ol { padding-left: 1.3em; }

blockquote {
	margin: 2em 0;
	padding: 1.1em 1.5em;
	border-left: 3px solid var(--cb-gold);
	background: var(--cb-surface);
	border-radius: 0 var(--cb-radius-sm) var(--cb-radius-sm) 0;
	color: var(--cb-text);
	font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

code, pre, kbd {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .9em;
}
code { background: var(--cb-surface-2); padding: .15em .45em; border-radius: 5px; color: var(--cb-gold-bright); }
pre {
	background: var(--cb-surface-2);
	padding: 1.2em;
	border-radius: var(--cb-radius-sm);
	overflow-x: auto;
	border: 1px solid var(--cb-border);
}
pre code { background: none; padding: 0; color: inherit; }

hr { border: 0; height: 1px; background: var(--cb-border); margin: 2.5em 0; }

table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.8em 0;
	font-size: .96rem;
	background: var(--cb-surface);
	border-radius: var(--cb-radius-sm);
	overflow: hidden;
}
th, td { padding: .85em 1em; text-align: left; border-bottom: 1px solid var(--cb-border); }
th { background: var(--cb-surface-2); color: #fff; font-weight: 600; font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }

::selection { background: var(--cb-gold); color: #14161c; }

/* Accessibility */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 9999;
	clip: auto; clip-path: none; width: auto; height: auto;
	background: var(--cb-gold); color: #14161c; padding: .7em 1.2em;
	border-radius: var(--cb-radius-sm); font-weight: 600;
}
:focus-visible { outline: 2px solid var(--cb-gold); outline-offset: 3px; }

/* =========================================================================
   3. Layout
   ====================================================================== */

.container {
	width: 100%;
	max-width: var(--cb-max);
	margin: 0 auto;
	padding: 0 22px;
}

.site-content { padding: 34px 0 60px; }

.cb-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 46px;
	align-items: start;
}
.cb-layout--narrow { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin: 0 auto; }

/* Sidebar position, set in Customize > Site Options > Sidebar position. */
.no-sidebar .cb-layout { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin: 0 auto; }
.sidebar-left .cb-layout { grid-template-columns: 330px minmax(0, 1fr); }
.sidebar-left .cb-main    { order: 2; }
.sidebar-left .cb-sidebar { order: 1; }

.cb-main { min-width: 0; }

.cb-grid { display: grid; gap: var(--cb-gap); }
.cb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* =========================================================================
   4. Buttons & pills
   ====================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .82em 1.65em;
	border-radius: 999px;
	font-weight: 600;
	font-size: .96rem;
	font-family: var(--cb-font);
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
	text-align: center;
	line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .6em 1.15em; font-size: .88rem; }

.btn--gold {
	background: linear-gradient(135deg, var(--cb-gold-bright), var(--cb-gold));
	color: #14161c;
	box-shadow: 0 6px 20px rgba(212, 175, 55, .24);
}
.btn--gold:hover { color: #14161c; box-shadow: 0 10px 28px rgba(212, 175, 55, .34); }

.btn--ghost {
	background: transparent;
	color: var(--cb-text);
	border-color: var(--cb-border);
}
.btn--ghost:hover { border-color: var(--cb-gold); color: var(--cb-gold-bright); }

.cb-eyebrow {
	display: inline-block;
	font-size: .74rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--cb-gold);
	font-weight: 600;
	margin-bottom: 14px;
	font-family: var(--cb-font);
}

.cb-cat-badge {
	display: inline-block;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--cb-emerald);
	background: rgba(31, 174, 114, .1);
	border: 1px solid rgba(31, 174, 114, .28);
	padding: .32em .8em;
	border-radius: 999px;
	margin-bottom: 12px;
	font-family: var(--cb-font);
}
.cb-cat-badge:hover { background: rgba(31, 174, 114, .18); color: var(--cb-emerald); }

.age-badge {
	display: inline-grid;
	place-items: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	border: 2px solid var(--cb-red);
	color: var(--cb-red);
	font-size: .72rem;
	font-weight: 700;
	font-family: var(--cb-font);
	flex-shrink: 0;
}
.age-badge--lg { width: 52px; height: 52px; font-size: 1rem; }

/* =========================================================================
   5. Header
   ====================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(12, 14, 19, .88);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--cb-border-soft);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 26px;
	min-height: 74px;
}

.site-branding { flex-shrink: 0; margin-right: auto; }
.site-branding img { max-height: 46px; width: auto; }

.site-title {
	margin: 0;
	font-size: 1.42rem;
	font-family: var(--cb-font-display);
	letter-spacing: -.02em;
}
.site-title a { color: #fff; }
.site-title a:hover { color: var(--cb-gold-bright); }

.site-description {
	margin: 2px 0 0;
	font-size: .76rem;
	color: var(--cb-text-dim);
	letter-spacing: .02em;
}

/* Navigation */
.main-navigation ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}
.main-navigation li { position: relative; }
.main-navigation a {
	display: block;
	padding: .6em .95em;
	color: var(--cb-text-muted);
	font-size: .93rem;
	font-weight: 500;
	border-radius: var(--cb-radius-sm);
	white-space: nowrap;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-cat > a {
	color: #fff;
	background: var(--cb-surface);
}

/* Dropdowns */
.main-navigation ul ul {
	position: absolute;
	top: 100%; left: 0;
	min-width: 210px;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius-sm);
	box-shadow: var(--cb-shadow);
	padding: 6px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
	opacity: 1; visibility: visible; transform: translateY(0);
}

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.search-toggle {
	background: transparent;
	border: 1px solid var(--cb-border);
	color: var(--cb-text-muted);
	width: 38px; height: 38px;
	border-radius: 50%;
	display: grid; place-items: center;
	cursor: pointer;
	transition: border-color .18s ease, color .18s ease;
}
.search-toggle:hover { border-color: var(--cb-gold); color: var(--cb-gold); }

.menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius-sm);
	width: 42px; height: 40px;
	cursor: pointer;
	padding: 0;
	place-items: center;
}
.menu-toggle__bars { display: grid; gap: 4px; }
.menu-toggle__bars span {
	display: block;
	width: 19px; height: 2px;
	background: var(--cb-text);
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Search panel */
.cb-search-panel {
	border-top: 1px solid var(--cb-border-soft);
	background: var(--cb-bg-alt);
	padding: 20px 0;
}
.cb-search-panel[hidden] { display: none; }

.cb-searchform { display: flex; gap: 10px; }
.cb-searchform__input {
	flex: 1;
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	color: var(--cb-text);
	padding: .8em 1.1em;
	border-radius: 999px;
	font-family: var(--cb-font);
	font-size: .95rem;
}
.cb-searchform__input::placeholder { color: var(--cb-text-dim); }
.cb-searchform__input:focus { outline: none; border-color: var(--cb-gold); }
.cb-searchform__btn {
	background: linear-gradient(135deg, var(--cb-gold-bright), var(--cb-gold));
	color: #14161c;
	border: 0;
	padding: .8em 1.6em;
	border-radius: 999px;
	font-weight: 600;
	font-family: var(--cb-font);
	cursor: pointer;
}

/* =========================================================================
   6. Hero
   ====================================================================== */

.cb-hero {
	padding: 68px 0 54px;
	border-bottom: 1px solid var(--cb-border-soft);
	position: relative;
	overflow: hidden;
}
.cb-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(620px 320px at 22% 22%, rgba(212, 175, 55, .1), transparent 68%),
		radial-gradient(560px 300px at 82% 72%, rgba(31, 174, 114, .09), transparent 66%);
	pointer-events: none;
}

.cb-hero__inner {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 52px;
	align-items: center;
	position: relative;
}

.cb-hero__title {
	font-size: clamp(2.3rem, 5vw, 3.6rem);
	margin-bottom: .4em;
	background: linear-gradient(120deg, #ffffff 20%, var(--cb-gold-bright) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.cb-hero__sub {
	font-size: 1.12rem;
	color: var(--cb-text-muted);
	max-width: 34em;
	margin-bottom: 2em;
}
.cb-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.cb-hero__feature {
	position: relative;
	display: block;
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius);
	overflow: hidden;
	box-shadow: var(--cb-shadow);
	transition: transform .22s ease, border-color .22s ease;
}
.cb-hero__feature:hover { transform: translateY(-5px); border-color: var(--cb-gold-dim); }
.cb-hero__feature-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cb-surface-2); }
.cb-hero__feature-img img { width: 100%; height: 100%; object-fit: cover; }
.cb-hero__feature-body { padding: 22px 24px 26px; }
.cb-hero__feature-body h2 { font-size: 1.32rem; margin-bottom: .5em; }
.cb-hero__feature-body h2 a { color: #fff; }
.cb-hero__feature:hover .cb-hero__feature-body h2 a { color: var(--cb-gold-bright); }
.cb-readmore { color: var(--cb-gold-bright); font-size: .9rem; font-weight: 600; font-family: var(--cb-font); }

/* Stretched link: whole card is clickable, but the category badge stays
   independently clickable and we never nest anchors. */
.cb-hero__feature-body h2 a::after,
.cb-card__title a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}
.cb-hero__feature .cb-cat-badge,
.cb-card .cb-cat-badge { position: relative; z-index: 2; }

/* =========================================================================
   7. Section headings, breadcrumbs, page heads
   ====================================================================== */

.cb-section-title {
	font-size: 1.5rem;
	margin: 0 0 26px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--cb-border);
	position: relative;
}
.cb-section-title::after {
	content: '';
	position: absolute;
	left: 0; bottom: -1px;
	width: 62px; height: 2px;
	background: linear-gradient(90deg, var(--cb-gold), transparent);
}

.cb-home > section { margin-bottom: 58px; }
.cb-home { padding-top: 46px; }

.cb-breadcrumbs { padding: 4px 0 22px; font-size: .84rem; color: var(--cb-text-dim); }
.cb-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cb-breadcrumbs li::after { content: '/'; margin-left: 8px; color: var(--cb-border); }
.cb-breadcrumbs li:last-child::after { content: ''; }
.cb-breadcrumbs a { color: var(--cb-text-muted); }
.cb-breadcrumbs a:hover { color: var(--cb-gold-bright); }

.cb-page-head { margin-bottom: 34px; }
.cb-page-title { margin-bottom: .3em; }
.cb-page-desc, .cb-page-count { color: var(--cb-text-muted); font-size: .95rem; margin: 0; }
.cb-page-search { margin-top: 22px; max-width: 520px; }

/* =========================================================================
   8. Topic tiles
   ====================================================================== */

.cb-topics__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
}
.cb-topic {
	display: block;
	padding: 20px 22px;
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius-sm);
	transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.cb-topic:hover { border-color: var(--cb-gold-dim); transform: translateY(-3px); background: var(--cb-surface-2); }
.cb-topic__name { display: block; color: #fff; font-weight: 600; font-size: 1rem; margin-bottom: 3px; }
.cb-topic__count { display: block; color: var(--cb-text-dim); font-size: .81rem; }

/* =========================================================================
   9. Cards & list rows
   ====================================================================== */

.cb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius);
	overflow: hidden;
	transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
	height: 100%;
}
.cb-card:hover { transform: translateY(-5px); border-color: var(--cb-gold-dim); box-shadow: var(--cb-shadow-sm); }
.cb-card__media { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cb-surface-2); }
.cb-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cb-card:hover .cb-card__media img { transform: scale(1.05); }
.cb-card__placeholder { font-size: 2.4rem; color: var(--cb-border); }
.cb-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.cb-card__title { font-size: 1.13rem; margin-bottom: .5em; }
.cb-card__title a { color: #fff; }
.cb-card:hover .cb-card__title a { color: var(--cb-gold-bright); }
.cb-card__excerpt { color: var(--cb-text-muted); font-size: .92rem; line-height: 1.6; margin-bottom: 1.1em; flex: 1; }
.cb-card__meta { font-size: .8rem; color: var(--cb-text-dim); font-family: var(--cb-font); }

.cb-row {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 26px;
	padding-bottom: 30px;
	margin-bottom: 30px;
	border-bottom: 1px solid var(--cb-border-soft);
}
.cb-row:last-of-type { border-bottom: 0; }
.cb-row__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--cb-radius-sm);
	background: var(--cb-surface-2);
}
.cb-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.cb-row:hover .cb-row__media img { transform: scale(1.05); }
.cb-row__title { font-size: 1.4rem; margin-bottom: .4em; }
.cb-row__title a { color: #fff; }
.cb-row__title a:hover { color: var(--cb-gold-bright); }
.cb-row__excerpt { color: var(--cb-text-muted); font-size: .95rem; margin-bottom: .9em; }

.entry-meta {
	font-size: .83rem;
	color: var(--cb-text-dim);
	font-family: var(--cb-font);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.meta-sep { color: var(--cb-border); }

/* =========================================================================
   10. Single post
   ====================================================================== */

.cb-single__head { margin-bottom: 26px; }
.cb-single__title { font-size: clamp(1.9rem, 3.8vw, 2.85rem); margin-bottom: .4em; }

.cb-single__thumb { margin: 0 0 30px; }
.cb-single__thumb img { width: 100%; border-radius: var(--cb-radius); }
.cb-single__thumb figcaption { font-size: .83rem; color: var(--cb-text-dim); margin-top: 10px; text-align: center; }

.cb-disclosure {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: baseline;
	background: rgba(212, 175, 55, .07);
	border: 1px solid rgba(212, 175, 55, .22);
	border-radius: var(--cb-radius-sm);
	padding: 14px 18px;
	margin-bottom: 30px;
	font-size: .88rem;
	color: var(--cb-text-muted);
}
.cb-disclosure strong { color: var(--cb-gold); font-family: var(--cb-font); letter-spacing: .03em; text-transform: uppercase; font-size: .74rem; }

.cb-single__content { font-size: 1.06rem; }
.cb-single__content > h2 { margin-top: 1.9em; }
.cb-single__content > h3 { margin-top: 1.6em; }
.cb-single__content li { margin-bottom: .45em; }
.cb-single__content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cb-single__content img { border-radius: var(--cb-radius-sm); }
.cb-single__content figure { margin: 2em 0; }
.cb-single__content figcaption { font-size: .83rem; color: var(--cb-text-dim); text-align: center; margin-top: 8px; }

.cb-single__footer {
	margin-top: 40px;
	padding-top: 26px;
	border-top: 1px solid var(--cb-border);
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: space-between;
	align-items: center;
}
.cb-tags { font-size: .86rem; color: var(--cb-text-dim); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cb-tags a {
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	padding: .3em .8em;
	border-radius: 999px;
	color: var(--cb-text-muted);
	font-size: .82rem;
}
.cb-tags a:hover { border-color: var(--cb-gold-dim); color: var(--cb-gold-bright); }

.cb-share { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--cb-text-dim); }
.cb-share a {
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	padding: .38em .85em;
	border-radius: var(--cb-radius-sm);
	color: var(--cb-text-muted);
	font-size: .82rem;
	font-weight: 500;
}
.cb-share a:hover { border-color: var(--cb-gold-dim); color: var(--cb-gold-bright); }

.cb-author {
	display: flex;
	gap: 20px;
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius);
	padding: 24px;
	margin-top: 38px;
}
.cb-author__avatar { border-radius: 50%; flex-shrink: 0; }
.cb-author__name { font-size: 1.08rem; margin-bottom: .3em; }
.cb-author__bio { color: var(--cb-text-muted); font-size: .92rem; margin: 0; }

.cb-postnav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 38px;
}
.cb-postnav__link {
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius-sm);
	padding: 16px 20px;
	color: #fff;
	font-weight: 600;
	font-size: .96rem;
	transition: border-color .2s ease;
}
.cb-postnav__link:hover { border-color: var(--cb-gold-dim); color: var(--cb-gold-bright); }
.cb-postnav__link span {
	display: block;
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--cb-text-dim);
	font-weight: 500;
	margin-bottom: 6px;
	font-family: var(--cb-font);
}
.cb-postnav__next { text-align: right; }

.cb-related { margin-top: 52px; }

/* =========================================================================
   11. Sidebar & widgets
   ====================================================================== */

.cb-sidebar { position: sticky; top: 100px; }

.widget {
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius);
	padding: 22px 24px;
	margin-bottom: 22px;
}
.widget-title {
	font-size: 1rem;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--cb-border);
	font-family: var(--cb-font);
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--cb-gold);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .48em 0; border-bottom: 1px solid var(--cb-border-soft); font-size: .93rem; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--cb-text-muted); }
.widget a:hover { color: var(--cb-gold-bright); }
.widget p { font-size: .92rem; color: var(--cb-text-muted); }
.widget select, .widget input[type="text"], .widget input[type="search"] {
	width: 100%;
	background: var(--cb-surface-2);
	border: 1px solid var(--cb-border);
	color: var(--cb-text);
	padding: .6em .8em;
	border-radius: var(--cb-radius-sm);
	font-family: var(--cb-font);
}

.cb-recent li { padding: .7em 0; }
.cb-recent a { display: flex; gap: 12px; align-items: center; }
.cb-recent__thumb { flex-shrink: 0; width: 58px; height: 58px; border-radius: var(--cb-radius-sm); overflow: hidden; }
.cb-recent__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cb-recent__title { font-size: .9rem; line-height: 1.4; color: var(--cb-text); }
.cb-recent a:hover .cb-recent__title { color: var(--cb-gold-bright); }

.cb-newsletter {
	background: linear-gradient(160deg, var(--cb-surface-2), var(--cb-surface));
	border-color: var(--cb-gold-dim);
}
.cb-newsletter__form { display: grid; gap: 10px; margin-bottom: 10px; }
.cb-newsletter__form input {
	background: var(--cb-bg);
	border: 1px solid var(--cb-border);
	color: var(--cb-text);
	padding: .72em 1em;
	border-radius: var(--cb-radius-sm);
	font-family: var(--cb-font);
	width: 100%;
}
.cb-newsletter small { color: var(--cb-text-dim); font-size: .74rem; line-height: 1.5; display: block; }

.cb-widget-rg { border-color: rgba(214, 69, 69, .3); }
.cb-widget-rg .widget-title { color: var(--cb-red); }

.cb-sticky-ad { position: sticky; top: 100px; }

/* =========================================================================
   12. Ad zones
   ====================================================================== */

.cb-ad {
	position: relative;
	margin: 32px 0;
	padding: 26px 16px 16px;
	background: var(--cb-bg-alt);
	border: 1px dashed var(--cb-border);
	border-radius: var(--cb-radius-sm);
	text-align: center;
	overflow: hidden;
}
.cb-ad__label {
	position: absolute;
	top: 7px; left: 12px;
	font-size: .62rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--cb-text-dim);
	font-family: var(--cb-font);
}
.cb-ad img, .cb-ad iframe, .cb-ad ins { margin: 0 auto; max-width: 100%; }
.cb-ad--header { margin: 0; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
.cb-ad--in-article { margin: 38px 0; }
.cb-ad--sidebar { margin: 0; }
.cb-ad--footer { margin: 40px 0 0; border-radius: 0; }

/* =========================================================================
   13. Pagination
   ====================================================================== */

.cb-pagination, .navigation.pagination, .comments-pagination {
	display: flex;
	justify-content: center;
	margin-top: 44px;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px; height: 42px;
	padding: 0 14px;
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius-sm);
	color: var(--cb-text-muted);
	font-size: .92rem;
	font-weight: 500;
	transition: border-color .18s ease, color .18s ease;
}
.page-numbers:hover { border-color: var(--cb-gold-dim); color: var(--cb-gold-bright); }
.page-numbers.current {
	background: linear-gradient(135deg, var(--cb-gold-bright), var(--cb-gold));
	color: #14161c;
	border-color: transparent;
	font-weight: 700;
}
.page-numbers.dots { background: transparent; border-color: transparent; }
.screen-reader-text + .nav-links { width: 100%; }

.page-links { margin: 2em 0; font-size: .9rem; color: var(--cb-text-muted); display: flex; gap: 8px; }

/* =========================================================================
   14. Comments
   ====================================================================== */

.cb-comments { margin-top: 56px; }
.cb-comment-list { list-style: none; margin: 0 0 34px; padding: 0; }
.cb-comment-list ol.children { list-style: none; padding-left: 28px; margin-top: 18px; }
.cb-comment-list .comment-body {
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius);
	padding: 20px 22px;
	margin-bottom: 18px;
}
.comment-author { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 600; color: #fff; font-style: normal; }
.comment-metadata { font-size: .78rem; color: var(--cb-text-dim); margin: 6px 0 12px; }
.comment-metadata a { color: var(--cb-text-dim); }
.reply a {
	font-size: .82rem;
	color: var(--cb-gold-bright);
	font-weight: 600;
}
.comment-notes, .logged-in-as { font-size: .86rem; color: var(--cb-text-dim); }

.comment-respond {
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius);
	padding: 26px;
}
.comment-reply-title { font-size: 1.3rem; margin-bottom: .6em; }
.comment-form label { display: block; font-size: .85rem; color: var(--cb-text-muted); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	background: var(--cb-bg);
	border: 1px solid var(--cb-border);
	color: var(--cb-text);
	padding: .75em 1em;
	border-radius: var(--cb-radius-sm);
	font-family: var(--cb-font);
	font-size: .95rem;
	margin-bottom: 16px;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--cb-gold); }
.comment-form .submit {
	background: linear-gradient(135deg, var(--cb-gold-bright), var(--cb-gold));
	color: #14161c;
	border: 0;
	padding: .8em 1.8em;
	border-radius: 999px;
	font-weight: 600;
	font-family: var(--cb-font);
	cursor: pointer;
}
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; }

/* =========================================================================
   15. Empty states / 404
   ====================================================================== */

.cb-empty {
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius);
	padding: 40px 30px;
	text-align: center;
	color: var(--cb-text-muted);
}
.cb-empty form { max-width: 460px; margin: 22px auto 0; }

.cb-404 { text-align: center; padding: 60px 0 80px; max-width: 760px; margin: 0 auto; }
.cb-404__code {
	display: block;
	font-family: var(--cb-font-display);
	font-size: clamp(5rem, 16vw, 9rem);
	line-height: 1;
	background: linear-gradient(120deg, var(--cb-gold-bright), var(--cb-gold-dim));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 10px;
}
.cb-404 p { color: var(--cb-text-muted); }
.cb-404__search { max-width: 480px; margin: 26px auto 38px; }
.cb-404 .cb-topics__grid { margin-bottom: 38px; text-align: left; }

/* =========================================================================
   16. Footer
   ====================================================================== */

.site-footer {
	background: var(--cb-bg-alt);
	border-top: 1px solid var(--cb-border);
	padding: 56px 0 30px;
	margin-top: 20px;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 34px;
	margin-bottom: 44px;
}
.footer-widgets .widget { background: transparent; border: 0; padding: 0; margin: 0; }

.cb-responsible {
	display: flex;
	gap: 22px;
	align-items: center;
	background: var(--cb-surface);
	border: 1px solid rgba(214, 69, 69, .28);
	border-radius: var(--cb-radius);
	padding: 22px 26px;
	margin-bottom: 34px;
}
.cb-responsible__badges { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.cb-responsible__tag {
	font-size: .64rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--cb-text-dim);
	text-align: center;
	max-width: 90px;
	line-height: 1.4;
}
.cb-responsible__text p { margin: 0 0 .5em; font-size: .88rem; color: var(--cb-text-muted); }
.cb-responsible__text p:last-child { margin-bottom: 0; }

.site-info {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	align-items: center;
	padding-top: 24px;
	border-top: 1px solid var(--cb-border-soft);
}
.copyright { margin: 0; font-size: .86rem; color: var(--cb-text-dim); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-menu a { font-size: .86rem; color: var(--cb-text-muted); }
.footer-menu a:hover { color: var(--cb-gold-bright); }

/* =========================================================================
   17. Age gate & back-to-top
   ====================================================================== */

.cb-agegate {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: rgba(8, 9, 13, .93);
	backdrop-filter: blur(8px);
	display: grid;
	place-items: center;
	padding: 24px;
}
.cb-agegate[hidden] { display: none; }
.cb-agegate__box {
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius);
	padding: 38px 34px;
	max-width: 460px;
	text-align: center;
	box-shadow: var(--cb-shadow);
}
.cb-agegate__badge {
	display: inline-grid;
	place-items: center;
	width: 62px; height: 62px;
	border-radius: 50%;
	border: 3px solid var(--cb-red);
	color: var(--cb-red);
	font-weight: 700;
	font-size: 1.2rem;
	margin-bottom: 18px;
}
.cb-agegate__box p { color: var(--cb-text-muted); font-size: .95rem; }
.cb-agegate__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.cb-to-top {
	position: fixed;
	right: 22px; bottom: 22px;
	z-index: 300;
	width: 46px; height: 46px;
	border-radius: 50%;
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	color: var(--cb-gold);
	font-size: 1.2rem;
	cursor: pointer;
	box-shadow: var(--cb-shadow-sm);
	transition: transform .18s ease, border-color .18s ease;
}
.cb-to-top:hover { transform: translateY(-3px); border-color: var(--cb-gold); }
.cb-to-top[hidden] { display: none; }

/* =========================================================================
   18. WordPress core classes
   ====================================================================== */

.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignwide { width: min(1100px, 96vw); margin-left: 50%; transform: translateX(-50%); max-width: none; }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .83rem; color: var(--cb-text-dim); text-align: center; margin-top: 8px; }
.sticky .cb-row__title::before { content: '★ '; color: var(--cb-gold); }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.gallery-item img { border-radius: var(--cb-radius-sm); width: 100%; }
.wp-block-button__link { border-radius: 999px; }
.wp-block-image img { border-radius: var(--cb-radius-sm); }
.says, .bypostauthor { display: inline; }

/* =========================================================================
   19. Responsive
   ====================================================================== */

@media (max-width: 1080px) {
	.cb-layout,
	.sidebar-left .cb-layout { grid-template-columns: minmax(0, 1fr); gap: 50px; }
	/* Content always comes first once stacked, even in left-sidebar mode. */
	.sidebar-left .cb-main    { order: 1; }
	.sidebar-left .cb-sidebar { order: 2; }
	.cb-sidebar { position: static; }
	.cb-sticky-ad { position: static; }
	.cb-hero__inner { grid-template-columns: 1fr; gap: 40px; }
	.cb-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	body { font-size: 16px; }

	.menu-toggle { display: grid; }

	.main-navigation {
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--cb-bg-alt);
		border-bottom: 1px solid var(--cb-border);
		padding: 10px 22px 18px;
		display: none;
		max-height: 76vh;
		overflow-y: auto;
	}
	.main-navigation.is-open { display: block; }
	.main-navigation ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-navigation a { padding: .78em .4em; font-size: 1rem; border-bottom: 1px solid var(--cb-border-soft); border-radius: 0; }
	.main-navigation ul ul {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		border: 0; box-shadow: none; background: transparent;
		padding: 0 0 0 16px;
	}

	.site-header__inner { gap: 14px; min-height: 66px; }
	.header-actions { gap: 10px; }

	.cb-hero { padding: 46px 0 40px; }

	.cb-row { grid-template-columns: 1fr; gap: 16px; }
	.cb-row__media { max-height: 240px; }

	.cb-grid--3, .cb-grid--2 { grid-template-columns: 1fr; }

	.footer-widgets { grid-template-columns: 1fr; gap: 28px; }

	.cb-postnav { grid-template-columns: 1fr; }
	.cb-postnav__next { text-align: left; }

	.cb-responsible { flex-direction: column; text-align: center; }
	.cb-author { flex-direction: column; text-align: center; align-items: center; }

	.cb-single__footer { flex-direction: column; align-items: flex-start; }

	.site-info { flex-direction: column; text-align: center; justify-content: center; }
	.footer-menu { justify-content: center; }

	.alignwide, .alignfull { width: 100%; margin-left: 0; transform: none; }
}

@media (max-width: 520px) {
	.container { padding: 0 16px; }
	.cb-searchform { flex-direction: column; }
	.cb-searchform__btn { width: 100%; }
	.cb-hero__actions .btn { width: 100%; }
	.cb-topics__grid { grid-template-columns: 1fr 1fr; }
	.cb-share { flex-wrap: wrap; }
	.age-badge { display: none; }
	.widget { padding: 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.site-header, .site-footer, .cb-sidebar, .cb-ad, .cb-to-top, .cb-share, .cb-postnav, .cb-related, .cb-comments { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	h1, h2, h3, h4 { color: #000; }
	.cb-layout { grid-template-columns: 1fr; }
	a { color: #000; text-decoration: underline; }
}
