/*
Theme Name: IAEC Executive Journal
Theme URI: https://iaec.online
Author: Peter Stasko
Description: Executive editorial theme for IAEC.online — concept 01 (P-110). White header, navy hero, themed columns, Most Read rail, subscribe. Preserves existing URLs, Rank Math and the automated publishing pipeline.
Version: 1.2.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: iaec-executive
*/

:root {
  --navy: #0b1f3a;
  --navy-2: #10294a;
  --navy-3: #16345c;
  --gold: #c6a34a;
  --gold-soft: #e6d5a8;
  --paper: #faf8f4;
  --white: #ffffff;
  --ink: #16181d;
  --ink-soft: #4a5160;
  --line: #e3ddd0;
  --grey: #94a3b8;
  --serif: Georgia, 'Times New Roman', 'Liberation Serif', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --maxw: 1240px;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--serif); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Viacriadkové orezanie dlhých titulkov (Petrova pripomienka 1) */
.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }

/* ---------- Header (biely, navy logo — podľa návrhu) ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 66px; flex-wrap: wrap; padding: .55rem 0; }
.site-brand { display: flex; align-items: center; gap: .8rem; margin-right: auto; }
.site-brand .logo { font-family: var(--serif); font-weight: 700; font-size: 1.75rem; letter-spacing: .02em; color: var(--navy); }
.site-brand .divider { width: 1px; height: 26px; background: var(--line); }
.site-brand .tagline { font-family: var(--sans); font-size: .74rem; color: var(--ink-soft); letter-spacing: .02em; display: none; }
.main-nav ul { display: flex; list-style: none; gap: .1rem; flex-wrap: wrap; }
.main-nav a { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--navy); padding: .55rem .65rem; display: inline-block; }
.main-nav a:hover { color: var(--gold); }
.header-cta { font-family: var(--sans); font-weight: 700; font-size: .84rem; background: var(--gold); color: var(--navy) !important; padding: .65rem 1.15rem; border-radius: var(--radius); letter-spacing: .02em; white-space: nowrap; }
.header-cta:hover { background: var(--gold-soft); }
.header-search form { display: flex; }
.header-search input[type=search] { font-family: var(--sans); font-size: .88rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); background: var(--paper); color: var(--ink); width: 150px; }
.header-search input[type=search]::placeholder { color: var(--grey); }
.header-search button { font-family: var(--sans); background: var(--navy); color: var(--gold-soft); border: 1px solid var(--navy); padding: .5rem .7rem; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; }

/* ---------- Hero (navy, editorial výrok + foto s prelivom) ---------- */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 46rem) 1fr; align-items: stretch; min-height: 380px; }
.hero-copy { padding: 3rem 0 3rem; position: relative; z-index: 2; }
.kicker { font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.kicker .qmark { font-family: var(--serif); font-size: 1.6rem; line-height: 0; vertical-align: -6px; margin-right: .35rem; }
.hero h1, .hero .hero-title { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; font-weight: 700; margin-bottom: 1rem; }
.hero .gold-rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 0 0 1.1rem; }
.hero .dek { font-size: 1.08rem; color: #c9d3e2; margin-bottom: 1.5rem; max-width: 32em; }
.btn-gold { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: .92rem; background: var(--gold); color: var(--navy); padding: .75rem 1.35rem; border-radius: var(--radius); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy); }
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; z-index: 1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(11,31,58,.55) 28%, rgba(11,31,58,.12) 60%); z-index: 1; }

/* Slim navy pás pod hero (podľa návrhu) */
.hero-strip { background: var(--navy-2); border-top: 1px solid var(--navy-3); position: relative; z-index: 2; }
.hero-strip ul { list-style: none; display: flex; flex-wrap: wrap; }
.hero-strip li { flex: 1 1 auto; display: flex; }
.hero-strip li + li { border-left: 1px solid var(--navy-3); }
.hero-strip a { font-family: var(--sans); font-size: .84rem; font-weight: 600; color: #dfe6f0; padding: .85rem 1rem; text-align: center; flex: 1; }
.hero-strip a:hover { color: var(--gold-soft); }
.hero-strip .strip-count { color: var(--gold); }

/* ---------- Filterbar kategórií (štýl peterstasko.online/blog) ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 1.5rem 0 0; }
.filterbar a { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--white); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; transition: border-color .15s, background .15s, color .15s; }
.filterbar a:hover { border-color: var(--gold); color: var(--navy); }
.filterbar a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filterbar .count { color: var(--grey); font-weight: 600; margin-left: 4px; }
.filterbar a.active .count { color: var(--gold); }

/* ---------- Sekcie a stĺpce ---------- */
.section { padding: 2.5rem 0; }
.col-head { font-family: var(--sans); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); padding-bottom: .5rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); position: relative; }
.col-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 44px; height: 3px; background: var(--gold); }
.col-head a { color: inherit; }

.home-columns { display: grid; grid-template-columns: 1fr 1fr 1fr 0.9fr; gap: 2rem; align-items: start; }

/* Zvislá karta (obrázok hore) */
.vcard { margin-bottom: 1.6rem; }
.vcard .thumb { border-radius: var(--radius); overflow: hidden; background: var(--navy-2); margin-bottom: .75rem; }
.vcard .thumb img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.vcard .cat { font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); display: inline-block; margin-bottom: .3rem; }
.vcard h3 { font-size: 1.08rem; line-height: 1.32; margin-bottom: .4rem; }
.vcard h3 a { color: var(--ink); }
.vcard h3 a:hover { color: var(--navy-3); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.vcard .excerpt { font-size: .9rem; color: var(--ink-soft); margin-bottom: .35rem; }
.vcard .meta { font-family: var(--sans); font-size: .74rem; color: var(--grey); }

/* Most Read rail (podľa návrhu: mini riadky s náhľadom) */
.rail-box { background: var(--white); }
.rail-list { list-style: none; }
.rail-list li { display: grid; grid-template-columns: 64px 1fr; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.rail-list li:last-child { border-bottom: 0; }
.rail-list .rthumb { border-radius: 4px; overflow: hidden; }
.rail-list .rthumb img { aspect-ratio: 1 / 1; object-fit: cover; width: 64px; height: 64px; }
.rail-list h4 { font-size: .92rem; line-height: 1.35; font-weight: 600; }
.rail-list h4 a { color: var(--ink); }
.rail-list h4 a:hover { color: var(--navy-3); }
.rail-list .meta { font-family: var(--sans); font-size: .72rem; color: var(--grey); margin-top: .2rem; }

/* Series band */
.series-band { background: var(--navy); color: var(--white); }
.series-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--gold); margin-bottom: 1.4rem; padding-bottom: .5rem; }
.series-head h2 { font-family: var(--sans); font-size: .92rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); }
.series-head .more { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: #c9d3e2; }
.series-band .series-desc { color: #c9d3e2; max-width: 46em; margin-bottom: 1.5rem; }
.series-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.series-cards .s-card { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--radius); padding: 1.1rem; }
.series-cards .s-card h3 { font-size: 1rem; line-height: 1.35; margin-bottom: .5rem; }
.series-cards .s-card h3 a { color: var(--white); }
.series-cards .s-card h3 a:hover { color: var(--gold-soft); }
.series-cards .meta { font-family: var(--sans); font-size: .74rem; color: #93a2b8; }

/* ---------- About the Author (navy) + IAEC Insights subscribe (svetlý) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.author-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 1.75rem; display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; align-items: center; }
.author-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.author-card .k { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.author-card h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.author-card p { font-size: .92rem; color: #c9d3e2; margin-bottom: .5rem; }
.author-card .more { font-family: var(--sans); font-size: .85rem; font-weight: 700; color: var(--gold); }
.author-card .more:hover { color: var(--gold-soft); }

.subscribe-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: grid; grid-template-columns: 72px 1fr; gap: 1.25rem; align-items: center; }
.subscribe-card .icon { width: 72px; height: 72px; border-radius: 50%; background: var(--navy); color: var(--gold-soft); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.subscribe-card .k { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.subscribe-card h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.subscribe-card p { font-size: .92rem; color: var(--ink-soft); margin-bottom: .8rem; }
.subscribe-form { display: flex; max-width: 430px; }
.subscribe-form input[type=email] { flex: 1; font-family: var(--sans); font-size: .9rem; padding: .7rem .9rem; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--white); }
.subscribe-form button { font-family: var(--sans); font-weight: 700; font-size: .9rem; background: var(--gold); color: var(--navy); border: 0; padding: .7rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; }
.subscribe-form button:hover { background: var(--gold-soft); }
.subscribe-note { font-family: var(--sans); font-size: .74rem; color: var(--grey); margin-top: .5rem; }
.subscribe-msg { font-family: var(--sans); font-size: .85rem; margin-top: .5rem; }
.subscribe-msg.ok { color: #1a7f37; }
.subscribe-msg.err { color: #b42318; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* grid deti sa musia vedieť zmenšiť pod obsahovú min-šírku (mobil) */
.duo, .author-card, .subscribe-card { min-width: 0; }
.author-card > div, .subscribe-card > div { min-width: 0; }
.subscribe-form input[type=email] { min-width: 0; }

/* ---------- Single article ---------- */
.article-header { background: var(--navy); color: var(--white); padding: 2.5rem 0 2.25rem; }
.article-header .wrap { max-width: 860px; }
.article-header h1 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.22; margin-bottom: .9rem; }
.article-header .dek { color: #c9d3e2; font-size: 1.05rem; margin-bottom: 1rem; }
.article-header .byline { font-family: var(--sans); font-size: .82rem; color: #93a2b8; }
.article-header .byline strong { color: var(--gold-soft); }
.article-feature { max-width: 860px; margin: 2rem auto 0; padding: 0 1.25rem; }
.article-feature img { border-radius: var(--radius); box-shadow: 0 10px 28px rgba(11,31,58,.16); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.article-body { max-width: 860px; margin: 0 auto; padding: 2rem 1.25rem 1rem; }
.article-body > * + * { margin-top: 1.1rem; }
.article-body h2 { font-size: 1.5rem; line-height: 1.25; margin-top: 2.2rem; color: var(--navy); }
.article-body h3 { font-size: 1.2rem; margin-top: 1.8rem; color: var(--navy); }
.article-body p, .article-body li { max-width: 70ch; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body blockquote { border-left: 3px solid var(--gold); padding: .35rem 0 .35rem 1.1rem; color: var(--ink-soft); font-style: italic; }
.article-body table { border-collapse: collapse; width: 100%; font-size: .92rem; font-family: var(--sans); }
.article-body th, .article-body td { border: 1px solid var(--line); padding: .5rem .65rem; text-align: left; }
.article-body th { background: var(--navy); color: var(--white); }
.article-body img { border-radius: var(--radius); }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.article-body em, .article-body a { word-break: break-word; }
.article-footer { max-width: 860px; margin: 0 auto; padding: 0 1.25rem 2.5rem; }
.article-footer .author-card { margin-top: 2rem; }
.related { margin-top: 2.5rem; }
.related h2 { font-family: var(--sans); font-size: .88rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--navy); border-bottom: 1px solid var(--line); padding-bottom: .5rem; margin-bottom: 1.2rem; position: relative; }
.related h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 44px; height: 3px; background: var(--gold); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.related-grid .r-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.related-grid .r-card .pad { padding: .9rem; }
.related-grid img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.related-grid h3 { font-size: .96rem; line-height: 1.35; }
.related-grid h3 a { color: var(--ink); }
.related-grid h3 a:hover { color: var(--navy-3); }

/* ---------- Archívy / hub ---------- */
.archive-header { background: var(--navy); color: var(--white); padding: 2rem 0; }
.archive-header h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .4rem; }
.archive-header .desc { color: #c9d3e2; max-width: 50em; }
.archive-header .count { font-family: var(--sans); font-size: .8rem; color: var(--gold-soft); margin-top: .5rem; }
.archive-list { padding: 1rem 0 2.25rem; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem 2rem; padding-top: 1.75rem; }

/* Pagination */
.pagination { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 2rem; font-family: var(--sans); }
.pagination .page-numbers { padding: .5rem .85rem; border: 1px solid var(--line); background: var(--white); color: var(--navy); border-radius: var(--radius); font-size: .88rem; font-weight: 600; min-width: 40px; text-align: center; }
.pagination .page-numbers.current { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination .page-numbers:hover { border-color: var(--gold); }

/* Search page */
.search-hero { background: var(--navy); padding: 2rem 0; }
.search-hero h1 { color: var(--white); font-size: 1.4rem; margin-bottom: 1rem; }
.search-hero form { display: flex; max-width: 620px; }
.search-hero input[type=search] { flex: 1; font-size: 1rem; padding: .8rem 1rem; border: 1px solid var(--navy-3); border-radius: var(--radius) 0 0 var(--radius); }
.search-hero button { font-family: var(--sans); font-weight: 700; background: var(--gold); color: var(--navy); border: 0; padding: .8rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c4d6; margin-top: 3rem; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding: 2.5rem 0; }
.site-footer .logo { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; color: var(--white); margin-bottom: .6rem; }
.site-footer .logo span { color: var(--gold); }
.site-footer p { font-size: .9rem; max-width: 34em; }
.site-footer h2 { font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #dfe6f0; font-family: var(--sans); font-size: .88rem; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid var(--navy-3); padding: 1.1rem 0; font-family: var(--sans); font-size: .78rem; color: #8093ab; }

/* ---------- Responsive ---------- */
@media (min-width: 980px) { .site-brand .tagline { display: inline; } }
@media (max-width: 1100px) {
  .home-columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 2.25rem 0; }
  .hero-photo { position: relative; width: 100%; height: 240px; order: -1; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(11,31,58,.15) 55%, var(--navy) 100%); }
  .series-cards, .related-grid, .archive-grid { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
  .header-search { order: 5; width: 100%; }
  .header-search input[type=search] { width: 100%; flex: 1; }
}
@media (max-width: 600px) {
  .home-columns, .series-cards, .related-grid, .archive-grid { grid-template-columns: 1fr; }
  .author-card, .subscribe-card { grid-template-columns: 1fr; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .main-nav { display: none; }
  .hero-strip a { font-size: .78rem; padding: .7rem .5rem; }
}


/* ==========================================================================
   IAEC — obohatená štruktúra článku (P-111)
   Key takeaways · pull-quote · dátové schémy · fotky v tele · tabuľky
   Mobile-first: všetko sa preleje, písmo zostáva v reálnej veľkosti.
   ========================================================================== */

/* ── fotka v tele článku ─────────────────────────────────────────────────── */
.article-body .iaec-photo { margin: 2rem 0; }
/* Knižnica je natívne na výšku (896×1195). Pevný pomer + orez z nej urobí
   pokojný vodorovný pás — rovnaký vo všetkých článkoch, bez skokov layoutu. */
.article-body .iaec-photo img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 10; object-fit: cover; object-position: center 28%;
  border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--paper);
}
@media (max-width: 480px) {
  .article-body .iaec-photo img { aspect-ratio: 4 / 3; }
}
.article-body .iaec-photo.wide {
  /* mierne presahuje textový stĺpec na širokých obrazovkách */
  margin-left: calc(-1 * clamp(0px, (100vw - 860px) / 2 - 1.25rem, 90px));
  margin-right: calc(-1 * clamp(0px, (100vw - 860px) / 2 - 1.25rem, 90px));
}
.article-body figcaption {
  margin-top: .55rem; font-family: var(--sans); font-size: .82rem;
  line-height: 1.5; color: var(--ink-soft); max-width: 70ch;
}

/* ── spoločný rámec dátových schém ───────────────────────────────────────── */
.article-body .iaec-fig {
  margin: 2.1rem 0; padding: 1.35rem 1.25rem 1.15rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); font-family: var(--sans);
}
.article-body .iaec-fig .iaec-fig-title {
  margin: 0 0 1rem; font-weight: 700; font-size: .95rem; line-height: 1.35;
  letter-spacing: .01em; color: var(--navy); max-width: none;
}
.article-body .iaec-fig figcaption { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.article-body .iaec-fig ul, .article-body .iaec-fig ol { padding: 0; margin: 0; list-style: none; }
.article-body .iaec-fig li { max-width: none; }

/* ── fig_flow: procesný tok ──────────────────────────────────────────────── */
.article-body .iaec-flow .flow { display: grid; gap: .55rem; counter-reset: none; }
.article-body .iaec-flow .flow li {
  position: relative; display: grid; grid-template-columns: 2.3rem 1fr;
  gap: .1rem .75rem; align-items: baseline;
  padding: .7rem .85rem .7rem .6rem; background: var(--white);
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 4px;
}
.article-body .iaec-flow .num {
  grid-row: 1 / span 2; font-size: .95rem; font-weight: 700; color: var(--gold);
  font-variant-numeric: tabular-nums; align-self: center;
}
.article-body .iaec-flow .lab { font-weight: 600; font-size: .93rem; color: var(--navy); line-height: 1.4; }
.article-body .iaec-flow .n { font-size: .84rem; color: var(--ink-soft); line-height: 1.5; }
/* šípka medzi krokmi */
.article-body .iaec-flow .flow li + li::before {
  content: ""; position: absolute; left: 1.15rem; top: -.55rem; height: .55rem;
  border-left: 2px dotted var(--gold);
}

/* ── fig_compare: dva stĺpce proti sebe ──────────────────────────────────── */
.article-body .iaec-compare .cmp { display: grid; gap: .75rem; }
.article-body .iaec-compare .col {
  padding: .95rem 1rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 4px;
}
.article-body .iaec-compare .col.a { border-top: 3px solid var(--grey); }
.article-body .iaec-compare .col.b { border-top: 3px solid var(--gold); }
.article-body .iaec-compare .ch {
  margin: 0 0 .6rem; font-weight: 700; font-size: .8rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--navy); max-width: none;
}
.article-body .iaec-compare .col.a .ch { color: var(--ink-soft); }
.article-body .iaec-compare li {
  position: relative; padding-left: 1.05rem; font-size: .89rem;
  line-height: 1.55; color: var(--ink);
}
.article-body .iaec-compare li + li { margin-top: .45rem; }
.article-body .iaec-compare li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .4rem; height: .4rem; border-radius: 50%; background: var(--gold);
}
.article-body .iaec-compare .col.a li::before { background: var(--grey); }

/* ── fig_metrics: veľké čísla ────────────────────────────────────────────── */
.article-body .iaec-metrics .mrow { display: grid; gap: .75rem; }
.article-body .iaec-metrics .m {
  padding: .9rem 1rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 4px; border-left: 3px solid var(--navy);
}
.article-body .iaec-metrics .v {
  display: block; font-size: 1.85rem; line-height: 1.05; font-weight: 700;
  color: var(--navy); font-variant-numeric: tabular-nums;
}
.article-body .iaec-metrics .l {
  display: block; margin-top: .3rem; font-size: .84rem; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase; color: var(--gold);
}
.article-body .iaec-metrics .n {
  display: block; margin-top: .35rem; font-size: .84rem; line-height: 1.5; color: var(--ink-soft);
}

/* ── fig_stack: vrstvy / úrovne ──────────────────────────────────────────── */
.article-body .iaec-stack .stack { display: grid; gap: .4rem; }
.article-body .iaec-stack .stack li {
  padding: .75rem .9rem; border-radius: 4px; color: var(--white);
  background: color-mix(in srgb, var(--navy) calc(100% - var(--i) * 13%), var(--white));
}
.article-body .iaec-stack .stack li .lab {
  display: block; font-weight: 600; font-size: .92rem; line-height: 1.4;
}
.article-body .iaec-stack .stack li .n {
  display: block; margin-top: .25rem; font-size: .83rem; line-height: 1.5;
  color: rgba(255, 255, 255, .82);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .article-body .iaec-stack .stack li { background: var(--navy-3); }
}

/* ── pull-quote ──────────────────────────────────────────────────────────── */
.article-body blockquote.iaec-pull {
  margin: 2rem auto; padding: .2rem 0 .2rem 1.35rem;
  border-left: 3px solid var(--gold); font-style: normal;
  font-size: 1.28rem; line-height: 1.45; color: var(--navy); max-width: 62ch;
}
.article-body blockquote.iaec-pull cite {
  display: block; margin-top: .6rem; font-family: var(--sans); font-size: .82rem;
  font-style: normal; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft);
}

/* ── tabuľka v ráme (na mobile posuvná) ──────────────────────────────────── */
.article-body .iaec-tablewrap { margin: 2rem 0; }
.article-body .iaec-tablewrap table { display: block; overflow-x: auto; white-space: nowrap; }
@media (min-width: 640px) {
  .article-body .iaec-tablewrap table { display: table; white-space: normal; }
}
.article-body .iaec-tablewrap td:first-child { font-weight: 600; color: var(--navy); }

/* ── Key takeaways ───────────────────────────────────────────────────────── */
.article-body .iaec-keybox {
  margin: 2.5rem 0 1rem; padding: 1.4rem 1.35rem;
  background: var(--navy); color: var(--white); border-radius: var(--radius);
}
.article-body .iaec-keybox h2 {
  margin: 0 0 .9rem; font-family: var(--sans); font-size: .82rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--gold);
}
.article-body .iaec-keybox ul { padding: 0; margin: 0; list-style: none; display: grid; gap: .7rem; }
.article-body .iaec-keybox li {
  position: relative; padding-left: 1.3rem; max-width: 70ch;
  font-size: .97rem; line-height: 1.6; color: rgba(255, 255, 255, .93);
}
.article-body .iaec-keybox li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .45rem; height: .45rem; background: var(--gold); transform: rotate(45deg);
}
.article-body .iaec-keybox strong { color: var(--white); }

/* ── čas čítania v hlavičke ──────────────────────────────────────────────── */
.article-header .readtime::before { content: "·"; margin: 0 .5rem; color: var(--gold); }

/* ── od tabletu vyššie: schémy do stĺpcov ────────────────────────────────── */
@media (min-width: 620px) {
  .article-body .iaec-fig { padding: 1.6rem 1.5rem 1.35rem; }
  .article-body .iaec-compare .cmp { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .article-body .iaec-metrics .mrow { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
  .article-body .iaec-flow .flow { gap: .6rem; }
  .article-body blockquote.iaec-pull { font-size: 1.4rem; padding-left: 1.6rem; }
  .article-body .iaec-keybox { padding: 1.8rem 1.9rem; }
}

/* ── tlač ────────────────────────────────────────────────────────────────── */
@media print {
  .article-body .iaec-keybox { background: none; color: #000; border: 2px solid #000; }
  .article-body .iaec-keybox h2, .article-body .iaec-keybox li { color: #000; }
  .article-body .iaec-stack .stack li { background: none !important; color: #000; border: 1px solid #000; }
  .article-body .iaec-stack .stack li .n { color: #333; }
}
