/**
 * django-unfold okunabilirlik (0.86.1 skeleton ile uyumlu)
 * Gövde 15–16px; font: Source Sans 3 + Inter (unfold) + sistem (ui_typography ile hizalı).
 * İtalik: UI metninde kullanılmaz; Tailwind .text-sm / .text-xs ayrı küçültür — aşağıda denge lenir.
 */
html {
  font-size: 16px !important;
}

html body.antialiased.font-sans.text-sm,
body.font-sans,
#page,
#main,
#content {
  font-size: 1rem !important;
  line-height: 1.5 !important;
  font-style: normal !important;
  font-family:
    "Inter",
    "Source Sans 3",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif !important;
}

/* Unfold: metin yardımcıları gövdeyle hizalı (text-sm = 14px → 16px) */
#nav-sidebar .text-sm,
#nav-sidebar-inner .text-sm,
#nav-sidebar-apps .text-sm,
#main .text-sm,
#content .text-sm,
#header .text-sm {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

/* text-xs: en az ~13px (referans alt satır / ipucu) */
#nav-sidebar .text-xs,
#nav-sidebar-inner .text-xs,
#nav-sidebar-apps .text-xs,
#main .text-xs,
#content .text-xs {
  font-size: 0.875rem !important;
  line-height: 1.45 !important;
}

/* Yan menü: grup başlığı ve satır linkleri */
#nav-sidebar-apps h2 {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
}

#nav-sidebar-inner a,
#nav-sidebar-apps a {
  font-size: 1rem !important;
}

#nav-sidebar-inner a span,
#nav-sidebar-apps a span {
  font-size: inherit !important;
}

/* Üst başlık */
#main h1.overflow-hidden {
  font-size: 1.125rem !important;
  line-height: 1.4 !important;
}

/* Uygulama indeksi */
#content .module caption,
#content .module caption a.section {
  font-size: 1.0625rem !important;
}

#content th[scope="row"],
#content th[scope="row"] a {
  font-size: 1rem !important;
}

.change-list table,
#result_list {
  font-size: 1rem !important;
}

#main td,
#content td,
#main th[scope="col"],
.change-list thead th,
.change-list tbody td {
  font-size: 1rem !important;
}

#content label,
#main label,
form label {
  font-size: 1rem !important;
}

#content button:not([class*="material-symbols"]),
#main .button,
.submit-row input,
.submit-row button,
.object-tools a {
  font-size: 1rem !important;
}

#main p,
#content p,
#content li {
  font-size: 1rem !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  font-size: max(1rem, 16px) !important;
}

#main .text-xs.leading-relaxed {
  font-size: 0.875rem !important;
}
