/*
Theme Name: Reportana Blog
Theme URI: https://blog.reportana.com
Author: Reportana
Author URI: https://reportana.com
Description: Tema de blocos leve para o blog da Reportana. Cores, fontes e espaçamentos ficam no theme.json; este arquivo guarda apenas os detalhes visuais que o theme.json não cobre.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reportana-blog
*/

/* =========================================================================
   Base
   ====================================================================== */

html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(img) { height: auto; }
::selection { background: var(--wp--preset--color--primary-soft); }

.rb-logo img { border-radius: 0 !important; }

.rb-eyebrow {
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* =========================================================================
   Header — light version of the reportana.com top bar
   (same sizes and buttons as the site, white background)
   ====================================================================== */

.rb-sticky { position: sticky; top: 0; z-index: 50; }
.admin-bar .rb-sticky { top: var(--wp-admin--admin-bar--height, 32px); }

.rb-header {
	background: #FFFFFF;
	border-bottom: 1px solid var(--wp--preset--color--border);
	box-shadow: 0 4px 30px rgba(0, 76, 255, 0.05);
}
.rb-header__inner { padding: 15px 0; }
.rb-header__right { gap: 1.5rem; }

/* Logo: no extra space below, so it centers with the buttons */
.rb-header .rb-logo,
.rb-header .rb-logo a { display: block; margin: 0; line-height: 0; }
.rb-header .rb-logo { flex-shrink: 0; }
.rb-header .rb-logo img { display: block; width: 171px; }

/* "Blog" badge next to the logo (links to the blog home) */
.rb-brand { gap: 0.875rem; }
.rb-brand__tag { margin: 0; padding-left: 0.875rem; border-left: 1px solid var(--wp--preset--color--border); line-height: 1; }
.rb-brand__tag a {
	display: inline-block;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.rb-brand__tag a:hover { background: var(--wp--preset--color--primary); color: #FFFFFF; text-decoration: none; }

/* Subtle link to the main site */
.rb-site-link { margin: 0; font-size: 14px; }
.rb-site-link a { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--wp--preset--color--muted); font-weight: 500; }
.rb-site-link a span { font-size: 0.75em; transition: transform 0.15s ease; }
.rb-site-link a:hover { color: var(--wp--preset--color--primary); text-decoration: none; }
.rb-site-link a:hover span { transform: translate(2px, -2px); }

/* Buttons matching the site (green btn-primary and blue btn-secondary) */
.rb-header__buttons { gap: 0.5rem; }
:is(.rb-btn-primary, .rb-btn-secondary) .wp-block-button__link {
	padding: 13px 18px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
	transition: box-shadow 0.3s ease;
}
.rb-btn-primary .wp-block-button__link { background: var(--wp--preset--color--cta); color: var(--wp--preset--color--ink); }
.rb-btn-primary .wp-block-button__link:hover { background: var(--wp--preset--color--cta); color: var(--wp--preset--color--ink); box-shadow: 0 4px 30px rgba(0, 230, 118, 0.5); text-decoration: none; }
.rb-btn-secondary .wp-block-button__link { background: #1B42DD; color: #FFFFFF; }
.rb-btn-secondary .wp-block-button__link:hover { background: #1B42DD; color: #FFFFFF; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2); text-decoration: none; }

@media (max-width: 900px) {
	.rb-site-link { display: none; }
}
@media (max-width: 520px) {
	.rb-header .rb-logo img { width: 116px !important; }
	.wp-block-buttons > .wp-block-button.rb-btn-secondary { display: none; }
	.rb-brand { gap: 0.6rem; }
	.rb-brand__tag { padding-left: 0.6rem; }
	:is(.rb-btn-primary, .rb-btn-secondary) .wp-block-button__link { padding: 10px 14px; font-size: 14px; }
}

/* =========================================================================
   Blog hero (home, categories, search and 404)
   ====================================================================== */

.rb-blog-hero {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--50);
	border-bottom: 1px solid var(--wp--preset--color--border);
	background:
		radial-gradient(640px 280px at 88% 0%, rgba(0, 230, 118, 0.10), transparent 70%),
		radial-gradient(640px 280px at 12% 0%, rgba(45, 85, 244, 0.08), transparent 70%),
		var(--wp--preset--color--surface);
}
.rb-blog-hero > * + * { margin-top: 1rem; }
.rb-hero-title { margin-top: 0.75rem !important; letter-spacing: -0.02em; text-wrap: balance; }
.rb-hero-lead { color: var(--wp--preset--color--muted); text-wrap: pretty; }
.rb-hero-lead p { margin: 0; }

.rb-hero-search { max-width: 560px; margin: var(--wp--preset--spacing--40) auto 0 !important; }
.rb-hero-search .wp-block-search__inside-wrapper {
	padding: 0.35rem;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	box-shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
}
.rb-hero-search .wp-block-search__input { border: 0 !important; padding: 0.6rem 1rem; background: transparent; outline: 0 !important; font-size: 1rem; }
.rb-hero-search .wp-block-search__button {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: #FFFFFF;
}
.rb-hero-search .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }
.rb-hero-search .wp-block-search__inside-wrapper:focus-within { border-color: var(--wp--preset--color--primary) !important; }

/* =========================================================================
   Category bar ("Todos" + categories)
   ====================================================================== */

.rb-cat-nav { gap: 0.5rem; margin-top: var(--wp--preset--spacing--40) !important; }
.rb-cat-nav > * { margin: 0 !important; flex: none; }
.rb-cat-nav .rb-pills { display: contents; } /* "Todos" and the categories on the same line */
.rb-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.rb-pills li { margin: 0; flex: none; }
.rb-pills a,
.rb-cat-nav__all a {
	display: inline-block;
	padding: 0.45rem 1rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rb-pills a:hover,
.rb-cat-nav__all a:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.rb-pills .current-cat a,
.blog .rb-cat-nav__all a {
	border-color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--contrast);
	color: #FFFFFF;
}
@media (max-width: 781px) {
	/* On mobile: a single row with horizontal scroll */
	.rb-cat-nav, .rb-pills { flex-wrap: nowrap !important; justify-content: flex-start !important; }
	.rb-cat-nav { overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--wp--style--root--padding-left)) !important; margin-right: calc(-1 * var(--wp--style--root--padding-right)) !important; padding: 0 var(--wp--style--root--padding-left); }
	.rb-cat-nav::-webkit-scrollbar { display: none; }
}

/* Badges and labels */
.rb-badge {
	margin: 0;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: var(--wp--preset--color--cta);
	color: var(--wp--preset--color--contrast);
	font-size: 0.75rem;
	font-weight: 600;
}
.rb-cat-label { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.rb-cat-label a { color: var(--wp--preset--color--primary); }
.rb-cat-label a:hover { text-decoration: none; color: var(--wp--preset--color--primary-dark); }
.rb-cat-label .wp-block-post-terms__separator { color: var(--wp--preset--color--muted); }

/* =========================================================================
   Listing body
   ====================================================================== */

.rb-blog-body { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.rb-blog-body > * + * { margin-top: var(--wp--preset--spacing--60); }
.rb-blog-body > .rb-section-title { margin-bottom: calc(var(--wp--preset--spacing--40) - var(--wp--preset--spacing--60)); }
.rb-section-title { padding-top: var(--wp--preset--spacing--50); border-top: 1px solid var(--wp--preset--color--border); }
.rb-blog-body > .rb-featured + .rb-section-title { margin-top: var(--wp--preset--spacing--60); }

/* =========================================================================
   Post cards — clean, no box; on hover only the title turns blue
   ====================================================================== */

.rb-card { position: relative; height: 100%; }
/* Whole card is clickable: the title link stretches over it; the category link stays on top */
.rb-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rb-card .rb-cat-label a { position: relative; z-index: 2; }
.rb-card__image { margin: 0 0 1.25rem !important; }
.rb-card__image img { border-radius: 14px; border: 1px solid var(--wp--preset--color--border); }
.rb-card__body { gap: 0.6rem; }
.rb-card__body > * { margin: 0 !important; }
.rb-card__title { line-height: 1.3; }
.rb-card .wp-block-post-title a { transition: color 0.15s ease; }
.rb-card:hover .wp-block-post-title a { color: var(--wp--preset--color--primary); }
.rb-card__excerpt { color: var(--wp--preset--color--muted); }
.rb-card__excerpt .wp-block-post-excerpt__excerpt { margin: 0; }
.rb-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.rb-card .rb-meta { margin-top: 0.25rem !important; }

/* Home featured post: "showcase" card with light background and green glow */
.rb-featured-card {
	position: relative;
	overflow: hidden;
	padding: clamp(1.25rem, 3vw, 2.5rem);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 24px;
	background:
		radial-gradient(520px 320px at 100% 0%, rgba(0, 230, 118, 0.16), transparent 70%),
		radial-gradient(520px 320px at 0% 100%, rgba(45, 85, 244, 0.10), transparent 70%),
		linear-gradient(135deg, var(--wp--preset--color--primary-soft) 0%, #FFFFFF 60%);
}
.rb-featured-card__cols { position: relative; z-index: 1; margin: 0 !important; gap: clamp(1.5rem, 4vw, 3.5rem) !important; }
.rb-featured-card__image { margin: 0; }
.rb-featured-card__image img {
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.8);
	box-shadow: 0 24px 50px -12px rgba(28, 65, 211, 0.28);
}

.rb-featured-card__body > * { margin: 0 !important; }
.rb-featured-card__body > * + * { margin-top: 1.1rem !important; }
.rb-featured-card__labels { gap: 0.75rem; align-items: center; }
.rb-featured-card__labels > * { margin: 0 !important; }
.rb-featured-card .rb-badge { display: inline-flex; align-items: center; gap: 0.35rem; }
.rb-featured-card .rb-badge::before { content: "★"; font-size: 0.8em; }

.rb-featured-card__title {
	font-size: clamp(1.75rem, 2.6vw, 2.375rem) !important;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.rb-featured-card__title a { transition: color 0.15s ease; }
.rb-featured-card__title a:hover { color: var(--wp--preset--color--primary); }
.rb-featured-card__excerpt { color: var(--wp--preset--color--muted); font-size: 1.0625rem; line-height: 1.7; }
.rb-featured-card__excerpt .wp-block-post-excerpt__excerpt { margin: 0; }
.rb-featured-card__excerpt .wp-block-post-excerpt__more-text { display: none; }

.rb-featured-card__meta {
	gap: 0.75rem;
	align-items: center;
	padding-top: 1.1rem;
	border-top: 1px solid var(--wp--preset--color--border);
}
.rb-featured-card__meta > * { margin: 0 !important; }
.rb-featured-card__meta .wp-block-avatar img { display: block; border-radius: 999px; border: 2px solid #FFFFFF; box-shadow: 0 1px 4px rgba(16, 24, 40, 0.15); }
.rb-featured-card__author { gap: 0.1rem; }
.rb-featured-card__author > * { margin: 0 !important; }
.rb-featured-card__author .wp-block-post-author-name { color: var(--wp--preset--color--contrast); font-weight: 600; font-size: 0.9375rem; }
.rb-featured-card__info { gap: 0.4rem; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--x-small); }
.rb-featured-card__info > * { margin: 0 !important; }

.rb-featured-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.5rem !important;
	padding: 0.8rem 1.4rem;
	border-radius: 8px;
	background: var(--wp--preset--color--primary);
	color: #FFFFFF;
	font-weight: 600;
	transition: background-color 0.15s ease, box-shadow 0.2s ease;
}
.rb-featured-card__cta::after { content: "→"; transition: transform 0.15s ease; }
.rb-featured-card__cta:hover { background: var(--wp--preset--color--primary-dark); color: #FFFFFF; text-decoration: none; box-shadow: 0 8px 24px rgba(45, 85, 244, 0.3); }
.rb-featured-card__cta:hover::after { transform: translateX(3px); }

@media (max-width: 781px) {
	.rb-featured-card { border-radius: 18px; }
	.rb-featured-card__cta { box-sizing: border-box; width: 100%; justify-content: center; }
}

.rb-meta { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--x-small); }
.rb-meta .wp-block-avatar img { border-radius: 999px; display: block; }
.rb-meta > * { margin: 0 !important; }
.rb-meta .wp-block-post-author-name { color: var(--wp--preset--color--contrast); font-weight: 600; }
.rb-dot::before { content: "•"; color: #C5CBD6; }
.rb-vsep { width: 1px; height: 28px; background: var(--wp--preset--color--border); }

/* =========================================================================
   Light Reportana banner
   ====================================================================== */

.rb-cta-banner {
	gap: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--50);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	background:
		radial-gradient(420px 220px at 100% 0%, rgba(0, 230, 118, 0.16), transparent 70%),
		linear-gradient(120deg, var(--wp--preset--color--primary-soft), var(--wp--preset--color--base) 75%);
}
.rb-cta-banner__text { flex: 1 1 420px; max-width: 640px; }
.rb-cta-banner__text > * { margin: 0 !important; }
.rb-cta-banner__text > * + * { margin-top: 0.5rem !important; }
.rb-btn-ghost .wp-block-button__link {
	padding: 13px 18px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
}
.rb-btn-ghost .wp-block-button__link:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); text-decoration: none; }

/* =========================================================================
   Pagination
   ====================================================================== */

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	margin: 0 0.15rem;
	border-radius: 8px;
	color: var(--wp--preset--color--ink);
}
.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}
.wp-block-query-pagination a:hover { text-decoration: none; color: var(--wp--preset--color--primary); }

/* =========================================================================
   Post — hero, cover and columns
   ====================================================================== */

.rb-post-hero {
	background:
		radial-gradient(700px 320px at 85% 0%, rgba(0, 230, 118, 0.10), transparent 70%),
		radial-gradient(700px 320px at 10% 10%, rgba(45, 85, 244, 0.08), transparent 70%),
		var(--wp--preset--color--surface);
	text-align: center;
}
.rb-breadcrumb { color: var(--wp--preset--color--muted); font-weight: 500; }
.rb-breadcrumb > * { margin: 0 !important; }
.rb-breadcrumb a { color: var(--wp--preset--color--primary); }
.rb-breadcrumb__sep { color: #C5CBD6; }
.rb-post-title { letter-spacing: -0.02em; text-wrap: balance; }
.rb-post-lead { color: var(--wp--preset--color--muted); text-wrap: pretty; }
.rb-post-lead .wp-block-post-excerpt__more-text { display: none; }

.rb-post-meta { color: var(--wp--preset--color--muted); align-items: center; }
.rb-post-meta > * { margin: 0 !important; }
.rb-post-meta .wp-block-avatar img { border-radius: 999px; display: block; border: 2px solid var(--wp--preset--color--base); box-shadow: 0 1px 4px rgba(16, 24, 40, 0.12); }
.rb-post-meta__author { text-align: left; line-height: 1.35; }
.rb-post-meta .wp-block-post-author-name { font-weight: 600; }
.rb-post-meta .wp-block-post-author-name a { color: var(--wp--preset--color--contrast); }
.rb-author-role { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--x-small); }

.rb-post-cover {
	position: relative;
	max-width: 1040px !important;
	margin-top: -7rem !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.rb-post-cover img { border-radius: 20px; box-shadow: 0 24px 60px rgba(16, 24, 40, 0.14); }

.rb-post-layout { max-width: 1120px !important; margin-left: auto !important; margin-right: auto !important; }
.rb-aside-sticky { position: sticky; top: 120px; }
@media (max-width: 781px) {
	.rb-post-cover { margin-top: -6rem !important; }
	.rb-post-cover img { border-radius: 14px; }
	.rb-aside-sticky { position: static; }
}

/* Table of contents: in the sidebar (desktop) or above the text (mobile) */
.rb-toc {
	margin: 0;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	background: var(--wp--preset--color--base);
}
.rb-toc__title {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
}
.rb-toc__title::-webkit-details-marker { display: none; }
.rb-toc__title::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s ease; }
.rb-toc[open] .rb-toc__title::after { transform: rotate(-135deg); }
.rb-toc ol { counter-reset: toc; list-style: none; margin: 1rem 0 0; padding: 0; }
.rb-toc li { counter-increment: toc; display: flex; gap: 0.75rem; padding: 0.45rem 0; border-top: 1px solid var(--wp--preset--color--surface); font-size: var(--wp--preset--font-size--small); line-height: 1.5; }
.rb-toc li::before { flex: none; min-width: 1.4em; content: counter(toc, decimal-leading-zero); color: var(--wp--preset--color--primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.rb-toc a { color: var(--wp--preset--color--ink); }
.rb-toc--aside li { font-size: 0.875rem; padding: 0.4rem 0; }

/* Current section (set by assets/js/toc.js while scrolling) */
.rb-toc li { position: relative; transition: color 0.15s ease; }
.rb-toc li.is-active::after {
	content: "";
	position: absolute;
	left: -1.5rem;
	top: 0.35rem;
	bottom: 0.35rem;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--wp--preset--color--primary);
}
.rb-toc li.is-active a { color: var(--wp--preset--color--primary); font-weight: 600; }
.rb-toc--mobile { display: none; margin-bottom: var(--wp--preset--spacing--40); }
@media (max-width: 781px) {
	.rb-toc--mobile { display: block; }
	.rb-toc--aside { display: none; }
}
.rb-toc a:hover { color: var(--wp--preset--color--primary); text-decoration: none; }

/* Sidebar CTA */
.rb-cta-card {
	border: 1px solid var(--wp--preset--color--border);
	background:
		radial-gradient(320px 200px at 100% 0%, rgba(0, 230, 118, 0.14), transparent 70%),
		linear-gradient(180deg, var(--wp--preset--color--primary-soft), var(--wp--preset--color--base));
}
.rb-cta-card .wp-block-image { margin: 0; }
.rb-cta-card .is-style-outline .wp-block-button__link { border: 1px solid var(--wp--preset--color--border); color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--base); }
.rb-cta-card .is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }

/* Post footer: tags and share buttons */
.rb-post-footer { align-items: center; }
.rb-post-tags a {
	display: inline-block;
	margin: 0 0.35rem 0.35rem 0;
	padding: 0.25rem 0.7rem;
	border-radius: 6px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--x-small);
}
.rb-post-tags a:hover { background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary); text-decoration: none; }
.rb-post-tags .wp-block-post-terms__separator { display: none; }

.rb-share { display: flex; align-items: center; gap: 0.5rem; }
.rb-share__label { margin-right: 0.25rem; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--x-small); font-weight: 500; }
.rb-share__btn {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	transition: all 0.15s ease;
}
.rb-share__btn:hover { border-color: var(--wp--preset--color--primary); background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }

.rb-author-box .wp-block-avatar img { border-radius: 999px; }
.rb-author-box .wp-block-post-author-name { font-family: var(--wp--preset--font-family--heading); font-weight: 700; }
.rb-author-box .wp-block-post-author-name a { color: var(--wp--preset--color--contrast); }
.rb-author-box .wp-block-post-author-biography { color: var(--wp--preset--color--muted); margin-top: 0.25rem; }

.rb-related-section { background: var(--wp--preset--color--surface); }

/* =========================================================================
   Post content
   ====================================================================== */

.rb-post-content { font-size: 1.125rem; line-height: 1.8; }
.rb-post-content > * + * { margin-top: 1.4rem; }
.rb-post-content > h2 { margin-top: 3rem; font-size: var(--wp--preset--font-size--x-large); }
.rb-post-content > h3 { margin-top: 2.25rem; font-size: var(--wp--preset--font-size--large); }
.rb-post-content > h2 + *, .rb-post-content > h3 + * { margin-top: 1rem; }
.rb-post-content strong { color: var(--wp--preset--color--contrast); }
.rb-post-content a:not(.wp-element-button) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(45, 85, 244, 0.4); }
.rb-post-content a:not(.wp-element-button):hover { text-decoration-color: currentColor; }
.rb-post-content :where(ul, ol):not([class*="is-style-"]) { padding-left: 1.4rem; }
.rb-post-content :where(ul, ol):not([class*="is-style-"]) li::marker { color: var(--wp--preset--color--primary); font-weight: 600; }
.rb-post-content li + li { margin-top: 0.4rem; }

/* Content images: the only ones with rounded corners */
.rb-post-content .wp-block-image img { border-radius: 14px; border: 1px solid var(--wp--preset--color--border); }
.rb-post-content .wp-element-caption,
.rb-post-content figcaption { margin-top: 0.75rem; text-align: center; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--x-small); }

/* Quote */
.rb-post-content .wp-block-quote {
	margin-left: 0;
	margin-right: 0;
	padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--wp--preset--color--accent);
	border-radius: 0 12px 12px 0;
	background: var(--wp--preset--color--surface);
	font-size: var(--wp--preset--font-size--large);
	font-style: normal;
	color: var(--wp--preset--color--contrast);
}
.rb-post-content .wp-block-quote cite { display: block; margin-top: 0.75rem; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); font-style: normal; }

/* Table */
.wp-block-table {
	overflow-x: auto;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	background: var(--wp--preset--color--base);
}
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.wp-block-table :is(th, td) { padding: 0.9rem 1.1rem; border: 0; border-bottom: 1px solid var(--wp--preset--color--border); text-align: left; vertical-align: top; }
.wp-block-table thead { border-bottom: 0; }
.wp-block-table thead th {
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary-dark);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.wp-block-table tbody tr:last-child td { border-bottom: 0; }
.wp-block-table tbody tr:nth-child(even) td { background: #FAFBFD; }
.wp-block-table tbody tr:hover td { background: var(--wp--preset--color--surface); }
.wp-block-table tbody td:first-child { color: var(--wp--preset--color--contrast); font-weight: 600; }
.wp-block-table figcaption { margin: 0 !important; padding: 0.75rem 1rem; border-top: 1px solid var(--wp--preset--color--border); }

/* List: Checklist */
.is-style-rb-checklist { list-style: none; padding-left: 0 !important; }
.is-style-rb-checklist li { position: relative; padding-left: 2rem; }
.is-style-rb-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.3rem;
	height: 1.3rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231C1E20' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

/* List: Steps */
.is-style-rb-steps { list-style: none; padding-left: 0 !important; counter-reset: step; }
.is-style-rb-steps li { position: relative; counter-increment: step; padding: 0 0 1.25rem 3.25rem; margin: 0 !important; }
.is-style-rb-steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
}
.is-style-rb-steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: calc(1.125rem - 1px);
	top: 2.5rem;
	bottom: 0.25rem;
	width: 2px;
	background: var(--wp--preset--color--primary-soft);
}

/* Boxes: tip, warning, summary, read also */
.rb-callout {
	padding: 1.25rem 1.5rem;
	border: 1px solid #BFF5D6;
	border-radius: 14px;
	background: #F1FDF6;
	font-size: 1rem;
}
.rb-callout > * + * { margin-top: 0.4rem !important; }
.rb-callout__title { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--wp--preset--color--contrast); font-weight: 700; }
.rb-callout__title::before {
	content: "";
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231C1E20' d='M9 21h6v-1H9v1Zm3-19a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2Z'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
}
.rb-callout--warning { border-color: #FDE2B8; background: #FFF8EC; }
.rb-callout--warning .rb-callout__title::before {
	background: #F5A524 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M11 7h2v7h-2zm0 9h2v2h-2z'/%3E%3C/svg%3E") center / 1rem no-repeat;
}

.rb-summary {
	padding: 1.5rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	background: linear-gradient(180deg, var(--wp--preset--color--primary-soft), var(--wp--preset--color--base) 70%);
	font-size: 1rem;
}
.rb-summary > * + * { margin-top: 0.75rem !important; }

.rb-read-also {
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--wp--preset--color--primary);
	border-radius: 0 12px 12px 0;
	background: var(--wp--preset--color--surface);
}
.rb-read-also > * { margin: 0 !important; }
.rb-read-also__link { font-weight: 600; font-size: 1.0625rem; line-height: 1.4; margin-top: 0.25rem !important; }
.rb-post-content .rb-read-also__link a { text-decoration: none; }
.rb-post-content .rb-read-also__link a::after { content: " →"; }

/* FAQ */
.rb-faq { border-bottom: 1px solid var(--wp--preset--color--border); margin-top: 0 !important; }
.rb-faq summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 0;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}
.rb-faq summary::-webkit-details-marker { display: none; }
.rb-faq summary::after { content: "+"; color: var(--wp--preset--color--primary); font-size: 1.5rem; line-height: 1; transition: transform 0.2s ease; }
.rb-faq[open] summary::after { transform: rotate(45deg); }
.rb-faq > :not(summary) { margin: 0 0 1.1rem; color: var(--wp--preset--color--ink); }

/* =========================================================================
   Large CTA (end of the home page and inside posts)
   ====================================================================== */

.rb-cta {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(0, 230, 118, 0.22), transparent 60%),
		linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-dark) 100%);
}
.rb-cta .wp-block-button__link { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }
.rb-post-content .rb-cta { padding: var(--wp--preset--spacing--50) !important; }
.rb-post-content .rb-cta h2 { margin-top: 0.5rem; font-size: var(--wp--preset--font-size--x-large) !important; }

/* =========================================================================
   Search
   ====================================================================== */

.wp-block-search__input {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	padding: 0.7rem 1rem;
	font-size: var(--wp--preset--font-size--small);
	background: var(--wp--preset--color--base);
}
.wp-block-search__input:focus { outline: 2px solid var(--wp--preset--color--primary-soft); border-color: var(--wp--preset--color--primary); }
.wp-block-search__inside-wrapper { gap: 0.5rem; }
.wp-block-search__button { margin-left: 0 !important; }

/* =========================================================================
   Footer — light version of the reportana.com footer
   (same structure and sizes as the site, white background)
   ====================================================================== */

/* No default WordPress spacing between the content and the footer */
.wp-site-blocks > footer.wp-block-template-part { margin-block-start: 0; }

.rb-footer {
	margin-top: 0 !important;
	padding-top: 100px;
	padding-bottom: 112px;
	border-top: 1px solid var(--wp--preset--color--border);
	background: url("assets/img/footer-stripes.svg") left bottom / auto 60px repeat-x, #FFFFFF;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
}
.rb-footer a { color: var(--wp--preset--color--contrast); }
.rb-footer a:hover { color: var(--wp--preset--color--primary); text-decoration: none; }

.rb-footer .rb-logo { margin: 0; }
.rb-footer__social { text-align: right; }
.rb-footer__social-title { margin: 0 0 9px; font-family: inherit; font-size: 15px; font-weight: 400; line-height: 19px; }
.rb-footer__social-icons { display: flex; justify-content: flex-end; align-items: center; gap: 30px; }
.rb-footer__social-icons img { display: block; height: 18px; width: auto; }
.rb-footer__social-icons a:hover img { opacity: 0.7; }

.rb-footer__cols { margin-top: 90px !important; margin-bottom: 90px !important; gap: 50px !important; }
.rb-footer__title { margin: 0 0 32px; font-family: inherit; font-size: 18px !important; font-weight: 500; line-height: 17px; }
.rb-footer__links { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; }
.rb-footer__links li + li { margin-top: 24px; }

.rb-footer__copyright { text-align: center; }
.rb-footer__copyright .rb-logo img { display: block; margin: 0 auto 9px; }
.rb-footer__copyright p { margin: 0; font-size: 14px; font-weight: 300; line-height: 1.5; }
.rb-footer__copyright strong { font-weight: 500; }

@media (max-width: 781px) {
	.rb-footer { padding-top: 75px; text-align: center; }
	.rb-footer__top { flex-direction: column; gap: 50px; }
	.rb-footer__social { text-align: center; }
	.rb-footer__social-icons { justify-content: center; }
	.rb-footer__cols { margin-top: 50px !important; margin-bottom: 50px !important; }
}

/* =========================================================================
   Accessibility
   ====================================================================== */

:where(a, button, input, summary):focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
