/*
 * `tpl_single` — V2 article page (content tunnel).
 *
 * The tunnel is uninterrupted, in this order:
 *   kicker → headline → standfirst → author → published/modified → reading time
 *   → hero → article body → author bio.
 *
 * There is NO sidebar, NO mid-article related stories, NO newsletter or promo
 * interruption, NO card rail. The body keeps the 600px reading measure and a
 * maximally readable 19px Source Sans 3; futurism stays in the head, hero,
 * metadata and captions — never in the reading experience.
 */

.fm-article { padding-top: 44px; }

/* ---------- Head (the tunnel entrance) ---------- */
.fm-article__head {
  display: grid;
  gap: 20px;
}
.fm-article__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.fm-article__title {
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -0.03em;
  line-height: 0.99;
}
.fm-article__standfirst {
  font-family: var(--fm-font-body);
  font-size: 22px;
  line-height: 1.5;
  color: var(--fm-color-steel);
  margin: 0;
  max-width: 780px;
}
.fm-article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  padding-top: 16px;
  border-top: var(--fm-line-hairline) solid var(--fm-color-grid);
  font-family: var(--fm-font-data);
  font-size: var(--fm-type-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fm-color-steel);
}
.fm-article__sep { color: var(--fm-color-amber-text); }

/* ---------- Hero + figures (shared figcaption primitives live in base.css) ---------- */
.fm-article__hero { margin: 44px auto 0; max-width: var(--fm-layout-home); }
.fm-article__hero .fm-media-frame { border-radius: 0; }

/* ---------- Body (the reading tunnel) ---------- */
.fm-article__body {
  width: min(50vw, 46rem);
  min-width: min(100%, 32rem);
  margin: 52px auto 0;
}
.fm-article__body p {
  font-family: var(--fm-font-body);
  font-size: 19px;
  line-height: 1.68;
  margin: 0 0 1.5em;
  color: var(--fm-color-ink);
}
.fm-article__body > p:first-of-type::first-letter {
  font-family: var(--fm-font-disp);
  font-weight: var(--fm-weight-bold);
  font-size: 3.2em;
  line-height: 0.85;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--fm-color-ink);
}
.fm-article__body h2 {
  font-family: var(--fm-font-disp);
  font-size: 30px;
  font-weight: var(--fm-weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 2.1em 0 0.7em;
}
.fm-article__body blockquote {
  margin: 2.2em 0;
  padding-left: 22px;
  border-left: 3px solid var(--fm-color-signal);
}
.fm-article__body blockquote p {
  font-family: var(--fm-font-disp);
  font-size: 28px;
  font-weight: var(--fm-weight-semibold);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}
.fm-article__body blockquote cite {
  display: block;
  font-family: var(--fm-font-data);
  font-size: var(--fm-type-micro);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fm-color-steel);
}
.fm-article__figure { margin: 2.4em 0; }
.fm-article__data {
  margin: 2.6em 0;
  padding-top: 16px;
  border-top: var(--fm-line-warn) solid var(--fm-color-ink);
}
.fm-article__data .fm-metadata { margin-bottom: 4px; }

/* ---------- Author bio ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .fm-article { padding-top: 28px; }
  .fm-article__standfirst { font-size: 19px; }
  .fm-article__body p { font-size: 18px; }
  .fm-article__body h2 { font-size: 25px; }
  .fm-article__body blockquote p { font-size: 23px; }
  .fm-article__hero .fm-media-frame--21x9 { aspect-ratio: 16 / 9; }
}
@media (max-width: 480px) {
  .fm-article__title { font-size: 32px; }
    }

/* ---------- WordPress content inside the tunnel ---------- */
.fm-article__body img { max-width: 100%; height: auto; border-radius: var(--fm-radius-card); }
.fm-article__body a { color: inherit; text-decoration: underline; text-decoration-color: var(--fm-color-amber-text); text-underline-offset: 3px; }
.fm-article__body a:hover { text-decoration-color: var(--fm-color-ink); }
.fm-article__body ul,
.fm-article__body ol { font-family: var(--fm-font-body); font-size: 19px; line-height: 1.68; margin: 0 0 1.5em; padding-left: 1.3em; }
.fm-article__body li { margin-bottom: 0.4em; }
.fm-article__body h3 { font-family: var(--fm-font-disp); font-size: 24px; font-weight: var(--fm-weight-bold); letter-spacing: -0.02em; line-height: 1.15; margin: 1.8em 0 0.6em; }
.fm-article__body figure { margin: 2.4em 0; }
.fm-article__body figure img { width: 100%; }
.fm-article__body figcaption { margin-top: 10px; font-family: var(--fm-font-data); font-size: var(--fm-type-micro); line-height: 1.5; color: var(--fm-color-steel); }
.fm-article__body iframe { max-width: 100%; border-radius: var(--fm-radius-card); }

/* ---------- Utility page variant (generic page.php: privacy, policy, stubs) ----------
 * A static document, not an editorial feature: drop the drop cap and read at a
 * document measure so legal text never opens like a magazine article.
 */
.fm-article--page .fm-article__body { width: 100%; min-width: 0; max-width: 760px; }
.fm-article--page .fm-article__body > p:first-of-type::first-letter {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  float: none;
  padding: 0;
}

/* ---------- Címkék (the article's real tags) ---------- */
.fm-article__tags { display: grid; gap: 14px; }
.fm-article__tags-title {
  margin: 0;
  font-family: var(--fm-font-data);
  font-size: var(--fm-type-micro);
  font-weight: var(--fm-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fm-color-steel);
}
.fm-article__tags-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fm-article__tag { text-decoration: none; }
.fm-article__tag:hover {
  color: var(--fm-color-paper);
  background: var(--fm-color-ink);
  border-color: var(--fm-color-ink);
}
:root[data-theme="dark"] .fm-article__tag:hover { color: var(--fm-color-ink); background: var(--fm-color-paper); border-color: var(--fm-color-paper); }

/* ---------- Related runs (same rovat + latest) ---------- */
.fm-related-wrap {
  container-type: inline-size;
  container-name: fm-related;
  margin-top: 104px;
  display: grid;
  gap: 80px;
}
.fm-related { display: grid; }
.fm-related .fm-section__head { margin-bottom: 26px; }
.fm-related__title {
  margin: 0;
  font-family: var(--fm-font-disp);
  font-weight: 700;
  font-size: clamp(1.5rem, calc(1.2rem + 1.6cqi), var(--fm-home-head-max));
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: pretty;
}
.fm-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--fm-home-gap);
}
@media (max-width: 63.999rem) {
  .fm-related-wrap { margin-top: 80px; gap: 64px; }
  .fm-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.999rem) {
  .fm-related-wrap { margin-top: 64px; gap: 56px; }
  .fm-related__grid { grid-template-columns: minmax(0, 1fr); }
}
