/* LabGlide Squad Rehberi — mobil öncelikli, açık tema, yazı tipi sistem/Inter (ek font indirmez) */
:root { --p: #2563eb; --pd: #1d4ed8; --g: #10b981; --ink: #0f172a; --mut: #475569; --line: #e2e8f0; --bg: #fff; --soft: #f8fafc; --top: 56px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 16px; }
a { color: var(--pd); }
:focus-visible { outline: 3px solid var(--pd); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

/* Üst çubuk */
.rh-top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.rh-top-in { max-width: 1440px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: var(--top); }
.rh-logo { font-weight: 800; font-size: 1.15rem; color: var(--p); text-decoration: none; letter-spacing: .2px; }
.rh-brand { font-weight: 600; color: var(--mut); text-decoration: none; padding-left: 10px; border-left: 2px solid var(--line); }
.rh-cta { margin-left: auto; order: 2; background: var(--pd); color: #fff; text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 10px; font-size: .92rem; white-space: nowrap; }
.rh-cta:hover { background: #1e40af; }
.rh-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; padding: 0; position: relative; }
.js .rh-burger { display: inline-block; }
.rh-burger span, .rh-burger span::before, .rh-burger span::after { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); content: ''; border-radius: 2px; }
.rh-burger span { top: 19px; } .rh-burger span::before { left: 0; right: 0; top: -6px; } .rh-burger span::after { left: 0; right: 0; top: 6px; }
.rh-search { position: relative; order: 3; flex: 1 1 100%; }
.rh-search input { width: 100%; height: 40px; border: 1px solid #94a3b8; border-radius: 10px; padding: 0 12px; font: inherit; font-size: .95rem; background: #fff; color: var(--ink); }
.rh-search input::placeholder { color: #64748b; }
.rh-res { position: absolute; left: 0; right: 0; top: 46px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(15,23,42,.16); max-height: 70vh; overflow: auto; z-index: 60; }
.rh-res li { margin: 0; }
.rh-res a, .rh-cards a { display: block; text-decoration: none; color: inherit; border-radius: 8px; }
.rh-res a { padding: 8px 10px; }
.rh-res li.act a, .rh-res a:hover { background: #eff6ff; }
.rh-res .t { display: block; font-weight: 600; color: var(--ink); }
.rh-res .g { display: block; font-size: .78rem; color: var(--mut); }
.rh-res .s { display: block; font-size: .85rem; color: var(--mut); line-height: 1.45; }
.rh-res .none { padding: 10px; color: var(--mut); font-size: .9rem; }
mark { background: #fef08a; color: inherit; border-radius: 2px; }

/* Gövde düzeni */
.rh-body { max-width: 1440px; margin: 0 auto; display: block; }
.rh-nav { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--soft); }
.js .rh-nav { position: fixed; z-index: 70; top: 0; bottom: 0; left: 0; width: min(86vw, 320px); transform: translateX(-102%); transition: transform .2s; overflow: auto; border: 0; border-right: 1px solid var(--line); background: #fff; padding-top: 20px; visibility: hidden; }
.js .rh-nav.open { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(15,23,42,.3); }
.rh-shade { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 65; }
.rh-nav-home { display: block; font-weight: 700; color: var(--ink); text-decoration: none; padding: 6px 8px; border-radius: 8px; margin-bottom: 6px; }
.rh-grp { margin: 2px 0; }
.rh-grp summary { cursor: pointer; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); padding: 8px; border-radius: 8px; }
.rh-grp summary:hover { background: #eef2f7; }
.rh-grp ul { list-style: none; margin: 0 0 6px; padding: 0 0 0 8px; border-left: 2px solid var(--line); margin-left: 10px; }
.rh-grp li a { display: block; padding: 6px 10px; color: #334155; text-decoration: none; border-radius: 8px; font-size: .94rem; line-height: 1.4; }
.rh-grp li a:hover { background: #eef2f7; }
.rh-nav a[aria-current="page"] { background: #dbeafe; color: #1e3a8a; font-weight: 600; }
.rh-center { display: block; padding: 0 16px; }
.rh-art { padding: 20px 0 40px; min-width: 0; outline: 0; }
.rh-art h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.2; margin: 8px 0 6px; letter-spacing: -.01em; }
.rh-meta { color: var(--mut); font-size: .9rem; margin: 0 0 16px; }
.rh-bc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: .85rem; color: var(--mut); }
.rh-bc li + li::before { content: '›'; margin: 0 8px; color: #94a3b8; }
.rh-bc a { color: var(--mut); }
.rh-bc [aria-current] { color: var(--ink); }

/* İçerik */
.rh-prose { max-width: 760px; }
.rh-prose h2, .rh-prose h3, .rh-prose h4 { line-height: 1.3; margin: 2rem 0 .6rem; position: relative; }
.rh-prose h2 { font-size: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.rh-prose h3 { font-size: 1.2rem; }
.rh-prose h4 { font-size: 1.05rem; }
.rh-prose .anchor { margin-left: 8px; text-decoration: none; color: #64748b; font-weight: 400; opacity: 0; }
.rh-prose h2:hover .anchor, .rh-prose h3:hover .anchor, .rh-prose h4:hover .anchor, .anchor:focus { opacity: 1; }
.rh-prose p, .rh-prose ul, .rh-prose ol, .rh-prose blockquote { margin: 0 0 1rem; }
.rh-prose li { margin: .25rem 0; }
.rh-prose blockquote { border-left: 4px solid #93c5fd; background: #eff6ff; padding: .6rem 1rem; border-radius: 0 10px 10px 0; color: #1e293b; }
.rh-prose blockquote p:last-child { margin: 0; }
.rh-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: #eef2f7; padding: .12em .4em; border-radius: 6px; }
.rh-prose img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; margin: 1rem 0; }
.rh-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.code { position: relative; margin: 0 0 1.1rem; }
.code pre { margin: 0; background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 14px 16px; padding-right: 92px; overflow: auto; font-size: .88rem; line-height: 1.55; }
.code pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.code .copy { position: absolute; top: 8px; right: 8px; }
.copy { font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; border: 1px solid #94a3b8; background: #fff; color: #1e293b; border-radius: 8px; padding: 3px 10px; line-height: 1.5; }
.copy:hover { background: #eff6ff; border-color: var(--p); }
.copy.ok { background: #dcfce7; border-color: #16a34a; color: #14532d; }
.tablewrap { overflow-x: auto; margin: 0 0 1.1rem; border: 1px solid var(--line); border-radius: 12px; }
.rh-prose table { border-collapse: collapse; width: 100%; font-size: .94rem; min-width: 420px; }
.rh-prose th, .rh-prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rh-prose th { background: var(--soft); font-weight: 700; white-space: nowrap; }
.rh-prose tr:last-child td { border-bottom: 0; }
.cmdcell { white-space: nowrap; }
.cmdcell .cmd { margin-right: 8px; }
.cmdcell .copy { padding: 1px 8px; vertical-align: middle; }

/* Alt bölümler */
.rh-panel { max-width: 760px; margin: 2.2rem 0 1.4rem; padding: 18px 20px; border-radius: 16px; border: 1px solid #bfdbfe; background: linear-gradient(135deg, #eff6ff, #ecfdf5); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.rh-panel p { margin: 0; font-weight: 600; flex: 1 1 240px; }
.rh-btn { display: inline-block; background: var(--pd); color: #fff; text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 10px; }
.rh-btn:hover { background: #1e40af; }
.rh-rel { max-width: 760px; margin: 1.6rem 0; }
.rh-rel h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
.rh-rel ul, .rh-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.rh-rel a, .rh-cards a { border: 1px solid var(--line); padding: 12px 14px; background: #fff; border-radius: 12px; }
.rh-rel a:hover, .rh-cards a:hover { border-color: var(--p); background: #f8fbff; }
.rh-rel strong, .rh-cards strong { display: block; color: var(--ink); }
.rh-rel span, .rh-cards span { display: block; color: var(--mut); font-size: .88rem; line-height: 1.45; margin-top: 2px; }
.rh-pn { max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 1.6rem; }
.rh-pn a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.rh-pn a:hover { border-color: var(--p); }
.rh-pn small { display: block; color: var(--mut); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.rh-pn span { font-weight: 600; }
.rh-pn .next { text-align: right; grid-column: 2; }
.rh-intro { color: var(--mut); max-width: 720px; }
.rh-g { margin: 2rem 0; scroll-margin-top: 80px; }
.rh-g h2 { font-size: 1.35rem; margin: 0 0 .3rem; }
.rh-gd { color: var(--mut); margin: 0 0 .6rem; }

/* TOC */
.rh-toc-m { max-width: 760px; margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); padding: 4px 14px; }
.rh-toc-m summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.rh-toc-m ol, .rh-toc ol { list-style: none; margin: 0; padding: 0 0 8px; }
.rh-toc a, .rh-toc-m a { display: block; padding: 4px 0; color: #334155; text-decoration: none; font-size: .9rem; line-height: 1.4; }
.l3 { padding-left: 14px; }
.rh-toc { display: none; }
.rh-toc-t { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); margin: 0 0 8px; }
.rh-toc a[aria-current="true"] { color: var(--pd); font-weight: 700; }

/* Alt bilgi */
.rh-foot { border-top: 1px solid var(--line); background: var(--soft); margin-top: 24px; }
.rh-foot-in { max-width: 1440px; margin: 0 auto; padding: 20px 16px 28px; color: var(--mut); font-size: .88rem; }
.rh-foot p { margin: 4px 0; }
.rh-foot a { color: var(--mut); }

@media (min-width: 640px) {
  .rh-search { order: 0; flex: 1 1 280px; max-width: 460px; margin: 0 auto 0 12px; }
  .rh-cta { order: 0; margin-left: 0; }
}
@media (min-width: 900px) {
  .rh-burger { display: none !important; }
  .rh-shade { display: none !important; }
  .rh-body { display: grid; grid-template-columns: 270px minmax(0, 1fr); }
  .rh-nav, .js .rh-nav { position: sticky; top: var(--top); height: calc(100vh - var(--top)); align-self: start; transform: none; visibility: visible; width: auto; box-shadow: none; border: 0; border-right: 1px solid var(--line); background: #fff; padding: 18px 12px; overflow: auto; z-index: 1; }
  .rh-center { padding: 0 32px; display: grid; grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1200px) {
  .rh-center:not(.one) { grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; }
  .rh-toc { display: block; position: sticky; top: calc(var(--top) + 24px); align-self: start; padding-top: 26px; max-height: calc(100vh - var(--top) - 48px); overflow: auto; border-left: 1px solid var(--line); padding-left: 16px; }
  .rh-toc-m { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .rh-nav { transition: none; } }
@media print { .rh-top, .rh-nav, .rh-toc, .rh-toc-m, .copy, .rh-shade, .rh-panel { display: none !important; } .rh-body, .rh-center { display: block; } }
.rh-cards .t { font-weight: 700; color: var(--ink); }
.rh-cards .g { font-size: .78rem; }
@media (max-width: 639px) {
  .rh-top-in { gap: 8px; }
  .rh-brand { padding-left: 8px; font-size: .95rem; }
  .rh-cta { padding: 7px 10px; font-size: .85rem; }
}
@media (max-width: 639px) {
  .rh-top-in { padding: 8px 12px; gap: 6px; }
  .rh-logo { font-size: 1rem; }
  .rh-brand { font-size: .88rem; padding-left: 6px; }
  .rh-burger { width: 36px; height: 36px; } .rh-burger span { top: 17px; }
  .rh-cta { padding: 7px 9px; font-size: .8rem; }
}
