/* Match applications.css exactly; CSS-only, once on page load, no layout movement.
   Scoped utilities preserve each page's own color, font, spacing and responsive type. */
.rules-page .page-heading-mask,
.at-page .page-heading-mask,
.faq-page .page-heading-mask,
.pedia-workspace:is(.pw-create,.pw-owner-list,.pw-edit) .page-heading-mask,
.pedia-page .page-heading-mask,
.stream-page .page-heading-mask,
 .ticket-public .page-heading-mask { overflow: hidden; }
.rules-page .page-heading-text,
.at-page .page-heading-text,
.faq-page .page-heading-text,
.pedia-workspace:is(.pw-create,.pw-owner-list,.pw-edit) .page-heading-text,
.pedia-page .page-heading-text,
.stream-page .page-heading-text,
 .ticket-public .page-heading-text { display: block; }
/* Italic headings need paint room while the vertical reveal stays clipped. */
.rules-page .rules-page-header h1.page-heading-mask,
.at-page .at-hero-copy h1.page-heading-mask,
.faq-page .faq-header h1.page-heading-mask,
.pedia-page h1.page-heading-mask { padding-inline-end: .16em; box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
    .pedia-workspace:is(.pw-create,.pw-owner-list,.pw-edit) .pw-heading p,
    .rules-page .rules-page-header p,
    .at-page .at-hero-copy > p,
    .faq-page .faq-header > p { --heading-rise-distance: 6px; animation: ac-title-rise .45s 2s ease backwards; }
    .rules-page .page-heading-label,
    .at-page .page-heading-label,
    .faq-page .page-heading-label,
    .pedia-workspace:is(.pw-create,.pw-owner-list,.pw-edit) .page-heading-label,
.pedia-page .page-heading-label,
    .stream-page .page-heading-label,
     .ticket-public .page-heading-label { animation: ac-label-reveal 1s cubic-bezier(.2, .65, .2, 1) both; }
    .rules-page .page-heading-text,
    .at-page .page-heading-text,
    .faq-page .page-heading-text,
    .pedia-workspace:is(.pw-create,.pw-owner-list,.pw-edit) .page-heading-text,
.pedia-page .page-heading-text,
    .stream-page .page-heading-text,
     .ticket-public .page-heading-text { animation: ac-title-rise 1.2s .8s cubic-bezier(.2, .65, .2, 1) both; }
}
@keyframes ac-label-reveal { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes ac-title-rise { from { opacity: 0; transform: translateY(var(--heading-rise-distance, 105%)); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .pedia-workspace:is(.pw-create,.pw-owner-list,.pw-edit) .pw-heading p,
    .rules-page .rules-page-header p, .at-page .at-hero-copy > p, .faq-page .faq-header > p { animation: none; }
    .rules-page .page-heading-label, .rules-page .page-heading-text,
    .at-page .page-heading-label, .at-page .page-heading-text,
    .faq-page .page-heading-label, .faq-page .page-heading-text,
    .pedia-workspace:is(.pw-create,.pw-owner-list,.pw-edit) .page-heading-label,
.pedia-page .page-heading-label, .pedia-workspace:is(.pw-create,.pw-owner-list,.pw-edit) .page-heading-text,
.pedia-page .page-heading-text,
    .stream-page .page-heading-label,
 .ticket-public .page-heading-label, .stream-page .page-heading-text,
     .ticket-public .page-heading-text { animation: none; }
}
