/* Plain titles where migrated record/utility pages have no editorial heading.
   Normal content pages start with their CEs; no automatic title/abstract hero. */
.pw-content-title {
    width: min(calc(100% - 2rem), var(--pw-content-normal));
    margin: 1.5rem auto;
    color: #1d1d1b;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* Legacy record pages (imprint, privacy and author guidelines) shared the
   same centered display heading. Scope the restored proportions to those
   pages so editorial headings elsewhere keep their established hierarchy. */
.pw-main--reference-content .pw-content-title,
.pw-main--reference-content .pw-content > .frame-type-text:first-child h1 {
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-bottom: clamp(1.75rem, 3.44vw, 4rem);
    margin-left: calc(50% - 50vw);
    color: #1d1d1b;
    font-size: clamp(1.75rem, 3.37vw, 3.925rem);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.pw-main--reference-content .pw-content-title {
    margin-top: clamp(2.1875rem, 6.25vw, 5rem);
}

.pw-main--reference-imprint-layout .pw-content-title {
    margin-top: calc(clamp(2.1875rem, 6.25vw, 5rem) + clamp(0.875rem, 1.875vw, 1.5rem));
}

@media (max-width: 904px) {
    .pw-main--reference-content .pw-content-title,
    .pw-main--reference-content .pw-content > .frame-type-text:first-child h1 {
        margin-bottom: 2rem;
        font-size: clamp(1.75rem, 4.1vw, 1.9625rem);
    }

    .pw-main--reference-content .pw-content-title {
        margin-top: 2.5rem;
    }

    .pw-main--reference-imprint-layout .pw-content-title {
        margin-top: 3.5rem;
    }
}

@media (max-width: 480px) {
    .pw-main--reference-content .pw-content-title,
    .pw-main--reference-content .pw-content > .frame-type-text:first-child h1 {
        margin-bottom: 1.75rem;
    }

    .pw-main--reference-content .pw-content-title {
        margin-top: 2.1875rem;
    }

    .pw-main--reference-imprint-layout .pw-content-title {
        margin-top: 3.0625rem;
    }
}

/* Alice's existing opening Core header (other Alice pages start with images).
   Original display-heading weight/proportions, retaining Nunito Sans. */
.pw-content--alice > .frame-type-header:first-child {
    margin-top: clamp(1.5rem, 4vw, 3.25rem);
    text-align: center;
    color: #1d1d1b;
}
.pw-content--alice > .frame-type-header:first-child h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.925rem);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: center;
}
.pw-content--alice > .frame-type-header:first-child h2 {
    max-width: 40ch;
    margin: .5rem auto 0;
    font-size: clamp(1.125rem, 1.9vw, 1.54375rem);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: center;
    text-wrap: balance;
}

/* Legacy page 57 used the same two-level display-heading proportions as the
   restored Alice introduction. Keep this page role separate from Alice and
   from global Core headings. */
.pw-content--interactive > .frame-type-header:first-child,
.pw-content--online > .frame-type-header {
    width: min(calc(100% - 2rem), calc(var(--pw-content-normal) / 83.572 * 70));
    margin: clamp(2rem, 3.4375vw, 4rem) auto clamp(1.75rem, 3vw, 3rem);
    padding: 0;
    color: #1d1d1b;
    text-align: center;
}

.pw-content--interactive > .frame-type-header:first-child h1,
.pw-content--online > .frame-type-header h1 {
    margin: 0;
    font-size: clamp(2rem, calc(3.925 * var(--pw-article-unit)), 3.925rem);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
}

.pw-content--interactive > .frame-type-header:first-child h2,
.pw-content--online > .frame-type-header h2 {
    margin: 0.5rem 0 0;
    font-size: clamp(1.125rem, calc(1.9 * var(--pw-article-unit)), 1.9rem);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: center;
    text-wrap: balance;
}
