/*!
 * Turla360 -- Font System (GYG-style v3.0.0)
 * Ana font: Plus Jakarta Sans (GT Eesti en yakin acik kaynak esdeveri)
 * GYG typography scale birebir uygulanmistir.
 *
 * GYG kaynagi:
 *   font-family: "GT Eesti"
 *   weights: 200/400/500/700/800
 *   --font-primary: "GT Eesti", "fallback for GT Eesti"(Arial), "android fallback for GT Eesti"(Roboto), sans-serif
 *   --font-noto-sans: "Noto Sans", sans-serif
 */

@font-face {
  ascent-override: 90%;
  descent-override: -26%;
  font-family: "fallback for Plus Jakarta Sans";
  line-gap-override: 0%;
  src: local(Arial);
}
@font-face {
  ascent-override: 80%;
  descent-override: -26%;
  font-family: "android fallback for Plus Jakarta Sans";
  line-gap-override: 0%;
  size-adjust: 90%;
  src: local(Roboto);
}

:root {
  --font-primary:
    "Plus Jakarta Sans",
    "fallback for Plus Jakarta Sans",
    "android fallback for Plus Jakarta Sans",
    sans-serif;
  --font-noto-sans: "Noto Sans", sans-serif;
  --font-sans-inter:      "Inter",          system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans-poppins:    "Poppins",        system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans-arial:      Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-sans-nunito:     "Nunito Sans",    system-ui, sans-serif;
  --font-sans-montserrat: "Montserrat",     system-ui, sans-serif;
  --font-sans-dm:         "DM Sans",        system-ui, sans-serif;
  --font-sans-outfit:     "Outfit",         system-ui, sans-serif;
  --font-sans-sora:       "Sora",           system-ui, sans-serif;
  --font-sans-bricolage:  var(--head, system-ui), sans-serif;

  --theme-font-body:    var(--font-primary);
  --theme-font-heading: var(--font-primary);

  /* GYG Typography Scale (text-properties-Cs6LJBfR-v01.css) */
  --gyg-fs-headline:       2.75rem;
  --gyg-lh-headline:       3rem;
  --gyg-fw-headline:       700;
  --gyg-fs-title-1:        1.75rem;
  --gyg-lh-title-1:        2rem;
  --gyg-fw-title-1:        700;
  --gyg-fs-title-2:        1.5rem;
  --gyg-lh-title-2:        1.875rem;
  --gyg-fw-title-2:        700;
  --gyg-fs-title-3:        1.25rem;
  --gyg-lh-title-3:        1.5rem;
  --gyg-fw-title-3:        700;
  --gyg-fs-title-4:        1.125rem;
  --gyg-lh-title-4:        1.5rem;
  --gyg-fw-title-4:        700;
  --gyg-fs-body:           1rem;
  --gyg-lh-body:           1.375rem;
  --gyg-fw-body:           400;
  --gyg-fw-body-strong:    500;
  --gyg-fw-body-highlight: 700;
  --gyg-lh-body-compact:   1.25rem;
  --gyg-fs-caption:        0.875rem;
  --gyg-lh-caption:        1.25rem;
  --gyg-fw-caption:        400;
  --gyg-fw-caption-strong: 500;
  --gyg-fw-caption-highlight: 700;
  --gyg-lh-caption-compact: 1.125rem;
  --gyg-fs-label:          0.75rem;
  --gyg-lh-label:          1rem;
  --gyg-fw-label:          400;
}

/* data-font secici */
html[data-font='plus-jakarta-sans'],
html[data-font='gt-eesti'] {
  --theme-font-body:    var(--font-primary);
  --theme-font-heading: var(--font-primary);
}
html[data-font='inter']        { --theme-font-body: var(--font-sans-inter);      --theme-font-heading: var(--font-sans-inter); }
html[data-font='poppins']      { --theme-font-body: var(--font-sans-poppins);    --theme-font-heading: var(--font-sans-poppins); }
html[data-font='arial']        { --theme-font-body: var(--font-sans-arial);      --theme-font-heading: var(--font-sans-arial); }
html[data-font='nunito'],
html[data-font='nunito-sans']  { --theme-font-body: var(--font-sans-nunito);     --theme-font-heading: var(--font-sans-nunito); }
html[data-font='montserrat']   { --theme-font-body: var(--font-sans-montserrat); --theme-font-heading: var(--font-sans-montserrat); }
html[data-font='dm-sans']      { --theme-font-body: var(--font-sans-dm);         --theme-font-heading: var(--font-sans-dm); }
html[data-font='outfit']       { --theme-font-body: var(--font-sans-outfit);     --theme-font-heading: var(--font-sans-outfit); }
html[data-font='sora']         { --theme-font-body: var(--font-sans-sora);       --theme-font-heading: var(--font-sans-sora); }
html[data-font='bricolage-grotesque'] { --theme-font-body: var(--font-sans-bricolage); --theme-font-heading: var(--font-sans-bricolage); }

/* Global uygulama — GYG body defaults */
body,
html[data-font] body {
  font-family:  var(--theme-font-body);
  font-size:    var(--gyg-fs-body);
  line-height:  var(--gyg-lh-body);
  font-weight:  var(--gyg-fw-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Basliklar */
html[data-font] h1, html[data-font] h2, html[data-font] h3,
html[data-font] h4, html[data-font] h5, html[data-font] h6,
html[data-font] .tn-logo-wm, html[data-font] .al-headline, html[data-font] .af-title,
html[data-font] .adm-ph-title, html[data-font] .co-ph-title,
html[data-font] .font-heading {
  font-family: var(--theme-font-heading);
}

/* Form elemanları miras alir */
html[data-font] input, html[data-font] select,
html[data-font] textarea, html[data-font] button,
html[data-font] .adm-sc-val, html[data-font] .adm-co-rev,
html[data-font] .adm-cm-amt, html[data-font] .adm-sb-ln {
  font-family: inherit;
}

/* Utility siniflar */
.font-body     { font-family: var(--theme-font-body) !important; }
.font-heading  { font-family: var(--theme-font-heading) !important; }

/* GYG text-atom utility siniflar */
.text-headline      { font-size: var(--gyg-fs-headline);  line-height: var(--gyg-lh-headline);       font-weight: var(--gyg-fw-headline); }
.text-title-1       { font-size: var(--gyg-fs-title-1);   line-height: var(--gyg-lh-title-1);        font-weight: var(--gyg-fw-title-1); }
.text-title-2       { font-size: var(--gyg-fs-title-2);   line-height: var(--gyg-lh-title-2);        font-weight: var(--gyg-fw-title-2); }
.text-title-3       { font-size: var(--gyg-fs-title-3);   line-height: var(--gyg-lh-title-3);        font-weight: var(--gyg-fw-title-3); }
.text-title-4       { font-size: var(--gyg-fs-title-4);   line-height: var(--gyg-lh-title-4);        font-weight: var(--gyg-fw-title-4); }
.text-body          { font-size: var(--gyg-fs-body);       line-height: var(--gyg-lh-body);           font-weight: var(--gyg-fw-body); }
.text-body-strong   { font-size: var(--gyg-fs-body);       line-height: var(--gyg-lh-body);           font-weight: var(--gyg-fw-body-strong); }
.text-body-compact  { font-size: var(--gyg-fs-body);       line-height: var(--gyg-lh-body-compact);   font-weight: var(--gyg-fw-body); }
.text-caption       { font-size: var(--gyg-fs-caption);    line-height: var(--gyg-lh-caption);        font-weight: var(--gyg-fw-caption); }
.text-caption-strong { font-size: var(--gyg-fs-caption);  line-height: var(--gyg-lh-caption);        font-weight: var(--gyg-fw-caption-strong); }
.text-label         { font-size: var(--gyg-fs-label);      line-height: var(--gyg-lh-label);          font-weight: var(--gyg-fw-label); }

@media (min-width: 1024px) {
  .text-headline { font-size: 5rem;    line-height: 5.25rem; }
  .text-title-1  { font-size: 2.25rem; line-height: 2.75rem; }
}
