/* TIHONEAC.COM · R194 REV4 REV2 · Editorial Top Rhythm Reconciliation
 * Scope strict: top offset only.
 * Canonical token: R129 --r129-public-title-top-space (28/22/18 px).
 * Preserves every R194 REV4 rule for standard internal pages and extends the same
 * header-to-first-semantic-block rhythm to Home and About only.
 */
:root {
  --r194-rev4-standard-public-top-space: var(--r129-public-title-top-space, 28px);
}

/* R194 REV4 preserved: standard internal pages. */
body[data-public-view="articles"] #main > .page-hero,
body[data-public-view="projects"] #main > .page-hero,
body[data-public-view="contact"] #main > .page-hero {
  margin-top: 0 !important;
  padding-top: var(--r194-rev4-standard-public-top-space) !important;
}

/* R194 REV4 preserved: Terminology wrapper. */
#main > .glossary-directory {
  margin-top: 0 !important;
  padding-top: var(--r194-rev4-standard-public-top-space) !important;
}

/* REV2: Home and About use the same header-to-eyebrow start rhythm.
 * No internal hero spacing, typography, min-height, bottom padding, actions,
 * quote, cards or subsequent sections are otherwise restyled here.
 */
body[data-public-view="home"] #main > .editorial-home-hero,
body[data-public-view="about"] #main > .page-hero {
  margin-top: 0 !important;
  padding-top: var(--r194-rev4-standard-public-top-space) !important;
}


/* R194 REV4 REV3: Editorial Hero Bottom Rhythm Reconciliation
 * Scope strict: relation between Home/About hero and the immediately following section.
 * Goal: remove the inherited large empty band without changing typography, widths,
 * cards, internal hero spacing, top rhythm or any standard public page.
 */
:root {
  --r194-rev4-editorial-following-section-gap: 36px;
}

/* Home: historical min-height:520px and bottom padding created the large empty band.
 * Let content define hero height, remove only bottom padding, then keep one explicit
 * following-section gap. Top padding remains governed by REV2/R129.
 */
body[data-public-view="home"] #main > .editorial-home-hero {
  min-height: auto !important;
  padding-bottom: 0 !important;
}
body[data-public-view="home"] #main > .editorial-home-hero + .home-section {
  padding-top: var(--r194-rev4-editorial-following-section-gap) !important;
}

/* About: historical page-hero bottom padding + section.compact top padding were cumulative.
 * Collapse that double spacing into one explicit gap only on /despre.
 */
body[data-public-view="about"] #main > .page-hero {
  padding-bottom: 0 !important;
}
body[data-public-view="about"] #main > .page-hero + .section.compact {
  padding-top: var(--r194-rev4-editorial-following-section-gap) !important;
}

@media (max-width: 980px) {
  :root { --r194-rev4-editorial-following-section-gap: 30px; }
}

@media (max-width: 680px) {
  :root { --r194-rev4-editorial-following-section-gap: 24px; }
}
