/* Yasal sayfalar — ortak stil */
:root {
  --bg: #0F0F0F; --surface: #151515; --line: #4A4A4A;
  --green: #FE0000; --green-line: rgba(254, 0, 0, 0.45); --sub: #8E9BA0; --white: #FFFFFF;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: linear-gradient(168deg, #0C0C0C 0%, #0F0F0F 45%, #141010 100%);
  color: var(--white);
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
/* ana sitedeki biçilmiş çim şeritleri */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(90deg,
    transparent 0 110px,
    rgba(254, 0, 0, 0.020) 110px 220px);
}
.wrap { width: min(760px, 100% - 48px); margin-inline: auto; }
header {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: rgba(15, 15, 15, 0.6);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 24px; width: auto; display: block; }
.back {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem; letter-spacing: 0.14em;
  color: var(--sub); text-decoration: none;
  border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 14px;
  transition: color 0.2s, border-color 0.2s;
}
.back:hover { color: var(--green); border-color: var(--green-line); }
main { padding: 56px 0 80px; }
h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.updated {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 40px; display: block;
}
article { color: var(--sub); font-size: 0.96rem; }
article h2 { color: var(--white); font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.15rem; margin: 32px 0 10px; }
article p { margin-bottom: 14px; }
article ul, article ol { margin: 0 0 14px 22px; }
article strong { color: var(--white); }
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 0.88rem;
}
article td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  vertical-align: top;
}
article tr:first-child td { background: var(--surface); color: var(--white); font-weight: 500; }
footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.64rem; letter-spacing: 0.06em;
  color: var(--sub);
}

/* kunye tablosu: ilk satir baslik degil, etiket/deger cifti */
article table.kunye tr:first-child td { background: transparent; color: var(--sub); font-weight: 400; }
article table.kunye td:first-child { width: 36%; color: var(--white); }
article table.kunye td:first-child strong,
article table.kunye tr:first-child td strong { font-weight: 500; color: var(--white); }
@media (max-width: 560px) {
  article table { font-size: 0.82rem; }
  article td { padding: 8px 9px; }
  article table.kunye td:first-child { width: 42%; }
}

/* dar ekranda genis tablolar sayfayi degil kendi kutusunu kaydirsin */
.tablo-kaydir { overflow-x: auto; margin: 14px 0 20px; }
.tablo-kaydir > table { margin: 0; min-width: 100%; }


/* Ceviri notu: yalniz cevrilen sayfalarda, surum satirinin altinda. */
.ceviri-not {
  margin: .6rem 0 0; padding: .55rem .8rem;
  border-left: 2px solid #FE0000; border-radius: 0 .4rem .4rem 0;
  background: rgba(254, 0, 0, .06);
  font-size: .82rem; line-height: 1.55; color: #8E9BA0;
}
[dir="rtl"] .ceviri-not {
  border-left: 0; border-right: 2px solid #FE0000;
  border-radius: .4rem 0 0 .4rem;
}

/* Dil secici: ana sayfadakiyle ayni davranis, yasal sayfa olcegi. */
.ust-sag { display: flex; align-items: center; gap: 4px; }
.dil { position: relative; font-family: var(--fm, monospace); font-size: .68rem; }
.dil > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 44px; padding: 0 10px; color: #fff; letter-spacing: .1em;
}
.dil > summary::-webkit-details-marker { display: none; }
.dil > summary::after {
  content: ""; width: .34em; height: .34em; flex: none;
  border-right: .1em solid currentColor; border-bottom: .1em solid currentColor;
  rotate: 45deg; translate: 0 -.12em;
}
.dil > summary i { font-style: normal; }
.dil[open] > summary { color: #FE0000; }
.dil-mnu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 20;
  /* Mutlak konumda kutu, kapsayicisi (44px'lik summary) kadar
     daralip ogeleri ust uste bindiriyordu. */
  width: max-content; max-width: 84vw;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px; padding: 6px; border: 1px solid #262626; border-radius: 10px;
  background: #0B0B0B; box-shadow: 0 18px 34px -14px #000;
}
.dil-mnu a {
  display: flex; align-items: center; gap: .7em; white-space: nowrap;
  min-height: 44px; padding: 0 .8em; border-radius: 7px; color: #8E9BA0;
}
.dil-mnu a i { font-style: normal; color: #7F8C91; min-width: 1.6em; }
.dil-mnu a:hover { background: #151515; color: #fff; }
.dil-mnu a[aria-current] { background: #151515; color: #fff; }
.dil-mnu a[aria-current] i { color: #FE0000; }


/* Sagdan sola: yasal metinler duz metin, tablolar da cevrilir. */
[dir="rtl"] table { direction: rtl; }
[dir="rtl"] .tablo-kaydir { direction: rtl; }
