/* =========================================================
   SOJO TIMES — MOBİL ARAYÜZ
   Alt gezinme barı · tam ekran arama · yan menü · tekil yazı
   ---------------------------------------------------------
   Tüm kurallar dar ekranla sınırlıdır (≤ 900px); masaüstü
   düzenine dokunmaz. Renkler temanın :root değişkenlerinden
   gelir, gece modu kendiliğinden çalışır.
   ========================================================= */

:root {
    --sojo-mob-bar-h: 68px;
    --sojo-mob-gut: 16px;
}

/* Alt bar varken sayfa sonuna pay bırak */
@media (max-width: 900px) {
    body.sojo-has-mobbar {
        padding-bottom: calc(var(--sojo-mob-bar-h) + 18px + env(safe-area-inset-bottom, 0px));
    }

    /* Okuma çubuğu (tekil yazı) alt barın üstüne çıksın */
    body.sojo-has-mobbar .sojo-reading-dock {
        bottom: calc(var(--sojo-mob-bar-h) + 20px + env(safe-area-inset-bottom, 0px));
    }
}

/* =========================================================
   1. ALT GEZİNME BARI
   ========================================================= */
.sojo-mob-bar {
    display: none;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    width: calc(100% - 2 * var(--sojo-mob-gut));
    max-width: 560px;
    background: var(--st-paper);
    border: 1px solid var(--st-rule);
    border-radius: 999px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, .14), 0 1px 3px rgba(0, 0, 0, .06);
}

@media (max-width: 900px) {
    .sojo-mob-bar { display: block; }
}

@media print {
    .sojo-mob-bar { display: none !important; }
}

.sojo-mob-bar-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);   /* sekme sayısı değişse de eşit bölünür */
    align-items: stretch;
}

.sojo-mob-bar-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 2px 7px;
    border-radius: 999px;
    color: var(--st-muted);
    text-decoration: none;
    text-align: center;
    min-height: 54px;
    transition: background-color .15s ease, color .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.sojo-mob-bar-item a:hover,
.sojo-mob-bar-item a:focus-visible { color: var(--st-ink); }

.sojo-mob-bar-item.is-active a {
    background: var(--st-bg-soft);
    color: var(--st-ink);
}

.sojo-mob-ic {
    display: block;
    line-height: 0;
}

.sojo-mob-ic svg { width: 22px; height: 22px; display: block; }

.sojo-mob-lb {
    font-family: var(--st-font-sans);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: .005em;
    white-space: nowrap;
}

.sojo-mob-bar-item.is-active .sojo-mob-lb { font-weight: 700; }

.sojo-mob-lb {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Altı sekme dar ekranda sıkışıyor: küçült ve gerekirse iki satıra sar
   ("Ne okuyoruz" tek satıra sığmıyordu, kırpmak yerine alt alta gelsin). */
@media (max-width: 460px) {
    :root { --sojo-mob-bar-h: 76px; }

    .sojo-mob-bar-list { padding: 5px; }
    .sojo-mob-bar-item a { padding: 7px 1px 6px; gap: 3px; }
    .sojo-mob-ic svg { width: 21px; height: 21px; }

    .sojo-mob-lb {
        font-size: 10px;
        letter-spacing: -0.01em;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.08;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 380px) {
    .sojo-mob-lb { font-size: 9.5px; }
    .sojo-mob-ic svg { width: 19px; height: 19px; }
}

/* =========================================================
   2. TAM EKRAN ARAMA
   ========================================================= */
.sojo-mob-search {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: var(--st-paper);
    color: var(--st-ink);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--sojo-mob-gut) 40px;
    animation: sojo-mob-fade .16s ease;
}

.sojo-mob-search[hidden] { display: none; }

@keyframes sojo-mob-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.sojo-mob-search-head {
    position: relative;
    display: flex;
    align-items: center;
    padding: 14px 0 10px;
}

.sojo-mob-back {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: var(--st-bg-soft);
    color: var(--st-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.sojo-mob-back:hover { background: var(--st-rule); }

.sojo-mob-search-title {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    font-family: var(--st-font-sans);
    font-size: 17px;
    font-weight: 700;
    pointer-events: none;
}

.sojo-mob-search-form {
    position: relative;
    margin: 6px 0 22px;
}

.sojo-mob-search-ic {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--st-muted);
    line-height: 0;
    pointer-events: none;
}

.sojo-mob-search-input {
    width: 100%;
    font-family: var(--st-font-sans);
    font-size: 16px;
    padding: 15px 18px 15px 50px;
    border: 1px solid var(--st-rule);
    border-radius: 999px;
    background: var(--st-bg-soft);
    color: var(--st-ink);
}

.sojo-mob-search-input::placeholder { color: var(--st-muted); }
.sojo-mob-search-input:focus {
    outline: 2px solid var(--st-ink);
    outline-offset: 1px;
    background: var(--st-paper);
}

.sojo-mob-h {
    margin: 0 0 14px;
    font-family: var(--st-font-sans);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sojo-mob-h--rule {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 2px solid var(--st-rule-strong);
}

/* Son haberler — yatay kart şeridi */
.sojo-mob-cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-left: var(--sojo-mob-gut);
    margin: 0 calc(-1 * var(--sojo-mob-gut));
    padding: 0 var(--sojo-mob-gut) 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sojo-mob-cards::-webkit-scrollbar { display: none; }

.sojo-mob-card {
    scroll-snap-align: start;
    text-decoration: none;
    color: var(--st-ink);
    display: block;
}

.sojo-mob-card-img {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--st-bg-soft);
    margin-bottom: 10px;
}

.sojo-mob-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sojo-mob-card-cat {
    display: block;
    font-family: var(--st-font-sans);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--st-name);
    margin-bottom: 4px;
}

.sojo-mob-card-title {
    display: block;
    font-family: var(--st-font-display);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.01em;
}

.sojo-mob-all {
    margin: 18px 0 0;
    font-family: var(--st-font-sans);
    font-size: 15px;
    font-weight: 700;
}

.sojo-mob-all a {
    color: var(--st-ink);
    text-decoration: none;
    border-bottom: 2px solid var(--st-ink);
    padding-bottom: 2px;
}

/* Bölüm etiketleri */
.sojo-mob-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sojo-mob-chips a {
    display: block;
    padding: 12px 16px;
    background: var(--st-bg-soft);
    border-radius: 4px;
    font-family: var(--st-font-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--st-ink);
    text-decoration: none;
}

.sojo-mob-chips a:hover { background: var(--st-rule); }

/* Canlı sonuçlar */
.sojo-mob-results[hidden] { display: none; }

.sojo-mob-results .sojo-mob-h { margin-top: 24px; }
.sojo-mob-results .sojo-mob-h:first-child { margin-top: 0; }

.sojo-mob-hit {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 13px 0;
    border-bottom: 1px solid var(--st-rule);
    text-decoration: none;
    color: var(--st-ink);
}

.sojo-mob-hit img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    flex: 0 0 auto;
    background: var(--st-bg-soft);
    display: block;
}

.sojo-mob-hit-cat {
    display: block;
    font-family: var(--st-font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--st-name);
    margin-bottom: 3px;
}

.sojo-mob-hit-title {
    display: block;
    font-family: var(--st-font-display);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
}

.sojo-mob-note {
    margin: 18px 0;
    font-family: var(--st-font-sans);
    font-size: 14px;
    color: var(--st-muted);
}

/* =========================================================
   3. YAN MENÜ (drawer)
   Temanın koyu paneli korunur; renkler --st-topbar-fg üzerinden
   türetilir, açık/koyu modda ikisi de doğru çalışır.
   ========================================================= */
@media (max-width: 900px) {
    .st-drawer { width: min(94vw, 420px); padding: 16px 20px 40px; }

    .st-drawer-head {
        align-items: center;
        border-bottom: 0;
        padding-bottom: 16px;
        margin-bottom: 6px;
    }

    .st-drawer-title {
        font-size: inherit;
        letter-spacing: normal;
        text-transform: none;
        opacity: 1;
    }

    .st-drawer-logo {
        font-family: var(--st-font-masthead);
        font-size: 30px;
        line-height: 1;
        letter-spacing: -0.02em;
        color: var(--st-topbar-fg);
        text-decoration: none;
    }

    /* Özel logo görseli: hangi yapıda gelirse gelsin sınırlı kalsın.
       (the_custom_logo() kendi <a>'sını üretir; eski işaretlemede görsel
       .st-drawer-logo'nun dışına düşebiliyordu.) */
    .st-drawer-logo img,
    .st-drawer-title img,
    .st-drawer-head img {
        max-height: 32px;
        width: auto;
        max-width: 190px;
        height: auto;
        display: block;
    }

    .st-drawer-close {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, .38);
        background: transparent;
        color: var(--st-topbar-fg);
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .st-drawer-search {
        position: relative;
        margin: 0 0 18px;
    }

    .st-drawer-search-ic {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: currentColor;
        opacity: .6;
        line-height: 0;
        pointer-events: none;
    }

    .st-drawer-search input {
        width: 100%;
        font-family: var(--st-font-sans);
        font-size: 15px;
        padding: 14px 16px 14px 44px;
        border: 1px solid rgba(255, 255, 255, .38);
        border-radius: 4px;
        background: rgba(255, 255, 255, .06);
        color: var(--st-topbar-fg);
    }

    .st-drawer-search input::placeholder { color: currentColor; opacity: .6; }
    .st-drawer-search input:focus {
        outline: 2px solid currentColor;
        outline-offset: 1px;
        background: rgba(255, 255, 255, .12);
    }

    .st-drawer-quick {
        display: flex;
        gap: 14px;
        margin: 0 0 20px;
    }

    .st-drawer-quick-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-family: var(--st-font-sans);
        font-size: 15px;
        font-weight: 700;
        color: var(--st-topbar-fg);
        text-decoration: none;
    }

    .st-drawer-quick-ic {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, .32);
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
        flex: 0 0 auto;
    }

    .st-drawer-quick-count {
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 999px;
        background: var(--st-name);
        color: #fff;
        font-size: 11.5px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .st-drawer-quick-count[hidden] { display: none; }

    .st-drawer-nav {
        border-top: 2px solid currentColor;
        padding-top: 4px;
    }

    .st-drawer-menu,
    .st-drawer-menu .sub-menu {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .st-drawer-menu > li { position: relative; }

    .st-drawer-menu > li > a {
        display: block;
        padding: 16px 46px 16px 0;
        font-family: var(--st-font-sans);
        font-size: 17px;
        font-weight: 700;
        color: var(--st-topbar-fg);
        text-decoration: none;
        opacity: 1;
    }

    /* Alt menü açma düğmesi (JS ile eklenir) */
    .st-drawer-sub-toggle {
        position: absolute;
        top: 4px;
        right: -8px;
        width: 46px;
        height: 46px;
        border: 0;
        background: transparent;
        color: var(--st-topbar-fg);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .st-drawer-sub-toggle svg { transition: transform .18s ease; }
    .st-drawer-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

    .st-drawer-menu .sub-menu {
        display: none;
        padding: 0 0 14px 2px;
    }

    .st-drawer-menu li.is-open > .sub-menu { display: block; }

    .st-drawer-menu .sub-menu a {
        display: block;
        padding: 9px 0;
        font-family: var(--st-font-sans);
        font-size: 15px;
        font-weight: 500;
        color: var(--st-topbar-fg);
        opacity: .72;
        text-decoration: none;
    }

    .st-drawer-menu .sub-menu a:hover { opacity: 1; }
}

/* =========================================================
   4. TEKİL YAZI — mobil düzen
   ========================================================= */
@media (max-width: 700px) {
    .single .st-article-head { padding-top: 4px; }

    .st-article-head-top {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 0;
        border-bottom: 0;          /* çift çizgi olmasın; tek ayraç -foot'ta */
    }

    .st-article-head-body { min-width: 0; flex: 1 1 auto; }

    .st-article-head-kicker {
        margin: 0 0 10px;
        font-family: var(--st-font-sans);
        font-size: 13.5px;
        font-weight: 700;
        letter-spacing: 0;
        text-transform: none;
    }

    .st-article-head-kicker a { color: var(--st-name); text-decoration: none; }

    .st-article-head-title {
        font-family: var(--st-font-display);
        font-size: clamp(1.85rem, 8.5vw, 2.5rem);
        font-weight: 800;
        line-height: 1.08;
        letter-spacing: -0.022em;
        margin: 0 0 14px;
    }

    /* Sağdaki yazar portresi mobilde de görünsün (temada gizliydi) */
    .st-article-head-avatars {
        display: flex !important;
        flex: 0 0 auto;
        gap: 6px;
        padding-top: 4px;
    }

    .st-article-head-avatars.is-multi { display: none !important; }

    /* Yazar portresi — %30 küçültüldü (tema 132px !important veriyor → 92px).
       !important zorunlu: style.css:1195 aynı ölçüyü !important ile sabitliyor. */
    .st-article-head-avatars img,
    .st-article-head-avatar img,
    .st-article-head-avatars .st-avatar-hero {
        width: 92px !important;
        height: 92px !important;
        border-radius: 50% !important;
        object-fit: cover;
        display: block;
    }

    .st-article-head-author {
        font-family: var(--st-font-display);
        font-style: italic;
        font-size: 1.12rem;
        font-weight: 700;
        margin: 0;
    }

    .st-article-head-author a { color: var(--st-ink); text-decoration: none; }

    .st-article-head-avatar-inline { display: none !important; }

    /* Künye alt bloğunun kendi çizgisi yok: tarih araç çubuğuna
       taşındığı için özet yokken blok boşalıyor ve araç çubuğunun
       çizgisiyle üst üste iki çizgi çıkıyordu. Çizgi artık özetin
       kendisinde — özet yoksa çizgi de yok. */
    .st-article-head-foot {
        margin-top: 0;
        padding: 0;
        border-top: 0;
        border-bottom: 0;
    }

    .st-article-head-dek {
        font-family: var(--st-font-body);
        font-size: 1.12rem;
        line-height: 1.5;
        color: var(--st-ink);
        margin: 16px 0 0;
        padding-top: 18px;
        border-top: 1px solid var(--st-rule);
    }

    .st-article-head-time {
        font-family: var(--st-font-mono);
        font-size: 12px;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--st-muted);
        margin: 0;
    }

    /* Araç çubuğu — tarih + yuvarlak düğmeler TEK satırda.
       Başlıktaki tarih mobilde gizlenir; bu satırdaki kopya görünür,
       böylece sadece düğmeler için fazladan satır açılmaz. */
    .st-article-head-time { display: none; }

    .st-article-tools {
        border-top: 1px solid var(--st-rule);
        border-bottom: 1px solid var(--st-rule);
        padding: 11px 0;
        margin: 16px 0 22px;
    }

    .st-article-tools .st-tools-row {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        flex-wrap: nowrap;
    }

    /* Dar ekranda okuma süresi tarihi kırpıyordu; yalnızca tarih kalsın. */
    .st-article-tools .st-tools-date .st-dot,
    .st-article-tools .st-tools-date-rt { display: none; }

    .st-article-tools .st-tools-date {
        display: block;
        flex: 0 1 auto;
        min-width: 0;
        margin: 0;
        font-family: var(--st-font-mono);
        font-size: 11.5px;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--st-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .st-article-tools .st-tools-share {
        display: flex;
        gap: 10px;
        flex-wrap: nowrap;
        margin-left: auto;
    }

    .st-article-tools .st-tool-btn,
    .st-article-tools .st-fs-btn {
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
        border-radius: 50%;
        border: 1px solid var(--st-rule);
        background: transparent;
        color: var(--st-ink);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .st-article-tools .st-tools-size {
        display: flex;
        gap: 10px;
        align-items: center;
        flex: 0 0 auto;
    }

    /* Kaydırıcı ve sayı mobilde fazlalık */
    .st-article-tools .st-fs-range,
    .st-article-tools .st-fs-val { display: none; }

    .st-article-tools .st-fs-dec { font-size: 13px; font-weight: 700; }
    .st-article-tools .st-fs-inc { font-size: 19px; font-weight: 700; }

    .st-tool-source--full { margin-top: 14px; }
}

/* =========================================================
   5. GENEL MOBİL RÖTUŞLAR
   ========================================================= */
@media (max-width: 900px) {
    /* Arama katmanı açıkken arka plan kaymasın */
    body.sojo-mob-search-open { overflow: hidden; }
}

/* Mobilde başlıktaki açılır arama formu yerine tam ekran katman kullanılır */
@media (max-width: 900px) {
    body.sojo-has-mobsearch .st-nav-search-form { display: none !important; }
}

/* =========================================================
   6. PAYLAŞ — mobilde tek düğme
   WhatsApp / Facebook / X / Yazdır dar ekrana sığmıyordu.
   Tek "Paylaş" düğmesi sunucuda basılıyor; gizleme/gösterme
   <html class="sojo-js"> ile ilk boyamada yapılıyor, böylece
   önce 7 ikon görünüp sonra 4'e düşme titremesi olmuyor.
   JS kapalıysa sınıf eklenmez ve özgün tuşlar kalır.
   ========================================================= */

/* Tek düğme yalnızca dar ekranda ve JS varken görünür. */
.sojo-share-wrap { display: none; }

/* Araç çubuğundaki tarih kopyası masaüstünde gizli
   (masaüstünde tarih başlık künyesinde durur). */
.st-tools-date { display: none; }

@media (max-width: 700px) {
    html.sojo-js .st-tools-share > a.st-tool-btn,
    html.sojo-js .st-tools-share > .st-tool-print { display: none; }

    html.sojo-js .sojo-share-wrap { display: block; }

    /* Eski önbellekli sayfalar: düğmeyi JS üretmişse de çalışsın. */
    .st-tools-share.is-collapsed > a.st-tool-btn,
    .st-tools-share.is-collapsed > .st-tool-print { display: none; }
    .st-tools-share.is-collapsed .sojo-share-wrap { display: block; }

    .sojo-share-wrap { position: relative; }

    .sojo-share-menu {
        position: absolute;
        left: 0;
        top: calc(100% + 10px);
        z-index: 40;
        min-width: 232px;
        padding: 6px;
        background: var(--st-paper);
        border: 1px solid var(--st-rule);
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
    }

    .sojo-share-menu[hidden] { display: none; }

    .sojo-share-menu.is-up {
        top: auto;
        bottom: calc(100% + 10px);
    }

    .sojo-share-item {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 11px 12px;
        border: 0;
        border-radius: 5px;
        background: transparent;
        color: var(--st-ink);
        font-family: var(--st-font-sans);
        font-size: 15px;
        font-weight: 600;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .sojo-share-item:hover { background: var(--st-bg-soft); }
    .sojo-share-item svg { flex: 0 0 auto; }

    /* Araç sırası: tarih · Paylaş · Dinle · T · T */
    .st-article-tools .st-tools-row { row-gap: 0; }
}

/* =========================================================
   MOBİL BAŞLIK — logo solda, hamburgerin yanında
   Tema ≤720px'de sütun düzenine geçiyordu; burada tek satıra
   sabitliyor ve logoyu küçültüyoruz.
   ========================================================= */
@media (max-width: 900px) {
    .st-mainbar-inner {
        flex-direction: row !important;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start !important;
        gap: 10px;
        padding: 10px 14px 11px;
    }

    .st-nav-burger   { order: 1; flex: 0 0 auto; margin: 0; }
    .st-mainbar-logo { order: 2; flex: 0 1 auto; min-width: 0; margin-right: auto; text-align: left; }
    .st-nav-search   { order: 3; flex: 0 0 auto; }
    .st-theme-toggle { order: 4; flex: 0 0 auto; }

    .st-nav-burger svg { width: 22px; height: 22px; }

    .st-mainbar-logo a {
        display: inline-flex;
        align-items: center;
        font-size: 1.42rem !important;
        line-height: 1.05;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .st-mainbar-logo img,
    .st-mainbar-logo .custom-logo {
        max-height: 30px !important;
        width: auto;
        height: auto;
        display: block;
    }
}

/* Çok dar ekranlarda bir tık daha küçük */
@media (max-width: 360px) {
    /* Tarih + 4 düğme tek satıra sığsın diye bir tık daralt. */
    .st-article-tools .st-tools-row,
    .st-article-tools .st-tools-share,
    .st-article-tools .st-tools-size { gap: 8px; }

    .st-article-tools .st-tools-date { font-size: 10px; letter-spacing: .02em; }

    .st-article-tools .st-tool-btn,
    .st-article-tools .st-fs-btn { width: 38px; height: 38px; }

    .st-mainbar-inner { gap: 8px; padding: 9px 12px 10px; }
    .st-mainbar-logo a { font-size: 1.24rem !important; }
    .st-mainbar-logo img,
    .st-mainbar-logo .custom-logo { max-height: 26px !important; }
}

/* =========================================================
   PROGRAMLAR ARŞİVİ — mobilde yana kaydırmalı şerit
   Dikey listede her kart neredeyse tam ekran kaplıyordu.
   Masaüstünde grid düzeni aynen korunur.
   ========================================================= */
@media (max-width: 700px) {
    .st-program-grid--swipe {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 78%;
        gap: 14px;

        /* Kenardan kenara: kartlar ekran kenarına kadar aksın */
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding: 2px 16px 14px;

        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .st-program-grid--swipe::-webkit-scrollbar { display: none; }

    .st-program-grid--swipe > .st-program-frame {
        scroll-snap-align: start;
        min-width: 0;
        padding: 8px;
    }

    /* Kart yüksekliği makul kalsın */
    .st-program-grid--swipe .st-program-frame-image { aspect-ratio: 4 / 3; }
    .st-program-grid--swipe .st-program-frame-image img { padding: 12px; }

    .st-program-grid--swipe .st-program-frame-body {
        padding: 16px 14px 18px;
        gap: 8px;
    }

    .st-program-grid--swipe .st-program-frame-title { font-size: 1.22rem; }

    .st-program-grid--swipe .st-program-frame-dek {
        font-size: .94rem;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Kaydırma ipucu */
    .st-program-grid--swipe + .st-pagination { margin-top: 6px; }
}

/* =========================================================
   SON BASKI — yüzen "Teleks" düğmesi mobilde gizli
   Alt menünün ve yazının üstüne biniyordu; komut arayüzü
   zaten klavye (T) ile masaüstünde kullanılıyor.
   ========================================================= */
@media (max-width: 900px) {
    .nltr-sonbaski .nltr-teleks-dugme { display: none !important; }
}

/* =========================================================
   ARŞİV BAŞLIĞI — mobilde çift iç boşluk düzeltmesi
   .st-container zaten 16px veriyor; .st-archive-head bir 16px
   daha ekleyince başlık kendi alt çizgisinden içeride kalıyordu.
   ========================================================= */
.st-container > .st-archive-head,
.st-container > .st-archive-list {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 700px) {
    .st-container > .st-archive-head {
        padding-bottom: 12px;
        margin-bottom: 22px;
    }
}
