/* ============================================================
   KávéKözlöny - a holakomment.hu / kikapta.hu család nyelvén
   fehér lap + tinta + kiemelőfilc-sárga (csak háttérként, soha
   szövegszínként); éles sarok (0-2 px), hajszálvonal, árnyék nincs;
   IBM Plex Sans a szöveg, IBM Plex Mono a címke-réteg (dátum, kód,
   szekciófej). Sötét séma nincs. Részletek: DESIGN.md.
   ============================================================ */

@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    src: url('/assets/fonts/plex-sans-var-latin-ext.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: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    src: url('/assets/fonts/plex-sans-var-latin.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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/plex-mono-400-latin-ext.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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/plex-mono-400-latin.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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/plex-mono-500-latin-ext.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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/plex-mono-500-latin.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: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/plex-mono-600-latin-ext.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: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/plex-mono-600-latin.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; }

/* ===== Tokenek ===== */
:root {
    color-scheme: light;
    --paper:    #ffffff;
    --paper-2:  #f7f7f5;
    --ink:      #141414;
    --ink-2:    #4a4a47;
    --muted:    #6f6f6a;
    --rule:     #e3e3df;
    --rule-2:   #c8c8c2;
    --hairline: rgba(20, 20, 20, .10);
    --mark:      #ffd84d;
    --mark-soft: #fff3c4;
    --hl:        rgba(255, 216, 77, .55);
    --on-mark:   #141414;
    --stop:     #c23434;
    --stop-bg:  #fbecec;
    --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
    --t-display: clamp(2.1rem, 1.45rem + 2.7vw, 3.4rem);
    --t-title:   clamp(1.55rem, 1.25rem + 1.3vw, 2.15rem);
    --t-h2:      clamp(1.2rem, 1.08rem + .5vw, 1.45rem);
    --t-h3:      1.1rem;
    --t-lede:    clamp(1.06rem, 1rem + .3vw, 1.19rem);
    --t-body:    1rem;
    --t-sm:      .9rem;
    --t-xs:      .825rem;
    --wrap:   72rem;
    --gutter: clamp(1.25rem, .75rem + 2vw, 2.25rem);
    --r: 2px;
    --pop:   2px 2px 0 var(--mark);
    --pop-2: 3px 3px 0 var(--mark);
    --mk-top: .42em;
    --mk-h:   .72em;
    --ease: cubic-bezier(.22, 1, .36, 1);
    font-size: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    font-family: var(--sans);
    font-size: var(--t-body);
    line-height: 1.55;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }
::selection { background: var(--hl); color: var(--ink); }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { background: var(--mark-soft); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button { font-family: inherit; }
abbr[title] { text-decoration: none; border: 0; cursor: help; }
[hidden] { display: none !important; }

/* Kiemelőfilc: csak háttér, soha szövegszín. A filc a betű alsó kétharmadán ül. */
.mk {
    background-image: linear-gradient(var(--mark), var(--mark));
    background-repeat: no-repeat;
    background-size: 100% var(--mk-h);
    background-position: 0 var(--mk-top);
    padding: 0 .06em;
    margin: 0 -.06em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.anim .brand .mk { animation: mk-swipe .62s var(--ease) both .15s; }
@keyframes mk-swipe { from { background-size: 0 var(--mk-h); } to { background-size: 100% var(--mk-h); } }

/* Mono címke-réteg: dátum, kód, szekciófej. 13.2 px alá nem megy. */
.doss, .panel-title, .toc-label, .qa .q, .f-date, .card-date, .ag-rel, .ap-date, .st-eyebrow, .mtl-head, .cal-mcount, .tc-meta, .tl-when, .ml-date, .kpi-label, .crumbs, .page-updated, .data-table th, .sb-item em, .archive-count, .topic-count, .chip-count, .doc-meta {
    font-family: var(--mono);
    font-size: var(--t-xs);
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
main.wrap { padding-top: 2.2rem; padding-bottom: 4.5rem; }

/* ===== Fejléc ===== */
header.masthead { background: var(--paper); border-bottom: 1px solid var(--ink); }
header.masthead .wrap { display: flex; align-items: center; gap: .5rem 1.75rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.brand:hover { background: none; }
.brand .brand-cup { width: 1.65rem; height: 1.65rem; flex: none; stroke: currentColor; }
.mainnav { display: flex; align-items: center; gap: .15rem; margin-left: .25rem; }
.mn-link { padding: .4rem .6rem; color: var(--ink-2); text-decoration: none; font-size: var(--t-sm); font-weight: 500; border-radius: var(--r); }
.mn-link:hover { color: var(--ink); background: var(--mark-soft); }
.mn-link.is-active { color: var(--ink); background: var(--mark); font-weight: 600; }
.menu-gomb { display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-gomb svg { width: 1.5rem; height: 1.5rem; display: block; }
.menu-gomb .ic-x { display: none; }
header.masthead.is-open .menu-gomb .ic-x { display: block; }
header.masthead.is-open .menu-gomb .ic-bars { display: none; }
@media (max-width: 54rem) {
    header.masthead .wrap { flex-wrap: wrap; }
    html.js .menu-gomb { display: inline-flex; }
    html.js .mainnav { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0 0 .5rem; padding: .25rem 0 .5rem; border-top: 1px solid var(--rule); }
    html.js header.masthead.is-open .mainnav { display: flex; }
    html.js .mainnav .mn-link { padding: .75rem .25rem; font-size: 1rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
    html.js .mainnav .mn-link.is-active { background: var(--mark); padding-left: .75rem; }
    html.js .mainnav .mn-link:last-child { border-bottom: 0; }
    html:not(.js) .mainnav { order: 3; width: 100%; flex-wrap: wrap; margin: 0 0 .5rem -.6rem; }
    @media (prefers-reduced-motion: no-preference) {
        html.js header.masthead.is-open .mainnav { animation: menu-in .18s ease-out; }
        @keyframes menu-in { from { opacity: 0; transform: translateY(-.25rem); } }
    }
}
.notice { border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: var(--t-xs); text-align: center; padding: .45rem var(--gutter); line-height: 1.45; }
.notice a { color: inherit; }

/* ===== Alkatrészek ===== */
.btn, .qf-go {
    display: inline-flex; align-items: center; gap: .4rem;
    min-height: 2.5rem; padding: .45rem .95rem;
    border: 1px solid var(--ink); border-radius: var(--r);
    background: var(--paper); color: var(--ink);
    font-size: var(--t-sm); font-weight: 600; text-decoration: none; cursor: pointer;
    box-shadow: var(--pop);
    transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover, .qf-go:hover { background: var(--paper); transform: translate(-1px, -1px); box-shadow: var(--pop-2); }
.btn:active, .qf-go:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--mark); }
.btn-primary, .qf-go { background: var(--ink); color: var(--paper); }
.btn-primary:hover, .qf-go:hover { background: var(--ink); }
.btn-danger { color: var(--stop); border-color: var(--stop); box-shadow: none; }
.btn-danger:hover { background: var(--stop-bg); transform: none; box-shadow: none; }

.qf-input, .topic-search {
    width: 100%; min-width: 0;
    padding: .6rem .85rem; min-height: 2.5rem;
    border: 1px solid var(--rule-2); border-radius: var(--r);
    background: var(--paper); color: var(--ink);
    font-family: inherit; font-size: 1rem;
}
.qf-input:focus, .topic-search:focus { outline: 0; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
::placeholder { color: var(--muted); opacity: 1; }

/* Chip: kategória-választó. A bekapcsolt chip filcsárga. */
.chiprow { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.4rem; }
.chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .38rem .7rem .38rem .75rem;
    border: 1px solid var(--rule-2); border-radius: var(--r);
    background: var(--paper); color: var(--ink-2);
    font-size: var(--t-xs); font-weight: 500; line-height: 1.3; cursor: pointer; text-decoration: none;
    transition: border-color .12s, background .12s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.chip .chip-count { color: var(--muted); }
.chip .chip-dot { width: .5rem; height: .5rem; border-radius: 1px; flex: none; }
.chip.is-on { background: var(--mark); color: var(--on-mark); border-color: var(--ink); }
.chip.is-on .chip-count { color: var(--ink-2); }

/* Kattintható doboz: tinta-keret + sárga offset-árnyék (a kikapta szabálya). */
.pop { display: block; border: 1px solid var(--ink); border-radius: var(--r); box-shadow: var(--pop); text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
.pop:hover { background: var(--paper); transform: translate(-1px, -1px); box-shadow: var(--pop-2); }
.pop:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--mark); }

/* Csukható panel (A te témáid, kategóriaválasztó) */
.mt-toggle {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .55rem .9rem; border: 1px solid var(--rule-2); border-radius: var(--r);
    background: var(--paper); color: var(--ink-2); font-size: var(--t-sm); font-weight: 500; cursor: pointer;
}
.mt-toggle:hover, .mt-toggle[aria-expanded="true"] { border-color: var(--ink); color: var(--ink); }
.mt-icon { width: .55rem; height: .55rem; background: var(--mark); border: 1px solid var(--ink); border-radius: 1px; font-size: 0; flex: none; }
.mt-caret { width: 0; height: 0; flex: none; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 5px solid currentColor; opacity: .6; font-size: 0; transition: transform .2s var(--ease); }
.mt-toggle[aria-expanded="true"] .mt-caret { transform: rotate(180deg); }
.mt-body { margin-top: .6rem; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--paper); }
.mt-help { margin: 0 0 .8rem; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; max-width: 62ch; }
.mt-body .chiprow { margin-bottom: 0; }
.mt-clear, .linkish { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; font-size: var(--t-sm); font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.mt-clear:hover, .linkish:hover { background: var(--mark-soft); }
.mt-clear { margin-top: .9rem; }
.catpick { margin: 0 0 1.4rem; }
.catpick-toggle { display: none; }
.catpick-body .chiprow { margin-bottom: 0; }

/* ===== Oldalfej ===== */
.page-h1 { font-size: var(--t-display); margin: 0 0 .5rem; }
.page-lead { color: var(--ink-2); font-size: var(--t-lede); line-height: 1.5; max-width: 64ch; margin: 0 0 1.6rem; }
.page-lead strong { color: var(--ink); font-weight: 600; }
.crumbs { color: var(--muted); margin: 0 0 .6rem; text-transform: uppercase; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { background: var(--mark-soft); }
.crumbs span { margin: 0 .35rem; }
.home-intro { margin-bottom: 1.8rem; max-width: 68ch; }
.home-intro .intro-links { font-size: var(--t-sm); color: var(--ink-2); margin-top: .8rem; }
.block { margin: 0 0 2.6rem; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 .25rem; padding-bottom: .5rem; border-bottom: 1px solid var(--ink); }
.block-head h2 { font-size: var(--t-h2); }
.block-more { font-size: var(--t-sm); font-weight: 600; white-space: nowrap; }
.block-note { margin: .9rem 0 0; color: var(--muted); font-size: var(--t-xs); line-height: 1.55; max-width: 72ch; }

/* ===== Főoldal ===== */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 1.6rem 3rem; align-items: start; margin: 0 0 2.4rem; }
.hero-main > .page-lead { margin-bottom: 1.3rem; }
.hero-main > .mytopics { margin-bottom: 1.1rem; }

.statusbar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: .7rem 0; margin: 0 0 1.1rem; font-size: var(--t-sm); color: var(--ink-2); }
.sb-item { display: inline-flex; align-items: center; gap: .45rem; }
.sb-dot { width: .55rem; height: .55rem; border-radius: 1px; flex: none; background: var(--mark); border: 1px solid var(--ink); }
.sb-item a { color: var(--ink); font-weight: 600; }
.sb-item em { font-style: normal; color: var(--muted); }
.sb-item b { font-weight: 700; color: var(--ink); padding: 0 .15em; background: var(--mark); }
.sb-new { margin-left: auto; display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: var(--r); background: var(--mark); color: var(--on-mark); font-size: var(--t-xs); font-weight: 600; }

.mytopics { margin: 0 0 1.8rem; }
.quickfind { display: flex; gap: .5rem; margin: 0 0 1rem; }
.qf-input { flex: 1 1 auto; }
.qf-go { flex: none; }

.minitl { border: 1px solid var(--rule-2); border-radius: var(--r); padding: .8rem 1rem .75rem; }
.mtl-head { color: var(--muted); margin-bottom: .6rem; text-transform: uppercase; }
.mtl-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .45rem; align-items: end; }
.mtl-bars > * { display: grid; gap: .25rem; justify-items: center; text-decoration: none; color: var(--muted); font-size: var(--t-xs); }
.mtl-bar { display: block; width: 100%; background: var(--ink); opacity: .22; height: max(3px, calc(var(--pct, 0) * .46px)); }
.mtl-zero .mtl-bar { opacity: .08; }
.mtl-n { font-family: var(--mono); font-weight: 600; color: var(--ink-2); font-size: var(--t-xs); }
.mtl-zero .mtl-n { color: var(--muted); font-weight: 400; }
.mtl-bars a:hover { background: none; color: var(--ink); }
.mtl-bars a:hover .mtl-bar { background: var(--mark); opacity: 1; outline: 1px solid var(--ink); }

.hero-side { display: flex; flex-direction: column; gap: .75rem; position: sticky; top: 1rem; }
.hero-side .featured { margin: 0; }
.hero-side .f-title { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.5rem); }
.hero-all { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border: 1px solid var(--ink); border-radius: var(--r); box-shadow: var(--pop); color: var(--ink); text-decoration: none; font-size: var(--t-sm); font-weight: 600; transition: transform .12s, box-shadow .12s; }
.hero-all::after { content: '›'; margin-left: auto; font-size: 1.2em; line-height: 1; }
.hero-all:hover { background: var(--paper); transform: translate(-1px, -1px); box-shadow: var(--pop-2); }
.ha-count { color: var(--muted); font-weight: 400; font-family: var(--mono); font-size: var(--t-xs); }

/* Kiemelt (legfrissebb) szám: tinta-keretes, sárga offset-árnyékú lap. */
.featured { display: block; border: 1px solid var(--ink); border-radius: var(--r); box-shadow: var(--pop-2); padding: clamp(1.1rem, 1rem + 1vw, 1.6rem); margin: 0 0 2.2rem; color: inherit; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.featured:hover { background: var(--paper); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--mark); }
.featured .f-date { display: inline-block; color: var(--ink-2); text-transform: uppercase; margin-bottom: .7rem; }
.featured .f-title { font-size: var(--t-title); margin: 0 0 .7rem; }
.featured:hover .f-title { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.featured .f-tldr { color: var(--ink-2); margin: 0 0 .9rem; max-width: 68ch; }
.featured .f-topics { margin: 0 0 .9rem; padding-left: 1.1rem; }
.featured .f-topics li { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.45; margin: .3rem 0; }
.featured .f-topics li::marker { color: var(--ink); content: '■  '; font-size: .55em; }
.featured .f-topics li.more, .f-topics .f-rest { color: var(--muted); list-style: none; margin-left: -1.1rem; font-size: var(--t-xs); }
@media (min-width: 901px) {
    .featured .f-topics { columns: 2; column-gap: 2.5rem; }
    .hero-side .f-topics { columns: 1; }
    .featured .f-topics li { break-inside: avoid; }
}
.featured .f-more { font-weight: 600; font-size: var(--t-sm); }
.card-new { display: inline-block; margin-left: .5rem; padding: .05rem .4rem; border-radius: var(--r); background: var(--mark); color: var(--on-mark); font-family: var(--mono); font-size: .7rem; font-weight: 600; text-transform: uppercase; vertical-align: middle; }
.badge { display: inline-block; margin-left: .5rem; padding: .05rem .45rem; border: 1px solid var(--rule-2); border-radius: var(--r); font-family: var(--mono); font-size: .7rem; font-weight: 500; text-transform: uppercase; vertical-align: middle; color: var(--ink-2); }

/* Napirend: napokra bontott hatálybalépési idővonal (napló-sorok). */
.agenda { list-style: none; margin: 0; padding: 0; }
.ag-day { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .25rem 1.4rem; padding: .95rem 0 1rem; border-top: 1px solid var(--rule); }
.ag-day:first-child { border-top: 0; padding-top: .35rem; }
.ag-when { align-self: start; }
.ag-rel { display: inline-block; padding: .15rem .35rem; border-radius: 1px; background: var(--paper-2); color: var(--ink-2); font-weight: 500; text-transform: uppercase; }
.ag-rel:empty { display: none; }
.ag-day.is-soon .ag-rel { background: var(--mark); color: var(--on-mark); font-weight: 600; }
.ag-day.is-past .ag-rel { background: transparent; color: var(--muted); padding-left: 0; }
.ag-date { display: block; margin-top: .4rem; color: var(--muted); font-size: var(--t-xs); line-height: 1.4; }
.ag-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ag-item + .ag-item { border-top: 1px solid var(--rule); }
.ag-item a { display: block; padding: .6rem 0; text-decoration: none; color: inherit; }
.ag-item a:hover { background: none; }
.ag-title { display: block; font-weight: 600; font-size: 1rem; line-height: 1.4; }
.ag-item a:hover .ag-title { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.ag-title::before { content: ''; display: inline-block; width: .5rem; height: .5rem; border-radius: 1px; background: var(--dot, var(--ink)); margin-right: .55rem; vertical-align: 1px; }
.ag-staged { display: inline-block; margin-left: .4rem; padding: 0 .35rem; border: 1px solid var(--rule-2); border-radius: var(--r); font-family: var(--mono); font-size: .7rem; font-weight: 500; text-transform: uppercase; vertical-align: 1px; color: var(--ink-2); }
.ag-title, .ag-lead { max-width: 86ch; }
.ag-lead { display: block; margin-top: .25rem; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; }
.ag-meta { display: block; margin-top: .35rem; font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); }
.ag-cat { color: var(--ink-2); }
.agenda-rest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-top: 1rem; padding: .75rem 1rem; border: 1px solid var(--ink); border-radius: var(--r); box-shadow: var(--pop); color: var(--ink); text-decoration: none; font-size: var(--t-sm); transition: transform .12s, box-shadow .12s; }
.agenda-rest:hover { background: var(--paper); transform: translate(-1px, -1px); box-shadow: var(--pop-2); }
.agenda-rest strong { background: var(--mark); padding: 0 .15em; }
.ar-go { font-weight: 600; white-space: nowrap; }
.agenda-empty, .cal-empty { margin: 1rem 0 0; color: var(--ink-2); font-size: var(--t-sm); }

/* Nemrég hatályba lépett: rövid, kattintható lapok */
.agenda-past { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .6rem; }
.agenda-past a { display: block; height: 100%; padding: .8rem .95rem; border: 1px solid var(--rule-2); border-radius: var(--r); text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s, transform .12s; }
.agenda-past a:hover { background: var(--paper); border-color: var(--ink); box-shadow: var(--pop); transform: translate(-1px, -1px); }
.ap-date { display: block; color: var(--muted); margin-bottom: .3rem; text-transform: uppercase; }
.ap-title { display: block; font-size: var(--t-sm); font-weight: 600; line-height: 1.4; }
.ap-title::before { content: ''; display: inline-block; width: .45rem; height: .45rem; border-radius: 1px; background: var(--dot, var(--ink)); margin-right: .5rem; vertical-align: 1px; }
.ap-cat { display: block; margin-top: .4rem; font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); }

/* Statisztika-teaser */
.stats-teaser { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; margin: 0 0 1.8rem; border: 1px solid var(--ink); border-radius: var(--r); box-shadow: var(--pop); text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
.stats-teaser:hover { background: var(--paper); transform: translate(-1px, -1px); box-shadow: var(--pop-2); }
.st-eyebrow { color: var(--ink-2); text-transform: uppercase; }
.stats-teaser .st-copy h3 { font-size: var(--t-h3); margin: .3rem 0 .25rem; }
.stats-teaser .st-copy p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); }
.st-more { display: inline-block; margin-top: .6rem; font-weight: 600; font-size: var(--t-sm); }
.st-spark { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; align-items: end; height: 4rem; border-bottom: 1px solid var(--ink); }
.st-spark span { display: block; background: var(--ink); opacity: .25; height: max(3px, calc(var(--pct, 0) * .64px)); }
.stats-teaser:hover .st-spark span { background: var(--mark); opacity: 1; }
@media (max-width: 620px) { .stats-teaser { grid-template-columns: 1fr; } .st-spark { display: none; } }

/* Egy hasábban: a sorrendet a .dash flex-order adja (a legfrissebb szám a státuszsor után). */
@media (max-width: 900px) {
    .dash { display: flex; flex-direction: column; }
    .hero, .hero-main { display: contents; }
    .dash .page-h1 { order: 1; }
    .dash .hero-main > .page-lead { order: 2; }
    .dash .statusbar { order: 3; margin-bottom: 1.4rem; }
    .hero-side { order: 4; position: static; margin-bottom: 1.8rem; }
    .dash .hero-main > .mytopics { order: 5; margin-bottom: .9rem; }
    .dash .quickfind { order: 6; margin-bottom: 1.8rem; }
    .dash .agenda-up { order: 7; }
    .dash .minitl { order: 8; margin-bottom: 2.2rem; }
    .dash [data-past-block] { order: 9; }
    .dash .stats-teaser { order: 10; }
}

/* ===== Közlönyök (archívum): napló-sorok ===== */
.archive { margin-top: .5rem; }
.archive-title { font-size: var(--t-h2); margin: 0; padding-bottom: .5rem; border-bottom: 1px solid var(--ink); display: flex; align-items: baseline; gap: .6rem; }
.archive-count { color: var(--muted); font-weight: 400; }
.issue-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.card { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .2rem 1.4rem; padding: 1rem 0 1.05rem; border-top: 1px solid var(--rule); text-decoration: none; color: inherit; }
.card:first-child { border-top: 0; }
.card:hover { background: none; }
.card .card-date { color: var(--muted); text-transform: uppercase; padding-top: .2rem; }
.card .card-title { grid-column: 2; font-size: var(--t-h3); font-weight: 600; line-height: 1.3; margin: 0 0 .35rem; }
.card:hover .card-title { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.card .card-tldr { grid-column: 2; margin: 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .card-topics { grid-column: 2; margin: 0; padding-left: 1rem; }
.card .card-topics li { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.45; margin: .2rem 0; }
.card .card-topics li::marker { color: var(--ink); content: '■  '; font-size: .55em; }
.card .card-topics li.more { color: var(--muted); list-style: none; margin-left: -1rem; font-size: var(--t-xs); }

/* ===== Hatálybalépési naptár ===== */
.cal-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; }
.cal-jump { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .75rem; border: 1px solid var(--rule-2); border-radius: var(--r); color: var(--ink-2); text-decoration: none; font-size: var(--t-xs); font-weight: 500; }
.cal-jump span { font-family: var(--mono); color: var(--muted); }
.cal-jump:hover { border-color: var(--ink); color: var(--ink); background: var(--mark-soft); }
.cal-jump.is-past { border-style: dashed; }
.cal-month { margin: 0 0 1.8rem; scroll-margin-top: 1rem; }
.cal-month.is-past { opacity: .8; }
.cal-mtitle { font-size: var(--t-h2); margin: 0 0 .25rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; padding-bottom: .5rem; border-bottom: 1px solid var(--ink); }
.cal-mcount { color: var(--muted); font-weight: 400; letter-spacing: .02em; }
.cal-sep { font-size: var(--t-h2); margin: 2.4rem 0 1rem; padding-top: 1.2rem; border-top: 2px solid var(--ink); scroll-margin-top: 1rem; }
.cal-filter { margin-bottom: 1.4rem; }

/* ===== Témák ===== */
.topic-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1rem; }
.topic-search { flex: 1 1 14rem; max-width: 30rem; }
.topic-count { color: var(--muted); margin-left: auto; }
.topics-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.topic-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1.2rem; align-items: baseline; padding: .85rem 0 .95rem; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
.topic-card:hover { background: none; }
.topic-card .tc-title { grid-column: 1; font-weight: 600; font-size: var(--t-h3); line-height: 1.3; }
.topic-card:hover .tc-title { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.topic-card .tc-lead { grid-column: 1; margin-top: .2rem; max-width: 92ch; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-card .tc-cat { grid-column: 1; margin-top: .4rem; font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-2); }
.topic-card .tc-cat .tc-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 1px; background: var(--qa-fg, var(--ink)); margin-right: .4rem; vertical-align: 0; }
.topic-card .tc-meta { grid-column: 2; grid-row: 1 / -1; text-align: right; color: var(--muted); align-self: start; text-transform: uppercase; white-space: nowrap; }
.topic-card .tc-meta small { display: block; margin-top: .15rem; font-size: inherit; text-transform: none; }
.topics-empty { padding: 1.8rem 0; text-align: center; color: var(--ink-2); font-size: var(--t-sm); }

/* ===== Statisztika ===== */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); margin: 0 0 1.4rem; border: 1px solid var(--ink); border-radius: var(--r); }
.kpi { padding: 1rem 1.1rem 1.05rem; border-left: 1px solid var(--rule); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi .kpi-num { display: inline-block; font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem); font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 62% / 100% .36em; padding: 0 .1em; margin-left: -.1em; }
.kpi .kpi-label { display: block; margin-top: .45rem; color: var(--ink-2); text-transform: uppercase; }
.kpi .kpi-hint { display: block; margin-top: .2rem; font-size: var(--t-xs); color: var(--muted); }

.stats-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: .75rem; margin-bottom: .75rem; align-items: start; }
.stats-grid > .panel { min-width: 0; }
.stats-full { margin-bottom: .75rem; }
.stats-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .9rem; margin: 0 0 .9rem; }
.stats-head h2 { font-size: var(--t-h2); }
.stats-sub { margin: 0; color: var(--muted); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.panel { border: 1px solid var(--rule-2); border-radius: var(--r); padding: 1rem 1.2rem 1.2rem; background: var(--paper); }
.panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.panel-title { color: var(--ink); text-transform: uppercase; font-weight: 600; margin: 0 0 .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--ink); }
.panel-note { margin: .8rem 0 0; font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }
.panel-note strong { color: var(--ink); background: var(--mark); padding: 0 .15em; font-weight: 600; }

/* Vízszintes sávok */
.barlist { list-style: none; margin: 0; padding: 0; }
.barlist li { display: grid; grid-template-columns: minmax(0, 12.5em) 1fr 2.5em; align-items: center; gap: .75rem; padding: .25rem 0; }
.bl-label { font-size: var(--t-sm); line-height: 1.35; color: var(--ink-2); }
.bl-track { height: .55rem; background: var(--paper-2); }
.bl-fill { display: block; height: 100%; width: calc(var(--pct) * 1%); min-width: 3px; background: var(--ink); opacity: calc(.45 + .55 * var(--rel)); transform-origin: left center; }
.bl-value { font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); text-align: right; }
.histogram { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.histogram li { display: grid; grid-template-columns: 11em 1fr 2em; align-items: center; gap: .6rem; }
.hg-label { font-size: var(--t-sm); color: var(--ink-2); }
.hg-track { height: .6rem; background: var(--paper-2); }
.hg-fill { display: block; width: calc(var(--pct) * 1%); min-width: 3px; height: 100%; background: var(--ink); opacity: calc(.45 + .55 * var(--rel)); transform-origin: left center; }
.hg-value { font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); text-align: right; }

/* Függőleges oszlopok */
.colchart { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .45rem; align-items: end; }
.colchart li { display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; }
.cc-val { font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); }
.cc-slot { width: 100%; height: 4.9rem; display: flex; align-items: flex-end; border-bottom: 1px solid var(--ink); }
.cc-bar { width: 100%; max-width: 3.4rem; margin: 0 auto; height: max(3px, calc(var(--pct) * .78px)); background: var(--ink); opacity: calc(.4 + .6 * var(--rel)); transform-origin: bottom center; }
.cc-label { font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); white-space: nowrap; }
.colchart li.is-current .cc-bar { background: var(--mark); opacity: 1; outline: 1px solid var(--ink); }
.colchart li.is-current .cc-label { color: var(--ink); font-weight: 600; }

/* Kategória-eloszlás: egy sávban (a donut helyett), jelmagyarázattal */
.catbar-wrap { display: grid; gap: .9rem; }
.catbar { display: flex; height: 1.4rem; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.cb-seg { display: block; flex: 0 0 calc(var(--w) * 1%); background: var(--dot); transition: opacity .12s; }
.catbar.is-picking .cb-seg { opacity: .22; }
.catbar.is-picking .cb-seg.is-on { opacity: 1; }
.cat-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1rem; }
.cat-legend li { display: flex; align-items: flex-start; gap: .5rem; font-size: var(--t-xs); line-height: 1.35; color: var(--ink-2); min-width: 0; cursor: default; padding: .1rem .25rem; margin: 0 -.25rem; }
.cat-legend .dot { width: .6rem; height: .6rem; border-radius: 1px; background: var(--dot); flex: none; margin-top: .22rem; }
.cat-legend .dlabel { flex: 1; min-width: 0; }
.cat-legend .dcount { font-family: var(--mono); color: var(--muted); }
.cat-legend li.is-hover { background: var(--mark-soft); color: var(--ink); }
.cat-total { font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); text-transform: uppercase; }
.cat-total b { font-family: var(--sans); font-size: 1.35rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; margin-right: .3rem; background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 62% / 100% .36em; padding: 0 .1em; }

/* Aktivitás-heatmap (13 hét × 7 nap) */
.heatmap { display: flex; flex-direction: column; gap: .4rem; }
.heatmap-months { display: grid; grid-auto-flow: column; grid-auto-columns: 15px; gap: 3px; padding-left: 22px; color: var(--muted); font-family: var(--mono); font-size: 11px; height: 14px; position: relative; }
.heatmap-months .m { position: absolute; }
.heatmap-body { display: flex; gap: 3px; }
.heatmap-daylabels { display: flex; flex-direction: column; gap: 3px; font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 2px; width: 18px; }
.heatmap-daylabels span { height: 15px; line-height: 15px; }
.heatmap-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 15px; gap: 3px; }
.heatmap-col { display: grid; grid-template-rows: repeat(7, 15px); gap: 3px; }
.heatmap-cell { width: 15px; height: 15px; border-radius: 1px; background: color-mix(in oklch, var(--ink) calc(var(--hm) * 100%), var(--paper-2)); transition: transform .12s; }
.heatmap-cell[data-lvl="0"] { background: var(--paper-2); }
.heatmap-cell:hover { transform: scale(1.3); outline: 1px solid var(--ink); background: var(--mark); }
.heatmap-legend { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); }
.heatmap-legend .scale { display: flex; gap: 3px; }
.heatmap-legend .scale span { width: 12px; height: 12px; border-radius: 1px; background: color-mix(in oklch, var(--ink) calc(var(--hm) * 100%), var(--paper-2)); }

/* Top-lista */
.toplist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.toplist li { border-top: 1px solid var(--rule); }
.toplist li:first-child { border-top: 0; }
.toplist a { display: grid; grid-template-columns: 1.6rem 1fr auto; align-items: baseline; gap: .6rem; padding: .6rem 0; text-decoration: none; color: inherit; }
.toplist a:hover { background: none; }
.toplist .tl-rank { font-family: var(--mono); font-weight: 600; font-size: var(--t-sm); color: var(--ink); text-align: left; }
.toplist .tl-title { display: block; font-size: var(--t-sm); line-height: 1.35; font-weight: 600; }
.toplist a:hover .tl-title { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.toplist .tl-meta { display: block; margin-top: .15rem; font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); }
.toplist .tl-size { align-self: start; font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); }

/* Idővonal (küszöbön) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--rule-2); }
.timeline li { position: relative; padding: .35rem 0 .4rem 1.5rem; }
.timeline li::before { content: ''; position: absolute; left: 0; top: .6rem; width: 11px; height: 11px; border-radius: 1px; background: var(--mark); border: 1px solid var(--ink); }
.timeline li.past::before { background: var(--paper-2); border-color: var(--rule-2); }
.timeline .tl-when { display: block; color: var(--ink); font-weight: 600; text-transform: uppercase; }
.timeline .tl-when em { font-style: normal; color: var(--muted); font-weight: 400; margin-left: .4rem; text-transform: none; }
.timeline .tl-text { display: block; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; margin-top: .15rem; }
.timeline .tl-src { display: inline-block; font-size: var(--t-xs); color: var(--muted); margin-top: .2rem; }
.timeline .tl-src a { color: inherit; }

/* Több szám egy napon */
.multilist { list-style: none; margin: 0; padding: 0; }
.multilist li { padding: .6rem 0; border-top: 1px solid var(--rule); }
.multilist > li:first-child { border-top: 0; padding-top: 0; }
.multilist .ml-date { display: block; color: var(--ink-2); text-transform: uppercase; margin-bottom: .3rem; }
.multilist .ml-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .8rem; }
.multilist .ml-items li { border: 0; padding: 0; }
.multilist .ml-items a { font-size: var(--t-sm); }

/* Kategória-lendület: név + havi sparkline + darabszám */
.catlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.catlist li { border-top: 1px solid var(--rule); }
.catlist li:first-child { border-top: 0; }
.catlist a { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr) 3.2em; align-items: center; gap: .9rem; padding: .45rem 0; text-decoration: none; color: inherit; }
.catlist a:hover { background: var(--mark-soft); }
.catlist .cl-label { display: flex; align-items: center; gap: .5rem; font-size: var(--t-sm); color: var(--ink-2); min-width: 0; }
.catlist .cl-label i { width: .55rem; height: .55rem; border-radius: 1px; background: var(--dot); flex: none; }
.catlist .cl-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catlist a:hover .cl-label { color: var(--ink); }
.cl-spark { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 22px); justify-content: start; gap: 3px; align-items: end; height: 2rem; border-bottom: 1px solid var(--rule-2); padding-bottom: 1px; }
.cl-spark span { display: block; height: max(3px, calc(var(--pct) * .3px)); background: var(--dot); opacity: .55; transform-origin: bottom center; }
.catlist a:hover .cl-spark span { opacity: .95; }
.cl-count { text-align: right; font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); }
.catlist a:hover .cl-count { color: var(--ink); }

/* Visszatérő szavak */
.wordcloud { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; }
.wordcloud a { text-decoration: none; color: var(--ink-2); font-weight: 600; line-height: 1.25; font-size: calc(.95rem + var(--rel) * 1rem); opacity: calc(.6 + .4 * var(--rel)); transform-origin: center bottom; }
.wordcloud a:hover { color: var(--ink); opacity: 1; background: var(--mark); }
.wordcloud a sup { font-family: var(--mono); font-size: .68rem; font-weight: 400; color: var(--muted); margin-left: .15rem; vertical-align: super; }

/* Sorozat-lefedettség */
.seqbar { display: flex; align-items: center; gap: .75rem; }
.seqbar .sb-track { flex: 1; height: .75rem; background: var(--paper-2); border: 1px solid var(--rule-2); overflow: hidden; }
.seqbar .sb-fill { display: block; height: 100%; width: calc(var(--pct) * 1%); background: var(--ink); transform-origin: left center; }
.seqbar .sb-end { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink); white-space: nowrap; }
.factlist { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .4rem; }
.factlist li { display: flex; gap: .6rem; align-items: baseline; font-size: var(--t-sm); color: var(--ink-2); }
.factlist b { font-weight: 600; font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 2.6em; background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 62% / 100% .36em; padding: 0 .1em; }

/* Mozgás: a sávok a végállapotukban állnak, a JS csak megjeleníti a növekedést. */
@media (prefers-reduced-motion: no-preference) {
    .is-live .bl-fill, .is-live .hg-fill, .stats-page.is-live .hg-fill { animation: bar-x .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
    .is-live .cc-bar { animation: bar-y .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
    .is-live .bl-value, .is-live .cc-val { animation: fade-up .5s ease-out both; animation-delay: calc(var(--i, 0) * 55ms + 180ms); }
    .is-live .cl-spark span { animation: bar-y .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms + var(--j, 0) * 40ms); }
    .is-live .sb-fill { animation: bar-x .9s var(--ease) both; }
    .is-live .wordcloud a { animation: fade-up .5s ease-out both; animation-delay: calc(var(--i, 0) * 30ms); }
    .stats-page.is-live .heatmap-cell { animation: fade-up .35s ease-out both; animation-delay: calc(var(--i, 0) * 5ms); }
    .stats-page.is-live .toplist li, .stats-page.is-live .timeline li { animation: fade-up .5s ease-out both; animation-delay: calc(var(--i, 0) * 50ms); }
    .dash.is-live .ag-day { animation: fade-up .5s ease-out both; animation-delay: calc(var(--i, 0) * 55ms); }
    .mt-body:not([hidden]), .catpick.is-open > .catpick-body { animation: fade-up .22s var(--ease) both; }
    @keyframes bar-x  { from { transform: scaleX(0); } }
    @keyframes bar-y  { from { transform: scaleY(0); } }
    @keyframes fade-up { from { opacity: 0; transform: translateY(4px); } }
}

/* ===== Szám-oldal ===== */
.summary-page { max-width: 46rem; margin: 0 auto; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.summary-page .page-title { font-size: var(--t-title); line-height: 1.15; margin: 0; }
.summary-page .doc-meta { color: var(--ink-2); margin: .6rem 0 1.6rem; text-transform: uppercase; }
.toc { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 1rem 0 1.1rem; margin: 0 0 1.8rem; }
.toc .toc-label { color: var(--ink); font-weight: 600; text-transform: uppercase; margin-bottom: .6rem; }
.toc ul { margin: 0; padding-left: 1.15rem; }
.toc li { margin: .35rem 0; font-size: 1rem; line-height: 1.45; }
.toc li::marker { color: var(--ink); content: '■  '; font-size: .55em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; background: none; }
.deck { font-size: var(--t-lede); font-weight: 500; line-height: 1.5; color: var(--ink); margin: 0 0 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--rule); }
.sections { display: flex; flex-direction: column; }
.sum-sec { padding: 1.4rem 0 1.5rem; border-top: 1px solid var(--ink); scroll-margin-top: 1rem; }
.sum-sec .section-title { font-size: var(--t-h2); margin: 0 0 .9rem; }
.qa { padding: .7rem 0 .85rem; border-top: 1px solid var(--rule); }
.qa:last-child { padding-bottom: 0; }
.qa .q { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-2); font-weight: 500; text-transform: uppercase; margin-bottom: .3rem; padding: .05rem .2rem .05rem 0; }
.qa-when .q { background: var(--mark); color: var(--on-mark); font-weight: 600; padding-left: .3rem; }
.qa .q svg { width: .9rem; height: .9rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qa .a { font-size: 1.03rem; line-height: 1.6; color: var(--ink); }
.qa .a-list { margin: 0; padding-left: 1.15rem; }
.qa .a-list li { margin: .3rem 0; }
.qa .a-list li::marker { color: var(--ink); content: '■  '; font-size: .55em; }
.qa .a-lead { margin: 0 0 .5rem; }
.section-body p { margin: 0 0 .85rem; font-size: 1.03rem; line-height: 1.6; color: var(--ink); }
.section-body p:last-child { margin-bottom: 0; }
.section-body ul.bullet-list { margin: 0 0 .85rem; padding-left: 1.3rem; }
.section-body ul.bullet-list li { font-size: 1.03rem; line-height: 1.6; color: var(--ink); margin: .35rem 0; }
.section-body ul.bullet-list li::marker { color: var(--ink); content: '■  '; font-size: .55em; }
.source-note { margin-top: 1.5rem; border: 1px solid var(--rule-2); border-radius: var(--r); padding: 1rem 1.1rem; font-size: var(--t-sm); line-height: 1.55; color: var(--ink-2); }
.source-note a { font-weight: 600; }
.related { margin-top: 2.6rem; padding-top: .6rem; border-top: 1px solid var(--ink); }
.related h2 { font-size: var(--t-h2); margin: 0 0 .9rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .6rem; }
.related-grid a { display: block; padding: .8rem .95rem; border: 1px solid var(--rule-2); border-radius: var(--r); text-decoration: none; color: var(--ink); font-size: var(--t-sm); font-weight: 600; line-height: 1.4; transition: border-color .12s, box-shadow .12s, transform .12s; }
.related-grid a:hover { background: var(--paper); border-color: var(--ink); box-shadow: var(--pop); transform: translate(-1px, -1px); }
.related-grid .r-date { display: block; margin-top: .3rem; font-family: var(--mono); font-size: var(--t-xs); font-weight: 400; color: var(--muted); }
.error { background: var(--stop-bg); color: var(--stop); padding: .9rem 1.1rem; border: 1px solid var(--stop); border-radius: var(--r); }

/* ===== Tartalmi oldalak ===== */
.page-prose { max-width: 66ch; margin: 0 auto; }
.page-prose .page-h1 { font-size: var(--t-title); margin: 0 0 .4rem; }
.page-prose .page-updated { color: var(--muted); margin: 0 0 1.6rem; text-transform: uppercase; }
.page-prose .lead { font-size: var(--t-lede); font-weight: 500; color: var(--ink); line-height: 1.5; margin: 0 0 1.6rem; }
.page-prose h2 { font-size: var(--t-h2); margin: 2.2rem 0 .7rem; padding-top: 1rem; border-top: 1px solid var(--ink); }
.page-prose p { margin: .8rem 0; color: var(--ink); font-size: 1.03rem; line-height: 1.65; }
.page-prose ul { margin: .8rem 0; padding-left: 1.3rem; color: var(--ink); font-size: 1.03rem; line-height: 1.65; }
.page-prose li { margin: .4rem 0; }
.page-prose li::marker { color: var(--ink); content: '■  '; font-size: .55em; }
.page-prose .data-table { border-collapse: collapse; width: 100%; margin: .9rem 0; font-size: var(--t-sm); }
.page-prose .data-table th { text-align: left; vertical-align: top; padding: .6rem 1rem .6rem 0; color: var(--ink-2); font-weight: 500; white-space: nowrap; width: 1%; text-transform: uppercase; border-bottom: 1px solid var(--rule); }
.page-prose .data-table td { padding: .6rem 0; color: var(--ink); border-bottom: 1px solid var(--rule); }
.page-prose .data-table tr:last-child td, .page-prose .data-table tr:last-child th { border-bottom: 0; }

/* ===== Lábléc ===== */
footer.site-footer { border-top: 1px solid var(--ink); padding: 1.8rem 0 2.2rem; margin-top: 3rem; color: var(--ink-2); }
footer.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1.6rem; align-items: center; justify-content: space-between; }
footer.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
footer.site-footer nav a { font-size: var(--t-sm); font-weight: 500; text-decoration: none; }
footer.site-footer nav a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; background: none; }
footer.site-footer .foot-copy { font-size: var(--t-xs); width: 100%; margin-top: .4rem; line-height: 1.55; color: var(--muted); }
footer.site-footer .foot-copy a { color: inherit; }

/* ===== Töréspontok ===== */
@media (max-width: 860px) {
    .stats-grid { grid-template-columns: 1fr; }
    .cat-legend { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .panel-row { grid-template-columns: 1fr; }
    .barlist li { grid-template-columns: minmax(0, 9.5em) 1fr 2.2em; gap: .55rem; }
    .catlist a { grid-template-columns: minmax(0, 1fr) minmax(0, 96px) 2.6em; gap: .6rem; }
    .histogram li { grid-template-columns: 8.5em 1fr 2em; gap: .5rem; }
    .heatmap-legend { flex-wrap: wrap; }
    .heatmap-legend span[style] { margin-left: 0 !important; width: 100%; }
    .ag-day { grid-template-columns: 1fr; gap: .4rem; padding: .85rem 0 .95rem; }
    .ag-when { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
    .ag-date { margin-top: 0; }
    .ag-lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .statusbar { gap: .35rem 1rem; }
    .sb-new { margin-left: 0; }
    .card { grid-template-columns: 1fr; gap: .15rem; }
    .card .card-title, .card .card-tldr, .card .card-topics { grid-column: 1; }
    .cal-nav { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 1.6rem 4px 0; margin-bottom: .9rem; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent); }
    .cal-nav::-webkit-scrollbar { display: none; }
    .cal-jump { flex: none; scroll-snap-align: start; }
    .catpick { margin-bottom: 1rem; }
    .catpick-toggle { display: flex; width: 100%; justify-content: flex-start; padding: .65rem .85rem; text-align: left; }
    .catpick-toggle .mt-summary { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .catpick-body { display: none; margin-top: .6rem; padding: .5rem; border: 1px solid var(--rule-2); border-radius: var(--r); max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; }
    .catpick.is-open > .catpick-body { display: block; }
    .catpick-body .chiprow, .mt-body .chiprow { display: grid; grid-template-columns: 1fr; gap: 1px; }
    .catpick-body .chip, .mt-body .chip { width: 100%; justify-content: flex-start; text-align: left; padding: .6rem .7rem; border-color: transparent; font-size: var(--t-sm); }
    .catpick-body .chip.is-on, .mt-body .chip.is-on { border-color: var(--ink); }
    .catpick-body .chip .chip-count, .mt-body .chip .chip-count { margin-left: auto; }
    .catpick-body .chip[data-cat=""]::before, .catpick-body .chip[data-cf-cat=""]::before { content: ""; width: .5rem; flex: none; }
    .mt-body .chiprow { max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 560px) {
    .brand { font-size: 1.3rem; }
    .actions .btn { flex: 1 1 auto; justify-content: center; }
    footer.site-footer .wrap { flex-direction: column; align-items: flex-start; }
    .panel { padding: .9rem .9rem 1rem; }
    .topic-card { grid-template-columns: 1fr; }
    .topic-card .tc-meta { grid-row: auto; grid-column: 1; text-align: left; margin-top: .3rem; white-space: normal; }
    .topic-card .tc-meta small { display: inline; margin-left: .5rem; }
    .kpis { grid-template-columns: 1fr; }
    .kpi { border-left: 0; border-top: 1px solid var(--rule); }
    .kpi:first-child { border-top: 0; }
}
@media (max-width: 430px) {
    .barlist li { grid-template-columns: 1fr auto; grid-template-areas: "label value" "track track"; gap: .15rem .6rem; padding: .4rem 0; }
    .bl-label { grid-area: label; }
    .bl-value { grid-area: value; }
    .bl-track { grid-area: track; margin-top: .2rem; }
    .catlist a { grid-template-columns: 1fr auto; grid-template-areas: "label count" "spark spark"; gap: .35rem .6rem; padding: .55rem 0; }
    .catlist .cl-label { grid-area: label; }
    .cl-count { grid-area: count; }
    .cl-spark { grid-area: spark; grid-auto-columns: minmax(0, 30px); height: 1.6rem; }
    .cl-spark span { height: max(3px, calc(var(--pct) * .24px)); }
    .quickfind { flex-wrap: wrap; }
    .qf-go { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
