/**
 * RHW blog styles - archive + single.
 * Tokens taken from the site's Kadence global palette and typography so the
 * blog reads as part of the same site rather than a bolted-on section.
 */

:root {
	--rhw-accent: #ffb600;
	--rhw-gold-deep: #8a6200;   /* accessible gold for text on white (4.6:1) */
	--rhw-gold-mid: #c98a00;
	--rhw-gold-soft: rgba(255, 182, 0, 0.16);
	--rhw-ink: #212223;
	--rhw-muted: #6e7a84;
	--rhw-line: #edf2f7;
	--rhw-tint: #f7fafc;
	--rhw-cta: linear-gradient(135deg, rgb(255, 132, 0) 0%, rgb(255, 217, 61) 100%);
	--rhw-card-radius: 15px;
	--rhw-pill-radius: 22px;
}

.rhw-blog { font-family: Poppins, sans-serif; color: var(--rhw-ink); }
.rhw-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- shared hero ---------- */
.rhw-hero {
	background: linear-gradient(100deg, #fff 60%, rgba(255, 182, 0, 0.55) 100%);
	padding: 72px 0 56px;
}
.rhw-hero__eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rhw-gold-deep);
	margin: 0 0 14px;
}
.rhw-hero h1 {
	font-size: clamp(30px, 5vw, 52px);
	line-height: 1.15;
	font-weight: 700;
	margin: 0 0 18px;
	color: var(--rhw-ink);
	/* the theme applies text-transform: capitalize globally to headings, which
	   title-cases prepositions in post titles - keep blog titles as written. */
	text-transform: none;
}
.rhw-hero h1 mark { background: none; color: var(--rhw-accent); }
.rhw-hero__lede {
	font-size: 18px;
	line-height: 1.65;
	color: var(--rhw-muted);
	max-width: 62ch;
	margin: 0;
}

/* ---------- category pills ---------- */
.rhw-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.rhw-cats a {
	display: inline-block;
	padding: 8px 18px;
	border: 1px solid rgba(255, 182, 0, 0.55);
	border-radius: var(--rhw-pill-radius);
	font-size: 14px;
	font-weight: 500;
	color: var(--rhw-gold-deep);
	text-decoration: none;
	background: #fff;
	transition: all 0.18s ease;
}
.rhw-cats a:hover, .rhw-cats a[aria-current="page"] {
	background: var(--rhw-cta);
	border-color: transparent;
	color: var(--rhw-ink);
	font-weight: 600;
}

/* ---------- archive grid ---------- */
.rhw-archive { padding: 56px 0 80px; }
.rhw-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
@media (max-width: 1024px) { .rhw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .rhw-grid { grid-template-columns: 1fr; } }

.rhw-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--rhw-line);
	border-radius: var(--rhw-card-radius);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rhw-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(33, 34, 35, 0.10); }
.rhw-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rhw-tint); }
.rhw-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rhw-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.rhw-card__meta {
	display: flex; align-items: center; gap: 10px;
	font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--rhw-muted); margin-bottom: 12px;
}
.rhw-tag {
	background: rgba(255, 182, 0, 0.16);
	color: #8a6200;
	padding: 4px 12px;
	border-radius: var(--rhw-pill-radius);
	font-weight: 600;
	letter-spacing: 0.04em;
}
.rhw-card__body h2, .rhw-card__body h3 {
	font-size: 20px; line-height: 1.35; font-weight: 600; margin: 0 0 12px;
	text-transform: none;
}
.rhw-card__body h2 a, .rhw-card__body h3 a { color: var(--rhw-ink); text-decoration: none; }
.rhw-card__body h2 a:hover, .rhw-card__body h3 a:hover { color: var(--rhw-gold-deep); }
.rhw-card__excerpt { font-size: 15px; line-height: 1.65; color: var(--rhw-muted); margin: 0 0 20px; }
.rhw-card__more {
	margin-top: auto; font-size: 14px; font-weight: 600;
	color: var(--rhw-gold-deep); text-decoration: none;
}
.rhw-card__more:hover { color: var(--rhw-ink); }

/* ---------- featured (lead) post ---------- */
.rhw-lead {
	display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
	border: 1px solid var(--rhw-line); border-radius: var(--rhw-card-radius);
	overflow: hidden; margin-bottom: 48px; background: #fff;
}
@media (max-width: 900px) { .rhw-lead { grid-template-columns: 1fr; } }
.rhw-lead__media { min-height: 320px; background: var(--rhw-tint); }
.rhw-lead__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rhw-lead__body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.rhw-lead__body h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; font-weight: 700; margin: 0 0 16px; text-transform: none; }
.rhw-lead__body h2 a { color: var(--rhw-ink); text-decoration: none; }
.rhw-lead__body h2 a:hover { color: var(--rhw-gold-deep); }
.rhw-lead__body p { font-size: 16px; line-height: 1.7; color: var(--rhw-muted); margin: 0 0 24px; }

/* ---------- buttons ---------- */
.rhw-btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--rhw-cta); color: #fff !important;
	padding: 14px 30px; border-radius: var(--rhw-pill-radius);
	font-size: 15px; font-weight: 600; text-transform: uppercase;
	letter-spacing: 0.04em; text-decoration: none; border: 0;
	align-self: flex-start; transition: filter 0.18s ease;
}
.rhw-btn:hover { filter: brightness(1.06); }

/* ---------- single post ---------- */
.rhw-single { padding: 0 0 80px; }
.rhw-breadcrumb { font-size: 13px; color: var(--rhw-muted); margin: 0 0 18px; }
.rhw-breadcrumb a { color: var(--rhw-gold-deep); text-decoration: none; }
.rhw-breadcrumb a:hover { text-decoration: underline; }
.rhw-single__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
	font-size: 13px; color: var(--rhw-muted); margin-top: 22px;
}
.rhw-single__figure { margin: -40px auto 0; max-width: 1000px; padding: 0 24px; }
.rhw-single__figure img {
	width: 100%; border-radius: var(--rhw-card-radius);
	box-shadow: 0 18px 50px rgba(33, 34, 35, 0.14); display: block;
}
.rhw-prose { max-width: 780px; margin: 56px auto 0; padding: 0 24px; font-size: 17px; line-height: 1.75; }
.rhw-prose > p { margin: 0 0 24px; }
.rhw-prose h2 {
	font-size: clamp(24px, 3vw, 32px); line-height: 1.3; font-weight: 700;
	margin: 48px 0 18px; padding-left: 16px; border-left: 4px solid var(--rhw-accent);
	text-transform: none;
}
.rhw-prose h3 { font-size: 22px; line-height: 1.4; font-weight: 600; margin: 36px 0 14px; text-transform: none; }
.rhw-prose a { color: var(--rhw-gold-deep); text-decoration: underline; text-decoration-color: var(--rhw-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rhw-prose a:hover { color: var(--rhw-ink); text-decoration-color: var(--rhw-ink); }
.rhw-prose ul, .rhw-prose ol { margin: 0 0 24px; padding-left: 22px; }
.rhw-prose li { margin-bottom: 12px; }
.rhw-prose ul { list-style: none; padding-left: 0; }
.rhw-prose ul li { position: relative; padding-left: 30px; }
.rhw-prose ul li::before {
	content: ""; position: absolute; left: 6px; top: 10px;
	width: 8px; height: 8px; border-radius: 50%; background: var(--rhw-accent);
}
.rhw-prose ol li::marker { color: var(--rhw-accent); font-weight: 700; }
.rhw-prose blockquote {
	margin: 32px 0; padding: 24px 28px; background: var(--rhw-tint);
	border-left: 4px solid var(--rhw-accent); border-radius: 0 var(--rhw-card-radius) var(--rhw-card-radius) 0;
	font-size: 18px; font-style: italic; color: var(--rhw-ink);
}
.rhw-prose blockquote p:last-child { margin-bottom: 0; }
.rhw-prose figure.wp-block-table { margin: 32px 0; overflow-x: auto; }
.rhw-prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.rhw-prose thead th {
	background: var(--rhw-cta); color: var(--rhw-ink); text-align: left;
	padding: 14px 16px; font-weight: 700; font-size: 14px;
}
.rhw-prose tbody td { padding: 13px 16px; border-bottom: 1px solid var(--rhw-line); }
.rhw-prose tbody tr:nth-child(even) { background: var(--rhw-tint); }
.rhw-prose figcaption {
	font-size: 13px; color: var(--rhw-muted); margin-top: 10px; font-style: italic;
}
.rhw-prose img { max-width: 100%; height: auto; border-radius: var(--rhw-card-radius); }

/* ---------- end-of-post CTA ---------- */
.rhw-cta {
	max-width: 780px; margin: 64px auto 0; padding: 40px;
	background: linear-gradient(135deg, rgb(255, 132, 0) 0%, rgb(255, 217, 61) 100%);
	border-radius: var(--rhw-card-radius); color: var(--rhw-ink); text-align: center;
}
.rhw-cta h2 { font-size: 26px; font-weight: 700; margin: 0 0 12px; color: var(--rhw-ink); text-transform: none; }
.rhw-cta p { font-size: 16px; line-height: 1.7; margin: 0 0 26px; color: rgba(33, 34, 35, 0.82); }
/* On the gold band the gradient button would disappear - go solid dark instead. */
.rhw-cta .rhw-btn { align-self: center; background: var(--rhw-ink); color: #fff !important; }
.rhw-cta .rhw-btn:hover { filter: none; background: #000; }

/* ---------- related ---------- */
.rhw-related { padding: 72px 0 0; }
.rhw-related h2 {
	font-size: 28px; font-weight: 700; margin: 0 0 32px; text-align: center;
	text-transform: none;
}

/* ---------- pagination ---------- */
.rhw-pagination { margin-top: 56px; display: flex; justify-content: center; }
.rhw-pagination .page-numbers {
	display: inline-block; min-width: 42px; text-align: center;
	padding: 10px 14px; margin: 0 4px; border-radius: 10px;
	border: 1px solid var(--rhw-line); color: var(--rhw-ink);
	text-decoration: none; font-size: 15px;
}
.rhw-pagination .page-numbers.current,
.rhw-pagination .page-numbers:hover { background: var(--rhw-cta); border-color: transparent; color: var(--rhw-ink); font-weight: 600; }

.rhw-empty { text-align: center; padding: 60px 0; color: var(--rhw-muted); }
