/*
 * Központi portál (Vadászkutya Portál / Gundog Portal) – közös stíluslap.
 * Statikus fájl, build-lépés nélkül; a layout `?v=<filemtime>` verzióval tölti be.
 * A betűkészletek @font-face szabályai a layoutban vannak (asset() URL-ek miatt).
 *
 * Kontraszt (WCAG AA, sötét háttéren számolva): a narancs gombon sötét felirat (5.8:1);
 * a #B85A52 hibaszín szövegként nem éri el a 4.5:1-et, ezért csak jelölőpöttyként
 * és keretként szerepel, a felirat --portal-danger-text.
 */

:root {
    color-scheme: dark;

    /* Paletta */
    --portal-bg: #101B13;
    --portal-bg-2: #17271C;
    --portal-surface: #1D3023;
    --portal-surface-2: #24392A;
    --portal-text: #F5F2E8;
    --portal-muted: #B9C4B7;
    --portal-soft: #D3DACF;
    --portal-placeholder: #8C9A8A;
    --portal-accent: #F36B21;
    --portal-accent-hover: #FF813B;
    --portal-accent-text: #101B13;
    --portal-link: #FF9A5C;
    --portal-link-hover: #FFC29C;
    --portal-border: #354537;
    --portal-border-strong: #4A5E4C;
    --portal-success: #4DA969;
    --portal-success-text: #6CC487;
    --portal-warning: #DBA83A;
    --portal-danger: #B85A52;
    --portal-danger-text: #E0877F;

    /* A korábbi állapotnevek (rendezvényoldal, admin) a palettára mutatnak. */
    --portal-open: var(--portal-success-text);
    --portal-upcoming: var(--portal-warning);
    --portal-closed: var(--portal-danger-text);

    /* Betűk */
    --portal-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --portal-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --portal-sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Formák */
    --portal-radius-card: 12px;
    --portal-radius-control: 8px;
    --portal-shadow: 0 1px 2px rgb(0 0 0 / .25), 0 8px 24px rgb(0 0 0 / .18);
    --portal-max: 1360px;
    --portal-header-h: 64px;
    --portal-bottom-nav-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--portal-header-h) + 8px); }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    background: var(--portal-bg); color: var(--portal-text);
    font-family: var(--portal-sans); font-size: 17px; line-height: 1.55;
    overflow-wrap: break-word;
}
img { max-width: 100%; }
a { color: var(--portal-link); }
a:hover { color: var(--portal-link-hover); }
:focus-visible { outline: 3px solid var(--portal-accent); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: var(--portal-radius-control); background: var(--portal-accent); color: var(--portal-accent-text); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 8px; color: var(--portal-accent-text); }
.wrap { width: 100%; max-width: var(--portal-max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
@media (min-width: 1440px) { .wrap { padding: 0 32px; } }

/* ---------------------------------------------------------------- Fejléc */
header.site { position: sticky; top: 0; z-index: 40; background: rgb(16 27 19 / .94); border-bottom: 1px solid var(--portal-border); }
@supports (backdrop-filter: blur(8px)) { header.site { background: rgb(16 27 19 / .82); backdrop-filter: blur(8px); } }
.site-bar { display: flex; align-items: center; gap: 16px; min-height: var(--portal-header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--portal-text); text-decoration: none; min-height: 44px; flex: none; }
.brand:hover { color: var(--portal-text); }
.brand-mark { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--portal-radius-control); background: var(--portal-accent); color: var(--portal-accent-text); font-family: var(--portal-display); font-weight: 700; font-size: 1.3rem; }
.brand-name { font-family: var(--portal-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1; }

.site-nav ul, .account-nav ul, .lang ul, .menu-list, .bottom-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav ul { display: flex; gap: 8px; }
.site-nav a { display: inline-flex; align-items: center; min-height: var(--portal-header-h); padding: 0 14px; text-decoration: none; color: var(--portal-soft); font-weight: 500; box-shadow: inset 0 -3px 0 transparent; }
.site-nav a:hover { color: var(--portal-text); }
.site-nav a[aria-current="page"] { color: var(--portal-text); font-weight: 600; box-shadow: inset 0 -3px 0 var(--portal-accent); }

.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.account-nav ul { display: flex; align-items: center; gap: 6px; }
.account-nav a, .account-nav button.link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--portal-radius-control); text-decoration: none; color: var(--portal-soft); font: inherit; font-weight: 500; background: transparent; border: 0; cursor: pointer; }
.account-nav a:hover, .account-nav button.link:hover { color: var(--portal-text); background: transparent; filter: none; }
.account-nav form { display: inline; margin: 0; }
.account-nav .nav-login { border: 1px solid var(--portal-border-strong); color: var(--portal-text); font-weight: 600; padding: 0 18px; }
.account-nav .nav-login:hover { border-color: var(--portal-text); }
.account-nav a[aria-current="page"] { color: var(--portal-text); font-weight: 600; }

.lang ul { display: flex; align-items: center; }
.lang li + li { border-left: 1px solid var(--portal-border-strong); }
.lang a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 10px; color: var(--portal-muted); text-decoration: none; font-size: .95rem; }
.lang a:hover { color: var(--portal-text); }
.lang a[aria-current="true"] { color: var(--portal-text); font-weight: 600; }
.lang .lang-long { display: inline; }
.lang .lang-short { display: none; }

/* Mobilmenü: <details>, JavaScript nélkül */
.menu { position: relative; display: none; }
.menu > summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--portal-radius-control); border: 1px solid var(--portal-border-strong); cursor: pointer; color: var(--portal-text); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 22px; height: 22px; }
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); padding: 8px; background: var(--portal-bg-2); border: 1px solid var(--portal-border); border-radius: var(--portal-radius-card); box-shadow: var(--portal-shadow); }
.menu-list { display: grid; gap: 2px; }
.menu-list a, .menu-list button.link { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--portal-radius-control); color: var(--portal-text); text-decoration: none; font: inherit; background: transparent; border: 0; cursor: pointer; text-align: left; }
.menu-list a:hover, .menu-list button.link:hover { background: var(--portal-surface); color: var(--portal-text); filter: none; }
.menu-list a[aria-current="page"] { color: var(--portal-accent); font-weight: 600; }
.menu-list form { margin: 0; }
.menu-sep { height: 1px; margin: 6px 4px; background: var(--portal-border); }

/* Ikonos fiók/belépés gomb (csak tableten) */
.header-account { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--portal-radius-control); border: 1px solid var(--portal-border-strong); color: var(--portal-text); }
.header-account:hover { color: var(--portal-text); border-color: var(--portal-muted); }
.header-account[aria-current="page"] { border-color: var(--portal-accent); color: var(--portal-accent); }
.header-account svg { width: 22px; height: 22px; }

/* Alsó navigáció (csak mobilon) */
.bottom-nav { display: none; }

@media (max-width: 1023px) {
    /* Tablet: a fióknavigáció a menübe kerül, a nyelvválasztó rövid kódot mutat. */
    .site-bar { gap: 12px; }
    .site-nav a { padding: 0 10px; }
    .account-nav { display: none; }
    .menu { display: block; }
    .header-account { display: inline-flex; }
    .lang .lang-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .lang .lang-short { display: inline; }
}
@media (max-width: 767px) {
    :root { --portal-header-h: 56px; }
    .site-bar { gap: 8px; }
    .brand-mark { width: 36px; height: 36px; font-size: 1.15rem; }
    .brand-name { font-size: 1.2rem; }
    .site-nav { display: none; }
    .menu-wide-only, .menu-no-mobile, .header-account { display: none; }
    .header-tools { margin-left: auto; }

    .bottom-nav { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--portal-bg-2); border-top: 1px solid var(--portal-border); padding-bottom: env(safe-area-inset-bottom, 0px); }
    .bottom-nav ul { display: grid; grid-template-columns: repeat(var(--items, 3), 1fr); }
    .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--portal-bottom-nav-h); padding: 6px 4px; color: var(--portal-muted); text-decoration: none; font-size: .8rem; font-weight: 500; box-shadow: inset 0 3px 0 transparent; }
    .bottom-nav a svg { width: 24px; height: 24px; }
    .bottom-nav a[aria-current="page"] { color: var(--portal-accent); font-weight: 600; box-shadow: inset 0 3px 0 var(--portal-accent); }
    body.has-bottom-nav { padding-bottom: calc(var(--portal-bottom-nav-h) + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 374px) {
    .brand { gap: 8px; }
    .brand-mark { width: 32px; height: 32px; font-size: 1.05rem; }
    .brand-name { font-size: 1rem; }
}
@media (max-width: 339px) {
    /* 320 px-en a név nem fér el a nyelvválasztó és a menü mellett; a jel marad, a név felolvasható. */
    .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------------------------------------------------------------- Tipográfia, közös elemek */
main.wrap { flex: 1; padding-top: 32px; padding-bottom: 56px; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-family: var(--portal-serif); font-weight: 700; font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.01em; line-height: 1.08; margin: 0 0 10px; }
.section-title { font-family: var(--portal-serif); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.1rem); letter-spacing: -.005em; margin: 0; }
.eyebrow { margin: 0; font-family: var(--portal-display); font-weight: 600; font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--portal-accent); }
.lead { color: var(--portal-soft); margin: 0 0 24px; max-width: 70ch; font-size: 1.1rem; }
.muted { color: var(--portal-muted); }
.card { background: var(--portal-surface); border: 1px solid var(--portal-border); border-radius: var(--portal-radius-card); padding: 20px; }
.card-title { margin-top: 0; font-size: 1.15rem; }
.stack { display: grid; gap: 12px; }
.narrow { max-width: 480px; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Űrlapok */
input[type=text], input[type=search], input[type=date], input[type=email], input[type=password], select, textarea {
    width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--portal-border-strong); border-radius: var(--portal-radius-control);
    background: var(--portal-bg); color: var(--portal-text); font: inherit;
}
input:hover, select:hover, textarea:hover { border-color: var(--portal-muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--portal-accent); outline-offset: 1px; border-color: var(--portal-accent); }
input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
input::placeholder, textarea::placeholder { color: var(--portal-placeholder); }
.stack-form { display: grid; gap: 16px; }
.stack-form label { display: grid; gap: 6px; font-size: .95rem; color: var(--portal-muted); }
.stack-form .check, form.search .check { display: flex; align-items: flex-start; gap: 10px; color: var(--portal-text); }
.stack-form .check input, form.search .check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--portal-accent); }
.field-error { color: var(--portal-danger-text); font-size: .9rem; }

/* Kapcsoló (stílusozott jelölőnégyzet; a működése natív checkbox) */
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; color: var(--portal-text); }
.switch input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: var(--portal-surface-2); border: 1px solid var(--portal-border-strong); cursor: pointer; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--portal-muted); transition: transform .15s, background .15s; }
.switch input:checked { background: var(--portal-accent); border-color: var(--portal-accent); }
.switch input:checked::after { transform: translateX(20px); background: var(--portal-text); }
.switch input:focus-visible { outline: 3px solid var(--portal-accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- Gombok */
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--portal-radius-control); border: 1px solid var(--portal-accent); background: var(--portal-accent); color: var(--portal-accent-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.button:hover, button:hover { background: var(--portal-accent-hover); border-color: var(--portal-accent-hover); color: var(--portal-accent-text); }
button:disabled, .button[aria-disabled="true"] { background: var(--portal-surface-2); border-color: var(--portal-border); color: var(--portal-placeholder); cursor: not-allowed; pointer-events: none; }
.button svg, button svg { width: 18px; height: 18px; flex: none; }
.button-secondary { background: transparent; color: var(--portal-text); border-color: var(--portal-border-strong); }
.button-secondary:hover { background: var(--portal-surface-2); border-color: var(--portal-muted); color: var(--portal-text); }
.button-outline { background: transparent; color: var(--portal-accent); border-color: var(--portal-accent); }
.button-outline:hover { background: rgb(243 107 33 / .12); color: var(--portal-accent-hover); border-color: var(--portal-accent-hover); }
.button-danger { background: var(--portal-danger); border-color: var(--portal-danger); color: #fff; }
.button-danger:hover { background: #A34A43; border-color: #A34A43; color: #fff; }
.button-block { width: 100%; }

/* ---------------------------------------------------------------- Chip */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--portal-border-strong); background: var(--portal-bg-2); color: var(--portal-soft); font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--portal-muted); color: var(--portal-text); }
.chip[aria-current="true"], .chip.is-active { border-color: var(--portal-accent); background: rgb(243 107 33 / .14); color: var(--portal-text); font-weight: 600; }
.chip-remove { padding-right: 10px; }
.chip-remove svg { width: 16px; height: 16px; }
@media (max-width: 767px) { .chip { min-height: 44px; } }

/* ---------------------------------------------------------------- Állapotjelvény (pötty + felirat) */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--portal-border-strong); background: var(--portal-bg-2); color: var(--portal-text); white-space: nowrap; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status-open { color: var(--portal-success-text); }
.status-upcoming { color: var(--portal-warning); }
.status-closed { color: var(--portal-danger-text); }
.status-past { color: var(--portal-muted); }
.status.status-open { border-color: rgb(77 169 105 / .45); background: rgb(77 169 105 / .12); }
.status.status-open::before { background: var(--portal-success); }
.status.status-upcoming { border-color: rgb(219 168 58 / .45); background: rgb(219 168 58 / .12); }
.status.status-closed { border-color: rgb(184 90 82 / .5); background: rgb(184 90 82 / .12); }
.status.status-closed::before { background: var(--portal-danger); }

/* ---------------------------------------------------------------- Értesítés */
.notice { border-radius: var(--portal-radius-control); padding: 12px 16px; margin: 0 0 18px; border: 1px solid var(--portal-border); border-left-width: 4px; background: var(--portal-surface); }
.notice-success { border-left-color: var(--portal-success); }
.notice-warning { border-left-color: var(--portal-warning); }
.notice-error { border-left-color: var(--portal-danger); }

/* ---------------------------------------------------------------- Nyitóoldal: hero */
.hero { position: relative; overflow: hidden; background: var(--portal-bg); border-bottom: 1px solid var(--portal-border); isolation: isolate; }
.hero-media { position: absolute; z-index: -2; top: 0; right: 0; bottom: 0; left: clamp(0px, calc(50% - 160px), 600px); }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0% 40%; }
.hero-media { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%); mask-image: linear-gradient(90deg, transparent 0, #000 26%); }
.hero-shade { position: absolute; z-index: -1; inset: 0;
    background:
        linear-gradient(90deg, var(--portal-bg) 0%, var(--portal-bg) 30%, rgb(16 27 19 / .55) 44%, rgb(16 27 19 / .1) 62%, rgb(16 27 19 / 0) 100%),
        linear-gradient(0deg, var(--portal-bg) 0%, rgb(16 27 19 / .6) 22%, rgb(16 27 19 / 0) 50%); }
.hero-inner { padding-top: 56px; padding-bottom: 28px; display: grid; gap: 28px; }
.hero-text { max-width: 640px; display: grid; gap: 12px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.04; margin: 0; text-wrap: balance; }
.hero .lead { margin: 0; max-width: 56ch; color: var(--portal-soft); text-shadow: 0 1px 2px rgb(0 0 0 / .4); }

/* ---------------------------------------------------------------- Keresőpanel */
.search-panel { background: rgb(29 48 35 / .92); border: 1px solid var(--portal-border); border-radius: var(--portal-radius-card); padding: 16px; box-shadow: var(--portal-shadow); }
@supports (backdrop-filter: blur(6px)) { .search-panel { background: rgb(29 48 35 / .82); backdrop-filter: blur(6px); } }
.search-panel:focus { outline: none; }
.search-panel:focus-visible { outline: 3px solid var(--portal-accent); outline-offset: 2px; }
.search-main { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 4.6fr) auto; gap: 12px; align-items: end; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-label { font-size: .9rem; font-weight: 500; color: var(--portal-muted); }
.input-icon { position: relative; display: block; }
.input-icon > svg { position: absolute; left: 12px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--portal-muted); pointer-events: none; }
.input-icon > input { padding-left: 42px; }
.search-more > summary { display: none; }
.search-more-fields { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(158px, .9fr) minmax(158px, .9fr) auto; gap: 12px; align-items: end; }
.field-switch { align-self: end; min-height: 46px; white-space: nowrap; }
.search-submit { min-height: 46px; padding: 0 22px; font-weight: 700; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--portal-accent); color: var(--portal-accent-text); font-size: .8rem; font-weight: 700; }

@media (max-width: 1279px) {
    .search-main { grid-template-columns: minmax(0, 1fr) auto; }
    .search-more { grid-column: 1 / -1; grid-row: 2; }
    .search-more-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) auto; }
}
@media (max-width: 1023px) {
    .search-more-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-switch { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .hero-media { left: 0; width: 100%; height: 300px; bottom: auto; -webkit-mask-image: none; mask-image: none; }
    .hero-media img { object-position: 22% 35%; }
    .hero-shade { background:
        linear-gradient(90deg, rgb(16 27 19 / .92) 0%, rgb(16 27 19 / .55) 55%, rgb(16 27 19 / .15) 100%),
        linear-gradient(0deg, var(--portal-bg) 0%, var(--portal-bg) calc(100% - 300px), rgb(16 27 19 / .3) calc(100% - 140px), rgb(16 27 19 / 0) 100%); }
    .hero-inner { padding-top: 28px; gap: 20px; }
    .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
    .hero .lead { font-size: 1rem; }
    .search-panel { padding: 12px; }
    .search-main { gap: 10px; }
    .field-q .field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .search-more > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; cursor: pointer; color: var(--portal-soft); font-weight: 500; list-style: none; }
    .search-more > summary::-webkit-details-marker { display: none; }
    .search-more > summary svg { width: 20px; height: 20px; }
    .search-more[open] > summary { margin-bottom: 10px; }
    .search-more-fields { gap: 10px; }
    .search-submit { padding: 0 16px; }
}
@media (max-width: 359px) {
    .search-more-fields { grid-template-columns: 1fr; }
    .search-submit svg { display: none; }
}

/* ---------------------------------------------------------------- Gyorsszűrők, aktív szűrők */
.quick-filters, .active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; }
.quick-filters ul, .active-filters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quick-label { color: var(--portal-muted); font-size: .95rem; }
.reset-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
@media (max-width: 767px) {
    .quick-filters { flex-wrap: nowrap; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
    .quick-filters::-webkit-scrollbar { display: none; }
    .quick-filters ul { flex-wrap: nowrap; }
    .quick-filters .quick-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------------------------------------------------------------- Közelgő / korábbi fülek */
.list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin: 8px 0 16px; border-bottom: 1px solid var(--portal-border); }
.period-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.period-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; color: var(--portal-muted); text-decoration: none; font-weight: 500; font-size: 1.05rem; box-shadow: inset 0 -3px 0 transparent; }
.period-tabs a svg { width: 22px; height: 22px; }
.period-tabs .tab-short { display: none; }
.period-tabs a:hover { color: var(--portal-text); }
.period-tabs a[aria-current="page"] { color: var(--portal-text); font-weight: 700; box-shadow: inset 0 -3px 0 var(--portal-accent); }
.period-tabs a[aria-current="page"] svg { color: var(--portal-accent); }
.results-count { margin: 0 0 12px; font-size: .95rem; }
@media (max-width: 767px) {
    .list-head { border-bottom: 0; }
    .period-tabs { width: 100%; }
    .period-tabs ul { padding: 4px; gap: 4px; background: var(--portal-bg-2); border: 1px solid var(--portal-border); border-radius: var(--portal-radius-card); }
    .period-tabs li { flex: 1; }
    .period-tabs a { width: 100%; justify-content: center; min-height: 44px; padding: 0 8px; border-radius: var(--portal-radius-control); box-shadow: none; font-size: 1rem; }
    .period-tabs a[aria-current="page"] { background: var(--portal-accent); color: var(--portal-accent-text); box-shadow: none; }
    .period-tabs a[aria-current="page"] svg { color: currentColor; }
    .period-tabs .tab-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .period-tabs .tab-short { display: inline; }
}

/* Admin aloldalak fülsora (régi minta, változatlan). */
.tabs ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 4px; background: var(--portal-surface); border: 1px solid var(--portal-border); border-radius: var(--portal-radius-card); }
nav.tabs a { display: inline-block; padding: 10px 16px; border-radius: var(--portal-radius-control); text-decoration: none; color: var(--portal-soft); }
nav.tabs a[aria-current="page"] { background: var(--portal-text); color: var(--portal-bg); font-weight: 600; box-shadow: none; }

/* ---------------------------------------------------------------- Rendezvénykártya */
.ev-list { display: grid; gap: 12px; }
.ev-card {
    display: grid; align-items: center; gap: 8px 20px;
    grid-template-columns: 200px 92px minmax(0, 1.25fr) minmax(0, 1fr) 190px auto;
    grid-template-areas: "media date main desc status action";
    padding: 10px 16px 10px 10px; background: var(--portal-surface); border: 1px solid var(--portal-border); border-radius: var(--portal-radius-card);
    transition: border-color .15s;
}
.ev-card:hover, .ev-card:focus-within { border-color: var(--portal-border-strong); }
.ev-media { grid-area: media; align-self: stretch; position: relative; min-height: 104px; border-radius: var(--portal-radius-control); overflow: hidden; background: var(--portal-surface-2); }
.ev-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-date { grid-area: date; margin: 0; line-height: 1.1; }
.ev-date time { display: grid; }
.ev-month { font-family: var(--portal-display); font-weight: 600; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--portal-muted); }
.ev-day { font-family: var(--portal-display); font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--portal-text); }
.ev-weekday { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--portal-muted); }
.ev-time { font-size: .85rem; color: var(--portal-muted); }
.ev-main { grid-area: main; min-width: 0; display: grid; gap: 4px; }
.ev-type { justify-self: start; margin: 0; padding: 2px 10px; border-radius: 999px; background: rgb(243 107 33 / .16); border: 1px solid rgb(243 107 33 / .45); color: var(--portal-link); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ev-title { margin: 0; font-size: 1.2rem; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-meta { margin: 0; display: flex; align-items: flex-start; gap: 8px; color: var(--portal-muted); font-size: .92rem; line-height: 1.35; overflow-wrap: anywhere; }
.ev-meta svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ev-logo { width: 20px; height: 20px; flex: none; border-radius: 4px; object-fit: contain; background: #fff; }
.ev-desc { grid-area: desc; margin: 0; padding-left: 20px; border-left: 1px solid var(--portal-border); color: var(--portal-soft); font-size: .92rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ev-status { grid-area: status; display: grid; gap: 6px; justify-items: start; }
.ev-milestone { margin: 0; display: grid; font-size: .88rem; line-height: 1.3; }
.ev-milestone time { color: var(--portal-text); font-weight: 500; }
.ev-action { grid-area: action; }
.ev-action .button { white-space: nowrap; }

@media (max-width: 1279px) {
    .ev-card { grid-template-columns: 180px 84px minmax(0, 1fr) 180px auto;
        grid-template-areas: "media date main status action" "media date desc status action"; }
    .ev-desc { padding-left: 0; border-left: 0; -webkit-line-clamp: 2; }
}
@media (max-width: 1023px) {
    .ev-card { grid-template-columns: 170px 76px minmax(0, 1fr);
        grid-template-areas: "media date main" "media date desc" "media date status" "media date action";
        align-items: start; padding-right: 12px; }
    .ev-media { align-self: start; min-height: 0; aspect-ratio: 4 / 3; }
    .ev-status { grid-auto-flow: column; align-items: center; gap: 12px; }
    .ev-milestone { display: block; }
}
@media (max-width: 767px) {
    .ev-card { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 8px 12px;
        grid-template-areas: "media main" "date main" "desc desc" "status status" "action action";
        padding: 10px; }
    .ev-media { min-height: 0; aspect-ratio: 4 / 3; align-self: start; }
    .ev-date time { grid-template-columns: auto; }
    .ev-day { font-size: 1.9rem; }
    .ev-status { grid-auto-flow: row; }
    .ev-action .button { width: 100%; }
}

/* ---------------------------------------------------------------- Üres állapot */
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 40px 20px; text-align: center; background: var(--portal-surface); border: 1px dashed var(--portal-border-strong); border-radius: var(--portal-radius-card); }
.empty-state > svg { width: 40px; height: 40px; color: var(--portal-accent); }
.empty-state h3 { margin: 0; font-family: var(--portal-serif); font-size: 1.5rem; }
.empty-state p { margin: 0; max-width: 52ch; }
.empty-state .actions { justify-content: center; margin-top: 8px; }

/* Közös kiegészítők a rendezvény- és egyesületoldalhoz */
.placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--portal-surface-2); color: var(--portal-accent); font-family: var(--portal-display); font-weight: 700; font-size: 2.4rem; letter-spacing: .04em; }
.feature-label { margin: 0; font-family: var(--portal-display); font-weight: 600; font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--portal-muted); }

/* ---------------------------------------------------------------- Rendezvényoldal */
.event-hero { border-bottom: 1px solid var(--portal-border); }
.event-hero .wrap { padding-top: 24px; padding-bottom: 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .95rem; color: var(--portal-muted); margin-bottom: 20px; }
.crumbs { align-items: center; }
nav.crumbs a { padding: 4px 0; color: var(--portal-soft); text-decoration: underline; text-underline-offset: 3px; }
.event-hero-grid { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: center; }
.event-hero-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.event-hero-main h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; }
.event-hero-when { margin: 0; font-size: 1.15rem; color: var(--portal-soft); }
.button-large { min-height: 52px; padding: 12px 26px; font-family: var(--portal-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; }
.register-hint { margin: 0; font-size: .95rem; max-width: 60ch; }
.event-hero-media { flex: 1 1 360px; position: relative; aspect-ratio: 16 / 10; border-radius: var(--portal-radius-card); overflow: hidden; background: var(--portal-surface-2); border-top: 4px solid var(--portal-accent); }
.event-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.event-layout { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.event-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.event-main .section-title { font-size: 1.8rem; margin-bottom: 12px; }
.event-description p { margin: 0 0 14px; max-width: 72ch; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--portal-surface); border: 1px solid var(--portal-border-strong); }
.periods { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--portal-border); }
.periods li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--portal-border); }
.conditions { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--portal-soft); }
.event-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.event-aside .feature-label { font-size: .95rem; margin: 0 0 12px; }
.organizer-card { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.club-logo-inline { width: 52px; height: 52px; flex: none; border-radius: var(--portal-radius-card); object-fit: contain; background: #fff; }
.club-logo-inline.placeholder-logo { display: flex; align-items: center; justify-content: center; background: var(--portal-text); color: var(--portal-bg); font-family: var(--portal-display); font-weight: 700; font-size: 1.3rem; }
.aside-links { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.source-note { font-size: .9rem; margin: 0; }

/* ---------------------------------------------------------------- Egyesületek */
.clubs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.club { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.club-cover { position: relative; height: 150px; background: var(--portal-surface-2); }
.club-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.club-body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.club-logo { width: 64px; height: 64px; margin-top: -32px; position: relative; border-radius: var(--portal-radius-card); border: 3px solid var(--portal-surface); object-fit: contain; background: #fff; }
.club-logo.placeholder-logo { display: flex; align-items: center; justify-content: center; background: var(--portal-text); color: var(--portal-bg); font-family: var(--portal-display); font-weight: 700; font-size: 1.5rem; }
.club h2 { font-size: 1.2rem; margin: 0; }
.club .actions { margin-top: auto; padding-top: 8px; }

/* ---------------------------------------------------------------- Lapozó */
.pager { margin-top: 24px; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; }
.pager a, .pager span { display: inline-block; min-width: 44px; padding: 10px; border-radius: var(--portal-radius-control); text-align: center; text-decoration: none; border: 1px solid var(--portal-border-strong); background: var(--portal-surface); color: var(--portal-text); }
.pager a:hover { border-color: var(--portal-accent); }
.pager [aria-current="page"] { background: var(--portal-accent); border-color: var(--portal-accent); color: var(--portal-accent-text); font-weight: 700; }
.pager [aria-disabled="true"] { color: var(--portal-muted); opacity: .6; }
.pager .pager-gap { border: 0; background: transparent; min-width: 0; padding: 10px 2px; }
.pager-info { text-align: center; margin: 8px 0 0; font-size: .9rem; }
.pager .pager-label { border: 0; padding: 0; min-width: 0; background: transparent; color: inherit; }
@media (max-width: 480px) {
    .pager .pager-label { display: none; }
    .pager ul { gap: 4px; }
    .pager a, .pager span { min-width: 40px; padding: 8px; }
    .pager .pager-gap { padding: 8px 0; min-width: 0; }
}

/* ---------------------------------------------------------------- Fiók és admin */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--portal-border); vertical-align: top; }
th { font-family: var(--portal-display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; color: var(--portal-muted); }
dl.plain { margin: 0; }
dl.plain dt { font-weight: 600; color: var(--portal-muted); }
dl.plain dd { margin: 0 0 10px; }
.admin-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.stats dt { color: var(--portal-muted); font-size: .9rem; }
.stats dd { margin: 0; font-family: var(--portal-display); font-size: 2rem; font-weight: 700; }
.table-wrap { overflow-x: auto; }
.table-wrap table { min-width: 560px; }

/* ---------------------------------------------------------------- Lábléc */
footer.site { border-top: 1px solid var(--portal-border); background: var(--portal-bg-2); padding: 24px 0 28px; font-size: .95rem; color: var(--portal-muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
footer.site ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
footer.site nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--portal-link); }

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

/* ---------------------------------------------------------------- Fiók: profilsáv és fülek */
.account-hero { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; margin: 0 0 8px; padding: 24px; overflow: hidden;
    background: linear-gradient(120deg, var(--portal-surface) 0%, var(--portal-bg-2) 70%); border: 1px solid var(--portal-border); border-radius: var(--portal-radius-card); }
.account-hero::after { content: ''; position: absolute; inset: auto -40px -60px auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgb(243 107 33 / .16), transparent 70%); pointer-events: none; }
.account-avatar { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--portal-accent); color: var(--portal-accent-text); font-family: var(--portal-display); font-weight: 700; font-size: 1.9rem; letter-spacing: .02em; box-shadow: 0 0 0 4px rgb(243 107 33 / .18); }
.account-hero-text { min-width: 0; display: grid; gap: 6px; }
.account-hero h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.account-identity { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--portal-soft); }
.account-identity strong { color: var(--portal-text); font-size: 1.05rem; }
.account-email { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; color: var(--portal-muted); }
.account-email svg { width: 18px; height: 18px; flex: none; }
.account-lead { margin: 0; font-size: 1rem; }
.account-logout { margin: 0; position: relative; z-index: 1; }
.account-tabs { margin: 0 0 24px; border-bottom: 1px solid var(--portal-border); }
.account-notice { display: flex; align-items: flex-start; gap: 10px; }
.account-notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--portal-warning); }
@media (max-width: 767px) {
    .account-hero { grid-template-columns: auto minmax(0, 1fr); align-items: start; padding: 18px; gap: 12px 14px; }
    .account-avatar { width: 52px; height: 52px; font-size: 1.35rem; }
    .account-lead { font-size: .95rem; }
    .overview-stats > div { padding: 12px 14px; }
    .stat-icon { width: 40px; height: 40px; }
    .overview-stats dd { font-size: 1.8rem; }
    .account-logout { grid-column: 1 / -1; }
    .account-logout button { width: 100%; }
    .account-tabs { border-bottom: 0; }
}

/* ---------------------------------------------------------------- Fiók: áttekintés */
.overview-summary { margin: 0 0 32px; }
.overview-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0; }
.overview-stats > div { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon dt" "icon dd"; column-gap: 14px; align-items: center;
    background: var(--portal-surface); border: 1px solid var(--portal-border); border-radius: var(--portal-radius-card); padding: 16px 20px; min-width: 0; }
.stat-icon { grid-area: icon; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgb(243 107 33 / .14); color: var(--portal-accent); }
.stat-icon svg { width: 26px; height: 26px; }
.overview-stats dt { grid-area: dt; color: var(--portal-muted); font-size: .95rem; }
.overview-stats dd { grid-area: dd; margin: 2px 0 0; font-family: var(--portal-display); font-weight: 700; font-size: 2.1rem; line-height: 1.1; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.overview-amount { font-size: 1.7rem; }
.overview-amount-none { color: var(--portal-muted); font-size: 1.3rem; }
.overview-note { margin: 10px 0 0; font-size: .92rem; }

.overview-clubs-title { margin: 0 0 16px; }
.overview-clubs { display: grid; gap: 20px; margin-bottom: 32px; }
.overview-club { display: flex; flex-direction: column; gap: 0; min-width: 0; padding: 0; overflow: hidden; }
.overview-club-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; background: var(--portal-bg-2); border-bottom: 1px solid var(--portal-border); }
.overview-club-name { flex: 1 1 220px; min-width: 0; }
.overview-club-name h3 { margin: 0; font-size: 1.3rem; overflow-wrap: anywhere; }
.overview-club-name p { margin: 2px 0 0; font-size: .9rem; }
.overview-club > .overview-state, .overview-club > .overview-state-note, .overview-club > p { padding: 0 20px; }
.overview-club > .overview-state { padding-top: 18px; }
.overview-club > p:last-child { padding-bottom: 18px; margin-bottom: 0; }
.overview-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview-section { padding: 18px 20px; border-top: 0; border-bottom: 1px solid var(--portal-border); min-width: 0; }
.overview-section:nth-child(odd) { border-right: 1px solid var(--portal-border); }
.overview-section:nth-last-child(-n+2) { border-bottom: 0; }
.overview-section h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--portal-sans); font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; color: var(--portal-muted); }
.overview-section h4 svg { width: 20px; height: 20px; color: var(--portal-accent); flex: none; }
.overview-section h5 { margin: 14px 0 6px; font-size: .95rem; color: var(--portal-soft); }
.overview-section p { margin: 0 0 8px; }
.overview-section .button { margin-top: 4px; }
.overview-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.overview-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 12px; background: var(--portal-bg-2); border: 1px solid var(--portal-border); border-radius: var(--portal-radius-control); }
.overview-list li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 200px; overflow-wrap: anywhere; }
.overview-list-compact li { padding: 8px 12px; }
.overview-date { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--portal-link); }
.overview-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.overview-link::after { content: '→'; transition: transform .15s; }
.overview-link:hover::after { transform: translateX(3px); }
.overview-state { margin: 0; color: var(--portal-soft); }
.overview-state-note { margin: 4px 0 0; font-size: .9rem; }
@media (max-width: 767px) {
    .overview-sections { grid-template-columns: 1fr; }
    .overview-section, .overview-section:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--portal-border); }
    .overview-section:last-child { border-bottom: 0; }
    .overview-club-head, .overview-section { padding-left: 16px; padding-right: 16px; }
}

.overview-add, .overview-empty { margin-bottom: 16px; }
.overview-add .card-title, .overview-empty .card-title { display: flex; align-items: center; gap: 10px; }
.overview-add .card-title svg { width: 22px; height: 22px; color: var(--portal-accent); }
.card-last { margin-bottom: 0; }

/* Kapcsolatlisták (áttekintés és beállítások) */
.link-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.link-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; background: var(--portal-bg-2); border: 1px solid var(--portal-border); border-radius: var(--portal-radius-control); }
.link-list form { margin: 0; }
.link-item { display: grid; gap: 2px; min-width: 0; flex: 1 1 220px; overflow-wrap: anywhere; }
.link-item .muted { font-size: .9rem; }
.link-warning { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--portal-warning); }
.link-warning svg { width: 16px; height: 16px; flex: none; }

/* ---------------------------------------------------------------- Fiók: beállítások */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.settings-col { display: grid; gap: 20px; min-width: 0; }
.settings-card { padding: 22px; }
.settings-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.2rem; }
.settings-title svg { width: 22px; height: 22px; color: var(--portal-accent); flex: none; }
.settings-note { font-size: .9rem; margin-bottom: 0; }
.settings-danger { border-color: rgb(184 90 82 / .55); background: linear-gradient(180deg, rgb(184 90 82 / .08), transparent 60%), var(--portal-surface); }
.settings-danger .settings-title svg { color: var(--portal-danger-text); }
@media (max-width: 1023px) {
    .settings-grid { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------------------- Szabálytár – admin-előnézet */
.rb-subnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; padding: 0; }
.rb-subnav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.rb-subnav a[aria-current="page"] { color: var(--portal-text); text-decoration: none; box-shadow: inset 0 -3px 0 var(--portal-accent); }
.rb-draft { margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--portal-warning); border-left-width: 6px; border-radius: var(--portal-radius-control); background: rgb(219 168 58 / .1); font-weight: 600; }
.rb-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.rb-stat-small { font-size: 1.2rem !important; }
.rb-filter, .rb-revisions { margin: 0 0 16px; }
.rb-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.rb-main { flex: 999 1 560px; min-width: 0; }
.rb-aside { flex: 1 1 300px; min-width: 0; }
.rb-section h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.rb-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin-bottom: 12px; }
.rb-meta dd { margin: 0; }
.rb-summary { font-weight: 600; margin: 0 0 8px; }
.rb-explanation p { margin: 0 0 10px; max-width: 75ch; }
.rb-task { border-top: 1px solid var(--portal-border); padding: 14px 0; }
.rb-task:first-of-type { border-top: 0; padding-top: 0; }
.rb-task-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.rb-task-head h4 { margin: 0; font-size: 1.1rem; }
.rb-task h5 { margin: 12px 0 6px; font-size: .95rem; color: var(--portal-soft); }
.rb-fields { margin: 0; display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 6px 16px; }
.rb-fields dt { color: var(--portal-muted); font-weight: 600; }
.rb-fields dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .rb-fields { grid-template-columns: 1fr; } .rb-fields dd { margin-bottom: 8px; } }
.rb-faults, .rb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rb-list ul { margin: 6px 0 0; }
.rb-fault p { margin: 4px 0 0; }
.rb-tech { margin-top: 8px; }
.rb-tech > summary { cursor: pointer; color: var(--portal-muted); min-height: 32px; }
.rb-data { margin: 6px 0 0 12px; display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 4px 12px; font-size: .9rem; }
.rb-data dd { margin: 0; overflow-wrap: anywhere; }
.rb-data-list { margin: 4px 0; padding-left: 20px; font-size: .9rem; }
.rb-issue { border-top: 1px solid var(--portal-border); padding-top: 10px; margin-top: 10px; }
.rb-issue:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.rb-issue h3 { margin: 4px 0; font-size: 1rem; }
.rb-issue p { margin: 0 0 6px; }
.rb-source { margin: 0 0 10px; overflow-wrap: anywhere; }
/* Az admin fülsora mobilon több sorba törik (a szabálytárral öt elem lett). */
nav.tabs ul { flex-wrap: wrap; }
.rb-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rb-small { font-size: .9rem; }
.rb-workflow h3 { margin: 16px 0 8px; font-size: 1rem; }
.rb-workflow form { margin: 0 0 8px; }
.rb-gate { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.rb-gate li { padding-left: 26px; position: relative; }
.rb-gate li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.rb-gate-ok::before { content: '✓'; color: var(--portal-success-text); }
.rb-gate-fail::before { content: '✕'; color: var(--portal-danger-text); }
.rb-source-row td { padding-top: 0; }
.rb-inline-form { max-width: 520px; }

/* Nyilvános szabálytár (S3) – lista */
.rb-notice { margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--portal-border); border-left: 6px solid var(--portal-accent); border-radius: var(--portal-radius-control); background: var(--portal-bg-2); }
.rb-notice p { margin: 0; }
.rb-notice p + p { margin-top: 6px; color: var(--portal-muted); }
.rb-catalog { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.rb-catalog-item { position: relative; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; }
.rb-catalog-item:hover, .rb-catalog-item:focus-within { border-color: var(--portal-accent); }
.rb-catalog-kind { margin: 0; }
.rb-catalog-item h2 { margin: 0; font-size: 1.15rem; line-height: 1.3; overflow-wrap: anywhere; }
.rb-catalog-link { color: var(--portal-text); text-decoration: none; }
.rb-catalog-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.rb-catalog-link:hover { color: var(--portal-text); }
.rb-catalog-link:focus-visible { outline: none; }
.rb-catalog-item:has(.rb-catalog-link:focus-visible) { outline: 3px solid var(--portal-accent); outline-offset: 2px; }
.rb-catalog-item p { margin: 0; color: var(--portal-soft); }
.rb-catalog-more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; color: var(--portal-link); font-weight: 600; font-size: .95rem; }
.rb-catalog-more svg { width: 18px; height: 18px; }

/* Nyilvános szabálytár – bejegyzés */
.rb-hero { margin: 0 0 24px; display: grid; gap: 10px; }
.rb-hero .crumbs { margin: 0; }
.rb-hero h1 { margin: 0; font-size: clamp(1.9rem, 4.5vw, 3rem); text-wrap: balance; }
.rb-kind { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .95rem; }
.rb-hero-lead { margin: 0; }
.rb-facts { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rb-facts li { padding: 6px 14px; border-radius: 999px; background: var(--portal-surface); border: 1px solid var(--portal-border-strong); font-weight: 600; font-size: .95rem; }
.rb-hero .rb-notice { margin: 6px 0 0; }

.rb-doc { display: grid; gap: 24px; align-items: start; }
.rb-doc-with-toc { grid-template-columns: 270px minmax(0, 1fr); }
.rb-toc { position: sticky; top: calc(var(--portal-header-h) + 16px); max-height: calc(100vh - var(--portal-header-h) - 32px); overflow: auto; }
.rb-toc-box { background: var(--portal-surface); border: 1px solid var(--portal-border); border-radius: var(--portal-radius-card); padding: 16px; }
.rb-toc-box > summary { display: none; }
.rb-toc-title { margin: 0 0 8px; font-family: var(--portal-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--portal-muted); }
.rb-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rb-toc ol ol { margin: 2px 0 6px 12px; padding-left: 10px; border-left: 1px solid var(--portal-border); }
.rb-toc a { display: block; padding: 5px 8px; border-radius: 6px; color: var(--portal-soft); text-decoration: none; font-size: .95rem; line-height: 1.3; }
.rb-toc ol ol a { font-size: .88rem; color: var(--portal-muted); padding: 4px 8px; }
.rb-toc a:hover { background: var(--portal-surface-2); color: var(--portal-text); }
.rb-main { min-width: 0; }
.rb-content { min-width: 0; }
.rb-content, .rb-main, .rb-main .stack { grid-template-columns: minmax(0, 1fr); }
.rb-content > *, .rb-main > *, .rb-main .stack > * { min-width: 0; }
.rb-section { scroll-margin-top: calc(var(--portal-header-h) + 16px); }
.rb-section > .card-title { font-family: var(--portal-serif); font-size: 1.5rem; margin: 0 0 14px; }
.rb-task { scroll-margin-top: calc(var(--portal-header-h) + 16px); }

/* Feladatkártya */
.rb-task-public { border-top: 0; margin: 0 0 14px; padding: 16px 18px; background: var(--portal-bg-2); border: 1px solid var(--portal-border); border-left: 4px solid var(--portal-accent); border-radius: var(--portal-radius-control); }
.rb-task-public:first-of-type { padding-top: 16px; }
.rb-task-public:last-child { margin-bottom: 0; }
.rb-task-head h4 { font-size: 1.15rem; }
.rb-score { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: rgb(243 107 33 / .14); border: 1px solid rgb(243 107 33 / .4); color: var(--portal-link); font-size: .85rem; font-weight: 600; }
.rb-summary { color: var(--portal-text); }
.rb-explanation { color: var(--portal-soft); }
.rb-fields-public { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; margin: 12px 0 0; }
.rb-fields-public .rb-field { padding: 10px 12px; background: var(--portal-surface); border-radius: var(--portal-radius-control); border: 1px solid var(--portal-border); }
.rb-fields-public dt { font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--portal-muted); margin: 0 0 4px; }
.rb-fields-public dd { margin: 0; font-size: .95rem; line-height: 1.45; }
.rb-fields:not(.rb-fields-public) .rb-field { display: contents; }
.rb-unspecified { margin: 10px 0 0; font-size: .88rem; color: var(--portal-muted); }
.rb-unspecified span { font-weight: 600; }
.rb-fault { padding: 10px 12px; border-radius: var(--portal-radius-control); background: rgb(184 90 82 / .08); border: 1px solid rgb(184 90 82 / .35); }

/* Díjosztály-mátrix */
.rb-table-wrap { overflow-x: auto; margin: 0 0 8px; border: 1px solid var(--portal-border); border-radius: var(--portal-radius-control); }
.rb-awards { width: 100%; border-collapse: collapse; min-width: 420px; }
.rb-awards th, .rb-awards td { padding: 10px 14px; border-bottom: 1px solid var(--portal-border); text-align: center; font-size: .95rem; }
.rb-awards thead th { background: var(--portal-bg-2); font-family: var(--portal-display); font-size: 1.05rem; letter-spacing: .04em; color: var(--portal-text); text-transform: none; }
.rb-awards th[scope="row"] { text-align: left; font-family: var(--portal-sans); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--portal-soft); font-size: .95rem; }
.rb-awards tbody tr:last-child th, .rb-awards tbody tr:last-child td { border-bottom: 0; }
.rb-awards-total td { font-weight: 700; color: var(--portal-text); }
.rb-awards-total th[scope="row"] { color: var(--portal-text); font-weight: 700; }
.rb-min { font-weight: 600; color: var(--portal-text); }

/* Fajták */
.rb-breeds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rb-breed { background: var(--portal-bg-2); border: 1px solid var(--portal-border); border-radius: var(--portal-radius-control); }
.rb-breed > summary, .rb-breed-plain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 48px; padding: 8px 14px; }
.rb-breed > summary { cursor: pointer; list-style: none; }
.rb-breed > summary::-webkit-details-marker { display: none; }
.rb-breed > summary::after { content: '+'; margin-left: auto; font-size: 1.3rem; color: var(--portal-accent); }
.rb-breed[open] > summary::after { content: '–'; }
.rb-exceptions { list-style: none; margin: 0; padding: 4px 14px 14px; display: grid; gap: 12px; }
.rb-exceptions h4 { margin: 0 0 4px; font-size: 1rem; }
.rb-exceptions li { padding-top: 10px; border-top: 1px solid var(--portal-border); }

/* Források */
.rb-source-doc { margin: 0 0 12px; display: grid; gap: 2px; }
.rb-refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 6px; }
.rb-refs li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 12px; border-radius: var(--portal-radius-control); background: var(--portal-bg-2); border: 1px solid var(--portal-border); font-size: .92rem; }
.rb-ref-link { margin-left: auto; font-weight: 600; white-space: nowrap; }

@media (max-width: 1023px) {
    .rb-doc-with-toc { grid-template-columns: minmax(0, 1fr); }
    .rb-toc { position: static; max-height: none; }
    .rb-toc-box { padding: 0; }
    .rb-toc-box > summary { display: flex; align-items: center; min-height: 48px; padding: 0 16px; cursor: pointer; font-weight: 600; list-style: none; }
    .rb-toc-box > summary::-webkit-details-marker { display: none; }
    .rb-toc-box > summary::after { content: '+'; margin-left: auto; color: var(--portal-accent); font-size: 1.3rem; }
    .rb-toc-box[open] > summary::after { content: '–'; }
    .rb-toc-box[open] { padding-bottom: 12px; }
    .rb-toc-box > ol { padding: 0 12px; }
    .rb-toc-title { display: none; }
}
@media (max-width: 767px) {
    .rb-task-public { padding: 14px; }
    .rb-section > .card-title { font-size: 1.3rem; }
}

.rb-task-public .rb-explanation p, .rb-section > .rb-explanation p { max-width: none; }
@media (max-width: 767px) { .rb-section.card { padding: 14px; } .rb-task-public { padding: 12px; } }

/* Szabálytár – ikonok és lépések */
.rb-section > .card-title { display: flex; align-items: center; gap: 12px; }
.rb-section > .card-title > svg { width: 30px; height: 30px; flex: none; padding: 6px; border-radius: 10px; background: rgb(243 107 33 / .14); color: var(--portal-accent); box-sizing: content-box; }
.rb-part { display: block; font-family: var(--portal-display); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--portal-accent); line-height: 1.2; }

.rb-steps { position: relative; display: grid; gap: 14px; }
.rb-steps .rb-task-public { margin: 0 0 0 46px; position: relative; }
.rb-steps .rb-task-public::before { content: ''; position: absolute; left: -31px; top: 46px; bottom: -14px; width: 2px; background: var(--portal-border-strong); }
.rb-steps .rb-task-public:last-child::before { display: none; }
.rb-task-head { position: relative; }
.rb-step { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--portal-accent); color: var(--portal-accent-text); font-family: var(--portal-display); font-weight: 700; font-size: 1.05rem; }
.rb-steps .rb-task-public .rb-step { position: absolute; left: -66px; top: -4px; box-shadow: 0 0 0 4px var(--portal-surface); }
.rb-task:not(.rb-task-public) .rb-step { width: 26px; height: 26px; font-size: .9rem; }

.rb-fields-public dt { display: flex; align-items: center; gap: 6px; }
.rb-fields-public dt svg { width: 16px; height: 16px; flex: none; color: var(--portal-accent); }
.rb-fields:not(.rb-fields-public) dt svg { display: none; }
.rb-task h5 { display: flex; align-items: center; gap: 6px; }
.rb-task h5 svg { width: 16px; height: 16px; color: var(--portal-danger-text); }

.rb-toc-step { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: var(--portal-surface-2); color: var(--portal-soft); font-size: .75rem; font-weight: 700; }
.rb-toc a:hover .rb-toc-step { background: var(--portal-accent); color: var(--portal-accent-text); }
.rb-toc ol ol a { display: flex; align-items: center; }

/* A vizsga menete (fejléc) */
.rb-flow { margin: 6px 0 2px; }
.rb-flow-title { margin: 0 0 8px; font-family: var(--portal-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--portal-muted); font-size: .9rem; }
.rb-flow ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; counter-reset: none; }
.rb-flow li { display: flex; align-items: center; }
.rb-flow li + li::before { content: ''; width: 28px; height: 2px; margin: 0 6px; background: linear-gradient(90deg, var(--portal-border-strong), var(--portal-accent)); }
.rb-flow a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--portal-surface); border: 1px solid var(--portal-border); text-decoration: none; color: var(--portal-text); }
.rb-flow a:hover { border-color: var(--portal-accent); color: var(--portal-text); }
.rb-flow-no { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--portal-accent); color: var(--portal-accent-text); font-family: var(--portal-display); font-weight: 700; font-size: 1.1rem; }
.rb-flow-text { display: grid; line-height: 1.2; }
.rb-flow-text strong { font-size: .95rem; }
.rb-flow-text .muted { font-size: .82rem; }

@media (max-width: 767px) {
    .rb-flow ol { flex-direction: column; align-items: stretch; gap: 0; }
    .rb-flow li { flex-direction: column; align-items: stretch; }
    .rb-flow li + li::before { width: 2px; height: 12px; margin: 0 0 0 24px; background: var(--portal-border-strong); }
    .rb-flow a { border-radius: var(--portal-radius-control); }
    .rb-steps .rb-task-public { margin-left: 0; }
    .rb-steps .rb-task-public::before { display: none; }
    .rb-steps .rb-task-public .rb-step { position: static; box-shadow: none; }
    .rb-section > .card-title > svg { width: 24px; height: 24px; }
}

/* Rendezvényfigyelő (6. rész) */
.alert-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.alert-fieldset legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
.alert-fieldset > p { margin: 0; }
.alert-tenants { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--portal-border); border-radius: var(--portal-radius-control); }
.alert-list li { align-items: flex-start; }
.alert-state { margin: 0 0 6px; }
.alert-summary { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; font-size: .95rem; }
.alert-summary dt { color: var(--portal-muted); }
.alert-summary dd { margin: 0; overflow-wrap: anywhere; }
.alert-edit { max-width: 640px; }
/* Három fiókfül keskeny kijelzőn: ikon a felirat fölött, hogy ne lógjon ki (390 px). */
@media (max-width: 520px) {
    .account-tabs li { min-width: 0; }
    .account-tabs a { flex-direction: column; gap: 2px; min-height: 56px; padding: 6px 4px; font-size: .88rem; text-align: center; }
    .account-tabs a svg { width: 20px; height: 20px; }
}
.alert-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; overflow-wrap: anywhere; }
.alert-recent .muted { font-size: .9rem; }
.interest-card { margin-bottom: 16px; }
.interest-card .feature-label { display: flex; align-items: center; gap: 8px; }
.interest-card .feature-label svg { width: 18px; height: 18px; color: var(--portal-accent); }
.interest-card form { margin: 0; }
