/* icerik-html.css */
/* icerik-html.css — blog / haber / duyuru detay govdesi (panelden yapistirilan HTML) icin tasma korumasi
   ve yazar bilesenleri. Sinif: .rich-content (Blog .article-content, Haber .news-text, Duyuru .notice-text).
   Renkler icerik-sayfa.css ile ayni: #064A97 #1bb5cc #021c3a #f5f9ff. Kural belgesi: ICERIK-HTML-KURALI.md */

.rich-content {
    --rc-primary: #064A97;
    --rc-accent: #1bb5cc;
    --rc-dark: #021c3a;
    --rc-light: #f5f9ff;
    --rc-border: #e6eef7;
    --rc-text: #1a2a3f;
    --rc-muted: #5a6a82;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Yapistirilan icerik sabit genisliklerle gelse de kolondan tasmaz */
.rich-content *,
.rich-content *::before,
.rich-content *::after { box-sizing: border-box; }
.rich-content > *,
.rich-content div,
.rich-content section,
.rich-content article { max-width: 100%; min-width: 0; }
.rich-content [style*="width"] { max-width: 100% !important; }
.rich-content img,
.rich-content video,
.rich-content canvas,
.rich-content svg { max-width: 100%; height: auto; }
.rich-content iframe,
.rich-content embed,
.rich-content object { max-width: 100%; }
.rich-content figure { margin: 24px 0; max-width: 100%; }
.rich-content figcaption { font-size: 14px; color: var(--rc-muted); margin-top: 8px; }
.rich-content pre { max-width: 100%; overflow-x: auto; padding: 16px; background: var(--rc-light); border: 1px solid var(--rc-border); border-radius: 10px; font-size: 14px; }
.rich-content code { overflow-wrap: anywhere; }
.rich-content pre code { overflow-wrap: normal; }

/* Tablolar: sarmalayici yoksa bile yatay kaydir */
.rich-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; margin: 24px 0; }
.rich-content th,
.rich-content td { padding: 10px 14px; border: 1px solid var(--rc-border); text-align: left; vertical-align: top; min-width: 96px; overflow-wrap: normal; word-break: normal; }
.rich-content th { background: var(--rc-light); color: var(--rc-dark); font-weight: 600; }
/* A header row whose author set its own fill (tr style="background:...") keeps that fill: the theme fill above must not paint over it (white-on-navy th became white on near-white, 1.05:1) */
.rich-content tr[style*="background"] > th { background: transparent; }

.rich-content h2, .rich-content h3, .rich-content h4 { color: var(--rc-dark); line-height: 1.3; text-wrap: balance; margin: 36px 0 14px; }
/* A265: a title copy inside a rich body is a p (not a second h2) and keeps the former h2 look */
.rich-content p.rc-title-dup { font-family: inherit; font-size: 2rem; font-weight: 600; color: var(--rc-dark); line-height: 1.3; text-wrap: balance; margin: 36px 0 14px; }
.rich-content ul, .rich-content ol { padding-left: 1.4em; margin: 0 0 20px; }
.rich-content li { margin-bottom: 8px; }
.rich-content a { color: var(--rc-primary); text-decoration: underline; text-underline-offset: 3px; }
.rich-content a:hover { color: var(--rc-accent); }
.rich-content blockquote { margin: 28px 0; padding: 20px 24px; background: var(--rc-light); border-radius: 12px; color: var(--rc-dark); font-size: 1.05em; }
.rich-content blockquote p:last-child { margin-bottom: 0; }
.rich-content blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: var(--rc-muted); }

/* Yazar bilesenleri (yalniz sinif; ic CSS / sabit genislik yok) */
.rich-content .rc-callout { margin: 28px 0; padding: 18px 20px; background: var(--rc-light); border: 1px solid var(--rc-border); border-radius: 12px; color: var(--rc-text); }
.rich-content .rc-callout > :first-child { margin-top: 0; }
.rich-content .rc-callout > :last-child { margin-bottom: 0; }
.rich-content .rc-callout-title { display: block; font-weight: 700; color: var(--rc-primary); margin-bottom: 6px; }

.rich-content .rc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin: 28px 0; }
.rich-content .rc-card { padding: 18px 20px; background: #fff; border: 1px solid var(--rc-border); border-radius: 12px; box-shadow: 0 2px 10px rgba(2, 28, 58, .06); }
.rich-content .rc-card h3, .rich-content .rc-card h4 { margin: 0 0 8px; font-size: 1.05em; }
.rich-content .rc-card > :last-child { margin-bottom: 0; }

.rich-content .rc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 12px; margin: 28px 0; padding: 0; list-style: none; }
.rich-content .rc-stats li { margin: 0; padding: 14px 16px; background: var(--rc-light); border-radius: 12px; color: var(--rc-muted); font-size: 14px; }
.rich-content .rc-stats strong { display: block; font-size: 1.6em; line-height: 1.2; color: var(--rc-primary); }

.rich-content .rc-steps { counter-reset: rc-step; list-style: none; margin: 28px 0; padding: 0; }
.rich-content .rc-steps > li { counter-increment: rc-step; position: relative; margin: 0 0 14px; padding: 4px 0 4px 52px; min-height: 40px; }
.rich-content .rc-steps > li::before { content: counter(rc-step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--rc-primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.rich-content .rc-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; }
.rich-content .rc-table-wrap > table { display: table; min-width: 480px; margin: 0; width: 100%; }

.rich-content .rc-faq { margin: 24px 0; }
.rich-content .rc-faq details { border: 1px solid var(--rc-border); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; background: #fff; }
.rich-content .rc-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--rc-dark); }
.rich-content .rc-faq summary:focus-visible { outline: 3px solid var(--rc-accent); outline-offset: 3px; border-radius: 6px; }
.rich-content .rc-faq details[open] summary { color: var(--rc-primary); }
.rich-content .rc-faq details > :last-child { margin-bottom: 16px; }

.rich-content .rc-cta { margin: 36px 0; padding: 28px 24px; text-align: center; background: var(--rc-dark); color: #fff; border-radius: 16px; }
.rich-content .rc-cta h2, .rich-content .rc-cta h3 { margin: 0 0 8px; color: #fff; }
.rich-content .rc-cta p { margin: 0 0 16px; color: #d6e6f7; }
.rich-content .rc-cta a { display: inline-block; padding: 12px 24px; background: var(--rc-accent); color: var(--rc-dark); font-weight: 700; border-radius: 10px; text-decoration: none; }
.rich-content .rc-cta a:hover { background: #fff; color: var(--rc-dark); }
.rich-content .rc-cta a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (max-width: 575px) {
    .rich-content th, .rich-content td { padding: 8px 10px; min-width: 88px; }
    .rc-cta { padding: 22px 16px; }
}

/* ===== V43 (01.11) BEGIN: NEW-05 blog detail cover keeps its own aspect ratio (no fixed 800 / 400 px box, no crop, no stretch) ===== */
html body .blog-detail-content .blog-detail-article .featured-image { height: auto; }
html body .blog-detail-content .blog-detail-article .featured-image img { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; }
/* ===== V43 (01.11) END ===== */
/* rehber-bilesen.css */
/* Q-98: guide template components (contents list, last update, author box); linked only while Content:GuideComponents is on. */
.gd-page .gd-updated { margin: 0 0 1rem; }
.gd-page .gd-toc { margin: 0; padding: 1rem 1.25rem; border-left: 4px solid currentColor; border-radius: 4px; background: rgba(127, 127, 127, .08); }
.gd-page .gd-toc-title { margin: 0 0 .5rem; font-weight: 600; }
/* EK-UX-06: folded contents list (native details/summary, no script); the summary is a 44px tap target. */
.gd-page .gd-toc-fold > summary.gd-toc-title { margin: 0; display: flex; align-items: center; min-height: 44px; cursor: pointer; }
.gd-page .gd-toc-fold[open] > summary.gd-toc-title { margin-bottom: .5rem; }
.gd-page .gd-toc-list { margin: 0; padding-left: 1.25rem; }
.gd-page .gd-toc-list li { margin: 0 0 .35rem; }
.gd-page .gd-toc-list li:last-child { margin-bottom: 0; }
.gd-page .gd-author { margin: 0; padding: 1rem 1.25rem; border-left: 4px solid currentColor; border-radius: 4px; background: rgba(127, 127, 127, .08); }
.gd-page .gd-author p { margin: 0; }
.gd-page .gd-author-label { font-weight: 600; margin-bottom: .25rem; }
.gd-page #gd-short, .gd-page [id^="gd-s"], .gd-page #ozl-faq { scroll-margin-top: 5rem; }
/* A323: display:flex removed the native disclosure marker, so the folded list read as an empty box; a drawn chevron shows it opens. */
.gd-page .gd-toc-fold > summary.gd-toc-title::-webkit-details-marker { display: none; }
.gd-page .gd-toc-fold > summary.gd-toc-title::after { content: ""; flex: none; margin-left: auto; width: .5em; height: .5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-25%) rotate(45deg); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.gd-page .gd-toc-fold[open] > summary.gd-toc-title::after { transform: translateY(25%) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .gd-page .gd-toc-fold > summary.gd-toc-title::after { transition: none; } }
