/* HaneHesap — tasarım sistemi v2 */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #f2f4f0;
  --surface-3: #e7ede8;
  --text: #13201b;
  --text-2: #33433c;
  --muted: #5d6a64;
  --border: #e1e6e0;
  --border-strong: #cdd6cf;

  --brand-950: #06291f;
  --brand-900: #08362d;
  --brand-800: #0a4a3d;
  --brand: #0d6b57;
  --brand-600: #12806a;
  --brand-strong: #0a5444;
  --brand-soft: #e0f1ea;
  --brand-softer: #eff8f4;
  --on-brand: #ffffff;

  --accent: #ea7a3c;
  --accent-strong: #a14812;
  --accent-soft: #fdeee4;
  --gold: #f4c064;

  --warn-bg: #fff4dc;
  --warn-text: #6e4b00;
  --warn-border: #f0d595;
  --down: #0b7a4b;
  --up: #b4421f;

  --series-1: #0a8f72; /* dataviz doğrulayıcısından geçti (açık mod) */
  --series-2: #e0602c;
  --grid: #e6e9e4;
  --axis: #c8cfc9;

  --hero-bg: radial-gradient(1200px 400px at 85% -10%, rgba(244, 192, 100, .22), transparent 60%),
             linear-gradient(135deg, #062e25 0%, #0a4a3d 45%, #0f6f5a 100%);
  --hero-text: #ffffff;
  --hero-muted: rgba(255, 255, 255, .78);

  --shadow-sm: 0 1px 2px rgba(16, 32, 26, .06);
  --shadow: 0 1px 2px rgba(16, 32, 26, .05), 0 8px 24px rgba(16, 32, 26, .07);
  --shadow-lg: 0 2px 4px rgba(16, 32, 26, .05), 0 18px 48px rgba(16, 32, 26, .12);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1311;
    --surface: #131c19;
    --surface-2: #18231f;
    --surface-3: #1e2b26;
    --text: #e6ece9;
    --text-2: #c7d3ce;
    --muted: #9cb0a8;
    --border: #25332e;
    --border-strong: #334640;
    --brand: #4fc4a3;
    --brand-600: #6fd3b6;
    --brand-strong: #86dcc3;
    --brand-soft: #163a31;
    --brand-softer: #12291f;
    --on-brand: #06231c;
    --accent: #f0915a;
    --accent-strong: #f6b48b;
    --accent-soft: #3a2416;
    --warn-bg: #352b12;
    --warn-text: #f1d48e;
    --warn-border: #5a4718;
    --down: #4fc4a3;
    --up: #f08a63;
    --series-1: #2fa985; /* dataviz doğrulayıcısından geçti (koyu mod) */
    --series-2: #dd7038;
    --grid: #233029;
    --axis: #34443d;
    --hero-bg: radial-gradient(1200px 400px at 85% -10%, rgba(244, 192, 100, .14), transparent 60%),
               linear-gradient(135deg, #04201a 0%, #072f27 50%, #0b4a3d 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  --bg: #0c1311;
  --surface: #131c19;
  --surface-2: #18231f;
  --surface-3: #1e2b26;
  --text: #e6ece9;
  --text-2: #c7d3ce;
  --muted: #9cb0a8;
  --border: #25332e;
  --border-strong: #334640;
  --brand: #4fc4a3;
  --brand-600: #6fd3b6;
  --brand-strong: #86dcc3;
  --brand-soft: #163a31;
  --brand-softer: #12291f;
  --on-brand: #06231c;
  --accent: #f0915a;
  --accent-strong: #f6b48b;
  --accent-soft: #3a2416;
  --warn-bg: #352b12;
  --warn-text: #f1d48e;
  --warn-border: #5a4718;
  --down: #4fc4a3;
  --up: #f08a63;
  --series-1: #2fa985;
  --series-2: #dd7038;
  --grid: #233029;
  --axis: #34443d;
  --hero-bg: radial-gradient(1200px 400px at 85% -10%, rgba(244, 192, 100, .14), transparent 60%),
             linear-gradient(135deg, #04201a 0%, #072f27 50%, #0b4a3d 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .45);
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; color: var(--text); }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.85rem); font-weight: 800; margin: 0 0 8px; }
h3 { font-weight: 750; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--brand-strong); }
img, svg { max-width: 100%; }
img { height: auto; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Üst menü ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em;
  color: var(--text); text-decoration: none; flex: none;
}
.logo svg { width: 34px; height: 34px; flex: none; }
.logo span b { color: var(--brand); font-weight: 800; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 12px; border-radius: 10px; white-space: nowrap;
  color: var(--text-2); text-decoration: none; font-size: .94rem; font-weight: 600;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }
.nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nav a.nav-cta { background: var(--brand); color: var(--on-brand); }
.nav a.nav-cta:hover { background: var(--brand-strong); color: var(--on-brand); }
.nav a.nav-cta[aria-current="page"] { background: var(--brand-strong); color: var(--on-brand); }

/* ---------- Başlık bandı (hero) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 36px 0 104px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%);
}
.page-hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: center; }
.page-hero h1 {
  color: var(--hero-text);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800; letter-spacing: -.03em; margin: 6px 0 12px;
}
.page-hero .lead { color: var(--hero-muted); font-size: 1.1rem; margin: 0; max-width: 620px; }
.page-hero .breadcrumb { font-size: .85rem; color: var(--hero-muted); }
.page-hero .breadcrumb a { color: var(--hero-muted); }
.page-hero .breadcrumb a:hover { color: #fff; }
.hero-art { display: flex; justify-content: flex-end; }
.hero-art img { width: 100%; max-width: 300px; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .25)); }
.home-hero { padding: 56px 0 120px; }
.home-hero .wrap { grid-template-columns: 1.05fr .95fr; }
.home-hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); }
.home-hero .hero-art img { max-width: 500px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-strong);
}
.page-hero .eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.rate-pill {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 20px; padding: 10px 16px 10px 12px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  color: #fff; font-weight: 600;
}
.rate-pill .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none;
  box-shadow: 0 0 0 4px rgba(244, 192, 100, .25);
}
.rate-pill strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }

/* Hero altında yükselen içerik */
.lift { position: relative; margin-top: -72px; z-index: 2; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 12px 18px; min-height: 48px;
  border-radius: 12px; border: 1.5px solid var(--brand);
  background: var(--brand); color: var(--on-brand);
  cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--brand); }
.btn.secondary:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn.light { background: #fff; border-color: #fff; color: #0a4a3d; }
.btn.light:hover { background: #eaf6f1; border-color: #eaf6f1; color: #08362d; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 auto; }

/* ---------- Kartlar ve bölümler ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.section { margin: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head p { margin: 4px 0 0; color: var(--muted); max-width: 620px; }
.section-head .more { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Hesaplayıcı ---------- */
.calc {
  display: grid; grid-template-columns: 1.05fr .95fr;
  padding: 0; overflow: hidden; box-shadow: var(--shadow-lg);
}
.calc form { padding: 26px; display: grid; gap: 16px; align-content: start; }
.calc .result {
  padding: 26px;
  background:
    radial-gradient(400px 200px at 100% 0%, var(--brand-soft), transparent 70%),
    var(--surface-2);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.calc-title { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; font-size: 1.1rem; }
.calc-title .icon-badge { width: 34px; height: 34px; }
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-weight: 700; font-size: .95rem; }
.hint { font-size: .85rem; color: var(--muted); font-weight: 500; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

input[type="text"], select {
  width: 100%;
  font: inherit; font-size: 1.05rem; font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  padding: 11px 14px; min-height: 50px;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]::placeholder { color: var(--muted); font-weight: 500; opacity: 1; }
input[type="text"]:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 50px; }
.input-suffix span {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-weight: 700; pointer-events: none;
}

.segmented { display: flex; gap: 6px; flex-wrap: wrap; }
.segmented label {
  position: relative;
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; min-height: 46px;
  border: 1.5px solid var(--border-strong); border-radius: 12px;
  background: var(--surface); cursor: pointer;
  font-weight: 650; font-size: .95rem; text-align: center;
  transition: border-color .15s, background .15s;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked),
.segmented label.secili { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

.result .placeholder { color: var(--muted); margin: auto 0; text-align: center; display: grid; gap: 12px; justify-items: center; }
.result .placeholder svg { width: 120px; height: auto; opacity: .9; }
.big-label { font-size: .9rem; color: var(--muted); font-weight: 700; margin: 0; }
.big-number {
  font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.1; margin: 2px 0 0; color: var(--text); overflow-wrap: anywhere;
}
.kv { display: grid; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 14px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; }
.kv .total dt, .kv .total dd { color: var(--text); font-weight: 800; }

.note {
  font-size: .9rem; padding: 10px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.note.warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.note p { margin: 0; }
.note p + p { margin-top: 6px; }

/* ---------- Tablolar ---------- */
.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--brand-softer); }
th { font-size: .8rem; letter-spacing: .02em; color: var(--muted); font-weight: 750; background: var(--surface-2); }
td.num, th.num { text-align: right; }
tr.current td { background: var(--brand-soft); font-weight: 750; }
.delta-down { color: var(--down); font-weight: 700; }
.delta-up { color: var(--up); font-weight: 700; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 750;
  padding: 2px 8px; border-radius: 999px;
  background: var(--warn-bg); color: var(--warn-text); margin-left: 8px; vertical-align: middle;
}
.year-heading { margin: 36px 0 12px; font-size: 1.35rem; }

/* ---------- Göstergeler ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.stat .stat-label { font-size: .88rem; font-weight: 650; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat .stat-label svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.stat .stat-value { font-size: 1.95rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--text); }
.stat .stat-delta { font-size: .86rem; font-weight: 700; }
.stat .stat-meta { font-size: .78rem; color: var(--muted); margin-top: auto; padding-top: 6px; }
.stat.featured {
  background: var(--hero-bg); border-color: transparent; color: #fff;
}
.stat.featured .stat-label, .stat.featured .stat-meta { color: rgba(255, 255, 255, .8); }
.stat.featured .stat-label svg { color: var(--gold); }
.stat.featured .stat-value { color: #fff; }
.stat.featured .stat-delta { color: var(--gold); }

/* ---------- Grafik ---------- */
.chart-card { padding: 20px 20px 12px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-head h3 { margin: 0; font-size: 1.1rem; }
.chart-head p { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--text-2); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 16px; height: 2px; border-radius: 2px; }
.chart { position: relative; width: 100%; min-height: 240px; outline: none; }
.chart:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 8px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart .tick { font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; font-family: var(--font); }
.chart .end-label { font-size: 12.5px; font-weight: 800; fill: var(--text); font-family: var(--font); }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); padding: 8px 10px; font-size: .82rem; min-width: 130px;
  max-width: calc(100% - 8px);
  transform: translate(-50%, -100%); white-space: nowrap;
}
.chart-tip .tip-period { color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.chart-tip .tip-row { display: flex; align-items: center; gap: 8px; }
.chart-tip .tip-row b { font-size: .98rem; color: var(--text); }
.chart-tip .tip-row i { width: 12px; height: 2px; border-radius: 2px; display: inline-block; }
.chart-tip .tip-row span { color: var(--muted); }
.chart-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--border); margin-top: 6px; }

.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.data-table summary { cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--brand); padding: 8px 0 2px; }
.data-table .table-wrap { margin-top: 8px; max-height: 280px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.data-table th, .data-table td { padding: 6px 10px; font-size: .85rem; }

/* Özellikler */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature h3 { margin: 0 0 4px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }

/* Öne çıkan makale */
.article-featured { display: grid; grid-template-columns: 1.2fr 1fr; padding: 0; overflow: hidden; text-decoration: none; color: var(--text); }
.article-featured:hover { border-color: var(--brand); color: var(--text); box-shadow: var(--shadow-lg); }
.article-featured .cover { min-height: 100%; background: var(--brand-900); }
.article-featured .cover svg, .article-featured .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-featured .body { padding: 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.article-featured h2, .article-featured h3 { font-size: 1.5rem; margin: 0; line-height: 1.25; }
.article-featured p { margin: 0; color: var(--muted); }
.article-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Araç kartları ---------- */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: var(--text); overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); color: var(--text); }
.tool .tool-art {
  margin: -22px -22px 6px; height: 128px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--brand-softer), var(--brand-soft));
  border-bottom: 1px solid var(--border);
}
.tool .tool-art svg { height: 104px; width: auto; }
.tool h3 { margin: 0; font-size: 1.1rem; }
.tool p { margin: 0; color: var(--muted); font-size: .94rem; }
.tool .go { margin-top: auto; padding-top: 8px; color: var(--brand); font-weight: 800; font-size: .95rem; }
.icon-badge {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center;
}
.icon-badge svg { width: 22px; height: 22px; }

/* ---------- Takvim ---------- */
.calendar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cal-item {
  display: flex; flex-direction: column; gap: 6px; padding: 16px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.cal-item .cal-when {
  align-self: flex-start; font-size: .8rem; font-weight: 800; letter-spacing: .02em;
  color: var(--accent-strong); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px;
}
.cal-item strong { font-size: 1rem; }
.cal-item span { font-size: .9rem; color: var(--muted); }
.soon { color: var(--muted); font-size: .78rem; font-weight: 700; }

/* ---------- Makaleler ---------- */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  padding: 0; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); color: var(--text); }
.article-card .cover { aspect-ratio: 16 / 9; display: block; background: var(--brand-900); }
.article-card .cover svg { width: 100%; height: 100%; display: block; }
.article-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.article-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.article-card .meta { margin-top: auto; padding-top: 8px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.tag {
  align-self: flex-start; font-size: .74rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  color: var(--brand-strong); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px;
}
.tag.warm { color: var(--accent-strong); background: var(--accent-soft); }

/* Makale sayfası */
.article-hero .meta-line { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; color: var(--hero-muted); font-size: .9rem; font-weight: 600; }
.article-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 7; background: var(--brand-900); }
.article-cover svg { width: 100%; height: 100%; display: block; }
.takeaways {
  background: var(--brand-softer); border: 1px solid var(--brand-soft); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 24px 0;
}
.takeaways h2 { font-size: 1.05rem; margin: 0 0 8px; }
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li { margin-bottom: 6px; }
.data-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.data-strip div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.data-strip b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.data-strip span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.quote {
  margin: 22px 0; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
}
.quote p { margin: 0; font-weight: 600; }
.quote cite { display: block; margin-top: 6px; font-style: normal; font-size: .85rem; color: var(--muted); }
.sources { font-size: .88rem; color: var(--muted); }
.sources li { margin-bottom: 4px; overflow-wrap: anywhere; }
.disclaimer {
  margin: 28px 0; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); font-size: .9rem;
}
.disclaimer p { margin: 0; }

/* ---------- İçerik metinleri ---------- */
.prose { max-width: 760px; }
/* :where() özgüllüğü sıfırlar; böylece kutu, alıntı, grafik gibi bileşenlerin kendi stilleri geçerli olur */
:where(.prose) h2 { font-size: 1.5rem; margin: 40px 0 10px; }
:where(.prose) h3 { font-size: 1.15rem; margin: 24px 0 6px; }
:where(.prose) p, :where(.prose) ul, :where(.prose) ol { margin: 0 0 14px; color: var(--text-2); }
:where(.prose) li { margin-bottom: 6px; }
:where(.prose) strong, :where(.prose) b { color: var(--text); }
.formula {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: .95rem; color: var(--text);
}
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.aside-card { position: sticky; top: 88px; display: grid; gap: 12px; }
.aside-card h3 { margin: 0; font-size: 1rem; }
.aside-card a.aside-link {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px;
  text-decoration: none; color: var(--text); font-weight: 650; font-size: .95rem;
}
.aside-card a.aside-link:hover { background: var(--surface-2); }

details.faq {
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  padding: 0 18px; margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
details.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; color: var(--text); }
details.faq[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }
details.faq p { margin: 0 0 14px; color: var(--text-2); }

.cta-band {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  background: var(--hero-bg); color: #fff; border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; color: var(--hero-muted); }

/* ---------- Alt bilgi ---------- */
.site-footer {
  margin-top: 72px; padding: 48px 0 28px;
  background: var(--brand-950); color: rgba(255, 255, 255, .72); font-size: .92rem;
}
:root[data-theme="dark"] .site-footer { background: #070d0b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #070d0b; } }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 24px; }
.footer-grid .footer-brand { grid-column: span 2; }

/* Kısa cevap (AEO) */
.kisa-cevap {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 22px; box-shadow: var(--shadow-sm);
}
.kisa-cevap .etiket {
  flex: none; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; margin-top: 2px;
}
.kisa-cevap p { margin: 0; color: var(--text); font-size: 1.02rem; }

/* Ana sayfa: diğer hesaplamalar çipleri */
.chip-blok { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.chip-baslik { font-weight: 750; color: var(--text-2); font-size: .92rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list a {
  padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); text-decoration: none; font-weight: 650; font-size: .88rem; box-shadow: var(--shadow-sm);
}
.chip-list a:hover { border-color: var(--brand); color: var(--brand-strong); }
.chip-blok .more { font-weight: 700; text-decoration: none; }

/* Tüm hesaplamalar */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tool-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); padding: 18px 20px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.tool-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--brand); color: var(--text); }
.tool-link h3 { margin: 0; font-size: 1.05rem; }
.tool-link p { margin: 0; color: var(--muted); font-size: .92rem; }
.tool-link .go { margin-top: auto; padding-top: 6px; color: var(--brand); font-weight: 800; font-size: .9rem; }
.kategori-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.kategori-nav a { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-weight: 650; font-size: .9rem; border: 1px solid rgba(255, 255, 255, .2); }
.kategori-nav a:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.footer-grid h4, .footer-grid .footer-title { color: #fff; font-size: .95rem; margin: 0 0 10px; letter-spacing: 0; }
.footer-grid a { display: block; color: rgba(255, 255, 255, .72); text-decoration: none; padding: 3px 0; }
.footer-grid a:hover { color: #fff; }
.footer-brand .logo { color: #fff; margin-bottom: 10px; }
.footer-brand .logo span b { color: #6fd3b6; }
.footer-brand p { margin: 0; max-width: 320px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.footer-bottom p { margin: 4px 0; }

/* ---------- Duyarlı ---------- */
@media (max-width: 980px) {
  .tools { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .calendar { grid-template-columns: repeat(2, 1fr); }
  .articles { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .content-grid > * { min-width: 0; }
  .aside-card { position: static; }
  .chart-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .article-featured { grid-template-columns: 1fr; }
  .article-featured .cover { aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 116px; }
  body { font-size: 16px; }
  .site-header .wrap { flex-direction: column; align-items: stretch; gap: 4px; padding-top: 10px; padding-bottom: 6px; min-height: 0; }
  .nav { margin: 0 -16px; padding: 0 12px 4px; }
  .page-hero { padding: 28px 0 92px; }
  .page-hero .wrap, .home-hero .wrap { grid-template-columns: 1fr; }
  .hero-art { justify-content: center; }
  .page-hero .hero-art { display: none; }
  .home-hero { padding: 32px 0 100px; }
  .home-hero .hero-art { display: flex; order: -1; }
  .home-hero .hero-art img { max-width: 300px; }
  .calc { grid-template-columns: 1fr; }
  .calc form, .calc .result { padding: 20px; }
  .calc .result { border-left: 0; border-top: 1px solid var(--border); }
  .articles { grid-template-columns: 1fr; }
  .data-strip { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 24px; }
  .section { margin: 44px 0; }
  th, td { padding: 10px 12px; }
}
@media (max-width: 520px) {
  .footer-grid .footer-brand { grid-column: auto; }
  .kisa-cevap { flex-direction: column; gap: 8px; }
  .tools, .stats, .calendar { grid-template-columns: 1fr; }
  .stat .stat-value { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}
