/*
Theme Name: Naturalab
Theme URI: https://naturalab.ro
Description: Temă editorială pentru naturalab.ro – secțiune prin perete, o singură culoare de accent.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: naturalab
*/

/* ───────── tokens ───────── */
:root {
  --bg: #F7F3EC;
  --surface: #EFE8DD;
  --hover-row: #F2ECE2;
  --ink: #1F1B17;
  --body: #332D27;
  --lead: #554D45;
  --muted: #6E645A;
  --faint: #8A7F72;
  --line: #E0D7CA;
  --line-strong: #CFC3B1;
  --box-line: #DDD2C2;
  --dark: #1F1B17;
  --dark-line: #3A332C;
  --dark-text: #C4BAAE;
  --dark-label: #C9A182;
  --accent: #A9552F;
  --accent-hover: #7E3E21;
  --accent-soft: #DCC8B5;
  --paper: #FFFDFA;
  --layer-a: #E3D3B8;
  --layer-b: #EBE1D0;
  --layer-c: #DFD0BA;
  --layer-d: #D6C0A6;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --gutter: 140px;
  --content: 1160px;
}

/* ───────── base ───────── */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; color: var(--ink); margin: 0; }
p { margin: 0; }
button, input { font-family: var(--sans); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--ink); color: var(--bg); padding: 10px 14px; }

.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.lbl { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; font-family: var(--sans); }
.ttl { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; color: var(--ink); }
.meta { font-size: 12px; color: var(--faint); }
.art { display: block; color: var(--ink); }
.art:hover { color: var(--ink); }
.art:hover .ttl { color: var(--accent-hover); }
.more { display: inline-block; color: var(--accent); border-bottom: 1px solid var(--accent-soft); padding-bottom: 5px; }
.italic-note { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--faint); }

/* textures – rétegek */
.tex-a { background-color: var(--layer-a); background-image: repeating-linear-gradient(90deg, rgba(31,27,23,.10) 0 1px, transparent 1px 9px); }
.tex-b { background-color: var(--layer-b); background-image: repeating-linear-gradient(45deg, rgba(31,27,23,.09) 0 1px, transparent 1px 7px); }
.tex-c { background-color: var(--layer-c); background-image: radial-gradient(rgba(31,27,23,.14) 1px, transparent 1.2px); background-size: 8px 8px; }
.tex-d { background-color: var(--layer-d); background-image: repeating-linear-gradient(0deg, rgba(31,27,23,.07) 0 1px, transparent 1px 6px); }
.tex-on { background-color: var(--dark); background-image: repeating-linear-gradient(45deg, rgba(247,243,236,.10) 0 1px, transparent 1px 7px); }

/* képkeret: textúra a háttérben, ha nincs kép */
.ph { position: relative; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* ───────── header ───────── */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { font-family: var(--serif); font-size: 27px; letter-spacing: -0.015em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--muted); padding-bottom: 3px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.is-on { color: var(--ink); border-bottom-color: var(--accent); }
.nav-search { display: inline-flex; align-items: center; color: var(--muted); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px 0 10px 10px; color: var(--ink); cursor: pointer; }

/* ───────── falmetszet ───────── */
.wall-legend { display: flex; align-items: center; justify-content: space-between; padding-bottom: 9px; color: var(--faint); }
.wall-rule { height: 1px; background: var(--line-strong); }
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin: 2px 0; }
.wall a, .wall .layer-on { display: block; padding: 22px 22px 20px; color: var(--ink); transition: background-color .15s ease; }
.wall .layer-name { font-family: var(--serif); font-size: 24px; letter-spacing: -0.015em; color: var(--ink); }
.wall .layer-sub { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.wall--home a:hover { background-color: var(--dark); }
.wall--home a:hover .layer-name, .wall--home a:hover .layer-sub { color: var(--bg); }
.wall--compact a, .wall--compact .layer-on { padding: 16px 18px; }
.wall--compact .layer-name { font-size: 18px; }
.wall--compact a:hover { background-color: #CFBFA6; }
.wall .layer-on { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wall .layer-on .layer-name { color: var(--bg); }
.wall .layer-on .lbl { color: var(--dark-label); }
.wall .layer-short { display: none; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); }
.crumbs a { color: var(--faint); }
.crumbs a:hover { color: var(--accent-hover); }
.crumbs .cur { color: var(--ink); }

/* ───────── szekció-fejléc ───────── */
.sec { padding-top: 72px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.sec-head h2 { font-size: 32px; }
.sec-head .lbl, .sec-head .italic-note { padding-bottom: 5px; }

/* ───────── főoldal ───────── */
.hero { padding-top: 60px; display: flex; gap: 64px; align-items: flex-start; }
.hero-main { width: 700px; flex-shrink: 0; }
.hero-main .kicker { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hero-main h1 { margin-top: 18px; font-size: 50px; line-height: 1.06; }
.hero-main .dek { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--lead); max-width: 620px; }
.hero-main .more { margin-top: 24px; }
.hero-main .ph { margin-top: 32px; height: 300px; }
.latest { flex: 1; min-width: 0; border-left: 1px solid var(--line); padding-left: 48px; }
.latest-head { color: var(--faint); padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.latest .art { padding: 20px 0; border-bottom: 1px solid var(--line); }
.latest .art:last-child { border-bottom: 0; }
.latest .ttl { margin-top: 7px; font-size: 21px; line-height: 1.25; }

.home-wall { padding-top: 64px; }

.feat { display: flex; gap: 40px; align-items: flex-start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.feat--rev { flex-direction: row-reverse; }
.feat .ph { width: 360px; height: 220px; flex-shrink: 0; }
.feat-body { flex: 1; min-width: 0; }
.feat .ttl { margin-top: 10px; font-size: 30px; line-height: 1.18; }
.feat p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--lead); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 4px; }
.trio .art { padding: 24px 32px; border-left: 1px solid var(--line); }
.trio .art:first-child { padding-left: 0; border-left: 0; }
.trio .art:last-child { padding-right: 0; }
.trio .ph { height: 150px; margin-bottom: 16px; }
.trio .ttl { margin-top: 8px; font-size: 22px; line-height: 1.22; }
.trio p { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--muted); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; padding-top: 28px; }
.duo .ph { height: 230px; }
.duo .meta { margin-top: 18px; }
.duo .ttl { margin-top: 8px; font-size: 27px; line-height: 1.2; }
.duo p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.dosar { display: flex; background: var(--dark); color: var(--bg); }
.dosar:hover { color: var(--bg); }
.dosar-main { width: 520px; flex-shrink: 0; padding: 50px 48px; border-right: 1px solid var(--dark-line); }
.dosar-main .lbl { color: var(--dark-label); }
.dosar-main h3 { margin-top: 18px; font-size: 38px; line-height: 1.1; letter-spacing: -0.02em; color: var(--bg); }
.dosar:hover h3 { color: #F0D9C4; }
.dosar-main p { margin-top: 18px; font-size: 16px; line-height: 1.62; color: var(--dark-text); }
.dosar-main .more { margin-top: 26px; color: #E8C6A8; border-bottom-color: #8A6A50; padding-bottom: 4px; }
.dosar-nums { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dosar-nums div { padding: 50px 30px; border-right: 1px solid var(--dark-line); }
.dosar-nums div:last-child { border-right: 0; }
.dosar-nums b { display: block; font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1; letter-spacing: -0.02em; }
.dosar-nums span { display: block; margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--dark-text); }

.rail .row { display: grid; grid-template-columns: 120px 1fr 220px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.rail .row:hover { background: var(--hover-row); }
.rail .row .d { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.rail .row .ttl { font-size: 21px; padding-right: 40px; }
.rail .row .lbl { color: var(--faint); text-align: right; }

/* ───────── gomb ───────── */
.btn { height: 48px; padding: 0 26px; border: 0; background: var(--accent); color: var(--paper); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { background: var(--accent-hover); color: var(--paper); }

/* ───────── lábléc ───────── */
.site-footer { margin-top: 68px; border-top: 1px solid var(--line); padding: 48px 0 40px; }
.foot-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px; }
.foot-grid .logo { font-size: 23px; }
.foot-grid p { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--faint); }
.foot-grid .lbl { color: var(--ink); margin-bottom: 14px; }
.foot-grid a:not(.logo) { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; }
.foot-grid a:not(.logo):hover { color: var(--accent-hover); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--faint); }

/* ───────── kategóriaoldal ───────── */
.cat-wall { padding-top: 28px; }
.cat-wall .crumbs { padding-bottom: 16px; }
.cat-head { padding-top: 52px; display: flex; gap: 80px; align-items: flex-end; justify-content: space-between; }
.cat-head > div:first-child { max-width: 720px; }
.cat-head h1 { font-size: 56px; line-height: 1.05; }
.cat-head .dek { margin-top: 20px; font-size: 18px; line-height: 1.62; color: var(--lead); }
.cat-head .dek p + p { margin-top: 12px; }
.cat-count { text-align: right; flex-shrink: 0; padding-bottom: 6px; }
.cat-count .ttl { font-size: 40px; line-height: 1; }
.cat-count .lbl { color: var(--faint); margin-top: 4px; }
.cat-count .meta { margin-top: 12px; }
.subnav { display: flex; align-items: center; gap: 26px; margin-top: 36px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { color: var(--muted); white-space: nowrap; padding-bottom: 9px; margin-bottom: -15px; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-on { color: var(--ink); border-bottom-color: var(--accent); }
.subnav .grow { flex-grow: 1; }
.subnav .sort { color: var(--faint); white-space: nowrap; }

.cat-body { display: flex; gap: 80px; align-items: flex-start; padding-top: 32px; }
.cat-list { width: 760px; flex-shrink: 0; min-width: 0; }
.cat-side { flex: 1; min-width: 0; max-width: 320px; }

.lead-item { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.lead-item .ph { height: 320px; }
.lead-item .meta { margin-top: 20px; }
.lead-item .ttl { margin-top: 10px; font-size: 36px; line-height: 1.12; }
.lead-item p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--lead); }

.item { display: flex; gap: 28px; align-items: flex-start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.item .ph { width: 220px; height: 150px; flex-shrink: 0; }
.item-body { flex: 1; min-width: 0; }
.item .ttl { margin-top: 8px; font-size: 25px; line-height: 1.2; }
.item p { margin-top: 10px; font-size: 15px; line-height: 1.58; color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 28px; }
.pager .page-numbers { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ink); padding: 11px 15px; border: 1px solid var(--box-line); }
.pager .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager .page-numbers.next, .pager .page-numbers.prev { color: var(--accent); }
.pager .page-numbers.dots { border-color: transparent; }
.pager a.page-numbers:hover { border-color: var(--ink); }

.quick { border: 1px solid var(--box-line); background: var(--surface); padding: 26px 24px; }
.quick > .lbl { color: var(--accent); }
.quick .q { margin-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--box-line); }
.quick .q:first-of-type { margin-top: 18px; }
.quick .q:last-child { padding-bottom: 0; border-bottom: 0; }
.quick .ttl { font-size: 24px; line-height: 1.2; }
.quick .q div:last-child { font-size: 13px; color: var(--muted); margin-top: 4px; }
.side-block { margin-top: 36px; }
.side-block:first-child { margin-top: 0; }
.side-block > .lbl { color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.side-block .art { padding: 16px 0; border-bottom: 1px solid var(--line); }
.side-block .art .ttl { font-size: 19px; line-height: 1.25; }
.side-block .nb { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.side-block .nb span:last-child { color: var(--accent); font-size: 13px; }
.side-block .nb:hover { color: var(--accent-hover); }

.seo { background: var(--surface); padding: 52px 56px; display: flex; gap: 80px; align-items: flex-start; }
.seo-aside { width: 260px; flex-shrink: 0; }
.seo-aside h2 { font-size: 30px; line-height: 1.15; }
.seo-aside .lbl { color: var(--faint); margin-top: 16px; }
.seo-text { flex: 1; min-width: 0; max-width: 700px; font-size: 16px; line-height: 1.7; color: var(--lead); }
.seo-text p { margin: 0 0 14px; }
.seo-text h2, .seo-text h3 { font-size: 21px; margin: 26px 0 10px; }
.seo-text ul, .seo-text ol { margin: 0 0 14px; padding-left: 20px; }
.seo-text a { border-bottom: 1px solid var(--accent-soft); }
.faq { margin-top: 36px; border-top: 1px solid var(--ink); }
.faq h3 { font-size: 21px; margin: 18px 0 8px; }
.faq details { border-bottom: 1px solid var(--box-line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; position: relative; font-family: var(--serif); font-size: 19px; line-height: 1.3; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--sans); font-size: 20px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--lead); }
.faq .ans p + p { margin-top: 10px; }

/* ───────── cikkoldal ───────── */
.post-head { padding-top: 30px; }
.post-head .head-in { max-width: 900px; margin-top: 40px; }
.kicker { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.kicker .lbl { color: var(--accent); }
.post-head h1 { margin-top: 20px; font-size: 58px; line-height: 1.04; }
.post-head .dek { margin-top: 26px; font-size: 21px; line-height: 1.55; color: var(--lead); }
.post-head .dek a { border-bottom: 1px solid var(--accent-soft); }
.byline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline .who { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.avatar { width: 44px; height: 44px; flex-shrink: 0; object-fit: cover; }
.avatar--lg { width: 76px; height: 76px; }
.byline .name { font-size: 15px; font-weight: 600; }
.byline .role { font-size: 13px; color: var(--faint); }
.share { display: flex; align-items: center; gap: 18px; }
.share > span { color: var(--faint); }
.share a, .share button { color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
.share a:hover, .share button:hover { color: var(--accent-hover); }
.post-figure { margin: 0; padding-top: 32px; }
.post-figure .ph { height: 440px; }
.post-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--faint); font-family: var(--serif); font-style: italic; }

.post-body { padding-top: 56px; display: flex; gap: 80px; align-items: flex-start; }
.toc-rail { width: 280px; flex-shrink: 0; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: thin; }
.toc-rail > .lbl { color: var(--faint); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.toc a { display: block; padding: 13px 0 13px 14px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; font-size: 15px; line-height: 1.4; color: var(--muted); }
.toc a:last-child { border-bottom: 0; }
.toc a:hover { color: var(--accent-hover); }
.toc a.is-on { color: var(--ink); border-left-color: var(--accent); padding-left: 12px; }
.brief { margin-top: 36px; border: 1px solid var(--box-line); background: var(--surface); padding: 22px 20px; }
.brief .lbl { color: var(--accent); }
.brief p { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--lead); }
.brief--m { display: none; }
.toc-m { display: none; }

.entry { width: 720px; flex-shrink: 0; min-width: 0; }
.entry > * { margin: 22px 0 0; }
.entry > :first-child { margin-top: 0; }
.entry p, .entry li { font-size: 18px; line-height: 1.72; color: var(--body); }
.entry > p:first-child { font-size: 19px; }
.entry a { border-bottom: 1px solid var(--accent-soft); }
.entry a:hover { border-bottom-color: var(--accent-hover); }
.entry h2 { font-size: 30px; line-height: 1.2; margin-top: 48px; scroll-margin-top: 24px; }
.entry h3 { font-size: 23px; line-height: 1.25; margin-top: 36px; scroll-margin-top: 24px; }
.entry h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--faint); margin-top: 32px; }
.entry ul, .entry ol { padding-left: 22px; }
.entry li + li { margin-top: 8px; }
.entry li::marker { color: var(--accent); }
.entry strong { font-weight: 600; color: var(--ink); }
.entry sup { font-size: 11px; color: var(--accent); font-weight: 600; line-height: 0; }
.entry hr { border: 0; border-top: 1px solid var(--line); margin-top: 40px; }
.entry img { margin: 32px 0 0; }
.entry figure { margin: 32px 0 0; }
.entry figure img { margin: 0; }
.entry figcaption, .entry .wp-element-caption { margin-top: 10px; font-size: 13px; color: var(--faint); font-family: var(--serif); font-style: italic; }

/* kiemelt idézet – belelóg a bal margóba */
.entry blockquote { margin: 40px 0 0 -60px; width: calc(100% + 60px); padding: 0 0 0 28px; border-left: 3px solid var(--accent); }
.entry blockquote p { margin: 0; font-family: var(--serif); font-size: 27px; line-height: 1.35; color: var(--ink); }
.entry blockquote cite { display: block; margin-top: 12px; font-style: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--faint); }

/* „De verificat pe șantier” – class="check" vagy wp-block-group is-style-check */
.entry .check, .entry .is-style-check { background: var(--surface); border-top: 3px solid var(--accent); padding: 26px 28px; margin-top: 32px; }
.entry .check > :first-child, .entry .is-style-check > :first-child { margin-top: 0; }
.entry .check .lbl, .entry .check h4, .entry .is-style-check h4 { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin: 0; }
.entry .check p, .entry .is-style-check p { margin-top: 12px; font-size: 16px; line-height: 1.65; }

/* szituációs lista – <dl class="situations"> */
.entry .situations { margin-top: 26px; }
.entry .situations > div { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: baseline; }
.entry .situations > div:last-child { border-bottom: 1px solid var(--line); }
.entry .situations dt { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.entry .situations dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--lead); }

/* összehasonlító táblázat */
.entry .tbl { margin-top: 26px; }
.entry table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); font-size: 15px; }
.entry th, .entry td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.entry thead th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink); padding-top: 12px; padding-bottom: 12px; }
.entry thead th:first-child { color: var(--faint); }
.entry tbody th, .entry tbody td:first-child { font-weight: 400; color: var(--lead); }
.entry td { color: var(--ink); font-variant-numeric: tabular-nums; }
.entry td.pending, .entry td:has(> .pending) { color: var(--faint); }
.entry .tbl-note, .entry table + p.note { margin-top: 12px; font-size: 13px; color: var(--faint); font-family: var(--serif); font-style: italic; }
.entry .tbl-scroll { overflow-x: auto; }


/* jogi nyilatkozat és források */
.entry .disclaimer, .entry p.disclaimer, .entry em.disclaimer { font-size: 14px; line-height: 1.6; color: var(--faint); }
.entry h2#surse + ol, .entry .sources { padding-left: 20px; }
.entry h2#surse + ol li, .entry .sources li { font-size: 15px; line-height: 1.7; color: var(--lead); }

.entry .article-note { margin-top: 32px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.author-box { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--ink); display: flex; gap: 22px; align-items: flex-start; }
.author-box .lbl { color: var(--faint); }
.author-box .ttl { margin-top: 7px; font-size: 22px; display: block; }
.author-box p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.author-box .more { margin-top: 12px; font-size: 11px; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 28px; }
.related .ph { height: 190px; }
.related .meta { margin-top: 14px; }
.related .ttl { margin-top: 7px; font-size: 22px; line-height: 1.22; }

/* ───────── szövegoldal / szerző / keresés / 404 ───────── */
.page-head { padding-top: 30px; }
.page-head .head-in { max-width: 900px; margin-top: 40px; }
.page-head h1 { margin-top: 20px; font-size: 56px; line-height: 1.05; }
.page-head .dek { margin-top: 22px; font-size: 20px; line-height: 1.55; color: var(--lead); }
.page-body { padding-top: 48px; display: flex; gap: 80px; align-items: flex-start; }
.page-body .entry { margin-left: 360px; }
.page-body--rail .entry { margin-left: 0; }

.search-head { padding-top: 52px; }
.search-head h1 { font-size: 56px; line-height: 1.05; }
.search-head h1 em { font-style: italic; color: var(--accent); }
.search-form { display: flex; gap: 12px; margin-top: 28px; max-width: 760px; }
.search-form input[type=search] { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid #C6B9A6; background: var(--paper); font-size: 17px; color: var(--ink); }
.search-form .btn { height: 52px; }
.result-count { margin-top: 36px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); color: var(--faint); }
.empty { padding: 48px 0 0; max-width: 760px; }
.empty p { font-size: 18px; line-height: 1.65; color: var(--lead); }

.nf { padding-top: 72px; display: flex; gap: 80px; align-items: flex-start; }
.nf-code { width: 280px; flex-shrink: 0; }
.nf-code b { display: block; font-family: var(--serif); font-weight: 400; font-size: 120px; line-height: .9; letter-spacing: -0.03em; color: var(--ink); }
.nf-code .lbl { color: var(--faint); margin-top: 14px; }
.nf-main { flex: 1; min-width: 0; max-width: 760px; }
.nf-main h1 { font-size: 46px; line-height: 1.08; }
.nf-main > p { margin-top: 18px; font-size: 18px; line-height: 1.65; color: var(--lead); }


/* ═════════ tablet ═════════ */
@media (max-width: 1439px) {
  :root { --gutter: clamp(24px, 6vw, 140px); }
  .hero-main { width: auto; flex: 1 1 60%; }
  .latest { flex: 0 0 34%; }
  .cat-list { width: auto; flex: 1 1 auto; }
  .cat-side { flex: 0 0 300px; }
  .entry { width: auto; flex: 1 1 auto; max-width: 720px; }
  .page-body .entry { margin-left: 0; }
  .dosar-main { width: 44%; }
}

@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .toc-rail { width: 220px; }
  .post-body, .cat-body { gap: 48px; }
  .entry blockquote { margin-left: 0; width: 100%; }
  .seo { gap: 40px; padding: 40px; }
}

/* ═════════ mobil: 390px referencia, töréspont 760px alatt ═════════ */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }

  .site-header .wrap { height: 60px; }
  .logo { font-size: 23px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; z-index: 40; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--ink); padding: 0 16px 8px; }
  .site-header { position: relative; }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
  .nav a.is-on { border-bottom-color: var(--line); box-shadow: inset 2px 0 0 var(--accent); padding-left: 12px; }
  .nav a:last-child { border-bottom: 0; }

  .sec { padding-top: 52px; }
  .sec-head { flex-wrap: wrap; align-items: baseline; }
  .sec-head h2 { font-size: 26px; }
  .sec-head .italic-note { width: 100%; padding-bottom: 0; }

  /* DÖNTÉS 1a – falmetszet a főoldalon: a négy hasáb egymás alatti rétegekké fordul.
     A metszet 90°-kal elfordul: fent a tartószerkezet, lent a kész felület, így
     a végrehajtási sorrend olvasási sorrend marad. */
  .wall-legend { flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 8px; }
  .wall-legend .italic-note { order: -1; }
  .wall-legend .lbl { display: none; }
  .wall--home { grid-template-columns: 1fr; }
  .wall--home a { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 16px 16px 15px; min-height: 72px; }
  .wall--home .layer-name { font-size: 21px; }
  .wall--home .layer-sub { margin-top: 3px; font-size: 12px; grid-column: 1; }
  .wall--home a::after { content: "→"; grid-column: 2; grid-row: 1 / span 2; color: var(--accent); font-size: 15px; }
  .wall--home a:hover::after { color: var(--bg); }
  .wall-end { display: block !important; padding-top: 8px; color: var(--faint); }

  /* DÖNTÉS 1b – kategóriaoldalon a négy hasáb megmarad egy sorban (ez a
     tájékozódás lényege), de rövid címkét kap; az aktív réteg teljes neve
     a sáv alatt jelenik meg. */
  .wall--compact { gap: 2px; }
  .wall--compact a, .wall--compact .layer-on { padding: 0; height: 52px; display: flex; align-items: center; justify-content: center; text-align: center; }
  .wall--compact .layer-name, .wall--compact .layer-on .lbl { display: none; }
  .wall--compact .layer-short { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink); padding: 0 4px; line-height: 1.25; }
  .wall--compact .layer-on .layer-short { color: var(--bg); }
  .wall-here { display: flex !important; justify-content: space-between; padding-top: 8px; font-size: 12px; color: var(--faint); }

  .crumbs { font-size: 12px; }

  /* főoldal */
  .hero { padding-top: 28px; flex-direction: column; gap: 36px; }
  .hero-main h1 { font-size: 34px; line-height: 1.1; margin-top: 12px; }
  .hero-main .dek { font-size: 16px; margin-top: 14px; }
  .hero-main .ph { order: -1; margin: 0 0 20px; height: 220px; }
  .hero-main { display: flex; flex-direction: column; }
  .hero-main .more { align-self: flex-start; margin-top: 18px; }
  .latest { border-left: 0; padding-left: 0; width: 100%; flex: none; }
  .latest .ttl { font-size: 19px; }
  .home-wall { padding-top: 48px; }

  .feat, .feat--rev { flex-direction: column; gap: 16px; padding: 20px 0 24px; }
  .feat .ph { width: 100%; height: 200px; }
  .feat .ttl { font-size: 24px; margin-top: 8px; }
  .feat p { font-size: 15px; }
  .trio { grid-template-columns: 1fr; margin-top: 0; }
  .trio .art, .trio .art:first-child, .trio .art:last-child { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 96px; column-gap: 16px; }
  .trio .art:last-child { border-bottom: 0; }
  .trio .ph { grid-column: 2; grid-row: 1 / span 3; width: 96px; height: 72px; margin: 0; }
  .trio .meta, .trio .ttl, .trio p { grid-column: 1; }
  .trio .ttl { font-size: 19px; margin-top: 6px; }
  .trio p { display: none; }
  .duo { grid-template-columns: 1fr; gap: 32px; padding-top: 20px; }
  .duo .ph { height: 200px; }
  .duo .ttl { font-size: 23px; }

  .dosar { flex-direction: column; }
  .dosar-main { width: 100%; padding: 32px 20px; border-right: 0; border-bottom: 1px solid var(--dark-line); }
  .dosar-main h3 { font-size: 28px; }
  .dosar-main p { font-size: 15px; }
  .dosar-nums div { padding: 22px 12px; }
  .dosar-nums div:first-child { padding-left: 20px; }
  .dosar-nums b { font-size: 26px; }
  .dosar-nums span { font-size: 12px; margin-top: 8px; }

  .rail .row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .rail .row .ttl { font-size: 19px; padding-right: 0; }
  .rail .row .lbl { text-align: left; font-size: 10px; }
  .rail .row .d { display: flex; justify-content: space-between; }


  .site-footer { margin-top: 52px; padding: 36px 0 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; gap: 4px; }

  /* kategória */
  .cat-wall { padding-top: 14px; }
  .cat-wall .crumbs { padding-bottom: 12px; }
  .cat-head { padding-top: 28px; flex-direction: column; align-items: stretch; gap: 18px; }
  .cat-head h1 { font-size: 38px; }
  .cat-head .dek { font-size: 16px; margin-top: 14px; }
  .cat-head .dek.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .dek-more { display: inline-block; margin-top: 10px; background: none; border: 0; padding: 0 0 4px; color: var(--accent); border-bottom: 1px solid var(--accent-soft); cursor: pointer; }
  .cat-count { text-align: left; display: flex; align-items: baseline; gap: 10px; padding: 12px 0 0; border-top: 1px solid var(--line); }
  .cat-count .ttl { font-size: 26px; }
  .cat-count .lbl { margin-top: 0; }
  .cat-count .meta { margin: 0 0 0 auto; }
  .subnav { margin-top: 24px; gap: 20px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .subnav .grow, .subnav .sort { display: none; }
  .cat-body { flex-direction: column; gap: 48px; padding-top: 20px; }
  .cat-list, .cat-side { width: 100%; max-width: none; flex: none; }
  .lead-item .ph { height: 210px; }
  .lead-item .ttl { font-size: 27px; }
  .lead-item p { font-size: 15px; }
  .item { gap: 14px; padding: 18px 0; flex-direction: row-reverse; }
  .item .ph { width: 104px; height: 78px; }
  .item .ttl { font-size: 19px; margin-top: 6px; }
  .item p { display: none; }
  .pager .page-numbers { padding: 11px 13px; }
  .seo { flex-direction: column; gap: 20px; padding: 28px 20px; }
  .seo-aside { width: auto; }
  .seo-aside h2 { font-size: 25px; }
  .seo-text { font-size: 15px; }

  /* cikk */
  .post-head { padding-top: 14px; }
  .post-head .head-in { margin-top: 24px; }
  .post-head h1 { font-size: 34px; line-height: 1.1; margin-top: 14px; }
  .post-head .dek { font-size: 17px; margin-top: 16px; }
  .byline { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 24px; padding: 14px 0; }
  .share { gap: 16px; flex-wrap: wrap; }
  .post-figure { padding-top: 20px; margin: 0 -16px; }
  .post-figure .ph { height: 240px; }
  .post-figure figcaption { padding: 0 16px; }
  .post-body { flex-direction: column; gap: 0; padding-top: 28px; }

  /* DÖNTÉS 2 – a bal oldali ragadós tartalomjegyzék mobilon egy vékony, a képernyő
     tetejéhez tapadó sáv lesz, ami mindig az aktuális fejezet címét mutatja,
     koppintásra lenyílik a teljes lista. A „Pe scurt” doboz a szöveg elé kerül. */
  .toc-rail { display: none; }
  .brief--m { display: block; margin: 0 0 24px; }
  .toc-m { display: block; position: sticky; top: 0; z-index: 30; margin: 0 -16px 28px; background: var(--bg); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
  .toc-m summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 13px 16px; }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m summary .lbl { color: var(--faint); }
  .toc-m summary .cur { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .toc-m summary::after { content: "↓"; color: var(--accent); font-size: 14px; }
  .toc-m[open] summary::after { content: "↑"; }
  .toc-m .toc { max-height: 60vh; overflow-y: auto; padding: 0 16px 6px; border-top: 1px solid var(--line); }
  .toc-m .toc a { padding: 12px 0 12px 12px; font-size: 15px; }
  .toc-m .progress { height: 2px; background: var(--accent); width: 0; transition: width .1s linear; }

  .entry { width: 100%; max-width: none; }
  .entry p, .entry li { font-size: 17px; line-height: 1.68; }
  .entry > p:first-child { font-size: 18px; }
  .entry h2 { font-size: 25px; margin-top: 40px; scroll-margin-top: 60px; }
  .entry h3 { font-size: 21px; scroll-margin-top: 60px; }
  .entry blockquote { margin-left: 0; width: 100%; padding-left: 18px; }
  .entry blockquote p { font-size: 22px; }
  .entry .check, .entry .is-style-check { padding: 20px 18px; margin-left: -16px; margin-right: -16px; }
  .entry .situations > div { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .entry .situations dt { font-size: 19px; }

  /* DÖNTÉS 3 – a hétsoros összehasonlító táblázat mobilon nem görget oldalra:
     a „kritérium” oszlop minden sor fölé kerül címkeként, a két anyag értéke
     alatta egymás mellett marad, így az összehasonlítás soronként megmarad.
     A fejléc a táblázat tetején ragad, hogy görgetés közben is látszódjon,
     melyik oszlop melyik anyag. 3 oszlopnál többnél vízszintes görgetés. */
  .entry .tbl--cmp table, .entry .tbl--cmp thead, .entry .tbl--cmp tbody { display: block; }
  .entry .tbl--cmp tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .entry .tbl--cmp th, .entry .tbl--cmp td { border: 0; padding: 0; }
  .entry .tbl--cmp tbody tr > :first-child { grid-column: 1 / -1; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--faint); margin-bottom: 6px; }
  .entry .tbl--cmp thead tr { position: sticky; top: 46px; z-index: 5; background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--ink); }
  .entry .tbl--cmp thead th:first-child { display: none; }
  .entry .tbl--cmp td { font-size: 15px; }
  .entry .tbl--cmp tr > :nth-child(3) { padding-left: 14px; border-left: 1px solid var(--line); }
  .entry .tbl--cmp thead tr > :nth-child(3) { border-left: 0; }
  .entry .tbl-scroll { margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .entry .tbl-scroll table { min-width: 560px; }

  .author-box { gap: 16px; }
  .avatar--lg { width: 60px; height: 60px; }
  .related { grid-template-columns: 1fr; gap: 0; padding-top: 4px; }
  .related .art { display: grid; grid-template-columns: 1fr 104px; column-gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .related .ph { grid-column: 2; grid-row: 1 / span 2; height: 78px; }
  .related .meta { margin-top: 0; grid-column: 1; }
  .related .ttl { font-size: 19px; grid-column: 1; }

  /* szövegoldal, szerző, keresés, 404 */
  .page-head { padding-top: 14px; }
  .page-head .head-in { margin-top: 24px; }
  .page-head h1 { font-size: 36px; }
  .page-head .dek { font-size: 17px; }
  .page-body { padding-top: 28px; flex-direction: column; gap: 0; }
  .search-head { padding-top: 28px; }
  .search-head h1 { font-size: 34px; }
  .search-form { flex-direction: column; }
  .search-form .btn { width: 100%; }
  .nf { flex-direction: column; gap: 16px; padding-top: 36px; }
  .nf-code { width: auto; display: flex; align-items: baseline; gap: 14px; }
  .nf-code b { font-size: 72px; }
  .nf-code .lbl { margin-top: 0; }
  .nf-main h1 { font-size: 32px; }
}

.wall-end, .wall-here, .dek-more { display: none; }

@media print {
  .site-header, .site-footer, .toc-rail, .toc-m, .share, .related { display: none !important; }
  body { background: #fff; }
}
