/* Tartozz okosan! – statikus weboldal
   Betű: Schibsted Grotesk (SIL OFL 1.1), helyben kiszolgálva.
   Ha a kiadvány Rational Text betűjéhez van webes licenc, elég a --font változót átírni. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink: #111111;
  --muted: #4a4a4a;
  --paper: #ffffff;
  --sand: #f4f1ea;
  --line: #d9d3c7;
  --red: #d2332b;        /* felületek, fehér szöveggel 5:1 */
  --red-text: #b8261f;   /* piros szöveg fehér alapon 6.2:1 */
  --blue: #2c5ba0;
  --blue-soft: #f2f6fc;
  --lightblue: #7fa6db;  /* címke háttér, sötétkék szöveggel */
  --navy: #0b1f3a;
  --yellow: #fbe13f;
  --mark: #fff4b3;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; }
p, ul, ol, dl { margin: 0 0 1rem; }

a { color: var(--red-text); text-underline-offset: 3px; }
a:hover { color: #7e1712; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Ugrólink */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Fejléc */
.site-header { border-bottom: 2px solid var(--ink); background: var(--paper); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-block: 14px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-title { font-weight: 900; font-size: 1.375rem; letter-spacing: .08em; }
.brand-sub { font-style: italic; font-size: .875rem; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.main-nav a {
  display: inline-block; padding: 10px 0; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: .9375rem; letter-spacing: .04em; text-transform: uppercase;
}
.main-nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.main-nav a[aria-current="page"] {
  color: var(--red-text); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .brand-title { font-size: 1.125rem; }
  .brand-sub { font-size: .75rem; }
  .header-pdf { display: none; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    font: inherit; font-weight: 700; font-size: .9375rem; color: var(--ink);
    background: var(--paper); border: 2px solid var(--ink); cursor: pointer;
  }
  .main-nav { flex-basis: 100%; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li + li { border-top: 1px solid var(--line); }
  .main-nav a { display: block; padding: 12px 0; font-size: 1.0625rem; }
}

/* Gombok */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn svg { flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #a9241d; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; min-height: 44px; font-size: .9375rem; padding: 0 18px; }
.btn-dark:hover { background: #333; color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; min-height: 44px; font-size: .9375rem; padding: 0 16px; }
.btn-blue:hover { background: #20467d; color: #fff; }
.btn-blue-outline { border-color: var(--blue); color: var(--blue); background: #fff; min-height: 44px; font-size: .9375rem; padding: 0 16px; }
.btn-blue-outline:hover { background: var(--blue-soft); color: var(--blue); }

/* Arculati elemek */
.eyebrow { font-weight: 700; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red-text); margin: 0; }
.ribbon {
  display: inline-block; background: var(--red); color: #fff; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: 8px 40px 8px 16px; font-size: 1.25rem; line-height: 1.3;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}
a.ribbon:hover { background: #a9241d; color: #fff; }
.chapter-title {
  display: inline-block; margin: 0 0 40px; background: var(--red); color: #fff;
  font-weight: 800; font-size: clamp(1.375rem, 3.2vw, 2.125rem); line-height: 1.2;
  letter-spacing: .03em; text-transform: uppercase; padding: 20px 40px 20px 28px;
  clip-path: polygon(0 14px, 28px 0, 100% 0, 100% 100%, 0 100%);
}
.num-tag {
  display: inline-block; flex: none; background: var(--lightblue); color: var(--navy);
  font-weight: 800; font-size: 1.125rem; line-height: 1.5; padding: 4px 24px 4px 12px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}
.section-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 16px; font-weight: 800; font-size: 1.625rem; }
.dot-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dot-list li { position: relative; padding-left: 20px; }
.dot-list li::before {
  content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--red);
}
.example-title { font-style: italic; color: var(--red-text); font-size: 1.125rem; margin: 32px 0 8px; }

/* Jó tanácsok doboz */
.advice { position: relative; margin: 48px 0 56px 12px; }
.advice::before {
  content: ""; position: absolute; left: -12px; top: 24px; right: 40px; bottom: -14px; background: var(--red);
}
.advice-inner { position: relative; background: var(--yellow); padding: 32px clamp(18px, 4vw, 32px) 28px; }
.advice h2 {
  display: flex; align-items: center; gap: 14px; margin: 0 0 16px;
  font-size: 1.125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.advice h2 span { border-bottom: 3px solid var(--blue); }
.advice .dot-list { font-size: 1rem; line-height: 1.55; margin: 0; }

/* Táblázat */
.table-scroll { overflow-x: auto; border: 2px solid var(--blue); margin-bottom: 8px; }
table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
caption { text-align: left; font-weight: 700; padding: 12px 16px; }
thead tr { background: var(--blue); color: #fff; }
th, td { padding: 10px 16px; text-align: left; vertical-align: top; }
tbody tr { border-top: 1px solid #c9d6ea; }
tbody tr:nth-child(even) { background: var(--blue-soft); }
tbody th { font-weight: 400; }
.note { font-size: .875rem; color: var(--muted); }

/* Kezdőlap */
.hero { display: flex; flex-wrap: wrap; min-height: 560px; }
.hero-art { flex: 1 1 420px; background: var(--red); min-height: 220px; position: relative; overflow: hidden; }
.hero-art::before {
  content: ""; position: absolute; left: 48px; top: 56px; width: 120px; height: 120px;
  background: var(--lightblue); transform: rotate(-8deg);
}
.hero-art::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px;
  border-radius: 50%; background: var(--yellow);
}
.hero-text { flex: 1 1 520px; padding: clamp(40px, 7vw, 72px) var(--gutter) 64px clamp(16px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.hero h1 { margin: 0; font-weight: 900; font-size: clamp(3rem, 7vw, 4.75rem); line-height: 1; letter-spacing: .06em; }
.hero-sub { margin: 0; font-style: italic; font-size: clamp(1.375rem, 3vw, 2rem); line-height: 1.25; }
.hero-lead { margin: 0; max-width: 560px; font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.intro { padding-block: 88px 40px; display: flex; flex-wrap: wrap; gap: 24px 48px; }
.intro h2 { flex: 1 1 280px; margin: 0; font-weight: 900; font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1; letter-spacing: .06em; text-transform: uppercase; hyphens: manual; }
.intro-body { flex: 2 1 560px; max-width: 720px; }
.intro-body details { margin-top: 8px; }
.intro-body summary { cursor: pointer; font-weight: 700; color: var(--red-text); padding: 8px 0; min-height: 44px; }
.intro-body details p { margin-top: 1rem; }

.parts { padding-block: 48px 24px; }
.label-heading { margin: 0 0 28px; font-weight: 800; font-size: .9375rem; letter-spacing: .12em; text-transform: uppercase; }
.parts-list { list-style: none; margin: 0; padding: 10px 10px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.part-card { border: 2px solid var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.part-card .roman { font-weight: 900; font-size: 4rem; line-height: 1; }
.part-card h3 { margin: 0; font-weight: 900; font-size: 1.5rem; letter-spacing: .05em; text-transform: uppercase; }
.part-card p { margin: 0; }
.part-card .grow { flex-grow: 1; }
.part-card .meta { font-size: .875rem; color: var(--muted); }
.part-card--yellow { background: var(--yellow); }
.part-card--yellow .meta { color: #2b2b2b; }
.part-card--yellow a { color: var(--ink); }
.part-card--blue { border-color: var(--blue); box-shadow: 10px -10px 0 0 #fff, 10px -10px 0 2px var(--blue); }
.part-card--blue .roman, .part-card--blue a { color: var(--blue); }

.feature { padding-block: 72px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.feature figure { flex: 1 1 420px; margin: 0; }
.feature figcaption { font-size: .875rem; color: var(--muted); margin-top: 8px; }
.feature-text { flex: 1 1 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.feature-text h2 { margin: 0; font-weight: 900; font-size: clamp(2rem, 4vw, 2.5rem); }
.feature-text p { margin: 0; }

.toc { background: var(--sand); padding-block: 80px; }
.toc h2.big { margin: 0 0 40px; font-weight: 900; font-size: clamp(2.25rem, 5vw, 3.25rem); letter-spacing: .06em; text-transform: uppercase; }
.toc-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.toc-col { flex: 1 1 420px; display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.toc-list { list-style: none; margin: 20px 0 0; padding: 0; }
.toc-list li { border-bottom: 1px solid var(--line); padding: 8px 0; }
.toc-list li:last-child { border-bottom: 0; }
.toc-list a { color: var(--ink); text-decoration: none; font-weight: 700; display: block; }
.toc-list a:hover { text-decoration: underline; }
.toc-list .soon { color: var(--muted); }
.toc-list .strong { font-weight: 700; }
.soon-badge { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--muted); padding: 1px 6px; margin-left: 6px; white-space: nowrap; }
.chips { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; background: #fff; border: 1px solid var(--ink); font-size: .9375rem; }

/* Lábléc */
.site-footer { background: var(--ink); color: #fff; padding-block: 56px 40px; font-size: .9375rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-brand { flex: 1 1 280px; }
.footer-brand p { margin: 0 0 6px; }
.footer-brand .muted, .site-footer dt { color: #d6d6d6; }
.footer-main { flex: 2 1 480px; }
.credits { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 32px; }
.credits dd { margin: 0; font-weight: 700; }
.credits .full { grid-column: 1 / -1; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #3a3a3a; }
.footer-bottom p { margin: 0; }

/* Aloldalak */
.breadcrumb ol { list-style: none; margin: 0; padding: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #6b6b6b; }
.breadcrumb [aria-current] { color: var(--muted); }

.layout { padding-block: 32px 80px; display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; }
.side-nav { flex: 1 1 260px; max-width: 320px; font-size: .9375rem; line-height: 1.4; }
.side-nav .side-title { margin: 0 0 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.side-nav > ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.side-nav > ol > li { border-bottom: 1px solid #dddddd; }
.side-nav > ol > li > a, .side-nav > ol > li > span { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; }
.side-nav > ol > li > span { color: var(--muted); }
.side-nav a[aria-current="page"] { margin: 0 -12px; padding: 12px; background: var(--red); color: #fff; font-weight: 700; }
.side-nav ol ol { list-style: none; margin: 0; padding: 8px 0 12px 16px; }
.side-nav ol ol a { display: block; padding: 6px 0; color: var(--ink); }
.content { flex: 999 1 560px; min-width: 0; max-width: 780px; }
.content section + section { margin-top: 24px; }
.footnotes { margin-top: 48px; font-size: .875rem; color: var(--muted); }
.footnotes::before { content: ""; display: block; width: 160px; border-top: 2px solid var(--red); margin-bottom: 12px; }
.footnotes ol { padding-left: 20px; margin: 0; }
sup a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 0 2px; }

.pager { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 16px; }
.pager a, .pager span.pager-item { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; text-decoration: none; }
.pager .prev { border: 2px solid var(--ink); color: var(--ink); }
.pager .prev:hover { background: var(--ink); color: #fff; }
.pager .next { background: var(--red); color: #fff; text-align: right; }
.pager .next:hover { background: #a9241d; color: #fff; }
.pager small { font-size: .875rem; }
.pager strong { font-weight: 700; }

.chapter-toc { display: none; }
@media (max-width: 860px) {
  .side-nav { display: none; }
  .chapter-toc { display: block; border: 2px solid var(--ink); margin-bottom: 28px; }
  .chapter-toc summary { padding: 12px 14px; font-weight: 700; cursor: pointer; }
  .chapter-toc ol { list-style: none; margin: 0; padding: 0 14px 12px; }
  .chapter-toc a { display: block; padding: 8px 0; }
  .chapter-title { margin-inline: calc(var(--gutter) * -1); padding: 16px var(--gutter); clip-path: polygon(0 10px, 20px 0, 100% 0, 100% 100%, 0 100%); display: block; }
}

/* Iratminta */
.doc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin: 40px 0; }
.stack-badge { position: relative; width: 92px; height: 92px; flex: none; }
.stack-badge span { position: absolute; width: 72px; height: 72px; border: 3px solid var(--blue); background: #fff; }
.stack-badge span:nth-child(1) { left: 16px; top: 0; }
.stack-badge span:nth-child(2) { left: 8px; top: 8px; }
.stack-badge span:nth-child(3) { left: 0; top: 16px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem; color: var(--red-text); }
.doc-head h1 { margin: 4px 0 0; font-weight: 800; font-style: italic; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.doc-head .eyebrow { color: var(--blue); }

.facts { margin: 0 0 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.fact { display: flex; flex-direction: column; gap: 10px; }
.fact dt { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: .9375rem; letter-spacing: .06em; text-transform: uppercase; }
.fact dt img { width: 52px; flex: none; }
.fact dd { margin: 0; background: var(--yellow); padding: 14px 16px; font-size: 1rem; flex-grow: 1; }

.doc-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-bottom: 80px; }
.paper { flex: 999 1 560px; min-width: 0; position: relative; padding: 16px 16px 0 0; }
.paper::before { content: ""; position: absolute; left: 16px; top: 0; right: 0; bottom: 16px; border: 4px solid var(--blue); background: #fff; }
.paper-inner { position: relative; border: 4px solid var(--blue); background: #fff; padding: 28px clamp(18px, 4vw, 32px) 32px; font-size: 1rem; line-height: 1.7; }
.paper-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.paper-top h2 { margin: 0; font-size: 1.125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.paper-top h2 span { color: var(--red-text); }
.paper-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.template mark { background: var(--mark); color: var(--ink); padding: 0 2px; }
.template p { margin: 0 0 16px; }
.template p:last-child { margin: 0; }
.witnesses { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 24px; }
.witnesses p { margin: 0; }
.copy-status { font-size: .875rem; color: var(--blue); font-weight: 700; min-height: 1.4em; margin: 0 0 8px; }

.doc-aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.doc-aside h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.doc-aside ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 1rem; }

/* Nyomtatás: az iratminta tisztán nyomtatható */
@media print {
  .site-header, .site-footer, .breadcrumb, .side-nav, .chapter-toc, .pager, .paper-actions, .doc-aside, .facts, .skip-link, .copy-status { display: none !important; }
  .paper::before { display: none; }
  .paper, .paper-inner { padding: 0; border: 0; }
  .template mark { background: none; }
  body { font-size: 11pt; }
}

[hidden] { display: none !important; }
.content h3 { font-size: 1.125rem; margin: 32px 0 8px; }
.content h3.example-title { font-size: 1.125rem; }
@media (max-width: 760px) {
  .site-header .header-pdf { display: none; }
  .hero-art { min-height: 160px; flex-basis: 100%; }
}

/* ===== 2. kör: teljes oldal ===== */

/* Ragadós fejléc */
.site-header { position: sticky; top: 0; z-index: 50; }
html { scroll-padding-top: calc(var(--header-h, 76px) + 16px); }
.nav-pdf { display: none; }
@media (max-width: 760px) {
  .js .main-nav.is-open { max-height: calc(100vh - var(--header-h, 70px)); overflow-y: auto; padding-bottom: 8px; }
  .nav-pdf { display: list-item; }
}

/* Oldalsó menü: ragadós asztali nézetben */
.side-nav .side-title a { color: var(--ink); text-decoration: none; }
.side-nav > ol > li > a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; }
.side-nav > ol > li > a:hover { text-decoration: underline; }
.side-nav ol ol a.is-active { font-weight: 700; text-decoration-thickness: 2px; }
@media (min-width: 861px) {
  .side-nav {
    position: sticky;
    top: calc(var(--header-h, 76px) + 24px);
    max-height: calc(100vh - var(--header-h, 76px) - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 8px;
  }
}
@media (max-width: 860px) {
  .layout .side-nav { display: block; max-width: none; order: 2; flex-basis: 100%; border-top: 2px solid var(--ink); padding-top: 24px; }
  .layout .side-nav ol ol { display: none; }
}
.content--solo { margin-inline: auto; }

/* Címsorok a fejezetekben */
.content .eyebrow { margin-bottom: 8px; }
.content h3.role-title { margin: 40px 0 8px; color: var(--red-text); font-size: 1.25rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.content h3.sub-title { margin: 36px 0 8px; color: var(--red-text); font-size: 1.1875rem; font-style: italic; font-weight: 700; }
.content .section-heading { margin-top: 56px; }
.content .chapter-title + .section-heading, .content .chapter-toc + .section-heading { margin-top: 0; }
.doc-link { margin: 0 0 16px; }
.doc-link a { display: inline-flex; align-items: baseline; gap: 10px; padding: 8px 14px; border: 2px solid var(--blue); color: var(--blue); text-decoration: none; font-weight: 700; font-size: .9375rem; }
.doc-link a:hover { background: var(--blue-soft); }
.doc-link-num { color: var(--red-text); white-space: nowrap; flex-shrink: 0; }

.example { border-left: 0; background: var(--blue-soft); border: 2px solid var(--blue); padding: 16px 20px; margin: 24px 0; }
.example-label { margin: 0 0 6px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.example p:last-child { margin-bottom: 0; }

.figure { margin: 24px 0 32px; }
.figure img { width: 100%; }
.figure figcaption { font-size: .875rem; color: var(--muted); margin-top: 8px; }
.figure--wide { max-width: 640px; }

/* Kezdőlap – Tartalom: teljes szélességű blokkok */
.toc-block { padding: 28px 0 36px; border-top: 2px solid var(--ink); }
.toc-block:first-of-type { border-top: 0; padding-top: 0; }
.toc-chapters { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 8px 40px; }
.toc-chapter { padding: 10px 0; border-bottom: 1px solid var(--line); }
.toc-chapter-link { font-weight: 800; color: var(--ink); text-decoration: none; }
.toc-chapter-link:hover { text-decoration: underline; }
.toc-chapter ol { list-style: none; margin: 6px 0 0; padding: 0 0 0 16px; font-size: .9375rem; }
.toc-chapter ol a { display: inline-block; padding: 3px 0; color: var(--ink); }
.toc-cols { list-style: none; margin: 20px 0 0; padding: 0; columns: 2 320px; column-gap: 40px; }
.toc-cols li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.toc-cols a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.toc-cols a:hover { text-decoration: underline; }
.toc-n { color: var(--red-text); font-weight: 800; margin-right: 4px; }

/* Jogesetek */
.checklist { padding-left: 1.4em; display: flex; flex-direction: column; gap: 14px; margin: 24px 0 48px; }
.checklist > li::marker { color: var(--red-text); font-weight: 800; }
.stages { display: grid; gap: 16px; margin-bottom: 8px; }
.stage { border: 2px solid var(--ink); padding: 16px 20px; }
.stage h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.stage-what { font-size: .9375rem; color: var(--muted); margin-bottom: 8px; }
.stage .dot-list { margin: 0; }
.case-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.case-card { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; background: #fff; }
.case-card:hover { background: var(--yellow); color: var(--ink); }
.case-num { font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--red-text); }
.case-title { font-weight: 800; line-height: 1.3; flex-grow: 1; }
.case-stage { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.case-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 20px; margin-bottom: 24px; }
.case-h1 { flex: 1 1 360px; margin: 0; background: var(--yellow); padding: 16px 22px; font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; }
.case-badge { margin: 0; background: var(--red); color: #fff; font-weight: 700; font-style: italic; padding: 8px 14px; transform: rotate(-3deg); align-self: center; }
.case-ugy { background: var(--red); color: #fff; padding: 22px clamp(18px, 4vw, 28px) 10px; }
.case-ugy a { color: #fff; }
.case-ugy h2, .case-utca h2, .case-extra h2 { margin: 0 0 10px; font-size: 1rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.case-utca { border: 4px solid var(--red); border-top: 0; padding: 22px clamp(18px, 4vw, 28px) 10px; margin-bottom: 32px; }
.case-extra { background: var(--sand); padding: 22px clamp(18px, 4vw, 28px) 12px; margin-bottom: 24px; }
.case-extra .dot-list { margin: 0; }

/* Iratmintatár */
.tpl-grid { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.tpl-card { height: 100%; display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; border: 2px solid var(--blue); color: var(--ink); text-decoration: none; font-weight: 700; background: #fff; }
.tpl-card:hover { background: var(--blue-soft); color: var(--ink); }
.tpl-num { color: var(--red-text); font-weight: 800; flex: none; }
.content .doc-head { margin: 0 0 32px; }
.facts dd + dd { margin-top: 0; padding-top: 0; }
.fact dd + dd::before { content: ""; display: block; border-top: 1px dashed rgba(0,0,0,.25); margin-bottom: 10px; }
.content .paper { padding-bottom: 0; margin-bottom: 40px; }
.template .center { text-align: center; }
.doc-help { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--sand); margin-bottom: 8px; }
.doc-help h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.doc-help ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 1rem; }
.doc-help p { margin: 0; }
.fn-back { text-decoration: none; }
.footnotes li { margin-bottom: 6px; overflow-wrap: anywhere; }
.content a { overflow-wrap: anywhere; }

@media print {
  .site-header { position: static; }
}
@media (min-width: 861px) {
  .side-nav a[aria-current="page"] { margin: 0; padding: 12px; }
}

/* ===== 3. kör: nyomdai anyag illusztrációi ===== */

/* Borító- és nyitóoldal-illusztráció HTML-címmel */
.cover-art { position: relative; container-type: inline-size; line-height: 0; }
.cover-art img { width: 100%; height: auto; display: block; }
.hero .ca-cover-title, .ca-cover-title {
  position: absolute; left: 11.6%; top: 48.8%; margin: 0;
  color: #fff; font-weight: 800; font-size: 8.6cqw; line-height: 1.04;
  letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.ca-cover-sub {
  position: absolute; left: 23.3%; top: 68.6%; width: 56%; margin: 0;
  color: var(--ink); font-style: italic; font-size: 5.55cqw; line-height: 1.16; hyphens: manual;
}
.ca-title {
  position: absolute; left: 8.3%; top: 58%; margin: 0;
  color: #fff; font-weight: 800; font-size: 8.6cqw; line-height: 1.12;
  letter-spacing: .07em; text-transform: uppercase;
}
.cover-art--opener.two .ca-title { top: 51.4%; }
.ca-roman {
  position: absolute; left: 7.6%; top: 4.2%; color: var(--ink);
  font-weight: 900; font-size: 19cqw; line-height: 1; letter-spacing: .02em;
}

/* Kezdőlap */
.hero--cover { background: var(--yellow); min-height: 0; display: block; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; padding-block: 40px 48px; }
.hero--cover .cover-art { flex: 0 1 440px; max-width: 440px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); }
.hero--cover .hero-text { flex: 1 1 360px; padding: 0; gap: 20px; }
.hero--cover .hero-lead { font-size: 1.25rem; max-width: 560px; }
.eyebrow--ink { color: var(--ink); }
.hero-dl { margin: 0; font-size: .9375rem; }
.hero-dl a { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) {
  .hero--cover .cover-art { flex-basis: 100%; max-width: none; box-shadow: none; margin-inline: calc(var(--gutter) * -1); }
  .hero-inner { padding-top: 0; }
}

/* Részek nyitóképe */
.part-hero { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; margin-bottom: 32px; }
.part-hero .cover-art { flex: 0 1 300px; max-width: 300px; }
.part-hero-text { flex: 1 1 280px; }
.part-hero-text .eyebrow { margin-bottom: 8px; }
.part-hero-text p { margin: 0 0 12px; }
.lead { font-size: 1.1875rem; }
@media (max-width: 640px) { .part-hero .cover-art { flex-basis: 100%; max-width: 360px; } }

/* Illusztrációk a szövegben */
.figure--ill { margin: 32px auto; width: var(--w, 360px); max-width: 100%; }
.figure--ill img { width: 100%; height: auto; }
.doc-help .figure--ill { margin: 0 auto 8px; width: auto; max-width: 240px; background: #fff; padding: 8px; }


/* Utószó */
.afterword-body { background: var(--yellow); padding: clamp(20px, 4vw, 40px); }
.afterword-body p:last-of-type { margin-bottom: 0; }
.signature { text-align: right; font-style: italic; margin-top: 16px; }
.afterword-ill { max-width: none; margin: 0; background: var(--yellow); padding: 0 clamp(20px, 4vw, 40px) 24px; }

/* Lábléc */
.footer-logo { width: 72px; height: auto; margin-bottom: 12px; }
.footer-support { margin-top: 32px; }
.footer-support img { display: block; width: 100%; max-width: 520px; height: auto; }
