
:root{--brand:#003761;--brand2:#005578;--ink:#0f172a;--muted:#475569;--bg:#f8fafc;--panel:#fff;--border:#e2e8f0}
*{box-sizing:border-box}html,body{height:100%}
body{margin:0;font-family:'Segoe UI',system-ui,Arial,sans-serif;background:var(--bg);color:var(--ink)}
.site-header{position:sticky;top:0;z-index:20;background:linear-gradient(90deg,var(--brand),var(--brand2));color:#fff;border-bottom:1px solid rgba(255,255,255,.15)}
.site-header .wrap{max-width:1200px;margin:0 auto;padding:.6rem 1rem;display:flex;align-items:center;gap:1rem;justify-content:space-between;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:.6rem}
.logo-sw{height:28px}
.logo-app{height:28px}
.brand strong{font-weight:800;letter-spacing:.2px}
.divider{width:1px;height:24px;background:rgba(255,255,255,.35)}
.lang{display:flex;gap:.35rem;margin-left:auto}
.btn-lang{border:1px solid rgba(255,255,255,.5);background:rgba(255,255,255,.15);color:#fff;border-radius:.5rem;padding:.25rem .5rem;cursor:pointer}
.btn-lang.active{background:#fff;color:#003761;font-weight:700}
.actions{display:flex;gap:.4rem}
.btn{border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff;border-radius:.6rem;padding:.45rem .7rem;display:flex;align-items:center;gap:.4rem;cursor:pointer;text-decoration:none}
.btn svg{width:18px;height:18px;fill:currentColor}
.main{max-width:1200px;margin:1rem auto;display:grid;grid-template-columns:280px 1fr;gap:1rem;padding:0 1rem}
.sidebar{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:1rem;height:calc(100vh - 140px);position:sticky;top:90px;overflow:auto}
.sidebar h3{margin:0 0 .6rem 0;color:var(--muted);font-size:.95rem}
.tree{display:flex;flex-direction:column;gap:.35rem}
.tree-link{display:block;padding:.4rem .6rem;border:1px solid var(--border);border-radius:.5rem;background:#fff;text-decoration:none;color:#0f172a}
details{border:1px solid var(--border);border-radius:.6rem;background:#fff}
summary{padding:.5rem .6rem;cursor:pointer;font-weight:600;color:#0f172a}
.group{padding:.35rem .5rem .6rem .5rem;display:flex;flex-direction:column;gap:.15rem}
.group a{padding:.35rem .5rem;border-radius:.4rem;text-decoration:none;color:#0f172a}
.group a:hover{background:#eef2ff}
.content{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:1rem}
.content h2{margin:0 0 .2rem 0}
.kicker{color:#64748b;font-weight:600;margin:0 0 .8rem 0}
.steps{margin-top:1rem}
.steps h4{margin:.6rem 0 .4rem 0}
.steps ol{margin:.2rem 0 0 1.2rem}
.video{margin:.8rem 0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#0b1220}
.video audio, .video video{width:100%;display:block}
.video .fallback{color:#e2e8f0;background:#0b1220;padding:.6rem;text-align:center}
.footer{margin:1.5rem 0 2rem;text-align:center;color:#64748b}
/* Tüm article’lar aynı kutu düzeni */
.content article.card{
  background:#fff;
  border:1px solid var(--border,#e5e7eb);
  border-radius:.75rem;
  padding:1rem 1.25rem;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
  margin-top:1.5rem;
}

/* Başlık boşluklarını eşitle */
.content article h2{ margin:0 0 .75rem; line-height:1.2; }
.content article h3{ margin:1rem 0 .5rem; }
.content article h4{ margin:1rem 0 .35rem; }

/* Sayfa genişliği sabit kalsın (scrollbar pop-in/out engel) */
html{ overflow-y: scroll; }

/* Video alanı yüzden yüksekliği sabitle (komutta vardı, workflow’ta yok) */
.video{ min-height:320px; }        /* komut ekranında boşluk rezerve */
#workflow .video{ min-height:0; }  /* workflow'ta video yoksa boş yer olmasın */

/* EN/IT bloklarında margin çökmesini engelle (ufak “kayma”ları keser) */
#workflow [data-lang]{ padding-top:.01px; }

/* İsteğe bağlı: ana içerik, ekran yüksekliğini tutsun */
.content{ min-height:calc(100vh - 120px); } /* header/footer yüksekliğine göre ayarla */
.settings-table{
  width:100%;
  border-collapse:collapse;
  font-size:.95rem;
}
.settings-table thead th{
  text-align:left;
  border-bottom:1px solid var(--border,#e5e7eb);
  padding:.5rem .6rem;
  color:#0f172a;
}
.settings-table tbody td{
  vertical-align:top;
  border-top:1px solid var(--border,#e5e7eb);
  padding:.55rem .6rem;
}
.settings-table tbody tr:hover{
  background:#fafafa;
}

/* Search */
.searchbar{
  position: relative;
  max-width: 320px;
  width: 100%;
  margin: .5rem 1rem .25rem auto; /* sağa yaslı */
}
.searchbar input{
  width:100%;
  border:1px solid var(--border,#e5e7eb);
  padding:.55rem .75rem;
  border-radius:.6rem;
  font-size:.95rem;
  outline: none;
}
.searchbar input:focus{ box-shadow:0 0 0 3px rgba(59,130,246,.15); border-color:#93c5fd; }

.search-results{
  position:absolute; left:0; right:0; top: calc(100% + 6px);
  background:#fff; border:1px solid var(--border,#e5e7eb);
  border-radius:.6rem; box-shadow:0 6px 20px rgba(0,0,0,.08);
  display:none; max-height: 60vh; overflow:auto; z-index: 50;
}
.search-results .item{
  padding:.55rem .7rem; cursor:pointer; line-height:1.25rem;
  display:flex; gap:.6rem; align-items:flex-start;
}
.search-results .item:hover,
.search-results .item.active{ background:#f8fafc; }
.search-results .id{ font-weight:700; color:#0f172a; }
.search-results .cat{ font-size:.78rem; color:#64748b; margin-left:auto; }
.search-results .desc{ font-size:.85rem; color:#334155; margin-top:.15rem; }
.search-results .hl{ background: #fff4cc; }
/* Header yerleşimi */
.site-header .header-flex{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.site-header .brand{display:flex; align-items:center; gap:10px; flex:1 1 auto; min-width:240px;}
.site-header .toolbar{display:flex; align-items:center; gap:10px; flex:0 0 auto; flex-wrap:wrap;}
/* Search kutusu header sağında sabit genişlik */
.site-header .searchbar{margin:0; max-width:420px; width:420px;}
@media (max-width:900px){
  .site-header .header-flex{flex-wrap:wrap}
  .site-header .toolbar{width:100%; justify-content:flex-end}
  .site-header .searchbar{width:100%; max-width:none; order:5}
}

/* Dil butonları görünürlük/kontrast */
.btn-lang{background:#0b4a66; color:#fff; border:1px solid rgba(255,255,255,.25)}
.btn-lang.active{background:#fff; color:#0b4a66; border-color:#fff}

/* Home / Back butonları koyu header üstünde okunaklı olsun */
.site-header .btn{background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.22)}
.site-header .btn:hover{background:rgba(255,255,255,.22)}
.site-header .btn svg path{fill:#fff}

