/* Kullanım kılavuzu: site.css üzerine. Ekranda iki sütun (içindekiler + metin), yazdırınca kapaklı A4 belge. */

.top__title { font-weight: 600; color: var(--muted); padding-left: 18px; border-left: 1px solid var(--line); }
@media (max-width: 640px) { .top__title { display: none; } }
.top__cta { margin-left: auto; }

.cover { display: none; }

.doc__in { display: grid; gap: 40px; padding: 48px 0 110px; }
@media (min-width: 1000px) { .doc__in { grid-template-columns: 230px minmax(0, 1fr); gap: 64px; } }

.toc { font-size: 0.95rem; }
.toc ol { counter-reset: t; display: grid; gap: 2px; }
.toc li { counter-increment: t; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: "Geist Mono", monospace; font-size: 0.75rem; color: var(--lime-dark); margin-right: 10px; }
.toc a:hover { background: var(--paper-2); color: var(--ink); }
@media (min-width: 1000px) { .toc { position: sticky; top: 96px; align-self: start; } }
@media (max-width: 999px) { .toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; } .toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }

.doc__body { max-width: 860px; min-width: 0; }
.doc__head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.doc__head { margin-bottom: 40px; }

.doc__body section { padding-top: 56px; margin-top: 56px; border-top: 1px solid var(--line); }
.doc__body h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 20px; display: flex; align-items: baseline; gap: 14px; }
.doc__body h2 span { font-family: "Geist Mono", monospace; font-size: 0.9rem; font-weight: 500; color: var(--lime-dark); letter-spacing: 0; }
.doc__body h3 { font-size: 1.2rem; margin: 36px 0 12px; clear: both; }
.doc__body p { margin: 12px 0; }
.doc__body p, .doc__body li, .doc__body dd { color: #2b3545; }
.doc__body a { color: var(--ink); text-decoration-color: var(--lime-dark); text-underline-offset: 3px; }
code { font-family: "Geist Mono", monospace; font-size: 0.88em; background: var(--paper-2); padding: 1px 6px; border-radius: 5px; word-break: break-all; }

.list { display: grid; gap: 8px; margin: 12px 0; }
.list li { position: relative; padding-left: 22px; }
.list li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--navy); }

.steps-list { counter-reset: n; display: grid; gap: 12px; margin: 14px 0; }
.steps-list li { counter-increment: n; position: relative; padding-left: 40px; min-height: 28px; }
.steps-list li::before {
  content: counter(n); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: var(--lime); font: 600 0.85rem/28px "Geist Mono", monospace; text-align: center;
}

.defs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 16px 0; }
.defs dt { font-weight: 600; }
.defs dd { margin: 0; }
@media (max-width: 560px) { .defs { grid-template-columns: 1fr; } .defs dd { margin-bottom: 8px; } }

.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.pill.ok { background: #e3f4ea; color: #1f7a45; }
.pill.warn { background: #fdf0dc; color: #9a5200; }
.pill.gray { background: #eceef2; color: #4d5869; }
.pill.err { background: #fbe4e5; color: #b0242b; }
.c-green { color: #1f8a4c; } .c-red { color: #c0262d; } .c-orange { color: #c46a00; }

.note { margin: 20px 0; padding: 16px 18px; border-radius: 12px; background: #eef4dc; border-left: 4px solid var(--lime-dark); color: #2b3545; }
.note > b:first-child { display: block; margin-bottom: 4px; }
.note--warn { background: #fdf0dc; border-left-color: #c46a00; }

/* Görseller */
.fig { margin: 20px 0; }
.fig img { border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 16px 40px -24px rgba(14, 26, 43, 0.4); }
.fig figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.fig--wide { position: relative; }
.fig--mid { max-width: 440px; }
.fig--side { float: right; width: min(300px, 42%); margin: 6px 0 16px 28px; }
.fig--side img { width: 100%; }
@media (max-width: 640px) { .fig--side { float: none; width: auto; max-width: 340px; margin: 16px 0; } }
.doc__body section::after { content: ""; display: table; clear: both; }
.figs { display: grid; gap: 20px; margin: 20px 0; }
@media (min-width: 700px) { .figs { grid-template-columns: 1fr 1fr; } }
.figs .fig { margin: 0; }

.legend i {
  display: inline-grid; place-items: center; border-radius: 50%;
  background: var(--lime); color: var(--navy); font: 700 0.7rem/1 "Geist Mono", monospace; font-style: normal;
}
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; align-items: center; }
.legend i { width: 20px; height: 20px; font-size: 0.7rem; box-shadow: 0 0 0 2px var(--navy); margin-right: -8px; }

.faq details p { color: #2b3545; }
.help { display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding: 22px; border-radius: var(--radius); background: var(--navy); color: var(--paper); }
.help p, .help a { color: #c9d1dc; }
.help a { color: var(--lime); }
.help img { flex: none; border-radius: 12px; }

/* ——— Yazdırma (PDF) ——— */
@page { size: A4; margin: 16mm 16mm 18mm; }
@page :first { margin: 0; }
@media print {
  body { background: #fff; font-size: 10.5pt; line-height: 1.5; }
  .top, .toc, .foot, .skip, .doc__head .eyebrow { display: none !important; }
  .cover {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    height: 297mm; padding: 0 22mm; page-break-after: always; break-after: page;
    background: var(--paper);
  }
  .cover__logo { width: 70mm; margin-bottom: 18mm; }
  .cover h1 { font-size: 34pt; }
  .cover p { font-size: 15pt; color: var(--muted); margin-top: 4mm; }
  .cover__box { width: 88mm; margin: 16mm 0 0 auto; transform: rotate(2deg); }
  .cover .cover__foot { margin-top: auto; margin-bottom: 18mm; font-size: 9pt; font-family: "Geist Mono", monospace; }
  .wrap { width: auto; }
  .doc__in { display: block; padding: 0; }
  .doc__body { max-width: none; }
  .doc__head { margin-bottom: 8mm; }
  .doc__head h1 { font-size: 26pt; }
  .doc__body section { margin-top: 9mm; padding-top: 7mm; }
  .doc__body h2 { break-after: avoid; }
  .fig--side img { max-height: 105mm; width: auto; }
  .doc__body h2 { font-size: 20pt; }
  .doc__body h3 { font-size: 12.5pt; margin-top: 7mm; break-after: avoid; }
  .fig, .note, .figs, .help, .faq details { break-inside: avoid; }
  .fig img { box-shadow: none; }
  .fig--side { width: 58mm; }
  .faq details summary::after { display: none; }
  .doc__body a { text-decoration: none; }
  .help { background: var(--paper-2); color: var(--ink); }
  .help p, .help a { color: var(--ink); }
}
