/* Cikkek rovat (/cikkek) — a Pénzügy-landing vonalán: Inter, slate-színek, #00668a kiemelés.
   A menüsor/lábléc a templatemo-stílusból jön; itt csak a cikk-rész. */

.art-page {
  --art-ink: #0f172a;        /* slate-900 */
  --art-text: #334155;       /* slate-700 */
  --art-muted: #64748b;      /* slate-500 */
  --art-line: #e2e8f0;       /* slate-200 */
  --art-soft: #f8fafc;       /* slate-50 */
  --art-accent: #00668a;
  --art-accent-soft: #e0f2fe; /* sky-100 */
  --art-sky: #38bdf8;
  background: #fff;
  font-family: 'Inter', system-ui, sans-serif;
}

.art-page .art-hero,
.art-page .art-main,
.art-page .art-main h1,
.art-page .art-main h2,
.art-page .art-main h3 {
  font-family: 'Inter', system-ui, sans-serif;
}

.art-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 20px;
}

.art-wrap-wide {
  max-width: 1080px;
}

/* Olvasási csík */
.art-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1040;
}

.art-progress-bar {
  height: 100%;
  width: 0;
  background: var(--art-accent);
  transition: width 0.1s linear;
}

.art-preview-banner {
  background: #fef3c7;
  color: #92400e;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
}

/* Fejléc */
.art-hero {
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(56, 189, 248, 0.14), transparent 70%),
    linear-gradient(180deg, var(--art-soft) 0%, #fff 100%);
  border-bottom: 1px solid var(--art-line);
  /* A menüsor (sticky-wrapper) kiesik a folyásból és rálóg a fejlécre: ~90px + saját térköz. */
  padding: 136px 0 44px;
}

.art-crumbs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--art-muted);
  margin-bottom: 1.75rem;
}

.art-crumbs a {
  color: var(--art-muted);
  text-decoration: none;
}

.art-crumbs a:hover {
  color: var(--art-accent);
}

.art-chip {
  display: inline-block;
  background: var(--art-accent-soft);
  color: var(--art-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}

.art-chip-sm {
  font-size: 0.68rem;
  padding: 0.25rem 0.6rem;
}

.art-h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--art-ink);
  margin: 1rem 0 1.5rem;
}

.art-hero-lead {
  font-size: 1.15rem;
  color: var(--art-muted);
  margin: 0;
}

.art-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.art-byline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--art-line);
  padding: 5px;
}

.art-byline-name {
  font-weight: 600;
  color: var(--art-ink);
  font-size: 0.95rem;
}

.art-byline-meta {
  color: var(--art-muted);
  font-size: 0.85rem;
}

/* Törzs */
.art-main {
  padding: 48px 0 88px;
}

.art-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--art-text);
}

.art-body p {
  margin-bottom: 1.35rem;
}

.art-body strong {
  color: var(--art-ink);
  font-weight: 700;
}

.art-body h2 {
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--art-ink);
  margin: 3.25rem 0 1rem;
}

.art-lead {
  font-size: 1.3rem;
  line-height: 1.65;
  color: var(--art-ink);
  font-weight: 500;
  margin-bottom: 2.25rem;
}

.art-body h3 {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--art-ink);
  margin: 2rem 0 0.6rem;
}

.art-body ul,
.art-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.35rem;
}

.art-body li {
  margin-bottom: 0.45rem;
}

.art-body li::marker {
  color: var(--art-muted);
}

/* Illusztráció: <figure class="art-figure"><img …><figcaption>…</figcaption></figure> */
.art-figure {
  margin: 2.25rem 0;
}

.art-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--art-line);
}

.art-figure figcaption {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--art-muted);
  margin-top: 0.6rem;
}

/* Képpár (pl. előtte–utána): <figure class="art-figure art-figure-pair"><img …><img …><figcaption>…</figcaption></figure> */
.art-figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.art-figure-pair figcaption {
  grid-column: 1 / -1;
  margin-top: 0;
}

/* Álló kép: ne legyen képernyőnél magasabb */
.art-figure-portrait img {
  max-width: 560px;
  margin: 0 auto;
}

/* Kétoszlopos összevetés: <div class="art-compare"><div>…</div><div>…</div></div> */
.art-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.art-compare > div {
  background: var(--art-soft);
  border: 1px solid var(--art-line);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
}

.art-compare h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.art-compare ul {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .art-compare {
    grid-template-columns: 1fr;
  }
}

.art-note {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--art-muted);
  border-left: 3px solid var(--art-line);
  padding-left: 1rem;
}

.art-method {
  background: var(--art-soft);
  border: 1px solid var(--art-line);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--art-muted);
  margin-top: 3rem;
}

.art-body .art-method h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--art-ink);
  margin: 0 0 0.75rem;
}

.art-method ul {
  padding-left: 1.1rem;
  margin: 0;
}

/* A templatemo-stílus nagyobb betűt ad a li-knek — itt a doboz méretét öröklik. */
.art-method li {
  font-size: inherit;
  color: inherit;
}

.art-method li + li {
  margin-top: 0.35rem;
}

/* Kiemelt számok */
.art-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 2.25rem 0;
}

.art-stat {
  background: #fff;
  border: 1px solid var(--art-line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.art-stat.is-highlight {
  background: var(--art-ink);
  border-color: var(--art-ink);
}

.art-stat-value {
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--art-accent);
  font-variant-numeric: tabular-nums;
}

.art-stat-label {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--art-muted);
  margin-top: 0.45rem;
}

.art-stat.is-highlight .art-stat-value {
  color: var(--art-sky);
}

.art-stat.is-highlight .art-stat-label {
  color: #cbd5e1;
}

/* Oszlopdiagram */
.art-chart {
  background: #fff;
  border: 1px solid var(--art-line);
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.25rem;
  margin: 2.25rem 0;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.art-chart-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--art-ink);
  margin-bottom: 1.25rem;
}

.art-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.art-bar-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr 7.5rem;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.3;
}

.art-bar-label {
  color: var(--art-text);
}

.art-bar-track {
  height: 12px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.art-bar-fill {
  height: 100%;
  background: #7dd3fc;
  border-radius: 999px;
}

.art-bar-row.is-highlight .art-bar-fill {
  background: var(--art-accent);
}

.art-bar-row.is-highlight .art-bar-label,
.art-bar-row.is-highlight .art-bar-value {
  font-weight: 700;
  color: var(--art-ink);
}

.art-bar-value {
  color: var(--art-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

/* Páros mód: két adatsor soronként, közös skálán */
.art-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.8rem;
  color: var(--art-muted);
  margin: -0.5rem 0 1.25rem;
}

.art-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.art-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.55rem;
  border-radius: 999px;
}

.art-swatch--1 { background: #7dd3fc; }
.art-swatch--2 { background: var(--art-accent); }

.art-chart--paired .art-bars {
  gap: 0;
}

.art-chart--paired .art-bar-row {
  grid-template-columns: 8.5rem 1fr;
  padding: 0.7rem 0;
  border-top: 1px solid #f1f5f9;
}

.art-chart--paired .art-bar-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.art-chart--paired .art-bar-row.is-highlight {
  background: linear-gradient(90deg, var(--art-accent-soft), transparent 85%);
  border-radius: 12px;
  border-top-color: transparent;
  padding-left: 0.75rem;
  margin-left: -0.75rem;
}

.art-chart--paired .art-bar-row.is-highlight + .art-bar-row {
  border-top-color: transparent;
}

.art-bar-pair {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.art-bar-line {
  display: grid;
  grid-template-columns: 1fr 3.5rem;
  align-items: center;
  gap: 0.75rem;
}

.art-chart--paired .art-bar-track {
  height: 9px;
  background: transparent;
}

.art-chart--paired .art-bar-fill,
.art-chart--paired .art-bar-row.is-highlight .art-bar-fill {
  background: #7dd3fc;
}

.art-chart--paired .art-bar-line--2 .art-bar-fill,
.art-chart--paired .art-bar-row.is-highlight .art-bar-line--2 .art-bar-fill {
  background: var(--art-accent);
}

.art-chart--paired .art-bar-value {
  font-size: 0.82rem;
  text-align: left;
}

.art-chart--paired .art-bar-line--2 .art-bar-value {
  color: var(--art-accent);
  font-weight: 600;
}

.art-chart--paired .art-bar-row.is-highlight .art-bar-line--2 .art-bar-value {
  font-weight: 800;
}

.art-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.art-chart-caption {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--art-muted);
  border-top: 1px solid #f1f5f9;
  margin-top: 1.1rem;
  padding-top: 0.85rem;
}

@media (max-width: 575px) {
  .art-bar-row {
    grid-template-columns: 1fr auto;
    row-gap: 0.3rem;
  }

  .art-bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .art-chart--paired .art-bar-row {
    grid-template-columns: 1fr;
  }

  .art-chart--paired .art-bar-track {
    grid-column: auto;
    grid-row: auto;
  }

  .art-chart {
    padding: 1.1rem;
    border-radius: 16px;
  }
}

/* Cikk végi CTA */
.art-cta {
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(56, 189, 248, 0.35), transparent 60%),
    linear-gradient(135deg, var(--art-ink) 0%, #083344 100%);
  color: #fff;
  border-radius: 24px;
  padding: 2rem;
  margin-top: 3.5rem;
}

.art-cta-title {
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

.art-cta-text {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.65;
}

.art-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.art-cta-actions a,
.art-btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.art-cta-primary,
.art-btn {
  background: var(--art-sky);
  color: var(--art-ink);
}

.art-cta-primary:hover,
.art-btn:hover {
  background: #7dd3fc;
  color: var(--art-ink);
  transform: translateY(-1px);
}

.art-cta-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.art-cta-secondary:hover {
  border-color: #fff;
  color: #fff;
}

/* Megosztás */
.art-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--art-line);
  border-bottom: 1px solid var(--art-line);
  padding: 1.25rem 0;
  margin-top: 3rem;
}

.art-share-title {
  font-weight: 600;
  color: var(--art-ink);
}

.art-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.art-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--art-line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--art-text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.art-share-btn:hover {
  border-color: var(--art-accent);
  color: var(--art-accent);
}

/* Kártyák (lista + további cikkek) */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.art-more {
  margin-top: 3rem;
}

/* /ig: Instagram-feed jellegű rács a cikkek 4:5-ös borítóival */
.art-ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 720px;
  margin: 0 auto;
}

.art-ig-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.art-more-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--art-muted);
  margin-bottom: 1rem;
}

.art-more .art-card + .art-card {
  margin-top: 16px;
}

.art-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--art-line);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.art-card:hover {
  transform: translateY(-3px);
  border-color: #bae6fd;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.art-card-img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
}

.art-card-body {
  padding: 1.25rem 1.4rem 1.4rem;
}

.art-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--art-muted);
  margin-bottom: 0.7rem;
}

.art-card-title {
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--art-ink);
  margin-bottom: 0.5rem;
}

.art-card-text {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--art-muted);
  margin: 0;
}

/* Hamarosan-oldal */
.art-upcoming-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--art-soft);
  border: 1px solid var(--art-line);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.75rem;
}

.art-upcoming-box .bi {
  font-size: 1.6rem;
  color: var(--art-accent);
  line-height: 1;
}

.art-upcoming-title {
  font-weight: 700;
  color: var(--art-ink);
}

.art-upcoming-text {
  color: var(--art-muted);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

/* Megyetérkép (x-article.county-map) */
.art-map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.art-map-label {
  font-family: inherit;
  font-size: 26px;
  font-weight: 700;
  fill: var(--art-ink);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 5px;
  stroke-linejoin: round;
}

.art-map-label.is-dark {
  fill: #ffffff;
  stroke: rgba(0, 60, 82, 0.55);
}

.art-map-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--art-muted);
}

.art-map-scale {
  flex: 0 1 160px;
  height: 10px;
  border-radius: 999px;
}

.art-map-unit {
  margin-left: 0.25rem;
}

/* Szerző (config/article_authors.php) */
.art-byline-avatar.is-photo {
  padding: 0;
  object-fit: cover;
}

.art-author {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 1.25rem 1.4rem;
  background: var(--art-soft);
  border: 1px solid var(--art-line);
  border-radius: 16px;
}

.art-author-photo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.art-author-name {
  font-weight: 700;
  color: var(--art-ink);
}

.art-author-name a {
  color: inherit;
  text-decoration: none;
}

.art-author-role {
  color: var(--art-muted);
  font-size: 0.85rem;
}

.art-body + .art-author p,
.art-author p {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--art-text);
}

.art-author .art-author-ai {
  font-size: 0.82rem;
  color: var(--art-muted);
  font-style: italic;
}
