/*
Theme Name: basic_theme
Theme URI: https://wordpress.org/
Author: Based on public design tokens
Description: Landing-style blog theme: Poppins and Roboto, card grid, accent buttons, and rating blocks. Suited for reviews and roundups.
Version: 1.2.2
Requires at least: 5.8
Tested up to: 6.7
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: basic_theme
*/

:root {
	--rp-text: rgb(37, 42, 50);
	--rp-text-muted: rgb(48, 48, 48);
	--rp-label: rgb(155, 155, 155);
	--rp-navy: rgb(0, 4, 65);
	--rp-blue: rgb(0, 118, 255);
	--rp-body-small: rgb(33, 37, 41);
	--rp-section-bg: rgb(232, 232, 232);
	--rp-border: rgb(203, 189, 189);
	--rp-divider: rgb(195, 173, 173);
	--rp-white: #fff;
	--rp-cta: #ed1c23;
	--rp-cta-hover: #a71419;
	--rp-star: #f0ad4e;
	--rp-pro: #14c649;
	--rp-con: #d0021b;
	--rp-progress-bg: #b0a8a8;
	--rp-progress-fill: #5cb85c;
	--rp-shadow-header: rgba(0, 0, 0, 0.51) 0 0 7px 0;
	--rp-shadow-card: rgba(0, 0, 0, 0.5) 1px 0 10px 0;
	--rp-font-body: "Roboto", system-ui, sans-serif;
	--rp-font-heading: "Poppins", system-ui, sans-serif;
	--rp-max: 950px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--rp-font-body);
	font-size: 14px;
	line-height: 1.4;
	color: var(--rp-text);
	background: var(--rp-white);
}

a {
	color: var(--rp-blue);
	text-decoration: underline;
}

a:hover {
	color: var(--rp-navy);
}

.screen-reader-text,
.rp-screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
	clip: auto !important;
	background: var(--rp-white);
	color: var(--rp-navy);
	display: block;
	height: auto;
	left: 8px;
	padding: 12px 20px;
	top: 8px;
	width: auto;
	z-index: 10000;
	box-shadow: var(--rp-shadow-header);
}

/* ——— Header bar ——— */
.rp-top-bar {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: var(--rp-white);
	box-shadow: var(--rp-shadow-header);
	padding: 10px;
}

/* Offset for logged-in admin bar */
body.admin-bar .rp-top-bar {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .rp-top-bar {
		top: 46px;
	}
}

.rp-top-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
}

.rp-branding {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 4px;
	min-width: 0;
}

.rp-branding__logo .custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.rp-branding__logo img {
	max-height: 48px;
	width: auto;
	height: auto;
	vertical-align: middle;
}

.rp-site-title {
	font-family: var(--rp-font-heading);
	font-size: 18px;
	text-align: left;
	margin: 0;
	line-height: 1.2;
}

.rp-site-title a {
	color: inherit;
	text-decoration: none;
}

.rp-tagline {
	font-size: 13px;
	color: var(--rp-text-muted);
	margin: 0;
	line-height: 1.3;
	max-width: 280px;
}

@media (max-width: 749px) {
	.rp-top-bar__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.rp-tagline {
		max-width: none;
		text-align: center;
	}

	.rp-branding {
		align-items: center;
		text-align: center;
	}
}

/* ——— Main ——— */
#primary.site-main {
	width: 100%;
	max-width: var(--rp-max);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

/* ——— Sections ——— */
/* Centered column (block in the middle of the viewport, not text-align) */
.rp-wrap {
	width: 100%;
	max-width: var(--rp-max);
	margin-left: auto;
	margin-right: auto;
	margin-inline: auto;
	padding-left: 15px;
	padding-right: 15px;
	padding-inline: 15px;
	box-sizing: border-box;
}

#primary.site-main.rp-wrap {
	display: block;
}

.rp-section {
	margin: 20px 0;
}

.rp-section--pad {
	padding: 20px 0;
}

.rp-section--gray {
	background: var(--rp-section-bg);
	margin: 0 0 20px;
	padding: 20px 0;
}

.rp-label-center {
	font-size: 14px;
	color: var(--rp-label);
	text-align: center;
	margin: 0 0 8px;
}

/* ——— Typography ——— */
.rp-h1 {
	font-family: var(--rp-font-heading);
	font-size: clamp(27px, 5vw, 39px);
	text-align: center;
	margin: 0 0 16px;
	line-height: 1.1;
	color: var(--rp-text);
}

.rp-h2 {
	font-family: var(--rp-font-heading);
	font-size: clamp(21px, 3.5vw, 30px);
	color: var(--rp-navy);
	text-align: center;
	margin: 0 0 8px;
	line-height: 1.2;
}

.rp-h2 a {
	color: inherit;
}

.rp-subtitle {
	font-size: clamp(15px, 2.5vw, 21px);
	text-align: center;
	color: var(--rp-navy);
	margin: 0 0 24px;
}

.rp-h3 {
	font-family: var(--rp-font-heading);
	font-size: clamp(15px, 2vw, 18px);
	text-align: center;
	margin: 16px 0 8px;
}

.rp-lead {
	font-size: 16px;
	line-height: 1.3;
	margin: 0 0 10px;
	color: var(--rp-text-muted);
}

.rp-author-bio {
	font-size: 14px;
	text-align: center;
	color: var(--rp-body-small);
	line-height: 1.2;
	margin: 0;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.rp-divider {
	border: 0;
	border-top: 1px solid var(--rp-divider);
	margin: 16px auto;
	max-width: 46.5px;
}

/* ——— Rating row (3 columns) ——— */
.rp-rating-row {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	justify-content: center;
	align-items: stretch;
	margin-top: 8px;
}

@media (min-width: 750px) {
	.rp-rating-row {
		align-items: center;
		column-gap: 15px;
	}
}

.rp-rating-col {
	flex: 1 1 200px;
	max-width: 100%;
	display: flex;
	justify-content: center;
}

.rp-card {
	background: var(--rp-white);
	border-radius: 5px;
	padding: 7px;
	margin-top: 24px;
	box-shadow: var(--rp-shadow-card);
	width: 100%;
	max-width: 320px;
}

.rp-card--image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: scale-down;
}

.rp-grade-label {
	font-size: 25px;
	color: var(--rp-blue);
	text-align: center;
	margin: 0;
	line-height: 1;
}

.rp-grade-value {
	font-family: var(--rp-font-heading);
	font-size: 94px;
	line-height: 1;
	text-align: center;
	color: var(--rp-blue);
	margin: 8px 0 0;
}

.rp-rating-num {
	font-family: var(--rp-font-heading);
	font-size: 35px;
	text-align: center;
	margin: 16px 0 0;
	color: #000;
}

.rp-stars {
	display: flex;
	justify-content: center;
	gap: 3px;
	margin-top: 16px;
}

.rp-stars .fa {
	color: var(--rp-star);
	font-size: 23px;
}

/* ——— Analysis block ——— */
.rp-analysis {
	border: 1px solid var(--rp-border);
	border-radius: 5px;
	padding: 15px;
	margin-top: 20px;
	background: var(--rp-white);
}

.rp-analysis__title {
	font-family: var(--rp-font-heading);
	font-size: 20px;
	margin: 0 0 20px;
	text-align: left;
}

.rp-analysis p {
	font-size: 16px;
	line-height: 1.4;
	margin: 0 0 14px;
	color: var(--rp-text-muted);
}

/* ——— CTA ——— */
.rp-btn {
	display: inline-block;
	width: 100%;
	max-width: 100%;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	padding: 15px 30px;
	margin-top: 8px;
	background: var(--rp-cta);
	color: var(--rp-white) !important;
	text-decoration: none !important;
	border: 0;
	cursor: pointer;
	transition: background 0.2s ease;
}

.rp-btn:hover {
	background: var(--rp-cta-hover);
	color: var(--rp-white) !important;
}

@media (min-width: 750px) {
	.rp-btn--narrow {
		width: 45%;
		margin-left: auto;
		margin-right: auto;
		display: block;
	}
}

/* ——— Progress bars ——— */
.rp-metrics {
	margin: 20px 0;
}

.rp-metric {
	margin-bottom: 12px;
}

.rp-metric__label {
	font-size: 14px;
	margin-bottom: 4px;
}

.rp-progressbar {
	width: 100%;
	height: 30px;
	background: var(--rp-progress-bg);
	border-radius: 2px;
	overflow: hidden;
	position: relative;
}

.rp-progressbar__fill {
	height: 100%;
	background: var(--rp-progress-fill);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	transition: width 1s ease-in-out;
	min-width: 0;
}

.rp-progressbar__pct {
	color: var(--rp-white);
	padding-right: 15px;
	font-size: 13px;
	font-weight: 600;
}

/* ——— Pros / cons ——— */
.rp-pros-cons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 16px;
}

.rp-pros-cons__col {
	flex: 1 1 240px;
	min-width: 0;
}

.rp-pros-cons h4 {
	font-family: var(--rp-font-heading);
	font-size: 16px;
	margin: 0 0 8px;
}

.rp-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rp-list li {
	position: relative;
	padding-left: 36px;
	margin-bottom: 10px;
	font-size: 15px;
	line-height: 1.35;
}

.rp-list--pro .fa,
.rp-list--con .fa {
	position: absolute;
	left: 0;
	top: 0;
	font-size: 28px;
}

.rp-list--pro .fa {
	color: var(--rp-pro);
}

.rp-list--con .fa {
	color: var(--rp-con);
}

@media (max-width: 749px) {
	.rp-list--pro .fa,
	.rp-list--con .fa {
		font-size: 22px;
	}
}

/* ——— Main image ——— */
.rp-main-image {
	margin: 15px 0;
	text-align: center;
}

.rp-main-image img {
	max-width: 100%;
	height: auto;
	border-radius: 15px;
}

/* ——— Content / posts ——— */
.rp-content {
	font-size: 16px;
	line-height: 1.5;
	color: var(--rp-text-muted);
	width: 100%;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

/* Clear floats from classic .alignleft / .alignright so the column stays centered */
.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.rp-content .alignwide {
	max-width: var(--rp-max);
	margin-left: auto;
	margin-right: auto;
}

.rp-content .aligncenter,
.entry-content .wp-block-image.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.rp-content img {
	max-width: 100%;
	height: auto;
}

.rp-content .wp-block-image {
	margin-left: auto;
	margin-right: auto;
}

/* Single post: keep Gutenberg full/wide blocks inside the theme column (reference layout) */
.single .rp-content .alignfull {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.single .rp-content .alignwide {
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.single .site-main {
	overflow-x: hidden;
}

/* Static front page & pages: block editor lists / query match theme column */
.rp-front-page .entry-content,
.rp-page .entry-content {
	overflow-x: hidden;
}

.rp-front-page .entry-content .wp-block-query,
.rp-front-page .entry-content .wp-block-post-template,
.rp-front-page .entry-content .wp-block-latest-posts,
.rp-page .entry-content .wp-block-query,
.rp-page .entry-content .wp-block-post-template {
	width: 100%;
	max-width: min(100%, var(--rp-max));
	margin-left: auto;
	margin-right: auto;
}

.rp-content .wp-block-quote {
	border-left: 4px solid var(--rp-border);
	padding-left: 1rem;
	margin: 1.5rem 0;
	font-style: italic;
	color: var(--rp-text-muted);
}

/* ——— Footer ——— */
.rp-footer {
	text-align: center;
	padding: 24px 15px;
	font-size: 13px;
	color: var(--rp-label);
	border-top: 1px solid var(--rp-divider);
	margin-top: 40px;
}

.rp-footer a {
	color: inherit;
}

/* ——— Navigation (nested submenus) ——— */
.rp-nav {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
	padding: 0;
}

.rp-nav .rp-nav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 4px 16px;
}

.rp-nav .rp-nav__menu > li {
	position: relative;
}

.rp-nav .rp-nav__menu a {
	color: var(--rp-navy);
	text-decoration: none;
	font-weight: 500;
	display: inline-block;
	padding: 6px 4px;
}

.rp-nav .rp-nav__menu a:hover,
.rp-nav .rp-nav__menu a:focus {
	text-decoration: underline;
}

/* Dropdown submenus */
.rp-nav .sub-menu {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 220px;
	z-index: 1001;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: var(--rp-white);
	box-shadow: var(--rp-shadow-header);
	text-align: left;
}

.rp-nav .sub-menu .sub-menu {
	left: 100%;
	top: 0;
	margin-left: 2px;
}

.rp-nav .sub-menu a {
	display: block;
	padding: 8px 16px;
	white-space: nowrap;
}

.rp-nav .menu-item-has-children:hover > .sub-menu,
.rp-nav .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

@media (max-width: 749px) {
	.rp-nav {
		justify-content: center;
		width: 100%;
	}

	.rp-nav .rp-nav__menu {
		flex-direction: column;
		align-items: stretch;
		justify-content: center;
		gap: 0;
	}

	.rp-nav .rp-nav__menu > li {
		position: static;
		border-bottom: 1px solid var(--rp-divider);
	}

	.rp-nav .sub-menu {
		position: static;
		display: block;
		box-shadow: none;
		padding-left: 1rem;
		min-width: 0;
	}

	.rp-nav .sub-menu .sub-menu {
		margin-left: 0;
		padding-left: 1rem;
	}
}

/* ——— Entry meta / footer ——— */
.entry-meta {
	font-size: 14px;
	color: var(--rp-label);
	text-align: center;
	margin: 0 0 1rem;
	line-height: 1.5;
}

.entry-meta--single {
	margin-bottom: 1.25rem;
}

.entry-meta a {
	color: var(--rp-navy);
	text-decoration: none;
}

.entry-meta a:hover {
	text-decoration: underline;
}

.entry-meta .meta-sep {
	color: var(--rp-label);
}

.entry-footer {
	margin-top: 1.75rem;
	padding-top: 1rem;
	border-top: 1px solid var(--rp-divider);
	font-size: 14px;
	color: var(--rp-text-muted);
	line-height: 1.6;
}

.entry-footer--page {
	border-top: 0;
	margin-top: 1rem;
	padding-top: 0;
}

.entry-footer .cat-links,
.entry-footer .tags-links,
.entry-footer .comments-link,
.entry-footer .edit-link {
	display: inline-block;
	margin-right: 0.5rem;
	margin-bottom: 0.35rem;
}

.entry-footer a {
	color: var(--rp-blue);
}

.more-link {
	font-weight: 600;
	white-space: nowrap;
}

/* ——— Archive: post card ——— */
.rp-archive-card {
	margin-top: 0;
	padding: 12px 0;
}

.rp-archive-card__thumb {
	margin: 12px 0 14px;
	border-radius: 8px;
	overflow: hidden;
	line-height: 0;
	background: var(--rp-section-bg);
}

.rp-archive-card__thumb a {
	display: block;
}

.rp-archive-card__thumb img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.rp-archive-card__title {
	font-family: var(--rp-font-heading);
	font-size: 22px;
	text-align: left;
	margin: 0 0 8px;
	line-height: 1.25;
}

.rp-archive-card__title a {
	color: var(--rp-navy);
	text-decoration: none;
}

.rp-archive-card__title a:hover {
	text-decoration: underline;
	color: var(--rp-blue);
}

.rp-archive-card .entry-meta {
	text-align: left;
}

.rp-archive-card .entry-summary {
	margin-top: 8px;
}

.rp-archive-excerpt__text {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--rp-text-muted);
}

.rp-read-more-wrap {
	margin: 0;
}

.rp-read-more-wrap .rp-read-more {
	display: inline-block;
	width: auto;
	max-width: 100%;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	margin-top: 0;
}

/* ——— Author bio ——— */
.rp-author-bio {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 2rem;
	padding: 20px;
	background: var(--rp-section-bg);
	border-radius: 5px;
	border: 1px solid var(--rp-border);
}

.rp-author-bio__avatar img {
	border-radius: 50%;
	display: block;
}

.rp-author-bio__text {
	flex: 1 1 200px;
	min-width: 0;
}

.rp-author-bio__title {
	font-family: var(--rp-font-heading);
	font-size: 18px;
	margin: 0 0 8px;
	text-align: left;
	color: var(--rp-navy);
}

.rp-author-bio__desc {
	font-size: 15px;
	margin: 0;
}

.rp-author-bio__more {
	margin: 12px 0 0;
	font-size: 14px;
}

/* ——— Multipage post (nextpage) ——— */
.page-links {
	margin: 1.5rem 0;
	font-size: 14px;
}

.page-links-title {
	margin-right: 8px;
	font-weight: 600;
}

.page-link-num {
	display: inline-block;
	margin: 0 4px 4px 0;
	min-width: 2rem;
	text-align: center;
	padding: 4px 8px;
	border: 1px solid var(--rp-border);
	border-radius: 2px;
}

/* ——— Pagination and post navigation ——— */
.rp-pagination-wrap .pagination,
.rp-pagination-wrap .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
	align-items: center;
}

.rp-pagination-wrap .page-numbers {
	display: inline-block;
	padding: 8px 12px;
	border: 1px solid var(--rp-border);
	border-radius: 2px;
	text-decoration: none;
	color: var(--rp-navy);
}

.rp-pagination-wrap .page-numbers.current {
	background: var(--rp-navy);
	color: var(--rp-white);
	border-color: var(--rp-navy);
}

.post-navigation {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rp-divider);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	font-size: 14px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	margin: 0;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation a {
	color: var(--rp-navy);
	text-decoration: none;
	font-weight: 500;
}

.post-navigation a:hover {
	color: var(--rp-blue);
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: 12px;
	color: var(--rp-label);
	font-weight: 400;
	margin-bottom: 4px;
}

.post-navigation .nav-title {
	font-weight: 600;
}

@media (max-width: 549px) {
	.post-navigation {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		text-align: left;
	}
}

/* ——— Comments ——— */
.comments-area {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rp-divider);
}

.comments-area .comment-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.comments-area .comment-list .children {
	list-style: none;
	margin: 1rem 0 0 1.5rem;
	padding: 0;
}

.comments-area .comment-body {
	margin-bottom: 1.25rem;
	font-size: 15px;
	line-height: 1.5;
}

.comments-area .comment-meta {
	font-size: 13px;
	color: var(--rp-label);
	margin-bottom: 0.35rem;
}

.comments-area .comment-meta a {
	color: var(--rp-navy);
	text-decoration: none;
}

.comments-area .reply {
	font-size: 13px;
	margin-top: 0.35rem;
}

.comments-area .comment-respond {
	margin-top: 1.5rem;
}

.comments-area .comment-form label {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 14px;
}

.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 8px 12px;
	font-family: inherit;
	font-size: 15px;
	border: 1px solid var(--rp-border);
	border-radius: 2px;
}

.comments-area .comment-form .form-submit input {
	cursor: pointer;
	padding: 10px 20px;
	background: var(--rp-navy);
	color: var(--rp-white);
	border: 0;
	border-radius: 2px;
	font-weight: 600;
}

.comments-area .comment-form .form-submit input:hover {
	opacity: 0.92;
}
