/* Bozkurt Dosyası
   Renk mantığı: gök (Kök Türk) gecesi zemin, altın = Türk mirası (Zhoushu'daki altın kurt başlı sancak),
   kırmızı mühür = yalnızca yasak/fesih belgeleri. Kağıt = resmî belgenin kendisi. */

:root {
  --box-pad: clamp(20px, 2.8vw, 40px);
  --night-0: #070d17;
  --night-1: #0d1828;
  --night-2: #15243a;
  --line: rgba(236, 228, 210, 0.14);
  --line-strong: rgba(236, 228, 210, 0.3);
  --bone: #ece4d2;
  --bone-2: #bdb6a6;
  --bone-3: #908b80;
  --gold: #d6a650;
  --gold-2: #a8792b;
  --seal: #b8332a;
  --seal-light: #e2604f;
  --paper: #ebe3cf;
  --paper-2: #ddd2b8;
  --ink: #1a2130;
  --ink-2: #4b505a;

  --f-display: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
  --f-text: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --f-rune: 'Noto Sans Old Turkic', sans-serif;

  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1320px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 80% at 70% 0%, #1a2c47 0%, rgba(13, 24, 40, 0) 60%),
    radial-gradient(90% 60% at 10% 100%, #0f1d31 0%, rgba(7, 13, 23, 0) 70%),
    var(--night-1);
  background-attachment: fixed;
  color: var(--bone);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'kern', 'liga';
  overflow-x: hidden;
}

/* film greni: dijital düzlüğü kırar */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

[id] {
  scroll-margin-top: 90px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--night-0);
}

.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--night-0);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

[lang='otk'] {
  font-family: var(--f-rune);
  direction: rtl;
  unicode-bidi: isolate;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* ---------- açılış ekranı ----------
   İki yarım aynı yüzü taşır ve ortadan kırpılır; çıkışta taş tablet gibi ayrılırlar. */

html.is-loading {
  overflow: hidden;
}
.loader {
  display: none;
}
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: block;
}
.loader-skip .loader {
  display: none;
}
.loader-half {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(80% 65% at 50% 50%, #15253b 0%, #0c1626 55%, #070d17 100%);
  will-change: transform;
}
.loader-top {
  clip-path: inset(0 0 50% 0);
}
.loader-bottom {
  clip-path: inset(50% 0 0 0);
}
/* ayrılan kenarların altın yalazı */
.loader-half::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 166, 80, 0.55) 30%, rgba(214, 166, 80, 0.55) 70%, transparent);
}
.loader-top::after {
  transform: translateY(-1px);
}
.loader-face {
  position: absolute;
  inset: 0;
  animation: loader-in 1.2s var(--ease) both;
}
@keyframes loader-in {
  from {
    opacity: 0;
  }
}
.loader-runes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(50% + clamp(22px, 4vh, 40px));
  margin: 0;
  text-align: center;
  font-size: clamp(3.4rem, 13vw, 8.5rem);
  line-height: 1;
  letter-spacing: 0.2em;
  padding-left: 0.2em;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.runes-ready .loader-runes {
  opacity: 1;
}
.loader .rune {
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 228, 210, 0.4);
  transform: translateY(0.05em);
  transition:
    color 0.8s var(--ease),
    -webkit-text-stroke-color 0.8s var(--ease),
    text-shadow 1.2s var(--ease),
    transform 0.8s var(--ease);
}
.loader .rune.is-cut {
  color: var(--gold);
  -webkit-text-stroke-color: rgba(244, 206, 130, 0.95);
  text-shadow:
    0 0 2px rgba(255, 232, 186, 0.7),
    0 0 32px rgba(214, 166, 80, 0.5);
  transform: none;
}
.loader-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 2;
  width: min(560px, 74vw);
  height: 1px;
  margin: -0.5px auto 0;
  background: rgba(236, 228, 210, 0.16);
}
.loader-line span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  box-shadow: 0 0 10px rgba(214, 166, 80, 0.55);
}
.loader-translit {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + clamp(22px, 3.6vh, 36px));
  margin: 0;
  text-align: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  letter-spacing: 0.02em;
}
.loader-note {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + clamp(66px, 9vh, 92px));
  max-width: 36ch;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--bone-3);
}
.loader-brand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(24px, 5vh, 44px);
  margin: 0;
  text-align: center;
  font-family: var(--f-display);
  font-size: 0.98rem;
  color: var(--bone-2);
}

/* ---------- üst bar ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(9, 17, 29, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}
.brand-rune {
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}
.brand-name {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
}
.nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--bone-2);
  padding: 6px 0;
  transition: color 0.25s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
.nav a:hover,
.nav a.is-active {
  color: var(--bone);
}
.nav a.is-active::after,
.nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--bone);
  font: inherit;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 2px;
  cursor: pointer;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang {
  display: flex;
  gap: 2px;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}
.lang a {
  padding: 6px 7px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--bone-3);
  transition: color 0.25s;
}
.lang a:hover {
  color: var(--bone);
}
.lang a[aria-current='page'] {
  color: var(--gold);
}

/* ---------- butonlar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 2px;
  font: 600 0.98rem/1 var(--f-text);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--gold);
  color: var(--night-0);
}
.btn-primary:hover {
  background: #e4b867;
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--bone);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 140px var(--gutter) clamp(48px, 9vh, 110px);
  max-width: var(--maxw);
  margin-inline: auto;
}

.hero-copy {
  max-width: 760px;
}

.hero-title {
  margin: 0 0 28px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(3.3rem, 8.4vw, 8.6rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 96;
}
html:lang(de) .hero-title,
html:lang(en) .hero-title {
  font-size: clamp(2.6rem, 7vw, 7.4rem);
}
/* Almanca başlığın son satırı ("jede Organisation.") en uzunu */
html:lang(de) .hero-title {
  font-size: clamp(2.5rem, 5.8vw, 6.4rem);
}
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}
html:lang(de) h2,
html:lang(de) h3,
html:lang(de) h4 {
  -webkit-hyphens: auto;
  hyphens: auto;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero-title .line > span {
  display: inline-block;
}

.hero-lead {
  max-width: 54ch;
  margin: 0 0 34px;
  font-size: clamp(1.08rem, 1.4vw, 1.26rem);
  line-height: 1.6;
  color: var(--bone-2);
}
.hero-lead strong {
  color: var(--bone);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* müze etiketi: partikül kurdun künyesi */
.museum-label {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(48px, 9vh, 110px);
  margin: 0;
  width: 270px;
  padding-top: 14px;
  border-top: 1px solid var(--gold);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--bone-2);
}
.museum-label strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--bone);
  margin-bottom: 4px;
}
.museum-label .rune {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

/* ---------- bölümler ---------- */

.chapter {
  position: relative;
  padding-bottom: clamp(80px, 14vh, 180px);
}

.chapter-intro {
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  padding-block: 120px;
}
.chapter-intro > .intro-copy {
  grid-column: 1 / span 6;
}
.chapter-intro.text-right > .intro-copy {
  grid-column: 7 / span 6;
}
.chapter-intro.text-wide > .intro-copy {
  grid-column: 1 / span 8;
}

.chapter-rune {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-align: left;
}
.chapter-rune small {
  font-family: var(--f-text);
  direction: ltr;
  font-size: 0.85rem;
  letter-spacing: 0;
  color: var(--bone-3);
  margin-inline-start: 12px;
}

.chapter h2 {
  margin: 0 0 26px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.7rem, 6.2vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 96;
  text-wrap: balance;
}

.chapter-lead {
  max-width: 56ch;
  margin: 0;
  font-size: clamp(1.06rem, 1.3vw, 1.22rem);
  color: var(--bone-2);
}
.chapter-lead + .chapter-lead {
  margin-top: 1em;
}

.block-title {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.block-sub {
  margin: 0 0 40px;
  max-width: 62ch;
  color: var(--bone-2);
}

/* ---------- zaman tüneli ---------- */

.timeline {
  position: relative;
  overflow: hidden;
}
@media (min-width: 901px) {
  .timeline {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 70px;
  }
}
.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 0 var(--gutter);
}
.tl-head h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
}
.tl-track {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  padding: 40px var(--gutter) 60px;
  width: max-content;
}
.tl-item {
  position: relative;
  width: min(420px, 82vw);
  flex: 0 0 auto;
  padding: 26px 0 0;
  border-top: 1px solid var(--line-strong);
}
.tl-item::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
}
.tl-year {
  margin: 0 0 14px;
  font-family: var(--f-display);
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 0.9;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
}
.tl-year small {
  font-family: var(--f-text);
  font-size: 0.9rem;
  letter-spacing: 0;
  color: var(--bone-3);
  margin-inline-start: 8px;
}
.tl-item h3 {
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.tl-item p {
  margin: 0 0 12px;
  color: var(--bone-2);
}
.tl-item blockquote,
.europe-item blockquote {
  margin: 16px 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--gold-2);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--bone);
}
.tl-item blockquote .orig,
.europe-item blockquote .orig {
  display: block;
  margin-bottom: 6px;
  font-style: normal;
  color: var(--gold);
}
.tl-source {
  font-size: 0.85rem;
  color: var(--bone-3) !important;
}
.tl-figure {
  margin: 0 0 18px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--night-2);
  border: 1px solid var(--line);
}
.tl-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
}
.tl-figure figcaption {
  font-size: 0.75rem;
  color: var(--bone-3);
  padding: 6px 0 0;
}
.tl-item.is-modern .tl-year {
  color: var(--seal-light);
}
.tl-item.is-modern::before {
  background: var(--seal-light);
}

.tl-hint {
  padding: 0 var(--gutter);
  font-size: 0.9rem;
  color: var(--bone-3);
}

/* ---------- durum tablosu ---------- */

.status-board {
  margin: 0 0 clamp(70px, 10vh, 120px);
}
.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  background: rgba(9, 17, 29, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.status-table caption {
  text-align: left;
  padding-bottom: 18px;
}
.status-table th,
.status-table td {
  text-align: left;
  vertical-align: top;
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--line);
}
.status-table th:first-child,
.status-table td:first-child {
  padding-left: 20px;
}
.status-table thead th {
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--bone-3);
  border-bottom-color: var(--line-strong);
}
.status-table tbody th {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.35rem;
  white-space: nowrap;
}
.status-table td small {
  display: block;
  margin-top: 6px;
  color: var(--bone-3);
  font-size: 0.85rem;
  line-height: 1.45;
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.chip-ban {
  color: var(--seal-light);
}
.chip-free {
  color: #9cc3a0;
}
.chip-watch {
  color: var(--gold);
}

/* ---------- belge arşivi ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 36px;
  border-bottom: 1px solid var(--line);
}
.tab {
  position: relative;
  background: none;
  border: 0;
  color: var(--bone-2);
  font: 500 1rem/1 var(--f-text);
  padding: 14px 18px 16px;
  cursor: pointer;
}
.tab .count {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--bone-3);
}
.tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.tab[aria-selected='true'] {
  color: var(--bone);
}
.tab[aria-selected='true']::after {
  transform: scaleX(1);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 52px);
  perspective: 1400px;
}

.doc {
  --rot: -0.6deg;
  position: relative;
  padding: clamp(26px, 3vw, 40px);
  background:
    repeating-linear-gradient(0deg, rgba(26, 33, 48, 0.035) 0 1px, transparent 1px 30px),
    linear-gradient(160deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--ink);
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 40px 70px -30px rgba(0, 0, 0, 0.75),
    0 12px 24px -12px rgba(0, 0, 0, 0.5);
  transform: rotate(var(--rot));
  transform-style: preserve-3d;
  transition: box-shadow 0.4s var(--ease);
  will-change: transform;
}
.doc:nth-child(2n) {
  --rot: 0.5deg;
}
.doc:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 60px 90px -30px rgba(0, 0, 0, 0.8),
    0 18px 30px -12px rgba(0, 0, 0, 0.5);
}

.doc-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(26, 33, 48, 0.2);
  font-size: 0.88rem;
  color: var(--ink-2);
  padding-right: 120px;
}
.doc-head .doc-country {
  font-weight: 600;
  color: var(--ink);
}
.doc-kind {
  font-style: italic;
}

.stamp {
  position: absolute;
  top: clamp(20px, 2.4vw, 30px);
  right: clamp(18px, 2.4vw, 30px);
  padding: 6px 10px;
  border: 2px solid var(--seal);
  outline: 1px solid var(--seal);
  outline-offset: 2px;
  color: var(--seal);
  font: 700 0.78rem/1 var(--f-text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-7deg);
  opacity: 0.88;
  mix-blend-mode: multiply;
}
.stamp.is-gold {
  border-color: var(--gold-2);
  outline-color: var(--gold-2);
  color: var(--gold-2);
}
.stamp.is-ink {
  border-color: var(--ink-2);
  outline-color: var(--ink-2);
  color: var(--ink-2);
}

.doc h3 {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.doc .doc-tr {
  margin: 0 0 16px;
  font-weight: 600;
  font-size: 0.98rem;
}
.doc .doc-summary {
  margin: 0 0 22px;
  color: #2c3340;
}
.doc-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 2px;
  font: 600 0.92rem/1 var(--f-text);
  cursor: pointer;
  transition: background-color 0.25s;
}
.doc-open:hover {
  background: #2c3650;
}
.doc-open:focus-visible {
  outline-color: var(--seal);
}

/* JS yoksa tam analiz kartın içinde okunur; JS varsa diyalogda açılır */
.doc-full {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(26, 33, 48, 0.2);
}
.doc-open {
  display: none;
}
.js .doc-full {
  display: none;
}
.js .doc-open {
  display: inline-flex;
}

/* ---------- belge diyaloğu ---------- */

.doc-dialog {
  width: min(760px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.doc-dialog::backdrop {
  background: rgba(5, 10, 18, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.doc-dialog[open] {
  display: flex;
  flex-direction: column;
}
.dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid rgba(26, 33, 48, 0.18);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.dialog-close {
  background: none;
  border: 1px solid rgba(26, 33, 48, 0.35);
  color: var(--ink);
  font: 600 0.9rem/1 var(--f-text);
  padding: 10px 16px;
  border-radius: 2px;
  cursor: pointer;
}
.dialog-close:hover {
  border-color: var(--ink);
}
.dialog-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 48px);
  padding-bottom: 80px;
}
.dialog-body h2 {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
}
.dialog-body h4 {
  margin: 36px 0 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.3rem;
}
.dialog-body p,
.dialog-body li {
  color: #262d3a;
  max-width: 64ch;
}
.dialog-body ul {
  padding-left: 1.2em;
}
.dialog-body li {
  margin-bottom: 0.6em;
}
.dialog-body li::marker {
  color: var(--seal);
}
.dialog-body .their {
  padding: 18px 20px;
  background: rgba(26, 33, 48, 0.06);
  border-left: 3px solid var(--ink-2);
}
.dialog-body .ours {
  padding: 18px 20px;
  background: rgba(168, 121, 43, 0.12);
  border-left: 3px solid var(--gold-2);
}
.dialog-body .ours li::marker {
  color: var(--gold-2);
}
.dialog-body blockquote {
  margin: 18px 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--seal);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.15rem;
}
.dialog-body blockquote footer {
  margin-top: 6px;
  font-family: var(--f-text);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.dialog-body .src a {
  color: var(--seal);
  word-break: break-word;
}

/* ---------- hukuk ---------- */

.precedents {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  margin-bottom: clamp(70px, 10vh, 120px);
}
.precedent {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 4vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}
.precedent-meta h3 {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.1;
}
.precedent-meta p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--bone-3);
}
.precedent blockquote {
  margin: 0 0 18px;
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.precedent blockquote .tr {
  display: block;
  margin-top: 12px;
  font-family: var(--f-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bone-2);
}
.precedent .why {
  margin: 0;
  color: var(--bone-2);
  max-width: 62ch;
}
.precedent .why strong {
  color: var(--gold);
  font-weight: 600;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  margin-bottom: clamp(60px, 9vh, 110px);
  background: rgba(9, 17, 29, 0.55);
}
.principle {
  padding: 32px var(--box-pad) 36px;
  border-bottom: 1px solid var(--line);
}
.principle:nth-child(2n) {
  border-left: 1px solid var(--line);
}
.principle h3 {
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.45rem;
}
.principle p {
  margin: 0;
  color: var(--bone-2);
}

.honest {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--gold-2);
  background: rgba(9, 17, 29, 0.7);
}
.honest h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--gold);
}
.honest p {
  margin: 0 0 1em;
  color: var(--bone-2);
}
.honest p:last-child {
  margin-bottom: 0;
}

/* ---------- iddia / cevap ---------- */

.claims {
  border-top: 1px solid var(--line-strong);
  background: rgba(9, 17, 29, 0.6);
}
.claim {
  border-bottom: 1px solid var(--line);
}
.claim-q {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) 40px;
  gap: clamp(16px, 3vw, 48px);
  align-items: start;
  padding: 30px var(--box-pad);
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.claim-said {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.25;
  color: var(--bone);
}
.claim-said::before {
  content: 'Söylenen';
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-text);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--seal-light);
}
.claim-short {
  color: var(--bone-2);
  font-size: 1.02rem;
}
:lang(de) .claim-said::before {
  content: 'Die Behauptung';
}
:lang(en) .claim-said::before {
  content: 'The claim';
}
.claim-short::before {
  content: 'Kısa cevap';
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--gold);
}
:lang(de) .claim-short::before {
  content: 'Kurze Antwort';
}
:lang(en) .claim-short::before {
  content: 'Short answer';
}
.claim-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  margin-top: 4px;
}
.claim-icon::before,
.claim-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--bone);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease);
}
.claim-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.claim-q[aria-expanded='true'] .claim-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.claim-a {
  overflow: hidden;
  height: 0;
}
.claim-a-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) 40px;
  gap: clamp(16px, 3vw, 48px);
  padding: 0 var(--box-pad) 36px;
}
.claim-a-inner > div {
  grid-column: 1 / span 2;
  max-width: 76ch;
}
.claim-a p {
  margin: 0 0 1em;
  color: var(--bone-2);
}
.claim-a p strong {
  color: var(--bone);
}
.claim-a .cite {
  font-size: 0.86rem;
  color: var(--bone-3);
}

/* ---------- gençler için ---------- */

.country-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
  margin-bottom: clamp(70px, 10vh, 120px);
  background: rgba(9, 17, 29, 0.6);
}
.guide {
  padding: 28px var(--box-pad) 32px;
  border-right: 1px solid var(--line);
}
.guide:last-child {
  border-right: 0;
}
.guide h3 {
  margin: 0 0 4px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.7rem;
}
.guide .verdict {
  margin: 0 0 18px;
}
.guide ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--bone-2);
  font-size: 0.98rem;
}
.guide li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}
.guide li.warn::before {
  background: var(--seal-light);
}

.flips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: clamp(70px, 10vh, 120px);
}
.flip {
  perspective: 1200px;
  min-height: 300px;
}
.flip-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease);
}
.flip-btn[aria-pressed='true'] {
  transform: rotateY(180deg);
}
.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 2px;
}
.flip-front {
  border: 1px solid var(--line-strong);
  background: rgba(13, 24, 40, 0.85);
}
.flip-front q {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.25;
  quotes: '“' '”';
}
.flip-front span {
  font-size: 0.86rem;
  color: var(--bone-3);
}
.flip-back {
  transform: rotateY(180deg);
  background: var(--paper);
  color: var(--ink);
}
.flip-back .flip-text {
  display: block;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.55;
}
.flip-back span {
  font-size: 0.82rem;
  color: var(--ink-2);
}

.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
}
.rules h3 {
  margin: 0 0 16px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.6rem;
}
.rules ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.rules li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone-2);
}
.rules .do h3 {
  color: #a9cfad;
}
.rules .dont h3 {
  color: var(--seal-light);
}

/* ---------- kaynaklar ---------- */

.sources {
  columns: 2;
  column-gap: clamp(32px, 5vw, 80px);
  margin: 0;
  padding: 0 0 0 1.6em;
  font-size: 0.95rem;
  color: var(--bone-2);
}
.sources li {
  break-inside: avoid;
  margin-bottom: 14px;
  padding-left: 6px;
}
.sources li::marker {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.sources a {
  color: var(--bone);
  text-decoration-color: var(--gold-2);
  text-underline-offset: 3px;
  word-break: break-word;
}
.sources a:hover {
  color: var(--gold);
}

/* ---------- alt bilgi ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 13, 23, 0.92);
  padding: clamp(56px, 9vh, 100px) 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
}
.footer-pledge {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.footer-notes p {
  margin: 0 0 1em;
  font-size: 0.92rem;
  color: var(--bone-3);
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--bone-3);
}
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  color: var(--bone-2);
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}
.footer-legal a:hover {
  color: var(--gold);
}
.footer-base [lang='otk'] {
  color: var(--gold);
  letter-spacing: 0.1em;
}


/* ---------- Avrupa'nın kurtları ---------- */

.europe {
  padding-top: clamp(80px, 12vh, 140px);
}
.europe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.europe-item {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}
.europe-item .tl-figure {
  aspect-ratio: 4 / 3;
}
.europe-item h4 {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.15;
}
.europe-item p {
  margin: 0 0 10px;
  color: var(--bone-2);
  font-size: 0.98rem;
}
.europe-item .tl-source {
  font-size: 0.82rem;
}
.figure-credit {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--bone-3);
}
.figure-credit a {
  color: inherit;
}

@media (max-width: 900px) {
  .europe-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- atıflar ---------- */

.cite-ref {
  font-size: 0.78em;
  vertical-align: super;
  line-height: 0;
  text-decoration: none;
  color: var(--gold);
  margin-left: 1px;
}
.cite-ref + .cite-ref::before {
  content: ',';
  margin-right: 1px;
}
.doc .cite-ref,
.dialog-body .cite-ref,
.flip-back .cite-ref {
  color: var(--seal);
}

/* ---------- duyarlı düzen ---------- */

@media (max-width: 1100px) {
  .nav {
    gap: 16px;
  }
  .nav a {
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  body {
    font-size: 1rem;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-tools {
    gap: 10px;
  }
  .lang {
    padding-left: 0;
    border-left: 0;
  }
  .lang a {
    padding: 6px 5px;
  }
  /* backdrop-filter, sabit konumlu menünün kapsayıcısını başlığa daraltır;
     mobilde düz arka plan kullan ki menü tüm ekranı kaplasın */
  .site-header.is-solid {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(9, 17, 29, 0.96);
  }
  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 90px var(--gutter) 40px;
    background: rgba(7, 13, 23, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }
  .nav a {
    font-family: var(--f-display);
    font-size: 2rem;
    color: var(--bone);
    padding: 8px 0;
  }
  .nav a::after {
    display: none;
  }

  .hero {
    align-items: end;
    padding-top: 46svh;
  }
  .museum-label {
    position: static;
    width: auto;
    margin-top: 44px;
  }

  .chapter-intro {
    display: block;
    min-height: 0;
    padding-block: 34svh 60px;
  }

  .timeline {
    overflow: visible;
  }
  .tl-track {
    flex-direction: column;
    width: auto;
    gap: 44px;
  }
  .tl-item {
    width: auto;
  }
  .tl-hint {
    display: none;
  }

  .status-table thead {
    display: none;
  }
  .status-table caption {
    display: block;
    width: 100%;
  }
  .status-table,
  .status-table tbody,
  .status-table tr,
  .status-table th,
  .status-table td {
    display: block;
  }
  .status-table tr {
    padding: 18px 16px;
    border-bottom: 1px solid var(--line-strong);
  }
  .status-table th,
  .status-table td,
  .status-table th:first-child,
  .status-table td:first-child {
    padding: 6px 0;
    border: 0;
  }
  .status-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8rem;
    color: var(--bone-3);
  }

  .doc-grid,
  .principles,
  .country-guide,
  .flips,
  .rules,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .principle,
  .principle:nth-child(2n) {
    padding: 26px var(--box-pad);
    border-left: 0;
  }
  .guide {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px var(--box-pad);
  }
  .precedent,
  .honest {
    grid-template-columns: minmax(0, 1fr);
  }
  .claim-q {
    grid-template-columns: minmax(0, 1fr) 36px;
  }
  .claim-short {
    grid-column: 1;
    grid-row: 2;
  }
  .claim-icon {
    grid-column: 2;
    grid-row: 1;
  }
  .claim-a-inner {
    display: block;
  }
  .sources {
    columns: 1;
  }
  .doc-head {
    padding-right: 0;
    padding-top: 34px;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 10px;
    padding-block: 14px;
  }
  .brand-rune {
    display: none;
  }
  .brand-name {
    font-size: 1.08rem;
    white-space: nowrap;
  }
  .nav-toggle {
    padding: 8px 11px;
    font-size: 0.88rem;
  }
  .lang a {
    padding: 6px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .flip-btn[aria-pressed='true'] {
    transform: none;
  }
  .flip-btn[aria-pressed='true'] .flip-front {
    visibility: hidden;
  }
  .flip-btn[aria-pressed='true'] .flip-back {
    transform: none;
  }
}

.myths {
  margin-bottom: clamp(70px, 10vh, 120px);
}
.myths .principle h3 {
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.3;
}
