/* ICAO Level landing: the blog (/blog/ and its articles). The article area is a one-to-one port of the atpl.com.tr blog
 * template ("Editorial Cockpit": a dark hero with breadcrumb, eyebrow, big title and meta row; a sticky table of contents
 * beside the prose; lead, takeaways, callouts, numbered H2s, .wtable tables, FAQ accordion, dark CTA cards, the demo quiz;
 * the hub's card grid) with the same fonts (Geist, IBM Plex Mono, Newsreader), type scale and spacing.
 * Loaded after site.css, only on blog pages. Everything is scoped under main.blog (and body.blog-sayfa for the page
 * ground), so the ICAO Level header, footer and cookie banner keep site.css's look. Accent: on light surfaces the ICAO
 * blue sits where atpl uses its navy; on the dark hero and CTA cards amber sits where atpl uses its light blue.
 * Two themes like site.css: the light one below, the night one when the system is dark (unless the visitor chose
 * light) or the visitor chose dark. */

.blog {
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --cream: #f6f1e8; --paper: #fffdf8; --paper-hi: #fff;
  --ink: #14181f; --ink-soft: #3a4150; --muted: #6c6a62; --muted-2: #a7a294;
  --cockpit: #080c16; --cockpit-glow: rgba(27, 77, 219, 0.2);
  --on-dark: #f2f4f9; --on-dark-soft: #c9d2e1; --on-dark-muted: #8893a7; --line-dark: rgba(226, 234, 248, 0.12);
  --accent: #1b4ddb; --accent-lit: #ffc21a; --accent-lit-ink: #0a1a33; --accent-soft: rgba(27, 77, 219, 0.08);
  --accent-tint: rgba(27, 77, 219, 0.05); --accent-line: rgba(27, 77, 219, 0.35); --accent-hover: rgba(27, 77, 219, 0.3);
  --ok: #1f9d57; --ok-text: #1f7a44; --ok-bg: rgba(31, 157, 87, 0.05); --ok-soft: rgba(31, 157, 87, 0.08); --ok-line: rgba(31, 157, 87, 0.25);
  --on-state: #fff; --no: #d2483f; --no-text: #b23a32; --no-soft: rgba(210, 72, 63, 0.07); --no-line: rgba(210, 72, 63, 0.22);
  --warn: #e6b34a; --warn-text: #9a7414; --warn-bg: rgba(230, 179, 74, 0.08);
  --line: rgba(20, 24, 31, 0.12); --line-2: rgba(20, 24, 31, 0.07);
  --shadow: rgba(20, 24, 31, 0.4); --shadow-2: rgba(20, 24, 31, 0.5);
  --radius: 16px; --maxw: 1180px; --ease: cubic-bezier(.4, 0, .2, 1);
  display: block; background: var(--cream); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
  interpolate-size: allow-keywords;
}
body.blog-sayfa { background: #f6f1e8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.blog-sayfa { background: #09142c; }
  :root:not([data-theme="light"]) .blog {
    --cream: #09142c; --paper: #11203c; --paper-hi: #172a4c;
    --ink: #e9eff9; --ink-soft: #c7d2e4; --muted: #a3b3cd; --muted-2: #8292ae;
    --cockpit: #050a16; --cockpit-glow: rgba(70, 116, 240, 0.24);
    --accent: #8db0ff; --accent-soft: rgba(120, 160, 255, 0.14); --accent-tint: rgba(120, 160, 255, 0.07);
    --accent-line: rgba(141, 176, 255, 0.4); --accent-hover: rgba(141, 176, 255, 0.4);
    --ok: #5bd9a4; --ok-text: #5bd9a4; --ok-bg: rgba(91, 217, 164, 0.07); --ok-soft: rgba(91, 217, 164, 0.12); --ok-line: rgba(91, 217, 164, 0.3);
    --on-state: #0a1a33; --no: #ff8a80; --no-text: #ff8a80; --no-soft: rgba(255, 138, 128, 0.1); --no-line: rgba(255, 138, 128, 0.3);
    --warn: #e0a31a; --warn-text: #ffd25e; --warn-bg: rgba(255, 194, 26, 0.08);
    --line: rgba(150, 180, 240, 0.16); --line-2: rgba(150, 180, 240, 0.09);
    --shadow: rgba(0, 0, 0, 0.75); --shadow-2: rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="dark"] body.blog-sayfa { background: #09142c; }
:root[data-theme="dark"] .blog {
  --cream: #09142c; --paper: #11203c; --paper-hi: #172a4c;
  --ink: #e9eff9; --ink-soft: #c7d2e4; --muted: #a3b3cd; --muted-2: #8292ae;
  --cockpit: #050a16; --cockpit-glow: rgba(70, 116, 240, 0.24);
  --accent: #8db0ff; --accent-soft: rgba(120, 160, 255, 0.14); --accent-tint: rgba(120, 160, 255, 0.07);
  --accent-line: rgba(141, 176, 255, 0.4); --accent-hover: rgba(141, 176, 255, 0.4);
  --ok: #5bd9a4; --ok-text: #5bd9a4; --ok-bg: rgba(91, 217, 164, 0.07); --ok-soft: rgba(91, 217, 164, 0.12); --ok-line: rgba(91, 217, 164, 0.3);
  --on-state: #0a1a33; --no: #ff8a80; --no-text: #ff8a80; --no-soft: rgba(255, 138, 128, 0.1); --no-line: rgba(255, 138, 128, 0.3);
  --warn: #e0a31a; --warn-text: #ffd25e; --warn-bg: rgba(255, 194, 26, 0.08);
  --line: rgba(150, 180, 240, 0.16); --line-2: rgba(150, 180, 240, 0.09);
  --shadow: rgba(0, 0, 0, 0.75); --shadow-2: rgba(0, 0, 0, 0.8);
}

.blog a { color: inherit; text-decoration: none; }
.blog img, .blog svg { display: block; max-width: 100%; }
.blog ::selection { background: var(--accent); color: #fff; }
.blog h1, .blog h2, .blog h3, .blog h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.blog .wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.blog .eyebrow {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.6; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-lit); display: inline-flex; align-items: center; gap: 10px;
}
.blog .eyebrow::before { content: ""; width: 22px; height: 1px; border-radius: 0; background: var(--accent-lit); opacity: .55; }

/* Buttons: atpl's pill (site.css's .btn is reset to its size; the colour is the amber accent on dark cards). */
.blog .btn {
  --h: auto; min-height: 0; display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-sans); font-weight: 600; font-size: 14.5px;
  letter-spacing: 0; padding: 10px 20px; border-radius: 999px; background: var(--accent-lit); color: var(--accent-lit-ink); border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 194, 26, .3); transition: transform .25s var(--ease), box-shadow .25s var(--ease); white-space: nowrap; text-decoration: none;
}
.blog .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 194, 26, .45); }
.blog .btn .arr { transition: transform .25s var(--ease); }
.blog .btn:hover .arr { transform: translateX(3px); }
.blog .prose a.btn { color: var(--accent-lit-ink); text-decoration: none; }
.blog .btn--ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line-dark); }
.blog .btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(226, 234, 248, .4); }

/* ---------- Hero */
.blog .post-hero { background: var(--cockpit); color: var(--on-dark); padding: 48px 0 56px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line-dark); }
.blog .post-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(58% 90% at 85% -10%, var(--cockpit-glow), transparent 60%); }
.blog .post-hero .wrap { position: relative; max-width: 880px; }
.blog .breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; color: var(--on-dark-muted); text-transform: uppercase; margin-bottom: 22px; }
.blog .breadcrumb ol { display: contents; }
.blog .breadcrumb li { display: contents; }
.blog .breadcrumb a:hover { color: var(--accent-lit); }
.blog .breadcrumb .sep { opacity: .5; }
.blog .post-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.03em; margin-top: 16px; line-height: 1.1; max-width: 20ch; color: var(--on-dark); }
.blog .post-hero h1 em, .blog .idx-hero h1 em, .blog .article-cta .ac-title em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--accent-lit); }
.blog .post-excerpt { margin-top: 18px; font-size: 1.12rem; color: var(--on-dark-soft); line-height: 1.6; max-width: 60ch; }
.blog .post-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--on-dark-muted); }
.blog .post-meta span { display: inline-flex; align-items: center; gap: 8px; }
.blog .post-meta svg { width: 14px; height: 14px; color: var(--accent-lit); }

/* ---------- Article layout: sticky TOC + prose */
.blog .post-body { padding: 54px 0 80px; }
.blog .post-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 54px; align-items: start; }
.blog .toc { position: sticky; top: calc(var(--ust-bar) + 24px); }
.blog .toc .toc-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.blog .toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; padding: 0; margin: 0; }
.blog .toc a { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); padding: 6px 10px 6px 14px; border-left: 2px solid var(--line); transition: color .2s, border-color .2s; }
.blog .toc a:hover { color: var(--ink); }
.blog .toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.blog .toc-toggle { display: none; }
@media (max-width: 1000px) {
  .blog .post-grid { grid-template-columns: 1fr; gap: 0; }
  .blog .toc { position: static; margin-bottom: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
  .blog .toc-label-desktop { display: none; }
  .blog .toc-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; cursor: pointer; padding: 0;
    font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2);
  }
  .blog .toc-toggle svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
  .blog .toc.open .toc-toggle svg { transform: rotate(180deg); }
  /* Collapsed only when blog.js can open it (tema.js marks <html> before the first paint on every page). */
  .tema-js .blog .toc ol { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease), margin-top .35s var(--ease); margin-top: 0; }
  .tema-js .blog .toc.open ol { max-height: 1400px; margin-top: 14px; }
  .tema-js .blog .toc.aninda ol { transition: none; }
  .blog .toc:not(.open) ol a { visibility: hidden; }
  html:not(.tema-js) .blog .toc ol a { visibility: visible; }
  .blog .toc.open ol a { visibility: visible; }
}

/* ---------- Prose (headings land 8px under the header: html already has scroll-padding-top for it) */
.blog .prose { max-width: 740px; font-size: 18px; line-height: 1.78; color: var(--ink-soft); overflow-wrap: break-word; }
.blog .prose .lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); font-weight: 450; margin-bottom: 28px; max-width: none; }
.blog .prose h2 { font-size: 1.62rem; color: var(--ink); margin: 48px 0 16px; letter-spacing: -0.025em; scroll-margin-top: 8px; line-height: 1.2; }
.blog .prose h2 .h2num { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); font-weight: 600; display: block; margin-bottom: 6px; letter-spacing: .08em; }
.blog .prose h3 { font-size: 1.2rem; color: var(--ink); margin: 32px 0 12px; }
.blog .prose p { margin: 0 0 18px; }
.blog .prose p.cevap-ilk { color: var(--ink); }
.blog .prose strong, .blog .prose b { color: var(--ink); font-weight: 650; }
.blog .prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-line); }
.blog .prose a:hover { text-decoration-color: var(--accent); }
.blog .prose ul, .blog .prose ol { margin: 0 0 18px; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.blog .prose li { position: relative; padding-left: 30px; }
.blog .prose ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.blog .prose ol { counter-reset: li; }
.blog .prose ol li { counter-increment: li; }
.blog .prose ol li::before {
  content: counter(li); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; display: grid; place-items: center;
}
.blog .prose em { font-family: var(--font-serif); font-style: italic; color: var(--ink); }

/* Callouts */
.blog .callout { margin: 26px 0; padding: 20px 22px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); font-size: .98rem; line-height: 1.65; color: var(--ink-soft); }
.blog .callout .c-tag { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 9px; }
.blog .callout .c-tag svg { width: 15px; height: 15px; flex: none; }
.blog .callout strong { color: var(--ink); }
.blog .callout ul { margin: 12px 0 0; gap: 9px; }
.blog .callout li { font-size: .98rem; line-height: 1.6; }
.blog .callout ul li::before { top: 9px; }
.blog .callout.key { border-left-color: var(--ok); background: var(--ok-bg); }
.blog .callout.key .c-tag { color: var(--ok-text); }
.blog .callout.key ul li::before { background: var(--ok); }
.blog .callout.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.blog .callout.warn .c-tag { color: var(--warn-text); }
.blog .callout.warn ul li::before { background: var(--warn); }

/* Figure: the 1–6 scale and the lowest-criterion rule (inline SVG, coloured from the tokens, so both themes work). Two
 * panels side by side, stacked on phones; each SVG keeps its 300-unit width so its text stays legible at 375 px. */
.blog .seviye-fig { margin: 26px 0 30px; padding: 20px 20px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 16px 40px -34px var(--shadow); }
.blog .seviye-fig .sf-izgara { display: grid; gap: 22px; }
@media (min-width: 640px) { .blog .seviye-fig .sf-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } }
.blog .seviye-fig .sf-panel { min-width: 0; }
.blog .prose .seviye-fig .sf-baslik { margin: 0 0 10px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.blog .seviye-fig svg { display: block; width: 100%; max-width: 420px; height: auto; overflow: visible; }
.blog .seviye-fig text { font-family: var(--font-sans); font-size: 13px; fill: var(--ink); }
.blog .seviye-fig .sf-no { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.blog .seviye-fig .sf-sag { font-family: var(--font-mono); font-size: 11.5px; text-anchor: end; fill: var(--muted); }
.blog .seviye-fig .sf-ok rect { fill: var(--accent-soft); stroke: var(--accent-line); }
.blog .seviye-fig .sf-hedef rect { fill: var(--accent); }
.blog .seviye-fig .sf-hedef text { fill: var(--on-state); font-weight: 600; }
.blog .seviye-fig .sf-alt rect { fill: none; stroke: var(--line); stroke-dasharray: 4 3; }
.blog .seviye-fig .sf-alt text:not(.sf-sag) { fill: var(--muted); }
.blog .seviye-fig .sf-esik { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 2 4; stroke-linecap: round; }
.blog .seviye-fig .sf-eksen text { font-family: var(--font-mono); font-size: 11px; text-anchor: middle; fill: var(--muted-2); }
.blog .seviye-fig .sf-cizgi path { stroke: var(--line-2); stroke-width: 1; }
.blog .seviye-fig .sf-olcut text { fill: var(--ink-soft); }
.blog .seviye-fig .sf-cubuk { fill: var(--accent); fill-opacity: .82; }
.blog .seviye-fig .sf-cubuk.sf-dusuk { fill: var(--no); fill-opacity: 1; }
.blog .seviye-fig .sf-hedef-cizgi { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3; }
.blog .seviye-fig .sf-puan text { font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.blog .seviye-fig .sf-puan text:first-child { fill: var(--no-text); }
.blog .seviye-fig .sf-sonuc rect { fill: var(--no-soft); stroke: var(--no-line); }
.blog .seviye-fig .sf-sonuc text { font-weight: 600; fill: var(--no-text); }
.blog .seviye-fig .sf-sonuc .sf-sag { font-weight: 400; fill: var(--muted); }
.blog .seviye-fig figcaption { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .9rem; line-height: 1.55; color: var(--muted); }

/* Key takeaways box */
.blog .takeaways { margin: 0 0 8px; padding: 26px 26px 24px; border-radius: 18px; background: linear-gradient(180deg, var(--accent-tint), var(--paper)); border: 1px solid var(--line); box-shadow: 0 20px 44px -34px var(--shadow); }
.blog .takeaways .t-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.blog .takeaways .t-label svg { width: 17px; height: 17px; }
.blog .takeaways ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; }
.blog .takeaways li { position: relative; padding-left: 28px; font-size: .98rem; line-height: 1.55; color: var(--ink-soft); }
.blog .takeaways li::before { content: none; }
.blog .takeaways li svg { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; color: var(--ok); }
.blog .takeaways li b, .blog .takeaways li strong { color: var(--ink); font-weight: 600; }

/* Sample answers: an English question, the answer, then a note in Turkish (atpl's paper card). */
.blog .ornek-cevap { margin: 18px 0 22px; padding: 18px 22px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 16px 40px -34px var(--shadow); }
.blog .ornek-cevap p { margin: 0; font-size: .98rem; line-height: 1.65; }
.blog .ornek-cevap p + p { margin-top: 10px; }
.blog .ornek-cevap .en { color: var(--ink); font-family: var(--font-serif); font-style: italic; font-size: 1.06rem; line-height: 1.6; }
.blog .ornek-cevap .soru-en { font-family: var(--font-mono); font-style: normal; font-size: .84rem; font-weight: 500; letter-spacing: .01em; line-height: 1.55; color: var(--accent); }
.blog .ornek-cevap .not { padding-top: 10px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .93rem; }
.blog .ornek-cevap .not strong { color: var(--ink); }

/* Tables (atpl's .wtable; a scroll box keeps a wide table from widening a phone page). */
.blog .wtable-wrap { margin: 22px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.blog .prose .wtable { width: 100%; border-collapse: collapse; margin: 0; font-size: .95rem; line-height: 1.55; }
.blog .prose .wtable th, .blog .prose .wtable td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.blog .prose .wtable thead th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; border-bottom: 1px solid var(--line); }
.blog .prose .wtable tbody th { min-width: 5.4em; color: var(--ink); font-weight: 650; }
.blog .prose .wtable tbody th span { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.blog .prose .wtable tbody tr:hover { background: var(--accent-soft); }
.blog .prose .wtable td b { color: var(--ink); }
@media (max-width: 520px) { .blog .prose .wtable { font-size: .86rem; } .blog .prose .wtable th, .blog .prose .wtable td { padding: 9px 8px; } }

/* ---------- FAQ (details/summary styled as atpl's accordion; opens smoothly where ::details-content is supported) */
.blog .post-faq { margin-top: 56px; }
.blog .post-faq .eyebrow { color: var(--accent); }
.blog .post-faq .eyebrow::before { background: var(--accent); }
.blog .post-faq > h2 { margin-top: 10px; margin-bottom: 8px; }
.blog .acc-item { border-bottom: 1px solid var(--line); }
.blog .acc-q {
  list-style: none; cursor: pointer; font-family: var(--font-sans); font-weight: 600; font-size: 1.04rem; line-height: 1.5; color: var(--ink);
  padding: 20px 42px 20px 0; position: relative; display: block; letter-spacing: -.01em;
}
.blog .acc-q::-webkit-details-marker { display: none; }
.blog .acc-q::after {
  content: ""; position: absolute; right: 4px; top: 25px; width: 13px; height: 13px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .3s var(--ease);
}
.blog .acc-item[open] .acc-q::after { transform: rotate(135deg); }
.blog .acc-item::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.blog .acc-item[open]::details-content { block-size: auto; }
.blog .acc-a p { margin: 0; padding: 0 10px 22px 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }

/* ---------- CTA card */
.blog .article-cta { margin-top: 56px; padding: 34px 30px; border-radius: 20px; background: var(--cockpit); color: var(--on-dark); position: relative; overflow: hidden; }
.blog .prose .article-cta { margin: 48px 0; }
.blog .article-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 130% at 85% 0%, var(--cockpit-glow), transparent 60%); }
.blog .article-cta .ac-in { position: relative; }
.blog .article-cta .ac-ust { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-lit); }
.blog .article-cta .ac-title { margin: 0; font-size: 1.4rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; max-width: 24ch; color: var(--on-dark); }
.blog .article-cta p { margin: 12px 0 20px; color: var(--on-dark-soft); font-size: 1rem; max-width: 52ch; line-height: 1.6; }
.blog .article-cta .ac-eylem { display: flex; flex-wrap: wrap; gap: 10px; }
.blog .article-cta p.ac-kucuk { margin: 18px 0 0; font-size: .84rem; color: var(--on-dark-muted); max-width: 60ch; }
.blog .article-cta a.btn { color: var(--accent-lit-ink); text-decoration: none; }
.blog .article-cta a.btn--ghost { color: var(--on-dark); }

/* ---------- Footer row, sources, closing note */
.blog .post-foot { max-width: 740px; margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); }
.blog .prose .post-foot a.back { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.blog .prose .post-foot a.back:hover { color: var(--accent); }
.blog .post-foot a.back svg { width: 14px; height: 14px; }
.blog .post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.blog .post-tags span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.blog .prose .kaynaklar { gap: 9px; font-size: .95rem; line-height: 1.6; }
.blog .prose .kaynaklar li { overflow-wrap: anywhere; }
.blog .prose .kaynaklar li::before { top: 9px; }
.blog .prose .blog-not { margin-top: 24px; font-size: .86rem; color: var(--muted-2); line-height: 1.6; }

/* ---------- Blog hub */
.blog .idx-hero { background: var(--cockpit); color: var(--on-dark); padding: 60px 0 54px; border-bottom: 1px solid var(--line-dark); position: relative; overflow: hidden; }
.blog .idx-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(58% 90% at 86% 0%, var(--cockpit-glow), transparent 60%); }
.blog .idx-hero .wrap { position: relative; }
.blog .idx-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 16px; letter-spacing: -.03em; color: var(--on-dark); }
.blog .idx-hero p { margin-top: 16px; color: var(--on-dark-soft); font-size: 1.1rem; max-width: 56ch; }
.blog .post-grid-idx { padding: 56px 0 30px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.blog .post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.blog .post-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px var(--shadow); border-color: var(--accent-hover); }
.blog .post-card .cat { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.blog .post-card h2 { font-size: 1.3rem; letter-spacing: -.02em; margin: 12px 0 10px; color: var(--ink); line-height: 1.25; }
.blog .post-card p { color: var(--muted); font-size: .96rem; line-height: 1.6; flex: 1; }
.blog .post-card .pc-meta { margin-top: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--muted-2); display: flex; gap: 16px; }
.blog .post-card .pc-go { margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--accent); display: inline-flex; align-items: center; gap: 7px; }
.blog .pc-go .arr { transition: transform .25s var(--ease); }
.blog .post-card:hover .pc-go .arr { transform: translateX(4px); }
.blog .idx-cta { padding-bottom: 80px; }
.blog .idx-cta .article-cta { margin-top: 26px; }

/* ---------- Reveal (blog.js adds .in; if it never runs, the content still appears after a moment) */
.tema-js .blog .reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.tema-js .blog .reveal:not(.in) { opacity: 0; transform: translateY(22px); animation: blog-belir 0s 2.5s forwards; }
@keyframes blog-belir { to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .blog .prose { font-size: 17px; }
  .blog .post-body { padding: 38px 0 60px; }
  .blog .article-cta { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .blog .reveal { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .blog .acc-item::details-content { transition: none; }
}

/* ---------- Interactive demo quiz (assets/js/blog-quiz.js) */
.blog .quiz-demo { margin: 30px 0 8px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--accent-tint), var(--paper)); overflow: hidden; box-shadow: 0 22px 50px -36px var(--shadow-2); }
.blog .quiz-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 22px; border-bottom: 1px solid var(--line); background: rgba(8, 9, 12, .015); }
.blog .quiz-head .qh-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.blog .quiz-head .qh-label svg { width: 15px; height: 15px; }
.blog .quiz-progress { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); letter-spacing: .04em; white-space: nowrap; }
.blog .prose p.quiz-not { margin-top: 12px; font-size: .92rem; color: var(--muted); }
.blog .quiz-body { padding: 20px 22px 24px; }
.blog .quiz-body noscript p { margin: 0; color: var(--muted); }
.blog .quiz-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.blog .quiz-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line); display: block; transition: background .25s, transform .25s; }
.blog .quiz-dots i.cur { background: var(--accent); transform: scale(1.25); }
.blog .quiz-dots i.correct { background: var(--ok); }
.blog .quiz-dots i.wrong { background: var(--no); }
.blog .quiz-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 10px; line-height: 1.6; }
.blog .quiz-tag b { color: var(--accent); font-weight: 600; }
.blog .quiz-context {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  font-family: var(--font-mono); font-size: .84rem; line-height: 1.6; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere;
}
.blog .quiz-q { font-size: 1.12rem; line-height: 1.5; color: var(--ink); font-weight: 600; margin: 0 0 18px; letter-spacing: -.01em; outline: none; }
.blog .quiz-opts { display: flex; flex-direction: column; gap: 9px; }
.blog .q-opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; font-family: var(--font-sans); font-size: .99rem; line-height: 1.45; color: var(--ink-soft);
  transition: border-color .18s, background .18s, transform .1s;
}
.blog .q-opt:hover:not(:disabled) { border-color: var(--accent); background: var(--paper-hi); }
.blog .q-opt:active:not(:disabled) { transform: scale(.995); }
.blog .q-opt .ol {
  flex: none; width: 25px; height: 25px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-size: 12px;
  font-weight: 600; display: grid; place-items: center; transition: background .18s, color .18s;
}
.blog .q-opt .otext { flex: 1; padding-top: 1px; }
.blog .q-opt:disabled { cursor: default; }
.blog .q-opt.correct { border-color: var(--ok); background: var(--ok-soft); color: var(--ink); }
.blog .q-opt.correct .ol { background: var(--ok); color: var(--on-state); }
.blog .q-opt.wrong { border-color: var(--no); background: var(--no-soft); color: var(--ink); }
.blog .q-opt.wrong .ol { background: var(--no); color: var(--on-state); }
.blog .q-opt.dim { opacity: .5; }
.blog .q-opt .ok-ic { margin-left: 6px; flex: none; width: 19px; height: 19px; opacity: 0; transition: opacity .2s; }
.blog .q-opt .ok-ic svg { width: 19px; height: 19px; }
.blog .q-opt.correct .ok-ic, .blog .q-opt.wrong .ok-ic { opacity: 1; }
.blog .q-opt.correct .ok-ic { color: var(--ok); }
.blog .q-opt.wrong .ok-ic { color: var(--no); }
.blog .quiz-fb { margin-top: 16px; border-radius: 12px; padding: 14px 16px; font-size: .95rem; line-height: 1.6; display: none; }
.blog .quiz-fb.show { display: block; animation: qzfade .3s var(--ease); }
@keyframes qzfade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.blog .quiz-fb.ok { background: var(--ok-bg); border: 1px solid var(--ok-line); }
.blog .quiz-fb.no { background: var(--no-soft); border: 1px solid var(--no-line); }
.blog .quiz-fb .fb-h { font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.blog .quiz-fb.ok .fb-h { color: var(--ok-text); }
.blog .quiz-fb.no .fb-h { color: var(--no-text); }
.blog .quiz-fb .fb-h svg { width: 17px; height: 17px; flex: none; }
.blog .quiz-fb p { margin: 0; color: var(--ink-soft); }
.blog .quiz-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 18px; }
.blog .quiz-next {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-weight: 600; font-size: 14px; padding: 10px 20px; border-radius: 999px;
  background: var(--accent); color: #fff; border: none; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s; box-shadow: 0 6px 20px rgba(27, 77, 219, .28);
}
.blog .quiz-next:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(27, 77, 219, .4); }
.blog .quiz-next[disabled] { opacity: .35; cursor: not-allowed; }
.blog .quiz-next .arr { transition: transform .25s var(--ease); }
.blog .quiz-next:hover:not([disabled]) .arr { transform: translateX(3px); }
.blog .quiz-result { text-align: center; padding: 36px 22px 30px; animation: qzfade .4s var(--ease); }
.blog .quiz-result .qr-score { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 700; color: var(--accent); letter-spacing: -.02em; line-height: 1; outline: none; margin: 0; }
.blog .quiz-result .qr-score small { display: block; font-size: .82rem; font-weight: 500; color: var(--muted-2); letter-spacing: .08em; margin-top: 9px; text-transform: uppercase; }
.blog .quiz-result .qr-msg { font-size: 1.05rem; color: var(--ink); margin: 16px auto 0; max-width: 42ch; line-height: 1.55; }
.blog .quiz-result .qr-cta { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 13px; }
.blog .quiz-result .qr-cta .btn { white-space: normal; text-align: center; justify-content: center; }
.blog .quiz-result .qr-note { margin: 0; font-size: .86rem; color: var(--muted); max-width: 46ch; line-height: 1.55; }
.blog .quiz-retry { background: none; border: none; cursor: pointer; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.blog .quiz-retry:hover { color: var(--accent); }
:root[data-theme="dark"] .blog .quiz-next { color: #0a1a33; box-shadow: 0 6px 20px rgba(141, 176, 255, .22); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blog .quiz-next { color: #0a1a33; box-shadow: 0 6px 20px rgba(141, 176, 255, .22); } }
@media (max-width: 760px) { .blog .quiz-head { flex-wrap: wrap; gap: 7px; } .blog .quiz-q { font-size: 1.05rem; } .blog .quiz-result .qr-score { font-size: 2.2rem; } }
