/* ==========================================================================
   Revestio Blog — main stylesheet
   Tokens taken from the Revestio Figma file (Branding – Website).
   ========================================================================== */

:root {
	/* Colour */
	--rv-brand: #155dfc;          /* primary buttons, links, pre-headers */
	--rv-brand-dark: #1147c0;     /* button icon circle, hover */
	--rv-logo: #393bfe;           /* logo mark */
	--rv-sky: #bed2ff;            /* chip border, logo accent */
	--rv-tint: #eff6ff;           /* chip fill */
	--rv-mist: #f7faff;           /* page hero band */
	--rv-ink: #020617;            /* text, footer background */
	--rv-ink-2: #0a0a0a;          /* card titles */
	--rv-ink-deep: #0b1124;       /* editorial headlines */
	--rv-ink-soft: #3a4252;       /* editorial body text */
	--rv-deep: #001d5c;           /* gradient end */
	--rv-slate: #4a5565;          /* body copy */
	--rv-muted: #8c8c8c;          /* legal links */
	--rv-line: #eaeaea;           /* card borders */
	--rv-line-2: #e5e5e5;
	--rv-note-bg: #eddaff;        /* disclaimer box */
	--rv-note-border: #f9f6ff;
	--rv-note-text: #707070;
	--rv-white: #fff;

	/* Type */
	--rv-font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--rv-serif: "Source Serif", "Source Serif 4", Georgia, "Times New Roman", serif;
	--rv-h1: 60px;
	--rv-h2-display: 48px;
	--rv-h2: 36px;
	--rv-h4: 24px;
	--rv-body-lg: 18px;
	--rv-body: 16px;
	--rv-small: 14px;
	--rv-caption: 12px;

	/* Layout */
	--rv-container: 1024px;
	--rv-gutter: 24px;
	--rv-radius: 20px;
	--rv-radius-pill: 300px;
	--rv-header-h: 80px;
	--rv-shadow: 0 1px 2px rgba(2, 6, 23, .04), 0 12px 32px rgba(2, 6, 23, .06);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--rv-header-h) + 16px); }

body {
	margin: 0;
	font-family: var(--rv-font);
	font-size: var(--rv-body);
	line-height: 1.5;
	color: var(--rv-ink);
	background: var(--rv-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--rv-brand); text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease; }
a:hover { color: var(--rv-brand-dark); }

h1, h2, h3, h4, h5, h6 { font-weight: 400; line-height: 1.25; margin: 0; color: var(--rv-ink); }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--rv-brand); outline-offset: 3px; border-radius: 6px; }

.container {
	width: 100%;
	max-width: calc(var(--rv-container) + var(--rv-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--rv-gutter);
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 16px; top: 16px; z-index: 1000; padding: 12px 20px;
	background: var(--rv-white); color: var(--rv-ink); border-radius: 30px; box-shadow: var(--rv-shadow);
}

/* --------------------------------------------------------------------------
   Buttons, chips, pre-header
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: inherit; font-size: var(--rv-body); line-height: 1; font-weight: 400;
	padding: 15px 30px; border-radius: 30px; border: 1px solid transparent;
	cursor: pointer; white-space: nowrap; text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--rv-brand); color: var(--rv-white); }
.btn-primary:hover { background: var(--rv-brand-dark); color: var(--rv-white); }
.btn-outline { background: transparent; color: var(--rv-ink); border-color: var(--rv-ink); }
.btn-outline:hover { background: var(--rv-ink); color: var(--rv-white); }

/* Pill button with the circular arrow icon (newsletter + featured card) */
.btn-icon { padding: 5px 5px 5px 20px; box-shadow: 0 4px 3px rgba(0, 0, 0, .03), 0 12px 8px rgba(0, 0, 0, .08); }
.btn-icon img { width: 38px; height: 38px; transition: transform .25s ease; }
.btn-icon:hover img { transform: rotate(45deg); }

.preheader {
	font-weight: 700; font-size: var(--rv-small); line-height: 1;
	letter-spacing: .05em; text-transform: uppercase; color: var(--rv-brand);
}
.preheader-sm { font-size: var(--rv-caption); }

.chip {
	display: inline-flex; align-items: center;
	font-size: var(--rv-caption); font-weight: 500; line-height: 1;
	color: var(--rv-brand); background: var(--rv-tint);
	border: 1px solid var(--rv-sky); border-radius: var(--rv-radius-pill);
	padding: 9px 14px; white-space: nowrap;
}
a.chip:hover { background: var(--rv-sky); color: var(--rv-brand-dark); }
.chip-lg { font-size: var(--rv-small); padding: 11px 18px; }
.chip.is-active { background: var(--rv-brand); border-color: var(--rv-brand); color: var(--rv-white); }
.chip-muted { background: var(--rv-white); border-color: var(--rv-line); color: var(--rv-slate); }
a.chip-muted:hover { border-color: var(--rv-sky); background: var(--rv-tint); color: var(--rv-brand); }

.icon { flex: none; }

/* --------------------------------------------------------------------------
   Header (frosted bar, 80px)
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .7);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, background-color .2s ease;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { border-bottom-color: rgba(2, 6, 23, .06); background: rgba(255, 255, 255, .85); }

.header-inner { display: flex; align-items: center; height: var(--rv-header-h); gap: 64px; }
.header-brand { flex: none; }
.site-logo img, .custom-logo { width: 141px; height: auto; }

.primary-nav { flex: 1; }
.nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--rv-ink); font-size: var(--rv-body); line-height: 1; padding: 8px 0; position: relative; }
.nav-menu a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
	background: var(--rv-brand); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-menu a:hover { color: var(--rv-brand); }
.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_parent > a::after { transform: scaleX(1); }
.nav-menu .current-menu-item > a,
.nav-menu .current_page_parent > a { color: var(--rv-brand); }

.nav-actions { display: flex; align-items: center; gap: 26px; flex: none; }
.nav-actions--mobile { display: none; }
.nav-login { color: var(--rv-ink); font-size: var(--rv-body); }
.nav-login:hover { color: var(--rv-brand); }
.nav-actions .btn { padding: 15px 30px; }

.nav-toggle {
	display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--rv-line); background: var(--rv-white); color: var(--rv-ink);
	align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .nav-toggle-open { display: inline-flex; }
.nav-toggle .nav-toggle-close { display: none; }

/* --------------------------------------------------------------------------
   Page hero (archive / search / page / 404) — left-aligned editorial
   -------------------------------------------------------------------------- */
.page-hero {
	background: linear-gradient(180deg, #f3f6fc 0%, #f8faff 100%);
	margin-top: calc(var(--rv-header-h) * -1);
	padding: calc(var(--rv-header-h) + 56px) 0 56px;
}
.page-hero-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.page-hero .preheader { color: var(--rv-slate); font-weight: 500; letter-spacing: .06em; font-size: var(--rv-caption); }
.page-hero-title { font-family: var(--rv-serif); font-weight: 600; font-size: 56px; line-height: 1.05; letter-spacing: -.015em; color: var(--rv-ink); max-width: 900px; }
.page-hero-sub { font-size: 20px; line-height: 1.5; color: var(--rv-ink-soft); max-width: 680px; }
.page-hero-sub p + p { margin-top: .5em; }
.page-hero-search { width: 100%; max-width: 560px; margin-top: 10px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* Search pill */
.search-form {
	display: flex; align-items: center; gap: 8px;
	background: var(--rv-white); border: 1px solid var(--rv-line); border-radius: 100px;
	padding: 4px 4px 4px 22px; box-shadow: 0 1px 2px rgba(2, 6, 23, .04);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.search-form:focus-within { border-color: var(--rv-sky); box-shadow: 0 0 0 4px rgba(21, 93, 252, .12); }
.search-icon { color: var(--rv-slate); display: inline-flex; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
	font: inherit; font-size: var(--rv-body); color: var(--rv-ink); padding: 12px 4px;
}
.search-form input::placeholder { color: rgba(16, 24, 40, .6); }
.search-form input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-form .btn { padding: 13px 26px; }

/* --------------------------------------------------------------------------
   Blog home masthead
   -------------------------------------------------------------------------- */
.masthead {
	background: linear-gradient(180deg, #f2f5fb 0%, #f7f9fd 70%, #ffffff 100%);
	margin-top: calc(var(--rv-header-h) * -1);
	padding: calc(var(--rv-header-h) + 40px) 0 28px;
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.masthead-label { font-size: 13px; color: var(--rv-ink-soft); margin-bottom: 10px; }
.masthead-title {
	font-family: var(--rv-serif); font-weight: 600; color: var(--rv-ink-deep);
	font-size: clamp(44px, 6.4vw, 76px); line-height: 1; letter-spacing: -.02em;
}
.masthead-title .accent { color: var(--rv-brand); }
.masthead-sub { font-size: clamp(20px, 2.3vw, 28px); line-height: 1.25; color: var(--rv-ink-deep); margin-top: 12px; }

.partner {
	flex: none; display: flex; flex-direction: column; align-items: center; text-align: center;
	color: var(--rv-ink-deep); padding: 8px 12px;
}
a.partner:hover { color: var(--rv-ink-deep); }
a.partner:hover .partner-url { color: var(--rv-brand); }
.partner-label { font-size: 12px; color: var(--rv-slate); margin-bottom: 4px; }
.partner-name { font-family: var(--rv-serif); font-weight: 600; font-size: 40px; line-height: 1.05; letter-spacing: -.01em; }
.partner-rule { display: block; width: 64px; height: 2px; background: var(--rv-brand); border-radius: 2px; margin: 12px 0 14px; }
.partner-url { font-size: 15px; color: var(--rv-ink-deep); transition: color .2s ease; }

.masthead-search { margin-top: 20px; max-width: calc(560px + var(--rv-gutter) * 2); margin-inline: 0; }

/* Topic chips */
.cat-bar { margin-top: 36px; }
.cat-bar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.cat-bar .chip {
	background: #eef1f6; border: 0; color: var(--rv-ink-deep);
	font-size: var(--rv-small); font-weight: 400; padding: 13px 22px; box-shadow: none;
}
.cat-bar a.chip:hover { background: #e2e7f0; color: var(--rv-ink-deep); }
.cat-bar .chip.is-active { background: var(--rv-brand); color: var(--rv-white); font-weight: 500; padding-inline: 30px; }

/* --------------------------------------------------------------------------
   Listing: featured article + list
   -------------------------------------------------------------------------- */
.listing { padding: 40px 0 72px; }
.archive .listing, .search .listing { padding-top: 56px; }

.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--rv-slate); }

.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--rv-slate); }
.post-meta .sep { color: #c3c9d4; }
.post-meta .meta-cat { display: inline-flex; align-items: center; gap: inherit; }

.featured {
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: center;
	padding-bottom: 40px; border-bottom: 1px solid var(--rv-line);
}
.featured-media { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 6 / 5; background: var(--rv-mist); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.featured:hover .featured-media img { transform: scale(1.02); }
.featured-body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.featured-title { font-family: var(--rv-serif); font-weight: 600; font-size: 40px; line-height: 1.12; letter-spacing: -.01em; color: var(--rv-ink-deep); }
.featured-title a { color: inherit; }
.featured-title a:hover { color: var(--rv-brand); }
.featured-excerpt { font-family: var(--rv-serif); font-size: 19px; line-height: 1.45; color: var(--rv-ink-soft); }
.featured .post-meta { margin-top: -2px; }
.btn-arrow { gap: 10px; padding: 15px 30px; margin-top: 6px; }
.btn-arrow .icon { transition: transform .2s ease; }
.btn-arrow:hover .icon { transform: translateX(3px); }

.section-label { font-family: var(--rv-serif); font-weight: 600; font-size: 38px; line-height: 1.15; letter-spacing: -.01em; color: var(--rv-ink-deep); margin: 40px 0 8px; }
.section-title { font-family: var(--rv-serif); font-weight: 600; font-size: 38px; line-height: 1.15; margin-top: 12px; }

/* Cards (shared) */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.card { position: relative; display: flex; flex-direction: column; gap: 18px; }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: var(--rv-mist); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cat-label { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--rv-brand); }
.cat-label:hover { color: var(--rv-brand-dark); }
.card-title { font-family: var(--rv-serif); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--rv-ink-deep); }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--rv-brand); }
.card-excerpt { font-family: var(--rv-serif); font-size: 17px; line-height: 1.45; color: var(--rv-ink-soft); }
.card .post-meta { margin-top: 6px; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--rv-brand); margin-top: 6px; }
.read-more .icon { transition: transform .2s ease; }
.read-more:hover .icon { transform: translateX(3px); }

.thumb-placeholder {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	background: radial-gradient(120% 120% at 85% 0%, #1e3fae 0%, var(--rv-deep) 45%, var(--rv-ink) 100%);
}
.thumb-placeholder img { width: auto !important; height: 70% !important; object-fit: contain !important; mix-blend-mode: lighten; opacity: .9; }

/* List layout: one article per row */
.grid.grid--list { grid-template-columns: minmax(0, 1fr); gap: 0; }
.grid--list .card {
	display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: center;
	padding: 26px 0; border-bottom: 1px solid var(--rv-line);
}
.grid--list .card:last-child { border-bottom: 0; }
.grid--list .card-media { aspect-ratio: 3 / 2; }
.grid--list .card-title { font-size: 26px; line-height: 1.18; }
.grid--list .card-excerpt { font-size: 17px; }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 14px; border-radius: 30px;
	border: 1px solid var(--rv-line); color: var(--rv-ink); font-size: var(--rv-small);
}
.pagination a.page-numbers:hover { border-color: var(--rv-sky); background: var(--rv-tint); color: var(--rv-brand); }
.pagination .page-numbers.current { background: var(--rv-brand); border-color: var(--rv-brand); color: var(--rv-white); }
.pagination .page-numbers.dots { border: 0; }

/* Empty state */
.empty-state { text-align: center; max-width: 520px; margin: 0 auto; padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty-state img { width: 72px; }
.empty-state h2 { font-family: var(--rv-serif); font-weight: 600; font-size: 28px; }
.empty-state p { color: var(--rv-slate); }

/* --------------------------------------------------------------------------
   Single article
   -------------------------------------------------------------------------- */
.article-hero { background: var(--rv-mist); margin-top: calc(var(--rv-header-h) * -1); padding: calc(var(--rv-header-h) + 56px) 0 72px; }
.article-hero-inner { max-width: calc(840px + var(--rv-gutter) * 2); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: var(--rv-small); color: var(--rv-slate); margin-bottom: 6px; }
.back-link:hover { color: var(--rv-brand); }
.article-title { font-size: var(--rv-h2-display); line-height: 1.1; letter-spacing: -.01em; }
.article-lede { font-size: var(--rv-body-lg); color: var(--rv-slate); max-width: 720px; }
.article-byline { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.byline-avatar, .article-byline img { border-radius: 50%; width: 44px; height: 44px; }
.byline-name { display: block; font-weight: 500; font-size: var(--rv-small); margin-bottom: 2px; }

.article-cover { margin: -40px auto 0; position: relative; }
.article-cover img { width: 100%; border-radius: var(--rv-radius); aspect-ratio: 2 / 1; object-fit: cover; box-shadow: var(--rv-shadow); }
.article-cover figcaption { font-size: var(--rv-caption); color: var(--rv-slate); margin-top: 10px; text-align: center; }

.article-layout { display: grid; grid-template-columns: 64px minmax(0, 720px); justify-content: center; column-gap: 56px; padding-top: 64px; padding-bottom: 96px; }
.article-aside .share { position: sticky; top: calc(var(--rv-header-h) + 32px); flex-direction: column; }
.share-inline { display: none; }

.share { display: flex; align-items: center; gap: 10px; }
.share-label { font-size: var(--rv-caption); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--rv-slate); }
.share-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rv-line);
	background: var(--rv-white); color: var(--rv-ink); cursor: pointer; padding: 0; font: inherit;
}
.share-btn:hover { border-color: var(--rv-sky); background: var(--rv-tint); color: var(--rv-brand); }
.share-btn .copied {
	position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
	background: var(--rv-ink); color: var(--rv-white); font-size: var(--rv-caption); padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}

/* Article typography */
.entry-content { font-size: var(--rv-body-lg); line-height: 1.75; color: #1d2433; }
.entry-content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 32px; line-height: 1.25; margin-top: 2em; margin-bottom: .7em; }
.entry-content h3 { font-size: var(--rv-h4); font-weight: 500; line-height: 1.38; margin-top: 1.8em; margin-bottom: .6em; }
.entry-content h4 { font-size: 20px; font-weight: 500; margin-top: 1.6em; margin-bottom: .5em; }
.entry-content a { text-decoration: underline; text-decoration-color: var(--rv-sky); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.entry-content a:hover { text-decoration-color: var(--rv-brand); }
.entry-content strong { font-weight: 600; color: var(--rv-ink); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .5em; }
.entry-content ul li::marker { color: var(--rv-brand); }
.entry-content ol li::marker { color: var(--rv-brand); font-weight: 600; }
.entry-content img, .entry-content .wp-block-image img { border-radius: 16px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .entry-content .wp-element-caption { font-size: var(--rv-caption); color: var(--rv-slate); text-align: center; margin-top: 10px; }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin-left: 0; margin-right: 0; padding: 28px 32px; border: 0; border-left: 4px solid var(--rv-brand);
	background: var(--rv-mist); border-radius: 0 var(--rv-radius) var(--rv-radius) 0;
	font-size: 22px; line-height: 1.5; color: var(--rv-ink);
}
.entry-content blockquote p { margin: 0; }
.entry-content blockquote cite { display: block; margin-top: 14px; font-size: var(--rv-small); font-style: normal; color: var(--rv-slate); }
.entry-content .wp-block-pullquote { border-top: 2px solid var(--rv-brand); border-bottom: 2px solid var(--rv-brand); padding: 32px 0; text-align: center; }
.entry-content .wp-block-pullquote blockquote { background: none; border: 0; padding: 0; font-size: 26px; }
.entry-content hr { border: 0; border-top: 1px solid var(--rv-line); margin: 3em 0; }
.entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--rv-tint); color: var(--rv-brand-dark); padding: 2px 6px; border-radius: 6px; }
.entry-content pre { background: var(--rv-ink); color: #e2e8f0; padding: 20px 24px; border-radius: 16px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.entry-content pre code { background: none; color: inherit; padding: 0; }
.entry-content table, .entry-content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: var(--rv-small); }
.entry-content .wp-block-table { overflow-x: auto; border: 1px solid var(--rv-line); border-radius: 16px; }
.entry-content th, .entry-content td { padding: 12px 16px; border-bottom: 1px solid var(--rv-line); text-align: left; }
.entry-content th { background: var(--rv-mist); font-weight: 600; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content .wp-block-button__link { background: var(--rv-brand); color: var(--rv-white); border-radius: 30px; padding: 15px 30px; text-decoration: none; font-size: var(--rv-body); }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--rv-ink); border: 1px solid var(--rv-ink); }
.entry-content .alignwide { margin-left: -120px; margin-right: -120px; max-width: none; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.entry-content .alignleft { float: left; margin: .4em 1.6em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .4em 0 1em 1.6em; max-width: 50%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }

/* Block editor palette helpers */
.has-brand-color { color: var(--rv-brand) !important; }
.has-brand-background-color { background-color: var(--rv-brand) !important; }
.has-brand-logo-color { color: var(--rv-logo) !important; }
.has-brand-logo-background-color { background-color: var(--rv-logo) !important; }
.has-ink-color { color: var(--rv-ink) !important; }
.has-ink-background-color { background-color: var(--rv-ink) !important; }
.has-deep-color { color: var(--rv-deep) !important; }
.has-deep-background-color { background-color: var(--rv-deep) !important; }
.has-slate-color { color: var(--rv-slate) !important; }
.has-slate-background-color { background-color: var(--rv-slate) !important; }
.has-sky-color { color: var(--rv-sky) !important; }
.has-sky-background-color { background-color: var(--rv-sky) !important; }
.has-mist-color { color: var(--rv-mist) !important; }
.has-mist-background-color { background-color: var(--rv-mist) !important; }
.has-white-color { color: var(--rv-white) !important; }
.has-white-background-color { background-color: var(--rv-white) !important; }
.has-small-font-size { font-size: 14px !important; }
.has-body-font-size { font-size: 18px !important; }
.has-large-font-size { font-size: 24px !important; }
.has-heading-font-size { font-size: 36px !important; }
.has-background { padding: 24px 28px; border-radius: var(--rv-radius); }

.article-note {
	display: flex; gap: 12px; align-items: flex-start; margin-top: 48px;
	background: var(--rv-note-bg); border: 1px solid var(--rv-note-border); border-radius: 8px;
	padding: 16px 20px; color: var(--rv-note-text); font-size: var(--rv-small); line-height: 1.5;
}
.article-note img { flex: none; width: 24px; height: 24px; }

.tag-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }

.author-box {
	display: flex; gap: 20px; align-items: flex-start; margin-top: 48px;
	padding: 28px; border: 1px solid var(--rv-line); border-radius: var(--rv-radius);
}
.author-box img { border-radius: 50%; flex: none; }
.author-name { font-size: 20px; font-weight: 500; margin: 8px 0 6px; }
.author-name a { color: var(--rv-ink); }
.author-name a:hover { color: var(--rv-brand); }
.author-bio { font-size: var(--rv-small); color: var(--rv-slate); }

.below-article { margin-top: 48px; }

.related { background: var(--rv-mist); padding: 96px 0 140px; }
.related-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }

/* Static page body */
.page-body { max-width: calc(760px + var(--rv-gutter) * 2); padding-top: 72px; padding-bottom: 120px; }

/* Comments */
.comments { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--rv-line); }
.comments-title, .comment-reply-title { font-size: var(--rv-h4); font-weight: 500; margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .children { list-style: none; padding-left: 32px; }
.comment-body { padding: 20px; border: 1px solid var(--rv-line); border-radius: 16px; margin-bottom: 16px; font-size: var(--rv-small); }
.comment-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 10px; color: var(--rv-slate); font-size: var(--rv-caption); }
.comment-author { display: flex; align-items: center; gap: 10px; font-size: var(--rv-small); color: var(--rv-ink); }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--rv-slate); }
.reply a { font-size: var(--rv-caption); font-weight: 500; }
.comment-form { display: grid; gap: 16px; }
.comment-form label { display: block; font-size: var(--rv-small); font-weight: 500; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; font: inherit; font-size: var(--rv-body); padding: 14px 18px;
	border: 1px solid var(--rv-line); border-radius: 14px; background: var(--rv-white); color: var(--rv-ink);
}
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: var(--rv-sky); box-shadow: 0 0 0 4px rgba(21, 93, 252, .12); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: var(--rv-small); }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-notes, .logged-in-as { font-size: var(--rv-small); color: var(--rv-slate); }

/* Widgets */
.widget { margin-bottom: 32px; }
.widget-title { font-size: var(--rv-body-lg); font-weight: 500; margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   Editorial type on article pages
   -------------------------------------------------------------------------- */
.article-hero { background: linear-gradient(180deg, #f2f5fb 0%, #f8faff 100%); }
.article-title { font-family: var(--rv-serif); font-weight: 600; font-size: 52px; line-height: 1.08; letter-spacing: -.015em; color: var(--rv-ink-deep); }
.article-lede { font-family: var(--rv-serif); font-size: 21px; line-height: 1.45; color: var(--rv-ink-soft); }
.article-hero .cat-label { margin-bottom: -6px; }
.entry-content { font-family: var(--rv-serif); font-size: 20px; line-height: 1.7; color: #1f2633; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--rv-serif); font-weight: 600; color: var(--rv-ink-deep); }
.entry-content h2 { font-size: 32px; letter-spacing: -.01em; }
.entry-content h3 { font-size: 25px; }
.entry-content blockquote, .entry-content .wp-block-quote { font-family: var(--rv-serif); font-size: 23px; }
.entry-content table, .entry-content figcaption, .entry-content .wp-element-caption, .entry-content .wp-block-button__link { font-family: var(--rv-font); }
.author-name, .comments-title, .comment-reply-title { font-family: var(--rv-serif); font-weight: 600; }
.related { background: #f7f9fd; padding: 80px 0 96px; }

/* --------------------------------------------------------------------------
   Footer: newsletter card
   -------------------------------------------------------------------------- */
.newsletter { padding: 8px 0 56px; }
.newsletter-card {
	position: relative; overflow: hidden; border-radius: 16px;
	background-color: #061230;
	background-image: linear-gradient(90deg, #061230 0%, #061230 38%, rgba(6, 18, 48, .55) 58%, rgba(6, 18, 48, 0) 80%), var(--nl-image);
	background-repeat: no-repeat; background-size: auto 100%, auto 135%; background-position: 0 0, right -40px center;
	padding: 52px 56px; color: var(--rv-white);
}
.newsletter-content { position: relative; max-width: 560px; }
.newsletter-title { font-family: var(--rv-serif); font-weight: 600; font-size: 46px; line-height: 1.1; letter-spacing: -.01em; color: var(--rv-white); }
.newsletter-text { font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .92); margin-top: 14px; max-width: 520px; }
.newsletter-form { margin-top: 26px; }
.newsletter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-row input[type="email"] {
	flex: 1 1 280px; max-width: 350px; height: 50px; border: 0; border-radius: 8px; padding: 0 18px;
	font: inherit; font-size: 15px; color: var(--rv-ink); background: var(--rv-white);
}
.newsletter-row input[type="email"]::placeholder { color: #98a1b0; }
.newsletter-row input[type="email"]:focus { outline: 2px solid var(--rv-sky); outline-offset: 2px; }
.newsletter-btn { height: 50px; min-width: 170px; border-radius: 10px; padding: 0 28px; font-weight: 500; }
.newsletter-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .88); cursor: pointer; max-width: 470px; }
.newsletter-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.newsletter-consent .box {
	flex: none; width: 22px; height: 22px; border-radius: 5px; margin-top: 1px;
	border: 1.5px solid rgba(255, 255, 255, .55); background: transparent; position: relative; transition: background-color .15s ease, border-color .15s ease;
}
.newsletter-consent input:checked + .box { background: var(--rv-brand); border-color: var(--rv-brand); }
.newsletter-consent input:checked + .box::after {
	content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.newsletter-consent input:focus-visible + .box { outline: 2px solid var(--rv-sky); outline-offset: 2px; }
.newsletter-shortcode { margin-top: 26px; max-width: 520px; }

/* --------------------------------------------------------------------------
   Footer: light
   -------------------------------------------------------------------------- */
.footer-main { background: var(--rv-white); border-top: 1px solid var(--rv-line); padding: 40px 0 32px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(160px, 1fr)); gap: 0; }
.footer-info { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-right: 40px; }
.footer-logo img { width: 150px; height: auto; }
.footer-tagline { font-size: 14px; line-height: 1.6; color: var(--rv-slate); max-width: 300px; }
.footer-site { font-size: 14px; color: var(--rv-brand); text-decoration: underline; text-underline-offset: 3px; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { font-size: var(--rv-caption); line-height: 1; padding: 6px 10px; border: 1px solid var(--rv-line); border-radius: 9px; color: var(--rv-slate); }

.footer-col { border-left: 1px solid var(--rv-line); padding: 4px 0 4px 40px; display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-size: 14px; font-weight: 600; color: var(--rv-ink-deep); }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu a { display: inline-block; padding: 4px 0; font-size: 14px; color: var(--rv-ink-soft); }
.footer-menu a:hover { color: var(--rv-brand); }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: 36px; }
.legal-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.legal-menu li + li::before { content: "|"; color: #c3c9d4; margin: 0 14px; }
.legal-menu a { font-size: 14px; color: var(--rv-slate); }
.legal-menu a:hover { color: var(--rv-brand); }
.copyright { font-size: 14px; color: var(--rv-slate); }

.disclaimer {
	display: flex; gap: 12px; align-items: flex-start; margin-top: 24px;
	background: #f7f9fd; border: 1px solid var(--rv-line); border-radius: 10px;
	padding: 14px 18px; color: var(--rv-slate); font-size: 13px; line-height: 1.55;
}
.disclaimer img { flex: none; width: 22px; height: 22px; margin-top: 1px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.header-inner { gap: 40px; }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; }
}

@media (max-width: 960px) {
	:root { --rv-header-h: 72px; }

	.nav-toggle { display: inline-flex; }
	.header-inner > .nav-actions { display: none; }
	.primary-nav {
		position: fixed; inset: var(--rv-header-h) 0 0 0; background: var(--rv-white);
		padding: 24px var(--rv-gutter) 40px; display: flex; flex-direction: column; gap: 32px;
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
		overflow-y: auto;
	}
	.admin-bar .primary-nav { top: calc(var(--rv-header-h) + 46px); }
	.nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
	/* backdrop-filter would trap the fixed panel inside the header, so drop it while open */
	.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--rv-white); }
	.nav-open .nav-toggle .nav-toggle-open { display: none; }
	.nav-open .nav-toggle .nav-toggle-close { display: inline-flex; }
	.nav-open { overflow: hidden; }
	.nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-menu a { display: block; font-size: 22px; padding: 16px 0; border-bottom: 1px solid var(--rv-line); }
	.nav-menu a::after { display: none; }
	.nav-actions--mobile { display: flex; justify-content: space-between; }

	.masthead-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
	.partner { align-items: flex-start; text-align: left; padding: 0; }
	.partner-name { font-size: 30px; }
	.partner-rule { margin: 8px 0 10px; }

	.featured { grid-template-columns: 1fr; gap: 24px; }
	.featured-media { aspect-ratio: 16 / 10; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.article-layout { grid-template-columns: minmax(0, 1fr); }
	.article-aside { display: none; }
	.share-inline { display: block; margin-top: 32px; }

	.newsletter-card { background-image: linear-gradient(180deg, rgba(6, 18, 48, .7) 0%, #061230 75%), var(--nl-image); background-size: auto 100%, cover; background-position: 0 0, center; }
	.footer-top { grid-template-columns: 1fr 1fr; row-gap: 32px; }
	.footer-info { grid-column: 1 / -1; padding-right: 0; }
	.footer-col:nth-child(2) { border-left: 0; padding-left: 0; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 640px) {
	:root { --rv-gutter: 20px; }

	.page-hero { padding: calc(var(--rv-header-h) + 36px) 0 40px; }
	.page-hero-title { font-size: 38px; }
	.page-hero-sub { font-size: 17px; }
	.search-form .btn { padding: 13px 18px; }

	.masthead { padding-top: calc(var(--rv-header-h) + 28px); }
	.cat-bar { margin-top: 28px; }
	.cat-bar ul { flex-wrap: nowrap; overflow-x: auto; padding: 2px var(--rv-gutter) 6px; margin-inline: calc(var(--rv-gutter) * -1); scrollbar-width: none; }
	.cat-bar ul::-webkit-scrollbar { display: none; }

	.listing { padding: 28px 0 56px; }
	.featured-title { font-size: 30px; }
	.featured-excerpt { font-size: 17px; }
	.section-label, .section-title { font-size: 30px; }
	.grid { grid-template-columns: 1fr; }
	/* Compact rows on phones: small thumbnail beside the text */
	.grid--list .card { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 0; }
	.grid--list .card-media { aspect-ratio: 1 / 1; border-radius: 6px; margin-top: 4px; }
	.grid--list .card-body { gap: 6px; }
	.grid--list .cat-label { font-size: 11px; }
	.grid--list .card-title { font-size: 19px; line-height: 1.22; }
	.grid--list .card-excerpt { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.grid--list .card .post-meta { margin-top: 2px; font-size: 12px; gap: 4px 8px; }
	.grid--list .read-more { display: none; }
	.grid--list .post-meta .meta-cat { display: none; }

	.article-hero { padding-bottom: 48px; }
	.article-title { font-size: 34px; }
	.article-cover { margin-top: -24px; }
	.entry-content { font-size: 18px; }
	.entry-content h2 { font-size: 26px; }
	.entry-content blockquote { padding: 20px 22px; font-size: 20px; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 0 1.4em; max-width: 100%; }
	.author-box { flex-direction: column; }

	.newsletter { padding-bottom: 40px; }
	.newsletter-card { padding: 36px 24px; border-radius: 14px; }
	.newsletter-title { font-size: 34px; }
	.newsletter-row { flex-direction: column; }
	.newsletter-row input[type="email"] { flex: none; width: 100%; max-width: none; }
	.newsletter-btn { width: 100%; }
	.legal-menu { gap: 6px 20px; }
	.legal-menu li + li::before { display: none; }

	.footer-bottom { flex-direction: column; align-items: flex-start; }
}

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

@media print {
	.site-header, .site-footer, .article-aside, .share-inline, .related, .comments { display: none !important; }
	.article-hero { background: none; padding: 0 0 24px; margin: 0; }
}

/* No top bar: heroes start at the top of the page */
body.no-site-header { --rv-header-h: 0px; }

/* Article page: quieter labels and disclaimer, matching the editorial design */
.related .preheader, .author-box .preheader { color: var(--rv-slate); font-weight: 500; font-size: 12px; letter-spacing: .06em; }
.article-note { background: #f7f9fd; border: 1px solid var(--rv-line); border-radius: 10px; color: var(--rv-slate); font-size: 13px; }
.article-note img { width: 22px; height: 22px; }
.related .btn-outline { border-color: var(--rv-line); color: var(--rv-ink-deep); }
.related .btn-outline:hover { background: var(--rv-ink-deep); border-color: var(--rv-ink-deep); color: var(--rv-white); }
