/* GK-RD-P1a: shared layout helpers (opt-in): section rhythm, section head, page body, visually hidden text. */

/* Visually hidden, still read by screen readers (labels without a visible label) */
[srtext] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Section rhythm (marketing pages) */
[uisection] {
    padding-top: clamp(var(--i40), 7vw, 5.5rem);
    padding-bottom: clamp(var(--i40), 7vw, 5.5rem);
}

/* Section head: eyebrow, h2, lead. Left aligned by default; uisectionhead="center" on the home page. */
[uisectionhead] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--i10);
    margin-bottom: var(--i30);
}

    [uisectionhead][uisectionhead="center"] {
        align-items: center;
        text-align: center;
    }

    [uisectionhead] > [uieyebrow] {
        display: flex;
        align-items: center;
        gap: var(--i10);
        font-size: var(--fs13);
        font-weight: 700;
        letter-spacing: .06em;
        color: var(--themedarkblue);
    }

        [uisectionhead] > [uieyebrow]::before {
            content: "";
            flex: none;
            width: 24px;
            height: 3px;
            border-radius: 2px;
            background: var(--themeorange);
        }

    [uisectionhead] > h2 {
        max-width: 22ch;
        font-size: var(--fs32);
        font-weight: 800;
        line-height: 1.15;
        color: var(--themedarkblue);
        text-wrap: balance;
    }

    [uisectionhead] > [uilead] {
        max-width: 60ch;
        font-size: var(--fs16);
        font-weight: 400;
        line-height: 1.6;
        color: var(--graydark);
    }

/* Page body band for migrated inner pages: no border band under the title */
[pagebody] {
    padding: var(--i20) 0 var(--i50);
}

@media (max-width: 768px) {
    [uisection] {
        padding-top: var(--i40);
        padding-bottom: var(--i40);
    }

    [uisectionhead] {
        margin-bottom: var(--i20);
    }

        [uisectionhead] > h2 {
            font-size: var(--fs24);
        }

    [pagebody] {
        padding: var(--i15) 0 var(--i40);
    }
}
