/* =====================================================================
   Valaha.hu — front-end reference build
   Tokens and chrome follow the rebuild spec §4 (color, type, spacing).
   Single-theme by design: the spec pins a white page on black chrome.
   ===================================================================== */

:root {
  --bg:            #FFFFFF;
  --bg-muted:      #EDEDED;
  --line:          #EAEAEA;
  --ink:           #111111;
  --ink-2:         #222222;
  --ink-3:         #444444;
  --meta:          #767676;
  --topbar:        #111111;
  --logo-plate:    #111111;
  --logo-type:     #FFFFFF;
  --footer-bg:     #313B45;
  --footer-text:   #CCCCCC;
  --footer-head:   #FFFFFF;
  --footer-link:   #00CCFF;
  --accent:        #3A863D;
  --accent-hover:  #4DB2EC;
  --chip-yellow:   #F9C100;
  --hot:           #E42719;
  --cat-pill-bg:   #111111;
  --cat-pill-fg:   #FFFFFF;
  --ad-label:      #767676;

  --font-ui:   "Roboto", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;

  --wrap: 1140px;
  --gap: 24px;
  --topbar-h: 36px;
  --nav-h: 52px;
  --ticker-h: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-hover); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Topbar */
.topbar {
  background: var(--topbar);
  color: #fff;
  height: var(--topbar-h);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1;
}
.topbar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.topbar__date { text-transform: none; letter-spacing: .01em; }
.topbar__right { display: flex; gap: 18px; color: #bbb; }
.topbar__right a:hover { color: #fff; }

/* ---------------------------------------------------------------- Logo row */
.logorow { background: var(--bg); }
.logorow .wrap { height: 104px; display: flex; align-items: center; justify-content: center; position: relative; }
.logo-plate {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--logo-plate); color: var(--logo-type);
  font-family: var(--font-ui); font-weight: 700; font-size: 32px; line-height: 1;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 16px 26px 14px;
}
.logo-plate:hover { color: var(--logo-type); }
.logo-plate small { display: none; }

/* ---------------------------------------------------------------- Nav row */
.navrow {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: var(--nav-h);
}
.navrow .wrap { display: flex; align-items: stretch; justify-content: center; position: relative; min-height: var(--nav-h); }
.nav__mini {
  display: none; align-self: center; margin-right: auto;
  background: var(--logo-plate); color: #fff; font-family: var(--font-ui); font-weight: 700;
  font-size: 14px; letter-spacing: .04em; text-transform: uppercase; padding: 8px 10px; line-height: 1;
}
.navrow.stuck .nav__mini { display: inline-flex; }
.navrow.stuck .wrap { justify-content: flex-start; }
.nav { display: flex; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; display: flex; }
.nav > li > a, .nav > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--nav-h); padding: 0 14px;
  font-family: var(--font-ui); font-weight: 700; font-size: 13px; line-height: 1;
  letter-spacing: .02em; text-transform: uppercase; color: var(--ink);
  background: none; border: 0;
}
.nav > li > a:hover, .nav > li > button:hover,
.nav > li.is-active > a, .nav > li.is-open > button { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.nav .caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav__dd {
  display: none; position: absolute; top: 100%; left: 0; min-width: 280px; z-index: 70;
  background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  list-style: none; margin: 0; padding: 8px 0;
}
.nav > li.is-open > .nav__dd { display: block; }
.nav__dd a {
  display: block; padding: 12px 18px; min-height: 44px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ink-2);
  text-transform: none; letter-spacing: 0;
}
.nav__dd a:hover { background: var(--bg-muted); color: var(--ink); }

.nav-search { position: absolute; right: 20px; top: 0; height: 100%; display: flex; align-items: center; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--ink); border-radius: 0;
}
.icon-btn:hover { color: var(--accent); }
.icon-btn svg { width: 22px; height: 22px; }
.search-drop {
  display: none; position: absolute; right: 0; top: 100%; z-index: 70; width: 340px;
  background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,.08); padding: 14px;
}
.search-drop.is-open { display: block; }
.search-drop form { display: flex; gap: 8px; }
.search-drop input {
  flex: 1; min-height: 44px; padding: 0 12px; font: 500 16px var(--font-ui);
  border: 1px solid #bbb; border-radius: 0; color: var(--ink);
}
.search-drop button {
  min-height: 44px; padding: 0 16px; background: var(--ink); color: #fff;
  font: 700 13px var(--font-ui); text-transform: uppercase; letter-spacing: .04em; border: 0;
}
.search-drop button:hover { background: var(--accent); color: #fff; }

/* Mobile chrome */
.mobile-bar { display: none; }
.drawer { display: none; }

/* ---------------------------------------------------------------- Ticker */
.ticker { border-bottom: 1px solid var(--line); background: var(--bg); }
.ticker .wrap { display: flex; align-items: center; height: var(--ticker-h); gap: 14px; }
.ticker__chip {
  flex: 0 0 auto; background: var(--ink); color: #fff;
  font: 700 11px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .06em;
  padding: 9px 12px; white-space: nowrap;
}
.ticker__viewport { flex: 1; overflow: hidden; height: 100%; position: relative; }
.ticker__item {
  position: absolute; inset: 0; display: flex; align-items: center;
  font: 500 15px/1.3 var(--font-ui); color: var(--ink);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ticker__item.is-on { opacity: 1; transform: none; }
.ticker__item a { display: block; overflow: hidden; text-overflow: ellipsis; }
.ticker__arrows { flex: 0 0 auto; display: flex; }
.ticker__arrows button { width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; }
.ticker__arrows button + button { border-left: 0; }
.ticker__arrows button:hover { background: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- Layout */
main { display: block; }
.page { padding: 28px 0 48px; }
.section { margin-bottom: 42px; }
.cols { display: grid; grid-template-columns: 8fr 4fr; gap: var(--gap); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stack { display: grid; gap: 18px; }
.sidebar { position: sticky; top: calc(var(--nav-h) + 16px); display: grid; gap: 32px; }
.narrow { max-width: 720px; margin: 0 auto; }

/* ---------------------------------------------------------------- Block titles */
.block-title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding-bottom: 8px;
  font: 700 17px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .02em; color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.block-title::before { content: ""; width: 12px; height: 12px; background: var(--ink); }
.block-title--red { border-bottom-color: var(--hot); }
.block-title--red::before { background: var(--hot); }
.block-title--plain { border-bottom: 1px solid var(--line); }
.block-title--plain::before { display: none; }
.block-title--chip { border-bottom: 3px solid var(--chip-yellow); padding-bottom: 0; }
.block-title--chip::before { display: none; }
.block-title--chip .chip {
  background: var(--chip-yellow); color: var(--ink); display: inline-block;
  padding: 8px 12px 7px; font: 700 14px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .02em;
}
.block-title--small { font-size: 15px; }
.block-title--mixed { text-transform: none; letter-spacing: 0; font-size: 18px; }

/* ---------------------------------------------------------------- Category pill */
.pill {
  display: inline-block; background: var(--cat-pill-bg); color: var(--cat-pill-fg);
  font: 700 10px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .06em;
  padding: 5px 7px 4px;
}
.pill:hover { color: #fff; background: var(--accent); }

/* ---------------------------------------------------------------- Meta */
.meta { font: 400 12px/1 var(--font-ui); color: var(--meta); display: flex; flex-wrap: wrap; gap: 6px; }
.meta a:hover { color: var(--accent-hover); }
.meta .sep::before { content: "-"; }

/* ---------------------------------------------------------------- Images */
.thumb { position: relative; overflow: hidden; background: var(--bg-muted); display: block; }
.thumb::before { content: ""; display: block; padding-bottom: 62.5%; }
.thumb--70::before { padding-bottom: 70%; }
.thumb--169::before { padding-bottom: 56.25%; }
.thumb--sq::before { padding-bottom: 100%; }
.thumb img, .thumb .thumb__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  background-size: cover; background-position: center;
  transition: transform .3s ease;
}
.thumb:hover .thumb__img, .thumb:hover img { transform: scale(1.04); }
.thumb .pill { position: absolute; left: 12px; top: 12px; z-index: 2; }

/* ---------------------------------------------------------------- Card 1: overlay (hero) */
.ovl { position: relative; display: block; overflow: hidden; background: var(--ink); color: #fff; }
.ovl:hover { color: #fff; }
.ovl .thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.28) 42%, rgba(0,0,0,.05) 70%, rgba(0,0,0,0) 100%);
}
.ovl__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px; }
.ovl__title { margin: 0; font: 700 32px/1.2 var(--font-ui); text-wrap: balance; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.ovl__title:hover { color: var(--accent-hover); }
.ovl .meta { color: #ddd; margin-top: 10px; }
.ovl .meta a:hover { color: #fff; }
.ovl--xl .thumb::before { padding-bottom: 70%; }
.ovl--m .thumb::before { padding-bottom: 66%; }
.ovl--m .ovl__title { font-size: 20px; line-height: 1.25; }
.ovl--m .ovl__body { padding: 16px; }
.ovl--s .thumb::before { padding-bottom: 72%; }
.ovl--s .ovl__title { font-size: 15px; line-height: 1.3; font-weight: 600; }
.ovl--s .ovl__body { padding: 12px; }
.ovl--s .thumb .pill, .ovl--m .thumb .pill { left: 10px; top: 10px; }
.ovl--wide .thumb::before { padding-bottom: 40%; }
.ovl--wide .ovl__title { font-size: 36px; }

.hero {
  display: grid; grid-template-columns: 58fr 42fr; grid-template-rows: auto auto; gap: 12px;
}
.hero > .ovl--xl { grid-row: 1 / span 2; }
.hero__right { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; grid-row: 2; grid-column: 2; }
.hero > .ovl--m { grid-row: 1; grid-column: 2; }

/* ---------------------------------------------------------------- Card 2: vertical */
.card { display: grid; gap: 10px; align-content: start; }
.card__title { margin: 0; font: 600 19px/1.3 var(--font-ui); color: var(--ink); text-wrap: balance; }
.card__title a:hover { color: var(--accent-hover); }
.card--s .card__title { font: 500 15px/1.3 var(--font-ui); }
.card__excerpt { margin: 0; font: 400 14px/1.6 var(--font-body); color: var(--ink-3); }
.card--big .card__title { font-size: 26px; font-weight: 700; line-height: 1.2; }
.card--big .card__excerpt { font-size: 15px; }

/* ---------------------------------------------------------------- Card 3: horizontal 30/70 */
.hcard { display: grid; grid-template-columns: 30% 1fr; gap: 14px; align-items: start; }
.hcard .thumb::before { padding-bottom: 68%; }
.hcard__title { margin: 0; font: 500 15px/1.3 var(--font-ui); color: var(--ink); }
.hcard__title a:hover { color: var(--accent-hover); }
.hcard .meta { margin-top: 6px; }
.hcard--mini { grid-template-columns: 100px 1fr; }

/* ---------------------------------------------------------------- Card 4: text-only compact list */
.tlist { list-style: none; margin: 0; padding: 0; display: grid; }
.tlist li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tlist li:last-child { border-bottom: 0; }
.tlist__title { margin: 0; font: 500 15px/1.35 var(--font-ui); color: var(--ink); }
.tlist__title a:hover { color: var(--accent-hover); }
.tlist .meta { margin-top: 5px; }

/* ---------------------------------------------------------------- Card 5: ranked list */
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; display: grid; }
.ranked li { counter-increment: rank; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ranked li:last-child { border-bottom: 0; }
.ranked li::before { content: counter(rank); font: 700 28px/1 var(--font-ui); color: var(--hot); font-variant-numeric: tabular-nums; }
.ranked li:nth-child(n+4)::before { color: var(--meta); }
.ranked__title { margin: 0; font: 500 16px/1.3 var(--font-ui); color: var(--ink); }
.ranked__title a:hover { color: var(--accent-hover); }
.ranked .meta { margin-top: 5px; }

/* ---------------------------------------------------------------- Ads */
.ad { display: grid; place-items: center; background: var(--bg-muted); color: var(--ad-label); border: 1px solid var(--line); text-align: center; }
.ad__label { font: 400 11px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--ad-label); }
.ad__size { font: 400 12px/1 var(--font-ui); color: #9a9a9a; margin-top: 8px; }
.ad--300x250 { width: 300px; height: 250px; max-width: 100%; margin: 0 auto; }
.ad--fluid { min-height: 120px; }
.ad--leader { height: 90px; }

/* ---------------------------------------------------------------- Yellow band (block B) */
.band { display: grid; grid-template-columns: 8fr 4fr; gap: var(--gap); align-items: start; }
.band .card__title { font: 700 24px/1.25 var(--font-ui); }
.band .card__excerpt { font-size: 15px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.band .card { grid-template-columns: 1fr 1fr; gap: 18px; }
.band .card .thumb { grid-row: 1 / span 3; }
.band .card .thumb::before { padding-bottom: 66%; }

/* ---------------------------------------------------------------- Sidebar widgets */
.widget { display: grid; gap: 14px; }
.widget--welcome { background: var(--bg-muted); padding: 18px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.widget--welcome h3 { margin: 0 0 6px; font: 700 16px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .02em; }
.widget--welcome p { margin: 0; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------------------------------------------------------------- Popular categories */
.catlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 24px; }
.catlist li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font: 500 15px/1.2 var(--font-ui); }
.catlist .count { background: var(--ink); color: #fff; font: 700 11px/1 var(--font-ui); padding: 5px 8px; min-width: 32px; text-align: center; }
.catlist li:hover .count { background: var(--accent); }

/* ---------------------------------------------------------------- Category page */
.cat-head { margin-bottom: 26px; padding-bottom: 14px; border-bottom: 3px solid var(--cat-color, var(--ink)); }
.cat-head h1 { margin: 0 0 6px; font: 700 34px/1.15 var(--font-ui); }
.cat-head p { margin: 0; font-size: 16px; color: var(--ink-3); max-width: 720px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.subnav a { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); font: 500 13px/1 var(--font-ui); color: var(--ink-2); }
.subnav a:hover, .subnav a.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 32px 0 0; font: 500 14px/1 var(--font-ui); }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); padding: 0 10px; }
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination__info { margin-left: 12px; color: var(--meta); border: 0 !important; }
.empty { padding: 40px 0; font-size: 18px; }

/* ---------------------------------------------------------------- Article */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font: 400 13px/1.3 var(--font-ui); color: var(--meta); }
.crumbs a:hover { color: var(--accent-hover); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.article__head { margin-bottom: 22px; }
.article__title { margin: 12px 0 14px; font: 700 38px/1.2 var(--font-ui); text-wrap: balance; }
.article__byline { display: flex; align-items: center; gap: 10px; font: 400 13px/1.2 var(--font-ui); color: var(--meta); flex-wrap: wrap; }
.article__byline .avatar { width: 32px; height: 32px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 700 12px/1 var(--font-ui); }
.article__byline .author { color: var(--ink); font-weight: 700; }
.article__byline .dot::before { content: "·"; }
.article__figure { margin: 0 0 22px; }
.article__figure .thumb::before { padding-bottom: 56.25%; }
.article__figure figcaption { font: 400 13px/1.4 var(--font-ui); color: var(--meta); margin-top: 8px; }
.share { display: flex; gap: 10px; margin: 0 0 22px; flex-wrap: wrap; }
.share button, .share a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: 700 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .04em; }
.share .fb { background: #1877F2; border-color: #1877F2; color: #fff; }
.share button:hover, .share a:hover { background: var(--ink); color: #fff; }
.article__body { font: 400 18px/1.7 var(--font-body); color: var(--ink-2); max-width: 100%; }
.article__body p { margin: 0 0 1.15em; }
.article__body h2 { font: 700 24px/1.3 var(--font-ui); color: var(--ink); margin: 1.6em 0 .6em; }
.article__body h3 { font: 700 20px/1.3 var(--font-ui); color: var(--ink); margin: 1.4em 0 .5em; }
.article__body ul, .article__body ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.article__body li { margin-bottom: .4em; }
.article__body blockquote { margin: 1.4em 0; padding: 8px 0 8px 20px; border-left: 3px solid var(--accent); font-size: 20px; line-height: 1.5; color: var(--ink); }
.article__body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font: 400 16px/1.5 var(--font-body); font-variant-numeric: tabular-nums; }
.article__body th, .article__body td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.article__body th { font-family: var(--font-ui); font-weight: 700; background: var(--ink); color: #fff; }
.article__body tbody tr:nth-child(even) { background: var(--bg-muted); }
.article__body td.num, .article__body th.num { text-align: right; }
.article__body figure { margin: 1.4em 0; }
.article__body figcaption { font: 400 13px/1.4 var(--font-ui); color: var(--meta); margin-top: 8px; }
.article__body .ad { margin: 1.4em 0; }
.article__body strong { color: var(--ink); }
.callout { background: var(--bg-muted); border-left: 4px solid var(--accent); padding: 16px 18px; margin: 1.4em 0; font-size: 16px; line-height: 1.6; }
.callout h3 { margin: 0 0 6px; font: 700 16px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .02em; }
.callout p { margin: 0; }
.callout a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.tags a { display: inline-block; padding: 8px 12px; background: var(--bg-muted); color: var(--ink-2); font: 500 13px/1 var(--font-ui); }
.tags a:hover { background: var(--ink); color: #fff; }
.calc-box { margin: 28px 0 0; padding: 20px 22px; border: 2px solid var(--accent); display: grid; gap: 10px; }
.calc-box h3 { margin: 0; font: 700 16px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .02em; color: var(--accent); }
.calc-box p { margin: 0; font-size: 16px; }
.calc-box .btn { justify-self: start; }
.updated { display: inline-block; font: 400 13px/1 var(--font-ui); color: var(--meta); background: var(--bg-muted); padding: 8px 10px; }

/* Recipe card */
.recipe { border: 1px solid var(--ink); padding: 22px 24px; margin: 1.4em 0; background: #fff; }
.recipe h2 { margin: 0 0 10px; font: 700 22px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .02em; }
.recipe__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px dashed #bbb; list-style: none; font: 500 14px/1.3 var(--font-ui); color: var(--ink-3); }
.recipe__cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.recipe h3 { margin: 0 0 8px; font: 700 15px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .04em; }
.recipe ul, .recipe ol { margin: 0; padding-left: 1.2em; font-size: 17px; line-height: 1.6; }
.recipe li { margin-bottom: .45em; }
.recipe__print { margin-top: 14px; }

/* ---------------------------------------------------------------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; background: var(--ink); color: #fff; border: 2px solid var(--ink); font: 700 15px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .03em; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--green { background: var(--accent); border-color: var(--accent); }
.btn--green:hover { background: #2f6e31; border-color: #2f6e31; }
.btn--lg { min-height: 56px; font-size: 17px; padding: 0 28px; }

/* ---------------------------------------------------------------- Calculators */
.calc-hero { margin-bottom: 28px; }
.calc-hero h1 { margin: 0 0 10px; font: 700 36px/1.2 var(--font-ui); }
.calc-hero p { margin: 0; font-size: 18px; color: var(--ink-3); max-width: 720px; }
.tool-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.tool-card { border: 2px solid var(--ink); padding: 24px; display: grid; gap: 12px; align-content: start; }
.tool-card h2 { margin: 0; font: 700 22px/1.25 var(--font-ui); }
.tool-card p { margin: 0; font-size: 16px; color: var(--ink-3); }
.tool-card .btn { justify-self: start; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.calc__form { display: grid; gap: 18px; border: 1px solid var(--line); padding: 24px; background: #fff; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font: 700 16px/1.3 var(--font-ui); color: var(--ink); }
.field .hint { font: 400 14px/1.4 var(--font-body); color: var(--meta); }
.field input[type="number"], .field input[type="text"], .field input[type="date"], .field select {
  min-height: 52px; padding: 0 14px; font: 500 18px var(--font-ui); color: var(--ink);
  border: 2px solid #bbb; border-radius: 0; background: #fff; width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--hot); }
.field .error { font: 500 14px/1.4 var(--font-ui); color: var(--hot); }
.field--row { grid-template-columns: repeat(3, 1fr); }
.field--row .field { gap: 4px; }
.field--row .field label { font-size: 14px; color: var(--ink-3); }
.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 2px solid #bbb; font: 500 16px/1 var(--font-ui); cursor: pointer; background: #fff; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.choice input:checked + span { font-weight: 700; }
.choice label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.toggle { display: flex; align-items: flex-start; gap: 12px; font: 500 16px/1.4 var(--font-ui); }
.toggle input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.calc__result { display: grid; gap: 14px; align-content: start; }
.result { border: 3px solid var(--accent); padding: 22px 24px; display: grid; gap: 10px; background: #fff; }
.result--idle { border-color: var(--line); color: var(--ink-3); }
.result__label { font: 700 13px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.result--idle .result__label { color: var(--meta); }
.result__big { font: 700 40px/1.1 var(--font-ui); color: var(--ink); font-variant-numeric: tabular-nums; text-wrap: balance; }
.result__sub { font-size: 16px; color: var(--ink-3); margin: 0; }
.result__rows { display: grid; gap: 6px; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font: 400 15px/1.4 var(--font-body); }
.result__rows div { display: flex; justify-content: space-between; gap: 12px; }
.result__rows b { font-variant-numeric: tabular-nums; }
.result__range { font: 500 15px/1.3 var(--font-ui); color: var(--ink-3); }
.disclaimer { font: 400 14px/1.5 var(--font-body); color: var(--ink-3); background: var(--bg-muted); padding: 12px 14px; border-left: 3px solid var(--meta); }
.calc__notes { font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.calc__notes h2 { font: 700 20px/1.3 var(--font-ui); color: var(--ink); margin: 1.4em 0 .5em; }
.calc__notes table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.calc__notes th, .calc__notes td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.calc__notes th { font-family: var(--font-ui); background: var(--bg-muted); }

/* ---------------------------------------------------------------- Tudástár */
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.guide-card { border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 20px; display: grid; gap: 10px; align-content: start; }
.guide-card h2 { margin: 0; font: 700 20px/1.25 var(--font-ui); }
.guide-card p { margin: 0; font-size: 15px; color: var(--ink-3); }
.guide-card .updated { justify-self: start; }

/* ---------------------------------------------------------------- Legal / static */
.static h1 { margin: 0 0 18px; font: 700 34px/1.2 var(--font-ui); }
.static .article__body { font-size: 17px; }
.static dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 1.2em; }
.static dt { font: 700 15px/1.6 var(--font-ui); color: var(--ink); }
.static dd { margin: 0; }
.placeholder { background: #FFF4C2; color: #5a4300; padding: 0 4px; font-weight: 600; }
.contact-form { display: grid; gap: 16px; margin-top: 20px; }
.contact-form textarea { min-height: 160px; padding: 12px 14px; font: 400 17px var(--font-body); border: 2px solid #bbb; border-radius: 0; width: 100%; }
.notice { padding: 14px 16px; background: var(--bg-muted); font-size: 15px; }
.notice--ok { border-left: 4px solid var(--accent); }

/* ---------------------------------------------------------------- 404 / search */
.hero-text { padding: 40px 0 20px; }
.hero-text h1 { margin: 0 0 10px; font: 700 36px/1.2 var(--font-ui); }
.hero-text p { margin: 0 0 18px; font-size: 18px; color: var(--ink-3); }
.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form input { flex: 1; min-height: 52px; padding: 0 14px; font: 500 18px var(--font-ui); border: 2px solid #bbb; border-radius: 0; }
.results-count { font: 500 15px/1.3 var(--font-ui); color: var(--meta); margin: 0 0 18px; }

/* ---------------------------------------------------------------- Footer */
.footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 24px; font: 400 14px/1.5 var(--font-ui); }
.footer .wrap { padding-top: 44px; padding-bottom: 30px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer h3 { margin: 0 0 16px; color: var(--footer-head); font: 700 15px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer .contact a, .footer .contact .cyan { color: var(--footer-link); }
.footer .contact p { margin: 0 0 10px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px; text-align: center; font-size: 13px; color: #b5bcc4; }

/* ---------------------------------------------------------------- Back to top */
.totop { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; background: var(--ink); color: #fff; border: 0; display: none; align-items: center; justify-content: center; z-index: 50; }
.totop.is-on { display: inline-flex; }
.totop:hover { background: var(--accent); }

/* ---------------------------------------------------------------- Consent bar */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--ink); color: #fff; padding: 16px 20px; display: grid; grid-template-columns: 1fr auto; gap: 16px 28px; align-items: center; font: 400 15px/1.5 var(--font-body); box-shadow: 0 -6px 24px rgba(0,0,0,.2); }
.consent p { margin: 0; max-width: 720px; }
.consent__btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.consent__btns .btn { border-color: #fff; }
.consent__btns .btn--ghost { background: transparent; color: #fff; }
.consent__btns .btn--ghost:hover { background: #fff; color: var(--ink); }
.consent__btns .btn:not(.btn--ghost) { background: #fff; color: var(--ink); }
.consent__btns .btn:not(.btn--ghost):hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.consent__btns a { color: #bbb; text-decoration: underline; font: 400 13px/1 var(--font-ui); margin-left: 6px; }
.consent__btns a:hover { color: #fff; }
@media (max-width: 767px) { .consent { grid-template-columns: 1fr; padding: 14px 16px; } }

/* ---------------------------------------------------------------- Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; font: 500 15px/1 var(--font-ui); z-index: 90; display: none; }
.toast.is-on { display: block; }

/* ================================================================ Responsive
   Newspaper breakpoints: ≥1141 / 1019–1140 / 768–1018 / ≤767 */
@media (max-width: 1140px) {
  .wrap { padding: 0 16px; }
  .nav > li > a, .nav > li > button { padding: 0 10px; }
}
@media (max-width: 1018px) {
  :root { --gap: 18px; }
  .cols { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .band { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .catlist { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .guide-cards { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .ovl__title { font-size: 26px; }
  .nav > li > a, .nav > li > button { font-size: 12px; padding: 0 8px; }
}
@media (max-width: 767px) {
  :root { --gap: 15px; --nav-h: 56px; }
  .topbar { display: none; }
  .logorow, .navrow .nav, .nav-search, .nav__mini { display: none !important; }
  .navrow { border-top: 0; }
  .navrow .wrap { justify-content: space-between; align-items: center; }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; width: 100%; height: var(--nav-h); }
  .mobile-bar .logo-plate { font-size: 24px; padding: 11px 16px 10px; }
  .drawer { display: block; position: fixed; inset: 0; top: var(--nav-h); z-index: 80; background: var(--bg); transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; padding: 8px 0 40px; }
  .drawer.is-open { transform: none; }
  .drawer form { display: flex; gap: 8px; padding: 12px 16px; }
  .drawer form input { flex: 1; min-height: 48px; padding: 0 12px; font: 500 16px var(--font-ui); border: 1px solid #bbb; border-radius: 0; }
  .drawer form button { min-height: 48px; padding: 0 16px; background: var(--ink); color: #fff; border: 0; font: 700 13px var(--font-ui); text-transform: uppercase; }
  .drawer ul { list-style: none; margin: 0; padding: 0; }
  .drawer > ul > li > a, .drawer > ul > li > span { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); font: 700 16px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
  .drawer > ul > li.is-active > a { box-shadow: inset 4px 0 0 var(--accent); }
  .drawer > ul > li > span { color: var(--meta); font-size: 12px; letter-spacing: .08em; padding-bottom: 6px; border-bottom: 0; }
  .drawer ul ul a { display: block; padding: 12px 16px 12px 28px; border-bottom: 1px solid var(--line); font: 500 16px/1.3 var(--font-ui); color: var(--ink-2); }
  .ticker__item { font-size: 14px; }
  .ticker__arrows { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero > .ovl--xl, .hero > .ovl--m { grid-row: auto; grid-column: auto; }
  .hero__right { grid-row: auto; grid-column: auto; }
  .ovl__title { font-size: 22px; }
  .ovl--m .ovl__title { font-size: 18px; }
  .ovl--s .ovl__title { font-size: 14px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .grid-3.keep-2 { grid-template-columns: 1fr 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .band .card { grid-template-columns: 1fr; }
  .band .card .thumb { grid-row: auto; }
  .band .card__title { font-size: 20px; }
  .card__title { font-size: 16px; }
  .card--big .card__title { font-size: 22px; }
  .block-title { font-size: 15px; }
  .block-title--chip .chip { font-size: 13px; }
  .catlist { grid-template-columns: 1fr; }
  .cat-head h1 { font-size: 26px; }
  .article__title { font-size: 26px; }
  .article__body { font-size: 17px; }
  .recipe__cols { grid-template-columns: 1fr; }
  .tool-cards { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .result__big { font-size: 30px; }
  .calc-hero h1 { font-size: 28px; }
  .guide-cards { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 28px; }
  .static dl { grid-template-columns: 1fr; gap: 2px 0; }
  .static dd { margin-bottom: 10px; }
}

/* ---------------------------------------------------------------- Print (recipes, calculators) */
@media print {
  .topbar, .navrow, .ticker, .footer, .sidebar, .ad, .share, .totop, .tags, .related, .drawer, .mobile-bar { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .cols { grid-template-columns: 1fr; }
  .article__title { font-size: 24pt; }
  .recipe { border: 1px solid #000; page-break-inside: avoid; }
  a { color: #000; }
}

/* ---- pages/category.js ---- */
.sidebar .catlist { grid-template-columns: 1fr; }
.archive { display: grid; gap: var(--gap); }
.archive .pagination { margin-top: 8px; }
.pagination__gap { min-width: 20px; border: 0 !important; color: var(--meta); }
/* 60+ accessibility: the two controls this page introduces must reach the 44px tap target */
.pagination a, .pagination span { min-width: 44px; height: 44px; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; font-size: 14px; }
.cols > .main-col { min-width: 0; }                   /* also set by home.js: a long title must not widen the 8/12 track */
.cat-head--author p { max-width: 780px; }
.feed-url { margin: 0 0 24px; padding: 16px 18px; background: var(--bg-muted); font: 600 18px/1.4 var(--font-ui); word-break: break-all; }

/* ---- pages/home.js ---- */
.home-leader { margin-bottom: 24px; }                 /* §11.1 leaderboard under the ticker, home only */
.cols > .main-col { min-width: 0; }                   /* 3-col grids must not overflow the 8/12 column */
.home-pop { align-items: start; }                     /* ranked list + fluid ad: ad keeps its own height */

/* ---- pages/calc-amount.js ---- */
.calc__formula {
  margin: 0 0 1.2em; padding: 14px 16px; background: var(--bg-muted);
  border-left: 3px solid var(--accent);
  font: 700 16px/1.5 var(--font-ui); color: var(--ink);
}
.calc__pcts { max-width: 520px; }
.calc__pcts caption { text-align: left; padding: 0 0 10px; font: 400 14px/1.4 var(--font-body); color: var(--meta); }
.calc__pcts th, .calc__pcts td { padding: 6px 10px; }
.calc__pcts td:last-child { font-weight: 700; color: var(--ink); }
.calc__cross {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin: 8px 0 42px; padding: 18px 20px; background: var(--bg-muted);
  font: 400 16px/1.5 var(--font-body); color: var(--ink-2);
}
.calc__cross span { flex: 1 1 320px; }
.calc__cross .btn { flex: 0 0 auto; }

/* ---- pages/calc-when.js ---- */
#calc-when .field--row { gap: 10px 14px; }
#calc-when .hint { margin: 0; }
#calc-when .error[hidden], #calc-when .toggle[hidden] { display: none; }
.calc__fieldset { margin: 0; padding: 14px 18px 18px; border: 2px solid var(--line); display: grid; gap: 16px; }
.calc__fieldset[hidden] { display: none; }
.calc__fieldset legend { padding: 0 6px; font: 700 15px/1.3 var(--font-ui); color: var(--ink); }
/* csak Tool A eredménydoboza ragadós — a .calc__result-öt Tool B is használja */
.calc__result--when { position: sticky; top: calc(var(--nav-h) + 16px); }
#calc-when-result .result__range { margin: 0; }
#cw-notes { margin-bottom: 6px; }
#cw-notes p { margin: 0 0 1em; }
#cw-notes h2:first-child { margin-top: 0; }
.calc__notes-table { overflow-x: auto; margin: 0 0 1.2em; }
@media (max-width: 1018px) { .calc__result--when { position: static; } }

/* ---- pages/tudastar.js ---- */
.article__lead { font: 400 20px/1.5 var(--font-body); color: var(--ink-3); margin: 0 0 18px; }
.guide-cards--hub { margin-bottom: 42px; }            /* a hub kártyarácsa alá ugyanaz a köz, mint a .section után */
.guide-card h2 a:hover { color: var(--accent-hover); }
.updated--calc { background: var(--accent); color: #fff; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Kapcsolat: e-mail címek + űrlap a statikus törzs alatt */
.contact-block { margin-top: 34px; }
.contact-block h2 { margin: 0 0 10px; font: 700 22px/1.3 var(--font-ui); color: var(--ink); }
.contact-block__intro { margin: 0 0 16px; font: 400 17px/1.6 var(--font-body); color: var(--ink-2); }
.contact-block dd a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.contact-form textarea:focus { border-color: var(--accent); outline: none; }
.contact-form textarea[aria-invalid="true"] { border-color: var(--hot); }
.contact-form .error { font: 500 14px/1.4 var(--font-ui); color: var(--hot); margin-top: 6px; }
.contact-form .error[hidden] { display: none; }
.contact-form .toggle a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.contact-form .btn { justify-self: start; }
.static .notice { margin-top: 20px; }
.field input[type="email"] {          /* a §8.5 kapcsolati űrlap mezője, a többi input mintájára */
  min-height: 52px; padding: 0 14px; font: 500 18px var(--font-ui); color: var(--ink);
  border: 2px solid #bbb; border-radius: 0; background: #fff; width: 100%;
}
/* A fenti szabály fajsúlya azonos a .field input:focus / [aria-invalid] szabályokéval,
   de később áll a lapon, ezért az e-mail mezőnek külön kell megismételni az állapotokat,
   különben se fókuszjelzése, se piros hibakerete nem lenne (WCAG 2.4.7, 60+ olvasók). */
.field input[type="email"]:focus { border-color: var(--accent); outline: none; }
.field input[type="email"][aria-invalid="true"] { border-color: var(--hot); }
.contact-form .toggle { min-height: 44px; align-items: center; }   /* 60+ olvasóknak: 44px-es érintőfelület */
/* A jogi oldalak törzsében élő linkek (mailto- és horgonylinkek) ne olvadjanak
   bele a szövegbe — a globális `a { color: inherit }` miatt egyébként láthatatlanok. */
.static .article__body a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.static .article__body a:hover { color: var(--accent-hover); }

/* ---- pages/zz-post.js ---- */
/* 60+ olvasóknak: a címkék is elérjék a 44px-es érintőfelületet (§13) */
.tags a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; }

/* =====================================================================
   valaha-pro template additions (see CONTRACT note in the reference build:
   new rules go at the END, using the existing tokens).
   The reference build was a hash-routed single page; these cover the
   chrome states that only exist once the site is real static routes.
   ===================================================================== */

/* Skip link — the reference build had no keyboard entry point to main. */
.skip {
  position: absolute; left: 20px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px;
  font: 700 14px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .04em;
  transition: top .15s;
}
.skip:focus { top: 8px; color: #fff; }

/* Current-page nav state: server-rendered, not derived from location.hash. */
.nav > li[aria-current="page"] > a { box-shadow: inset 0 -3px 0 var(--accent); }

/* Pagination — archives are real paginated routes now, not one JS list. */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 32px 0 0; }
.pagination a, .pagination span {
  min-width: 44px; min-height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); font: 700 14px/1 var(--font-ui); color: var(--ink-2);
}
.pagination a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination [aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination__gap { border: 0; min-width: 20px; padding: 0; color: var(--meta); }

/* Empty archive state. */
.empty { padding: 32px 0; color: var(--meta); font-size: 17px; }
