/* Genom haritası (22 Eki) — genom-harita.js. Renk yalnız tema değişkenlerinden (--iyi, --orta, --kotu, --vurgu, --soluk …);
   açık tonlar color-mix ile türetilir, ayrı renk yok. */
.gh-yer { display: flex; flex-direction: column; gap: 18px; }
.gh-nokta { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--soluk); }
.n-bitti { background: var(--iyi); } .n-suruyor { background: var(--orta); } .n-bos { background: var(--cizgi2); }
.n-atlandi, .n-uygulanmaz { background: var(--cizgi); }

/* Ajans sekmeleri */
.gh-sekmeler { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--cizgi); margin: 0 0 18px; }
.gh-sekme { display: flex; flex-direction: column; gap: 2px; padding: 6px 2px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: inherit; text-decoration: none; }
.gh-sekme b { font-size: 15.5px; font-weight: 600; }
.gh-sekme span { font-size: 12px; color: var(--soluk); }
.gh-sekme[aria-selected="true"] { border-bottom-color: var(--metin); }
.gh-sekme[aria-selected="false"] b { color: var(--soluk); }

/* Özet */
.gh-ozet { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 28px; align-items: end; }
.gh-ozet-sol { min-width: 0; }
.gh-evre { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 8px; padding: 0; }
.gh-evre li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--soluk); padding-right: 22px; position: relative; }
.gh-evre li::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 1px; background: var(--cizgi2); }
.gh-evre li:last-child::after { display: none; }
.gh-evre i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--cizgi2); }
.gh-evre li.gecti i { background: var(--iyi); border-color: var(--iyi); }
.gh-evre li.simdi { color: var(--metin); font-weight: 600; }
.gh-evre li.simdi i { background: var(--vurgu); border-color: var(--vurgu); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vurgu) 22%, transparent); }
.gh-cumle { margin: 0; font-size: 16px; color: var(--metin2); max-width: 72ch; text-wrap: pretty; }
.gh-sayilar { display: flex; flex-direction: column; gap: 6px; min-width: 260px; }
.gh-cubuk { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--yuzey2); }
.gh-cubuk i { display: block; }
.gh-efsane { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--soluk); }
.gh-efsane span { display: inline-flex; align-items: center; gap: 5px; }
.gh-efsane b { color: var(--metin); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Şimdi şeridi */
.gh-bolum-bas { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.gh-bolum-bas h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--metin2); }
.gh-serit { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gh-skart { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r, 12px); padding: 12px 14px; text-align: left; display: flex; flex-direction: column; gap: 6px; min-width: 0; color: inherit; font: inherit; cursor: pointer; }
.gh-skart:hover { border-color: var(--cizgi2); }
.gh-skart-bas { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gh-skart-ad { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-skart p { margin: 0; color: var(--soluk); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gh-alt { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.gh-skart .gh-alt { margin-top: auto; }
.gh-kilit { background: color-mix(in srgb, var(--vurgu) 10%, var(--yuzey)); border-radius: var(--r, 12px); padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.gh-zincir { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.gh-zincir .ok { color: var(--soluk); font-size: 12px; }

/* Sıra ve çipler */
.gh-sira { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--yuzey2); color: var(--metin2); flex: none; }
.gh-sira.ust5 { background: var(--vurgu); color: var(--vurgu-ust); }
.gh-sira.kucuk-sira { min-width: 18px; height: 18px; font-size: 10.5px; }
.gh-cip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--yuzey2); color: var(--metin2); border: 0; font-family: inherit; line-height: 1.5; }
button.gh-cip { cursor: pointer; }
button.gh-cip:hover { filter: brightness(.95); }
.gh-cip.para { font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--vurgu) 14%, var(--yuzey)); color: var(--vurgu); }
.gh-cip.d-bitti { background: color-mix(in srgb, var(--iyi) 15%, var(--yuzey)); color: var(--iyi); }
.gh-cip.d-suruyor { background: color-mix(in srgb, var(--orta) 15%, var(--yuzey)); color: var(--orta); }
.gh-cip.d-bos, .gh-cip.d-atlandi, .gh-cip.d-uygulanmaz { background: var(--yuzey2); color: var(--soluk); }
.gh-cip.uyari { background: color-mix(in srgb, var(--kotu) 13%, var(--yuzey)); color: var(--kotu); }
.gh-cip.bek { background: none; border: 1px solid var(--cizgi2); color: var(--soluk); white-space: normal; border-radius: 10px; }

/* Araç çubuğu */
.gh-govde { display: flex; flex-direction: column; gap: 10px; }
.gh-arac { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.gh-anahtar { display: inline-flex; background: var(--yuzey2); border-radius: 10px; padding: 3px; }
.gh-anahtar button { border: 0; background: none; padding: 5px 14px; border-radius: 8px; font: inherit; font-weight: 500; color: var(--soluk); cursor: pointer; }
.gh-anahtar button[aria-pressed="true"] { background: var(--yuzey); color: var(--metin); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.gh-suz { display: flex; gap: 6px; flex-wrap: wrap; }
.gh-suz button { border: 1px solid var(--cizgi); background: var(--yuzey); border-radius: 99px; padding: 4px 11px; font: inherit; font-size: 12.5px; color: var(--metin2); cursor: pointer; }
.gh-suz button[aria-pressed="true"] { border-color: var(--metin); background: var(--metin); color: var(--zemin); }
.gh-efsane-harita { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12px; color: var(--soluk); align-items: center; }
.gh-efsane-harita span, .gh-efsane-harita label { display: inline-flex; gap: 6px; align-items: center; }
.gh-cizgi { width: 22px; height: 0; border-top: 2px solid var(--kotu); display: inline-block; }
.gh-cizgi.ileri { border-top-color: var(--vurgu); }
.gh-cizgi.zayif { border-top: 2px dashed var(--soluk); }

/* Harita */
.gh-harita-kap { position: relative; overflow-x: auto; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r, 12px); }
.gh-harita { position: relative; padding: 14px 16px 18px; min-width: 1240px; display: flex; flex-direction: column; gap: 14px; }
.gh-baglar { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.gh-baglar path { fill: none; stroke-width: 1.6; }
.gh-baglar path.geri { stroke: var(--kotu); }
.gh-baglar path.ileri { stroke: var(--vurgu); }
.gh-baglar path.zayif { stroke: var(--soluk); stroke-dasharray: 4 4; }
.gh-baglar path.hepsi { stroke: var(--cizgi2); stroke-width: 1; opacity: .7; }
.gh-kusak { display: grid; gap: 8px; grid-template-columns: 120px minmax(0, 1fr); align-items: start; }
.gh-kusak + .gh-kusak { border-top: 1px solid var(--cizgi); padding-top: 14px; }
.gh-kusak-ad { font-size: 12px; color: var(--soluk); padding-top: 3px; }
.gh-kusak-ad b { display: block; color: var(--metin); font-size: 13px; font-weight: 600; }
.gh-kolonlar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(148px, 1fr); gap: 10px; }
.gh-kolon { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.gh-kolon-ad { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--soluk); padding: 0 2px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-kolon.yatay { flex-direction: row; flex-wrap: wrap; }
.gh-kolon.yatay .gh-kolon-ad { width: 100%; }
.gh-kolon.yatay .gh-dugum { width: 178px; }
.gh-dugum { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 6px; padding: 5px 8px; border-radius: 9px; background: var(--yuzey); border: 1px solid var(--cizgi); text-align: left; min-width: 0; font: inherit; font-size: 12.5px; color: inherit; cursor: pointer; transition: opacity .15s, border-color .15s, box-shadow .15s; }
.gh-dugum .gh-nokta { margin-top: 4px; }
.gh-dugum .et { font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--soluk); flex: none; padding-top: 1px; }
.gh-dugum .ad { min-width: 0; overflow: hidden; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.gh-dugum .no { font-variant-numeric: tabular-nums; font-size: 10.5px; color: var(--soluk); flex: none; padding-top: 1px; }
.gh-dugum.d-bitti { background: color-mix(in srgb, var(--iyi) 12%, var(--yuzey)); border-color: transparent; }
.gh-dugum.d-bos .ad, .gh-dugum.d-atlandi .ad, .gh-dugum.d-uygulanmaz .ad { color: var(--soluk); }
.gh-dugum.ust5 { padding: 8px 9px; font-size: 13.5px; font-weight: 600; border-color: var(--vurgu); }
.gh-dugum.ust5 .no { color: var(--vurgu-ust); background: var(--vurgu); border-radius: 5px; padding: 1px 5px; font-weight: 500; }
.gh-dugum.ust15 { border-color: var(--cizgi2); font-weight: 500; }
.gh-dugum.bayat::after { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--kotu); border: 2px solid var(--yuzey); }
.gh-dugum.engelsiz .et::before, .gh-dugum.engelsiz .ad::before { content: "▸ "; color: var(--vurgu); }
.gh-dugum.engelsiz .et + .ad::before { content: none; }
.gh-dugum:hover { border-color: var(--metin2); }
.gh-dugum:focus-visible { outline: 2px solid var(--vurgu); outline-offset: 2px; }
.gh-harita.odak .gh-dugum { opacity: .22; }
.gh-harita.odak .gh-dugum.lit { opacity: 1; }
.gh-harita.odak .gh-dugum.secili { opacity: 1; box-shadow: 0 0 0 2px var(--metin); }
.gh-harita .gh-dugum.sonuk { opacity: .22; }

/* Liste */
.gh-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.gh-kart { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r, 12px); padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; text-align: left; min-width: 0; color: inherit; font: inherit; cursor: pointer; }
.gh-kart:hover { border-color: var(--cizgi2); }
.gh-kart.d-bitti { background: color-mix(in srgb, var(--iyi) 10%, var(--yuzey)); border-color: transparent; }
.gh-kart-bas { display: flex; gap: 8px; align-items: center; min-width: 0; }
.gh-kart-bas .grup { margin-left: auto; font-size: 11.5px; color: var(--soluk); white-space: nowrap; }
.gh-kart p { margin: 0; font-size: 13px; color: var(--metin2); }
.gh-biten { grid-column: 1 / -1; }
.gh-biten summary { cursor: pointer; color: var(--soluk); font-size: 13px; padding: 6px 2px; }
.gh-biten .gh-liste { margin-top: 8px; }

/* Çekmece içi */
.gh-cek { display: flex; flex-direction: column; }
.gh-cek-oz { margin: 10px 0 4px; font-size: 15px; color: var(--metin2); }
.gh-blok { padding: 12px 0; border-bottom: 1px solid var(--cizgi); display: flex; flex-direction: column; gap: 6px; }
.gh-blok:last-of-type { border-bottom: 0; }
.gh-blok h4 { margin: 0; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--soluk); font-weight: 600; }
.gh-blok p { margin: 0; }
.gh-bag-sat { display: flex; flex-wrap: wrap; gap: 5px; }
.gh-buyuk-para { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 600; }
.gh-kanit, .gh-gecmis { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.gh-kanit li { font-family: var(--mono); font-size: 11.5px; color: var(--soluk); word-break: break-word; }
.gh-gecmis li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; font-size: 12.5px; }
.gh-tam { padding-top: 10px; }
.gh-tam summary { cursor: pointer; font-size: 12.5px; color: var(--soluk); }
.gh-tam dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 10px; margin: 8px 0; font-size: 12.5px; }
.gh-tam dt { color: var(--soluk); }
.gh-tam dd { margin: 0; }

@media (max-width: 720px) {
  .gh-ozet { grid-template-columns: minmax(0, 1fr); }
  .gh-sayilar { min-width: 0; }
  .gh-liste { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .gh-dugum { transition: none; } }
