/* ============================================================
   VÖRÖS ÍV – prémium magazin arculat
   Aláírás-elem: a "gerinc" – vörös függőleges vonal, amely a
   hero-t és a rovatcímeket megtöri, mint egy magazin gerince.
   ============================================================ */

/* --- 1. Design tokenek ------------------------------------- */
:root {
  color-scheme: light;

  --paper:       #ffffff;
  --paper-2:     #f6f3f1;   /* meszelt sáv */
  --paper-3:     #efe9e6;
  --ink:         #17120f;   /* meleg feketés */
  --ink-soft:    #3a322e;
  --muted:       #756c67;
  --rule:        #e4ddd8;
  --signal:      #e10600;   /* tiszta, telített piros */
  --signal-deep: #a80400;   /* sötétebb piros (hover) */
  --signal-soft: #fdeceb;   /* halvány háttér a piroshoz */
  --shadow:      0 1px 2px rgba(23,18,15,.04), 0 12px 32px -18px rgba(23,18,15,.28);
  --shadow-lift: 0 2px 6px rgba(23,18,15,.06), 0 24px 48px -24px rgba(23,18,15,.35);

  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ui:      "Inter Tight", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --gap:  clamp(20px, 3vw, 34px);
  --r:    4px;              /* prémium = szinte szögletes */
  --tr:   180ms cubic-bezier(.2, .6, .2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;

  --paper:       #121010;
  --paper-2:     #1a1717;
  --paper-3:     #232020;
  --ink:         #f3eeeb;
  --ink-soft:    #d7cfca;
  --muted:       #998f89;
  --rule:        #2e2928;
  --signal:      #ff1a1a;   /* élénk piros sötét háttéren is */
  --signal-deep: #d40000;
  --signal-soft: #2b0f0d;
  --shadow:      0 1px 2px rgba(0,0,0,.4), 0 12px 32px -18px rgba(0,0,0,.8);
  --shadow-lift: 0 2px 6px rgba(0,0,0,.5), 0 24px 48px -24px rgba(0,0,0,.9);
}

/* --- 2. Alapok --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--tr), color var(--tr);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* --- 3. Fejléc --------------------------------------------- */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__date { font-variant-numeric: tabular-nums; }
.topbar__links { display: flex; gap: 18px; align-items: center; }
.topbar__links a:hover { color: var(--signal); }

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__spine { width: 3px; height: 30px; background: var(--signal); }
.logo__text {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -.015em;
  line-height: 1;
}
.logo__text em { font-style: italic; color: var(--signal); }

.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a {
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  padding: 6px 0; position: relative; color: var(--ink-soft);
  transition: color var(--tr);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--signal); transition: right var(--tr);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a.nav__cta {
  background: var(--signal);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav a.nav__cta::after { display: none; }
.nav a.nav__cta:hover { background: #c00500; color: #fff; }

.tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--rule); border-radius: var(--r);
  background: transparent; color: var(--ink);
  cursor: pointer; transition: border-color var(--tr), background var(--tr), color var(--tr);
}
.icon-btn:hover { border-color: var(--signal); color: var(--signal); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* Téma-váltó: a nap/hold ikon cserélődik */
[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }

/* Mobil menü */
.burger { display: none; }
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px clamp(16px, 4vw, 32px) 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--tr), transform var(--tr);
    box-shadow: var(--shadow);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
  .nav a::after { display: none; }
  .burger { display: inline-grid; }
}

/* --- 4. Hero: magazin főblokk (nagy + oldalsáv) -------------- */
.hero { padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--rule); }
.hero .wrap { position: relative; }
.hero__frame { display: none; }
.hero__frame.is-active {
  display: grid; gap: clamp(24px, 3vw, 40px);
  grid-template-columns: minmax(0, 1.62fr) minmax(280px, 1fr);
  align-items: start;
  animation: heroIn 420ms ease both;
}
@media (max-width: 960px) {
  .hero__frame.is-active { grid-template-columns: 1fr; }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__frame.is-active { animation: none; } }

.hero__main { min-width: 0; }

.hero__media {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--r); background: var(--paper-3);
}
.hero__media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 25%;
  transition: transform 700ms cubic-bezier(.2,.6,.2,1);
}
.hero__media:hover img { transform: scale(1.02); }

.hero__body { padding-top: 20px; border-left: 3px solid var(--signal); padding-left: 20px; margin-top: 20px; }
.hero__kicker {
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--signal); display: inline-block; margin-bottom: 10px;
}
.hero__kicker:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero__title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -.02em;
  margin: 0 0 14px;
}
.hero__title a:hover { color: var(--signal); }
.hero__lead {
  font-size: 17px; line-height: 1.55; color: var(--muted);
  margin: 0 0 16px; max-width: 58ch;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.hero__bar {
  display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(280px, 1fr);
  gap: clamp(24px, 3vw, 40px); margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 960px) { .hero__bar { grid-template-columns: 1fr; } }
.hero__bar-main { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-width: 0; }
.hero__rovat {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; white-space: nowrap;
}
.hero__dots { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hero__dot {
  width: 24px; height: 2px; border: 0; padding: 0; cursor: pointer;
  background: var(--rule); transition: background var(--tr), width var(--tr), opacity var(--tr);
}
.hero__dot:hover { background: var(--muted); }
.hero__dot.is-active { background: var(--signal); width: 32px; }

.hero__side {
  display: flex; flex-direction: column; gap: 0; min-width: 0;
  border-left: 1px solid var(--rule); padding-left: clamp(18px, 2vw, 28px);
}
@media (max-width: 960px) { .hero__side { border-left: 0; padding-left: 0; padding-top: 8px; border-top: 1px solid var(--rule); } }
.hero__side .card--hero-big { gap: 12px; margin-bottom: 22px; }
.hero__side .card--hero-big .card__media img { aspect-ratio: 16 / 10; border-radius: calc(var(--r) - 2px); }
.hero__side .card--hero-big .card__title {
  font-family: var(--display); font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.2; letter-spacing: -.01em;
}
.hero__side .card--hero-big .card__meta { font-size: 12.5px; color: var(--muted); }

.hero__more { padding-top: 20px; border-top: 1px solid var(--rule); }
.hero__more-label {
  margin: 0 0 14px; font-size: 10.5px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.hero__teasers { display: flex; flex-direction: column; gap: 0; }
.hero__teaser {
  display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.hero__teaser:last-child { border-bottom: 0; padding-bottom: 0; }
.hero__teaser:first-child { padding-top: 0; }
.hero__teaser-media {
  display: block; overflow: hidden; border-radius: calc(var(--r) - 4px);
  background: var(--paper-3); aspect-ratio: 1 / 1;
}
.hero__teaser-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 600ms cubic-bezier(.2,.6,.2,1);
}
.hero__teaser:hover .hero__teaser-media img { transform: scale(1.04); }
.hero__teaser-cat {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent, var(--signal)); margin-bottom: 5px;
}
.hero__teaser-cat:hover { text-decoration: underline; }
.hero__teaser-title {
  margin: 0; font-family: var(--display); font-size: 15px; font-weight: 500;
  line-height: 1.3; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero__teaser-title a:hover { color: var(--signal); }

.byline { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.byline strong { color: var(--ink); font-weight: 600; }
.byline .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; object-fit: cover;
  background: var(--signal-soft); color: var(--signal);
  font-size: 12px; font-weight: 700;
}

/* --- 5. Rovatcím (eyebrow + gerinc) ------------------------ */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 26px; padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.section-head h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.015em;
  margin: 0; display: flex; align-items: center; gap: 12px;
}
.section-head h2::before {
  content: ""; width: 3px; height: 1em; display: inline-block;
  background: var(--accent, var(--signal));
}
.section-head .more {
  font-size: 13px; font-weight: 600; color: var(--signal);
  letter-spacing: .02em; white-space: nowrap;
}
.section-head .more:hover { text-decoration: underline; text-underline-offset: 3px; }

.section { padding: clamp(40px, 5vw, 64px) 0; }
.section--band { background: var(--paper-2); }

/* --- 6. Kártyák -------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; gap: 14px; }
.card__media {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: var(--paper-3);
}
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; transition: transform 600ms cubic-bezier(.2,.6,.2,1); }
.card:hover .card__media img { transform: scale(1.04); }
.card__cat {
  position: absolute; left: 10px; bottom: 10px;
  background: var(--paper); color: var(--ink);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.card__cat::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, var(--signal)); margin-right: 6px; vertical-align: 1px; }
.card__title {
  font-family: var(--display); font-weight: 500;
  font-size: 21px; line-height: 1.22; letter-spacing: -.01em;
  margin: 0;
}
.card__title a:hover { color: var(--signal); }
.card__excerpt { margin: 0; font-size: 14.5px; color: var(--muted); }
.card__meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 4px; }

.card--wide { flex-direction: row; gap: 18px; align-items: flex-start; }
.card--wide .card__media { flex: 0 0 40%; }
.card--wide .card__media img { aspect-ratio: 1 / 1; }
.card--wide .card__title { font-size: 19px; }
@media (max-width: 520px) { .card--wide { flex-direction: column; } .card--wide .card__media { flex: none; width: 100%; } }

/* Kiemelt cikkek: az első nagy, a többi kicsi */
.featured { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.featured__side { display: flex; flex-direction: column; gap: 20px; }
.featured__side .card--wide + .card--wide { border-top: 1px solid var(--rule); padding-top: 20px; }
.featured .card--lead .card__title { font-size: clamp(24px, 2.4vw, 32px); }
.featured .card--lead .card__media img { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } }

/* --- 7. Elrendezés: tartalom + oldalsáv --------------------- */
.layout { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1fr) 336px; align-items: start; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } }

/* Az oldalsáv NEM tapad — hosszú tartalomnál (pl. hirdetéssel) az
   megakadt görgetés közben. Egyszerűen együtt görög az oldallal. */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.widget { border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); padding: 22px; }
.widget--flat { border: 0; padding: 0; }
.widget__title {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 8px;
}
.widget__title::before { content: ""; width: 3px; height: 12px; background: var(--signal); }

/* Kereső */
.search { display: flex; gap: 0; }
.search input {
  flex: 1; min-width: 0;
  padding: 12px 14px; font: inherit; font-size: 14px;
  border: 1px solid var(--rule); border-right: 0;
  border-radius: var(--r) 0 0 var(--r);
  background: var(--paper); color: var(--ink);
  transition: border-color var(--tr);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--signal); }
.search button {
  padding: 0 16px; border: 0; cursor: pointer;
  background: var(--signal); color: #fff;
  border-radius: 0 var(--r) var(--r) 0;
  font: inherit; font-size: 14px; font-weight: 600;
  transition: background var(--tr);
}
.search button:hover { background: var(--signal-deep); }
[data-theme="dark"] .search button { color: #fff; }

/* Legolvasottabb – rangsorolt lista (a számozás itt tényleg információ) */
.ranked { list-style: none; margin: 0; padding: 0; }
.ranked li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ranked li:last-child { border-bottom: 0; padding-bottom: 0; }
.ranked li:first-child { padding-top: 0; }
.ranked__num {
  font-family: var(--display); font-size: 26px; line-height: 1; font-weight: 500;
  color: var(--rule); flex: 0 0 auto; width: 28px;
  font-variant-numeric: tabular-nums;
  transition: color var(--tr);
}
.ranked li:hover .ranked__num { color: var(--signal); }
.ranked__body { min-width: 0; }
.ranked__title { font-size: 15px; font-weight: 500; line-height: 1.35; margin: 0 0 4px; font-family: var(--display); }
.ranked__title a:hover { color: var(--signal); }
.ranked__meta { font-size: 12px; color: var(--muted); }

/* Oldalsáv legfrissebb */
.mini { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.mini:last-child { border-bottom: 0; padding-bottom: 0; }
.mini:first-child { padding-top: 0; }
.mini img { width: 78px; height: 60px; object-fit: cover; border-radius: 2px; flex: 0 0 78px; background: var(--paper-3); }
.mini__title { font-family: var(--display); font-size: 15px; line-height: 1.3; margin: 0 0 4px; }
.mini__title a:hover { color: var(--signal); }
.mini__cat { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); margin: 0 0 3px; }
.mini__meta { font-size: 12px; color: var(--muted); margin: 0; }

.widget--rec { border-color: color-mix(in srgb, var(--signal) 25%, var(--rule)); }

/* --- Következő cikk sáv (cikkoldal alján) ------------------- */
.read-next {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; gap: 12px;
  padding: 14px clamp(16px, 4vw, 32px);
  background: var(--paper);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 32px rgba(0,0,0,.08);
  text-decoration: none; color: inherit;
  transform: translateY(100%);
  transition: transform 320ms cubic-bezier(.2,.6,.2,1);
}
.read-next.is-visible { transform: none; }
.read-next:hover { color: var(--signal); }
.read-next__label {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--signal);
}
.read-next__title {
  flex: 1; min-width: 0;
  font-family: var(--display); font-size: 15px; font-weight: 500; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.read-next__arrow { flex: 0 0 auto; font-size: 18px; color: var(--signal); }
@media (max-width: 620px) {
  .read-next { padding: 12px 16px; gap: 8px; }
  .read-next__label { display: none; }
  .read-next__title { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .read-next { transition: none; }
}

.mini__meta { font-size: 12px; color: var(--muted); }

/* Címkefelhő */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 13px; padding: 6px 11px;
  border: 1px solid var(--rule); border-radius: 999px;
  color: var(--ink-soft); background: transparent;
  transition: all var(--tr);
}
.tag:hover { border-color: var(--signal); color: var(--signal); background: var(--signal-soft); }
.tag--lg { font-size: 14px; padding: 8px 14px; }
.tag em { font-style: normal; color: var(--muted); margin-left: 4px; font-size: 11px; }

/* Kategóriacsempék */
.cats { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } }
.cat {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 18px; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--paper);
  position: relative; overflow: hidden;
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.cat::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent, var(--signal)); transform: scaleY(0); transform-origin: top;
  transition: transform var(--tr);
}
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.cat:hover::before { transform: scaleY(1); }
.cat__name { font-family: var(--display); font-size: 18px; font-weight: 500; }
.cat__count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* --- 8. Cikkoldal ------------------------------------------ */
.article-hero { padding: clamp(28px, 4vw, 48px) 0 0; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--signal); }

.article-head { max-width: 780px; }
.article-head__cat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--signal); margin-bottom: 16px;
}
.article-head__cat::before { content: ""; width: 18px; height: 2px; background: var(--signal); }
.article-head h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(30px, 4vw, 50px); line-height: 1.06; letter-spacing: -.02em;
  margin: 0 0 18px;
}
.article-head__sub {
  font-family: var(--display); font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45;
  color: var(--ink-soft); margin: 0 0 26px;
}
.article-head__meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-size: 13.5px; color: var(--muted);
}

.cover { margin: clamp(26px, 3vw, 40px) 0; }
.cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.cover figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--signal); }

/* Cikkszöveg */
.prose { font-family: var(--display); font-size: 19px; line-height: 1.72; color: var(--ink-soft); max-width: 72ch; }
.prose > p:first-of-type::first-letter {
  float: left; font-size: 3.4em; line-height: .86; font-weight: 600;
  margin: 4px 12px 0 0; color: var(--signal);
}
.prose p { margin: 0 0 1.25em; }
.prose h2 {
  font-size: 1.5em; font-weight: 600; line-height: 1.2; letter-spacing: -.01em;
  color: var(--ink); margin: 1.8em 0 .6em;
  padding-left: 14px; border-left: 3px solid var(--signal);
}
.prose h3 { font-size: 1.22em; font-weight: 600; color: var(--ink); margin: 1.6em 0 .5em; }
.prose a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--signal-deep); }
.prose img { border-radius: var(--r); margin: 1.6em 0; width: 100%; }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--signal);
  font-style: italic; font-size: 1.12em; color: var(--ink);
}
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--signal); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-family: var(--ui); font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose code { font-family: ui-monospace, monospace; font-size: .85em; background: var(--paper-2); padding: 2px 6px; border-radius: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: 15px; margin: 1.6em 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 600; color: var(--ink); }

/* Cikk lábléc: címkék + megosztás */
.article-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }

.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  margin-top: 36px; padding: 24px;
  background: var(--paper-2); border-radius: var(--r);
  border-left: 3px solid var(--signal);
}
.author-box__avatar-link { flex: 0 0 auto; text-decoration: none; }
.author-box .avatar--round,
.author-box .avatar {
  width: 64px; height: 64px; font-size: 18px;
  border-radius: 50%; object-fit: cover;
}
.author-box__body { min-width: 0; }
.author-box__name { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 0 0 4px; }
.author-box__name a:hover { color: var(--signal); }
.author-box__status { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); margin: 0 0 8px; font-weight: 600; }
.author-box__bio { font-size: 14.5px; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.author-box__link { font-size: 14px; font-weight: 600; color: var(--signal); text-decoration: none; }
.author-box__link:hover { text-decoration: underline; }

/* --- Instagram-stílusú szerzői profil ----------------------- */
.page-insta .ticker { display: none; }
.page-insta main#tartalom { padding-bottom: 0; }

.insta {
  background: var(--paper);
  padding: clamp(24px, 4vw, 36px) 0 clamp(48px, 6vw, 72px);
}
.insta__shell {
  width: min(935px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 20px);
}

.insta__header {
  display: flex;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  margin-bottom: 44px;
}
@media (max-width: 735px) {
  .insta__header {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    margin-bottom: 32px;
  }
}

.insta__avatar-ring {
  flex: 0 0 auto;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.insta__avatar {
  display: block;
  width: clamp(86px, 22vw, 150px);
  height: clamp(86px, 22vw, 150px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--paper);
  background: var(--paper-2);
}
.insta__avatar--initials {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 500;
  color: var(--ink);
}

.insta__info { flex: 1; min-width: 0; }
.insta__title-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
@media (max-width: 735px) {
  .insta__title-row { justify-content: center; margin-bottom: 12px; }
}
.insta__username {
  font-family: var(--ui);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 300;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -.01em;
}

.insta__stats {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  gap: clamp(24px, 5vw, 40px);
}
@media (max-width: 735px) { .insta__stats { justify-content: center; } }
.insta__stats li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 16px;
  line-height: 1;
}
.insta__stats strong {
  font-weight: 600;
  color: var(--ink);
}
.insta__stats span {
  color: var(--ink);
  font-weight: 400;
}

.insta__fullname {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}
.insta__bio {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 46ch;
}
@media (max-width: 735px) { .insta__bio { margin-inline: auto; } }
.insta__link {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.insta__link a { color: var(--signal); text-decoration: none; }
.insta__link a:hover { text-decoration: underline; }

.insta__tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--rule);
  margin-bottom: 0;
}
.insta__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  margin: 0 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid transparent;
  margin-top: -1px;
}
.insta__tab svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.insta__tab.is-active {
  color: var(--ink);
  border-top-color: var(--ink);
}
[data-theme="dark"] .insta__tab.is-active { border-top-color: var(--ink); }

.insta__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 0;
}
@media (max-width: 735px) {
  .insta__grid { gap: 2px; }
}
.insta__cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-3);
  display: block;
}
.insta__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.insta__cell-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  opacity: 0;
  transition: opacity 180ms ease;
}
.insta__cell:hover .insta__cell-hover,
.insta__cell:focus-visible .insta__cell-hover { opacity: 1; }
.insta__cell-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
}
.insta__cell-stat svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.insta__pager {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.insta__empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}
.insta__empty svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  margin-bottom: 12px;
  opacity: .5;
}
.insta__empty p { margin: 0; font-size: 15px; }


/* Előző / következő */
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; margin-top: 40px; }
@media (max-width: 620px) { .pn { grid-template-columns: 1fr; } }
.pn__item { background: var(--paper); padding: 22px; transition: background var(--tr); }
.pn__item:hover { background: var(--paper-2); }
.pn__item--next { text-align: right; }
.pn__label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); margin-bottom: 8px; }
.pn__title { font-family: var(--display); font-size: 17px; line-height: 1.3; margin: 0; }
.pn__empty { background: var(--paper-2); }

/* --- 9. Lista- és keresőoldal ------------------------------- */
.page-head { padding: clamp(32px, 4vw, 56px) 0 0; }
.page-head__eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--signal); }
.page-head h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.02em; line-height: 1.08;
  margin: 12px 0 0; display: flex; align-items: center; gap: 14px;
}
.page-head h1::before { content: ""; width: 3px; height: .9em; background: var(--accent, var(--signal)); }
.page-head__lead { color: var(--muted); max-width: 62ch; margin: 14px 0 0; font-size: 16.5px; }
.page-head__count { font-size: 13px; color: var(--muted); margin-top: 14px; }

.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: var(--r);
  font-size: 14px; font-variant-numeric: tabular-nums;
  transition: all var(--tr);
}
.pagination a:hover { border-color: var(--signal); color: var(--signal); }
.pagination .is-current { background: var(--signal); border-color: var(--signal); color: #fff; font-weight: 600; }
[data-theme="dark"] .pagination .is-current { color: #fff; }
.pagination .gap { border: 0; color: var(--muted); }

.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.empty__title { font-family: var(--display); font-size: 24px; color: var(--ink); margin: 0 0 8px; }

/* --- 10. Lábléc -------------------------------------------- */
.footer { border-top: 1px solid var(--rule); background: var(--paper-2); margin-top: clamp(48px, 6vw, 88px); padding: clamp(40px, 5vw, 64px) 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--gap); }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__about { max-width: 42ch; color: var(--muted); font-size: 14.5px; }
.footer h3 { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.footer a:hover { color: var(--signal); }
.footer__bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}

/* --- 11. Rendszerüzenetek ----------------------------------- */
.flash { padding: 14px 18px; border-radius: var(--r); margin: 20px 0; font-size: 14.5px; border-left: 3px solid; }
.flash--success { background: var(--signal-soft); border-color: var(--signal); color: var(--ink); }
.flash--error { background: var(--signal-soft); border-color: var(--signal-deep); color: var(--ink); }

/* Olvasás-jelző a cikkoldal tetején */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--signal); z-index: 100; transition: width 80ms linear; }


/* --- 12. Hirdetések ---------------------------------------- */
.ad {
  display: block;
  margin: clamp(28px, 4vw, 44px) auto;
  text-align: center;
}

/* Szöveg a hirdetés fölött (az adminban írható) */
.ad__text {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.ad__label {
  display: block;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}

.ad__link { display: block; }

/* A KULCS: a kép soha nem nő a saját méretén és a helyén túl.
   Enélkül egy 2000 px széles feltöltött kép szétfeszítené az oldalt. */
.ad__media {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: var(--r);
  border: 1px solid var(--rule);
}

.ad__embed { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.ad__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--r); }
.ad__html { max-width: 100%; overflow: hidden; }
.ad__html img, .ad__html iframe { max-width: 100%; }

/* Helyenkénti méretkorlát */
.ad--home_top,
.ad--header,
.ad--footer {
  max-width: 970px;                 /* klasszikus leaderboard szélesség */
  padding-inline: clamp(16px, 4vw, 32px);
}
.ad--home_top .ad__media,
.ad--header .ad__media,
.ad--footer .ad__media { max-width: 970px; }

.ad--article_top,
.ad--article_bottom {
  max-width: 100%;
  margin-inline: 0;
  text-align: left;
}
.ad--article_top .ad__media,
.ad--article_bottom .ad__media { max-width: 640px; margin: 0; }

/* Oldalsáv: pontosan úgy néz ki, mint a többi widget */
.ad--sidebar {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--paper);
  text-align: center;
}
.ad--sidebar .ad__media { width: 100%; max-width: 100%; height: auto; max-height: 260px; object-fit: contain; }
.ad--sidebar .ad__text { font-size: 14px; }
.ad--sidebar .ad__embed { aspect-ratio: 16 / 9; }

/* Kisebb oldalsáv banner: fixebb magasság, kevésbé domináns */
.ad--sidebar_small {
  margin: 18px 0 0;
  padding: 14px 14px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--paper);
  text-align: center;
}
.ad--sidebar_small .ad__label { margin-bottom: 6px; }
.ad--sidebar_small .ad__text { font-size: 13px; margin-bottom: 6px; }
.ad--sidebar_small .ad__media { width: 100%; max-width: 100%; height: auto; max-height: 160px; object-fit: contain; }
.ad--sidebar_small .ad__embed { aspect-ratio: 16 / 9; }

/* --- 13. Hírsáv (felül futó friss hírek) -------------------- */
.ticker {
  background: #17120f;
  color: #f6f3f1;
  border-bottom: 1px solid #17120f;
  overflow: hidden;
}
[data-theme="dark"] .ticker { background: #1e0f0e; color: #f3eeeb; border-bottom-color: #2e2928; }

.ticker__inner { display: flex; align-items: center; gap: 16px; min-height: 44px; }

.ticker__label {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  background: var(--signal); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 2px; white-space: nowrap;
}
.ticker__label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: tickerPulse 1.6s ease-in-out infinite;
}
@keyframes tickerPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .ticker__label::before { animation: none; } }

.ticker__viewport { position: relative; flex: 1; min-width: 0; height: 24px; }
.ticker__item {
  position: absolute; inset: 0;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(100%);
  transition: opacity 400ms ease, transform 400ms cubic-bezier(.2,.6,.2,1);
  pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ticker__item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.ticker__item.is-leaving { opacity: 0; transform: translateY(-100%); }

.ticker__item a, .ticker__item span {
  font-size: 14.5px; font-weight: 500; color: inherit;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ticker__item a:hover { color: var(--signal); }
[data-theme="dark"] .ticker__item a:hover { color: #fff; text-decoration: underline; }

.ticker__item em {
  font-style: normal; font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--signal); margin-right: 8px;
}
[data-theme="dark"] .ticker__item em { color: rgba(255,255,255,.75); }

.ticker__nav { flex: 0 0 auto; display: flex; gap: 2px; }
.ticker__btn {
  width: 26px; height: 26px; display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(255,255,255,.2);
  color: inherit; cursor: pointer; border-radius: 2px;
  font-size: 16px; line-height: 1; padding: 0;
  transition: border-color var(--tr), background var(--tr);
}
.ticker__btn:hover { border-color: var(--signal); background: var(--signal); color: #fff; }

@media (max-width: 700px) {
  .ticker__nav { display: none; }
  .ticker__label { font-size: 10px; padding: 5px 9px; letter-spacing: .1em; }
  .ticker__item a, .ticker__item span { font-size: 13.5px; }
  .ticker__item em { display: none; }
}


/* Beágyazott videó a cikkben */
.prose .embed { position: relative; aspect-ratio: 16 / 9; margin: 1.8em 0; }
.prose .embed iframe, .prose .embed video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: var(--r);
}

/* --- Felugró: értesítés + kezdőképernyő -------------------- */
body.engage-open { overflow: hidden; }

.engage {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: end center;
  padding: 0 0 max(12px, env(safe-area-inset-bottom));
  visibility: hidden;
  opacity: 0;
  transition: opacity 280ms ease, visibility 280ms ease;
}
.engage.is-visible {
  visibility: visible;
  opacity: 1;
}
.engage__backdrop {
  grid-area: 1 / 1;
  place-self: stretch;
  width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0;
  background: rgba(23, 18, 15, .5);
  cursor: pointer;
  z-index: 0;
}
.engage__sheet {
  grid-area: 1 / 1;
  z-index: 1;
  position: relative;
  width: min(480px, calc(100% - 24px));
  max-height: min(90vh, 640px);
  overflow-y: auto;
  padding: 28px 24px 20px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  transform: translateY(24px);
  transition: transform 320ms cubic-bezier(.2, .6, .2, 1);
  pointer-events: auto;
}
@media (min-width: 520px) {
  .engage { place-items: center; padding: 20px; }
}
.engage.is-visible .engage__sheet { transform: none; }
.engage__close {
  position: absolute; top: 12px; right: 14px;
  width: 36px; height: 36px; border: 0; background: transparent;
  font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
  z-index: 2;
}
.engage__icon { text-align: center; margin-bottom: 12px; }
.engage__icon img { border-radius: 14px; box-shadow: var(--shadow); }
.engage__title {
  font-family: var(--display); font-size: 1.35rem; font-weight: 600;
  text-align: center; margin: 0 0 8px; line-height: 1.25;
}
.engage__lead {
  text-align: center; color: var(--muted); font-size: 14.5px;
  line-height: 1.5; margin: 0 0 20px;
}
.engage__blocks { display: flex; flex-direction: column; gap: 12px; }
.engage__block {
  padding: 14px; border: 1px solid var(--rule);
  border-radius: var(--r); background: var(--paper-2);
}
.engage__block--ios.is-highlight { border-color: var(--signal); box-shadow: 0 0 0 2px var(--signal-soft); }
.engage__block-head { display: flex; gap: 12px; margin-bottom: 12px; }
.engage__block-head svg {
  flex: 0 0 22px; width: 22px; height: 22px;
  fill: none; stroke: var(--signal); stroke-width: 1.8;
}
.engage__block-head h3 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.engage__block-head p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.4; }
.engage__btn {
  display: block; width: 100%; padding: 11px 16px;
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--paper); font-family: var(--ui); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background var(--tr), border-color var(--tr);
}
.engage__btn:hover { border-color: var(--signal); }
.engage__btn--primary {
  background: var(--signal); border-color: var(--signal); color: #fff;
}
.engage__btn--primary:hover { background: var(--signal-deep); border-color: var(--signal-deep); color: #fff; }
.engage__later {
  display: block; width: 100%; margin-top: 14px; padding: 8px;
  border: 0; background: transparent; color: var(--muted);
  font-size: 13px; cursor: pointer; text-decoration: underline;
}

.engage__icon--nl {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: var(--signal-soft);
  color: var(--signal);
}
.engage__eyebrow {
  margin: 0 0 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
}
.engage__form {
  margin-top: 4px;
}
.engage__btn--block {
  width: 100%;
}
.engage__sheet .nl-subscribe__msg {
  text-align: center;
  font-size: 13px;
}
