/* Siper — tek stil dosyası. CSP satır içi stile izin vermez; tüm görünüm burada.
   İlke: kâğıt zemin, mürekkep metin, tek vurgu (koyu yeşil), ince çizgiler, serif başlıklar.
   Önem renkleri yalnızca rapor ve bulgu etiketlerinde kullanılır. */

:root {
  --paper: #f5f3ee;
  --paper-2: #efece5;
  --sheet: #fbfaf7;
  --ink: #15171a;
  --ink-2: #33363b;
  --muted: #5d6066;
  --rule: #d8d3c8;
  --rule-strong: #b9b2a4;
  --accent: #1d4a37;
  --accent-ink: #143628;
  --accent-tint: #e3ebe4;
  --focus: #1d4a37;

  --crit: #7c1616;
  --crit-bg: #f4e1df;
  --high: #a2391a;
  --high-bg: #f6e5dc;
  --med: #865600;
  --med-bg: #f5ead2;
  --low: #2f557a;
  --low-bg: #e2e9f0;
  --info: #555a61;
  --info-bg: #e8e6e1;

  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --w: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
  font-feature-settings: "kern", "liga";
}
img, svg { max-width: 100%; height: auto; }

/* ---------- Tipografi ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .6em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 500; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 500; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
p, li { max-width: 68ch; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-ink); text-decoration-thickness: 2px; }
strong, b { font-weight: 650; }
small { font-size: .85rem; }
code, kbd, pre, samp { font-family: var(--mono); font-size: .88em; }
code { background: var(--paper-2); padding: .08em .3em; border-radius: 2px; }
pre { white-space: pre-wrap; word-break: break-word; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
abbr[title] { text-decoration: underline dotted; }

.label, .eyebrow {
  font-variant-caps: all-small-caps;
  letter-spacing: .08em;
  font-size: .95rem;
  color: var(--muted);
  font-weight: 600;
}
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .9em; }
.nowrap { white-space: nowrap; }

/* Erişilebilirlik */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip {
  position: absolute; left: .5rem; top: -3rem;
  background: var(--ink); color: var(--paper); padding: .5rem .8rem; z-index: 10;
}
.skip:focus { top: .5rem; color: var(--paper); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Yerleşim ---------- */
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
main.wrap { padding-top: 2rem; padding-bottom: 4rem; min-height: 60vh; }

header.top { border-bottom: 1px solid var(--ink); background: var(--paper); }
header.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem; flex-wrap: wrap; padding-top: .9rem; padding-bottom: .9rem;
}
.brand {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: .01em;
  display: inline-flex; align-items: baseline; gap: .6rem;
}
.brand:hover { color: var(--ink); }
.brand small {
  font-family: var(--sans); font-variant-caps: all-small-caps; letter-spacing: .08em;
  font-size: .85rem; color: var(--muted); font-weight: 600;
}
header.top nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.25rem; }
header.top nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; padding: .25rem 0; }
header.top nav a:hover { color: var(--ink); text-decoration: underline; }
header.top nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
header.top nav .btn { padding: .4rem .85rem; }
header.top nav form { margin: 0; display: inline; }
header.top nav .linklike { font-size: .95rem; color: var(--ink-2); }

footer.foot { border-top: 1px solid var(--ink); background: var(--paper-2); font-size: .92rem; color: var(--ink-2); }
footer.foot .wrap { padding-top: 2.5rem; padding-bottom: 2rem; }
.foot-cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
.foot-cols h2 { font-family: var(--sans); font-size: .95rem; font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--muted); margin-bottom: .6rem; font-weight: 600; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin: .25rem 0; }
.foot-cols a { color: var(--ink-2); text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; color: var(--ink); }
.foot-note { border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }

/* ---------- Sayfa başı ---------- */
.page-head { border-bottom: 1px solid var(--rule); padding-bottom: 1.25rem; margin-bottom: 2rem; }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; margin-bottom: 0; }
.page-head .actions { margin-top: 1rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.page-head .eyebrow { display: block; margin-bottom: .4rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); }

/* ---------- Düğmeler ---------- */
.btn, button.btn, input[type="submit"].btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: 600 .95rem/1.2 var(--sans);
  padding: .62rem 1.1rem;
  border: 1px solid var(--ink);
  background: var(--sheet);
  color: var(--ink);
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  min-height: 2.5rem;
}
.btn:hover { background: var(--paper-2); color: var(--ink); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn.danger { border-color: var(--crit); color: var(--crit); background: var(--sheet); }
.btn.danger:hover { background: var(--crit); color: #fff; }
.btn.small { padding: .32rem .7rem; font-size: .85rem; min-height: 2rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: var(--accent);
  text-decoration: underline; text-underline-offset: .18em; cursor: pointer;
}
.inline-form { display: inline; margin: 0; }

/* ---------- Kartlar, ızgaralar ---------- */
.card {
  background: var(--sheet);
  border: 1px solid var(--rule);
  padding: 1.25rem 1.35rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-top: 0; }
.grid-2, .grid-3 { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 > .card, .grid-3 > .card { margin-bottom: 0; }
.grid-2 > *, .grid-3 > *, .cols-2 > *, .cols-3 > *, .auth-split > *, .hero > *, .section-head > * { min-width: 0; }

/* ---------- Tablolar ---------- */
table.data {
  position: relative;
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  margin: 0 0 1.5rem;
  background: var(--sheet);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
table.data caption {
  text-align: left; caption-side: top; padding: 0 0 .5rem;
  font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--muted); font-weight: 600;
}
table.data th, table.data td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data thead th {
  font-variant-caps: all-small-caps; letter-spacing: .06em; font-weight: 650;
  color: var(--ink-2); border-bottom: 1px solid var(--ink); white-space: nowrap;
}
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tfoot td { border-top: 1px solid var(--ink); font-weight: 650; }
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.5rem; }
.table-scroll table.data { margin-bottom: 0; }

/* ---------- Formlar ---------- */
form.form { max-width: 40rem; }
form.form label { display: block; margin: 0 0 1.1rem; }
form.form label > span {
  display: block; font-weight: 600; font-size: .93rem; margin-bottom: .3rem; color: var(--ink);
}
form.form small { display: block; color: var(--muted); margin-top: .3rem; line-height: 1.45; }
fieldset { min-width: 0; }
form.form fieldset { border: 1px solid var(--rule); padding: 1rem 1.1rem .3rem; margin: 0 0 1.4rem; background: var(--sheet); }
form.form legend { padding: 0 .4rem; font-variant-caps: all-small-caps; letter-spacing: .08em; font-weight: 650; color: var(--ink-2); }
form.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
form.form .form-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: 1.4rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"],
input[type="number"], input[type="search"], input[type="date"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: .55rem .65rem;
  min-height: 2.6rem;
}
textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
input[type="file"] { font: inherit; font-size: .95rem; max-width: 100%; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--crit); }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .2rem 0 1rem; }
.radio-row label { display: inline-flex !important; align-items: center; gap: .45rem; margin: 0 !important; font-weight: 500; }
.file-name { display: block; font-family: var(--mono); font-size: .85rem; color: var(--ink-2); margin-top: .35rem; }

.check {
  display: flex; align-items: flex-start; gap: .6rem;
  margin: 0 0 .8rem; line-height: 1.45;
}
form.form label.check { display: flex; }
.check input[type="checkbox"], .check input[type="radio"] { margin: .2rem 0 0; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--accent); }
.check span { font-weight: 400 !important; display: inline !important; margin: 0 !important; }

/* ---------- Durum ve bildirim ---------- */
.flash {
  border: 1px solid; border-left-width: 4px; padding: .7rem 1rem; margin: 0 0 1.5rem;
  background: var(--sheet); max-width: none;
}
.flash.ok { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-tint); }
.flash.error { border-color: var(--crit); color: var(--crit); background: var(--crit-bg); }
.notice { border: 1px solid var(--rule-strong); border-left: 4px solid var(--ink); background: var(--sheet); padding: .9rem 1.1rem; margin: 0 0 1.5rem; }
.notice > :last-child { margin-bottom: 0; }
.empty {
  border: 1px dashed var(--rule-strong); padding: 2rem 1.25rem; text-align: center; color: var(--muted);
  background: var(--sheet); margin-bottom: 1.5rem;
}
.empty p { margin-left: auto; margin-right: auto; }

.sev {
  display: inline-block; font-size: .78rem; font-weight: 700; line-height: 1.3;
  padding: .12rem .45rem; border: 1px solid; border-radius: 2px;
  font-variant-caps: all-small-caps; letter-spacing: .07em; white-space: nowrap;
  font-size: .9rem;
}
.sev-critical { color: var(--crit); background: var(--crit-bg); border-color: var(--crit); }
.sev-high { color: var(--high); background: var(--high-bg); border-color: var(--high); }
.sev-medium { color: var(--med); background: var(--med-bg); border-color: var(--med); }
.sev-low { color: var(--low); background: var(--low-bg); border-color: var(--low); }
.sev-info { color: var(--info); background: var(--info-bg); border-color: var(--info); }

.status {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600; white-space: nowrap;
  color: var(--ink-2);
}
.status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.st-done, .st-approved, .st-paid { color: var(--accent); }
.st-done::before, .st-approved::before, .st-paid::before { background: currentColor; }
.st-running { color: var(--low); }
.st-running::before { border-width: 2px; border-right-color: transparent; }
.st-queued, .st-pending, .st-new { color: var(--ink-2); }
.st-blocked { color: var(--med); }
.st-failed, .st-rejected { color: var(--crit); }
.st-failed::before, .st-rejected::before { background: currentColor; border-radius: 0; }

.stat {
  display: flex; flex-direction: column; gap: .2rem;
  border-top: 2px solid var(--ink); padding: .8rem 0 0;
}
.stat b { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { font-variant-caps: all-small-caps; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }

.progress { height: .5rem; background: var(--paper-2); border: 1px solid var(--rule-strong); width: 100%; max-width: 28rem; }
.progress > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .4s; }
progress.bar { width: 100%; max-width: 28rem; height: .6rem; accent-color: var(--accent); }

/* ---------- Alt menü ---------- */
.subnav {
  display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; border-bottom: 1px solid var(--rule);
  margin: -.5rem 0 2rem; padding: 0; list-style: none;
}
.subnav a {
  display: inline-block; padding: .55rem 0; color: var(--ink-2); text-decoration: none; font-size: .95rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.subnav a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.subnav a[aria-current="page"], .subnav a.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

/* ---------- Sözleşme metni ---------- */
fieldset.contracts .contract { border-top: 1px solid var(--rule); padding-top: .9rem; margin-top: .9rem; }
fieldset.contracts .contract:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
fieldset.contracts .contract h3 { font-size: 1rem; margin-bottom: .5rem; }
fieldset.contracts .contract h3 small { font-family: var(--sans); font-weight: 400; }
fieldset.contracts .legal { max-height: 13rem; overflow-y: auto; padding: 1rem 1.1rem; font-size: .9rem; background: #fff; margin-bottom: .75rem; }
fieldset.contracts .legal h3 { font-size: .98rem; }
.legal { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(1.25rem, 4vw, 2.5rem); font-family: var(--serif); font-size: 1.04rem; line-height: 1.65; }
.legal h1, .legal h2, .legal h3 { font-family: var(--serif); }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.4rem; }
.legal p, .legal li { max-width: 72ch; }
.legal ol, .legal ul { padding-left: 1.4rem; }
.legal-scroll { max-height: 16rem; overflow-y: auto; border: 1px solid var(--rule); padding: 1rem; background: #fff; font-size: .92rem; margin-bottom: .8rem; }

.paytr-frame { border: 1px solid var(--rule); background: #fff; padding: .5rem; margin: 0 0 1.5rem; }
.paytr-frame iframe { width: 100%; min-height: 640px; border: 0; display: block; }

/* ---------- Kamu sayfaları ---------- */
.hero { padding: 2rem 0 3rem; margin-bottom: 1rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.12; margin-bottom: .5em; }
.hero .lead { font-size: 1.15rem; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.6rem 0 1rem; }
.hero .fine { font-size: .9rem; color: var(--muted); }

.section { margin: 0 0 3.5rem; }
.section-head { display: grid; grid-template-columns: 3.5rem 1fr; gap: 0 1rem; border-top: 1px solid var(--ink); padding-top: 1rem; margin-bottom: 1.5rem; }
.section-head .num { font-family: var(--serif); font-size: 1.1rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .35rem; }
.section-head h2 { margin-bottom: .3rem; }
.section-head p { color: var(--ink-2); margin: 0; }
.section-body { margin-left: 4.5rem; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Dört adım — numaralı, çizgili liste */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
ol.steps > li { counter-increment: step; padding: 1rem 1.25rem 0 0; border-right: 1px solid var(--rule); margin-right: 1.25rem; max-width: none; }
ol.steps > li:last-child { border-right: 0; margin-right: 0; }
ol.steps > li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--accent); margin-bottom: .4rem; }
ol.steps h3 { font-size: 1.1rem; margin-bottom: .35rem; }
ol.steps p { font-size: .95rem; color: var(--ink-2); }

/* Tanım listeleri (kontroller, kapsam) */
dl.defs { margin: 0; display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; border-top: 1px solid var(--rule); }
dl.defs dt, dl.defs dd { padding: .7rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
dl.defs dt { font-weight: 650; padding-right: 1.5rem; }
dl.defs dd { color: var(--ink-2); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.5rem; margin: 0 0 1.25rem; }
dl.kv dt { color: var(--muted); font-variant-caps: all-small-caps; letter-spacing: .06em; font-weight: 600; }
dl.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

ul.plain { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.plain li { padding: .45rem 0; border-bottom: 1px solid var(--rule); }
ul.ticks { padding-left: 1.2rem; }
ul.ticks li { margin: .35rem 0; }
ul.ticks li::marker { content: "— "; color: var(--muted); }

.refs-inline { font-family: var(--mono); font-size: .8rem; color: var(--muted); white-space: nowrap; }

/* Örnek rapor parçası: kâğıt üstüne kâğıt */
.excerpt {
  background: #fff; border: 1px solid var(--rule-strong); padding: 1.4rem 1.5rem 1.2rem;
  box-shadow: 4px 4px 0 var(--paper-2), 4px 4px 0 1px var(--rule);
  font-size: .93rem;
}
.excerpt-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; border-bottom: 1px solid var(--ink); padding-bottom: .8rem; margin-bottom: .9rem; }
.excerpt-head .t { font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; }
.excerpt-head .meta { font-family: var(--mono); font-size: .76rem; color: var(--muted); margin-top: .2rem; }
.excerpt table.data { border-top-width: 1px; font-size: .88rem; margin-bottom: .8rem; background: transparent; }
.excerpt table.data th, .excerpt table.data td { padding: .45rem .4rem; }
.excerpt .foot { font-size: .8rem; color: var(--muted); margin: 0; }
.grade-mini { white-space: nowrap; flex: none; text-align: center; border: 1px solid var(--ink); padding: .25rem .65rem; line-height: 1; }
.grade-mini b { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; }
.grade-mini span { font-size: .7rem; color: var(--muted); font-variant-caps: all-small-caps; letter-spacing: .06em; }

/* Fiyat tablosu */
.price-table td.price { font-family: var(--serif); font-size: 1.25rem; white-space: nowrap; }
.price-note { font-size: .92rem; color: var(--muted); }

/* SSS */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); padding: 0; }
.faq summary {
  cursor: pointer; padding: 1rem 2rem 1rem 0; font-family: var(--serif); font-size: 1.12rem; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-family: var(--sans); font-size: 1.3rem; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.1rem; color: var(--ink-2); }

.callout { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 1.6rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.callout h2 { margin: 0 0 .3rem; }
.callout p { margin: 0; color: var(--ink-2); }

.aside-note { border-left: 2px solid var(--accent); padding: .2rem 0 .2rem 1rem; color: var(--ink-2); margin: 1.5rem 0; }

/* Kimlik doğrulama sayfaları */
.auth { max-width: 30rem; margin: 1rem auto 0; }
.auth-wide { max-width: 46rem; }
.auth-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.auth-split aside { border-top: 2px solid var(--ink); padding-top: 1rem; font-size: .95rem; color: var(--ink-2); }

/* Doğrulama belirteci */
.token-box { display: flex; align-items: stretch; gap: .5rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.token-box code { flex: 1 1 18rem; display: block; background: #fff; border: 1px solid var(--rule-strong); padding: .55rem .7rem; font-size: .9rem; word-break: break-all; }
.method { border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1rem; }
.method h3 { font-size: 1.05rem; }
ol.howto { padding-left: 1.3rem; }
ol.howto li { margin: .35rem 0; }

/* ---------- Rapor ---------- */
.report { background: var(--sheet); border: 1px solid var(--rule-strong); padding: clamp(1.1rem, 4vw, 2.75rem); margin-bottom: 2rem; }
.report-cover { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; border-bottom: 2px solid var(--ink); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.report-cover h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: .4rem; word-break: break-word; }
.report-cover .eyebrow { display: block; margin-bottom: .4rem; }
.grade {
  min-width: 8.5rem; text-align: center; border: 2px solid var(--ink); padding: .8rem 1rem .7rem; align-self: start; background: #fff;
}
.grade b { display: block; font-family: var(--serif); font-size: 4.2rem; font-weight: 500; line-height: 1; }
.grade .score { display: block; font-variant-numeric: tabular-nums; margin-top: .35rem; font-size: 1rem; }
.grade small { display: block; color: var(--muted); font-variant-caps: all-small-caps; letter-spacing: .06em; font-weight: 600; }
.grade.g-A b, .grade.g-B b { color: var(--accent); }
.grade.g-C b { color: var(--med); }
.grade.g-D b, .grade.g-F b { color: var(--crit); }
.report-section { margin: 0 0 2.5rem; }
.report-section > h2 { font-size: 1.35rem; border-bottom: 1px solid var(--rule); padding-bottom: .4rem; margin-bottom: 1rem; display: flex; gap: .75rem; align-items: baseline; }
.report-section > h2 .n { font-family: var(--serif); color: var(--muted); font-size: 1rem; font-variant-numeric: tabular-nums; }
.sev-table { max-width: 30rem; }
.sev-table td.bar { width: 45%; }
.sev-bar { display: block; height: .55rem; background: var(--ink-2); min-width: 2px; }
.sev-bar.sev-critical { background: var(--crit); } .sev-bar.sev-high { background: var(--high); }
.sev-bar.sev-medium { background: var(--med); } .sev-bar.sev-low { background: var(--low); } .sev-bar.sev-info { background: var(--info); }
.w-0 { width: 0; } .w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; } .w-25 { width: 25%; }
.w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; } .w-50 { width: 50%; } .w-55 { width: 55%; }
.w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; } .w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; }
.w-90 { width: 90%; } .w-95 { width: 95%; } .w-100 { width: 100%; }

.finding { border-top: 1px solid var(--rule); padding: 1.2rem 0 .4rem; break-inside: avoid-page; }
.finding-head { display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .6rem; }
.finding-head h4 { margin: 0; font-size: 1.08rem; flex: 1 1 18rem; }
.finding-head .fid { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.finding .fl { font-variant-caps: all-small-caps; letter-spacing: .07em; font-weight: 650; color: var(--muted); margin: .7rem 0 .2rem; font-size: .95rem; }
.finding .fl + p { margin-bottom: .6rem; }
.evidence { background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--ink-2); padding: .6rem .8rem; font-family: var(--mono); font-size: .82rem; white-space: pre-wrap; word-break: break-word; margin: 0 0 .6rem; max-height: 22rem; overflow: auto; }
.finding .refs { font-size: .85rem; color: var(--muted); }
.finding .refs a { font-family: var(--mono); font-size: .82rem; }
.finding.locked { color: var(--muted); }
.finding.locked .lock-note { font-size: .9rem; border: 1px dashed var(--rule-strong); padding: .5rem .75rem; display: inline-block; }
.unlock { border: 2px solid var(--ink); background: #fff; padding: 1.1rem 1.25rem; margin: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.unlock p { margin: 0; }
.threat { border: 1px solid var(--rule-strong); background: #fff; padding: 1rem 1.2rem; }
.threat ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.report-toolbar { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 1rem; }

/* ---------- Duyarlı ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  ol.steps { grid-template-columns: 1fr 1fr; }
  ol.steps > li:nth-child(2) { border-right: 0; margin-right: 0; }
  ol.steps > li { padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .auth-split { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .num { padding-top: 0; }
  .section-body { margin-left: 0; }
  ol.steps { grid-template-columns: 1fr; }
  ol.steps > li { border-right: 0; margin-right: 0; }
  dl.defs { grid-template-columns: 1fr; }
  dl.defs dt { border-bottom: 0; padding-bottom: 0; }
  dl.defs dd { padding-top: .2rem; }
  form.form .row-2 { grid-template-columns: 1fr; }
  .report-cover { grid-template-columns: 1fr; }
  .grade { justify-self: start; }
  table.data { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-scroll table.data { display: table; }
  .brand small { display: none; }
  .excerpt { padding: 1rem; }
}
@media (max-width: 420px) {
  .foot-cols { grid-template-columns: 1fr; }
  dl.kv { grid-template-columns: 1fr; gap: 0; }
  dl.kv dd { margin-bottom: .5rem; }
  .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Baskı ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  header.top, footer.foot, .subnav, .skip, .report-toolbar, .unlock form, .no-print, .flash, .btn { display: none !important; }
  main.wrap { padding: 0; max-width: none; }
  a { color: #000; text-decoration: none; }
  .report a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #444; word-break: break-all; }
  .report { border: 0; padding: 0; background: #fff; }
  .report-cover { break-after: avoid; }
  .report-section > h2 { break-after: avoid; }
  .finding { break-inside: avoid; }
  .evidence { max-height: none; overflow: visible; border-color: #999; }
  table.data { display: table; background: #fff; }
  .sev { border-width: 1px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .grade, .sev-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
