/*
Copyright (C) 2023-2026 QuantumNous

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
/* A restrained default type scale; explicit density choices keep their sizes. */
body:is([data-theme-scale='lg'], [data-theme-scale='xl'])
  :is(.ysapi-public, .ysapi-console, .ysapi-studio) {
  font-size: 15px;
  line-height: 1.65;
}
body:is([data-theme-scale='lg'], [data-theme-scale='xl'])
  :is(.ysapi-public, .ysapi-console, .ysapi-studio)
  :is(
    [data-slot='input'],
    [data-slot='textarea'],
    [data-slot='select-trigger']
  ) {
  font-size: 16px;
}
body:not([data-theme-scale='sm']):not([data-theme-scale='lg']):not(
  [data-theme-scale='xl']
) {
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 0.9375rem;
}
body:not([data-theme-scale='sm']):not([data-theme-scale='lg']):not(
    [data-theme-scale='xl']
  )
  :is(.ysapi-public, .ysapi-console, .ysapi-studio) {
  font-size: 14px;
  line-height: 1.6;
}
/* Bring page-specific ordinary text into the same scale as shared controls. */
body:not([data-theme-scale='sm']):not([data-theme-scale='lg']):not(
    [data-theme-scale='xl']
  )
  :is(
    .ysapi-console-sidebar-content [data-slot='sidebar-menu-button'],
    .studio-toolbar [data-slot='tabs-trigger'],
    .studio-model-trigger,
    .studio-model-option,
    .studio-composer button[type='submit'],
    .ys-hero-description,
    .ysapi-public .ys-primary-action,
    .ys-studio-preview strong,
    .ys-vendor-strip,
    .ys-section-title p:not(.ys-eyebrow),
    .ys-home-note,
    .ys-steps p,
    .ys-docs-page p,
    .ys-docs-page dd,
    .ys-docs-page li
  ) {
  font-size: 14px;
}

/* Inputs remain 16px on phones, including fields rendered in portal dialogs. */
body:not([data-theme-scale='sm']):not([data-theme-scale='lg']):not(
    [data-theme-scale='xl']
  )
  :is(input, select, textarea, [data-slot='select-trigger']) {
  font-size: 16px;
}
@media (min-width: 768px) and (pointer: fine) {
  body:not([data-theme-scale='sm']):not([data-theme-scale='lg']):not(
      [data-theme-scale='xl']
    )
    :is(input, select, textarea, [data-slot='select-trigger']) {
    font-size: 14px;
  }
}

/* Keep page headings distinct without changing their layout or weight. */
body:not([data-theme-scale='sm']):not([data-theme-scale='lg']):not(
    [data-theme-scale='xl']
  )
  .ys-hero-copy
  h1 {
  font-size: clamp(34px, 3vw, 52px);
}
body:not([data-theme-scale='sm']):not([data-theme-scale='lg']):not(
    [data-theme-scale='xl']
  )
  .ys-hero-lead {
  font-size: 16px;
}
body:not([data-theme-scale='sm']):not([data-theme-scale='lg']):not(
    [data-theme-scale='xl']
  )
  .studio-title {
  font-size: clamp(22px, 2vw, 24px);
}
body:not([data-theme-scale='sm']):not([data-theme-scale='lg']):not(
    [data-theme-scale='xl']
  )
  :is(
    .studio-empty [data-slot='empty-title'],
    .studio-parameter-dialog [data-slot='dialog-title'],
    .studio-model-dialog [data-slot='dialog-title'],
    .studio-assets-dialog [data-slot='dialog-title']
  ) {
  font-size: 18px;
}
