/* Tazminat Rehberi - mobile-first tasarım sistemi */
:root {
  /* Marka: koyu petrol yeşili #0C3436 yalnızca başlık/hero/ana buton gibi az sayıda yerde; yüzeyler nötr ve sakin. */
  --brand: #0F3D3A;
  --brand-2: #0F3D3A;      /* ikincil vurgu: yumuşatılmış petrol (#146B65'in sakin karşılığı) */
  --brand-3: #0F3D3A;
  --link: #0F3D3A;
  --bg: #F5F2EB;
  --surface: #FCFBF8;
  --surface-2: #EFEBE2;
  --text: #12312F;
  --muted: #6B746F;
  --border: #E6E0D3;
  --pos: #12312F;
  --pos-bg: #EAF1EA;
  --warn: #7A5A12;
  --warn-bg: #F8EED2;
  --err: #a63232;
  --err-bg: #f9eded;
  --accent: #D4B461;
  --accent-text: #2B2410;
  --shadow: 0 1px 2px rgba(20, 40, 38, .05), 0 4px 14px rgba(20, 40, 38, .05);
  --shadow-lg: 0 8px 28px rgba(20, 40, 38, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: #B8963F;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
:root[data-theme="dark"] {
  --bg: #111716;
  --surface: #182120;
  --surface-2: #1e2a29;
  --text: #e3e9e7;
  --muted: #97a6a3;
  --border: #2c3a38;
  --pos: #8fcfa6;
  --pos-bg: #1a2c22;
  --warn: #e0b45c;
  --warn-bg: #2c2412;
  --err: #e08a8a;
  --err-bg: #331e1e;
  --accent-text: #3a2a00;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 14px rgba(0, 0, 0, .25);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, .45);
  --brand-2: #8dbab5;
  --brand-3: #8dbab5;
  --link: #9cc7c2;
  --focus: #7fb0aa;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111716; --surface: #182120; --surface-2: #1e2a29; --text: #e3e9e7; --muted: #97a6a3; --border: #2c3a38;
    --pos: #8fcfa6; --pos-bg: #1a2c22; --warn: #e0b45c; --warn-bg: #2c2412; --err: #e08a8a; --err-bg: #331e1e;
    --brand-2: #8dbab5; --brand-3: #8dbab5; --link: #9cc7c2; --focus: #7fb0aa;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--text); }
h1, h2, h3 { line-height: 1.25; color: var(--text); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 2rem 0 .75rem; }
h3 { font-size: 1.125rem; margin: 1.25rem 0 .5rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.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; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.narrow { max-width: 640px; }
.icon { flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; width: 1.15em; height: 1.15em; }
.icon.big { width: 40px; height: 40px; color: var(--brand-2); }
.section { padding: 28px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; }
.prose-wide { max-width: 860px; }
.gap-lg { gap: 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); font-weight: 800; font-size: 1.15rem; margin-right: auto; }
:root[data-theme="dark"] .brand { color: #d7f3ef; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.brand-mark .icon { width: 20px; height: 20px; }
.header-actions { display: flex; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: inline; }
.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 14px; box-shadow: var(--shadow); }
.main-nav.open { display: grid; gap: 2px; }
.main-nav a { padding: 12px 10px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 600; }
.main-nav a:hover { background: var(--surface-2); }
.main-nav a[aria-current="page"] { background: var(--surface-2); color: var(--brand-2); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; position: static; border: 0; padding: 0; box-shadow: none; background: transparent; gap: 2px; }
  .main-nav a { padding: 8px 12px; font-size: .95rem; white-space: nowrap; }
  .brand { margin-right: 12px; }
  .header-actions { margin-left: auto; }
}

/* Breadcrumb */
.breadcrumb { padding-top: 14px; font-size: .875rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb .sep { width: 14px; height: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2; min-height: 44px; transition: transform .05s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 13px 22px; font-size: 1.05rem; min-height: 50px; }
.btn-primary { background: var(--brand-2); color: #fff; }
.btn-primary:hover { background: var(--brand); color: #fff; }
:root[data-theme="dark"] .btn-primary { background: var(--brand-3); color: #04201d; }
:root[data-theme="dark"] .btn-primary:hover { background: #5fd0c6; color: #04201d; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-accent { background: var(--accent); color: var(--accent-text); }
.btn-accent:hover { background: #ffc965; color: var(--accent-text); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn.block { width: 100%; }
.btn-sm { padding: 6px 12px; min-height: 36px; font-size: .9rem; }
.btn-danger { background: var(--err); color: #fff; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-2); text-decoration: underline; cursor: pointer; }
:root[data-theme="dark"] .link-btn { color: var(--brand-3); }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(255,255,255,.12), transparent 60%), linear-gradient(135deg, var(--brand) 0%, #0f4a47 55%, var(--brand-2) 100%); color: #fff; padding: 44px 0 84px; }
.hero h1 { color: #fff; max-width: 780px; font-size: clamp(1.9rem, 5.5vw, 3rem); }
.hero-lead { font-size: 1.125rem; max-width: 680px; color: #d3ebe8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; color: #bfe0dc; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.quick-wrap { margin-top: -56px; position: relative; z-index: 5; }
.quick-form { padding: 20px; box-shadow: var(--shadow-lg); }
.quick-form h2 { margin: 0 0 12px; font-size: 1.2rem; }
.quick-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .quick-grid { grid-template-columns: repeat(6, 1fr); align-items: end; } .quick-grid .field:nth-child(3) { grid-column: span 2; } .quick-grid .field:nth-child(4) { grid-column: span 1; } }
.quick-submit { align-self: end; }
.label-like { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }

.page-head { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; padding: 28px 0 30px; }
.page-head h1 { color: #fff; }
.page-head .lead { color: #d3ebe8; max-width: 760px; font-size: 1.05rem; margin-bottom: 10px; }
.privacy-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.13); padding: 4px 12px; border-radius: 999px; font-size: .85rem; margin: 0; }

/* Cards & grids */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.span-2 { grid-column: 1 / -1; }
.tool-card, .article-card, .source-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.tool-card:hover, .article-card:hover, .source-card:hover { transform: translateY(-2px); border-color: var(--brand-3); color: var(--text); }
.tool-card.featured { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: 0; }
.tool-card.featured .muted, .tool-card.featured:hover { color: #d3ebe8; }
.tool-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); color: var(--brand-2); }
.tool-card.featured .tool-ico { background: rgba(255,255,255,.16); color: #fff; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.info-card h3 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
.right-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.right-item .icon { width: 24px; height: 24px; color: var(--brand-2); margin-top: 3px; }
.right-item p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.cat-tag { align-self: flex-start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-2); background: var(--surface-2); padding: 2px 10px; border-radius: 999px; text-decoration: none; }
.meta { font-size: .8rem; color: var(--muted); margin-top: auto; }
.article-card.wide { padding: 20px; }
.list-cards { display: grid; gap: 14px; }
.callout { background: var(--warn-bg); border-left: 4px solid var(--warn); padding: 12px 14px; border-radius: 8px; margin: 1rem 0; }
.callout-grid { display: grid; gap: 12px; margin-bottom: 14px; }
@media (min-width: 800px) { .callout-grid { grid-template-columns: 1fr 1fr; } }
.cat-block { margin: 26px 0; }
.cat-head h2 { margin: 0; } .cat-head h2 a { text-decoration: none; color: inherit; }
.cat-head p { margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); font-size: .9rem; }
.chip[aria-current="true"] { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }
.chip[aria-current="true"] .muted { color: #cfeae6; }
.guide-layout, .article-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .guide-layout, .article-layout { grid-template-columns: minmax(0, 1fr) 300px; } .article-layout { padding-top: 12px; } }
.side { display: grid; gap: 14px; align-content: start; }
@media (min-width: 960px) { .side { position: sticky; top: 80px; } }
.side-card h2 { font-size: 1.1rem; margin-top: 0; }
.plain-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }

/* Cap */
.cap-grid { display: grid; gap: 14px; }
@media (min-width: 800px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
.cap-amount { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; color: var(--brand-2); margin: 4px 0 8px; line-height: 1.1; }
:root[data-theme="dark"] .cap-amount { color: var(--brand-3); }
.cap-amount span { font-size: 1.2rem; }
.warn-text { color: var(--warn); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 18px; }
.table-simple { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); }
.table-simple th, .table-simple td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.table-simple th { background: var(--surface-2); font-weight: 700; font-size: .85rem; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge.ok { background: var(--pos-bg); color: var(--pos); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }

/* Forms */
.field { margin-bottom: 14px; }
.field label, .field .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
input[type="text"], input[type="date"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; min-height: 46px; }
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-3); outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 0; }
input[aria-invalid="true"] { border-color: var(--err); background: var(--err-bg); }
.input-affix { position: relative; }
.input-affix input { padding-right: 36px; }
.input-affix .affix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.help { font-size: .84rem; color: var(--muted); margin: 6px 0 0; }
.req { color: var(--err); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-2); flex: none; }
.check.small { font-size: .88rem; color: var(--muted); }
.field-check { margin: 4px 0 14px; }
.fs { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.fs legend { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; padding: 0; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-2); color: #fff; font-size: .85rem; }
.seg { display: inline-flex; max-width: 100%; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 12px; background: var(--surface); }
.seg label { position: relative; margin: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 10px 14px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.seg input:checked + span { background: var(--brand-2); color: #fff; }
:root[data-theme="dark"] .seg input:checked + span { background: var(--brand-3); color: #04201d; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }
.seg-sm span { padding: 11px 18px; }
.sub { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0; margin: 0 0 14px; background: var(--surface); }
.sub > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
.sub > summary::-webkit-details-marker { display: none; }
.sub > summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--muted); line-height: 1; }
.sub[open] > summary::after { content: "−"; }
.sub[open] { padding-bottom: 6px; }
.sub > *:not(summary) { margin-left: 14px; margin-right: 14px; }
.benefit-row { display: grid; gap: 4px; margin-bottom: 8px; }
@media (min-width: 560px) { .benefit-row { grid-template-columns: 1fr 1fr; align-items: end; } .benefit-row .check { padding-bottom: 14px; } }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.form-errors { background: var(--err-bg); color: var(--err); border: 1px solid var(--err); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }
.form-errors p { margin: 0; font-weight: 700; }

/* Calculator layout */
.calc-layout { display: grid; gap: 20px; padding-top: 22px; padding-bottom: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .calc-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .calc-result { position: sticky; top: 76px; } }
.calc-form { padding: 22px; }
.result-empty { text-align: center; padding: 34px 22px; }
.result-empty h2 { margin-top: 10px; }
.tick-list { text-align: left; display: inline-block; padding-left: 20px; color: var(--muted); }

/* Result dashboard */
.total-card { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.total-card .label { font-size: .95rem; color: #cfeae6; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.total-card .amount { font-size: clamp(2rem, 7vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 6px 0; font-variant-numeric: tabular-nums; }
.total-card .sub-line { font-size: .88rem; color: #bfe0dc; margin: 0; }
.est-badge { background: rgba(255,255,255,.18); padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.kpi-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 12px 0; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.kpi .k-label { font-size: .82rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.kpi .k-val { font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 4px; word-break: break-word; }
.kpi.pos .k-val { color: var(--pos); }
.kpi.zero .k-val { color: var(--muted); }
.kpi .k-note { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.res-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.res-section h3 { margin: 0 0 10px; font-size: 1.02rem; }
.res-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.res-table th, .res-table td { padding: 9px 8px; border-bottom: 1px solid var(--border); text-align: right; font-variant-numeric: tabular-nums; }
.res-table th:first-child, .res-table td:first-child { text-align: left; }
.res-table thead th { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; border-bottom: 2px solid var(--border); }
.res-table tfoot td { font-weight: 800; border-bottom: 0; background: var(--surface-2); }
.res-table .zero { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.facts { display: grid; gap: 8px 16px; grid-template-columns: 1fr; margin: 0; }
@media (min-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--border); padding: 5px 0; font-size: .92rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 700; text-align: right; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: .92rem; margin: 10px 0; align-items: flex-start; }
.notice .icon { margin-top: 3px; }
.notice.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.notice.info { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.notice.err { background: var(--err-bg); color: var(--err); }
.assump { margin: 0; padding-left: 20px; font-size: .9rem; } .assump li { margin-bottom: 6px; }
.explain { font-size: .9rem; color: var(--muted); margin: 8px 0 0; }
.explain strong { color: var(--text); }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.result-actions .btn { flex: 1 1 150px; }
.compare-grid { display: grid; gap: 10px; }
@media (min-width: 600px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.scenario { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; background: var(--surface-2); }
.scenario h4 { margin: 0 0 4px; font-size: .95rem; } .scenario .big { font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.diff-pos { color: var(--pos); font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 200; box-shadow: var(--shadow-lg); }

/* Article */
.article-head h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin-top: 8px; }
.article-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.prose { font-size: 1.05rem; } .prose h2 { margin-top: 1.8rem; } .prose ul, .prose ol { padding-left: 22px; } .prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; } .prose th, .prose td { padding: 9px 12px; border: 1px solid var(--border); text-align: left; } .prose th { background: var(--surface-2); }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.prose .callout, .prose .note { background: var(--warn-bg); border-left: 4px solid var(--warn); padding: 12px 14px; border-radius: 8px; }
.prose .note { background: var(--surface-2); border-color: var(--brand-3); font-size: .92rem; }
.cta-box { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin: 26px 0; }
.cta-box p { margin: 2px 0 0; }
.article-section { margin-top: 26px; }
.sources ul { padding-left: 20px; } .ext { width: .85em; height: .85em; }

/* FAQ */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { transition: transform .15s; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-answer { padding: 0 16px 6px; color: var(--text); }

/* Ads */
.ad-slot { margin: 18px auto; text-align: center; min-height: 0; max-width: 100%; overflow: hidden; border: 1px dashed var(--border); border-radius: 8px; padding: 6px; background: var(--surface); }
.ad-slot .ad-label { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.ad-slot:empty { display: none; }
.ad-mobile-only { display: block; } .ad-desktop-only { display: none; }
@media (min-width: 960px) { .ad-mobile-only { display: none; } .ad-desktop-only { display: block; } }

/* Footer */
.site-footer { background: var(--brand); color: #cfe6e3; margin-top: 40px; padding-top: 36px; }
.site-footer a { color: #e8f6f3; text-decoration: none; } .site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .muted { color: #9fc4c0; }
.footer-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin: 0 0 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.brand-footer { color: #fff; margin-bottom: 8px; } .site-footer .link-btn { color: #e8f6f3; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 24px; padding: 16px; font-size: .88rem; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; padding: 12px; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 18px; }
.cookie-inner h2 { margin: 0 0 6px; font-size: 1.05rem; } .cookie-inner p { font-size: .9rem; margin: 0 0 8px; }
.cookie-options { display: grid; gap: 6px; font-size: .9rem; margin-bottom: 10px; } .cookie-options label { display: flex; gap: 8px; align-items: flex-start; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Admin */
.admin-wrap { display: grid; gap: 18px; padding: 18px 16px 40px; max-width: 1280px; margin: 0 auto; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .admin-wrap { grid-template-columns: 230px minmax(0, 1fr); } }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
@media (min-width: 900px) { .admin-nav { flex-direction: column; flex-wrap: nowrap; position: sticky; top: 76px; align-self: start; } }
.admin-nav a { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .92rem; display: flex; gap: 8px; align-items: center; }
.admin-nav a[aria-current="page"] { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }
.admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.admin-card h1, .admin-card h2 { margin-top: 0; }
.admin-card h1 { font-size: 1.5rem; }
.toolbar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px; } .stat b { display: block; font-size: 1.6rem; }
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; } .flash.ok { background: var(--pos-bg); color: var(--pos); } .flash.err { background: var(--err-bg); color: var(--err); }
.inline-form { display: inline; }
.login-box { max-width: 400px; margin: 60px auto; }
.table-simple td form { display: inline; }
.admin-form .grid-2 { align-items: start; }

/* Print */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .cookie-banner, .calc-form, .result-actions, .breadcrumb, .ad-slot, .page-head .privacy-chip, .hero, .quick-wrap, .faq-list, #nasil, .side, .cta-box { display: none !important; }
  .calc-layout { display: block; padding: 0; } .calc-result { position: static; }
  .total-card { background: #0C3436 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .res-section, .kpi, .total-card { break-inside: avoid; box-shadow: none; }
  .page-head { background: none; color: #000; padding: 0 0 8px; } .page-head h1, .page-head .lead { color: #000; }
  .page-head .lead { display: none; }
  details > summary { display: none; } details { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }


/* ---- Marka teması: sıcak krem zemin + koyu yeşil + altın vurgu ---- */
.hero, .page-head { background: linear-gradient(160deg, #0F3D3A 0%, #134743 100%); }
.hero-lead, .page-head .lead { color: #cfe0dc; }
.hero-points { color: #bcd2cd; }
.hero .btn-accent, .btn-accent { background: #D4B461; color: #2B2410; }
.btn-accent:hover { background: #E0C375; color: #2B2410; }
.btn-primary { background: #0F3D3A; color: #fff; border-color: #0F3D3A; }
.btn-primary:hover { background: #134743; color: #fff; }
.btn-ghost { background: var(--surface); border-color: #0F3D3A; color: #0F3D3A; }
.btn-ghost:hover { background: var(--surface-2); color: #0F3D3A; }
.brand, .brand-name { color: #0F3D3A; }
.brand-mark { background: transparent; color: #C8A24F; width: 38px; height: 38px; }
.brand-mark .icon { width: 30px; height: 30px; stroke-width: 1.8; }
.site-header { background: var(--bg); border-bottom-color: var(--border); }
.main-nav a { color: #12312F; }
.main-nav a[aria-current="page"] { background: #EFEBE2; color: #0F3D3A; }
.icon-btn { background: var(--surface); border-color: var(--border); color: #0F3D3A; }
.total-card, .tool-card.featured { background: linear-gradient(160deg, #0F3D3A 0%, #134743 100%); }
.total-card .label { color: #e8efe9; font-weight: 600; }
.total-card .amount { color: #D8B964; }
.total-card .sub-line { color: #bcd2cd; }
.est-badge { background: rgba(212, 180, 97, .2); color: #E6CD8A; }
.card, .kpi, .res-section, .tool-card, .article-card, .info-card, .source-card, .right-item, .faq-item, .sub, .quick-form { background: var(--surface); border-color: var(--border); box-shadow: 0 1px 2px rgba(18, 49, 47, .04); }
.tool-ico, .tool-card .tool-ico { background: transparent; color: #0F3D3A; }
.tool-card.featured .tool-ico { background: rgba(255, 255, 255, .12); color: #D8B964; }
.right-item .icon, .info-card h3 .icon, .kpi .k-label .icon { color: #0F3D3A; }
.step { background: #0F3D3A; color: #fff; }
.seg { background: #EFEBE2; border-color: var(--border); }
.seg input:checked + span { background: #0F3D3A; color: #fff; }
.chip[aria-current="true"] { background: #0F3D3A; border-color: #0F3D3A; color: #fff; }
.kpi .k-val, .kpi.pos .k-val { color: #12312F; }
.kpi.zero .k-val { color: var(--muted); }
.cap-amount { color: #0F3D3A; }
.cat-tag { background: #EFEBE2; color: #0F3D3A; }
.callout { background: #F8EED2; border-left-color: #D4B461; color: #4a3a0c; }
.notice.warn { background: #F8EED2; color: #6b4f0e; border-color: #E6D29A; }
.res-table tfoot td { background: #EFEBE2; }
.site-footer { background: #0F3D3A; }
.admin-nav a[aria-current="page"] { background: #0F3D3A; border-color: #0F3D3A; }
.input-affix .affix { color: #0F3D3A; }
input:focus, select:focus, textarea:focus { border-color: #C8A24F; }

/* Koyu tema: aynı kimlik, düşük parlaklıkta */
:root[data-theme="dark"] { --bg: #0F1917; --surface: #16231F; --surface-2: #1D2D29; --text: #E9EDE6; --muted: #9DAAA3; --border: #2A3C37; --link: #D4B461; --brand-2: #D4B461; --brand-3: #D4B461; --warn-bg: #2C2713; --warn: #E3C773; --focus: #D4B461; --pos: #E9EDE6; }
:root[data-theme="dark"] .site-header { background: var(--bg); }
:root[data-theme="dark"] .brand, :root[data-theme="dark"] .brand-name, :root[data-theme="dark"] .main-nav a { color: #E9EDE6; }
:root[data-theme="dark"] .main-nav a[aria-current="page"] { background: #1D2D29; color: #E3C773; }
:root[data-theme="dark"] .btn-primary { background: #D4B461; color: #2B2410; border-color: #D4B461; }
:root[data-theme="dark"] .btn-primary:hover { background: #E0C375; color: #2B2410; }
:root[data-theme="dark"] .btn-ghost { background: transparent; border-color: #3a4f49; color: #E9EDE6; }
:root[data-theme="dark"] .btn-ghost:hover { background: #1D2D29; color: #fff; }
:root[data-theme="dark"] .hero, :root[data-theme="dark"] .page-head { background: linear-gradient(160deg, #123B37 0%, #174B46 100%); }
:root[data-theme="dark"] .total-card, :root[data-theme="dark"] .tool-card.featured { background: linear-gradient(160deg, #123B37 0%, #174B46 100%); }
:root[data-theme="dark"] .seg { background: #1D2D29; }
:root[data-theme="dark"] .seg input:checked + span, :root[data-theme="dark"] .step, :root[data-theme="dark"] .chip[aria-current="true"] { background: #D4B461; color: #2B2410; }
:root[data-theme="dark"] .tool-ico, :root[data-theme="dark"] .right-item .icon, :root[data-theme="dark"] .info-card h3 .icon, :root[data-theme="dark"] .kpi .k-label .icon, :root[data-theme="dark"] .input-affix .affix { color: #D4B461; }
:root[data-theme="dark"] .kpi .k-val, :root[data-theme="dark"] .kpi.pos .k-val, :root[data-theme="dark"] .cap-amount { color: #E9EDE6; }
:root[data-theme="dark"] .cat-tag { background: #1D2D29; color: #E3C773; }
:root[data-theme="dark"] .callout, :root[data-theme="dark"] .notice.warn { background: #2C2713; color: #E3C773; border-color: #5a4d22; }
:root[data-theme="dark"] .icon-btn { background: var(--surface); color: #E9EDE6; border-color: var(--border); }
:root[data-theme="dark"] .res-table tfoot td { background: #1D2D29; }
:root[data-theme="dark"] .site-footer { background: #0A1210; }
:root[data-theme="dark"] .brand-mark { color: #D4B461; background: transparent; }

/* ---- Kıdem tavanı sayfası: grafik ---- */
:root { --chart-bar: #2E5E59; --chart-cur: #C8A24F; --chart-grid: #E6E0D3; }
:root[data-theme="dark"] { --chart-bar: #6FA39C; --chart-cur: #D4B461; --chart-grid: #2A3C37; }
.cap-hero { display: grid; gap: 14px; }
@media (min-width: 860px) { .cap-hero { grid-template-columns: 1.1fr 1fr; align-items: stretch; } }
.cap-note h2 { margin-top: 0; font-size: 1.15rem; }
.light-link { color: #E6CD8A; }
.chart-fig { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 12px 10px; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart .baseline { stroke: var(--muted); stroke-width: 1; }
.chart .ytick, .chart .xtick, .chart .axis-title { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.chart .vlabel { fill: var(--text); font-size: 13px; font-weight: 700; font-family: var(--font); }
.chart .bar { fill: var(--chart-bar); transition: opacity .15s; }
.chart .bar.cur { fill: var(--chart-cur); }
.chart .hit { fill: transparent; }
.chart .bar-g { cursor: pointer; outline: none; }
.chart .bar-g.on .bar, .chart .bar-g:focus-visible .bar { stroke: var(--text); stroke-width: 2; }
.chart-tip { position: absolute; z-index: 5; background: var(--text); color: var(--bg); padding: 6px 10px; border-radius: 8px; font-size: .85rem; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-lg); max-width: calc(100% - 16px); }
.chart-fig figcaption { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; }
.key-cur { background: var(--chart-cur); } .key-bar { background: var(--chart-bar); }
.row-cur td { background: color-mix(in srgb, var(--chart-cur) 14%, transparent); }
.cap-quick .grid-3 { align-items: end; }
.cq-out { margin-top: 12px; }
@media (max-width: 520px) { .chart .xtick { font-size: 15px; } .chart .ytick { font-size: 14px; } }

/* Yönetim: doğrulama ekranı */
.verify-form { display: grid; gap: 6px; min-width: 260px; }
.verify-form input, .verify-form select { min-height: 38px; padding: 6px 10px; font-size: .9rem; }
@media (min-width: 1100px) { .verify-form { grid-template-columns: 2fr 1.3fr 1.5fr auto; align-items: center; } }
.verify-table td { vertical-align: top; }
