/* Sade, teknik yazılım görünümü: nötr gri zemin, tek vurgu rengi (çelik mavisi),
   küçük köşe yarıçapı, ince çerçeve, gölgesiz kartlar, dikdörtgen düğmeler.
   Dosya theme.css'ten sonra yüklenir; yalnızca renk ve şekil değerlerini ezer. */
:root {
  --bg: #f1f2f4;
  --surface: #ffffff;
  --surface2: #f7f8f9;
  --field: #ffffff;
  --field2: #f7f8f9;
  --ink: #1c2028;
  --muted: #4f5662;
  --line: #d3d7dd;
  --accent: #1f4f86;
  --accent-soft: #e6edf5;
  --teal: #1f8a80;
  --amber: #d99a2b;
  --ok: #1d7a4f;
  --ok-soft: #e4f1ea;
  --warn: #a15f00;
  --warn-soft: #fbf0db;
  --bad: #b3303a;
  --bad-soft: #f8e5e7;
  --shadow: none;
  --bar: rgba(255, 255, 255, 0.96);
  --r: 6px;
  --grid-bg: #eef5ef;
  --grid-line: rgba(46, 125, 70, 0.30);
  --grid-line-soft: rgba(46, 125, 70, 0.13);
}
@media screen {
  :root[data-theme="dark"] {
    --bg: #14171c;
    --surface: #1d2128;
    --surface2: #232830;
    --field: #232830;
    --field2: #232830;
    --ink: #e6e9ee;
    --muted: #a0a8b4;
    --line: #353b46;
    --accent: #6ea0dc;
    --accent-soft: #232f40;
    --teal: #3fb5a8;
    --amber: #e0aa45;
    --ok: #55c28b;
    --ok-soft: #173225;
    --warn: #e0ac52;
    --warn-soft: #382c14;
    --bad: #f0838b;
    --bad-soft: #3b1f25;
    --bar: rgba(20, 23, 28, 0.96);
    --shadow: none;
    --grid-bg: #141f18;
    --grid-line: rgba(80, 180, 115, 0.30);
    --grid-line-soft: rgba(80, 180, 115, 0.12);
  }
  :root[data-theme="dark"] .btn, :root[data-theme="dark"] .chip.on, :root[data-theme="dark"] #play { color: #0e1620; }
  :root[data-theme="dark"] .btn.ghost { color: var(--accent); }
}

/* Üst bar: düz metin marka, aktif sayfa alt çizgiyle */
.site-header { backdrop-filter: none; }
.site-logo { animation: none; width: 30px; height: 30px; }
.site-brand { font-weight: 700; font-size: 19px; letter-spacing: 0; }
.nav { gap: 2px; }
.nav a { border-radius: 0; padding: 9px 10px 7px; font-weight: 600; border-bottom: 2px solid transparent; }
.nav a:hover { background: transparent; color: var(--ink); border-bottom-color: var(--line); }
.nav a.active { background: transparent; color: var(--accent); border-bottom-color: var(--accent); }
.nav a:focus-visible, .site-brand:focus-visible { border-radius: 2px; }
.theme-toggle { border-radius: 4px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); width: 36px; height: 36px; }

/* Düğmeler ve seçenekler: dikdörtgen, hareket yok */
.btn { border-radius: 4px; font-weight: 600; padding: 10px 15px; transition: background 0.12s; }
.btn:hover { transform: none; box-shadow: none; filter: brightness(1.08); }
.btn.ghost { background: var(--surface); }
.btn.ghost:hover { background: var(--accent-soft); filter: none; }
.pbtn, .chip { border-radius: 4px; font-weight: 600; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pbtn:hover, .chip:hover { transform: none; background: var(--accent-soft); }
.chip.on { background: var(--accent); color: #fff; box-shadow: none; }
.pill { border-radius: 3px; font-weight: 700; }

/* Kartlar ve kutular: ince çerçeve, düz yüzey */
.card, .tool-card { box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
.card h2 { font-weight: 700; font-size: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.kpi, .stat { background: var(--surface2); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); border-left: 3px solid var(--accent); }
.tile, .check, .num, .zoom-box { border-radius: 4px; }
.check { box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.num { background: var(--field); }
.mesh-box { border-radius: 4px; }
input[type="range"] { accent-color: var(--accent); }
.stage-table input { border-radius: 3px; }

/* Ana sayfa: kısa başlık, süs çizimi yok, araç listesi */
.home-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 0 0; gap: 0; }
.hero-art, .tool-tag, .eyebrow { display: none; }
.home-hero h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; margin-bottom: 8px; }
.lead { font-size: 18px; max-width: 70ch; margin-bottom: 16px; }
.section-title { font-size: 21px; font-weight: 700; margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tools { gap: 12px; }
.tool-card { padding: 16px 18px; transition: background 0.12s; }
a.tool-card:hover { transform: none; box-shadow: inset 0 0 0 1px var(--accent); }
.tool-card h3 { margin: 0 0 6px; font-weight: 700; font-size: 19px; color: var(--accent); }
.tool-card p { font-size: 16px; }
.site-footer { border-top: 1px solid var(--line); }
.site-main { width: 100%; }
.site-footer { width: 100%; }
.pchips + p, .pchips + .note, .chips + .note { margin-top: 12px; }

/* Birim sistemi ve standartlar sayfası */
.us-eq { display: block; font-size: .78em; font-weight: 500; color: var(--muted); font-family: var(--font-num); letter-spacing: 0; line-height: 1.3; }
.fhead + .us-eq, .field > .us-eq { display: block; text-align: right; margin: -2px 2px 4px; }
.kv dd .us-eq, .kpi .us-eq, .stat .us-eq { display: block; }
.std-conv { display: grid; grid-template-columns: max-content minmax(0, 320px); gap: 10px 14px; align-items: center; margin-bottom: 14px; }
.std-conv select, .std-conv input { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--field); font: inherit; color: var(--ink); min-width: 0; }
.ftab.std td, .ftab.std td:nth-child(2) { font-family: var(--font-num); font-size: 16px; font-weight: 500; min-width: 0; line-height: 1.5; padding: 8px 8px; }
.ftab.std td:first-child { font-family: var(--font-body); font-weight: 600; }
.ftab.std th { font-size: 14.5px; }
.std-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.std-nav a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 15px; }
.std-nav a:hover { background: var(--accent-soft); }
@media print { #unitBtn, #langBtn { display: none !important; } }

/* Dayanım tablosunda sınırı aşan hücre; salt okunur (hesaplanan) alan */
.stage-table td.bad-cell { color: var(--bad); font-weight: 600; }
.field.ro input[type="number"] { background: transparent; border-style: dashed; }

/* Engineerxyz marka yazısı: "Engineer" düz, "xyz" eşaralıklı ve vurgu renginde */
.site-logo { animation: none; border-radius: 7px; }
.brand-word { letter-spacing: -0.01em; }
.brand-xyz { font-family: var(--font-num); font-weight: 700; color: #d48a12; margin-left: 1px; }
:root[data-theme="dark"] .brand-xyz { color: #f2a93b; }
