/* felveteli.net – 2026 */
:root {
  --bg: #ffffff;
  --surface: #f6f8fb;
  --surface-2: #eef2f8;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #1e40af;
  --primary-2: #2563eb;
  --primary-soft: #e8efff;
  --accent: #f59e0b;
  --accent-soft: #fff6e0;
  --ok: #047857;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 6px 24px rgba(15, 23, 42, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 46rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #111a2e;
    --surface-2: #17223a;
    --ink: #e8edf6;
    --ink-2: #c3cddc;
    --muted: #93a1b5;
    --line: #23314d;
    --primary: #93b4ff;
    --primary-2: #a9c2ff;
    --primary-soft: #16244a;
    --accent: #fbbf24;
    --accent-soft: #2a2210;
    --ok: #34d399;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary-2); text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.small { font-size: .875rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
[hidden] { display: none !important; }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand b { color: var(--primary-2); font-weight: 700; }
.brand-mark { width: 30px; height: 30px; color: var(--primary); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a { display: flex; align-items: center; gap: .35rem; padding: .5rem .7rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--primary-soft); color: var(--primary); }
.nav-search span { position: absolute; left: -999px; }
.nav-toggle, .nav-burger { display: none; }
@media (max-width: 960px) {
  .nav-burger { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s; }
  .nav-burger span::before { position: absolute; top: -7px; }
  .nav-burger span::after { position: absolute; top: 7px; }
  .nav-toggle:checked + .nav-burger span { background: transparent; }
  .nav-toggle:checked + .nav-burger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-burger span::after { top: 0; transform: rotate(-45deg); }
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 44px; height: 44px; right: 1rem; margin: 0; cursor: pointer; z-index: 2; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1rem 1rem; }
  .main-nav a { padding: .8rem .75rem; font-size: 1.05rem; }
  .nav-search span { position: static; }
}

/* ---------- article */
.article { max-width: calc(var(--measure) + 2rem); padding-top: 1.25rem; padding-bottom: 3rem; }
.article.wide { max-width: 72rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: .3rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary-2); text-decoration: underline; }
.article-head h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .75rem; text-wrap: balance; }
.lead { font-size: 1.2rem; color: var(--ink-2); margin: 0 0 .75rem; }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 1.5rem; }
.meta a { color: inherit; }

.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: 1.55rem; line-height: 1.25; letter-spacing: -.01em; margin: 2.5rem 0 .75rem; text-wrap: balance; }
.prose h3 { font-size: 1.2rem; line-height: 1.3; margin: 1.75rem 0 .5rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .35rem; }
.prose img { border-radius: 10px; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: .875rem; color: var(--muted); margin-top: .4rem; }
.prose blockquote { margin: 1.5rem 0; padding: .75rem 1.25rem; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.prose iframe { max-width: 100%; }
.prose table, .table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap table { margin: 0; }
th, td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.hero-img { display: block; border-radius: var(--radius); margin: 0 0 1.5rem; }

/* ---------- komponensek */
.toc { margin: 0 0 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1.1rem; }
.toc summary { font-weight: 600; cursor: pointer; }
.toc ol { margin: .5rem 0 .25rem; padding-left: 1.3rem; }
.toc li { margin: .2rem 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.notice, .callout {
  background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary-2) 25%, transparent);
  border-radius: var(--radius); padding: .9rem 1.15rem; margin: 0 0 1.5rem;
}
.notice p, .callout p { margin: 0; }
.notice p + p, .callout p + p { margin-top: .4rem; }
.callout.warn { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.callout.ok { background: color-mix(in srgb, var(--ok) 10%, var(--bg)); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.callout strong:first-child { display: block; margin-bottom: .2rem; }

.badge { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: .1rem .45rem; border-radius: 999px; background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); vertical-align: middle; }

.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.15rem; border-radius: 12px; background: var(--primary); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid var(--primary); }
.btn:hover { background: var(--primary-2); border-color: var(--primary-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }
@media (prefers-color-scheme: dark) { .btn { color: #0b1120; } .btn:hover { color: #0b1120; } .btn-ghost { color: var(--primary); } }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: .55rem 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.link-list li:last-child { border-bottom: 0; }
.link-list a { text-decoration: none; font-weight: 500; }
.link-list a:hover { text-decoration: underline; }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.25rem 3.25rem; margin: 0 !important; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps > li::after { content: ""; position: absolute; left: 1.08rem; top: 2.4rem; bottom: .2rem; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps > li > strong:first-child { display: block; font-size: 1.08rem; }
@media (prefers-color-scheme: dark) { .steps > li::before { color: #0b1120; } }

details.faq { border: 1px solid var(--line); border-radius: 12px; padding: 0 1rem; background: var(--bg); }
details.faq + details.faq { margin-top: .6rem; }
details.faq summary { cursor: pointer; font-weight: 600; padding: .85rem 0; list-style: none; position: relative; padding-right: 1.5rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 0; top: .7rem; font-size: 1.3rem; color: var(--muted); }
details.faq[open] summary::after { content: "–"; }
details.faq > :not(summary) { margin: 0 0 1rem; }

.cols-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; }
.box h3 { margin-top: 0 !important; }
.box > :last-child { margin-bottom: 0; }

/* ---------- idővonal */
.timeline { list-style: none; padding: 0 !important; margin: 1.5rem 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 1.4rem 2rem; margin: 0 !important; display: grid; gap: .1rem .9rem; }
.tl-item::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--bg); border: 3px solid var(--muted); }
.tl-key::before { border-color: var(--primary-2); background: var(--primary-2); }
.tl-item.past { opacity: .55; }
.tl-item.past::before { border-color: var(--line); background: var(--line); }
.tl-item.current .tl-date { color: var(--accent); }
.tl-date { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.tl-time { margin-left: .4rem; font-weight: 500; color: var(--muted); }
.tl-body h3 { margin: 0 !important; font-size: 1.05rem; }
.tl-body p { margin: .2rem 0 0 !important; color: var(--ink-2); font-size: .97rem; }
@media (min-width: 720px) {
  .tl-item { grid-template-columns: 11.5rem 1fr; }
}
.source { margin-top: .5rem; }

.next-deadlines { list-style: none; padding: 0; margin: 0; }
.next-deadlines li { display: grid; grid-template-columns: 12.5rem 1fr; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.next-deadlines li:last-child { border-bottom: 0; }
.next-deadlines time { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .next-deadlines li { grid-template-columns: 1fr; gap: 0; } }

/* ---------- kártyák */
.card-grid { list-style: none; padding: 0 !important; margin: 1rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); }
.card-grid li { margin: 0 !important; }
.card { display: flex; flex-direction: column; height: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; position: relative; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--surface-2); border-radius: 0; }
.card-title { padding: .75rem .9rem 1rem; font-weight: 600; font-size: .97rem; line-height: 1.35; }
.card .badge { position: absolute; top: .6rem; left: .6rem; background: rgba(15, 23, 42, .78); color: #fff; }
.year-group h2 { margin: 2rem 0 .25rem; font-size: 1.35rem; }
.filter-box { display: flex; gap: .6rem; align-items: center; margin: 0 0 1rem; flex-wrap: wrap; }
.filter-box input, .search-box input { flex: 1; min-width: 14rem; font: inherit; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }

/* ---------- YouTube */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; margin: 0 0 1.5rem; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; border-radius: 0; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; background: none; border: 0; padding: 0; cursor: pointer; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); transition: transform .15s; }
.yt:hover .yt-play { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- kezdőlap */
.hero { background: linear-gradient(160deg, var(--primary-soft), var(--bg) 70%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.25fr 1fr; padding-top: 3.5rem; padding-bottom: 3.5rem; } }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 1rem; text-wrap: balance; }
.hero h1 span { color: var(--primary-2); }
.hero .lead { max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.countdown-card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.4rem; box-shadow: var(--shadow); }
.countdown-card h2 { font-size: 1rem; margin: 0; color: var(--muted); font-weight: 600; }
.countdown-card .cd-title { font-size: 1.2rem; font-weight: 700; margin: .2rem 0 .9rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; text-align: center; }
.countdown div { background: var(--surface); border-radius: 12px; padding: .6rem .2rem; }
.countdown b { display: block; font-size: clamp(1.5rem, 1rem + 2vw, 2.1rem); font-variant-numeric: tabular-nums; color: var(--primary); line-height: 1.1; }
.countdown span { font-size: .78rem; color: var(--muted); }
.countdown-card .cd-date { margin: .9rem 0 0; font-size: .92rem; color: var(--ink-2); }

.section { padding: 2.75rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); letter-spacing: -.015em; }
.section-head p { margin: .3rem 0 0; color: var(--muted); }
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.tile { display: block; height: 100%; padding: 1.15rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile:hover { border-color: var(--primary-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.tile .ico { width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: .7rem; font-size: 1.2rem; }
.tile h3 { margin: 0 0 .3rem; font-size: 1.08rem; }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.home-faq { max-width: 50rem; }

/* ---------- egyéb */
.related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.cta-box { margin-top: 2.5rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cta-box h2 { margin: 0 0 .3rem; font-size: 1.25rem; }
.cta-box p { margin: 0 0 1rem; color: var(--ink-2); }
.cta-box .btn { margin: 0 .4rem .4rem 0; }
.search-box { display: flex; gap: .5rem; margin: 0 0 1.5rem; }
.search-results li { padding: .8rem 0; }
.search-results small { display: block; color: var(--muted); }

/* ---------- lábléc */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 2rem; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.footer-grid > div:first-child { grid-column: span 1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--primary-2); text-decoration: underline; }
.brand-footer { margin-bottom: .5rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

@media print {
  .site-header, .site-footer, .cta-box, .related, .yt, .toc, .breadcrumbs { display: none !important; }
  body { font-size: 11pt; }
  a { color: inherit; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- folyamatábra */
.flow { list-style: none; padding: 0 !important; margin: 1.5rem 0; max-width: 40rem; }
.flow-step { position: relative; margin: 0 0 2rem !important; display: grid; grid-template-columns: 6.5rem 1fr; gap: .9rem; align-items: center; }
.flow-step:not(:last-child)::after { content: "↓"; position: absolute; left: calc(6.5rem + .9rem + 1.25rem); bottom: -1.75rem; color: var(--muted); font-size: 1.2rem; line-height: 1.5rem; }
.flow-date { font-weight: 700; color: var(--primary); text-align: right; font-variant-numeric: tabular-nums; font-size: .95rem; }
.flow-step > a { display: block; padding: .85rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.flow-step > a:hover { border-color: var(--primary-2); box-shadow: var(--shadow); }
.flow-step b { display: block; font-size: 1.05rem; }
.flow-step a > span { display: block; color: var(--muted); font-size: .93rem; margin-top: .15rem; }
.flow-key > a { border-color: var(--primary-2); background: var(--primary-soft); }
.flow-split { display: grid !important; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .5rem !important; }
.flow-split > span { display: block; background: var(--surface); border-radius: 8px; padding: .4rem .6rem; color: var(--ink-2); font-size: .88rem; }
.flow-split em { font-style: normal; font-weight: 600; display: block; color: var(--ink); }
@media (max-width: 520px) {
  .flow-step { grid-template-columns: 1fr; gap: .3rem; }
  .flow-date { text-align: left; }
  .flow-step:not(:last-child)::after { left: 1.25rem; }
  .flow-split { grid-template-columns: 1fr; }
}
td.num, th.num { white-space: nowrap; }
