/* Passenger site typography. Keep decorative glyph sizing in the component styles. */
@layer lulan-typography {
  :root {
    --lulan-body-size: 12px;
    --lulan-heading-size: 14px;
    --lulan-feature-title-size: 16px;
  }

  body,
  body :where(*):not(
    :where(svg, svg *, [aria-hidden="true"], [aria-hidden="true"] *,
      h1, h1 *, .page-title, .page-title *, .auth-heading h2, .auth-heading h2 *,
      .app-info-icon, .app-clearance-icon, .app-help-icon, .empty-icon,
      .drawer-toggle, .drawer-close, .picker-close, .notice-dialog-close,
      .dashboard-booking-close, .receipt-close, .tm-close,
      .app-faq-chevron, .chip-caret, .tf-arrow, .transport-chevron)
  ) {
    font-size: var(--lulan-body-size) !important;
  }

  /* Main titles keep the responsive sizing defined by their page styles. */
  body :is(h2, h3, h4, h5, h6, [role="heading"],
    .card-title, .ann-title,
    .notice-heading, .notice-heading > div, .notif-head, .notif-title,
    .document-upload-title, .document-passenger-name, .boarding-pass-name,
    .trip-name, .trip-route, .route-name, .vessel-name, .profile-name,
    .fare-heading, .receipt-heading, .mtp-title, .notes-title, .update-title,
    .ticket-brand, .brand):not(:where(h1, .page-title, .auth-heading h2)),
  body :is(h2, h3, h4, h5, h6, [role="heading"], .card-title)
    :not(:where(h1, .page-title, .auth-heading h2))
    :where(span, strong, em, b, a):not(:where([aria-hidden="true"], [aria-hidden="true"] *)) {
    font-size: var(--lulan-heading-size) !important;
  }

  body .dashboard-booking-title {
    font-size: var(--lulan-feature-title-size) !important;
  }

  body[data-page="home"] .dashboard-travel-updates .notice-heading,
  body[data-page="home"] .dashboard-travel-updates .notice-heading > div,
  body[data-page="home"] .dashboard-travel-updates .notice-heading h2,
  body[data-page="home"] .trip-route {
    font-size: var(--lulan-body-size) !important;
  }

  body:is([data-page="announcements"], [data-page="home"]) .ann-row .ann-title {
    font-size: 12px !important;
  }

  body:is([data-page="announcements"], [data-page="home"]) .ann-row :is(.ann-category, .ann-date) {
    font-size: 11px !important;
  }

  body nav.rail :is(.nav-label, .drawer-brand strong, #drawerLogout, #drawerLogout span) {
    font-size: var(--lulan-body-size) !important;
  }
}
