:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --text: #17201d;
  --muted: #5c6b66;
  --line: #e2e7e4;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: #e6f4f1;
  --good: #15803d;
  --bad: #b91c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 22, .05), 0 6px 24px rgba(16, 24, 22, .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1412;
    --surface: #161e1b;
    --text: #e6ece9;
    --muted: #96a6a0;
    --line: #26322e;
    --accent: #2dd4bf;
    --accent-ink: #062320;
    --accent-soft: #12302b;
    --good: #4ade80;
    --bad: #f87171;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 1.1rem; }
.nav { display: flex; gap: 2px; overflow-x: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .95rem; white-space: nowrap; }
.nav a:hover { background: var(--accent-soft); color: var(--accent); }
.crumbs { font-size: .85rem; color: var(--muted); margin: 18px 0 0; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 10px 0 6px; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.lead { color: var(--muted); margin: 0 0 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.tool { margin-bottom: 20px; }

/* Form */
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 14px; }
label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; }
input, select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 14px; flex-wrap: wrap; }
.seg button { font: inherit; border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 8px; cursor: pointer; min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--shadow); }
.btn { font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 10px 18px; background: var(--accent); color: var(--accent-ink); cursor: pointer; min-height: 44px; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 18px; height: 18px; min-height: 0; }

/* Sonuç */
.result { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 16px; }
.big { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; }
.stat small { display: block; color: var(--muted); font-size: .8rem; }
.stat b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.stat.main b { color: var(--accent); font-size: 1.6rem; }
.tablewrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--bg); position: sticky; top: 0; font-size: .8rem; color: var(--muted); }
tfoot td { font-weight: 700; background: var(--bg); }
.warn { background: #fef3c7; color: #78350f; border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin-top: 12px; }
@media (prefers-color-scheme: dark) { .warn { background: #3a2c07; color: #fde68a; } }

/* İçerik */
.prose { max-width: 720px; }
.prose p, .prose li { color: var(--text); }
details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; background: var(--surface); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 2px; color: var(--muted); }
.note { font-size: .82rem; color: var(--muted); margin: 26px 0; }
.ad { margin: 22px 0; min-height: 100px; }

/* Ana sayfa kutuları */
.hero { padding: 34px 0 10px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile small { color: var(--muted); line-height: 1.4; }
.ico { font-size: 1.5rem; }
.related { margin-top: 30px; }
.foot { margin-top: 50px; border-top: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
.foot-in { padding: 20px 16px; }
.foot a { color: var(--muted); }
.muted { color: var(--muted); }
.course { display: grid; grid-template-columns: 1fr 90px 100px 44px; gap: 8px; margin-bottom: 8px; align-items: center; }
.course button { min-height: 44px; }
@media (max-width: 520px) {
  .card { padding: 16px; }
  .course { grid-template-columns: 1fr 56px 74px 40px; gap: 6px; }
  .course input, .course select { padding: 10px 8px; }
}
