/*
 * Isparta Bilgisayar StockOS v1.5.02
 * Merkezi Tipografi Sistemi
 * Harici/embedded font içermez. Inter yalnız cihazda mevcutsa kullanılır;
 * aksi halde Segoe UI / sistem fontları / Helvetica Neue / Arial fallback olur.
 */
:root{
  --font-main:"Inter","Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  --text-xs:12px;
  --text-sm:14px;
  --text-md:16px;
  --text-lg:18px;
  --text-xl:20px;
  --text-2xl:24px;
  --text-3xl:28px;
  --text-4xl:32px;
  --line-tight:1.25;
  --line-normal:1.55;
  --line-relaxed:1.6;
  --weight-regular:400;
  --weight-medium:500;
  --weight-semibold:600;
  --weight-bold:700;
  --letter-normal:-.01em;
  --letter-heading:-.02em;
}

/* PUBLIC WEB + STOCKOS: tek font ailesi, harici font bağımlılığı yok. */
html,body,
body :where(button,input,select,textarea,optgroup),
body :where(.button,.btn,[role="button"]){
  font-family:"Inter","Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body{
  font-size:var(--text-md);
  font-weight:var(--weight-regular);
  line-height:var(--line-normal);
  letter-spacing:var(--letter-normal);
}

/* Ana içerik metinleri. Tablo, badge, nav ve kompakt bileşenler aşağıda ayrıştırılır. */
body :where(h1,h2,h3,h4,h5,h6,p,li,small,strong,b,label,a,blockquote,cite,th,td,.description,.text-content,.entry-content,.post-content,.meta,.caption,.help-text,.muted){
  font-family:var(--font-main)!important;
}

body :where(p,li,.description,.text-content,.entry-content,.post-content,.mxso-description,.mxso-copy,.mxso-text){
  font-size:var(--text-md)!important;
  font-weight:var(--weight-regular)!important;
  line-height:var(--line-relaxed)!important;
  letter-spacing:var(--letter-normal)!important;
}

body :where(small,.meta,.caption,.help-text,.muted,.description-small,.mxso-meta,.mxso-help,.mxso-muted,.mxso-subtitle){
  font-size:var(--text-sm)!important;
  font-weight:var(--weight-regular)!important;
  line-height:1.45!important;
  letter-spacing:var(--letter-normal)!important;
}

body :where(h1,.page-title,.mxso-page-title){
  font-size:clamp(24px,2.4vw,var(--text-4xl))!important;
  font-weight:var(--weight-bold)!important;
  line-height:var(--line-tight)!important;
  letter-spacing:var(--letter-heading)!important;
}
body :where(h2,.section-title,.mxso-section-title>h2,.mxso-section-title h2){
  font-size:clamp(22px,2vw,var(--text-3xl))!important;
  font-weight:var(--weight-bold)!important;
  line-height:1.3!important;
  letter-spacing:var(--letter-heading)!important;
}
body :where(h3,.card-title,.mxso-card-title){
  font-size:var(--text-xl)!important;
  font-weight:var(--weight-semibold)!important;
  line-height:1.35!important;
  letter-spacing:-.015em!important;
}
body :where(h4,.subtitle,.mxso-subtitle-title){
  font-size:var(--text-lg)!important;
  font-weight:var(--weight-semibold)!important;
  line-height:1.4!important;
  letter-spacing:-.012em!important;
}
body :where(h5,h6){
  font-weight:var(--weight-semibold)!important;
  line-height:1.4!important;
  letter-spacing:-.01em!important;
}

body :where(strong,b){font-weight:var(--weight-semibold)!important;}

/* Formlar / aksiyonlar: okunaklı, kompakt ve tek ritim. */
body :where(button,input,select,textarea,.btn,.button,.menu-link,.tab,[role="tab"],.mxso-button,.mxso-btn){
  font-size:var(--text-sm)!important;
  line-height:1.25!important;
}
body :where(button,.btn,.button,.menu-link,.tab,[role="tab"],.mxso-button,.mxso-btn){
  font-weight:var(--weight-semibold)!important;
  letter-spacing:-.005em!important;
}
body :where(input,select,textarea){
  font-weight:var(--weight-regular)!important;
  line-height:1.4!important;
}
body :where(label,.form-label,.mxso-form-label){
  font-size:var(--text-sm)!important;
  font-weight:var(--weight-semibold)!important;
  line-height:1.4!important;
}
body :where(input::placeholder,textarea::placeholder){
  font-family:"Inter","Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;
  font-weight:var(--weight-regular)!important;
}

/* Menü / sekme / sidebar */
body :where(nav a,.menu a,.menu-item>a,.mxso-sidebar a,.mxso-tabs a,.mxso-tabs button,.nav-tab,.mxso-nav-link){
  font-family:"Inter","Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;
  font-size:var(--text-sm)!important;
  font-weight:var(--weight-semibold)!important;
  line-height:1.3!important;
  letter-spacing:-.005em!important;
}

/* Kart ritmi: başlık net, açıklama sakin, meta ikincil. */
body :where(.card,.mxso-card,.mxso-panel,.mxso-stat-card,.mxso-kpi-card) :where(h3,.card-title,.mxso-card-title){
  font-size:var(--text-lg)!important;
  font-weight:var(--weight-semibold)!important;
  line-height:1.35!important;
}
body :where(.card,.mxso-card,.mxso-panel,.mxso-stat-card,.mxso-kpi-card) :where(p,.description,.mxso-description){
  font-size:var(--text-sm)!important;
  font-weight:var(--weight-regular)!important;
  line-height:1.55!important;
}
body :where(.card,.mxso-card,.mxso-panel,.mxso-stat-card,.mxso-kpi-card) :where(small,.meta,.caption,.mxso-meta){
  font-size:var(--text-xs)!important;
  font-weight:var(--weight-regular)!important;
  line-height:1.45!important;
}

/* Legacy kart adları da aynı ritme çekilir (mxstockos-public-card vb.). */
body :where([class*="-card"],[class*="_card"]) :where(h3,.card-title,.mxso-card-title){
  font-size:var(--text-lg)!important;
  font-weight:var(--weight-semibold)!important;
  line-height:1.35!important;
}
body :where([class*="-card"],[class*="_card"]) :where(p,.description,.mxso-description){
  font-size:var(--text-sm)!important;
  font-weight:var(--weight-regular)!important;
  line-height:1.55!important;
}
body :where([class*="-meta"],[class*="_meta"],[class*="-help"],[class*="_help"],[class*="-hint"],[class*="_hint"],[class*="-caption"],[class*="_caption"],[class*="-note"],[class*="_note"]){
  font-size:var(--text-sm)!important;
  font-weight:var(--weight-regular)!important;
  line-height:1.45!important;
}
body :where([class*="-kicker"],[class*="_kicker"],[class*="-eyebrow"],[class*="_eyebrow"]){
  font-size:var(--text-xs)!important;
  font-weight:var(--weight-semibold)!important;
  line-height:1.3!important;
}

/* Müşteri panelindeki eski 10/10.5px yardımcı metinler okunabilir tabana alınır. */
body.mxso-customer-portal-body-v1423 :where(.mxso-customer-devices-v1445,.mxso-customer-documents-v1445) :where(span,small,a){
  font-size:var(--text-sm)!important;
  line-height:1.45!important;
}

/* Tablolar: daha kompakt fakat okunabilir. */
body :where(table,.mxso-table){
  font-family:"Inter","Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;
  font-size:var(--text-sm)!important;
  line-height:1.45!important;
}
body :where(table,.mxso-table) :where(th){
  font-size:13px!important;
  font-weight:var(--weight-semibold)!important;
  line-height:1.35!important;
  letter-spacing:-.004em!important;
}
body :where(table,.mxso-table) :where(td){
  font-size:var(--text-sm)!important;
  font-weight:var(--weight-regular)!important;
  line-height:1.45!important;
  letter-spacing:-.006em!important;
}
body :where(table,.mxso-table) :where(td strong,td b){font-weight:var(--weight-semibold)!important;}

/* Rozet / durum / sayaç */
body :where(.badge,.mxso-badge,[class*="-badge"],[class*="-pill"],.status,.mxso-status){
  font-family:"Inter","Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;
  font-size:var(--text-xs)!important;
  font-weight:var(--weight-semibold)!important;
  line-height:1.25!important;
  letter-spacing:0!important;
}

/* Modal / popup / drawer */
body :where(.modal,.dialog,[role="dialog"],[class*="modal"],[class*="drawer"]) :where(h2,h3){
  font-weight:var(--weight-semibold)!important;
  letter-spacing:-.015em!important;
}
body :where(.modal,.dialog,[role="dialog"],[class*="modal"],[class*="drawer"]) :where(p,.description){
  font-size:var(--text-sm)!important;
  font-weight:var(--weight-regular)!important;
  line-height:1.55!important;
}

/* MX ASİSTAN / sohbet: konuşma metni doğal ve rahat okunur. */
body :where(.mxso-customer-ai-v1480,.mxso-customer-ai-panel-v1480,[class*="customer-ai"],[class*="cai-"]) {
  font-family:"Inter","Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;
}
body :where(.mxso-customer-ai-panel-v1480,[class*="customer-ai"]) :where(header strong,h3){
  font-size:16px!important;
  font-weight:var(--weight-semibold)!important;
  line-height:1.3!important;
}
body :where(.mxso-customer-ai-panel-v1480,[class*="customer-ai"]) :where(header small,header span,footer span,.mxso-cai-voice-status-v1486){
  font-size:12px!important;
  font-weight:var(--weight-regular)!important;
  line-height:1.4!important;
}
body :where(.mxso-customer-ai-messages-v1480,[class*="assistant-message"],[class*="chat-message"]) :where(p,span,div){
  font-size:14px!important;
  font-weight:var(--weight-regular)!important;
  line-height:1.55!important;
}
body :where(.mxso-customer-ai-panel-v1480,[class*="customer-ai"]) :where(button,input,textarea){
  font-size:14px!important;
}

/* MX Asistan Merkezi: eski özel font zorlamalarını kesin olarak etkisizleştir. */
body.mxso-ai-app-v1476,
body.mxso-ai-app-v1476 *{
  font-family:"Inter","Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;
}
body.mxso-ai-app-v1476 :where(p,input,select,textarea){font-weight:var(--weight-regular)!important;}
body.mxso-ai-app-v1476 :where(button,.button,nav a,label,strong,b,h1,h2,h3,h4){font-weight:var(--weight-semibold)!important;}
body.mxso-ai-app-v1476 :where(h1){font-size:clamp(24px,2.4vw,32px)!important;}
body.mxso-ai-app-v1476 :where(h2){font-size:clamp(22px,2vw,28px)!important;}
body.mxso-ai-app-v1476 :where(h3){font-size:18px!important;}
body.mxso-ai-app-v1476 nav a{font-size:14px!important;}
body.mxso-ai-app-v1476 .mxso-ai-app-topbar-v1476 strong{font-size:15px!important;font-weight:var(--weight-semibold)!important;}
body.mxso-ai-app-v1476 .mxso-ai-app-topbar-v1476 small{font-size:12px!important;}

/* Müşteri / teknik servis / ürün / katalog yüzeyleri */
body.mxso-customer-portal-body-v1423,
body.mxso-tech-body-v1430,
body.mxso-product-detail-page-v1415,
body.mxso-field-body,
body.mxso-mgmt-body,
body.mxso-standalone,
body[class*="ypwf-"]{
  font-family:"Inter","Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;
  font-size:var(--text-md);
  font-weight:var(--weight-regular);
  line-height:var(--line-normal);
}
body.mxso-customer-portal-body-v1423 *,
body.mxso-tech-body-v1430 *,
body.mxso-product-detail-page-v1415 *,
body.mxso-field-body *,
body.mxso-mgmt-body *,
body.mxso-standalone *,
body[class*="ypwf-"] *{
  font-family:"Inter","Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;
}

/* Depo / saha uygulaması: çok küçük metinleri okunabilir tabana getir. */
body[class*="ypwf-"] :where(p,li){font-size:15px!important;line-height:1.55!important;font-weight:400!important;}
body[class*="ypwf-"] :where(label,button,input,select,textarea,a){font-size:14px!important;}
body[class*="ypwf-"] :where(small,.ypwf-menu-section-title){font-size:12px!important;line-height:1.4!important;}
body[class*="ypwf-"] :where(h1){font-size:clamp(24px,2.4vw,32px)!important;font-weight:700!important;}
body[class*="ypwf-"] :where(h2){font-size:clamp(22px,2vw,28px)!important;font-weight:700!important;}
body[class*="ypwf-"] :where(h3){font-size:18px!important;font-weight:600!important;}

/* Yönetim merkezi: eski 800/850 ağırlıkları normalize edilir. */
body.mxso-mgmt-body :where(.mxso-mgmt-kicker,.mxso-mgmt-hero-badges span,.mxso-mgmt-indicator span,.mxso-mgmt-mini-stats em){
  font-weight:var(--weight-medium)!important;
}
body.mxso-mgmt-body :where(.mxso-mgmt-indicator strong,.mxso-mgmt-mini-stats strong,.mxso-mgmt-daily-pill strong){
  font-weight:var(--weight-semibold)!important;
}
body.mxso-mgmt-body .mxso-mgmt-hero h1{font-size:clamp(24px,2.4vw,32px)!important;font-weight:700!important;line-height:1.25!important;}
body.mxso-mgmt-body .mxso-mgmt-hero p{font-size:15px!important;line-height:1.58!important;font-weight:400!important;}

/* WordPress StockOS admin wrapper'larında legacy özel font/850 kurallarını bastır. */
body.wp-admin :where(.mxso-wrap,.mxso-shell,[data-mxso-panel],[class^="mxso-"],[class*=" mxso-"]) :where(p,li){
  font-weight:var(--weight-regular)!important;
}
body.wp-admin :where(.mxso-wrap,.mxso-shell,[data-mxso-panel],[class^="mxso-"],[class*=" mxso-"]) :where(button,.button,a.button,label,th,strong,b){
  font-weight:var(--weight-semibold)!important;
}

/* Koyu zeminlerde okunabilirlik. Yalnız metin semantiği; renkli badge/status yapıları korunur. */
body :where(.is-dark,.mxso-force-blue-hero,.mxso-mgmt-hero,.mxso-standalone-bar,.mxso-dashboard-corporate-hero,.mxso-dashboard-hero-v1143,.mxso-operation-hero,.mxso-command-hero,.mxso-command-smart-hero,.mxso-notification-manager-hero) :where(h1,h2,h3,h4,p,.description,.subtitle,small,.meta){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Linkler font mirasını bozmamalı. */
body a{font-family:var(--font-main)!important;}


/* Kod/terminal çıktıları için okunabilir monospace semantiği korunur. */
body :where(code,pre,kbd,samp,.code,.monospace){
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace!important;
  letter-spacing:0!important;
}

/* Login: yalnız font/ölçek; WordPress yerleşimi değiştirilmez. */
body.login,
body.login :where(input,button,.button,label,p,a){font-family:"Inter","Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;}
body.login{font-size:15px;line-height:1.55;}
body.login label{font-size:14px!important;font-weight:600!important;}
body.login :where(input,.button){font-size:14px!important;}

/* Mobil: daha kompakt fakat 14px altına ana kullanım metni düşürülmez. */
@media(max-width:768px){
  body{font-size:15px;line-height:1.55;}
  body :where(h1,.page-title,.mxso-page-title){font-size:24px!important;}
  body :where(h2,.section-title,.mxso-section-title>h2,.mxso-section-title h2){font-size:22px!important;}
  body :where(h3,.card-title,.mxso-card-title){font-size:18px!important;}
  body :where(p,li,.description,.text-content,.entry-content,.post-content,.mxso-description,.mxso-copy,.mxso-text){font-size:15px!important;line-height:1.58!important;}
  body :where(button,input,select,textarea,.btn,.button,.menu-link,.tab,[role="tab"],.mxso-button,.mxso-btn){font-size:14px!important;}
  body :where(table,.mxso-table) :where(td){font-size:13px!important;line-height:1.4!important;}
  body :where(table,.mxso-table) :where(th){font-size:12px!important;}
  body :where(.card,.mxso-card,.mxso-panel,.mxso-stat-card,.mxso-kpi-card) :where(p,.description,.mxso-description){font-size:14px!important;line-height:1.52!important;}
}

/* Tek sayfa A4 belgeler bu global ölçekten büyütülmez; yalnız font ailesi merkezileştirilir. */
body.mxso-a4-body-v146,
body.mxso-a4-body-v146 *{font-family:"Inter","Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;}

/* WordPress ikon fontlarını tipografi standardının dışında tut. */
html body .dashicons,
html body [class^="dashicons-"],
html body [class*=" dashicons-"]{
  font-family:dashicons!important;
  font-weight:400!important;
  font-style:normal!important;
}
