/* ============================================================
   Szegletház története aloldal – idővonal az elbeszélés fölött.
   Hero, gombok, prose, split: lásd css/style.css.
   ============================================================ */

/* ---------- Egységes szöveg-skála (az idővonal mérete a mérce) ----------
   Minden „cím + leírás” páros ezt használja ezen az oldalon: a leírások
   mérete mindenhol azonos, a kártya-/blokkcímek pedig ehhez igazodva
   kompaktak maradnak. A nagy szekciócímek (h1/h2) nem tartoznak ide. */
:root {
  --st-label: 0.82rem;  /* évszám, kis címke a leírás mellett */
  --st-title: 1.05rem;  /* kártya- és blokkcím */
  --st-desc: 0.9rem;    /* minden leírás/bekezdés */
  --st-desc-lh: 1.5;
}

.st-timeline-section { background: var(--white); }

/* ---------- Áttekintő rács: bal oldalt a tömör idővonal, jobbra a
   „számokban” panel. Így a szekció nagyjából feleakkora magas, mint
   a korábbi, egy hasábos idővonal. ---------- */
.st-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.st-timeline-head {
  text-align: left;
  max-width: none;
  margin: 0 0 clamp(20px, 3vw, 28px);
}
.st-timeline-head .section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 0;
}

.st-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.st-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: var(--hairline);
}
.st-timeline-item {
  position: relative;
  padding-left: 26px;
  padding-bottom: clamp(12px, 1.6vw, 16px);
}
.st-timeline-item:last-child { padding-bottom: 0; }
.st-timeline-dot {
  position: absolute;
  left: 0;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}
.st-timeline-item--now .st-timeline-dot {
  background: var(--green-dark);
  box-shadow: 0 0 0 2px var(--green-dark);
}
/* Évszám és leírás egy sorban – ez spórolja a legtöbb függőleges helyet */
.st-timeline-content {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: baseline;
}
.st-timeline-year {
  font-weight: 700;
  color: var(--teal);
  font-size: var(--st-label);
  line-height: 1.45;
}
.st-timeline-item--now .st-timeline-year { color: var(--green-dark); }
.st-timeline-content p {
  color: var(--muted);
  font-size: var(--st-desc);
  line-height: var(--st-desc-lh);
  margin: 0;
}
.st-timeline-content strong { color: var(--ink); }

/* ---------- „A ház számokban” panel az idővonal mellett ---------- */
.st-facts {
  background: color-mix(in srgb, var(--sand) 10%, #fff);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 28px);
  box-shadow: var(--shadow-sm);
}
.st-facts-title {
  color: var(--ink);
  font-size: var(--st-title);
  margin-bottom: 6px;
}
.st-facts-lead {
  color: var(--muted);
  font-size: var(--st-desc);
  line-height: var(--st-desc-lh);
  margin-bottom: 16px;
}
.st-facts-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.st-fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.st-fact-num {
  width: 84px;
  text-align: center;
  font-family: "Baloo Bhai 2", sans-serif;
  font-weight: 800;
  font-size: var(--st-title);
  line-height: 1.2;
  color: var(--teal);
}
.st-fact:nth-child(2) .st-fact-num { color: var(--sand-dark); }
.st-fact:nth-child(3) .st-fact-num { color: var(--green-dark); }
.st-fact p {
  color: var(--muted);
  font-size: var(--st-desc);
  line-height: var(--st-desc-lh);
  margin: 0;
}

@media (max-width: 960px) {
  .st-overview { grid-template-columns: 1fr; }
  .st-overview-main,
  .st-facts { max-width: 720px; margin-inline: auto; width: 100%; }
}
@media (max-width: 520px) {
  /* Keskeny kijelzőn az évszám visszakerül a leírás fölé */
  .st-timeline-content { grid-template-columns: 1fr; gap: 2px; }
  .st-fact { grid-template-columns: 1fr; gap: 4px; }
  .st-fact-num { width: auto; text-align: left; }
}

/* ---------- Elbeszélés szövege (felülírja a globális .prose-t erre az oldalra) ----------
   „A ház újjászületése” blokk: h3 cím + hozzá tartozó bekezdések, illetve a
   split-szekciók szövege – mindkettő ugyanazt a skálát kapja, mint az idővonal. */
.prose h3 { font-size: var(--st-title); margin-top: 26px; margin-bottom: 8px; }
.prose p,
.split-text p { font-size: var(--st-desc); line-height: var(--st-desc-lh); }
.prose p + p { margin-top: 10px; }

/* Portré: fele méretű, kör alakú kivágás – a fejet/arcot tartsa a kereten belül */
.split-media img.st-portrait-img {
  display: block;
  width: 50%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-position: center 15%;
  margin-inline: auto;
}
