/*
 * TinyMCE ve ziyaretçi tarafında gösterilen zengin metinlerin ortak tipografisi.
 * Frontend içerik kapsayıcısında `editor-content` sınıfı kullanılmalıdır.
 * Font dosyaları: /assets/font/
 */

@font-face {
    font-family: "Literata";
    src: url("../font/Literata-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Literata";
    src: url("../font/Literata-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Amasya";
    src: url("../font/Amasya-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../font/PlusJakartaSans-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

.editor-content {
    font-family: "Literata", Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 33.48px;
    letter-spacing: 0;
    text-align: left;
}

.editor-content p,
.editor-content li,
.editor-block-paragraph {
    font-family: "Literata", Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 33.48px;
    letter-spacing: 0;
    text-align: left;
}

.editor-content-title {
    font-family: "Literata", Georgia, serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 48px;
    letter-spacing: -0.6px;
    text-align: left;
}

.editor-content-subheading,
.editor-content .editor-content-subheading {
    margin: 44px 0 24px;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 0.7px;
    text-align: center;
    text-transform: uppercase;
}

.editor-content p,
.editor-block-paragraph {
    margin: 0 0 30px;
}

.editor-content ul,
.editor-content ol {
    margin: 0 0 30px;
    padding-inline-start: 28px;
}

.editor-content ul { list-style: disc; }
.editor-content ol { list-style: decimal; }
.editor-content li { margin: 0 0 10px; }

.editor-content img {
    max-width: 100%;
    height: auto;
}

.editor-content img.editor-image-full-width,
img.editor-image-full-width {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.editor-block-quote {
    margin: 44px 0;
    padding: 0;
    font-family: "Literata", Georgia, serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 33.6px;
    letter-spacing: 0;
    text-align: left;
}

.editor-content .editor-block-arabic,
.editor-content p[lang="ar"],
.editor-content p[dir="rtl"],
.editor-block-arabic {
    margin: 44px 0;
    font-family: "Amasya", "Noto Naskh Arabic", serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 60.8px;
    text-align: center;
    unicode-bidi: isolate;
}

.editor-content figure.image,
.editor-block-figure {
    display: block;
    width: 100%;
    margin: 44px 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.editor-content figure.image img,
.editor-block-figure img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0;
}

.editor-content figure.image figcaption,
.editor-block-figure figcaption {
    margin: 10px 0 0;
    padding: 0;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-size: 12.5px;
    font-style: normal;
    font-weight: 400;
    line-height: 18.75px;
    letter-spacing: 0;
    text-align: left;
}

/* Tema `prose` kurallarıyla birlikte kullanıldığında editörün onaylı blok
 * ölçülerinin önceliğini korur ve iki ayrı paragraf boşluğu oluşmasını önler. */
.prose.editor-content > * + * {
    margin-block-start: 0;
}

.prose.editor-content .editor-content-title {
    margin: 44px 0 30px;
    font-family: "Literata", Georgia, serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 48px;
    letter-spacing: -0.6px;
}

.prose.editor-content .editor-content-subheading {
    margin: 44px 0 24px;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 0.7px;
    text-align: center;
    text-transform: uppercase;
}

.prose.editor-content .editor-block-quote {
    margin: 44px 0;
    font-family: "Literata", Georgia, serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 33.6px;
}

.prose.editor-content .editor-block-arabic,
.prose.editor-content p[lang="ar"],
.prose.editor-content p[dir="rtl"] {
    margin: 44px 0;
    font-family: "Amasya", "Noto Naskh Arabic", serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 60.8px;
    text-align: center;
}

.prose.editor-content .editor-block-figure {
    margin: 44px 0;
}

/* Tema filtrelerindeki işlem butonları her sayfada düz yazı kullanır. */
[data-choice-apply],
[data-date-apply],
[data-category-count] {
    font-style: normal !important;
    font-weight: 500 !important;
}

/* Çok sayıda kategori olduğunda yalnızca seçenek listesi kaydırılır. */
#category-filter ul {
    max-height: min(360px, 45dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--color-neutral-550, #657080) transparent;
}

#category-filter ul::-webkit-scrollbar {
    width: 6px;
}

#category-filter ul::-webkit-scrollbar-track {
    background: transparent;
}

#category-filter ul::-webkit-scrollbar-thumb {
    background: var(--color-neutral-550, #657080);
    border-radius: 999px;
}

[data-transcript-highlight] {
    padding: 0;
    border-radius: 2px;
    background: color-mix(in srgb, #e6df45 20%, transparent);
    color: #e6df45;
    font: inherit;
}

[data-transcript-line] {
    border-inline-start: 3px solid transparent;
}

[data-transcript-line][data-transcript-active] {
    border-inline-start-color: var(--color-accent, #4da8db);
    background: color-mix(in srgb, var(--color-accent, #4da8db) 14%, transparent);
}

[data-transcript-line][data-transcript-active] p {
    color: var(--color-text, #eef2f5);
}

@media (min-width: 1024px) {
    [data-talk-layout] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
        align-items: start;
        gap: 24px;
    }

    [data-talk-primary],
    [data-talk-transcript-panel] {
        min-width: 0;
    }
}
