/*
Theme Name:   Cyber Rafting Blog
Theme URI:    https://www.cyberrafting.com/blog/
Description:  Cyber Rafting branded child theme for the Insights blog.
Author:       Cyber Rafting
Author URI:   https://www.cyberrafting.com/
Template:     bam
Version:      1.0.1
Requires PHP: 7.4
Text Domain:  cyberrafting-blog
*/

/* ---------- Tokens ---------- */
:root {
	--crb-ink: #212121;
	--crb-ink-2: #0f0f0f;
	--crb-ink-soft: #5f6368;
	--crb-paper: #f7f7f7;
	--crb-white: #ffffff;
	--crb-line: rgba(17, 17, 17, .12);
	--crb-brand: #a71930;
	--crb-brand-dark: #85121f;
	--crb-pink: #d80650;
	--crb-teal: #17a2b8;
	--crb-radius: 18px;
	--crb-radius-sm: 10px;
	--crb-shadow: 0 18px 50px rgba(17, 17, 17, .10);
	--crb-shadow-sm: 0 4px 18px rgba(17, 17, 17, .06);
	--crb-font-head: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
	--crb-font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	--crb-shell: min(1180px, calc(100vw - 40px));
	--crb-narrow: min(760px, calc(100vw - 40px));
	--crb-wide: min(980px, calc(100vw - 40px));
	--crb-header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--crb-white);
	color: var(--crb-ink);
	font: 400 17px/1.7 var(--crb-font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.custom-background { background: var(--crb-white); }
body.crb-lock { overflow: hidden; }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--crb-brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--crb-brand-dark); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--crb-font-head);
	color: var(--crb-ink-2);
	line-height: 1.2;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
	font-weight: 600;
}
p { margin: 0 0 1.1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(167, 25, 48, .45); outline-offset: 2px; border-radius: 6px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.crb-skip:focus {
	clip: auto; width: auto; height: auto;
	top: 12px; left: 12px; z-index: 1000;
	padding: 10px 16px;
	background: var(--crb-white);
	border-radius: 8px;
	box-shadow: var(--crb-shadow);
}

.crb-shell { width: var(--crb-shell); margin-inline: auto; }
.crb-shell-narrow { width: var(--crb-narrow); }
.crb-shell-wide { width: var(--crb-wide); }
.crb-main { min-height: 50vh; }

/* ---------- Buttons & small parts ---------- */
.crb-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 20px;
	border-radius: 999px;
	font: 500 15px/1.2 var(--crb-font-head);
	border: 1px solid transparent;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
	white-space: nowrap;
}
.crb-btn:hover { transform: translateY(-1px); }
.crb-btn-primary { background: var(--crb-brand); color: var(--crb-white); }
.crb-btn-primary:hover { background: var(--crb-brand-dark); color: var(--crb-white); }
.crb-btn-light { background: var(--crb-white); color: var(--crb-ink-2); }
.crb-btn-light:hover { background: var(--crb-paper); color: var(--crb-brand); }
.crb-btn-ghost { border-color: rgba(255, 255, 255, .4); color: var(--crb-white); }
.crb-btn-ghost:hover { border-color: var(--crb-white); color: var(--crb-white); }

.crb-icon-btn {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px;
	border: 1px solid var(--crb-line);
	border-radius: 999px;
	background: var(--crb-white);
	color: var(--crb-ink);
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease;
}
.crb-icon-btn:hover, .crb-icon-btn[aria-expanded="true"] { border-color: var(--crb-brand); color: var(--crb-brand); }

.crb-eyebrow {
	margin: 0 0 12px;
	font: 600 13px/1.2 var(--crb-font-head);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--crb-brand);
}
.crb-eyebrow-light { color: #ff8fa3; }

.crb-pill {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 999px;
	background: rgba(167, 25, 48, .08);
	color: var(--crb-brand);
	font: 500 12.5px/1.4 var(--crb-font-head);
	letter-spacing: .02em;
}
.crb-pill:hover { background: var(--crb-brand); color: var(--crb-white); }

.crb-meta { margin: 0; color: var(--crb-ink-soft); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crb-dot { opacity: .6; }

.crb-text-link { display: inline-flex; align-items: center; gap: 6px; font: 500 15px/1.2 var(--crb-font-head); }

/* ---------- Header ---------- */
.crb-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.admin-bar .crb-header { top: 32px; }
.crb-header.crb-scrolled { border-bottom-color: var(--crb-line); box-shadow: 0 6px 24px rgba(17, 17, 17, .05); }
.crb-header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--crb-header-h); }

.crb-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--crb-ink-2); flex-shrink: 0; }
.crb-brand:hover { color: var(--crb-ink-2); }
.crb-brand img { width: 44px; height: 44px; border-radius: 50%; }
.crb-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.crb-brand-name { font: 700 19px/1.1 var(--crb-font-head); letter-spacing: -.01em; }
.crb-brand-sub { font: 500 12px/1.3 var(--crb-font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--crb-brand); margin-top: 3px; }

.crb-nav { flex: 1; display: flex; align-items: center; justify-content: center; }
.crb-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crb-menu li { position: relative; }
.crb-menu a {
	display: block;
	padding: 8px 13px;
	border-radius: 999px;
	color: var(--crb-ink);
	font: 500 15px/1.3 var(--crb-font-head);
}
.crb-menu a:hover,
.crb-menu .current-menu-item > a,
.crb-menu .current-cat > a,
.crb-menu .current-post-ancestor > a,
.crb-menu .current-menu-parent > a { background: rgba(167, 25, 48, .08); color: var(--crb-brand); }
.crb-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: 100%; left: 0; min-width: 220px;
	background: var(--crb-white);
	border: 1px solid var(--crb-line);
	border-radius: 14px;
	box-shadow: var(--crb-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.crb-menu li:hover > .sub-menu, .crb-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.crb-menu .sub-menu a { border-radius: 8px; }
.crb-nav-mainsite { display: none; }

.crb-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.crb-menu-toggle { display: none; }
.crb-when-open { display: none; }
.crb-nav-open .crb-when-open { display: inline; }
.crb-nav-open .crb-when-closed { display: none; }

.crb-search-panel { border-top: 1px solid var(--crb-line); background: var(--crb-white); padding: 18px 0; }
.crb-search-panel .crb-search-form { max-width: 720px; margin: 0 auto; }

/* ---------- Search form ---------- */
.crb-search-form {
	display: flex; align-items: center;
	background: var(--crb-white);
	border: 1px solid var(--crb-line);
	border-radius: 999px;
	padding: 6px 6px 6px 18px;
	box-shadow: var(--crb-shadow-sm);
}
.crb-search-form:focus-within { border-color: var(--crb-brand); }
.crb-search-icon { display: inline-flex; color: var(--crb-ink-soft); }
.crb-search-form input[type="search"] {
	flex: 1; min-width: 0;
	border: 0; outline: 0; background: transparent;
	padding: 10px 12px;
	font-size: 16px;
	color: var(--crb-ink);
	-webkit-appearance: none;
}
.crb-search-form button {
	border: 0; cursor: pointer;
	background: var(--crb-brand); color: var(--crb-white);
	padding: 11px 22px;
	border-radius: 999px;
	font: 500 15px/1.2 var(--crb-font-head);
	transition: background .2s ease;
}
.crb-search-form button:hover { background: var(--crb-brand-dark); }

/* ---------- Hero ---------- */
.crb-hero {
	position: relative;
	overflow: hidden;
	background: var(--crb-ink-2);
	color: rgba(255, 255, 255, .82);
	padding: 84px 0 76px;
	isolation: isolate;
}
.crb-hero::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(600px 320px at 85% 10%, rgba(167, 25, 48, .55), transparent 70%),
		radial-gradient(520px 300px at 10% 110%, rgba(23, 162, 184, .28), transparent 70%);
}
.crb-hero::after {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(180deg, #000, transparent 85%);
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.crb-hero h1 {
	color: var(--crb-white);
	font-size: clamp(34px, 5vw, 56px);
	font-weight: 700;
	max-width: 820px;
	letter-spacing: -.02em;
	margin-bottom: 32px;
}
.crb-hero-lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 640px; margin-bottom: 30px; }
.crb-hero-search { max-width: 620px; }
.crb-hero-search .crb-search-form { border-color: transparent; }

.crb-chips { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crb-chips a {
	display: inline-block;
	padding: 7px 15px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .22);
	color: rgba(255, 255, 255, .9);
	font: 500 14px/1.3 var(--crb-font-head);
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.crb-chips a:hover { background: var(--crb-white); border-color: var(--crb-white); color: var(--crb-ink-2); }
.crb-chips-dark { justify-content: center; }
.crb-chips-dark a { border-color: var(--crb-line); color: var(--crb-ink); }
.crb-chips-dark a:hover { background: var(--crb-brand); border-color: var(--crb-brand); color: var(--crb-white); }

/* ---------- Page heading (archives, search) ---------- */
.crb-page-head { background: var(--crb-paper); border-bottom: 1px solid var(--crb-line); padding: 56px 0 46px; }
.crb-page-head h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.crb-page-lead { color: var(--crb-ink-soft); max-width: 680px; margin: 0; }
.crb-page-lead p { margin: 0; }
.crb-page-search { max-width: 560px; margin-top: 22px; }

/* ---------- Listing ---------- */
.crb-listing { padding: 56px 0 80px; }
.crb-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.crb-section-head h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 0; }

.crb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

.crb-card {
	display: flex; flex-direction: column;
	background: var(--crb-white);
	border: 1px solid var(--crb-line);
	border-radius: var(--crb-radius);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.crb-card:hover { transform: translateY(-4px); box-shadow: var(--crb-shadow); border-color: transparent; }
.crb-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--crb-paper); }
.crb-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.crb-card:hover .crb-card-media img { transform: scale(1.04); }
.crb-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 22px 24px; flex: 1; }
.crb-card-title { font-size: 20px; line-height: 1.3; margin: 0; }
.crb-card-title a { color: var(--crb-ink-2); }
.crb-card-title a:hover { color: var(--crb-brand); }
.crb-card-excerpt { color: var(--crb-ink-soft); font-size: 15.5px; line-height: 1.6; margin: 0; }
.crb-card .crb-meta { margin-top: auto; padding-top: 4px; font-size: 13.5px; }

.crb-featured-wrap { margin-bottom: 56px; }
.crb-card-featured { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.crb-card-featured .crb-card-media { aspect-ratio: auto; min-height: 340px; }
.crb-card-featured .crb-card-body { justify-content: center; padding: 40px 44px; gap: 16px; }
.crb-card-featured .crb-card-title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
.crb-card-featured .crb-card-excerpt { font-size: 17px; }
.crb-card-featured .crb-meta { margin-top: 6px; }

/* Placeholder artwork for posts without a featured image */
.crb-placeholder {
	position: relative;
	width: 100%; height: 100%;
	min-height: 100%;
	display: flex; align-items: flex-end;
	padding: 22px;
	overflow: hidden;
	background: linear-gradient(135deg, #2b0a10, var(--crb-brand));
}
.crb-placeholder.crb-tone-1 { background: linear-gradient(135deg, #0f0f0f, #3a3a3a); }
.crb-placeholder.crb-tone-2 { background: linear-gradient(135deg, #0b3d46, var(--crb-teal)); }
.crb-placeholder.crb-tone-3 { background: linear-gradient(135deg, #4a0420, var(--crb-pink)); }
.crb-placeholder::before {
	content: "";
	position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
	background-size: 28px 28px;
}
.crb-placeholder-mark {
	position: absolute; right: -40px; top: -40px;
	width: 180px; height: 180px;
	border-radius: 50%;
	border: 26px solid rgba(255, 255, 255, .1);
}
.crb-placeholder-label {
	position: relative;
	color: var(--crb-white);
	font: 600 22px/1.15 var(--crb-font-head);
	letter-spacing: -.01em;
}

/* ---------- Pagination ---------- */
.crb-pagination { margin-top: 56px; }
.crb-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.crb-pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 16px;
	display: inline-grid; place-items: center;
	border: 1px solid var(--crb-line);
	border-radius: 999px;
	color: var(--crb-ink);
	font: 500 15px/1 var(--crb-font-head);
}
.crb-pagination a.page-numbers:hover { border-color: var(--crb-brand); color: var(--crb-brand); }
.crb-pagination .page-numbers.current { background: var(--crb-brand); border-color: var(--crb-brand); color: var(--crb-white); }
.crb-pagination .page-numbers.dots { border-color: transparent; }

.crb-empty { max-width: 620px; margin: 0 auto; text-align: center; padding: 30px 0; }
.crb-empty h1, .crb-empty h2 { font-size: clamp(28px, 3.4vw, 38px); }
.crb-empty p { color: var(--crb-ink-soft); }
.crb-empty .crb-search-form { margin: 26px 0 10px; text-align: left; }

/* ---------- Article ---------- */
.crb-article-head { padding: 56px 0 32px; }
.crb-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font: 500 14px/1.4 var(--crb-font-head); color: var(--crb-ink-soft); }
.crb-breadcrumb a { color: var(--crb-brand); }
.crb-article-title { font-size: clamp(32px, 4.4vw, 50px); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 18px; }
.crb-article-meta { font-size: 15px; }
.crb-article-meta span:first-child { color: var(--crb-ink); font-weight: 500; }
.crb-article-figure { margin: 0 auto 44px; }
.crb-article-figure img { display: block; width: 100%; border-radius: var(--crb-radius); }

/* Long-form typography */
.crb-prose { font-size: 18px; line-height: 1.8; color: #2b2b2b; }
.crb-prose > * { margin-top: 0; margin-bottom: 1.25em; }
.crb-prose h2 { font-size: clamp(25px, 2.6vw, 31px); margin: 1.9em 0 .6em; }
.crb-prose h3 { font-size: clamp(21px, 2.1vw, 24px); margin: 1.7em 0 .5em; }
.crb-prose h4 { font-size: 19px; margin: 1.5em 0 .5em; }
.crb-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.crb-prose ul, .crb-prose ol { padding-left: 1.4em; }
.crb-prose li { margin-bottom: .45em; }
.crb-prose li::marker { color: var(--crb-brand); }
.crb-prose blockquote {
	margin: 1.8em 0;
	padding: 6px 0 6px 24px;
	border-left: 4px solid var(--crb-brand);
	font-size: 20px;
	color: var(--crb-ink-2);
}
.crb-prose blockquote p:last-child { margin-bottom: 0; }
.crb-prose img { border-radius: var(--crb-radius-sm); }
.crb-prose figure { margin-left: 0; margin-right: 0; }
.crb-prose figcaption, .crb-prose .wp-element-caption { font-size: 14px; color: var(--crb-ink-soft); text-align: center; margin-top: 8px; }
.crb-prose hr { border: 0; border-top: 1px solid var(--crb-line); margin: 2.4em 0; }
.crb-prose code { background: var(--crb-paper); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.crb-prose pre { background: var(--crb-ink-2); color: #f2f2f2; padding: 20px 22px; border-radius: 12px; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.crb-prose pre code { background: none; padding: 0; color: inherit; }
.crb-prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.crb-prose .wp-block-table { overflow-x: auto; border: 1px solid var(--crb-line); border-radius: 12px; }
.crb-prose .wp-block-table table { margin: 0; }
.crb-prose th, .crb-prose td { padding: 12px 14px; border-bottom: 1px solid var(--crb-line); text-align: left; vertical-align: top; }
.crb-prose .wp-block-table td, .crb-prose .wp-block-table th { border-left: 0; border-right: 0; border-top: 0; }
.crb-prose thead th { background: var(--crb-paper); font-family: var(--crb-font-head); font-weight: 600; color: var(--crb-ink-2); border-bottom-width: 1px; }
.crb-prose tbody tr:last-child td { border-bottom: 0; }
.crb-prose .alignwide { width: min(980px, calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.crb-prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.crb-prose .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.crb-prose .alignright { float: right; margin: .3em 0 1em 1.5em; }
.crb-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.crb-prose .wp-block-button__link { background: var(--crb-brand); border-radius: 999px; text-decoration: none; }

.crb-tags { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crb-tags a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--crb-paper); color: var(--crb-ink-soft); font-size: 14px; }
.crb-tags a:hover { color: var(--crb-brand); }

.crb-author-box {
	display: flex; gap: 18px; align-items: flex-start;
	margin: 44px 0 0;
	padding: 24px;
	border-radius: var(--crb-radius);
	background: var(--crb-paper);
}
.crb-author-box img { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; background: var(--crb-white); }
.crb-author-box p { margin: 0; color: var(--crb-ink-soft); font-size: 15.5px; line-height: 1.6; }
.crb-author-box .crb-author-name { color: var(--crb-ink-2); font: 600 17px/1.4 var(--crb-font-head); margin-bottom: 4px; }

.crb-post-nav { margin: 44px 0 64px; }
.crb-post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.crb-post-nav .nav-previous, .crb-post-nav .nav-next { min-width: 0; }
.crb-post-nav .nav-next { grid-column: 2; text-align: right; }
.crb-post-nav a {
	display: flex; flex-direction: column; gap: 6px;
	height: 100%;
	padding: 18px 20px;
	border: 1px solid var(--crb-line);
	border-radius: 14px;
	color: var(--crb-ink-2);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.crb-post-nav a:hover { border-color: var(--crb-brand); box-shadow: var(--crb-shadow-sm); }
.crb-nav-label { font: 500 13px/1.3 var(--crb-font-head); color: var(--crb-brand); text-transform: uppercase; letter-spacing: .08em; }
.crb-nav-title { font: 600 16px/1.4 var(--crb-font-head); }

.crb-related { background: var(--crb-paper); padding: 64px 0 72px; }

/* ---------- Comments ---------- */
.crb-comments { padding: 56px 0 72px; }
.crb-comments .comments-title, .crb-comments .comment-reply-title { font-size: 24px; }
.crb-comments ol.comment-list { list-style: none; padding: 0; margin: 0 0 36px; }
.crb-comments ol.children { list-style: none; padding-left: 28px; }
.crb-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--crb-line); }
.crb-comments .comment-meta { font-size: 14px; color: var(--crb-ink-soft); }
.crb-comments .avatar { border-radius: 50%; vertical-align: middle; margin-right: 10px; }
.crb-comments label { display: block; font: 500 14px/1.4 var(--crb-font-head); margin-bottom: 6px; }
.crb-comments input[type="text"], .crb-comments input[type="email"], .crb-comments input[type="url"], .crb-comments textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--crb-line);
	border-radius: 10px;
	background: var(--crb-white);
}
.crb-comments input:focus, .crb-comments textarea:focus { border-color: var(--crb-brand); outline: 0; }
.crb-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.crb-comments .comment-form-cookies-consent label { font-weight: 400; }
.crb-comments input[type="submit"] {
	border: 0; cursor: pointer;
	background: var(--crb-brand); color: var(--crb-white);
	padding: 12px 24px; border-radius: 999px;
	font: 500 15px/1.2 var(--crb-font-head);
}
.crb-comments input[type="submit"]:hover { background: var(--crb-brand-dark); }

/* ---------- CTA band & footer ---------- */
.crb-cta-band { background: var(--crb-brand); color: rgba(255, 255, 255, .86); padding: 56px 0; position: relative; overflow: hidden; }
.crb-cta-band::after {
	content: ""; position: absolute; right: -120px; top: -160px;
	width: 420px; height: 420px; border-radius: 50%;
	border: 70px solid rgba(255, 255, 255, .07);
}
.crb-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; z-index: 1; }
.crb-cta-band h2 { color: var(--crb-white); font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.crb-cta-band p { margin: 0; max-width: 560px; }
.crb-cta-band .crb-eyebrow-light { color: rgba(255, 255, 255, .7); margin-bottom: 10px; }
.crb-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

.crb-footer { background: var(--crb-ink-2); color: rgba(255, 255, 255, .66); padding: 64px 0 0; font-size: 15px; }
.crb-footer a { color: rgba(255, 255, 255, .78); }
.crb-footer a:hover { color: var(--crb-white); }
.crb-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 48px; }
.crb-brand-footer { color: var(--crb-white); margin-bottom: 18px; }
.crb-brand-footer:hover { color: var(--crb-white); }
.crb-brand-footer img { background: var(--crb-white); }
.crb-brand-footer .crb-brand-sub { color: rgba(255, 255, 255, .55); letter-spacing: .08em; }
.crb-footer-intro p { max-width: 340px; }
.crb-footer-contact { line-height: 1.9; }
.crb-footer-label { color: var(--crb-white); font: 600 14px/1.3 var(--crb-font-head); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.crb-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.crb-footer-bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	padding: 22px 0 28px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 14px;
}
.crb-footer-social { display: flex; gap: 20px; }

/* ---------- Leftover widget markup from the parent, just in case ---------- */
.widget { margin-bottom: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.crb-header-cta { display: none; }
	.crb-menu a { padding: 8px 10px; font-size: 14.5px; }
}

@media (max-width: 960px) {
	.crb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
	.crb-card-featured { grid-template-columns: 1fr; }
	.crb-card-featured .crb-card-media { min-height: 0; aspect-ratio: 16 / 9; }
	.crb-card-featured .crb-card-body { padding: 28px; }
	.crb-footer-grid { grid-template-columns: 1fr 1fr; }
	.crb-cta-inner { flex-direction: column; align-items: flex-start; }

	.crb-menu-toggle { display: inline-grid; }
	.crb-nav {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		top: var(--crb-header-h);
		background: var(--crb-white);
		flex-direction: column; align-items: stretch; justify-content: flex-start;
		padding: 18px 20px 32px;
		overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
		border-top: 1px solid var(--crb-line);
	}
	.admin-bar .crb-nav { top: calc(var(--crb-header-h) + 46px); }
	.crb-nav-open .crb-nav { opacity: 1; visibility: visible; transform: none; }
	.crb-menu { flex-direction: column; gap: 2px; }
	.crb-menu a { padding: 13px 14px; font-size: 17px; border-radius: 10px; }
	.crb-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; }
	.crb-nav-mainsite {
		display: block;
		margin-top: 18px; padding: 13px 14px;
		border-top: 1px solid var(--crb-line);
		font: 500 16px/1.3 var(--crb-font-head);
	}
}

@media (max-width: 782px) {
	.admin-bar .crb-header { top: 46px; }
}

@media (max-width: 600px) {
	:root { --crb-header-h: 66px; }
	body { font-size: 16px; }
	.admin-bar .crb-header { top: 0; }
	.crb-header-inner { gap: 12px; }
	.crb-brand img { width: 38px; height: 38px; }
	.crb-brand-name { font-size: 17px; }
	.crb-hero { padding: 56px 0 52px; }
	.crb-grid { grid-template-columns: 1fr; }
	.crb-listing { padding: 40px 0 60px; }
	.crb-featured-wrap { margin-bottom: 40px; }
	.crb-card-featured .crb-card-body { padding: 22px; }
	.crb-search-form { padding-left: 14px; }
	.crb-search-form button { padding: 11px 16px; }
	.crb-prose { font-size: 17px; }
	.crb-article-head { padding: 36px 0 24px; }
	.crb-article-figure { margin-bottom: 32px; }
	.crb-post-nav .nav-links { grid-template-columns: 1fr; }
	.crb-post-nav .nav-next { grid-column: auto; text-align: left; }
	.crb-author-box { flex-direction: column; }
	.crb-footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.crb-footer-bottom { flex-direction: column; }
}

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