/* umisec.dev — tek stil dosyası. Renkler :root'ta, koyu tema altta. */
:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #eeeee9;
  --text: #1a1c1e;
  --muted: #5b6168;
  --line: #dcdcd5;
  --accent: #0d6b62;
  --accent-soft: #d8ece8;
  --ok: #1d6b34;
  --ok-bg: #dcefe1;
  --wip: #8a5a00;
  --wip-bg: #f6e8c8;
  --plan: #4d5560;
  --plan-bg: #e4e6e9;
  --red: #9b2c2c;
  --red-bg: #f5dede;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101315;
    --surface: #171b1e;
    --surface-2: #1e2327;
    --text: #e4e7e9;
    --muted: #9aa3ab;
    --line: #2a3035;
    --accent: #3cc7b4;
    --accent-soft: #163330;
    --ok: #7fd394;
    --ok-bg: #173022;
    --wip: #f0c36a;
    --wip-bg: #352a12;
    --plan: #b3bac2;
    --plan-bg: #262b30;
    --red: #f19a9a;
    --red-bg: #3a1c1c;
    color-scheme: dark;
  }
}

/* Dil: <html data-lang="tr"> ise İngilizce bloklar gizlenir, değilse Türkçe. */
html:not([data-lang="tr"]) body [lang="tr"] { display: none; }
html[data-lang="tr"] body [lang="en"] { display: none; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Üst çubuk */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font: 600 1.05rem var(--mono); color: var(--text); text-decoration: none; }
.brand svg { width: 22px; height: 22px; color: var(--accent); }
.nav { display: flex; gap: 4px 14px; flex-wrap: wrap; margin-left: auto; font-size: 0.93rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--accent); }
.lang-btn {
  font: 600 0.8rem var(--mono); letter-spacing: 0.04em;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; cursor: pointer;
}
.lang-btn:hover { border-color: var(--accent); }

/* Bölümler */
.hero { padding: 56px 0 32px; }
.hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 68ch; }
.eyebrow { font: 600 0.78rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
section { padding: 36px 0; border-top: 1px solid var(--line); }
section[id] { scroll-margin-top: 96px; }
.prose { max-width: 72ch; }
.muted { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li { margin: 0; font-size: 0.86rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .more { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 0.93rem; color: var(--accent); }
a.card { color: var(--text); text-decoration: none; transition: border-color 0.15s; }
a.card:hover { border-color: var(--accent); }
.card ul { margin: 4px 0 0; color: var(--muted); font-size: 0.93rem; }

.callout {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 0 0 1.2em; max-width: 78ch;
}
/* Son blok (ve iki dilli çiftte İngilizce eşi) alt boşluk bırakmaz. */
.callout > :last-child, .callout > [lang="en"]:nth-last-child(2) { margin-bottom: 0; }
.callout.red { background: var(--red-bg); border-left-color: var(--red); }

/* Durum rozetleri */
.pill { display: inline-block; font: 600 0.72rem var(--mono); letter-spacing: 0.03em; padding: 2px 8px; border-radius: 999px; white-space: nowrap; vertical-align: 1px; }
.pill.ok { color: var(--ok); background: var(--ok-bg); }
.pill.wip { color: var(--wip); background: var(--wip-bg); }
.pill.plan { color: var(--plan); background: var(--plan-bg); }

/* Tablolar */
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { font: 600 0.78rem var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; min-width: 130px; }

.two { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 36px; margin-bottom: 12px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 0.78rem var(--mono); color: var(--accent); border: 1px solid var(--accent);
}

/* Güven sınırı şeması (mtsk.html) */
.diagram { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 0 0 1.4em; }
.zone { border: 1.5px dashed var(--accent); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.zone.net { border-color: var(--line); border-style: solid; }
.zone-title { font: 600 0.78rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.node { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 0.9rem; }
.node b { display: block; font-size: 0.95rem; }
.node.vault { background: var(--accent-soft); border-color: transparent; }
.node.blocked { background: var(--red-bg); border-color: transparent; color: var(--red); }
.link { font: 0.8rem var(--mono); color: var(--muted); padding-left: 12px; }
.row { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 560px) {
  .hero { padding-top: 36px; }
  .nav { margin-left: 0; width: 100%; order: 3; padding-bottom: 8px; }
  .top .wrap { gap: 8px 16px; }
  .lang-btn { margin-left: auto; }
}
.steps[start="4"] { counter-reset: s 3; }
