/*
Theme Name:   Review Child
Template:     generatepress
Description:  Deals Radar Lab — lightweight GeneratePress child theme for review / affiliate funnel pages.
Version:      1.1.0
License:      GPL-2.0-or-later
*/

/* =========================================================================
 * Deals Radar Lab palette
 *   Navy  #0B1F3A  trust / header / headings
 *   Lime  #C6F432  brand highlight (radar, badges, markers) — never text on white
 *   Orange #FF5A1F the ONLY click colour: buttons, prices, blips
 *   Page  #F3F5F9  calm grey so white product cards pop
 * ====================================================================== */
:root {
	--rc-navy: #0B1F3A;
	--rc-navy-2: #132C52;
	--rc-lime: #C6F432;
	--rc-cta: #FF5A1F;
	--rc-cta-dark: #E54A12;
	--rc-ink: #1E293B;
	--rc-muted: #64748B;
	--rc-line: #E2E8F0;
	--rc-page: #F3F5F9;
	--rc-card: #FFFFFF;
	--rc-good: #15803D;
	--rc-bad: #DC2626;
	--rc-radius: 14px;
	--rc-shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 24px rgba(11, 31, 58, .08);
}

body {
	-webkit-font-smoothing: antialiased;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4 { color: var(--rc-navy); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.15; }
h2 { font-size: clamp(22px, 3.6vw, 30px); }

/* Readable article column for funnel pages */
.single .entry-content,
.page .entry-content { font-size: 18px; line-height: 1.7; }

/* Content cards */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation { border-radius: var(--rc-radius); box-shadow: var(--rc-shadow); }

/* Lime highlighter for key phrases: <mark> */
mark { background: linear-gradient(transparent 55%, var(--rc-lime) 55%); color: inherit; padding: 0 2px; }

/* -------------------------------------------------------------------------
 * Header + logo
 * ---------------------------------------------------------------------- */
.site-header { border-bottom: 3px solid var(--rc-lime); }
.inside-header { padding-top: 14px; padding-bottom: 14px; }
.rc-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; }
.rc-brand svg { width: 44px; height: 44px; flex: none; }
.rc-brand-text { color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.rc-brand-hl { color: var(--rc-cta); }
.rc-brand-tag {
	display: inline-block; margin-left: 8px; padding: 4px 7px 3px; border-radius: 6px;
	background: var(--rc-lime); color: var(--rc-navy); font-size: 12px; letter-spacing: .14em; vertical-align: 4px;
}
.main-title { margin: 0; line-height: 1; }
@media (max-width: 480px) {
	.rc-brand svg { width: 36px; height: 36px; }
	.rc-brand-text { font-size: 21px; }
}

/* -------------------------------------------------------------------------
 * [cta] button — the one thing that should grab the eye
 * ---------------------------------------------------------------------- */
.rc-cta-wrap { text-align: center; margin: 1.6em 0; }
.rc-cta {
	display: inline-block;
	background: var(--rc-cta);
	color: #fff !important;
	font-weight: 800;
	font-size: 1.1em;
	letter-spacing: .01em;
	padding: 16px 36px;
	border-radius: 10px;
	text-decoration: none !important;
	box-shadow: 0 6px 18px rgba(255, 90, 31, .35);
	transition: background .15s, transform .15s, box-shadow .15s;
}
.rc-cta::after { content: " \2192"; }
.rc-cta:hover { background: var(--rc-cta-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 90, 31, .4); }
.rc-cta-note { display: block; font-size: .8em; color: var(--rc-muted); margin-top: 8px; }

/* -------------------------------------------------------------------------
 * [product] box
 * ---------------------------------------------------------------------- */
.rc-product {
	position: relative; display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center;
	background: var(--rc-card); border: 2px solid var(--rc-navy); border-radius: var(--rc-radius);
	padding: 28px 24px 24px; margin: 2em 0; box-shadow: var(--rc-shadow);
}
.rc-badge {
	position: absolute; top: -14px; left: 20px;
	background: var(--rc-lime); color: var(--rc-navy);
	font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
	padding: 5px 12px; border-radius: 999px; box-shadow: 0 2px 6px rgba(11, 31, 58, .15);
}
.rc-product-img { display: block; background: #fff; border-radius: 10px; }
.rc-product-img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.rc-product-name { margin: 0 0 6px; font-size: 1.35em; }
.rc-product-points { list-style: none; margin: 12px 0; padding: 0; }
.rc-product-points li { position: relative; padding-left: 26px; margin: 4px 0; font-size: .95em; }
.rc-product-points li::before { content: "\2713"; position: absolute; left: 0; color: var(--rc-good); font-weight: 800; }
.rc-price { font-size: 1.6em; font-weight: 800; color: var(--rc-navy); margin: 8px 0 14px; }
.rc-price s { font-size: .6em; color: var(--rc-muted); font-weight: 500; margin-left: 6px; }
.rc-product .rc-cta { display: block; text-align: center; }
@media (max-width: 640px) {
	.rc-product { grid-template-columns: 1fr; padding: 28px 18px 18px; }
	.rc-product-img { max-width: 180px; margin: 0 auto; }
}

/* -------------------------------------------------------------------------
 * [rating] stars
 * ---------------------------------------------------------------------- */
.rc-rating { font-size: 1.05em; font-weight: 800; color: var(--rc-navy); }
.rc-stars { position: relative; display: inline-block; color: #CBD5E1; letter-spacing: 2px; }
.rc-stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: #FFB400; }

/* -------------------------------------------------------------------------
 * [proscons] boxes
 * ---------------------------------------------------------------------- */
.rc-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.5em 0; }
.rc-box { border-radius: 12px; padding: 18px 20px; background: var(--rc-page); border-top: 4px solid; }
.rc-box h4 { margin: 0 0 8px; font-size: 1em; text-transform: uppercase; letter-spacing: .06em; }
.rc-box ul { margin: 0 0 0 1.1em; }
.rc-pros { border-color: var(--rc-good); }
.rc-cons { border-color: var(--rc-bad); }
.rc-pros h4 { color: var(--rc-good); }
.rc-cons h4 { color: var(--rc-bad); }
@media (max-width: 640px) { .rc-proscons { grid-template-columns: 1fr; } }

/* Affiliate disclosure */
.rc-disclosure { font-size: .8em; color: var(--rc-muted); border-left: 3px solid var(--rc-lime); padding-left: 10px; margin-bottom: 1.5em; }

/* -------------------------------------------------------------------------
 * Sticky mobile CTA bar
 * ---------------------------------------------------------------------- */
.rc-sticky { display: none; }
@media (max-width: 768px) {
	.rc-sticky {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
		background: var(--rc-navy); padding: 10px 16px; box-shadow: 0 -4px 16px rgba(11, 31, 58, .25); text-align: center;
	}
	.rc-sticky .rc-cta { display: block; padding: 13px; font-size: 1em; box-shadow: none; }
	body.has-rc-sticky { padding-bottom: 72px; }
}

/* Footer */
.site-info { border-top: 3px solid var(--rc-lime); }

/* Byline + footer trust links */
.rc-byline { font-size: .85em; color: var(--rc-muted); margin-bottom: .8em; }
.rc-byline a { color: var(--rc-muted); text-decoration: underline; }
.inside-site-info { flex-direction: column; gap: 10px; text-align: center; }
.rc-footer-nav ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.rc-footer-nav a { color: #fff; font-size: 14px; }
.rc-footer-nav a:hover { color: var(--rc-lime); }
.rc-copy { display: block; font-size: 13px; color: #CBD5E1; }

/* Cookie consent banner */
.rc-consent {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 560px; margin: 0 auto;
	background: var(--rc-navy); color: #E2E8F0; border-radius: var(--rc-radius); padding: 14px 18px 16px;
	box-shadow: 0 10px 30px rgba(11, 31, 58, .35); font-size: 14px; line-height: 1.5;
	max-height: calc(100vh - 32px); overflow-y: auto;
}
.rc-consent[hidden], .rc-consent [hidden] { display: none !important; }
.rc-consent-skip {
	display: block; margin: 0 0 8px; padding: 0; background: none; border: 0; cursor: pointer;
	color: #94A3B8; font-size: 12px; text-decoration: underline;
}
.rc-consent-skip:hover { color: #E2E8F0; }
.rc-consent-text { margin: 0 0 12px; }
.rc-consent a { color: var(--rc-lime); }
.rc-consent-btns { display: flex; gap: 10px; }
.rc-consent-btns button { flex: 1; padding: 11px; border-radius: 8px; font-weight: 700; font-size: 15px; cursor: pointer; }
.rc-btn-main { border: 2px solid var(--rc-lime); background: var(--rc-lime); color: var(--rc-navy); }
.rc-btn-main:hover { background: #d6fb5c; }
.rc-btn-ghost { border: 2px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.rc-btn-ghost:hover { border-color: #fff; }

/* Manage-cookies panel */
.rc-consent-prefs { margin: 0 0 12px; border-top: 1px solid rgba(255, 255, 255, .12); }
.rc-pref { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); cursor: pointer; }
.rc-pref-text strong { display: block; color: #fff; font-size: 14px; }
.rc-pref-text small { display: block; color: #94A3B8; font-size: 12.5px; line-height: 1.45; }
.rc-switch {
	appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 44px; height: 24px; margin: 0;
	border-radius: 999px; background: #475569; cursor: pointer; transition: background .15s;
}
.rc-switch::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
	background: #fff; transition: transform .15s;
}
.rc-switch:checked { background: var(--rc-lime); }
.rc-switch:checked::after { transform: translateX(20px); background: var(--rc-navy); }
.rc-switch:disabled { opacity: .55; cursor: not-allowed; }
.rc-switch:focus-visible { outline: 2px solid var(--rc-lime); outline-offset: 2px; }

.has-rc-sticky .rc-consent { bottom: 84px; max-height: calc(100vh - 100px); }
.rc-cookie-settings { color: #CBD5E1; font-size: 13px; text-decoration: underline; }

/* Keep GeneratePress's global button hover/focus colours off the banner */
.rc-consent .rc-consent-skip,
.rc-consent .rc-consent-skip:hover,
.rc-consent .rc-consent-skip:focus { background: none; }
.rc-consent .rc-btn-ghost:hover,
.rc-consent .rc-btn-ghost:focus { background: rgba(255, 255, 255, .08); color: #fff; border-color: #fff; }
.rc-consent .rc-btn-main:hover,
.rc-consent .rc-btn-main:focus { background: #d6fb5c; color: var(--rc-navy); }

/* -------------------------------------------------------------------------
 * [compare] cards — side by side on desktop, stacked on mobile.
 * Subgrid keeps each comparison point on the same line across cards.
 * ---------------------------------------------------------------------- */
.rc-compare {
	display: grid; grid-template-columns: repeat(var(--rc-cols), minmax(0, 1fr));
	grid-template-rows: repeat(var(--rc-rows), auto); column-gap: 14px; margin: 2.2em 0; font-size: 15px;
}
.rc-cmp-card {
	display: grid; grid-row: span var(--rc-rows); grid-template-rows: subgrid; row-gap: 0;
	position: relative; background: var(--rc-card); border: 1px solid var(--rc-line); border-radius: var(--rc-radius); padding: 0 16px;
}
.rc-cmp-card.is-featured { border: 2px solid var(--rc-navy); box-shadow: var(--rc-shadow); }
.rc-cmp-head { padding: 26px 0 12px; border-bottom: 1px solid var(--rc-line); }
.rc-cmp-head .rc-badge { left: 14px; }
.rc-cmp-name { margin: 0 0 4px; font-size: 1.2em; }
.rc-cmp-row { padding: 10px 0; border-bottom: 1px solid var(--rc-line); }
.rc-cmp-label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rc-muted); }
.rc-cmp-val { display: block; font-weight: 600; color: var(--rc-ink); }
.rc-cmp-foot { padding: 14px 0 16px; align-self: end; }
.rc-cmp-foot .rc-cta { display: block; text-align: center; padding: 12px; font-size: 1em; }
@media (max-width: 700px) {
	.rc-compare { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 24px; }
	.rc-cmp-card { grid-row: auto; grid-template-rows: none; }
	.rc-cmp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; }
	.rc-cmp-label { flex: 1; }
	.rc-cmp-val { text-align: right; flex: 1; }
}

/* -------------------------------------------------------------------------
 * Homepage
 * ---------------------------------------------------------------------- */
.rc-hero { text-align: center; padding: 8px 0 28px; border-bottom: 1px solid var(--rc-line); margin-bottom: 28px; }
.rc-hero h1 { margin: 0 0 12px; }
.rc-hero-sub { font-size: 1.1em; color: var(--rc-muted); max-width: 600px; margin: 0 auto 18px; }
.rc-hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: .92em; font-weight: 600; color: var(--rc-navy); }
.rc-hero-points li::before { content: "\2713\00a0"; color: var(--rc-good); }
.rc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 1em 0 2em; counter-reset: rcstep; }
.rc-step { background: var(--rc-page); border-radius: 12px; padding: 16px; font-size: .92em; }
.rc-step strong { display: block; color: var(--rc-navy); margin-bottom: 4px; }
.rc-step strong::before {
	counter-increment: rcstep; content: counter(rcstep); display: inline-grid; place-items: center;
	width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--rc-lime); font-size: 13px;
}
@media (max-width: 640px) { .rc-steps { grid-template-columns: 1fr; } }

.rc-review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 1em 0 2em; }
.rc-review-card {
	display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--rc-card);
	border: 1px solid var(--rc-line); border-radius: var(--rc-radius); text-decoration: none !important; color: var(--rc-ink);
	transition: border-color .15s, transform .15s;
}
.rc-review-card:hover { border-color: var(--rc-navy); transform: translateY(-2px); }
.rc-review-thumb { width: 100%; height: auto; border-radius: 8px; }
.rc-review-cat { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rc-muted); }
.rc-review-title { color: var(--rc-navy); font-size: 1.08em; line-height: 1.3; }
.rc-review-excerpt { font-size: .9em; color: var(--rc-muted); }
.rc-review-more { margin-top: auto; font-weight: 700; color: var(--rc-cta); font-size: .9em; }
.rc-home-note { font-size: .85em; color: var(--rc-muted); text-align: center; }

/* Article helpers: callout box, and highlighted placeholders still to fill */
.rc-callout { background: var(--rc-page); border-left: 4px solid var(--rc-navy); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 1.5em 0; }
.rc-callout > :last-child { margin-bottom: 0; }
.rc-todo { background: #FFF4D6; outline: 1px dashed #E0A800; padding: 0 3px; }

/* Above-the-fold on phones: answer + product visible as early as possible */
.rc-lead { font-size: 1.05em; }
@media (max-width: 640px) {
	.single h1.entry-title { font-size: 24px; line-height: 1.2; }
	.rc-byline { margin-bottom: .4em; }
	.rc-disclosure { margin-bottom: 1em; }
	.rc-product { margin-top: 1.4em; }

	/* Compact cookie banner on phones */
	.rc-consent { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px 12px; font-size: 13px; line-height: 1.4; }
	.rc-consent-skip { margin-bottom: 4px; }
	.rc-consent-text { margin-bottom: 8px; }
	.rc-consent-btns button { padding: 9px; font-size: 14px; }
}

/* Score breakdown table (how each product's score was calculated) */
.rc-table-wrap { overflow-x: auto; margin: 1.5em 0; -webkit-overflow-scrolling: touch; }
.rc-score-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.rc-score-table th, .rc-score-table td { padding: 9px 10px; border-bottom: 1px solid var(--rc-line); text-align: center; }
.rc-score-table th:first-child, .rc-score-table td:first-child { text-align: left; }
.rc-score-table thead th { background: var(--rc-navy); color: #fff; font-size: 13px; }
.rc-score-table thead th:first-child { border-radius: 10px 0 0 0; }
.rc-score-table thead th:last-child { border-radius: 0 10px 0 0; }
.rc-score-table .rc-total td, .rc-score-table .rc-total th { font-weight: 800; color: var(--rc-navy); background: var(--rc-page); }
.rc-note { font-size: .88em; color: var(--rc-muted); }

/* [product] box without a photo: use the full width — info left, price + button right */
.rc-product.no-img { grid-template-columns: 1fr; }
.rc-product.no-img .rc-product-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: center; }
.rc-product.no-img .rc-product-points { margin-bottom: 0; }
.rc-product.no-img .rc-product-buy { text-align: center; }
.rc-product.no-img .rc-price { margin-top: 0; }
@media (max-width: 640px) {
	.rc-product.no-img .rc-product-body { grid-template-columns: 1fr; gap: 14px; }
}

/* Product photos: credits, comparison-card images, in-article figures */
.rc-product-media { min-width: 0; }
.rc-credit, .rc-figure figcaption { display: block; margin-top: 6px; font-size: 11.5px; color: var(--rc-muted); text-align: center; }
.rc-cmp-img { display: block; width: 100%; height: 150px; object-fit: contain; margin: 0 0 10px; background: #fff; }
.rc-figure { margin: 1.2em auto 1.4em; max-width: 520px; }
.rc-figure img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; border-radius: 10px; background: #fff; }

/* Audit fixes: "Our score" label, legible small text (>= 12px), score table fits phones */
.rc-score-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--rc-muted); margin-right: 2px; }
.rc-credit, .rc-figure figcaption, .rc-cmp-label { font-size: 12px; }
@media (max-width: 640px) {
	.rc-score-table { min-width: 0; font-size: 13px; table-layout: fixed; }
	.rc-score-table th, .rc-score-table td { padding: 8px 4px; overflow-wrap: anywhere; }
	.rc-score-table th:first-child, .rc-score-table td:first-child { width: 34%; }
	.rc-score-table thead th { font-size: 12px; }
	.rc-score-table .rc-note { display: none; }
}

/* Author box (end of every review) */
.rc-author { margin: 2.5em 0 0; padding: 18px 20px; background: var(--rc-page); border-radius: var(--rc-radius); border-left: 4px solid var(--rc-lime); font-size: 15px; }
.rc-author p { margin: 0 0 8px; }
.rc-author p:last-child { margin-bottom: 0; }
.rc-author-name { font-weight: 800; color: var(--rc-navy); }

/* Header menu: compact, on the navy header */
.main-navigation .main-nav ul li a { font-weight: 700; font-size: 15px; line-height: 48px; padding-left: 14px; padding-right: 14px; }
.main-navigation .main-nav ul ul li a { line-height: 1.4; padding-top: 10px; padding-bottom: 10px; font-weight: 600; }
.main-navigation .main-nav ul ul { width: 230px; border-radius: 0 0 10px 10px; overflow: hidden; }
/* Phones: logo and menu button on one row */
@media (max-width: 768px) {
	.inside-header { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
	.site-branding-container, .site-branding { margin: 0 !important; }
	.inside-header .main-navigation { width: auto; margin: 0; }
	.main-navigation .menu-toggle { padding: 0 12px; line-height: 44px; font-weight: 700; }
	#site-navigation.toggled { width: 100%; }
}

/* Accessibility (PageSpeed): small orange text needs a darker shade (4.5:1 contrast on white);
   links inside running text are underlined so they don't rely on colour alone. */
.rc-review-more { color: #C2410C; }
.rc-home-note a, .rc-disclosure a, .rc-author a, .rc-byline a { text-decoration: underline; }
