
/* ============================================================
   TÉMA: a jóváhagyott paletta marad:
     sötét sáv #004643, krém háttér #fef6e4, borostyán #f9bc60.
   KEMÉNY SZABÁLY: a borostyán világos háttéren CSAK kitöltés
   (gomb, chip, pötty) sötét szöveggel, soha nem szöveg/link/ikon.
   Sötét háttéren (hero, konzol, sötét mód) lehet szöveg is.
   ============================================================ */
:root{
  --bg:#fef6e4; --bg-soft:#f8eed6; --card:#fffffe;
  --text:#001e1d; --muted:#3e4c49; --line:#eadfc8;
  --primary:#004643; --primary-2:#00332f; --primary-soft:#e8f1ef;
  --accent:#f9bc60; --accent-ink:#001e1d;
  --on-dark:#fffffe; --on-dark-muted:#abd1c6;
  --ok:#15803d;
  /* konzol: mindkét témában sötét */
  --con:#00211f; --con-line:rgba(171,209,198,.2); --con-text:#e8f1ef; --con-muted:#9cc4b9; --con-dim:#6f9e93; --con-ok:#4ade80;
  /* a világos háttéren futó címkék (mono) színe */
  --label:#004643;
  --head:'Poppins',system-ui,sans-serif;
  --body:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --maxw:1200px; --pad:clamp(1.25rem,4vw,2.5rem);
  --r:14px; --r-lg:18px;
}
[data-theme="dark"]{
  --bg:#001a18; --bg-soft:#00221f; --card:#002b27;
  --text:#f3ecdc; --muted:#abd1c6; --line:#0f4743;
  --primary:#00332f; --primary-2:#00110f; --primary-soft:#00332f;
  --ok:#4ade80; --label:#f9bc60;
  --con:#00110f;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--body);font-size:16.5px;line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:var(--primary)}
[data-theme="dark"] :where(a:not([class])){color:var(--accent)}
h1,h2,h3{font-family:var(--head);margin:0;letter-spacing:-.01em;line-height:1.1;color:inherit}
p{margin:0}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}
.skip{position:absolute;left:-9999px;top:0;background:var(--accent);color:var(--accent-ink);padding:.75rem 1rem;z-index:100;font-weight:600}
.skip:focus{left:1rem;top:1rem}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--pad)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* tipó */
.label{font-family:var(--mono);font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:var(--label);font-weight:500}
.h2{font-size:clamp(2rem,3.6vw,2.9rem);font-weight:700}
.lead{color:var(--muted);font-size:1.03rem;max-width:46rem}
.sec{padding:clamp(4.5rem,8vw,7rem) 0}
.sec.soft{background:var(--bg-soft)}
.sec-head{display:flex;flex-direction:column;gap:.9rem;max-width:48rem;margin-bottom:2.5rem}

/* gombok */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:48px;padding:0 1.4rem;border-radius:999px;border:0;font:600 .95rem/1 var(--body);text-decoration:none;cursor:pointer;transition:filter .15s}
.btn-accent{background:var(--accent);color:var(--accent-ink)}
.btn-accent:hover{filter:brightness(.95);color:var(--accent-ink)}
.btn-ghost{background:transparent;color:var(--on-dark);border:1px solid rgba(171,209,198,.45)}
.btn-ghost:hover{color:var(--on-dark);border-color:var(--on-dark-muted)}
.btn:disabled{opacity:.6;cursor:wait}

.dot{width:8px;height:8px;border-radius:50%;flex:none;display:inline-block}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.live{animation:pulse 1.6s ease-in-out infinite}

/* ---------- fejléc ---------- */
.site-head{background:var(--primary);color:var(--on-dark);border-bottom:1px solid rgba(171,209,198,.18);position:relative;z-index:20}
.site-head .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:76px}
.brand{display:flex;align-items:center;gap:.75rem;color:var(--on-dark);text-decoration:none}
.brand-mark{width:40px;height:40px;border-radius:10px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;font:800 17px/1 var(--head)}
.brand-txt{display:flex;flex-direction:column;line-height:1.15}
.brand-txt strong{font:700 16px/1.2 var(--head)}
.brand-txt span{font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--on-dark-muted)}
.head-tools{display:flex;align-items:center;gap:.5rem}
#site-nav{display:flex;align-items:center;gap:1.6rem;font-size:.92rem;font-weight:500}
#site-nav a{color:var(--on-dark);text-decoration:none}
#site-nav a:hover{text-decoration:underline;text-underline-offset:4px}
#site-nav .btn{min-height:44px;padding:0 1.1rem;text-decoration:none;color:var(--accent-ink)}
.icon-btn{all:unset;box-sizing:border-box;width:44px;height:44px;display:grid;place-items:center;border-radius:10px;color:var(--on-dark);cursor:pointer;border:1px solid rgba(171,209,198,.3)}
.icon-btn:hover{border-color:var(--on-dark-muted)}
.icon-btn svg{width:20px;height:20px}
.nav-toggle{display:none}
.theme-toggle .moon{display:none}
[data-theme="dark"] .theme-toggle .sun{display:none}
[data-theme="dark"] .theme-toggle .moon{display:block}
@media (max-width:960px){
  .nav-toggle{display:grid}
  #site-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--primary);flex-direction:column;align-items:stretch;gap:0;padding:.5rem var(--pad) 1.25rem;border-bottom:1px solid rgba(171,209,198,.18)}
  #site-nav.open{display:flex}
  #site-nav a{padding:.85rem 0;border-bottom:1px solid rgba(171,209,198,.14)}
  #site-nav .btn{margin-top:1rem;border:0}
}

/* ---------- panelek, chipek ---------- */
.panel{background:var(--card);border:1px solid var(--line);border-radius:16px}
.chips{display:flex;gap:.5rem;flex-wrap:wrap}
.chip{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:.5rem 1rem;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--text);font:500 .9rem/1.2 var(--body);cursor:pointer}
.chip:hover{border-color:var(--primary)}
.chip[aria-selected="true"]{background:var(--primary);border-color:var(--primary);color:var(--on-dark)}
[data-theme="dark"] .chip[aria-selected="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}

/* ---------- lábléc ---------- */
.site-foot{background:var(--primary-2);color:var(--on-dark-muted);padding:1.75rem 0;font-size:.86rem}
.site-foot .wrap{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.site-foot nav{display:flex;gap:1.25rem;flex-wrap:wrap}
.site-foot a{color:var(--on-dark-muted)}


/* ---------- fejléc: kereső gomb ---------- */
.cmd-btn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:.55rem;height:44px;padding:0 .7rem 0 .8rem;border-radius:10px;border:1px solid rgba(171,209,198,.3);color:var(--on-dark-muted);cursor:pointer;font:500 .85rem/1 var(--body)}
.cmd-btn:hover{border-color:var(--on-dark-muted);color:var(--on-dark)}
.cmd-btn svg{width:17px;height:17px}
.kbd{font-family:var(--mono);font-size:.68rem;padding:.2rem .4rem;border-radius:5px;border:1px solid rgba(171,209,198,.35);color:var(--on-dark-muted);letter-spacing:.02em}
@media (max-width:1100px){.cmd-btn .cmd-txt,.cmd-btn .kbd{display:none}.cmd-btn{width:44px;padding:0;justify-content:center}}

/* ---------- parancspaletta ---------- */
.cmdk{border:0;padding:0;background:transparent;max-width:none;max-height:none;width:100%;height:100%;margin:0}
.cmdk::backdrop{background:rgba(0,17,15,.62);backdrop-filter:blur(3px)}
.cmdk-box{width:min(640px,calc(100% - 2rem));margin:12vh auto 0;background:var(--con);color:var(--con-text);border:1px solid var(--con-line);border-radius:16px;box-shadow:0 40px 100px rgba(0,0,0,.45);overflow:hidden;display:flex;flex-direction:column;max-height:70vh}
.cmdk-top{display:flex;align-items:center;gap:.75rem;padding:.9rem 1.1rem;border-bottom:1px solid var(--con-line)}
.cmdk-top svg{width:18px;height:18px;color:var(--con-muted);flex:none}
.cmdk-top input{all:unset;flex:1;font:500 1.02rem/1.4 var(--body);color:var(--con-text);min-height:32px}
.cmdk-top input::placeholder{color:var(--con-dim)}
.cmdk-top .kbd{color:var(--con-dim)}
.cmdk-list{list-style:none;margin:0;padding:.4rem;overflow:auto}
.cmdk-group{font-family:var(--mono);font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;color:var(--con-dim);padding:.7rem .75rem .35rem}
.cmdk-item{display:grid;grid-template-columns:2.4rem minmax(0,1fr) auto;gap:.6rem;align-items:center;padding:.6rem .75rem;border-radius:10px;cursor:pointer;min-height:44px}
.cmdk-item .ic{font-family:var(--mono);font-size:.68rem;color:var(--con-dim)}
.cmdk-item .t{display:flex;flex-direction:column;min-width:0}
.cmdk-item .t strong{font-weight:600;font-size:.93rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmdk-item .t span{font-size:.78rem;color:var(--con-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmdk-item .go{font-family:var(--mono);font-size:.7rem;color:var(--con-dim)}
.cmdk-item[aria-selected="true"]{background:rgba(249,188,96,.13)}
.cmdk-item[aria-selected="true"] .go{color:var(--accent)}
.cmdk-empty{padding:1.5rem 1rem;color:var(--con-muted);font-size:.92rem}
.cmdk-foot{display:flex;gap:1rem;flex-wrap:wrap;padding:.6rem 1.1rem;border-top:1px solid var(--con-line);font-family:var(--mono);font-size:.66rem;color:var(--con-dim);letter-spacing:.04em}
.toast{position:fixed;left:50%;bottom:1.5rem;transform:translate(-50%,1rem);background:var(--con);color:var(--con-text);border:1px solid var(--con-line);padding:.7rem 1rem;border-radius:10px;font-size:.9rem;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:60}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ---------- aloldali fej ---------- */
.page-head{background:var(--primary);color:var(--on-dark);padding:clamp(3rem,6vw,4.5rem) 0 clamp(2.5rem,5vw,3.5rem)}
.page-head .label{color:var(--accent)}
.page-head h1{font-size:clamp(2.3rem,4.6vw,3.6rem);font-weight:800;line-height:1.06;margin:.9rem 0 1rem;max-width:22ch}
.page-head p{color:var(--on-dark-muted);font-size:1.08rem;max-width:40rem}
.crumbs{font-family:var(--mono);font-size:.72rem;letter-spacing:.05em;color:var(--on-dark-muted);display:flex;gap:.5rem;flex-wrap:wrap}
.crumbs a{color:var(--on-dark-muted);text-decoration:none}
.crumbs a:hover{color:var(--on-dark);text-decoration:underline}

/* ---------- kártyák (blog) ---------- */
.post-card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;text-decoration:none;color:var(--text);transition:border-color .15s,transform .15s}
.post-card:hover{border-color:var(--primary);transform:translateY(-2px)}
[data-theme="dark"] .post-card:hover{border-color:var(--accent)}
.post-card img{width:100%;height:auto;aspect-ratio:1216/640;object-fit:cover;background:var(--bg-soft)}
.post-body{padding:1.4rem 1.5rem 1.6rem;display:flex;flex-direction:column;gap:.6rem;flex:1}
.post-meta{font-family:var(--mono);font-size:.7rem;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.post-card h3{font-size:1.22rem;font-weight:700;line-height:1.28}
.post-card p{font-size:.93rem;color:var(--muted);line-height:1.6}
.post-more{margin-top:auto;padding-top:.4rem;font-weight:600;font-size:.9rem;color:var(--primary)}
[data-theme="dark"] .post-more{color:var(--accent)}

/* ---------- cikk-tipográfia ---------- */
.prose{font-size:1.08rem;line-height:1.78;color:var(--text)}
.prose > * + *{margin-top:1.15rem}
.prose h2{font-size:1.65rem;font-weight:700;line-height:1.22;margin-top:2.6rem;scroll-margin-top:1.5rem}
.prose h3{font-size:1.25rem;font-weight:700;margin-top:2rem}
.prose p{color:var(--text)}
.prose a{color:var(--primary);text-underline-offset:3px}
[data-theme="dark"] .prose a{color:var(--accent)}
.prose strong{font-weight:600}
.prose ul,.prose ol{padding-left:1.3rem}
.prose li + li{margin-top:.45rem}
.prose li::marker{color:var(--primary);font-weight:600}
[data-theme="dark"] .prose li::marker{color:var(--accent)}
.prose blockquote{margin:2rem 0;padding:1.4rem 1.6rem;border-radius:14px;background:var(--con);color:var(--con-text);font:500 1.15rem/1.6 var(--head);position:relative}
.prose blockquote::before{content:"IDÉZET";display:block;font:500 .66rem/1 var(--mono);letter-spacing:.08em;color:var(--accent);margin-bottom:.7rem}
.prose figure{margin:2rem 0}
.prose figure img{width:100%;height:auto;border-radius:12px;border:1px solid var(--line)}
.prose figcaption{font-size:.86rem;color:var(--muted);margin-top:.6rem}
.prose table{width:100%;border-collapse:collapse;font-size:.94rem;display:block;overflow-x:auto;border:1px solid var(--line);border-radius:12px}
.prose th,.prose td{padding:.75rem .9rem;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}
.prose th{font:600 .7rem/1.3 var(--mono);letter-spacing:.05em;text-transform:uppercase;color:var(--muted);background:var(--bg-soft)}
.prose tr:last-child td{border-bottom:0}
.prose code{font-family:var(--mono);font-size:.9em;background:var(--bg-soft);padding:.1rem .35rem;border-radius:5px}
.prose .cta-mid{padding:1.2rem 1.4rem;border-radius:14px;border:1px dashed var(--primary);background:var(--card);font-size:1rem}
[data-theme="dark"] .prose .cta-mid{border-color:var(--accent)}
.prose .cta-mid a{font-weight:600}
.prose .leadmagnet{padding:1.6rem;border-radius:16px;background:var(--card);border:1px solid var(--line)}
.prose .leadmagnet h3{margin-top:0}
.prose .leadmagnet form{display:flex;flex-direction:column;gap:.75rem;margin-top:1rem}
.prose .leadmagnet input[type=text],.prose .leadmagnet input[type=email]{min-height:48px;padding:.7rem .9rem;border-radius:10px;border:1px solid var(--line);background:var(--bg);color:var(--text);font:inherit;font-size:.95rem}
.prose .leadmagnet .consent{display:flex;gap:.6rem;font-size:.85rem;line-height:1.5;color:var(--muted)}
.prose .leadmagnet button{min-height:48px;padding:0 1.4rem;border-radius:999px;border:0;background:var(--accent);color:var(--accent-ink);font:600 .95rem/1 var(--body);cursor:pointer}
.prose .lm-hp{position:absolute;left:-9999px}
.prose .cta-final{margin-top:3rem;padding:1.8rem;border-radius:18px;background:var(--primary);color:var(--on-dark);display:flex;gap:1.5rem;align-items:flex-start;flex-wrap:wrap}
.prose .cta-final img{width:96px;height:96px;border-radius:50%;object-fit:cover;border:2px solid var(--accent);flex:none}
.prose .cta-final > div{flex:1 1 280px}
.prose .cta-final h2{margin-top:0;font-size:1.5rem;color:var(--on-dark)}
.prose .cta-final p{color:var(--on-dark-muted);font-size:1rem;margin-top:.6rem}
.prose .cta-final .cta{display:inline-flex;align-items:center;min-height:48px;padding:0 1.4rem;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-weight:600;text-decoration:none;margin-top:1.1rem}

/* olvasás-állapot sáv */
.read-bar{position:fixed;left:0;top:0;height:3px;width:100%;transform-origin:0 50%;transform:scaleX(0);background:var(--accent);z-index:50}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .live{animation:none}
  .post-card{transition:none}
}

/* ============================================================
   QA fixes, 2026-11-24 (design QA list). The rules above are unchanged;
   the "body" prefix only lifts a rule over the home page's own style block.
   ============================================================ */
/* article table on a phone: the head cells may wrap and everything is set tighter, so the columns fit without
   sideways scrolling; the data cells stay on one line (a wrapped amount such as "400 000 / Ft" reads badly) */
@media (max-width:560px){
  .prose table{font-size:.86rem}
  .prose th,.prose td{padding:.6rem .55rem}
  .prose th{white-space:normal;font-size:.62rem;letter-spacing:.02em}
}
/* open phone menu: a full-height panel; the page behind it does not show and does not scroll */
@media (max-width:960px){
  html:has(#site-nav.open){overflow:hidden}
  html:has(#site-nav.open) .site-head{position:fixed;left:0;right:0;top:0}
  #site-nav.open{height:calc(100vh - 76px);height:calc(100dvh - 76px);overflow-y:auto}
}
/* headline line height on a phone: room for the accents between two lines */
@media (max-width:760px){
  body .hero h1,.page-head h1{line-height:1.13}
}
/* header subtitle and the fleet panel's head stay on one line on a phone */
@media (max-width:480px){
  .brand-txt span{white-space:nowrap;font-size:9.5px;letter-spacing:.03em}
  body .con-head{gap:.5rem;padding:.8rem .85rem}
  body .con-head .label,body .con-clock,body .con-live{white-space:nowrap;font-size:.64rem;letter-spacing:.02em}
}
/* (below 380 px the one-line subtitle would push the header 14 px past the screen: measured at 360 px) */
@media (max-width:379px){
  .brand-txt span{display:none}
}
/* "what happens to your letter" list: a second line hangs under the text, not under the number */
body .path li{display:grid;grid-template-columns:max-content 1fr;column-gap:.4em}
/* an in-article picture is a link to its full size (see the script) */
.prose figure a{display:block;cursor:zoom-in}
