/*
 * WINDWATCH_REALTIME_INTERNAL_READABILITY_V1_1_R1
 * Presentation-only typography refinement for the authenticated WindTree
 * Internal v1.1 Realtime homepage. Customer v1.0 is intentionally unaffected.
 * All row heights, column widths, data values, gauges, status colors, layouts,
 * temperature warning colors, touch targets and other routes remain unchanged.
 * The existing role-resolved header attribute is applied by the approved v1.1.1
 * release channel script after /api/me; fail closed for other/unknown roles.
 */
@media (min-width: 1024px) {
  body:not(.ww-quarter-home):has(.wt-react-app-header[data-ww-release-channel="internal"])
  .rt-v9-page .rt-table-scroll thead th:not(.ww-v19-8-hidden-status-heading) {
    font-size: clamp(11px, .64vw, 12px) !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
  }

  body:not(.ww-quarter-home):has(.wt-react-app-header[data-ww-release-channel="internal"])
  .rt-v9-page .rt-table-scroll thead .ww-v19-4-head-actions > button,
  body:not(.ww-quarter-home):has(.wt-react-app-header[data-ww-release-channel="internal"])
  .rt-v9-page .rt-table-scroll thead .ww-v21-trend-header-button {
    font-size: clamp(11px, .64vw, 12px) !important;
    line-height: 1.15 !important;
  }

  /* Numeric readings, temperatures, timestamp, wind direction, speeds, pitch */
  body:not(.ww-quarter-home):has(.wt-react-app-header[data-ww-release-channel="internal"])
  .rt-v9-page .rt-table-scroll tbody .rt-row > td:not(.ww-v19-4-hidden-status-cell) {
    font-size: clamp(12px, .74vw, 14px) !important;
    line-height: 1.14 !important;
    font-variant-numeric: tabular-nums !important;
  }

  body:not(.ww-quarter-home):has(.wt-react-app-header[data-ww-release-channel="internal"])
  .rt-v9-page .rt-table-scroll tbody .rt-row > td .cell-bar.ww-ref-gauge-v19-1 > span,
  body:not(.ww-quarter-home):has(.wt-react-app-header[data-ww-release-channel="internal"])
  .rt-v9-page .rt-table-scroll tbody .rt-row > td .cell-bar > span {
    font-size: clamp(13px, .81vw, 15px) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    font-variant-numeric: tabular-nums !important;
  }

  body:not(.ww-quarter-home):has(.wt-react-app-header[data-ww-release-channel="internal"])
  .rt-v9-page .rt-table-scroll tbody .ww-v19-4-identity > .ww-v19-4-identity-turbine {
    font-size: clamp(12.5px, .76vw, 14px) !important;
    line-height: 1 !important;
  }

  body:not(.ww-quarter-home):has(.wt-react-app-header[data-ww-release-channel="internal"])
  .rt-v9-page .rt-table-scroll tbody .ww-v19-4-identity > .ww-v19-4-identity-status {
    font-size: clamp(11px, .69vw, 13px) !important;
    line-height: 1 !important;
  }
}

/* Narrow tablets and phones: smaller increments, no change to table geometry. */
@media (max-width: 1023px) {
  body:not(.ww-quarter-home):has(.wt-react-app-header[data-ww-release-channel="internal"])
  .rt-v9-page .rt-table-scroll thead th:not(.ww-v19-8-hidden-status-heading),
  body:not(.ww-quarter-home):has(.wt-react-app-header[data-ww-release-channel="internal"])
  .rt-v9-page .rt-table-scroll thead .ww-v19-4-head-actions > button {
    font-size: 10.5px !important;
    line-height: 1.15 !important;
  }

  body:not(.ww-quarter-home):has(.wt-react-app-header[data-ww-release-channel="internal"])
  .rt-v9-page .rt-table-scroll tbody .rt-row > td:not(.ww-v19-4-hidden-status-cell) {
    font-size: 11.5px !important;
    font-variant-numeric: tabular-nums !important;
  }

  body:not(.ww-quarter-home):has(.wt-react-app-header[data-ww-release-channel="internal"])
  .rt-v9-page .rt-table-scroll tbody .rt-row .cell-bar > span {
    font-size: 12.5px !important;
    font-weight: 800 !important;
  }
}

