/*
Theme Name: RapidNews
Theme URI: https://example.com/rapidnews
Author: RapidNews
Author URI: https://example.com
Description: RapidNews is a fast, editorial magazine theme for newsrooms, bloggers and multi-author publications. It ships with a featured hero, a "Latest" rail, and configurable category sections, plus a full set of Customizer options.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: rapidnews
Tags: news, blog, grid-layout, custom-logo, custom-menu, custom-colors, featured-images, threaded-comments, translation-ready

RapidNews is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   Reset & base
   ========================================================================== */

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	color-scheme: light dark;
}

body {
	margin: 0;
	font-family: "Noto Sans Devanagari", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #111111;
	background: #ffffff;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.4em;
	font-weight: 800;
	line-height: 1.2;
}

p {
	margin: 0 0 1em;
}

button {
	font-family: inherit;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.rn-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.rn-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ==========================================================================
   Header
   ========================================================================== */

.rn-site-header {
	border-bottom: 1px solid #eaeaea;
}

.rn-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 18px;
	padding-bottom: 18px;
	gap: 16px;
}

.rn-header-tools {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
}

.rn-icon-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	color: #111;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.rn-icon-btn svg {
	width: 20px;
	height: 20px;
}

.rn-menu-toggle {
	display: none;
}

.rn-site-branding {
	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
}

.rn-site-title {
	margin: 0;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.rn-site-title a {
	color: #111;
}

.rn-site-title a:hover {
	text-decoration: none;
}

.rn-custom-logo-link img {
	max-height: 44px;
	max-width: 100%;
	width: auto;
	margin: 0 auto;
}

.rn-header-actions {
	flex: 0 0 auto;
	display: flex;
	justify-content: flex-end;
}

.rn-subscribe-btn {
	display: inline-block;
	background: var(--rn-accent, #2563eb);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	padding: 10px 22px;
	border-radius: 6px;
}

.rn-subscribe-btn:hover {
	background: var(--rn-accent-dark, #1d4ed8);
	color: #fff;
	text-decoration: none;
}

/* Primary navigation */

.rn-nav-wrap {
	border-top: 1px solid #f0f0f0;
}

.rn-primary-nav {
	display: flex;
	justify-content: center;
}

.rn-primary-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
	padding: 12px 0;
}

.rn-primary-nav li {
	position: relative;
}

.rn-primary-nav a {
	font-size: 14px;
	font-weight: 600;
	color: #222;
}

.rn-primary-nav a:hover,
.rn-primary-nav .current-menu-item > a {
	color: var(--rn-accent, #2563eb);
	text-decoration: none;
}

.rn-primary-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	margin-left: 6px;
}

.rn-primary-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border: 1px solid #eee;
	box-shadow: 0 8px 20px rgba(0,0,0,0.08);
	min-width: 200px;
	padding: 8px 0;
	z-index: 50;
}

.rn-primary-nav li:hover > .sub-menu,
.rn-primary-nav li.rn-sub-open > .sub-menu {
	display: block;
}

.rn-primary-nav .sub-menu a {
	display: block;
	padding: 8px 16px;
}

/* Search flyout */

.rn-search-flyout {
	display: none;
	border-top: 1px solid #f0f0f0;
	padding: 16px 0;
	background: #fafafa;
}

.rn-search-flyout.is-open {
	display: block;
}

.rn-search-flyout form {
	display: flex;
	max-width: 600px;
	margin: 0 auto;
	gap: 8px;
}

.rn-search-flyout input[type="search"] {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 15px;
}

.rn-search-flyout button {
	background: var(--rn-accent, #2563eb);
	color: #fff;
	border: none;
	padding: 10px 18px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
}

/* ==========================================================================
   Section headings
   ========================================================================== */

.rn-section {
	padding-top: 40px;
	padding-bottom: 40px;
}

.rn-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	border-bottom: 2px solid #111;
	padding-bottom: 10px;
	margin-bottom: 24px;
}

.rn-section-title {
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin: 0;
}

.rn-view-all {
	font-size: 14px;
	font-weight: 600;
	color: var(--rn-accent, #2563eb);
	white-space: nowrap;
}

/* ==========================================================================
   Ad slots
   ========================================================================== */

.rn-ad-slot {
	padding: 24px 0;
	text-align: center;
}

.rn-ad-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #999;
	margin-bottom: 10px;
}

.rn-ad-slot-inner {
	max-width: 728px;
	min-height: 90px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.rn-ad-slot-inner img {
	max-width: 100%;
	height: auto;
}

/* ==========================================================================
   Category label / meta
   ========================================================================== */

.rn-cat-label {
	display: inline-block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--rn-accent, #2563eb);
	margin-bottom: 6px;
}

.rn-cat-label a {
	color: inherit;
}

.rn-cat-label a:hover {
	text-decoration: underline;
}

.rn-meta {
	font-size: 13px;
	color: #777;
}

.rn-meta a {
	color: #555;
	font-weight: 600;
}

.rn-meta a:hover {
	color: var(--rn-accent, #2563eb);
}

.rn-card-excerpt {
	font-size: 14px;
	color: #444;
	margin-top: 6px;
}

.rn-card-title {
	font-size: 18px;
	margin-bottom: 4px;
}

.rn-card-title a:hover {
	color: var(--rn-accent, #2563eb);
	text-decoration: none;
}

.rn-card {
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.rn-card:hover {
	border-color: #cfcfcf;
	box-shadow: 0 6px 18px rgba(17, 17, 17, 0.07);
}

.rn-card-body {
	padding: 14px;
}

.rn-thumb {
	display: block;
	overflow: hidden;
	background: #f2f2f2;
	margin-bottom: 0;
}

.rn-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.35s ease;
}

.rn-card:hover .rn-thumb img {
	transform: scale(1.03);
}

.rn-author-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	display: inline-block;
	vertical-align: middle;
	margin-right: 6px;
}

/* ==========================================================================
   Hero section
   ========================================================================== */

.rn-hero {
	display: grid;
	grid-template-columns: 1fr 2.1fr 1fr;
	gap: 28px;
	padding-top: 32px;
	padding-bottom: 10px;
	align-items: start;
}

.rn-hero-side {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.rn-hero-side .rn-thumb {
	aspect-ratio: 3 / 2;
}

.rn-hero-side .rn-card-title {
	font-size: 16px;
}

.rn-hero-featured .rn-thumb {
	aspect-ratio: 900 / 560;
	margin-bottom: 20px;
}

.rn-hero-featured {
	text-align: center;
}

.rn-hero-featured .rn-cat-label {
	font-size: 13px;
}

.rn-hero-featured .rn-card-title {
	font-size: 32px;
	max-width: 640px;
	margin: 0 auto 12px;
}

.rn-hero-featured .rn-card-excerpt {
	max-width: 620px;
	margin: 0 auto 12px;
	font-size: 16px;
	color: #555;
}

.rn-latest-rail-title {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-bottom: 2px solid #111;
	padding-bottom: 10px;
	margin-bottom: 16px;
}

.rn-latest-item {
	display: flex;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid #eee;
}

.rn-latest-item:first-child {
	padding-top: 0;
}

.rn-latest-item .rn-thumb {
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	margin-bottom: 0;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
}

.rn-latest-item-title {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 4px;
}

.rn-latest-item-title a:hover {
	color: var(--rn-accent, #2563eb);
	text-decoration: none;
}

/* ==========================================================================
   Grid sections (Business / Travel etc.)
   ========================================================================== */

.rn-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}

.rn-grid-4 .rn-thumb {
	aspect-ratio: 3 / 2;
}

/* ==========================================================================
   Featured + grid split (Politics style)
   ========================================================================== */

.rn-split-section {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 28px;
}

.rn-split-featured .rn-thumb {
	aspect-ratio: 900 / 560;
}

.rn-split-featured .rn-card-title {
	font-size: 26px;
}

.rn-split-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.rn-split-grid .rn-thumb {
	aspect-ratio: 3 / 2;
}

.rn-split-grid .rn-card-title {
	font-size: 16px;
}

/* ==========================================================================
   Single / page / archive content
   ========================================================================== */

.rn-content-area {
	padding-top: 40px;
	padding-bottom: 40px;
}

.rn-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

.rn-layout.has-sidebar {
	grid-template-columns: 2.2fr 1fr;
}

.rn-entry-header {
	margin-bottom: 20px;
}

.rn-entry-title {
	font-size: 36px;
}

.rn-entry-content {
	font-size: 17px;
	line-height: 1.75;
}

.rn-entry-content img {
	margin: 20px 0;
}

.rn-entry-thumbnail {
	margin-bottom: 24px;
}

.rn-archive-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}

.rn-pagination {
	display: flex;
	gap: 8px;
	margin-top: 32px;
	flex-wrap: wrap;
}

.rn-pagination a,
.rn-pagination span {
	padding: 8px 14px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.rn-pagination .current {
	background: var(--rn-accent, #2563eb);
	color: #fff;
	border-color: var(--rn-accent, #2563eb);
}

.widget {
	margin-bottom: 24px;
	padding: 20px;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	background: #fff;
}

.widget-title {
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-bottom: 2px solid #111;
	padding-bottom: 10px;
	margin-bottom: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.rn-site-footer {
	border-top: 1px solid #eaeaea;
	margin-top: 20px;
	padding: 40px 0;
	background: #fafafa;
}

.rn-footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.rn-footer-text {
	font-size: 14px;
	color: #555;
}

.rn-footer-credit {
	font-size: 14px;
	color: #555;
	margin-left: auto;
}

.rn-footer-credit a {
	color: var(--rn-accent, #2563eb);
	font-weight: 600;
}

.rn-footer-credit a:hover {
	text-decoration: underline;
}

.rn-social-links {
	display: flex;
	gap: 14px;
}

.rn-social-links a {
	display: inline-flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #111;
	color: #fff;
}

.rn-social-links svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* ==========================================================================
   Dark mode
   ========================================================================== */

body.rn-dark-mode {
	background: #111213;
	color: #eaeaea;
}

body.rn-dark-mode .rn-site-header,
body.rn-dark-mode .rn-search-flyout,
body.rn-dark-mode .rn-site-footer {
	background: #171819;
	border-color: #2a2b2d;
}

body.rn-dark-mode .rn-site-title a,
body.rn-dark-mode .rn-primary-nav a,
body.rn-dark-mode .rn-icon-btn,
body.rn-dark-mode .rn-card-title a,
body.rn-dark-mode .rn-entry-title,
body.rn-dark-mode .rn-section-title,
body.rn-dark-mode .rn-latest-rail-title,
body.rn-dark-mode .widget-title {
	color: #f5f5f5;
}

body.rn-dark-mode .rn-card-excerpt,
body.rn-dark-mode .rn-meta,
body.rn-dark-mode .rn-entry-content,
body.rn-dark-mode .rn-footer-text,
body.rn-dark-mode .rn-footer-credit,
body.rn-dark-mode .rn-ad-label {
	color: #b6b8bb;
}

body.rn-dark-mode .rn-thumb {
	background: #24262a;
	border-color: #2a2b2d;
}

body.rn-dark-mode .rn-card {
	background: #171819;
	border-color: #2a2b2d;
}

body.rn-dark-mode .rn-card:hover {
	border-color: #3a3b3d;
}

body.rn-dark-mode .rn-latest-item,
body.rn-dark-mode .rn-nav-wrap,
body.rn-dark-mode .rn-primary-nav .sub-menu {
	border-color: #2a2b2d;
	background: #171819;
}

body.rn-dark-mode .rn-section-head,
body.rn-dark-mode .rn-latest-rail-title,
body.rn-dark-mode .widget-title {
	border-color: #f5f5f5;
}

body.rn-dark-mode .rn-search-flyout input[type="search"],
body.rn-dark-mode .rn-search-form input[type="search"],
body.rn-dark-mode .comment-form input[type="text"],
body.rn-dark-mode .comment-form input[type="email"],
body.rn-dark-mode .comment-form input[type="url"],
body.rn-dark-mode .comment-form textarea {
	background: #1f2022;
	border-color: #3a3b3d;
	color: #f5f5f5;
}

body.rn-dark-mode .rn-pagination a,
body.rn-dark-mode .rn-pagination span {
	border-color: #3a3b3d;
}

body.rn-dark-mode .rn-comments,
body.rn-dark-mode .rn-comment-list .comment-body {
	border-color: #2a2b2d;
}

body.rn-dark-mode .rn-footer-menu a {
	color: #b6b8bb;
}

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

@media (max-width: 960px) {
	.rn-hero {
		grid-template-columns: 1fr;
	}

	.rn-hero-side {
		flex-direction: row;
	}

	.rn-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.rn-split-section {
		grid-template-columns: 1fr;
	}

	.rn-layout.has-sidebar {
		grid-template-columns: 1fr;
	}

	.rn-archive-list {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Search form, comments, misc content states
   ========================================================================== */

.rn-search-form {
	display: flex;
	gap: 8px;
	max-width: 600px;
}

.rn-search-form input[type="search"] {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 15px;
}

.rn-search-form button {
	background: var(--rn-accent, #2563eb);
	color: #fff;
	border: none;
	padding: 10px 18px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
}

.rn-footer-menu {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

.rn-footer-menu a {
	font-size: 14px;
	color: #555;
}

.rn-footer-menu a:hover {
	color: var(--rn-accent, #2563eb);
}

.rn-no-results,
.rn-404 {
	padding: 20px 0 60px;
}

.rn-entry-header .rn-cat-label {
	display: block;
	margin-bottom: 10px;
}

.rn-entry-header .rn-meta {
	display: flex;
	align-items: center;
	margin-top: 10px;
}

.rn-comments {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid #eee;
}

.rn-comments-title {
	font-size: 20px;
	margin-bottom: 20px;
}

.rn-comment-list,
.rn-comment-list ul.children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rn-comment-list ul.children {
	margin-left: 32px;
}

.rn-comment-list .comment-body {
	padding: 16px 0;
	border-bottom: 1px solid #eee;
}

.rn-comment-list .comment-author img {
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	max-width: 480px;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: inherit;
	font-size: 15px;
	margin-top: 4px;
}

.comment-form p {
	margin-bottom: 14px;
}

.comment-form .form-submit input {
	background: var(--rn-accent, #2563eb);
	color: #fff;
	border: none;
	padding: 10px 22px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 700;
}

/* ==========================================================================
   Breadcrumbs, tags, author box, related posts, author archive
   ========================================================================== */

.rn-breadcrumbs {
	font-size: 13px;
	color: #777;
	margin-bottom: 14px;
}

.rn-breadcrumbs a {
	color: #555;
	font-weight: 600;
}

.rn-breadcrumbs a:hover {
	color: var(--rn-accent, #2563eb);
}

.rn-breadcrumb-sep {
	margin: 0 4px;
	color: #ccc;
}

.rn-breadcrumb-current {
	color: #999;
}

.rn-entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0;
}

.rn-tag-pill {
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	border: 1px solid #ddd;
	border-radius: 999px;
	color: #444;
}

.rn-tag-pill:hover {
	border-color: var(--rn-accent, #2563eb);
	color: var(--rn-accent, #2563eb);
	text-decoration: none;
}

.rn-author-box {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-top: 32px;
	padding: 24px;
	background: #fafafa;
	border-radius: 8px;
}

.rn-author-box img {
	border-radius: 50%;
	flex-shrink: 0;
}

.rn-author-box-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #999;
	margin-bottom: 2px;
}

.rn-author-box-name {
	font-size: 18px;
	font-weight: 800;
}

.rn-author-box-name:hover {
	color: var(--rn-accent, #2563eb);
	text-decoration: none;
}

.rn-author-box-bio {
	font-size: 14px;
	color: #555;
	margin: 8px 0 0;
}

.rn-related-posts {
	margin: 48px 0;
	padding-top: 8px;
}

.rn-author-header {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding-bottom: 28px;
	margin-bottom: 24px;
	border-bottom: 1px solid #eee;
}

.rn-author-header img {
	border-radius: 50%;
	flex-shrink: 0;
}

.rn-author-header-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--rn-accent, #2563eb);
	margin-bottom: 4px;
}

.rn-author-header-bio {
	font-size: 15px;
	color: #555;
	max-width: 640px;
	margin: 8px 0;
}

.rn-author-header-url {
	font-size: 13px;
	font-weight: 600;
	color: var(--rn-accent, #2563eb);
}

.rn-archive-count {
	font-size: 13px;
	color: #999;
	font-weight: 600;
	white-space: nowrap;
}

.rn-category-list li {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}

.rn-category-list li:last-child {
	border-bottom: none;
}

.rn-category-list a {
	font-weight: 600;
}

.rn-category-list a:hover {
	color: var(--rn-accent, #2563eb);
}

.rn-cat-count {
	color: #999;
	font-size: 13px;
}

.rn-404-recent {
	padding-top: 20px;
}

/* Dark mode extensions for the elements above */

body.rn-dark-mode .rn-author-box,
body.rn-dark-mode .widget {
	background: #1b1c1e;
	border-color: #2a2b2d;
}

body.rn-dark-mode .rn-author-box-name,
body.rn-dark-mode .rn-entry-title {
	color: #f5f5f5;
}

body.rn-dark-mode .rn-tag-pill {
	border-color: #333;
	color: #ccc;
}

body.rn-dark-mode .rn-author-header,
body.rn-dark-mode .rn-category-list li,
body.rn-dark-mode .rn-latest-item {
	border-color: #2a2b2d;
}

body.rn-dark-mode .rn-breadcrumbs a,
body.rn-dark-mode .rn-author-box-bio,
body.rn-dark-mode .rn-author-header-bio {
	color: #b6b8bb;
}

@media (max-width: 680px) {
	.rn-author-header,
	.rn-author-box {
		flex-direction: column;
	}

	.rn-site-branding {
		text-align: left;
	}

	.rn-header-bar {
		gap: 8px;
	}

	.rn-header-tools {
		gap: 6px;
	}

	.rn-subscribe-btn {
		padding: 8px 14px;
		font-size: 13px;
	}

	.rn-site-title {
		font-size: 20px;
		letter-spacing: 1px;
	}

	.rn-menu-toggle {
		display: inline-flex;
	}

	.rn-primary-nav {
		display: none;
		justify-content: flex-start;
		border-top: 1px solid #f0f0f0;
	}

	.rn-primary-nav.is-open {
		display: block;
	}

	.rn-primary-nav ul {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		gap: 0;
		padding: 8px 0;
	}

	.rn-primary-nav li {
		width: 100%;
	}

	.rn-primary-nav a {
		display: block;
		padding: 12px 24px;
	}

	.rn-primary-nav a:hover,
	.rn-primary-nav .current-menu-item > a {
		color: var(--rn-accent, #2563eb);
	}

	.rn-primary-nav .sub-menu {
		position: static;
		border: none;
		box-shadow: none;
		padding-left: 14px;
	}

	body.rn-dark-mode .rn-primary-nav {
		border-color: #2a2b2d;
	}

	.rn-hero-side {
		flex-direction: column;
	}

	.rn-grid-4 {
		grid-template-columns: 1fr;
	}

	.rn-split-grid {
		grid-template-columns: 1fr;
	}

	.rn-header-bar {
		flex-wrap: wrap;
	}
}

/* ==========================================================================
   Dark mode (system preference, when the user hasn't explicitly chosen light
   via the header toggle)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
	body:not(.rn-light-mode) {
		background: #111213;
		color: #eaeaea;
	}

	body:not(.rn-light-mode) .rn-site-header,
	body:not(.rn-light-mode) .rn-search-flyout,
	body:not(.rn-light-mode) .rn-site-footer {
		background: #171819;
		border-color: #2a2b2d;
	}

	body:not(.rn-light-mode) .rn-site-title a,
	body:not(.rn-light-mode) .rn-primary-nav a,
	body:not(.rn-light-mode) .rn-icon-btn,
	body:not(.rn-light-mode) .rn-card-title a,
	body:not(.rn-light-mode) .rn-entry-title,
	body:not(.rn-light-mode) .rn-section-title,
	body:not(.rn-light-mode) .rn-latest-rail-title,
	body:not(.rn-light-mode) .widget-title {
		color: #f5f5f5;
	}

	body:not(.rn-light-mode) .rn-card-excerpt,
	body:not(.rn-light-mode) .rn-meta,
	body:not(.rn-light-mode) .rn-entry-content,
	body:not(.rn-light-mode) .rn-footer-text,
	body:not(.rn-light-mode) .rn-footer-credit,
	body:not(.rn-light-mode) .rn-ad-label {
		color: #b6b8bb;
	}

	body:not(.rn-light-mode) .rn-thumb {
		background: #24262a;
		border-color: #2a2b2d;
	}

	body:not(.rn-light-mode) .rn-card {
		background: #171819;
		border-color: #2a2b2d;
	}

	body:not(.rn-light-mode) .rn-card:hover {
		border-color: #3a3b3d;
	}

	body:not(.rn-light-mode) .rn-latest-item,
	body:not(.rn-light-mode) .rn-nav-wrap,
	body:not(.rn-light-mode) .rn-primary-nav .sub-menu {
		border-color: #2a2b2d;
		background: #171819;
	}

	body:not(.rn-light-mode) .rn-section-head,
	body:not(.rn-light-mode) .rn-latest-rail-title,
	body:not(.rn-light-mode) .widget-title {
		border-color: #f5f5f5;
	}

	body:not(.rn-light-mode) .rn-search-flyout input[type="search"],
	body:not(.rn-light-mode) .rn-search-form input[type="search"],
	body:not(.rn-light-mode) .comment-form input[type="text"],
	body:not(.rn-light-mode) .comment-form input[type="email"],
	body:not(.rn-light-mode) .comment-form input[type="url"],
	body:not(.rn-light-mode) .comment-form textarea {
		background: #1f2022;
		border-color: #3a3b3d;
		color: #f5f5f5;
	}

	body:not(.rn-light-mode) .rn-pagination a,
	body:not(.rn-light-mode) .rn-pagination span {
		border-color: #3a3b3d;
	}

	body:not(.rn-light-mode) .rn-comments,
	body:not(.rn-light-mode) .rn-comment-list .comment-body {
		border-color: #2a2b2d;
	}

	body:not(.rn-light-mode) .rn-footer-menu a {
		color: #b6b8bb;
	}

	body:not(.rn-light-mode) .rn-author-box,
	body:not(.rn-light-mode) .widget {
		background: #1b1c1e;
		border-color: #2a2b2d;
	}

	body:not(.rn-light-mode) .rn-author-box-name,
	body:not(.rn-light-mode) .rn-entry-title {
		color: #f5f5f5;
	}

	body:not(.rn-light-mode) .rn-tag-pill {
		border-color: #333;
		color: #ccc;
	}

	body:not(.rn-light-mode) .rn-author-header,
	body:not(.rn-light-mode) .rn-category-list li,
	body:not(.rn-light-mode) .rn-latest-item {
		border-color: #2a2b2d;
	}

	body:not(.rn-light-mode) .rn-breadcrumbs a,
	body:not(.rn-light-mode) .rn-author-box-bio,
	body:not(.rn-light-mode) .rn-author-header-bio {
		color: #b6b8bb;
	}
}

@media (max-width: 680px) and (prefers-color-scheme: dark) {
	body:not(.rn-light-mode) .rn-primary-nav {
		border-color: #2a2b2d;
	}
}
