/* Közös alap mind a négy oldalhoz. A megjelenést a themes/<oldal>.css adja. */

:root {
    --accent: #333;
    --accent-ink: #fff;
    --ink: #1c1c1c;
    --muted: #666;
    --line: #e4e1da;
    --paper: #fbfaf7;
    --card: #fff;
    --font-head: Georgia, "Times New Roman", serif;
    --font-body: Georgia, "Times New Roman", serif;
    --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 1120px;
    --radius: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 17px/1.6 var(--font-body);
}

a { color: inherit; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

main { padding: 32px 0 56px; min-height: 50vh; }

h1, h2, h3 { font-family: var(--font-head); }

.page-title { font-size: 30px; line-height: 1.2; margin: 0 0 22px; }

.meta { font: 13px/1.4 var(--font-ui); color: var(--muted); }
.meta .tag {
    color: var(--accent); font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; text-decoration: none;
}
.meta .place { font-weight: 600; text-decoration: none; }
.meta .place:hover { color: var(--accent); }

.empty { color: var(--muted); font-style: italic; padding: 24px 0; }

.pager { margin-top: 28px; display: flex; gap: 18px; font: 600 15px var(--font-ui); }
.pager a { text-decoration: none; color: var(--accent); }

/* Cikkoldal */
article.full { max-width: 720px; }
article.full h1 { font-size: 40px; line-height: 1.15; margin: 8px 0 14px; }
article.full .lead { font-size: 21px; line-height: 1.5; margin: 0 0 22px; }
article.full .body { font-size: 18px; line-height: 1.7; }
article.full .body h2 { font-size: 24px; line-height: 1.25; margin: 30px 0 8px; }
article.full .body a { color: var(--accent); }
article.full .body ul, article.full .body ol { padding-left: 24px; }
article.full .body li { margin: 4px 0; }
article.full .body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 14px 0; font-size: 16px; line-height: 1.4; }
article.full .body th, article.full .body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
article.full .body th { background: var(--paper); font-family: var(--font-ui); font-size: 14px; }

.source-box {
    margin-top: 30px; padding: 14px 16px; background: var(--card);
    border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius);
    font: 14px/1.5 var(--font-ui); color: var(--muted); overflow-wrap: anywhere;
}
.source-box strong { color: var(--ink); }
.source-box a { color: var(--accent); }

/* Kereső */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.search-form { display: flex; gap: 8px; max-width: 640px; font-family: var(--font-ui); }
.search-form input {
    flex: 1; min-width: 0; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--radius);
    font: inherit; font-size: 17px; background: #fff; color: var(--ink); box-sizing: border-box;
}
.search-form input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.search-form button {
    flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; min-height: 48px;
    border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink);
    font: 700 16px var(--font-ui); cursor: pointer;
}
.search-note { font: 16px/1.5 var(--font-ui); color: var(--muted); margin: 18px 0; }
.search-note strong { color: var(--ink); }
.search-results { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.search-results li { padding: 16px 0; border-top: 1px solid var(--line); }
.search-results li > a { font: 700 20px/1.3 var(--font-head); color: var(--ink); text-decoration: none; }
.search-results li > a:hover { color: var(--accent); text-decoration: underline; }
.search-results .where { display: inline-block; margin-left: 8px; font: 700 12px var(--font-ui); color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.search-results p { margin: 6px 0 0; color: var(--muted); }

.search-form.in-head { flex: 1; max-width: 300px; margin-left: auto; }
.search-form.in-head input { padding: 8px 14px; font-size: 15px; }
.search-form.in-head button { min-height: 40px; padding: 0 12px; }
.search-form.in-head button span { display: none; }
.hl-mast .search-form.in-head { margin: 14px auto 0; max-width: 340px; }
@media (max-width: 860px) {
    .ok-head .wrap, .sj-head .wrap { flex-wrap: wrap; }
    .ok-head .search-form.in-head, .sj-head .search-form.in-head { flex: 1 1 100%; max-width: none; margin-left: 0; }
}

/* Hibajelzés az útmutatóknál */
.report-box {
    margin-top: 20px; padding: 14px 16px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius);
    font: 15px/1.5 var(--font-ui); color: var(--muted);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
}
.report-box strong { color: var(--ink); }
.subscribe-box { margin-top: 30px; border-left: 4px solid var(--accent); }
.report-form input[type=email] { max-width: 420px; }
.report-box .legal-button { padding: 8px 14px; font-size: 14px; }
.report-form { font-family: var(--font-ui); font-size: 16px; }
.report-form label { display: block; font-weight: 700; margin: 18px 0 6px; }
.report-form textarea, .report-form input[type=email] {
    width: 100%; padding: 10px 12px; border: 1px solid #8a8a8a; border-radius: var(--radius);
    font: inherit; background: #fff; color: var(--ink); box-sizing: border-box;
}
.report-form textarea { resize: vertical; }
.report-form [aria-invalid=true] { border-color: #b3261e; }
.report-form button { margin-top: 20px; border: 0; cursor: pointer; }
.report-hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.report-error { font-size: 14px; color: #b3261e; margin: 6px 0 0; font-weight: 700; }
.report-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.report-thanks { padding: 14px 16px; background: #e3f6e8; border: 1px solid #a5d6b3; border-radius: var(--radius); font-family: var(--font-ui); margin: 16px 0; }

.related { max-width: 720px; margin-top: 40px; }
.related h2 {
    font: 700 14px var(--font-ui); text-transform: uppercase; letter-spacing: 0.6px;
    border-bottom: 2px solid var(--accent); padding-bottom: 8px; margin: 0;
}
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.related a { text-decoration: none; font-family: var(--font-head); }
.related a:hover { color: var(--accent); }

/* Lábléc */
footer.site { border-top: 1px solid var(--line); background: var(--card); padding: 26px 0 30px; }
footer.site, footer.site a { font: 14px/1.6 var(--font-ui); color: var(--muted); }
footer.site .network { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-bottom: 12px; }
footer.site .network a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; color: var(--ink); }
footer.site .network svg { width: 22px; height: 22px; }
footer.site .network a:hover { color: var(--accent); }

@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    main { padding: 22px 0 40px; }
    article.full h1 { font-size: 29px; }
    article.full .lead { font-size: 18px; }
    article.full .body { font-size: 17px; }
}

/* A logók ne nyomódjanak össze szűk fejlécben. */
.hl-logo, .mg-logo, .ok-logo, .sj-logo { flex: none; }
.hl-logo svg, .mg-logo svg, .ok-logo svg, .sj-logo svg { flex: none; display: block; }

/* Jogi oldalak */
footer.site .legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
article.legal .body h2 { margin-top: 28px; }
.legal-button { display: inline-block; padding: 10px 18px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink) !important; font: 700 15px var(--font-ui); text-decoration: none; }

/* Sütihozzájárulás */
.hh-consent { position: fixed; inset: auto 0 0 0; z-index: 50; padding: 14px; display: flex; justify-content: center; pointer-events: none; }
.hh-consent[hidden] { display: none; }
.hh-consent-box {
    pointer-events: auto; width: min(680px, 100%); background: #fff; color: #1c1c1c;
    border: 1px solid #cfcfcf; border-radius: 14px; padding: 18px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.hh-consent-box p { margin: 0 0 10px; }
.hh-consent-box a { color: #1c1c1c; }
.hh-consent-title { font-weight: 800; font-size: 17px; }
.hh-consent-options { display: grid; gap: 6px; margin: 4px 0 12px; }
.hh-consent-options[hidden] { display: none; }
.hh-consent-options label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hh-consent-options span { font-weight: 400; color: #666; }
.hh-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hh-consent-actions button {
    font: 700 15px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer;
    padding: 10px 16px; border-radius: 8px; border: 1px solid #1c1c1c; background: #fff; color: #1c1c1c;
}
.hh-consent-actions button[hidden] { display: none; }
.hh-consent-actions button.primary { background: #1c1c1c; color: #fff; }
.hh-consent-actions button.link { border-color: transparent; text-decoration: underline; padding-left: 6px; padding-right: 6px; }

/* Cikkképek */
.thumb { display: block; margin-bottom: 12px; overflow: hidden; border-radius: var(--radius); }
.thumb img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
figure.hero { margin: 0 0 24px; }
figure.hero img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
figure.hero figcaption { margin-top: 6px; font: 12px/1.4 var(--font-ui); color: var(--muted); }

@media (max-width: 640px) {
    .hh-consent { padding: 8px; }
    .hh-consent-box { padding: 12px 14px; font-size: 13px; border-radius: 12px; }
    .hh-consent-box p { margin-bottom: 8px; }
    .hh-consent-title { font-size: 15px; }
    .hh-consent-actions button { padding: 8px 12px; font-size: 14px; }
}

.report-form label.report-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 1.45; max-width: 560px; cursor: pointer; }
.report-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; }
