/* Fon yazısı gömüsü — Ağ Haritası (agharitasi.php) cam yüzeyi, araç çubuğu ve panel dili.
   Hisse fiyatı / Canlı Borsa yok. Tema: html[data-theme="dark"] (koyu);
   varsayılan açık (öznitelik yok), site ile aynı — localStorage yp_tema, olay yp-tema. */
.yp-fon-ag {
  --k255: 255,255,255;
  --k0: 0,0,0;
  --k18: 18,18,18;
  --fa-bg: #080808;
  --fa-text: #e8e8e8;
  --fa-muted: #a3a3a3;
  --fa-dim: #737373;
  --fa-turq: #4CC9F0;
  --fa-pink: #F15BB5;
  --fa-amber: #F4A261;
  --fa-gold: #FFCA3A;
  --fa-grey: #8D99AE;
  --fa-accent: #7CCFE5;
  --fa-pozitif: #03dac6;
  --fa-heading: #fff;
  --fa-soft: #d4d4d4;
  --fa-line: rgba(255,255,255,.10);
  --fa-line-strong: rgba(255,255,255,.14);
  --fa-line-focus: rgba(255,255,255,.22);
  --fa-fill: rgba(255,255,255,.05);
  --fa-fill-hover: rgba(255,255,255,.10);
  --fa-glass-border: rgba(255,255,255,.14);
  --fa-glass-bg: linear-gradient(165deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.02) 42%, rgba(0,0,0,.12) 100%), rgba(18,18,18,.82);
  --fa-glass-shadow: 0 8px 28px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(0,0,0,.25);
  --fa-scrim: rgba(0,0,0,.55);
  --fa-tip-bg: rgba(18,18,18,.95);
  --fa-tip-border: rgba(255,255,255,.12);
  --fa-tool-on-bg: rgba(124,207,229,.18);
  --fa-tool-on-fg: #7CCFE5;
  font-family: ui-sans-serif, "Segoe UI", system-ui, sans-serif;
  color: var(--fa-text);
  margin: 0 0 1.2em;
}
.yp-fon-ag * { box-sizing: border-box; }
.yp-fon-ag-stage {
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 720px;
  max-height: 85vh;
  min-height: 520px;
  background: var(--fa-bg);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--fa-line);
}
.yp-fon-ag-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  background: var(--fa-bg);
}
.yp-fon-ag-canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}
.yp-fon-ag-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: default;
}
.yp-fon-ag-canvas-wrap canvas.is-grab { cursor: grab; }
.yp-fon-ag-canvas-wrap canvas.is-grabbing { cursor: grabbing; }

.yp-fa-glass {
  border: 1px solid var(--fa-glass-border);
  background: var(--fa-glass-bg);
  box-shadow: var(--fa-glass-shadow);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

/* Sol liste */
.yp-fa-side {
  width: 280px;
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 20;
  margin: 12px 0 12px 12px;
  border-radius: 14px;
}
.yp-fa-brand {
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  flex-shrink: 0;
}
.yp-fa-brand h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--fa-heading);
}
.yp-fa-brand p {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--fa-muted);
  line-height: 1.35;
}
.yp-fa-search-row {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.yp-fa-search-row input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--fa-line);
  background: var(--fa-fill);
  color: var(--fa-heading);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.yp-fa-search-row input:focus { border-color: var(--fa-line-focus); }
.yp-fa-search-row button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fa-soft);
  cursor: pointer;
  border: 1px solid var(--fa-line-strong);
  background: var(--fa-fill);
}
.yp-fa-search-row button:disabled { opacity: .35; cursor: not-allowed; }
.yp-fa-scroll {
  flex: 1;
  overflow: auto;
  padding: 8px 10px 12px;
  scrollbar-width: none;
}
.yp-fa-scroll::-webkit-scrollbar { display: none; }

.yp-fa-filters { margin: 0 0 12px; }
.yp-fa-filters > p, .yp-fa-grp-title {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fa-dim);
}
.yp-fa-filters > .yp-fa-hint {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fa-dim);
  font-size: 11px;
  line-height: 1.35;
  margin-bottom: 8px;
}
.yp-fa-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.yp-fa-chips li {
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11px;
  color: var(--fa-soft);
  border: 1px solid var(--fa-line-strong);
  background: var(--fa-fill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.yp-fa-chips li:hover { border-color: var(--fa-line-focus); }
.yp-fa-chips li.is-on {
  border-color: rgba(124,207,229,.55);
  color: var(--fa-heading);
  box-shadow: inset 0 0 0 1px rgba(124,207,229,.25);
}
.yp-fa-chips .n {
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--fa-fill);
  border-radius: 6px;
  padding: 1px 5px;
}

.yp-fa-grp { margin: 0 0 10px; }
.yp-fa-grp h3.yp-fa-grp-title { margin: 8px 2px 4px; }
.yp-fa-list { list-style: none; margin: 0; padding: 0; }
.yp-fa-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  margin: 0 -2px 2px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.yp-fa-item:hover, .yp-fa-item.is-on { background: var(--fa-fill-hover); }
.yp-fa-item .ad { font-weight: 500; color: var(--fa-heading); }
.yp-fa-item .alt { font-size: 11px; color: var(--fa-muted); margin-top: 2px; line-height: 1.3; }
.yp-fa-item .pill {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 7px;
  border: 1px solid currentColor;
  max-width: 9.5rem;
  text-align: right;
  line-height: 1.25;
}
.yp-fa-empty {
  border: 1px dashed var(--fa-line);
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--fa-dim);
}

/* Sağ / alt kimlik paneli */
.yp-fa-detail {
  width: 320px;
  flex: 0 0 320px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 21;
  margin: 12px 12px 12px 0;
  border-radius: 14px;
}
.yp-fon-ag-stage.is-detail .yp-fa-detail { display: flex; }
.yp-fa-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  flex-shrink: 0;
}
.yp-fa-detail-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--fa-heading);
  line-height: 1.25;
  letter-spacing: .01em;
}
.yp-fa-detail-head .unvan { margin-top: 6px; font-size: 13px; color: var(--fa-soft); line-height: 1.35; }
.yp-fa-x {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--fa-line);
  background: transparent;
  color: var(--fa-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.yp-fa-x:hover { background: var(--fa-fill-hover); color: var(--fa-heading); }
.yp-fa-detail-body {
  flex: 1;
  overflow: auto;
  padding: 12px;
  scrollbar-width: none;
}
.yp-fa-detail-body::-webkit-scrollbar { display: none; }
.yp-fa-sec { border-top: 1px solid rgba(255,255,255,.10); padding: 14px 0 4px; }
.yp-fa-sec:first-child { border-top: 0; padding-top: 0; }
.yp-fa-sec-h {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fa-dim);
  margin: 0 0 8px;
}
.yp-fa-durum {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid currentColor;
  margin: 0 0 10px;
}
.yp-fa-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0,1fr);
  gap: 8px;
  font-size: 12px;
  margin: 0 0 6px;
  line-height: 1.4;
}
.yp-fa-row dt { color: var(--fa-dim); }
.yp-fa-row dd { margin: 0; color: var(--fa-text); }
.yp-fa-detail-body ul { margin: 0; padding: 0 0 0 18px; font-size: 13px; }
.yp-fa-detail-body li { margin: 0 0 6px; color: var(--fa-soft); }
.yp-fa-uyari {
  font-size: 10px;
  line-height: 1.45;
  color: #a3a3a3;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
}

/* Araç çubuğu — Ağ Haritası tool-module */
.yp-fa-toolbar {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  user-select: none;
}
.yp-fon-ag-stage.is-wide .yp-fa-toolbar { left: 300px; }
.yp-fa-tools {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
}
.yp-fa-tool {
  position: relative;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--fa-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.yp-fa-tool:hover, .yp-fa-tool:focus-visible {
  background: var(--fa-fill-hover);
  color: var(--fa-heading);
  outline: none;
}
.yp-fa-tool.is-on {
  background: var(--fa-tool-on-bg);
  color: var(--fa-tool-on-fg);
}
.yp-fa-tool .tip {
  display: none;
  position: absolute;
  left: 42px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--fa-tip-bg);
  border: 1px solid var(--fa-tip-border);
  color: var(--fa-heading);
  pointer-events: none;
  z-index: 30;
}
.yp-fa-tool:hover .tip, .yp-fa-tool:focus-visible .tip { display: block; }

.yp-fa-scrim, .yp-fa-mobar, .yp-fa-side-x { display: none; }

/* Kısa kod figcaption basmaz; yazıdaki italik açıklama durur. */
.yp-fa-cap { display: none; }
.yp-fon-ag-sr { display: none; }

.yp-fon-ag noscript img,
.yp-fon-ag-statik img,
.yp-fon-ag-yedek,
.yp-fon-ag-gomu--statik img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.yp-fon-ag-isimler {
  margin: 1.15em 0 0.4em;
  padding: 0;
  color: inherit;
  font-size: 0.98em;
  line-height: 1.5;
}
.yp-fon-ag-isimler h3 {
  font-size: 1.12em;
  margin: 0 0 0.45em;
  font-weight: 700;
}
.yp-fon-ag-isimler-not {
  margin: 0 0 1em;
  font-size: 0.92em;
  opacity: 0.88;
}
.yp-fon-ag-isimler h4 {
  font-size: 0.78em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.95em 0 0.35em;
  opacity: 0.8;
  font-weight: 700;
}
.yp-fon-ag-isimler ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 1.6em;
}
@media (max-width: 640px) {
  .yp-fon-ag-isimler ul { columns: 1; }
}
.yp-fon-ag-isimler li {
  break-inside: avoid;
  margin: 0 0 0.28em;
  padding: 0;
}
.yp-fon-ag-isimler .yp-fon-ag-unvan,
.yp-fon-ag-isimler .yp-fon-ag-durum {
  opacity: 0.72;
  font-size: 0.92em;
}
.yp-fon-ag-isimler .yp-fon-ag-unvan::before { content: " · "; opacity: 0.7; }
.yp-fon-ag-isimler .yp-fon-ag-durum::before { content: " — "; opacity: 0.7; }

/* Dar gömü / mobil: liste çekmece, kimlik alt sayfa — panel haritanın altında kalmaz */
@container (max-width: 820px) {
  .yp-fon-ag-stage { height: 78vh; min-height: 560px; }
  .yp-fa-side {
    display: none;
    position: absolute;
    left: 12px; top: 12px; bottom: 12px;
    width: min(320px, calc(100% - 72px));
    margin: 0;
    z-index: 40;
  }
  .yp-fon-ag-stage.is-list .yp-fa-side { display: flex; }
  .yp-fa-detail {
    display: none;
    position: absolute;
    left: 12px; right: 12px; bottom: 12px;
    top: auto;
    width: auto;
    flex-basis: auto;
    height: 46%;
    margin: 0;
    z-index: 40;
  }
  .yp-fon-ag-stage.is-detail .yp-fa-detail { display: flex; }
  .yp-fon-ag-stage.is-detail .yp-fon-ag-canvas-wrap { margin-bottom: calc(46% + 8px); }
  .yp-fa-toolbar { left: 12px; top: 60px; }
  .yp-fon-ag-stage.is-wide .yp-fa-toolbar { left: 12px; }
  .yp-fa-tool .tip { display: none !important; }
  .yp-fa-scrim {
    display: none;
    position: absolute;
    inset: 0;
    border: 0;
    background: var(--fa-scrim);
    z-index: 30;
    cursor: pointer;
  }
  .yp-fon-ag-stage.is-list .yp-fa-scrim { display: block; }
  .yp-fa-mobar {
    display: flex;
    position: absolute;
    top: 12px; left: 12px;
    z-index: 25;
  }
  .yp-fa-mobar button {
    width: 42px; height: 42px;
    border-radius: 12px;
    color: var(--fa-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .yp-fa-side-x {
    display: inline-flex;
    position: absolute;
    top: 8px; right: 8px;
    width: 32px; height: 32px;
  }
}
@media (max-width: 820px) {
  /* harness tam genişlikte de çalışsın (container desteklemese) */
  .yp-fon-ag-stage { height: 78vh; min-height: 560px; }
}


.yp-fa-bos-bag { margin: 0; color: var(--fa-dim); font-size: 13px; }
.yp-fa-kaynaklar { margin: 0; font-size: 13px; color: var(--fa-soft); }

/* Açık tema — site varsayılanı (html'de data-theme yok). Palet Ağ Haritası açık varyantı:
   zemin #f5f5f5, yazı #1a1a1a / #555, vurgu #1b7087, cam yüzey blog --glass. */
html:not([data-theme="dark"]) .yp-fon-ag {
  --fa-bg: #f5f5f5;
  --fa-text: #1a1a1a;
  --fa-muted: #555555;
  --fa-dim: #6e6e6e;
  --fa-turq: #0b6ab6;
  --fa-pink: #b71a5a;
  --fa-amber: #9e4f00;
  --fa-gold: #946400;
  --fa-grey: #555555;
  --fa-accent: #1b7087;
  --fa-pozitif: #177525;
  --fa-heading: #1a1a1a;
  --fa-soft: #262626;
  --fa-line: rgba(26,26,26,.12);
  --fa-line-strong: rgba(26,26,26,.16);
  --fa-line-focus: rgba(26,26,26,.28);
  --fa-fill: rgba(26,26,26,.04);
  --fa-fill-hover: rgba(26,26,26,.08);
  --fa-glass-border: rgba(16,24,40,.10);
  --fa-glass-bg: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(250,250,251,0.95) 100%);
  --fa-glass-shadow: 0 1px 2px rgba(16,24,40,0.05), 0 8px 24px rgba(16,24,40,0.07), inset 0 1px 0 rgba(255,255,255,0.9);
  --fa-scrim: rgba(245,245,245,.62);
  --fa-tip-bg: #ffffff;
  --fa-tip-border: rgba(16,24,40,.12);
  --fa-tool-on-bg: rgba(27,112,135,.16);
  --fa-tool-on-fg: #1b7087;
}

html:not([data-theme="dark"]) .yp-fa-brand h2,
html:not([data-theme="dark"]) .yp-fa-detail-head .ad { color: var(--fa-heading); }
html:not([data-theme="dark"]) .yp-fa-brand p,
html:not([data-theme="dark"]) .yp-fa-item .alt,
html:not([data-theme="dark"]) .yp-fa-detail-not { color: var(--fa-muted); }
html:not([data-theme="dark"]) .yp-fa-search-row input,
html:not([data-theme="dark"]) .yp-fa-x,
html:not([data-theme="dark"]) .yp-fa-tool,
html:not([data-theme="dark"]) .yp-fa-chips li,
html:not([data-theme="dark"]) .yp-fa-item .ad,
html:not([data-theme="dark"]) .yp-fa-detail-head .unvan,
html:not([data-theme="dark"]) .yp-fa-row dd,
html:not([data-theme="dark"]) .yp-fa-detail-body li { color: var(--fa-text); }
html:not([data-theme="dark"]) .yp-fa-search-row input { background: var(--fa-fill); border-color: var(--fa-line-strong); }
html:not([data-theme="dark"]) .yp-fa-search-row input:focus { border-color: var(--fa-line-focus); }
html:not([data-theme="dark"]) .yp-fa-chips li,
html:not([data-theme="dark"]) .yp-fa-x,
html:not([data-theme="dark"]) .yp-fa-tool { border-color: var(--fa-line-strong); background: var(--fa-fill); color: var(--fa-soft); }
html:not([data-theme="dark"]) .yp-fa-chips li:hover,
html:not([data-theme="dark"]) .yp-fa-x:hover,
html:not([data-theme="dark"]) .yp-fa-item:hover,
html:not([data-theme="dark"]) .yp-fa-item.is-on { background: var(--fa-fill-hover); border-color: var(--fa-line-focus); color: var(--fa-heading); }
html:not([data-theme="dark"]) .yp-fa-chips li.is-on {
  border-color: rgba(27,112,135,.55);
  color: var(--fa-heading);
  box-shadow: inset 0 0 0 1px rgba(27,112,135,.25);
}
html:not([data-theme="dark"]) .yp-fa-brand,
html:not([data-theme="dark"]) .yp-fa-search-row,
html:not([data-theme="dark"]) .yp-fa-detail-head,
html:not([data-theme="dark"]) .yp-fa-sec,
html:not([data-theme="dark"]) .yp-fa-detail-not { border-color: var(--fa-line); }
html:not([data-theme="dark"]) .yp-fa-grup,
html:not([data-theme="dark"]) .yp-fa-sec-h,
html:not([data-theme="dark"]) .yp-fa-row dt { color: var(--fa-dim); }
html:not([data-theme="dark"]) .yp-fa-tool:hover { background: var(--fa-fill-hover); color: var(--fa-heading); }
html:not([data-theme="dark"]) .yp-fa-tool.is-on { background: var(--fa-tool-on-bg); color: var(--fa-tool-on-fg); }
html:not([data-theme="dark"]) .yp-fa-tool .tip {
  background: var(--fa-tip-bg);
  border: 1px solid var(--fa-tip-border);
  color: var(--fa-text);
}
html:not([data-theme="dark"]) .yp-fa-scrim { background: var(--fa-scrim); }
html:not([data-theme="dark"]) .yp-fa-mobar button { color: var(--fa-text); }
html:not([data-theme="dark"]) .yp-fa-empty { color: var(--fa-dim); border-color: var(--fa-line); }
