/*
Theme Name: RVH News
Theme URI: https://rezeptevonheute.com
Author: Rezepte von Heute
Description: Brza, čitljiva tema za news portal: naslovnica po rubrikama, traka najnovijih vijesti, tamni način, vrijeme čitanja, dijeljenje (Facebook, WhatsApp, Viber, X), najčitanije, povezani članci, SEO/Schema, reklamna mjesta za Google AdSense i ads.txt. Uključuje čarobnjak za postavljanje sa pravnim stranicama i početnim člancima.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
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: rvh
Tags: news, blog, magazine, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
  --brand: #c8102e;
  --brand-dark: #9e0c24;
  --ink: #111418;
  --ink-2: #3b4250;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-2: #f4f5f7;
  --card: #ffffff;
  --top: #0f1115;
  --top-ink: #e9ebef;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --wrap: 1240px;
  --c-vijesti: #0e7490;
  --c-politika: #c8102e;
  --c-estrada: #be185d;
  --c-sport: #15803d;
  --c-zabava: #6d28d9;
  --c-zanimljivosti: #c2410c;
  --reading: 1.075rem;
}
html[data-theme="dark"] {
  --ink: #eceef2;
  --ink-2: #c3c8d2;
  --muted: #9aa1ad;
  --line: #2a2f38;
  --bg: #12151a;
  --bg-2: #0c0e12;
  --card: #181c22;
  --top: #08090b;
  --shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 9999; background: var(--brand); color: #fff; padding: 10px 14px; clip: auto; width: auto; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 700; cursor: pointer; font-size: .95rem; }
.btn:hover { background: var(--brand-dark); color: #fff; }

/* ---------- Progress ---------- */
.rvh-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--brand); z-index: 1000; transition: width .1s linear; }

/* ---------- Top bar ---------- */
.topbar { background: var(--top); color: var(--top-ink); font-size: .8rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.topbar__date { opacity: .8; white-space: nowrap; }
.topbar__links { display: flex; gap: 16px; align-items: center; }
.topbar__links a { opacity: .8; }
.topbar__links a:hover { opacity: 1; color: #fff; }
.topbar__links ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.site-header__main { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.site-branding { display: flex; align-items: center; min-width: 0; }
.site-branding img { max-height: 56px; width: auto; }
.rvh-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.rvh-logo svg { height: 48px; width: auto; }
.rvh-logo:hover { color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

.main-nav { border-top: 1px solid var(--line); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 12px 14px; font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 3px solid transparent; }
.main-nav .current-menu-item > a, .main-nav .current-category-ancestor > a, .main-nav a:hover { border-bottom-color: var(--brand); color: var(--brand); }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 200px; flex-direction: column; z-index: 50; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { text-transform: none; border: 0; padding: 10px 14px; }

.search-panel { display: none; border-top: 1px solid var(--line); padding: 14px 0; }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; background: var(--card); color: var(--ink); }

/* ---------- Ticker ---------- */
.ticker { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: .9rem; }
.ticker .wrap { display: flex; align-items: center; gap: 12px; height: 42px; overflow: hidden; }
.ticker__label { flex: none; background: var(--brand); color: #fff; font-weight: 800; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; padding: 5px 10px; border-radius: 4px; display: inline-flex; align-items: center; gap: 6px; }
.ticker__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.ticker__viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: inline-flex; gap: 40px; white-space: nowrap; animation: ticker 60s linear infinite; }
.ticker__track:hover { animation-play-state: paused; }
.ticker__track a { font-weight: 600; }
.ticker__track a::before { content: "•"; color: var(--brand); margin-right: 10px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- Layout ---------- */
.site-main { padding: 24px 0 40px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.layout--full { grid-template-columns: minmax(0, 1fr); }
.sidebar { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 24px; }

/* ---------- Category badge ---------- */
.cat-badge { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #fff; background: var(--cat, var(--brand)); padding: 4px 8px; border-radius: 4px; line-height: 1.2; }
.cat-badge:hover { color: #fff; filter: brightness(1.1); }
.cat-text { color: var(--cat, var(--brand)); font-weight: 800; text-transform: uppercase; font-size: .72rem; letter-spacing: .07em; }
.cat--vijesti { --cat: var(--c-vijesti); } .cat--politika { --cat: var(--c-politika); } .cat--estrada { --cat: var(--c-estrada); }
.cat--sport { --cat: var(--c-sport); } .cat--zabava { --cat: var(--c-zabava); } .cat--zanimljivosti { --cat: var(--c-zanimljivosti); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; margin-bottom: 32px; }
.hero__main { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 440px; background: #222; }
.hero__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero__main:hover img { transform: scale(1.03); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.92) 100%); }
.hero__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; color: #fff; }
.hero__body h2 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); margin: 10px 0 8px; }
.hero__body a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.hero__body .meta { color: rgba(255,255,255,.8); }
.hero__side { display: grid; grid-template-rows: repeat(4, 1fr); gap: 14px; }
.hero__item { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; }
.hero__item .thumb { border-radius: 8px; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-2); }
.hero__item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero__item h3 { font-size: 1rem; margin: 4px 0 0; }

/* ---------- Section heads ---------- */
.section { margin-bottom: 36px; }
.section-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.section-head h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; margin: 0; padding: 0 0 8px; position: relative; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--cat, var(--brand)); }
.section-head a.more { font-size: .82rem; font-weight: 700; color: var(--muted); }
.section-head a.more:hover { color: var(--brand); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 8px; }
.card .thumb { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; background: var(--bg-2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .thumb .cat-badge { position: absolute; left: 10px; top: 10px; }
.card h3 { font-size: 1.08rem; margin: 2px 0 0; }
.card--lead h3 { font-size: 1.45rem; }
.card p.excerpt { color: var(--ink-2); font-size: .94rem; margin: 0; }
.meta { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.meta .views { display: inline-flex; align-items: center; white-space: nowrap; }
.meta svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.list-compact { display: flex; flex-direction: column; gap: 14px; }
.list-compact .item { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; }
.list-compact .thumb { border-radius: 6px; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-2); }
.list-compact .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-compact h3 { font-size: .96rem; margin: 0 0 4px; }

/* Row list (archive) */
.post-list { display: flex; flex-direction: column; gap: 24px; }
.row-card { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.row-card .thumb { border-radius: 8px; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-2); }
.row-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-card h2 { font-size: 1.35rem; margin: 6px 0 8px; }
.row-card p { color: var(--ink-2); margin: 0 0 8px; }

/* ---------- Widgets ---------- */
.widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.widget-title { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--brand); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.popular { counter-reset: pop; }
.popular li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.popular li::before { counter-increment: pop; content: counter(pop); font: 800 1.6rem/1 var(--serif); color: var(--brand); opacity: .9; }
.popular a { font-weight: 700; font-size: .93rem; line-height: 1.35; }
.popular .meta { margin-top: 3px; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pills a { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: .85rem; font-weight: 600; }
.cat-pills a:hover { border-color: var(--brand); }

/* ---------- Ads ---------- */
.rvh-ad { margin: 24px auto; text-align: center; clear: both; overflow: hidden; }
.rvh-ad__label { display: block; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.rvh-ad--header { margin: 16px auto 0; }
.rvh-ad--sidebar { margin: 0; }
.rvh-ad--placeholder { border: 2px dashed var(--line); border-radius: 8px; padding: 26px 12px; color: var(--muted); font-size: .85rem; background: var(--bg-2); }

/* ---------- Single ---------- */
.breadcrumbs { font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span.sep { margin: 0 6px; opacity: .6; }
.entry-header h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin: 12px 0 14px; }
.entry-lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 18px; font-weight: 500; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.entry-meta .author { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.entry-meta .author img { border-radius: 50%; width: 38px; height: 38px; }
.entry-meta .author strong { display: block; }
.entry-figure { margin: 0 0 22px; }
.entry-figure img { width: 100%; border-radius: var(--radius); }
.entry-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }

.entry-content { font-family: var(--serif); font-size: var(--reading); line-height: 1.8; color: var(--ink); }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-family: var(--sans); font-size: 1.5rem; margin: 1.6em 0 .6em; }
.entry-content h3 { font-family: var(--sans); font-size: 1.22rem; margin: 1.4em 0 .5em; }
.entry-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--brand); font-size: 1.15em; font-style: italic; color: var(--ink-2); }
.entry-content figure { margin: 1.5em 0; }
.entry-content img { border-radius: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .92rem; margin: 1.4em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.entry-content th { background: var(--bg-2); }
.entry-content .rvh-ad { font-family: var(--sans); }
.entry-content .info-box { font-family: var(--sans); background: var(--bg-2); border-left: 4px solid var(--brand); padding: 14px 18px; border-radius: 6px; font-size: .95rem; }

.font-tools { display: inline-flex; gap: 4px; }
.font-tools button { font: 700 .8rem var(--sans); border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 6px; padding: 6px 9px; cursor: pointer; }
.font-tools button:hover { border-color: var(--brand); }

.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 26px 0; }
.share__label { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 8px; color: #fff; font: 700 .85rem var(--sans); border: 0; cursor: pointer; }
.share svg { width: 16px; height: 16px; fill: currentColor; }
.share a:hover, .share button:hover { color: #fff; filter: brightness(1.1); }
.share .fb { background: #1877f2; } .share .wa { background: #25d366; } .share .vb { background: #7360f2; }
.share .x { background: #111; } .share .cp { background: var(--ink-2); }
html[data-theme="dark"] .share .x { background: #333; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.tags a { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; font-size: .82rem; font-weight: 600; }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 20px; background: var(--bg-2); border-radius: var(--radius); margin: 28px 0; }
.author-box img { border-radius: 50%; }
.author-box h3 { margin: 0 0 4px; font-size: 1.05rem; }
.author-box p { margin: 0; color: var(--ink-2); font-size: .92rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.post-nav a { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; }
.post-nav small { display: block; color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: .7rem; letter-spacing: .06em; margin-bottom: 4px; }
.post-nav .next { text-align: right; }

/* ---------- Archive ---------- */
.archive-header { padding: 22px 0; margin-bottom: 24px; border-bottom: 2px solid var(--ink); }
.archive-header h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; }
.archive-header p { color: var(--ink-2); margin: 8px 0 0; }
.archive-header .eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }

.pagination { margin: 32px 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Page ---------- */
.page-content { max-width: 820px; }
.page-content .entry-content { font-family: var(--sans); font-size: 1rem; line-height: 1.75; }
.page-content h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* ---------- Forms / comments ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit;
}
textarea { min-height: 150px; resize: vertical; }
.contact-form p { margin-bottom: 14px; }
.contact-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 5px; }
.contact-form .hp { position: absolute; left: -9999px; }
.notice-box { padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; }
.notice-box.ok { background: #dcfce7; color: #14532d; }
.notice-box.err { background: #fee2e2; color: #7f1d1d; }
.comments-area { margin-top: 36px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: .85rem; color: var(--muted); }
.comment-author { display: flex; align-items: center; gap: 8px; }
.comment-author img { border-radius: 50%; }
.comment-respond { background: var(--bg-2); padding: 20px; border-radius: var(--radius); margin-top: 20px; }
.comment-form label { display: block; font-weight: 700; font-size: .9rem; }
.comment-form .submit { background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 11px 20px; font-weight: 700; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--top); color: #c9ced8; margin-top: 40px; font-size: .92rem; }
.site-footer a { color: #e5e8ee; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 44px 0 32px; }
.footer-top h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { padding: 4px 0; }
.footer-about .rvh-logo { color: #fff; }
.footer-about p { margin-top: 14px; opacity: .85; max-width: 420px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; opacity: .85; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 0; }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; border: 0; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.2); border-radius: 12px; padding: 16px 18px; display: none; gap: 14px; align-items: center; z-index: 200; font-size: .9rem; }
.cookie-bar.is-visible { display: flex; }
.cookie-bar p { margin: 0; flex: 1; }
.cookie-bar a { color: var(--brand); text-decoration: underline; }

.empty-state { text-align: center; padding: 60px 0; }
.empty-state h1 { font-size: 4rem; color: var(--brand); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .hero { grid-template-columns: 1fr; }
  .hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-grid; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { border-bottom: 1px solid var(--line); }
  .main-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding-left: 14px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .row-card { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .topbar__links .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .grid--3, .grid--2, .hero__side { grid-template-columns: 1fr; }
  .hero__main { min-height: 0; background: none; border-radius: 0; overflow: visible; }
  .hero__main img { position: static; aspect-ratio: 16/9; height: auto; border-radius: var(--radius); }
  .hero__main:hover img { transform: none; }
  .hero__overlay { display: none; }
  .hero__body { position: static; color: var(--ink); padding: 12px 0 0; }
  .hero__body h2 { font-size: 1.45rem; }
  .hero__body a:hover { color: var(--brand); text-decoration: none; }
  .hero__body .meta { color: var(--muted); }
  .topbar { display: none; }
  .hero__item { grid-template-columns: 110px 1fr; }
  .rvh-logo svg { height: 40px; }
  .entry-lead { font-size: 1.08rem; }
  .post-nav { grid-template-columns: 1fr; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .footer-top { grid-template-columns: 1fr; }
  .topbar__date { display: none; }
}
@media print {
  .site-header, .topbar, .ticker, .sidebar, .share, .rvh-ad, .site-footer, .comments-area, .to-top, .cookie-bar, .post-nav { display: none !important; }
  .layout { display: block; }
}
