/*
Theme Name: ReachBlast WP
Theme URI: https://two02.io/wp/reachblast
Author: Two02.io
Author URI: https://two02.io
Description: A clean, modern WordPress blog theme built with the Public Sans and Recursive type system. Features a customizable hero, beautiful post grid, dark footer, and full color & logo control via the Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reachblast-wp
Tags: blog, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, one-column, three-columns, two-columns, right-sidebar, block-patterns, editor-style, rtl-language-support, theme-options, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
	--rb-primary:       #e8186d;
	--rb-primary-hover: #c0145a;
	--rb-dark:          #1a1714;
	--rb-cream:         #faf5ef;
	--rb-cream-alt:     #f5ede3;
	--rb-white:         #ffffff;
	--rb-text:          #1a1714;
	--rb-text-mid:      #6b5e54;
	--rb-text-faint:    #9b8e86;
	--rb-border:        #1a1714;
	--rb-border-light:  #e8ddd4;
	--rb-peach:         #fde8d8;
	--rb-lavender:      #e8e4f4;
	--rb-mint:          #d8f0e8;
	--rb-yellow:        #fef9c3;
	--rb-sky:           #dbeafe;
	--rb-dark-bg:       #1a1714;
	--rb-dark-border:   #2e2622;
	--rb-dark-text:     #a09488;
	--rb-font-body:     'Public Sans', sans-serif;
	--rb-font-heading:  'Recursive', sans-serif;
	--rb-max-w:         1200px;
	--rb-b:             1.5px solid var(--rb-border);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	font-family: var(--rb-font-body);
	background: var(--rb-cream);
	color: var(--rb-text);
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a { color: var(--rb-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--rb-font-body); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--rb-dark); border-radius: 3px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--rb-font-heading);
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: var(--rb-text);
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.rb-container {
	max-width: var(--rb-max-w);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	width: 100%;
}

.rb-section { padding: 64px 0; }

.rb-label {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--rb-primary);
	background: rgba(232, 24, 109, 0.08);
	border: 1.5px solid rgba(232, 24, 109, 0.22);
	border-radius: 9999px;
	padding: 4px 13px;
}

.rb-section-head { margin-bottom: 40px; }

.rb-section-head h2 {
	font-size: clamp(24px, 3.5vw, 36px);
	font-weight: 900;
	letter-spacing: -0.03em;
	margin-top: 12px;
}

/* ============================================================
   RAINBOW BAR
   ============================================================ */
.rb-rainbow {
	height: 5px;
	width: 100%;
	display: block;
	background: linear-gradient(
		90deg,
		#e8186d 0%,
		#ff6b35 16%,
		#ffd93d 32%,
		#6bcb77 48%,
		#4d96ff 64%,
		#9b5de5 80%,
		#e8186d 100%
	);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.rb-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border-radius: 9999px;
	font-family: var(--rb-font-body);
	font-weight: 700;
	font-size: 14px;
	padding: 10px 22px;
	border: 1.5px solid transparent;
	transition: all 0.15s ease;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	line-height: 1;
}
.rb-btn:hover { text-decoration: none; }

.rb-btn-dark {
	background: var(--rb-dark);
	color: var(--rb-white);
	border-color: var(--rb-dark);
}
.rb-btn-dark:hover { background: var(--rb-white); color: var(--rb-dark); }

.rb-btn-primary {
	background: var(--rb-primary);
	color: var(--rb-white);
	border-color: var(--rb-primary);
}
.rb-btn-primary:hover { background: var(--rb-primary-hover); border-color: var(--rb-primary-hover); color: var(--rb-white); }

.rb-btn-ghost {
	background: transparent;
	color: var(--rb-text-mid);
	border-color: var(--rb-border-light);
}
.rb-btn-ghost:hover { border-color: var(--rb-dark); color: var(--rb-dark); }

/* ============================================================
   SITE HEADER / NAVBAR
   ============================================================ */
.rb-site-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	min-height: 62px;
	background: var(--rb-cream);
	border-bottom: var(--rb-b);
	z-index: 200;
	display: flex;
	align-items: center;
	transition: background 0.2s, backdrop-filter 0.2s;
}

.rb-site-header.scrolled {
	background: rgba(250, 245, 239, 0.95);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.rb-header-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
}

/* Logo */
.rb-logo {
	display: flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
	flex-shrink: 0;
	color: var(--rb-text);
}
.rb-logo:hover { text-decoration: none; color: var(--rb-text); }

.rb-logo-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--rb-primary);
	border: var(--rb-b);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.rb-logo-icon svg { width: 15px; height: 15px; stroke: #fff; fill: none; }

.rb-logo-text {
	font-family: var(--rb-font-heading);
	font-size: 17px;
	font-weight: 900;
	letter-spacing: -0.03em;
	color: var(--rb-text);
	line-height: 1;
}
.rb-logo-text em {
	font-style: normal;
	color: var(--rb-primary);
}

.rb-logo img {
	height: 32px;
	width: auto;
	border-radius: 6px;
}

/* Primary nav */
.rb-nav-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--rb-text-mid);
	padding: 5px;
	transition: color 0.15s ease;
}
.rb-nav-arrow:hover {
	color: var(--rb-dark);
}
.rb-primary-nav {
	display: flex;
	align-items: center;
	flex: 1;
	margin-left: 10px;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.rb-primary-nav::-webkit-scrollbar {
	display: none;
}

/* WordPress outputs <ul><li><a> — make it flex */
.rb-primary-nav ul,
.rb-primary-nav > ul {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: nowrap;
}

.rb-primary-nav ul li {
	list-style: none;
	position: relative;
}

/* Sub-menus hidden */
.rb-primary-nav ul ul {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	background: var(--rb-white);
	border: var(--rb-b);
	border-radius: 10px;
	min-width: 180px;
	flex-direction: column;
	gap: 2px;
	padding: 6px;
	z-index: 300;
	box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.rb-primary-nav ul li:hover > ul,
.rb-primary-nav ul li:focus-within > ul {
	display: flex;
}
.rb-primary-nav ul ul li a {
	border-radius: 7px;
}

.rb-primary-nav a,
.rb-primary-nav .current-menu-item > a,
.rb-primary-nav li > a {
	font-size: 13px;
	font-weight: 600;
	color: var(--rb-text-mid);
	padding: 7px 14px;
	border-radius: 9999px;
	border: 1.5px solid transparent;
	transition: all 0.15s ease;
	text-decoration: none;
	display: block;
	white-space: nowrap;
}

.rb-primary-nav a:hover,
.rb-primary-nav .current-menu-item > a,
.rb-primary-nav .current_page_item > a,
.rb-primary-nav .current-menu-ancestor > a {
	background: var(--rb-white);
	border-color: var(--rb-border);
	color: var(--rb-text);
	text-decoration: none;
}

/* Search toggle */
.rb-search-toggle {
	background: none;
	border: 1.5px solid var(--rb-border-light);
	border-radius: 9999px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rb-text-mid);
	transition: all 0.15s ease;
	margin-left: auto;
}
.rb-search-toggle:hover { border-color: var(--rb-dark); color: var(--rb-dark); }
.rb-search-toggle svg { width: 15px; height: 15px; }

/* Mobile toggle */
.rb-menu-toggle {
	display: none;
	background: none;
	border: var(--rb-b);
	border-radius: 8px;
	width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	color: var(--rb-text);
	flex-shrink: 0;
}
.rb-menu-toggle svg { width: 18px; height: 18px; }

/* Mobile drawer */
.rb-mobile-nav {
	position: fixed;
	top: 62px;
	left: 0;
	right: 0;
	background: var(--rb-cream);
	border-bottom: var(--rb-b);
	padding: 14px 24px 18px;
	z-index: 199;
	flex-direction: column;
	gap: 0;
	max-height: calc(100vh - 62px);
	overflow-y: auto;
}

.rb-mobile-nav.is-open { display: flex; }

/* WP wraps in ul > li — flatten it */
.rb-mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.rb-mobile-nav ul li { list-style: none; }

.rb-mobile-nav ul ul {
	padding-left: 14px;
	border-left: 2px solid var(--rb-border-light);
	margin: 2px 0 2px 12px;
}

.rb-mobile-nav li a,
.rb-mobile-nav a {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--rb-text);
	padding: 9px 12px;
	border-radius: 9px;
	border: 1.5px solid transparent;
	text-decoration: none;
	transition: all 0.15s ease;
}
.rb-mobile-nav li a:hover,
.rb-mobile-nav a:hover { background: var(--rb-white); border-color: var(--rb-border-light); text-decoration: none; }

/* Search bar (hidden by default) */
.rb-search-bar {
	display: none;
	position: fixed;
	top: 62px;
	left: 0;
	right: 0;
	background: var(--rb-white);
	border-bottom: var(--rb-b);
	padding: 14px 24px;
	z-index: 198;
}
.rb-search-bar.is-open { display: flex; align-items: center; gap: 10px; }
.rb-search-bar form { display: flex; gap: 8px; width: 100%; max-width: 600px; margin: 0 auto; }
.rb-search-bar input[type="search"] {
	flex: 1;
	padding: 10px 16px;
	border: var(--rb-b);
	border-radius: 9999px;
	font-family: var(--rb-font-body);
	font-size: 14px;
	background: var(--rb-cream);
	color: var(--rb-text);
	outline: none;
}
.rb-search-bar input[type="search"]::placeholder { color: var(--rb-text-faint); }
.rb-search-bar button[type="submit"] {
	padding: 10px 20px;
	background: var(--rb-dark);
	color: #fff;
	border: none;
	border-radius: 9999px;
	font-family: var(--rb-font-body);
	font-weight: 700;
	font-size: 13px;
}
.rb-search-bar .rb-search-close {
	background: none;
	border: none;
	color: var(--rb-text-faint);
	padding: 6px;
	border-radius: 6px;
}
.rb-search-close svg { width: 18px; height: 18px; }

/* ============================================================
   HERO (CUSTOMIZABLE, SHOWN ON STATIC FRONT PAGE)
   ============================================================ */
.rb-hero {
	background: var(--rb-dark-bg);
	padding: 100px 0 56px;
	position: relative;
}

.rb-hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 20px;
	max-width: 720px;
	margin: 0 auto;
}

.rb-hero-label { color: #a09488; background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); }

.rb-hero h1 {
	font-family: var(--rb-font-heading);
	font-size: clamp(32px, 5vw, 60px);
	font-weight: 900;
	letter-spacing: -0.035em;
	color: var(--rb-white);
	line-height: 1.1;
}

.rb-hero h1 em {
	font-style: normal;
	color: var(--rb-primary);
}

.rb-hero p {
	font-size: 16px;
	color: var(--rb-dark-text);
	line-height: 1.75;
	max-width: 560px;
	margin: 0 auto;
}

.rb-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   MAIN LAYOUT (CONTENT + SIDEBAR)
   ============================================================ */
.rb-main { padding-top: 0; }

.rb-page-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 40px;
	padding: 40px 0 56px;
	align-items: start;
	width: 100%;
}

.rb-page-wrap.no-sidebar {
	grid-template-columns: minmax(0, 1fr);
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}

.rb-content { min-width: 0; width: 100%; }

/* ============================================================
   ARCHIVE HEADER (CATEGORY / TAG / AUTHOR / SEARCH)
   ============================================================ */
.rb-archive-header {
	margin-bottom: 36px;
	padding-bottom: 28px;
	border-bottom: var(--rb-b);
}

.rb-archive-header h1 {
	font-size: clamp(24px, 3.5vw, 36px);
	font-weight: 900;
	letter-spacing: -0.03em;
	margin-top: 10px;
}

.rb-archive-header p {
	font-size: 15px;
	color: var(--rb-text-mid);
	margin-top: 8px;
	line-height: 1.6;
}

/* ============================================================
   POST GRID (3 COLUMNS)
   ============================================================ */
.rb-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* ============================================================
   POST CARD
   ============================================================ */
.rb-card {
	background: var(--rb-white);
	border: var(--rb-b);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: background 0.15s ease, transform 0.15s ease;
}

.rb-card:hover { background: var(--rb-cream); transform: translateY(-2px); }

.rb-card-thumb { display: block; overflow: hidden; }
.rb-card-thumb img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s ease; }
.rb-card:hover .rb-card-thumb img { transform: scale(1.03); }

.rb-card-thumb-placeholder {
	width: 100%;
	height: 200px;
	background: var(--rb-cream-alt);
	border-bottom: var(--rb-b);
	display: flex;
	align-items: center;
	justify-content: center;
}
.rb-card-thumb-placeholder svg { width: 36px; height: 36px; color: var(--rb-border-light); }

.rb-card-body {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rb-card-cat {
	display: inline-block;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--rb-primary);
	text-decoration: none;
}
.rb-card-cat:hover { text-decoration: underline; }

.rb-card-title {
	font-family: var(--rb-font-heading);
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.rb-card-title a { color: var(--rb-text); text-decoration: none; }
.rb-card-title a:hover { color: var(--rb-primary); text-decoration: none; }

.rb-card-excerpt {
	font-size: 13px;
	color: var(--rb-text-mid);
	line-height: 1.65;
	flex: 1;
}

.rb-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 600;
	color: var(--rb-text-faint);
	flex-wrap: wrap;
}

.rb-card-meta .sep { color: var(--rb-border-light); }

/* Featured post card (spans full width) */
.rb-card-featured {
	grid-column: 1 / -1;
	flex-direction: row;
}

.rb-card-featured .rb-card-thumb { flex: 1; }
.rb-card-featured .rb-card-thumb img { height: 100%; min-height: 260px; }
.rb-card-featured .rb-card-thumb-placeholder { height: 260px; }
.rb-card-featured .rb-card-body { flex: 1; padding: 28px 28px; }
.rb-card-featured .rb-card-title { font-size: clamp(20px, 2.5vw, 26px); }

/* ============================================================
   PAGINATION
   ============================================================ */
.rb-pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
}

.rb-pagination .nav-links {
	display: flex;
	align-items: center;
	gap: 6px;
}

.rb-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 9999px;
	border: var(--rb-b);
	font-size: 13px;
	font-weight: 700;
	color: var(--rb-text-mid);
	text-decoration: none;
	transition: all 0.15s ease;
	background: var(--rb-white);
}

.rb-pagination .page-numbers.current,
.rb-pagination .page-numbers:hover {
	background: var(--rb-dark);
	color: var(--rb-white);
	border-color: var(--rb-dark);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.rb-single-wrap { padding: 48px 0; }

.rb-single-header { margin-bottom: 36px; }

.rb-single-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 12px;
	font-weight: 600;
	color: var(--rb-text-faint);
	margin-bottom: 16px;
}

.rb-single-meta a { color: var(--rb-primary); text-decoration: none; }
.rb-single-meta a:hover { text-decoration: underline; }
.rb-single-meta .sep { color: var(--rb-border-light); }

.rb-single-title {
	font-family: var(--rb-font-heading);
	font-size: clamp(28px, 4vw, 46px);
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1.1;
	color: var(--rb-text);
	margin-bottom: 20px;
}

.rb-single-feat-img {
	border-radius: 12px;
	border: var(--rb-b);
	overflow: hidden;
	margin-bottom: 36px;
}
.rb-single-feat-img img { width: 100%; height: auto; }

/* Post content typography */
.rb-entry-content { font-size: 16px; color: var(--rb-text-mid); line-height: 1.8; }
.rb-entry-content > * + * { margin-top: 1.4em; }
.rb-entry-content h2 { font-family: var(--rb-font-heading); font-size: 26px; font-weight: 900; color: var(--rb-text); letter-spacing: -0.025em; }
.rb-entry-content h3 { font-family: var(--rb-font-heading); font-size: 21px; font-weight: 800; color: var(--rb-text); }
.rb-entry-content h4 { font-family: var(--rb-font-heading); font-size: 17px; font-weight: 800; color: var(--rb-text); }
.rb-entry-content a { color: var(--rb-primary); text-decoration: underline; }
.rb-entry-content a:hover { color: var(--rb-primary-hover); }
.rb-entry-content ul { list-style: disc; padding-left: 1.5em; }
.rb-entry-content ol { list-style: decimal; padding-left: 1.5em; }
.rb-entry-content li + li { margin-top: 0.4em; }
.rb-entry-content blockquote {
	border-left: 4px solid var(--rb-primary);
	padding: 16px 20px;
	background: var(--rb-cream-alt);
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: var(--rb-text);
}
.rb-entry-content code {
	background: var(--rb-cream-alt);
	border: var(--rb-b);
	border-radius: 4px;
	padding: 2px 6px;
	font-size: 0.88em;
	font-family: monospace;
	color: var(--rb-text);
}
.rb-entry-content pre {
	background: var(--rb-dark);
	color: #d4c8c0;
	padding: 20px;
	border-radius: 10px;
	overflow-x: auto;
	font-size: 13px;
	line-height: 1.7;
}
.rb-entry-content pre code { background: none; border: none; padding: 0; color: inherit; }
.rb-entry-content img { border-radius: 10px; border: var(--rb-b); }
.rb-entry-content table { width: 100%; border-collapse: collapse; }
.rb-entry-content th, .rb-entry-content td { border: var(--rb-b); padding: 10px 14px; font-size: 14px; text-align: left; }
.rb-entry-content th { background: var(--rb-cream-alt); font-weight: 700; color: var(--rb-text); }
.rb-entry-content hr { border: none; border-top: var(--rb-b); margin: 2em 0; }

/* Post navigation */
.rb-post-nav {
	margin-top: 48px;
	padding-top: 28px;
	border-top: var(--rb-b);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.rb-post-nav a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	background: var(--rb-white);
	border: var(--rb-b);
	border-radius: 10px;
	text-decoration: none;
	transition: background 0.15s ease;
}
.rb-post-nav a:hover { background: var(--rb-cream-alt); text-decoration: none; }

.rb-post-nav .rb-nav-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rb-text-faint); }
.rb-post-nav .rb-nav-title { font-family: var(--rb-font-heading); font-size: 14px; font-weight: 800; color: var(--rb-text); letter-spacing: -0.015em; line-height: 1.3; }
.rb-post-nav .rb-nav-next { text-align: right; }

/* Author box */
.rb-author-box {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding: 24px;
	background: var(--rb-white);
	border: var(--rb-b);
	border-radius: 12px;
	margin-top: 40px;
}

.rb-author-avatar img { border-radius: 50%; border: var(--rb-b); width: 56px; height: 56px; object-fit: cover; }
.rb-author-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--rb-cream-alt); border: var(--rb-b); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--rb-font-heading); font-weight: 900; color: var(--rb-text-mid); }

.rb-author-name { font-family: var(--rb-font-heading); font-size: 15px; font-weight: 900; color: var(--rb-text); margin-bottom: 4px; }
.rb-author-bio { font-size: 13px; color: var(--rb-text-mid); line-height: 1.6; }

/* Comments */
.rb-comments { margin-top: 48px; padding-top: 28px; border-top: var(--rb-b); }
.rb-comments h2 { font-family: var(--rb-font-heading); font-size: 22px; font-weight: 900; margin-bottom: 24px; }

.comment-list { list-style: none; }
.comment-list .comment { border-bottom: var(--rb-b); padding: 20px 0; }
.comment-list .children { padding-left: 32px; border-left: var(--rb-b); margin-left: 16px; }
.comment-author { font-weight: 700; font-size: 14px; }
.comment-meta { font-size: 12px; color: var(--rb-text-faint); margin-bottom: 8px; }
.comment-content p { font-size: 14px; color: var(--rb-text-mid); line-height: 1.7; }

.comment-respond { margin-top: 32px; }
.comment-respond h3 { font-family: var(--rb-font-heading); font-size: 18px; font-weight: 900; margin-bottom: 20px; }

.rb-comment-form label { display: block; font-size: 12px; font-weight: 700; color: var(--rb-text); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.rb-comment-form input[type="text"],
.rb-comment-form input[type="email"],
.rb-comment-form input[type="url"],
.rb-comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: var(--rb-b);
	border-radius: 9px;
	background: var(--rb-white);
	font-family: var(--rb-font-body);
	font-size: 14px;
	color: var(--rb-text);
	outline: none;
	transition: border-color 0.15s ease;
	margin-bottom: 16px;
}
.rb-comment-form textarea { min-height: 140px; resize: vertical; }
.rb-comment-form input:focus,
.rb-comment-form textarea:focus { border-color: var(--rb-primary); }

.rb-comment-form .form-submit input[type="submit"] {
	display: inline-flex;
	align-items: center;
	padding: 11px 24px;
	background: var(--rb-dark);
	color: #fff;
	border: none;
	border-radius: 9999px;
	font-family: var(--rb-font-body);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.15s ease;
}
.rb-comment-form .form-submit input[type="submit"]:hover { background: var(--rb-primary); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.rb-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 78px; /* 62px navbar + 16px gap */
}

/* Each widget card */
.rb-widget,
.widget {
	background: var(--rb-white);
	border: var(--rb-b);
	border-radius: 12px;
	overflow: hidden;
}

/* Widget title */
.rb-widget-title,
.widget-title,
.widgettitle {
	font-family: var(--rb-font-heading);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--rb-text-faint);
	padding: 13px 18px;
	border-bottom: var(--rb-b);
	background: var(--rb-cream);
	margin: 0;
}

/* Widget content area — padding inside the card */
.rb-widget > *:not(.rb-widget-title):not(.widget-title):not(.widgettitle),
.widget > *:not(.rb-widget-title):not(.widget-title):not(.widgettitle) {
	padding: 14px 18px;
	display: block;
}

/* Override for nested elements */
.rb-widget ul,
.widget ul {
	list-style: none;
	margin: 0;
	padding: 14px 18px;
}

.rb-widget ul li,
.widget ul li {
	list-style: none;
	padding: 6px 0;
	border-bottom: 1px solid var(--rb-border-light);
	font-size: 13px;
	font-weight: 600;
	color: var(--rb-text-mid);
}

.rb-widget ul li:last-child,
.widget ul li:last-child { border-bottom: none; }

.rb-widget ul li a,
.widget ul li a {
	color: var(--rb-text-mid);
	text-decoration: none;
	transition: color 0.15s ease;
}
.rb-widget ul li a:hover,
.widget ul li a:hover { color: var(--rb-primary); }

/* Search widget */
.widget_search form,
.rb-widget-search form {
	display: flex;
	gap: 6px;
	padding: 14px 18px;
}

.widget_search input[type="search"],
.rb-widget-search input[type="search"] {
	flex: 1;
	padding: 8px 12px;
	border: var(--rb-b);
	border-radius: 9999px;
	font-family: var(--rb-font-body);
	font-size: 13px;
	background: var(--rb-cream);
	color: var(--rb-text);
	outline: none;
	min-width: 0;
}

.widget_search input[type="submit"],
.widget_search button,
.rb-widget-search button {
	padding: 8px 14px;
	background: var(--rb-dark);
	color: #fff;
	border: none;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 700;
	font-family: var(--rb-font-body);
	cursor: pointer;
	white-space: nowrap;
}

/* Text widget */
.widget p { font-size: 13px; color: var(--rb-text-mid); line-height: 1.6; }

/* Tag cloud */
.widget_tag_cloud .tagcloud {
	padding: 14px 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.widget_tag_cloud .tagcloud a {
	font-size: 11px !important;
	font-weight: 700;
	padding: 4px 10px;
	border: var(--rb-b);
	border-radius: 9999px;
	color: var(--rb-text-mid);
	text-decoration: none;
	transition: all 0.15s ease;
}
.widget_tag_cloud .tagcloud a:hover { background: var(--rb-dark); color: #fff; border-color: var(--rb-dark); }

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.rb-page-content { padding: 56px 0; }
.rb-page-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 28px; }

/* ============================================================
   404 PAGE
   ============================================================ */
.rb-404 {
	min-height: calc(100vh - 62px);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 62px 24px 0;
}

.rb-404-inner { max-width: 460px; }

.rb-404-num {
	font-family: var(--rb-font-heading);
	font-size: clamp(80px, 15vw, 140px);
	font-weight: 900;
	letter-spacing: -0.05em;
	color: var(--rb-border-light);
	line-height: 1;
}

.rb-404 h1 { font-size: 26px; font-weight: 900; margin: 12px 0; }
.rb-404 p { font-size: 15px; color: var(--rb-text-mid); margin-bottom: 28px; }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.rb-no-results { padding: 60px 0; text-align: center; }
.rb-no-results h2 { font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.rb-no-results p { color: var(--rb-text-mid); margin-bottom: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
.rb-footer {
	background: var(--rb-dark-bg);
	border-top: 1.5px solid var(--rb-dark-border);
	padding: 52px 0 0;
	width: 100%;
}

.rb-footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
	gap: 32px 40px;
	padding-bottom: 48px;
	align-items: start;
}

/* Footer brand */
.rb-footer-brand { display: flex; flex-direction: column; gap: 14px; }

.rb-footer-logo {
	display: flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
}
.rb-footer-logo:hover { text-decoration: none; }

.rb-footer-logo-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--rb-primary);
	border: 1.5px solid #3a3330;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rb-footer-logo-icon svg { width: 15px; height: 15px; stroke: #fff; fill: none; }
.rb-footer-logo img { height: 32px; width: auto; border-radius: 6px; }

.rb-footer-logo-text { font-family: var(--rb-font-heading); font-size: 17px; font-weight: 900; letter-spacing: -0.03em; color: var(--rb-white); }
.rb-footer-logo-text em { font-style: normal; color: var(--rb-primary); }

.rb-footer-desc { font-size: 13px; color: #6b5e54; line-height: 1.7; max-width: 280px; }

.rb-footer-email { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #4a3f38; text-decoration: none; transition: color 0.15s ease; }
.rb-footer-email:hover { color: #c8bdb5; text-decoration: none; }

/* Footer cols */
.rb-footer-col-title { font-family: var(--rb-font-heading); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: #6b5e54; margin-bottom: 14px; }

.rb-footer-links { display: flex; flex-direction: column; gap: 8px; }
.rb-footer-links li a,
.rb-footer-links a { font-size: 13px; color: #4a3f38; text-decoration: none; transition: color 0.15s ease; }
.rb-footer-links li a:hover,
.rb-footer-links a:hover { color: #c8bdb5; }

/* Newsletter */
.rb-newsletter-desc { font-size: 12px; color: #4a3f38; line-height: 1.6; margin-bottom: 10px; }

.rb-newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

/* Contain any mc4wp or plugin forms inside the footer column */
.rb-footer .mc4wp-form,
.rb-footer form {
	width: 100%;
	max-width: 100%;
}

.rb-newsletter-input,
.rb-footer input[type="email"],
.rb-footer .mc4wp-form input[type="email"] {
	background: #221e1b;
	border: 1.5px solid #2e2622;
	border-radius: 10px;
	padding: 10px 14px;
	color: #d4c8c0;
	font-family: var(--rb-font-body);
	font-size: 12px;
	outline: none;
	width: 100%;
	transition: border-color 0.15s ease;
	display: block;
	box-sizing: border-box;
}
.rb-newsletter-input::placeholder,
.rb-footer input[type="email"]::placeholder { color: #4a3f38; }
.rb-newsletter-input:focus,
.rb-footer input[type="email"]:focus { border-color: #6b5e54; }

.rb-newsletter-btn,
.rb-footer input[type="submit"],
.rb-footer .mc4wp-form input[type="submit"],
.rb-footer button[type="submit"] {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 10px 16px;
	background: var(--rb-primary);
	color: #fff;
	border: 1.5px solid var(--rb-primary);
	border-radius: 9999px;
	font-family: var(--rb-font-body);
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.15s ease;
	box-sizing: border-box;
	text-align: center;
}
.rb-newsletter-btn:hover,
.rb-footer input[type="submit"]:hover,
.rb-footer button[type="submit"]:hover {
	background: var(--rb-primary-hover);
	border-color: var(--rb-primary-hover);
}

/* Footer bottom bar */
.rb-footer-bottom {
	border-top: 1.5px solid #2e2622;
	padding: 18px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.rb-footer-bottom p { font-size: 12px; color: #3a3330; margin: 0; }

.rb-footer-powered { font-size: 12px; color: #4a3f38; }
.rb-footer-powered a { color: var(--rb-primary); font-weight: 700; text-decoration: none; }
.rb-footer-powered a:hover { color: var(--rb-primary-hover); }

/* ============================================================
   BLOCK EDITOR ALIGNMENT
   ============================================================ */
.alignfull  { margin-left: calc(-50vw + 50%); width: 100vw; max-width: 100vw; }
.alignwide  { margin-left: -40px; width: calc(100% + 80px); max-width: calc(100% + 80px); }
.aligncenter { text-align: center; }
.alignright  { float: right; margin-left: 1.5em; }
.alignleft   { float: left; margin-right: 1.5em; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link {
	position: absolute;
	top: -40px;
	left: 6px;
	z-index: 999;
	background: var(--rb-dark);
	color: #fff;
	padding: 8px 14px;
	border-radius: 0 0 6px 6px;
	font-weight: 700;
	font-size: 13px;
	transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large tablets */
@media (max-width: 1100px) {
	.rb-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 32px; }
	.rb-footer-grid > div:nth-child(1) { grid-column: 1 / -1; }
}

/* Tablets */
@media (max-width: 960px) {
	.rb-posts-grid { grid-template-columns: repeat(2, 1fr); }
	.rb-card-featured { flex-direction: column; }
	.rb-card-featured .rb-card-thumb img { height: 260px; min-height: unset; }
	.rb-card-featured .rb-card-thumb-placeholder { height: 260px; }
}

/* Content + sidebar stacks */
@media (max-width: 900px) {
	.rb-page-wrap {
		grid-template-columns: minmax(0, 1fr);
	}
	.rb-sidebar {
		position: static;
		/* Show sidebar below on tablet — unhide */
		display: flex;
	}
}

/* Mobile nav breakpoint */
@media (max-width: 768px) {
	/* Hide desktop nav + search, show hamburger */
	.rb-primary-nav { display: none; }
	.rb-search-toggle { display: none; }
	.rb-menu-toggle { display: flex; }

	/* Post grid: 1 column */
	.rb-posts-grid { grid-template-columns: 1fr; }

	/* Single post nav */
	.rb-post-nav { grid-template-columns: 1fr; }
	.rb-post-nav .rb-nav-next { text-align: left; }

	/* Footer: 2 cols */
	.rb-footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
	.rb-footer-grid > div:nth-child(1) { grid-column: 1 / -1; }
	.rb-footer-grid > div:nth-child(4) { grid-column: 1 / -1; }

	/* Hero */
	.rb-hero { padding: 80px 0 36px; }
	.rb-hero h1 { font-size: clamp(26px, 7vw, 42px); }

	/* Single title */
	.rb-single-title { font-size: clamp(24px, 6vw, 36px); }

	/* Archive header */
	.rb-archive-header h1 { font-size: clamp(22px, 6vw, 32px); }
}

/* Small mobile */
@media (max-width: 520px) {
	.rb-container { padding-left: 16px; padding-right: 16px; }

	/* Footer: single column */
	.rb-footer-grid { grid-template-columns: 1fr; }
	.rb-footer-grid > div:nth-child(1),
	.rb-footer-grid > div:nth-child(4) { grid-column: auto; }

	.rb-footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

	/* Author box stack */
	.rb-author-box { flex-direction: column; gap: 12px; }

	/* Card meta wraps */
	.rb-card-meta { flex-wrap: wrap; }
}

/* ============================================================
   ADMIN BAR OFFSET
   ============================================================ */
.admin-bar .rb-site-header { top: 32px; }
.admin-bar .rb-mobile-nav { top: 94px; }
.admin-bar .rb-search-bar { top: 94px; }
@media screen and (max-width: 782px) {
	.admin-bar .rb-site-header { top: 46px; }
	.admin-bar .rb-mobile-nav { top: 108px; }
	.admin-bar .rb-search-bar { top: 108px; }
}

/* ============================================================
   WORDPRESS REQUIRED CLASSES
   ============================================================ */
.wp-caption { margin-bottom: 1.5em; max-width: 100%; }
.wp-caption img[class*="wp-image-"] { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { text-align: center; font-size: 13px; color: var(--rb-text-faint); margin-top: 8px; }
.gallery-caption { text-align: center; font-size: 13px; color: var(--rb-text-faint); margin-top: 8px; }
.sticky { display: block; }
.bypostauthor { display: block; }
