/* Menüfal útmutatók — közös stílus a tudástár minden cikkéhez. */

:root {
  --paper: #F6F1E8;
  --paper-2: #EDE5D6;
  --card: #FFFDF8;
  --ink: #1C1814;
  --ink-2: #574E44;
  --ink-3: #7A7065;
  --line: rgba(28, 24, 20, 0.14);
  --accent: #C2410C;
  --accent-ink: #9A3412;
  --accent-soft: #FBE3D3;
  --ok: #15803D;
  --ok-soft: #DCF0E2;
  --warn: #92400E;
  --warn-soft: #FBEFD5;
  --code-bg: #221D18;
  --code-ink: #F0E8DC;
  --code-key: #F5B38A;
  --code-str: #C9E4B4;
  /* Az admin felület színei a képernyőrészletekhez. */
  --ui-bg: #FFFFFF;
  --ui-line: #E4E4E7;
  --ui-muted: #71717A;
  --ui-brand: #1D4ED8;
  --ui-ink: #18181B;
  --shadow: 0 1px 2px rgba(28, 24, 20, 0.05), 0 10px 30px rgba(28, 24, 20, 0.07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16130F;
    --paper-2: #221D18;
    --card: #1E1A15;
    --ink: #F6F1E8;
    --ink-2: #C9BFB2;
    --ink-3: #A39888;
    --line: rgba(246, 241, 232, 0.14);
    --accent: #F08A4B;
    --accent-ink: #F6A876;
    --accent-soft: #3A2417;
    --ok: #7DD39A;
    --ok-soft: #173222;
    --warn: #F3C06B;
    --warn-soft: #3A2B12;
    --code-bg: #0E0C09;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}
:root[data-theme="dark"] {
  --paper: #16130F;
  --paper-2: #221D18;
  --card: #1E1A15;
  --ink: #F6F1E8;
  --ink-2: #C9BFB2;
  --ink-3: #A39888;
  --line: rgba(246, 241, 232, 0.14);
  --accent: #F08A4B;
  --accent-ink: #F6A876;
  --accent-soft: #3A2417;
  --ok: #7DD39A;
  --ok-soft: #173222;
  --warn: #F3C06B;
  --warn-soft: #3A2B12;
  --code-bg: #0E0C09;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.62 "Hanken Grotesk", "Segoe UI", Arial, sans-serif;
  padding-inline: clamp(16px, 4vw, 36px);
  padding-block: 0 80px;
}
h1, h2, h3, .num { font-family: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.12rem; line-height: 1.25; font-weight: 700; }
p { margin: 0; max-width: 68ch; }
ul, ol { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
code, kbd, pre { font-family: "IBM Plex Mono", Consolas, "Courier New", monospace; }
code { font-size: 0.86em; background: var(--paper-2); padding: 0.06em 0.36em; border-radius: 5px; }
kbd { font-size: 0.82em; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--card); padding: 0.05em 0.4em; border-radius: 5px; white-space: nowrap; }
strong { font-weight: 700; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ui { font-weight: 600; color: var(--ink); background: var(--accent-soft); padding: 0.02em 0.35em; border-radius: 4px; white-space: nowrap; }

.kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }
.muted { color: var(--ink-2); }

/* ---------- Fej ---------- */
.wrap { max-width: 76rem; margin: 0 auto; }
.masthead { padding-block: 56px 36px; display: grid; gap: 18px; border-bottom: 1px solid var(--line); }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 0.92rem; color: var(--ink-2); }
.fact b { color: var(--ink); font-weight: 600; }

/* ---------- Elrendezés ---------- */
.layout { display: grid; gap: 40px; padding-top: 36px; }
@media (min-width: 1040px) {
  .layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 56px; }
  .toc { position: sticky; top: 24px; align-self: start; }
}
.toc { display: grid; gap: 10px; font-size: 0.93rem; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li a { display: grid; grid-template-columns: 1.7rem 1fr; gap: 6px; padding: 5px 8px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.toc li a:hover { background: var(--paper-2); color: var(--ink); }
.toc .n { font-family: "Bricolage Grotesque", Arial, sans-serif; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.toc .extra a { grid-template-columns: 1fr; }
main { display: grid; gap: 0; min-width: 0; }

.summary { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; display: grid; gap: 14px; box-shadow: var(--shadow); margin-bottom: 20px; }
.summary ol { padding-left: 1.4rem; display: grid; gap: 6px; }
.summary li::marker { font-family: "Bricolage Grotesque", Arial, sans-serif; font-weight: 700; color: var(--accent-ink); }

/* ---------- Lépések ---------- */
.step { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 6px 20px; padding-block: 44px; border-bottom: 1px solid var(--line); break-inside: avoid-page; }
.num { font-size: 2.8rem; line-height: 0.9; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.step-body { display: grid; gap: 18px; min-width: 0; }
.step-body > h2 { margin-top: 4px; }
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; }
  .num { font-size: 2.2rem; }
}
.plain { padding-block: 44px; border-bottom: 1px solid var(--line); display: grid; gap: 18px; }

.bullets { padding-left: 1.2rem; display: grid; gap: 6px; }
.bullets li::marker { color: var(--accent); }
.sub { list-style: none; padding: 0; display: grid; gap: 10px; counter-reset: sub; }
.sub > li { counter-increment: sub; display: grid; grid-template-columns: 1.9rem 1fr; gap: 10px; }
.sub > li::before { content: counter(sub, lower-alpha) ")"; font-weight: 700; color: var(--accent-ink); }

.note { border-radius: 12px; padding: 14px 18px; display: grid; gap: 6px; background: var(--paper-2); }
.note.tip { background: var(--ok-soft); }
.note.tip strong:first-child { color: var(--ok); }
.note.warn { background: var(--warn-soft); }
.note.warn strong:first-child { color: var(--warn); }

/* ---------- Admin képernyőrészletek ---------- */
.shot { margin: 0; display: grid; gap: 8px; }
.shot figcaption { font-size: 0.85rem; color: var(--ink-3); }
.screen { background: var(--ui-bg); color: var(--ui-ink); border: 1px solid var(--ui-line); border-radius: 12px; box-shadow: var(--shadow); font: 14px/1.5 "Hanken Grotesk", Arial, sans-serif; overflow: hidden; }
.screen-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 10px 16px; border-bottom: 1px solid var(--ui-line); }
.screen-bar .brand { font-weight: 700; margin-right: 10px; }
.screen-bar .nav { padding: 4px 10px; border-radius: 7px; color: #52525B; }
.screen-bar .nav.on { background: #F4F4F5; color: var(--ui-ink); font-weight: 600; }
.screen-body { padding: 18px; display: grid; gap: 12px; }
.screen-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.screen h4 { margin: 0; font-size: 17px; font-weight: 600; }
.screen .small { font-size: 12px; color: var(--ui-muted); }
.screen-card { border: 1px solid var(--ui-line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 8px; }
.screen-card .title { font-size: 13px; font-weight: 600; }
.btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 7px 12px; font: 600 13px/1.2 "Hanken Grotesk", Arial, sans-serif; border: 1px solid var(--ui-line); background: #fff; color: var(--ui-ink); white-space: nowrap; }
.btn.primary { background: var(--ui-brand); border-color: var(--ui-brand); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: #3F3F46; }
.btn.dim { opacity: 0.45; }
.btn.pointed { box-shadow: 0 0 0 3px #FDBA74; }
.field { border: 1px solid var(--ui-line); border-radius: 8px; padding: 10px 12px; font: 12px/1.55 "IBM Plex Mono", Consolas, monospace; color: #3F3F46; white-space: pre; overflow-x: auto; }
.ok-box { background: #ECFDF5; color: #065F46; border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.warn-box { background: #FFFBEB; color: #78350F; border-radius: 8px; padding: 10px 12px; font-size: 13px; display: grid; gap: 6px; }
.warn-box ul { padding-left: 1.1rem; display: grid; gap: 3px; }
.select { border: 1px solid var(--ui-line); border-radius: 8px; padding: 6px 10px; font-size: 13px; display: inline-flex; gap: 18px; justify-content: space-between; min-width: 12rem; }
.select::after { content: "▾"; color: var(--ui-muted); }
.tvrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; border: 1px solid var(--ui-line); border-radius: 10px; padding: 12px 14px; }
.tvrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; }

/* ---------- Kérésminták ---------- */
.prompts { display: grid; gap: 14px; }
.prompt { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; break-inside: avoid; }
.prompt-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 14px; }
.prompt-head h3 { font-size: 1.05rem; }
.prompt-text { font-size: 0.97rem; color: var(--ink); background: var(--paper-2); border-radius: 10px; padding: 12px 14px; max-width: none; }
.copy { font: 600 0.85rem/1 "Hanken Grotesk", Arial, sans-serif; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.copy:hover { border-color: var(--accent); color: var(--accent-ink); }

pre.json { margin: 0; background: var(--code-bg); color: var(--code-ink); border-radius: 12px; padding: 16px 18px; font-size: 0.8rem; line-height: 1.6; overflow-x: auto; }
pre.json .k { color: var(--code-key); }
pre.json .s { color: var(--code-str); }

.loop { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 10px; counter-reset: loop; }
.loop li { counter-increment: loop; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; font-size: 0.93rem; }
.loop li::before { content: counter(loop); font-family: "Bricolage Grotesque", Arial, sans-serif; font-weight: 800; font-size: 1.4rem; line-height: 1; color: var(--accent); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; background: var(--paper-2); }
td:first-child { font-weight: 600; }
td code { white-space: normal; word-break: break-word; }

.two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.panel.yes h3 { color: var(--ok); }
.panel.no h3 { color: var(--accent-ink); }

/* ---------- További képernyőrészletek ---------- */
/* A rácselemek alapból nem keskenyebbek a tartalmuknál; így keskeny kijelzőn tördelődnek, nem vágódnak le. */
.screen-body > *, .screen-card > * { min-width: 0; }
.shot > img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); display: block; }
.shot-narrow { max-width: 34rem; }
.modal-title { font-size: 15px; font-weight: 600; }
.flabel { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: #3F3F46; }
.input { display: block; border: 1px solid var(--ui-line); border-radius: 8px; padding: 7px 10px; font-size: 13px; color: var(--ui-ink); background: #fff; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.input.ph { color: #A1A1AA; }
.codeinput { border: 1px solid var(--ui-line); border-radius: 8px; padding: 8px; text-align: center; font: 600 24px/1.2 "IBM Plex Mono", Consolas, monospace; letter-spacing: 0.3em; }
.grid2 { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.info-box { background: #EFF6FF; color: #1E3A8A; border: 1px solid #BFDBFE; border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.err-box { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.saved { color: #047857; font-size: 13px; }
.unsaved { color: #B45309; font-size: 13px; font-weight: 600; }
.tvrow .dot.off { background: #D4D4D8; }
.tvrow .dot.late { background: #F59E0B; }
.tvrow .meta { display: grid; line-height: 1.3; }

.day { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ui-line); border-radius: 8px; padding: 5px 10px; font-size: 13px; background: #fff; white-space: nowrap; }
.day::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #D4D4D8; }
.day.filled::before { background: #10B981; }
.day.on { background: var(--ui-brand); border-color: var(--ui-brand); color: #fff; }
.day.on::before { background: #fff; }

.suggest { border: 1px solid var(--ui-line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; font-size: 13px; background: #fff; }
.suggest div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; }
.suggest .hl { background: #EFF6FF; }

.cb { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.cb::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #A1A1AA; background: #fff; }
.cb.on::before { border-color: var(--ui-brand); background: var(--ui-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.2 7.4 8 3' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.allergen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 6px 14px; border: 1px solid var(--ui-line); border-radius: 8px; background: #FAFAFA; padding: 10px 12px; }

.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ui-line); border-radius: 8px; overflow: hidden; font-size: 13px; background: #fff; }
.seg span { padding: 5px 11px; border-left: 1px solid var(--ui-line); }
.seg span:first-child { border-left: 0; }
.seg .on { background: var(--ui-brand); color: #fff; font-weight: 600; }
.opts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.opt { display: grid; gap: 2px; align-content: start; border: 1px solid var(--ui-line); border-radius: 8px; padding: 9px 11px; background: #fff; }
.opt b { font-size: 13px; font-weight: 600; }
.opt span { font-size: 11.5px; line-height: 1.35; color: var(--ui-muted); }
.opt.on { border-color: var(--ui-brand); background: #EFF6FF; box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.18); }
.opt.inline { display: flex; align-items: center; gap: 10px; }

.sw { display: inline-flex; gap: 3px; vertical-align: middle; flex: none; }
.sw i { display: block; width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
.colorfield { display: flex; align-items: center; gap: 8px; }
.colorfield i { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--ui-line); }
.colorfield .input { font-family: "IBM Plex Mono", Consolas, monospace; flex: 1; }

.range { position: relative; height: 6px; margin: 12px 8px 8px 0; border-radius: 3px; background: #E4E4E7; }
.range b { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--ui-brand); }
.range b::after { content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--ui-brand); }
.thumb { flex: none; border: 1px solid var(--ui-line); border-radius: 8px; background: linear-gradient(135deg, #D6C7B0, #8C6F4E); }
.thumb.land { width: 96px; height: 54px; }
.thumb.port { width: 44px; height: 60px; }

.list { border: 1px solid var(--ui-line); border-radius: 10px; overflow: hidden; }
.list-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 12px; background: #FAFAFA; border-bottom: 1px solid var(--ui-line); font-size: 14px; font-weight: 600; }
.itemrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 9px 12px; border-top: 1px solid var(--ui-line); font-size: 14px; }
.list-head + .itemrow { border-top: 0; }
.itemrow .name { flex: 1; min-width: 8rem; font-weight: 500; }
.itemrow.gone { background: #FAFAFA; }
.itemrow.gone .name { color: #A1A1AA; text-decoration: line-through; }
.itemrow .price { font-variant-numeric: tabular-nums; }

/* A TV-n látszó tábla vázlata (nem az admin). */
.board { display: grid; gap: 8px; padding: 18px 20px; border-radius: 12px; background: #1B2A4A; color: #F6F1E8; font-size: 15px; box-shadow: var(--shadow); }
.board h5 { margin: 0 0 2px; font: 700 12px/1 "Bricolage Grotesque", Arial, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: #F5B38A; }
.board .ln { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.board .al { font-size: 11px; opacity: 0.7; margin-left: 4px; }
.board .gone { opacity: 0.45; text-decoration: line-through; }
.board .legend { margin-top: 4px; padding-top: 8px; border-top: 1px solid rgba(246, 241, 232, 0.2); font-size: 11.5px; opacity: 0.75; }

/* Képgaléria (a weboldal képei). */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px 14px; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); }
.gallery figure { margin: 0; display: grid; gap: 6px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); display: block; }
.gallery b { font-size: 0.95rem; }
.gallery span { font-size: 0.84rem; line-height: 1.4; color: var(--ink-3); }

/* ---------- Kapcsolódó útmutatók ---------- */
.backlink { font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.backlink:hover { text-decoration: underline; }
.related { padding-block: 44px 0; display: grid; gap: 14px; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.related-list a { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; }
.related-list a:hover { border-color: var(--accent); }
.related-list b { font-weight: 700; }
.related-list span { font-size: 0.86rem; color: var(--ink-3); }

footer { padding-top: 36px; color: var(--ink-3); font-size: 0.9rem; }

@media print {
  body { background: #fff; color: #000; font-size: 11.5pt; padding: 0; }
  .toc, .copy, .related { display: none !important; }
  .layout { display: block; padding-top: 12px; }
  .masthead { padding-block: 0 16px; }
  .step, .plain { padding-block: 18px; }
  .summary, .screen, .prompt, .panel { box-shadow: none; }
  a { color: #000; text-decoration: none; }
  pre.json { white-space: pre-wrap; }
}
