/* K-075 (Sinan 2026-11-11) — politika paneli ek stilleri. masttech-ds.css'e dokunulmaz; policies.js bu dosyayı yükler.
   1) AUTO-H: pencere header altı ile footer üstü arasına sığar (değerler policies.js fitBox() ile her çözünürlükte hesaplanır).
   2) Orijinal Türkçe PDF: sol barın en altında kırmızı çerçeveli düğme (eski "Kaynak: orijinal PDF" footer linki kaldırıldı).
   3) Kariyer sayfasındaki İnsan Kaynakları Politikası bağlantısı (.mt-ik-pol). */

/* 1) auto H */
.mt-pol.is-autoh { position: fixed; inset: var(--pol-top, 16px) 0 auto 0; margin: 0 auto;
  height: var(--pol-h, calc(100dvh - 32px)); max-height: var(--pol-h, calc(100dvh - 32px)); }
.mt-pol.is-autoh .mt-pol__shell { flex: 1 1 auto; min-height: 0; }

/* 1b) yazı / cümle kesmeleri (Sinan 11.11 "gerekirse genişliği arttır, yerimiz var"): pencere genişler, metin
   sütunundaki 72ch sınırı kalkar; satır sonları tarayıcının dengeli kırılımıyla (tek kelime yetim kalmaz). Metin aynı. */
@media (min-width: 861px) {
  .mt-pol { width: min(1280px, calc(100vw - 48px)); }
  .mt-pol__body { padding-right: 48px; }
  [dir="rtl"] .mt-pol__body { padding-right: 40px; padding-left: 48px; }
}
.mt-pol__body p, .mt-pol__ul { max-width: none; }
.mt-pol__body p, .mt-pol__ul li { text-wrap: pretty; hyphens: manual; overflow-wrap: normal; }
.mt-pol h2.mt-pol__title, .mt-pol__note { text-wrap: balance; }

/* 2) sol bar: PDF düğmesi en altta */
.mt-pol__nav { display: flex; flex-direction: column; }
.mt-pol__list { flex: 0 0 auto; }
.mt-pol a.mt-pol__pdf { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; margin: auto 0 0; min-height: 44px;
  padding: 10px 14px; border: 2px solid var(--mt-red, #E3010F); border-radius: 6px; background: transparent;
  color: #fff !important; font: 600 13px/1.25 'Roboto', Arial, sans-serif !important; letter-spacing: .03em !important;
  text-transform: none !important; text-decoration: none !important; text-align: center; transition: background .15s, color .15s; }
.mt-pol a.mt-pol__pdf:hover { background: var(--mt-red, #E3010F); color: #fff !important; }
.mt-pol a.mt-pol__pdf:focus-visible { outline: 3px solid #fff; outline-offset: 2px; background: var(--mt-red, #E3010F); }
.mt-pol__list + .mt-pol__pdf { margin-top: auto; }
.mt-pol__nav > .mt-pol__list { margin-bottom: 20px; }

/* imzalayan: diğer politikalarla aynı yazım (PDF'teki tarihsel unvan, büyük harf) */
.mt-pol__sign strong { text-transform: uppercase; }
.mt-pol__sign:lang(ar) strong { text-transform: none; }

@media (max-width: 860px) {
  .mt-pol.is-autoh { width: calc(100vw - 16px); }
  .mt-pol__nav > .mt-pol__list { margin-bottom: 8px; }
  .mt-pol a.mt-pol__pdf { margin: 0; min-height: 40px; padding: 8px 12px; font-size: 12.5px !important; }
}

/* 3) Kariyer > İnsan Kaynakları Politikası kompakt yatay kart */
.mt-ik-pol { max-width: 1140px; margin: 20px auto 32px; padding: 0 20px; box-sizing: border-box; }
.mt-ik-pol__in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 20px; flex-wrap: wrap;
  padding: 14px 20px; border: 1px solid #E4E6EA; border-left: 4px solid var(--mt-red, #E3010F);
  border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.03); box-sizing: border-box;
}
.mt-ik-pol__left { display: flex; align-items: center; gap: 14px; flex: 1 1 500px; min-width: 0; }
.mt-ik-pol__icon-wrap {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 6px; background: #F8F9FA; border: 1px solid #E4E6EA; color: var(--mt-red, #E3010F);
}
.mt-ik-pol__ico { display: block; width: 22px; height: 22px; }
.mt-ik-pol__info { min-width: 0; }
.mt-ik-pol__t { margin: 0; font: 600 15px/1.3 'Roboto', Arial, sans-serif; color: #141414; letter-spacing: -0.01em; }
.mt-ik-pol__d { margin: 2px 0 0; font: 400 13px/1.45 'Roboto', Arial, sans-serif; color: #4B5563; }
.mt-ik-pol__meta { display: inline-block; margin-top: 3px; font: 500 11.5px/1.3 'Roboto', Arial, sans-serif; color: #6B7280; letter-spacing: 0.02em; }
.mt-ik-pol__right { flex-shrink: 0; }
a.mt-ik-pol__a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 18px;
  border: 2px solid var(--mt-red, #E3010F); border-radius: 6px; background: transparent;
  color: #141414 !important; font: 600 13.5px/1.2 'Roboto', Arial, sans-serif; text-decoration: none !important;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
a.mt-ik-pol__a:hover, a.mt-ik-pol__a:focus-visible { background: var(--mt-red, #E3010F); color: #fff !important; }
a.mt-ik-pol__a:focus-visible { outline: 3px solid #141414; outline-offset: 2px; }
a.mt-ik-pol__a:hover .mt-ik-pol__ok { stroke: #fff; }
.mt-ik-pol__ok { flex-shrink: 0; stroke: currentColor; transition: transform .15s ease; }
a.mt-ik-pol__a:hover .mt-ik-pol__ok { transform: translateX(2px); }

[dir="rtl"] .mt-ik-pol__in { border-left: 1px solid #E4E6EA; border-right: 4px solid var(--mt-red, #E3010F); }
[dir="rtl"] .mt-ik-pol__ok { transform: scaleX(-1); }
[dir="rtl"] a.mt-ik-pol__a:hover .mt-ik-pol__ok { transform: scaleX(-1) translateX(2px); }

@media (max-width: 720px) {
  .mt-ik-pol { margin: 16px auto 24px; padding: 0 16px; }
  .mt-ik-pol__in { padding: 14px 16px; flex-direction: column; align-items: stretch; gap: 12px; }
  .mt-ik-pol__left { align-items: flex-start; gap: 12px; }
  .mt-ik-pol__right { width: 100%; }
  a.mt-ik-pol__a { width: 100%; box-sizing: border-box; }
}

/* 4) Orijinal PDF penceresi (site içinde, politika penceresiyle aynı konum/ölçü; PDF sayfaya sığacak ölçekte) */
.mt-pol.mt-pol-pdf[open] { display: flex; flex-direction: column; background: #3A3D42; }
.mt-pol-pdf__head { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 72px 12px 24px;
  background: #1A1D21; color: #fff; border-top: 3px solid var(--mt-red, #E3010F); flex: 0 0 auto; }
.mt-pol-pdf .mt-pol-pdf__title { margin: 0; flex: 1 1 auto; min-width: 0; font: 600 15px/1.3 'Roboto', Arial, sans-serif; color: #fff; letter-spacing: .02em; }
.mt-pol-pdf a.mt-pol-pdf__dl { flex: 0 0 auto; padding: 8px 12px; border: 2px solid var(--mt-red, #E3010F); border-radius: 6px;
  color: #fff !important; font: 600 12.5px/1.2 'Roboto', Arial, sans-serif !important; text-decoration: none !important; white-space: nowrap; }
.mt-pol-pdf a.mt-pol-pdf__dl:hover, .mt-pol-pdf a.mt-pol-pdf__dl:focus-visible { background: var(--mt-red, #E3010F); }
.mt-pol-pdf .mt-pol__x { top: 50%; transform: translateY(-50%); background: #fff; }
.mt-pol-pdf__frame { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: #525659; }
.mt-pol-pdf__fb { margin: 0; padding: 8px 24px; flex: 0 0 auto; background: #1A1D21; color: rgba(255,255,255,.6); font-size: 12px; }
[dir="rtl"] .mt-pol-pdf__head { padding: 12px 24px 12px 72px; }
@media (max-width: 860px) { .mt-pol-pdf__head { padding: 10px 64px 10px 14px; flex-wrap: wrap; } [dir="rtl"] .mt-pol-pdf__head { padding: 10px 14px 10px 64px; } }

/* Sinan 11.11 12:23: İK politikası düğmesi "İncele / View / عرض / Ansehen" + küçük ok ikonu (AR'de sola bakar) */
.mt-ik-pol__a { display: inline-flex; align-items: center; gap: 8px; }
.mt-ik-pol__ok { flex: 0 0 auto; width: 14px; height: 14px; transition: transform .15s ease; }
.mt-ik-pol__a:hover .mt-ik-pol__ok, .mt-ik-pol__a:focus-visible .mt-ik-pol__ok { transform: translateX(2px); }
[dir="rtl"] .mt-ik-pol__ok { transform: scaleX(-1); }
[dir="rtl"] .mt-ik-pol__a:hover .mt-ik-pol__ok, [dir="rtl"] .mt-ik-pol__a:focus-visible .mt-ik-pol__ok { transform: scaleX(-1) translateX(2px); }
@media (prefers-reduced-motion: reduce) { .mt-ik-pol__ok { transition: none; } }

/* 5) POL-ORTA (Sinan 2026-11-12): pencere ekranın tam ortasında (yatay + dikey). Yükseklik içeriğe göre (fit-content),
   altta boş beyaz alan kalmaz; üst sınır --pol-h = ekran − 2×boşluk (policies.js fitBox), aşan metin pencere içinde kayar.
   Politikalar arası geçişte yükseklik policies.js animH() ile yumuşak değişir. PDF penceresi aynı merkezde, tam --pol-h. */
.mt-pol.is-autoh { inset: 0; margin: auto; max-height: var(--pol-h, calc(100dvh - 32px)); }
.mt-pol.is-autoh:not(.mt-pol-pdf) { height: fit-content; }
.mt-pol.is-resizing { transition: height .24s cubic-bezier(.2, 0, 0, 1); }
.mt-pol.is-resizing, .mt-pol.is-resizing .mt-pol__body { overflow: hidden; }

/* 6) POL-OK v2 (Sinan 2026-11-12): politika geçiş düğmeleri sağ altta ÜST ÜSTE: üstte geri (yukarı ok), altta ileri
   (aşağı ok). Sade ama güçlü: dolu zemin, kalın beyaz ok, halka/parıltı yok; yalnız hafif gölge. İleri = kırmızı dolu
   (birincil), geri = koyu dolu (ikincil). Durumlar: default / hover / active / disabled. Açık ve koyu tema. AR'de aynalama yok. */
.mt-pol__foot { flex-wrap: nowrap; align-items: center; padding-right: 24px; }
.mt-pol__sign { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; white-space: normal; }
.mt-pol__sign > * { white-space: nowrap; }
.mt-pol .mt-pol__pager { flex-direction: column; gap: 8px; flex: 0 0 auto; margin-left: auto; }
[dir="rtl"] .mt-pol__foot { padding-right: 40px; padding-left: 24px; }
[dir="rtl"] .mt-pol .mt-pol__pager { margin-left: 0; margin-right: auto; }
.mt-pol .mt-pol__pager > .mt-pol__pg { box-sizing: border-box; display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; transform: none; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 6px rgba(20, 22, 26, .22); transition: background-color .15s ease, color .15s ease, transform .1s ease; }
.mt-pol .mt-pol__pager > .mt-pol__pg svg, [dir="rtl"] .mt-pol .mt-pol__pager > .mt-pol__pg svg { display: block; width: 22px; height: 22px; transform: none; pointer-events: none; }
.mt-pol .mt-pol__pager > .mt-pol__pg--next { background: #E3010F; color: #fff; }
.mt-pol .mt-pol__pager > .mt-pol__pg--prev { background: #1A1D21; color: #fff; }
.mt-pol .mt-pol__pager > .mt-pol__pg--next:hover:not(:disabled) { background: #B8000C; }
.mt-pol .mt-pol__pager > .mt-pol__pg--prev:hover:not(:disabled) { background: #E3010F; }
.mt-pol .mt-pol__pager > .mt-pol__pg:active:not(:disabled) { transform: scale(.93); }
.mt-pol .mt-pol__pager > .mt-pol__pg:focus-visible { outline: 2px solid #E3010F; outline-offset: 3px; }
.mt-pol .mt-pol__pager > .mt-pol__pg:disabled { cursor: not-allowed; opacity: 1; background: #8A9099; color: #fff; box-shadow: none; }
/* koyu tema: geri düğmesi koyu pencerede kaybolmasın diye orta gri dolgu */
html[data-theme="dark"] .mt-pol .mt-pol__pager > .mt-pol__pg { border: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .mt-pol .mt-pol__pager > .mt-pol__pg--next { background: #E3010F; color: #fff; }
html[data-theme="dark"] .mt-pol .mt-pol__pager > .mt-pol__pg--prev { background: #3A3E44; color: #fff; }
html[data-theme="dark"] .mt-pol .mt-pol__pager > .mt-pol__pg--next:hover:not(:disabled) { background: #FF1E2B; color: #fff; }
html[data-theme="dark"] .mt-pol .mt-pol__pager > .mt-pol__pg--prev:hover:not(:disabled) { background: #E3010F; color: #fff; }
html[data-theme="dark"] .mt-pol .mt-pol__pager > .mt-pol__pg:disabled { background: #4A4F57; color: #C9CDD2; box-shadow: none; }
@media (max-width: 860px) {
  .mt-pol__foot { padding: 12px 16px 12px 18px; gap: 10px 14px; }
  [dir="rtl"] .mt-pol__foot { padding: 12px 18px 12px 16px; }
}
@media (prefers-reduced-motion: reduce) { .mt-pol .mt-pol__pager > .mt-pol__pg { transition: none; } }
