/* Dashboard typography follows the existing menu. */
@layer ticteq-dashboard-typography {
  :root {
    --ticteq-dashboard-font-family: var(--falcon-font-sans-serif, "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    --ticteq-dashboard-font-size: 0.875rem;
  }

  html body {
    font-family: var(--ticteq-dashboard-font-family) !important;
    font-size: var(--ticteq-dashboard-font-size) !important;
    line-height: 1.5;
  }

  body :where(*):not(:where(
    code, code *, pre, pre *, kbd, kbd *, samp, samp *,
    .fa, .fas, .far, .fab, .fal, .fad, .fat,
    .fa-solid, .fa-regular, .fa-brands, .fa-light, .fa-thin, .fa-duotone,
    .material-icons, .material-icons-outlined, .material-symbols-outlined,
    .mdi, .glyphicon, .bi, [data-icon]
  )) {
    font-family: var(--ticteq-dashboard-font-family) !important;
  }

  body :where(*):not(:where(
    h1, h1 *, h2, h2 *, h3, h3 *, h4, h4 *, h5, h5 *, h6, h6 *,
    .h1, .h1 *, .h2, .h2 *, .h3, .h3 *, .h4, .h4 *, .h5, .h5 *, .h6, .h6 *,
    .display-1, .display-1 *, .display-2, .display-2 *, .display-3, .display-3 *,
    .display-4, .display-4 *, .display-5, .display-5 *, .display-6, .display-6 *,
    .modal-title, .modal-title *,
    .navbar, .navbar *, .navbar-brand, .navbar-brand *,
    code, code *, pre, pre *, kbd, kbd *, samp, samp *, svg, svg *, math, math *,
    .fa, .fas, .far, .fab, .fal, .fad, .fat,
    .fa-solid, .fa-regular, .fa-brands, .fa-light, .fa-thin, .fa-duotone,
    .material-icons, .material-icons-outlined, .material-symbols-outlined,
    .mdi, .glyphicon, .bi, [data-icon]
  )) {
    font-size: var(--ticteq-dashboard-font-size) !important;
    letter-spacing: normal !important;
  }

  /* Preserve the shared navigation's existing sizing. */
  .navbar {
    font-size: 1rem !important;
  }

  /* Let longer labels keep whole words at the shared text size. */
  .tq-transactions .tx-badge {
    flex-wrap: wrap !important;
  }

  .tq-transactions .tx-badge > span:last-child {
    overflow-wrap: normal !important;
  }

  .torg .torg-badge {
    max-width: 100% !important;
    white-space: normal !important;
  }

  @media (max-width: 540px) {
    .tq-settings .ss-tab {
      padding-inline: 2px !important;
      white-space: normal !important;
    }
  }

  /* Keep iPhone inputs from zooming on focus. */
  @media (pointer: coarse) {
    body :where(input, select, textarea) {
      font-size: max(16px, var(--ticteq-dashboard-font-size)) !important;
    }
  }
}
