/* Ravento Single Post Template */

:root {
	--rsp-bg: #f2f3f5;
	--rsp-card: #ffffff;
	--rsp-ink: #0d0e12;
	--rsp-text: #24262d;
	--rsp-muted: #5f636e;
	--rsp-line: #e1e3e8;
	--rsp-dark: #121317;
	--rsp-lime: #a3ff12;
	--rsp-lime-ink: #4c8c00;
	--rsp-lime-soft: #edfcd6;
	--rsp-amber-soft: #fdf0d6;
	--rsp-amber-ink: #9a6400;
	--rsp-chip: #e6e8ec;
	--rsp-radius: 20px;
	--rsp-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--rsp-body: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
	--rsp-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--rsp-wrap: 956px;
	--rsp-gutter: 24px;
}

/* ---------- Layout ---------- */

.rsp-single {
	background: var(--rsp-bg);
	color: var(--rsp-text);
	font-family: var(--rsp-body);
	font-size: 17px;
	line-height: 1.6;
	padding-top: 24px;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.rsp-single *,
.rsp-single *::before,
.rsp-single *::after { box-sizing: border-box; }

.rsp-wrap {
	max-width: calc(var(--rsp-wrap) + var(--rsp-gutter) * 2);
	margin-inline: auto !important;
	padding-inline: var(--rsp-gutter);
}
.rsp-single > * + * { margin-block-start: 0; }

.rsp-hero > * { margin-block: 0; }

.rsp-layout {
	display: grid;
	grid-template-columns: 200px minmax(0, 640px);
	column-gap: 30px;
	align-items: start;
	padding-top: 32px;
	padding-bottom: 72px;
}
.rsp-sidebar {
	position: sticky;
	top: 24px;
	max-height: calc(100vh - 48px);
	overflow: auto;
	scrollbar-width: thin;
}
.admin-bar .rsp-sidebar { top: 56px; }
.rsp-sidebar > * + *,
.rsp-main > * + * { margin-block-start: 0; }
.rsp-main > * + * { margin-top: 24px; }

/* ---------- Shared bits ---------- */

.rsp-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-family: var(--rsp-mono);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--rsp-ink);
	line-height: 1.4;
}
.rsp-sq {
	flex: none;
	width: 10px;
	height: 10px;
	background: var(--rsp-lime);
	border: 2px solid var(--rsp-ink);
	border-radius: 1px;
}
.rsp-mono { font-family: var(--rsp-mono); font-size: .82em; }
.rsp-muted { color: var(--rsp-muted); }
.rsp-strong { color: var(--rsp-ink); font-weight: 600; text-decoration: none; }

.rsp-avatar {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--rsp-ink);
	color: var(--rsp-lime);
	font-family: var(--rsp-body);
	font-weight: 700;
	font-size: 13px;
}
.rsp-avatar--lg { width: 54px; height: 54px; border-radius: 12px; font-size: 19px; }

.rsp-single a { color: inherit; }
.rsp-content a,
.rsp-sources a,
.rsp-author__links a {
	color: var(--rsp-ink);
	text-decoration: underline;
	text-decoration-color: var(--rsp-lime);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.rsp-content a:hover,
.rsp-sources a:hover,
.rsp-author__links a:hover { text-decoration-color: var(--rsp-lime-ink); }

.rsp-placeholder {
	padding: 14px 16px;
	border: 1px dashed #b9bdc6;
	border-radius: 10px;
	font: 500 12px/1.4 var(--rsp-mono);
	color: var(--rsp-muted);
	background: #fff;
}

/* ---------- Hero ---------- */

.rsp-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px !important;
	font: 500 12.5px/1.4 var(--rsp-mono);
	color: var(--rsp-muted);
}
.rsp-crumbs a { color: var(--rsp-muted); text-decoration: none; }
.rsp-crumbs a:hover { color: var(--rsp-ink); }
.rsp-crumbs span { opacity: .6; }

.rsp-single figure { margin-inline: 0; }
.rsp-hero__img { margin-bottom: 28px !important; }
.rsp-hero__img img {
	display: block;
	width: 100%;
	aspect-ratio: 956 / 500;
	object-fit: cover;
	border-radius: var(--rsp-radius);
}

.rsp-eyebrow { margin-bottom: 14px !important; letter-spacing: .18em; }

.rsp-single .rsp-title {
	margin: 0 0 18px !important;
	max-width: 820px;
	font-family: var(--rsp-display);
	font-weight: 800;
	font-size: clamp(34px, 5.2vw, 56px);
	line-height: 1;
	letter-spacing: -.035em;
	text-transform: uppercase;
	color: var(--rsp-ink);
}
.rsp-title a { text-decoration: none; }

.rsp-lede {
	max-width: 780px;
	margin: 0 !important;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--rsp-line);
	font-size: 19px;
	line-height: 1.55;
	color: var(--rsp-muted);
}

.rsp-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 26px;
	padding-top: 16px;
	font-size: 13.5px;
	color: var(--rsp-ink);
}
.rsp-byline > span:first-child + span { margin-left: -16px; }

/* ---------- Sidebar ---------- */

.rsp-toc ol {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	border-left: 1px solid var(--rsp-line);
}
.rsp-toc li { margin: 0; }
.rsp-toc a {
	display: block;
	margin-left: -1px;
	padding: 4px 0 4px 13px;
	border-left: 2px solid transparent;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--rsp-muted);
	text-decoration: none;
	transition: color .15s, border-color .15s;
}
.rsp-toc .rsp-toc__l3 a { padding-left: 25px; font-size: 13px; }
.rsp-toc a:hover { color: var(--rsp-ink); }
.rsp-toc a.is-active { color: var(--rsp-ink); font-weight: 600; border-left-color: var(--rsp-lime-ink); }

.rsp-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.rsp-pill {
	display: inline-block;
	padding: 4px 13px;
	border-radius: 99px;
	background: var(--rsp-lime);
	color: var(--rsp-ink) !important;
	font: 700 11px/1.5 var(--rsp-mono);
	text-decoration: none;
}
.rsp-pill:hover { background: var(--rsp-ink); color: var(--rsp-lime) !important; }

/* ---------- Short answer + takeaways ---------- */

.rsp-answer {
	padding: 22px 24px 24px;
	border-radius: var(--rsp-radius);
	background: var(--rsp-dark);
	color: #fff;
}
.rsp-answer .rsp-label { color: var(--rsp-lime); }
.rsp-answer .rsp-sq { border-color: var(--rsp-lime); background: var(--rsp-lime); }
.rsp-answer p:last-child { margin: 0; font-size: 17px; line-height: 1.6; }

.rsp-takeaways {
	padding: 22px 24px;
	border-radius: var(--rsp-radius);
	background: var(--rsp-lime-soft);
	color: var(--rsp-ink);
}
.rsp-takeaways ul { margin: 0; padding-left: 16px; }
.rsp-takeaways li { margin: 0 0 8px; font-size: 15.5px; line-height: 1.5; }
.rsp-takeaways li:last-child { margin-bottom: 0; }
.rsp-takeaways li::marker { color: var(--rsp-lime-ink); }

/* ---------- Post content ---------- */

.rsp-content { counter-reset: rsp-step; }
.rsp-content > * { margin-block: 0; }
.rsp-content > * + * { margin-top: 18px; }

.rsp-content h2,
.rsp-faq h2,
.rsp-sources h2,
.rsp-related h2 {
	margin: 44px 0 14px;
	font-family: var(--rsp-display);
	font-weight: 700;
	font-size: clamp(24px, 3vw, 28px);
	line-height: 1.2;
	letter-spacing: -.025em;
	color: var(--rsp-ink);
	scroll-margin-top: 24px;
}
.rsp-content h3 {
	margin: 32px 0 10px;
	font-family: var(--rsp-display);
	font-weight: 700;
	font-size: 19px;
	line-height: 1.3;
	letter-spacing: -.01em;
	color: var(--rsp-ink);
	scroll-margin-top: 24px;
}
.rsp-content h4 { margin: 24px 0 8px; font-size: 17px; color: var(--rsp-ink); }
.rsp-content > :first-child { margin-top: 20px; }
.rsp-content p,
.rsp-content li { color: var(--rsp-text); }
.rsp-content ul,
.rsp-content ol { padding-left: 22px; }
.rsp-content li + li { margin-top: 6px; }
.rsp-content li::marker { color: var(--rsp-lime-ink); font-weight: 700; }
.rsp-content sup { font: 700 .7em var(--rsp-mono); color: var(--rsp-lime-ink); }
.rsp-content sup a { text-decoration: none; color: inherit; }
.rsp-content :not(pre) > code {
	padding: 2px 6px;
	border-radius: 5px;
	background: var(--rsp-chip);
	font: 500 .85em var(--rsp-mono);
}
.rsp-content blockquote {
	margin-left: 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--rsp-lime);
	font-size: 19px;
	color: var(--rsp-ink);
}
.rsp-content hr { border: 0; border-top: 1px solid var(--rsp-line); }
.rsp-content img { max-width: 100%; height: auto; }

/* Answer-first bold paragraph */
.is-style-rsp-lead { font-weight: 600; color: var(--rsp-ink) !important; }

/* Mono label paragraph */
p.is-style-rsp-label {
	margin-bottom: 4px !important;
	font: 700 11.5px/1.4 var(--rsp-mono);
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--rsp-ink);
}

/* Placeholder note (amber) */
p.is-style-rsp-note {
	display: inline-block;
	padding: 2px 6px;
	background: var(--rsp-amber-soft);
	font: 500 13.5px/1.5 var(--rsp-mono);
	color: var(--rsp-amber-ink) !important;
}

/* Chips: `code` = grey, highlight/mark = amber, bold = lime */
p.is-style-rsp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 0; }
p.is-style-rsp-chips code,
p.is-style-rsp-chips mark,
p.is-style-rsp-chips strong {
	display: inline-block;
	padding: 3px 10px !important;
	border-radius: 99px;
	background: var(--rsp-chip) !important;
	font: 600 11px/1.5 var(--rsp-mono) !important;
	color: var(--rsp-muted) !important;
}
p.is-style-rsp-chips mark { background: var(--rsp-amber-soft) !important; color: var(--rsp-amber-ink) !important; }
p.is-style-rsp-chips strong { background: var(--rsp-lime) !important; color: var(--rsp-ink) !important; }
p.is-style-rsp-chips strong code { padding: 0 !important; background: none !important; color: inherit !important; }

/* Numbered step */
.wp-block-group.is-style-rsp-step {
	position: relative;
	counter-increment: rsp-step;
	padding: 20px 0 22px 54px;
	border-top: 1px solid var(--rsp-line);
}
.wp-block-group.is-style-rsp-step::before {
	content: counter(rsp-step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 18px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--rsp-lime);
	font: 700 12px var(--rsp-mono);
	color: var(--rsp-ink);
}
.wp-block-group.is-style-rsp-step > * { margin-block: 0; }
.wp-block-group.is-style-rsp-step > * + * { margin-top: 12px; }
.wp-block-group.is-style-rsp-step > h3,
.wp-block-group.is-style-rsp-step > h4 { margin-top: 0; font-size: 18px; line-height: 1.6; }
h2 + .wp-block-group.is-style-rsp-step { margin-top: 14px; }
.wp-block-group.is-style-rsp-step + .wp-block-group.is-style-rsp-step { margin-top: 0; }

/* Tip callout */
.wp-block-group.is-style-rsp-tip {
	padding: 18px 22px;
	border: 1px solid var(--rsp-line);
	border-left: 4px solid var(--rsp-lime);
	border-radius: 16px;
	background: var(--rsp-card);
}
.wp-block-group.is-style-rsp-tip > * { margin-block: 0; }
.wp-block-group.is-style-rsp-tip > * + * { margin-top: 6px; }
.wp-block-group.is-style-rsp-tip p { font-size: 15px; line-height: 1.55; color: var(--rsp-ink); }
.wp-block-group.is-style-rsp-tip p.is-style-rsp-label { font-size: 11px; }

/* Table */
.wp-block-table.is-style-rsp-table {
	display: flex;
	flex-direction: column-reverse;
	overflow: hidden;
	border: 1px solid var(--rsp-line);
	border-radius: 16px;
	background: var(--rsp-card);
}
.wp-block-table.is-style-rsp-table .wp-element-caption {
	margin: 0;
	padding: 14px 16px 8px;
	text-align: left;
	font: 700 11px/1.4 var(--rsp-mono);
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--rsp-muted);
}
.wp-block-table.is-style-rsp-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wp-block-table.is-style-rsp-table thead { border: 0; }
.wp-block-table.is-style-rsp-table th {
	padding: 12px 16px;
	border: 0;
	background: var(--rsp-dark);
	color: #fff;
	text-align: left;
	font: 700 13px/1.3 var(--rsp-body);
	text-transform: uppercase;
}
.wp-block-table.is-style-rsp-table td {
	padding: 12px 16px;
	border: 0;
	border-top: 1px solid var(--rsp-line);
	vertical-align: top;
	line-height: 1.45;
}
.wp-block-table.is-style-rsp-table tbody tr:first-child td { border-top: 0; }

/* Code */
.wp-block-code.is-style-rsp-code,
.rsp-content pre.wp-block-code {
	padding: 20px 18px;
	border: 0;
	border-radius: 14px;
	background: var(--rsp-dark);
	color: #f2f3f5;
	font: 500 13px/1.8 var(--rsp-mono);
	overflow-x: auto;
}
.wp-block-code.is-style-rsp-code code,
.rsp-content pre.wp-block-code code { background: none; padding: 0; font: inherit; color: inherit; }

/* Image */
.wp-block-image.is-style-rsp-image img,
.rsp-content .wp-block-image img { border-radius: var(--rsp-radius); }
.wp-block-image.is-style-rsp-image .wp-element-caption,
.rsp-content .wp-block-image .wp-element-caption {
	margin-top: 10px;
	text-align: left;
	font: 400 12px/1.6 var(--rsp-mono);
	color: var(--rsp-muted);
}

/* ---------- FAQ ---------- */

.rsp-faq h2 { margin-top: 20px; }
.rsp-faq__item {
	margin-top: 10px;
	border: 1px solid var(--rsp-line);
	border-radius: 16px;
	background: var(--rsp-card);
	transition: border-color .15s;
}
.rsp-faq__item[open] { border-color: var(--rsp-ink); }
.rsp-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	list-style: none;
	cursor: pointer;
	font-family: var(--rsp-display);
	font-weight: 700;
	font-size: 15.5px;
	line-height: 1.35;
	color: var(--rsp-ink);
}
.rsp-faq__item summary::-webkit-details-marker { display: none; }
.rsp-faq__icon {
	position: relative;
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--rsp-chip);
}
.rsp-faq__icon::before,
.rsp-faq__icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 10px;
	height: 2px;
	margin: -1px 0 0 -5px;
	background: var(--rsp-ink);
	transition: transform .2s;
}
.rsp-faq__icon::after { transform: rotate(90deg); }
.rsp-faq__item[open] .rsp-faq__icon { background: var(--rsp-lime); }
.rsp-faq__item[open] .rsp-faq__icon::after { transform: rotate(0); }
.rsp-faq__a { padding: 0 18px 16px; font-size: 15px; line-height: 1.6; color: var(--rsp-muted); }
.rsp-faq__a p { margin: 0 0 10px; }
.rsp-faq__a p:last-child { margin: 0; }

/* ---------- Sources ---------- */

.rsp-sources h2 { margin-top: 20px; }
.rsp-sources ol { margin: 0; padding-left: 20px; font-size: 14px; color: var(--rsp-muted); }
.rsp-sources li { margin-bottom: 6px; scroll-margin-top: 24px; }
.rsp-sources li::marker { color: var(--rsp-lime-ink); font-weight: 700; }

/* ---------- Author + cite ---------- */

.rsp-author {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 20px;
	border: 1px solid var(--rsp-line);
	border-radius: var(--rsp-radius);
	background: var(--rsp-card);
}
.rsp-author p { margin: 0; }
.rsp-author__name { font-family: var(--rsp-display); font-weight: 700; font-size: 16px; color: var(--rsp-ink); }
.rsp-author__bio { margin-top: 4px !important; font-size: 14px; line-height: 1.5; color: var(--rsp-muted); }
.rsp-author__links { margin-top: 6px !important; font-size: 14px; }

.rsp-cite {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	padding: 18px;
	border: 1px dashed var(--rsp-line);
	border-radius: 16px;
	background: #eceef1;
}
.rsp-cite .rsp-label { margin-bottom: 8px; }
.rsp-cite__text { margin: 0; font: 400 12px/1.7 var(--rsp-mono); color: var(--rsp-muted); word-break: break-word; }
.rsp-cite__copy {
	flex: none;
	padding: 6px 14px;
	border: 0;
	border-radius: 99px;
	background: var(--rsp-ink);
	color: var(--rsp-lime);
	font: 700 12px var(--rsp-mono);
	cursor: pointer;
}
.rsp-cite__copy:hover { background: #2a2c33; }

/* ---------- Related ---------- */

.rsp-related h2 { margin-top: 20px; }
.rsp-related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rsp-card {
	display: flex;
	flex-direction: column;
	padding: 22px 22px 20px;
	border: 1px solid var(--rsp-line);
	border-radius: var(--rsp-radius);
	background: var(--rsp-card);
	color: var(--rsp-ink) !important;
	text-decoration: none !important;
	transition: transform .2s, box-shadow .2s;
}
.rsp-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(13, 14, 18, .08); }
.rsp-card__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 266 / 140;
	object-fit: cover;
	margin-bottom: 18px;
	border-radius: 14px;
	background: var(--rsp-chip);
}
.rsp-card .rsp-label { margin-bottom: 6px; font-size: 10.5px; }
.rsp-card__title { font-family: var(--rsp-display); font-weight: 700; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }

/* ---------- CTA band ---------- */

.rsp-cta {
	position: relative;
	overflow: hidden;
	padding: 96px 0;
	background-color: #0e0f12;
	background-image:
		radial-gradient(circle at 85% 30%, rgba(120, 200, 20, .22), transparent 32%),
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: auto, 70px 70px, 70px 70px;
	color: #fff;
}
.rsp-cta__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-end;
	justify-content: space-between;
}
.rsp-cta__inner > div { max-width: 520px; }
.rsp-single .rsp-cta__title {
	margin: 0 0 18px;
	font-family: var(--rsp-display);
	font-weight: 800;
	font-size: clamp(34px, 4.6vw, 48px);
	line-height: 1.05;
	letter-spacing: -.035em;
	text-transform: uppercase;
	color: #fff;
}
.rsp-cta__text { margin: 0; font-size: 15px; line-height: 1.6; color: #b4b8c2; }
.rsp-btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 6px 6px 6px 20px;
	border-radius: 99px;
	background: var(--rsp-lime);
	color: var(--rsp-ink) !important;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none !important;
	transition: transform .2s;
}
.rsp-btn:hover { transform: translateY(-1px); }
.rsp-btn__arrow {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--rsp-ink);
	color: var(--rsp-lime);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.rsp-layout { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
	.rsp-sidebar {
		position: static;
		max-height: none;
		padding: 18px 18px 6px;
		border: 1px solid var(--rsp-line);
		border-radius: 16px;
		background: var(--rsp-card);
	}
	.rsp-toc ol { margin-bottom: 18px; }
}

@media (max-width: 600px) {
	:root { --rsp-gutter: 16px; }
	.rsp-single { font-size: 16px; }
	.rsp-lede { font-size: 17px; }
	.rsp-byline { gap: 8px 16px; }
	.rsp-byline > span:first-child + span { margin-left: -8px; }
	.rsp-answer,
	.rsp-takeaways { padding: 18px; }
	.rsp-related__grid { grid-template-columns: minmax(0, 1fr); }
	.rsp-cite { flex-direction: column; align-items: flex-start; }
	.wp-block-group.is-style-rsp-step { padding-left: 46px; }
	.wp-block-table.is-style-rsp-table { overflow-x: auto; }
	.wp-block-table.is-style-rsp-table table { min-width: 520px; }
	.rsp-cta { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
	.rsp-single * { transition: none !important; }
}
