/*!
 * @file st_landing.css
 * @brief Heading scale rules for the st_landing layout in the Shibuya theme
 * @author STMicroelectronics
 * @copyright Copyright (c) 2026 STMicroelectronics.
 *            All rights reserved.
 *            This software is licensed under SLA0044 terms that can be found at:
 *            https://www.st.com/SLA0044
 *            or in the LICENSE.md file in the root directory of this software component.
 */

/* st_landing layout — proportional heading scale.
 * Derived from the "landing" layout but with a less prominent h1.
 * All heading levels are resized consistently so the visual hierarchy
 * remains balanced.
 *
 * This file is only loaded for pages using :layout: st_landing, so no
 * scoping class is needed.
 *
 * Heading scale (geometric progression, ratio = 1.36):
 *   h1  2.25rem   — matches the default .yue h1; lets :doc-title: (2.50em) stand out naturally
 *   h2  1.65rem   (= h1 / 1.36)
 *   h3  1.22rem   (= h2 / 1.36)
 *   h4  1.00rem   (clamped to body text size; strict ratio would give 0.89rem)
 */

.yue {
    padding-bottom: 2rem;
}

/* First-section h1: same as default .yue h1 — :doc-title: naturally sits above it */
.yue section:first-of-type h1 {
    font-size: 2.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Re-scale h2–h4 to keep the hierarchy proportional */
.yue h2 {
    font-size: 1.65rem;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}

.yue h3 {
    font-size: 1.22rem;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.yue h4 {
    font-size: 1.00rem;
    margin-top: 1.3em;
    margin-bottom: 0.4em;
}

/* Hide anchor links and injected content (same as landing layout) */
.injected,
.yue a.headerlink {
    display: none;
}
