/*
Theme Name:   Câștiguri Revista
Theme URI:    https://castiguri.ro/
Description:  Temă copil premium pentru Mero Magazine, creată pentru Câștiguri: revistă editorială compactă (alb-hârtie, negru-cerneală, accent vermillon), tipografie Newsreader și Schibsted Grotesk, homepage dens cu blocuri pe categorii, pagini de articol gândite pentru SEO (date structurate, cuprins, „Pe scurt”, breadcrumb) și încărcare rapidă.
Author:       Câștiguri
Template:     mero-magazine
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  castiguri-revista
*/

/* 1. Tokens ================================================================ */
:root {
	--rv-ink: #121212;
	--rv-ink-2: #1E1C19;
	--rv-body: #3E3B36;
	--rv-muted: #6B675F;
	--rv-faint: #9A958B;
	--rv-line: #E2DFD8;
	--rv-line-soft: #ECEAE4;
	--rv-line-strong: #D6D3CC;
	--rv-paper: #FFFFFF;
	--rv-tint: #F4F3EF;
	--rv-red: #C8341E;
	--rv-red-dark: #A82A17;
	--rv-dark-text: #C9C5BC;
	--rv-dark-line: #2E2C29;
	--rv-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--rv-sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--rv-wrap: 1280px;
}

/* 2. Base ================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.castiguri-revista {
	margin: 0; background: var(--rv-paper); color: var(--rv-ink);
	font-family: var(--rv-sans); font-size: 16px; line-height: 1.5;
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
.castiguri-revista a { color: inherit; text-decoration: none; }
.castiguri-revista a:hover { color: var(--rv-red); }
.castiguri-revista img { max-width: 100%; height: auto; display: block; }
.castiguri-revista button, .castiguri-revista input, .castiguri-revista select, .castiguri-revista textarea { font: inherit; color: inherit; }
.castiguri-revista :focus-visible { outline: 2px solid var(--rv-red); outline-offset: 2px; }

.rv-wrap { max-width: var(--rv-wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; display: block; left: 12px; top: 12px; z-index: 100000; background: var(--rv-ink); color: #fff; padding: 12px 18px; font-weight: 700; }

/* Helpers */
.rv-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rv-red) !important; }
.rv-kicker:hover { color: var(--rv-red-dark) !important; }
.rv-kicker--sm { font-size: 11px; }
.rv-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rv-red); }
.rv-meta { font-size: 13px; color: var(--rv-muted); }
.rv-meta strong, .rv-meta .rv-author { color: var(--rv-ink); font-weight: 600; }
.rv-hl { transition: color .15s ease; }
a:hover .rv-hl, a.rv-hl:hover, .rv-hl a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; color: inherit; }
.rv-badge { display: inline-block; border: 1px solid #6C6862; font-weight: 700; font-size: 10px; line-height: 1.3; padding: 1px 5px; color: #EDEBE6; }
.rv-blockhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 3px solid var(--rv-ink); margin-bottom: 14px; }
.rv-blockhead h2, .rv-blockhead .rv-blocktitle { margin: 0; font-family: var(--rv-serif); font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.rv-blockhead .rv-more { font-size: 12px; font-weight: 600; color: var(--rv-red); white-space: nowrap; }

/* Media */
.rv-media { position: relative; display: block; overflow: hidden; background: var(--rv-tint); }
.rv-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a:hover > .rv-media img { transform: scale(1.03); }
.rv-media--16x9 { aspect-ratio: 16 / 9; }
.rv-media--16x10 { aspect-ratio: 16 / 10; }
.rv-media--3x2 { aspect-ratio: 3 / 2; }
.rv-media--ph { background: repeating-linear-gradient(135deg, #ECEAE4 0 10px, #E6E3DC 10px 20px); display: flex; align-items: center; justify-content: center; color: #C3BEB3; }

/* 3. Ticker + header ======================================================= */
.rv-ticker { background: var(--rv-ink); color: #EDEBE6; }
.rv-ticker .rv-wrap { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 6px 24px; font-size: 13px; }
.rv-ticker__news { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; }
.rv-ticker__tag { flex: 0 0 auto; background: var(--rv-red); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 3px 7px; }
.rv-ticker__news a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-ticker__news a:hover { color: #fff; text-decoration: underline; }
.rv-ticker__side { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; color: #B5B1A8; font-size: 12px; margin: 0; }
.rv-ticker__side a { display: inline-flex; align-items: center; gap: 8px; }
.rv-ticker__side a:hover { color: #fff; }

.rv-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--rv-ink); }
.admin-bar .rv-header { top: 32px; }
.rv-header.is-scrolled { box-shadow: 0 8px 22px -18px rgba(0,0,0,.6); }
.rv-header__bar { min-height: 68px; display: flex; align-items: center; gap: 10px 40px; }
.rv-logo { margin: 0; flex: 0 0 auto; line-height: 1; }
.rv-logo a { display: inline-flex; align-items: baseline; font-family: var(--rv-serif); font-size: 34px; font-weight: 600; letter-spacing: -.02em; color: var(--rv-ink); }
.rv-logo a:hover { color: var(--rv-ink); }
.rv-logo .rv-dot { color: var(--rv-red); }
.rv-logo img { max-height: 44px; width: auto; }

.rv-nav { flex: 1 1 auto; min-width: 0; }
.rv-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 28px; }
.rv-nav li { position: relative; }
.rv-nav > ul > li > a { display: block; padding: 22px 0 20px; border-bottom: 3px solid transparent; font-size: 14px; font-weight: 600; white-space: nowrap; }
.rv-nav > ul > li > a:hover { color: var(--rv-ink); border-bottom-color: var(--rv-line-strong); }
.rv-nav li.current-menu-item > a, .rv-nav li.current-menu-ancestor > a, .rv-nav li.current-post-ancestor > a, .rv-nav li.current-category-ancestor > a, .rv-nav li.current-cat > a, .rv-nav li.rv-current > a { border-bottom-color: var(--rv-red); }
.rv-nav .sub-menu { position: absolute; top: 100%; left: -16px; min-width: 220px; list-style: none; margin: 0; padding: 8px 16px; display: block; background: #fff; border: 1px solid var(--rv-ink); opacity: 0; visibility: hidden; transform: translateY(4px); transition: all .15s ease; z-index: 60; }
.rv-nav li:hover > .sub-menu, .rv-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rv-nav .sub-menu a { display: block; padding: 8px 0; font-size: 14px; font-weight: 500; }

.rv-hsearch { flex: 0 0 auto; display: flex; align-items: center; border: 1px solid var(--rv-line-strong); height: 40px; width: 240px; margin: 0; }
.rv-hsearch:focus-within { border-color: var(--rv-ink); }
.rv-hsearch input { flex: 1; min-width: 0; height: 38px; border: 0; padding: 0 12px; background: transparent; font-size: 14px; outline: none; }
.rv-hsearch button { width: 40px; height: 38px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--rv-ink); }
.rv-hsearch button:hover { color: var(--rv-red); }

.rv-toggle { display: none; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 12px; border: 1px solid var(--rv-ink); background: #fff; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--rv-ink); }
.rv-toggle:hover { background: var(--rv-ink); color: #fff; }
.rv-mobile { display: none; border-top: 1px solid var(--rv-line); background: #fff; }
.rv-mobile.is-open { display: block; }
.rv-mobile .rv-wrap { padding-top: 14px; padding-bottom: 18px; }
.rv-mobile ul { list-style: none; margin: 0 0 14px; padding: 0; }
.rv-mobile li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rv-line-soft); font-size: 16px; font-weight: 600; }
.rv-mobile .sub-menu a { padding-left: 16px; font-weight: 500; font-size: 15px; }
.rv-mobile .rv-hsearch { width: 100%; }

/* 4. Homepage ============================================================== */
.rv-lead { display: flex; flex-wrap: wrap; gap: 24px 0; padding: 28px 0 32px; border-bottom: 1px solid var(--rv-ink); }
.rv-lead__list { flex: 1 1 250px; min-width: 0; padding-right: 24px; border-right: 1px solid var(--rv-line); }
.rv-lead__list ol { list-style: none; margin: 6px 0 0; padding: 0; counter-reset: rvl; }
.rv-lead__list li { counter-increment: rvl; border-bottom: 1px solid var(--rv-line-soft); }
.rv-lead__list li a { display: flex; gap: 12px; padding: 14px 0; }
.rv-lead__list li a::before { content: counter(rvl); flex: 0 0 22px; font-family: var(--rv-serif); font-size: 22px; font-weight: 500; line-height: 1; color: #C9C5BC; }
.rv-lead__list li a:hover::before { color: var(--rv-red); }
.rv-lead__item { display: flex; flex-direction: column; gap: 5px; }
.rv-lead__item .rv-hl { font-family: var(--rv-serif); font-size: 18px; font-weight: 500; line-height: 1.25; color: var(--rv-ink); }
.rv-lead__item .rv-meta { font-size: 12px; }
.rv-lead__main { flex: 2 1 480px; min-width: 0; padding: 0 28px; display: flex; flex-direction: column; gap: 14px; }
.rv-lead__title { margin: 0; font-family: var(--rv-serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.06; letter-spacing: -.015em; }
.rv-lead__excerpt { margin: 0; font-size: 17px; line-height: 1.6; color: var(--rv-body); }
.rv-lead__side { flex: 1 1 250px; min-width: 0; padding-left: 24px; border-left: 1px solid var(--rv-line); display: flex; flex-direction: column; gap: 22px; }

.rv-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rv-card__title { margin: 0; font-family: var(--rv-serif); font-weight: 500; font-size: 20px; line-height: 1.2; }
.rv-card .rv-meta { font-size: 12px; }

.rv-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 28px; padding: 32px 0 40px; border-bottom: 1px solid var(--rv-ink); }
.rv-block { display: flex; flex-direction: column; min-width: 0; }
.rv-block__lead { margin: 10px 0 4px; font-family: var(--rv-serif); font-weight: 500; font-size: 20px; line-height: 1.2; }
.rv-block > .rv-meta { font-size: 12px; margin-bottom: 8px; }
.rv-block ul { list-style: none; margin: 0; padding: 0; }
.rv-block li a { display: block; padding: 10px 0; border-top: 1px solid var(--rv-line-soft); font-size: 15px; font-weight: 500; line-height: 1.35; }

/* List + sidebar */
.rv-layout { display: flex; flex-wrap: wrap; gap: 40px 48px; padding: 36px 0 64px; }
.rv-layout__main { flex: 999 1 640px; min-width: 0; }
.rv-layout__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.rv-section-title { margin: 0 0 8px; font-family: var(--rv-serif); font-size: 30px; font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
.rv-row { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--rv-line); }
.rv-row__media { flex: 0 0 180px; }
.rv-row__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rv-row__title { margin: 0; font-family: var(--rv-serif); font-weight: 500; font-size: 22px; line-height: 1.2; }
.rv-row__excerpt { margin: 0; font-size: 15px; line-height: 1.55; color: var(--rv-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-empty { padding: 24px 0; color: var(--rv-muted); border-top: 1px solid var(--rv-line); }

.rv-pagination { padding-top: 22px; border-top: 1px solid var(--rv-ink); }
.rv-pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rv-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--rv-line-strong); font-size: 14px; font-weight: 600; }
.rv-pagination .page-numbers.current { background: var(--rv-ink); border-color: var(--rv-ink); color: #fff; }
.rv-pagination a.page-numbers:hover { border-color: var(--rv-ink); color: var(--rv-ink); }
.rv-pagination .dots { border: 0; color: var(--rv-muted); }
.rv-pagination .next { margin-left: auto; background: var(--rv-red); border-color: var(--rv-red); color: #fff !important; padding: 0 16px; }
.rv-pagination .next:hover { background: var(--rv-red-dark); }

/* Sidebar */
.rv-side-list { list-style: none; margin: 0; padding: 0; counter-reset: rvs; }
.rv-side-list li { counter-increment: rvs; }
.rv-side-list a { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rv-line-soft); align-items: baseline; font-size: 15px; font-weight: 500; line-height: 1.35; }
.rv-side-list--num a::before { content: counter(rvs); flex: 0 0 18px; font-family: var(--rv-serif); font-size: 20px; color: var(--rv-red); }
.rv-side-thumbs { list-style: none; margin: 0; padding: 0; }
.rv-side-thumbs a { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rv-line-soft); }
.rv-side-thumbs .rv-media { flex: 0 0 72px; height: 54px; }
.rv-side-thumbs span.rv-hl { font-size: 14px; font-weight: 600; line-height: 1.3; }
.rv-side-thumbs .rv-meta { font-size: 12px; }
.rv-dark-box { background: var(--rv-ink); color: #EDEBE6; padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rv-dark-box h2 { margin: 0; font-family: var(--rv-serif); font-size: 24px; font-weight: 500; color: #fff; }
.rv-dark-box p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--rv-dark-text); }
.rv-dark-box a.rv-dark-link { font-size: 13px; font-weight: 700; color: #fff; border-bottom: 1px solid var(--rv-red); }
.rv-dark-box a.rv-dark-link:hover { color: #fff; border-bottom-color: #fff; }
.rv-layout__side .widget { margin: 0; }
.rv-layout__side .widget-title { margin: 0 0 4px; padding-top: 10px; border-top: 3px solid var(--rv-ink); font-family: var(--rv-serif); font-size: 22px; font-weight: 600; }
.rv-layout__side .widget ul { list-style: none; margin: 0; padding: 0; }
.rv-layout__side .widget li { padding: 10px 0; border-bottom: 1px solid var(--rv-line-soft); font-size: 15px; }

/* 5. Single ================================================================ */
.rv-article-wrap { display: flex; flex-wrap: wrap; gap: 40px 56px; padding: 28px 0 56px; }
.rv-article { flex: 999 1 640px; min-width: 0; max-width: 820px; }
.rv-crumbs { font-size: 13px; color: var(--rv-muted); margin-bottom: 18px; }
.rv-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.rv-crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; }
.rv-crumbs a:hover { text-decoration: underline; color: var(--rv-ink); }
.rv-title { margin: 10px 0 18px; font-family: var(--rv-serif); font-weight: 500; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.05; letter-spacing: -.02em; }
.rv-metabar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 0; border-top: 1px solid var(--rv-ink); border-bottom: 1px solid var(--rv-line); }
.rv-metabar__info { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rv-share { display: flex; gap: 8px; }
.rv-share a, .rv-share button { width: 36px; height: 36px; border: 1px solid var(--rv-line-strong); background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--rv-ink); }
.rv-share a:hover, .rv-share button:hover { border-color: var(--rv-ink); color: var(--rv-red); }
.rv-share .is-done { border-color: var(--rv-red); color: var(--rv-red); }
.rv-figure { margin: 24px 0 0; }
.rv-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--rv-muted); }
.rv-brief { margin: 28px 0 8px; background: var(--rv-tint); padding: 22px 24px; border-top: 3px solid var(--rv-ink); }
.rv-brief p { margin: 0; font-family: var(--rv-serif); font-size: 20px; line-height: 1.5; color: var(--rv-ink-2); }
.rv-brief .rv-label { margin-bottom: 8px; display: block; }

.rv-content { font-family: var(--rv-serif); font-size: 20px; line-height: 1.7; color: var(--rv-ink-2); overflow-wrap: break-word; margin-top: 24px; }
.rv-content > * { margin-top: 0; margin-bottom: 22px; }
.rv-content h2, .rv-content h3, .rv-content h4 { font-family: var(--rv-sans); color: var(--rv-ink); letter-spacing: -.01em; scroll-margin-top: 96px; }
.rv-content h2 { margin: 40px 0 12px; font-size: 26px; font-weight: 700; line-height: 1.2; }
.rv-content h2::before { content: ""; display: inline-block; width: .42em; height: .42em; margin-right: .45em; background: var(--rv-red); vertical-align: .14em; }
.rv-content h3 { margin: 30px 0 10px; font-size: 21px; font-weight: 700; line-height: 1.25; }
.rv-content h4 { margin: 24px 0 8px; font-size: 18px; font-weight: 700; }
.rv-content a { color: var(--rv-red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rv-content a:hover { color: var(--rv-red-dark); }
.rv-content strong, .rv-content b { color: var(--rv-ink); }
.rv-content ul, .rv-content ol { padding-left: 1.3em; }
.rv-content li { margin-bottom: 8px; padding-left: .2em; }
.rv-content ul li::marker { color: var(--rv-red); }
.rv-content ol li::marker { color: var(--rv-red); font-family: var(--rv-sans); font-weight: 700; font-size: .85em; }
.rv-content blockquote, .rv-content .wp-block-quote, .rv-content .wp-block-pullquote { margin: 36px 0; padding: 0; border: 0; font-style: italic; font-size: 28px; line-height: 1.3; color: var(--rv-ink); text-align: left; }
.rv-content blockquote::before { content: "\201C"; display: block; font-size: 64px; line-height: .6; color: var(--rv-red); font-style: normal; margin-bottom: 6px; }
.rv-content blockquote p { margin: 0 0 10px; }
.rv-content blockquote cite { display: block; margin-top: 10px; font-family: var(--rv-sans); font-style: normal; font-size: 14px; color: var(--rv-muted); }
.rv-content figure { margin-left: 0; margin-right: 0; }
.rv-content figcaption, .rv-content .wp-caption-text { font-family: var(--rv-sans); font-size: 13px; color: var(--rv-muted); margin-top: 8px; }
.rv-content hr { border: 0; height: 1px; background: var(--rv-line); margin: 40px 0; }
.rv-content table { width: 100%; border-collapse: collapse; font-family: var(--rv-sans); font-size: 15px; line-height: 1.45; display: block; overflow-x: auto; }
.rv-content th, .rv-content td { border-bottom: 1px solid var(--rv-line); padding: 11px 12px; text-align: left; vertical-align: top; }
.rv-content thead th, .rv-content tr:first-child th { border-bottom: 2px solid var(--rv-ink); font-weight: 700; }
.rv-content code { font-size: .85em; background: var(--rv-tint); padding: 2px 5px; }
.rv-content iframe, .rv-content video { max-width: 100%; }
.rv-content .alignleft { float: left; margin: 6px 24px 14px 0; }
.rv-content .alignright { float: right; margin: 6px 0 14px 24px; }
.rv-content .aligncenter { margin-left: auto; margin-right: auto; }
.rv-content .wp-block-button__link { background: var(--rv-ink); color: #fff !important; text-decoration: none; border-radius: 0; font-family: var(--rv-sans); font-size: 15px; font-weight: 700; }
.rv-content::after { content: ""; display: table; clear: both; }
.rv-page-links { margin: 28px 0; font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

.rv-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rv-line); }
.rv-tags .rv-label { color: var(--rv-muted); margin-right: 6px; }
.rv-tags a { padding: 6px 12px; background: var(--rv-tint); font-size: 13px; font-weight: 500; }
.rv-tags a:hover { background: var(--rv-ink); color: #fff; }

.rv-postnav { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 32px; border-top: 1px solid var(--rv-ink); border-bottom: 1px solid var(--rv-ink); }
.rv-postnav > * { padding: 18px 20px 18px 0; display: flex; flex-direction: column; gap: 6px; }
.rv-postnav > .rv-postnav__next { padding: 18px 0 18px 20px; text-align: right; border-left: 1px solid var(--rv-line); }
.rv-postnav__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rv-red); }
.rv-postnav__title { font-family: var(--rv-serif); font-size: 19px; line-height: 1.3; }
.rv-postnav .is-off .rv-postnav__label, .rv-postnav .is-off .rv-postnav__title { color: var(--rv-muted); }

.rv-article-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.rv-sticky { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 28px; }
.admin-bar .rv-sticky { top: 124px; }
.rv-toc { display: flex; flex-direction: column; }
.rv-toc a { padding: 10px 0; border-bottom: 1px solid var(--rv-line-soft); font-size: 15px; font-weight: 500; line-height: 1.35; }
.rv-toc a.is-active { color: var(--rv-red); }

.rv-related { padding: 8px 0 56px; }
.rv-grid4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.rv-grid4 .rv-card__title { font-size: 19px; line-height: 1.25; }

/* Comments (only when re-enabled) */
.rv-comments { max-width: 820px; padding: 8px 0 48px; }
.rv-comments .comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.rv-comments .comment-body { padding: 18px 0; border-top: 1px solid var(--rv-line); }
.rv-comments .comment-author { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.rv-comments .comment-author .says { display: none; }
.rv-comments .comment-metadata { font-size: 12px; margin: 4px 0 8px; color: var(--rv-muted); }
.rv-comments input[type="text"], .rv-comments input[type="email"], .rv-comments input[type="url"], .rv-comments textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--rv-line-strong); }
.rv-comments .form-submit input { min-height: 44px; padding: 0 22px; background: var(--rv-ink); color: #fff; border: 0; font-weight: 700; cursor: pointer; }

/* 6. Archives / page / 404 ================================================= */
.rv-archive-head { padding: 28px 0 8px; border-bottom: 1px solid var(--rv-ink); }
.rv-archive-head h1 { margin: 6px 0 10px; font-family: var(--rv-serif); font-weight: 500; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.02em; }
.rv-archive-desc { max-width: 760px; margin: 0 0 16px; font-size: 17px; line-height: 1.6; color: var(--rv-body); }
.rv-archive-desc p { margin: 0 0 8px; }
.rv-page { max-width: 820px; padding: 28px 0 64px; }
.rv-404 { max-width: 640px; margin: 0 auto; padding: 96px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.rv-404__num { font-family: var(--rv-serif); font-size: 120px; line-height: .9; font-weight: 600; letter-spacing: -.03em; }
.rv-404__num span { color: var(--rv-red); }
.rv-404 .rv-hsearch { width: 100%; max-width: 420px; }
.rv-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--rv-ink); color: #fff !important; font-weight: 700; font-size: 14px; }
.rv-btn:hover { background: var(--rv-red); }

/* 7. Footer ================================================================ */
.rv-footer { background: var(--rv-ink); color: var(--rv-dark-text); }
.rv-footer .rv-wrap { padding-top: 48px; padding-bottom: 24px; }
.rv-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--rv-dark-line); }
.rv-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; align-items: flex-start; }
.rv-footer__col p { margin: 0; line-height: 1.6; }
.rv-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rv-footer__col a:hover { color: #fff; }
.rv-footer__head { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.rv-footer .rv-logo a { font-size: 30px; color: #fff; }
.rv-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; font-size: 12px; color: #8F8A80; }
.rv-footer__bottom a:hover { color: #fff; }

/* 8. Responsive ============================================================ */
@media (max-width: 1100px) {
	.rv-nav ul { gap: 0 20px; }
	.rv-hsearch { width: 200px; }
}
@media (max-width: 960px) {
	.rv-header__bar { min-height: 60px; justify-content: space-between; }
	.rv-header .rv-nav, .rv-header__bar > .rv-hsearch { display: none; }
	.rv-toggle { display: inline-flex; }
	.rv-logo a { font-size: 30px; }
	.rv-lead__list, .rv-lead__side { border: 0; padding: 0; }
	.rv-lead__main { padding: 0; order: -1; }
	.rv-sticky { position: static; }
	.rv-postnav > .rv-postnav__next { border-left: 0; border-top: 1px solid var(--rv-line); padding-left: 0; }
}
@media (max-width: 782px) { .admin-bar .rv-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .rv-header { top: 0; } }
@media (max-width: 640px) {
	.rv-ticker__side .rv-ticker__date { display: none; }
	.rv-ticker__news a { max-width: 52vw; }
	.rv-row__media { flex-basis: 112px; }
	.rv-row__title { font-size: 19px; }
	.rv-row__excerpt { display: none; }
	.rv-content { font-size: 18px; }
	.rv-content blockquote { font-size: 23px; }
	.rv-brief p { font-size: 18px; }
	.rv-pagination .next { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print {
	.rv-ticker, .rv-header, .rv-article-side, .rv-related, .rv-footer, .rv-share, .rv-postnav { display: none !important; }
	.rv-content { font-size: 12pt; }
}
