/*
 * Evraklık — Satır (çekmece) menü düzeni
 * Günlük/Yıllık Planlar sayfasındaki satır tasarımını tüm evrak menülerine uygular:
 * zümre, veli, kulüp, rehberlik, maarif, sosyal etkinlikler, okul temelli planlama, diğer evraklar.
 * Yalnız CSS'tir; sayfaların JS akışına dokunmaz. Seçiciler :root:not(#evr-rows) ile
 * şablon içi <style> kurallarının (karanlık tema dahil) önüne geçer. JS filtrelerinin yazdığı
 * inline "display:none" her zaman korunur.
 */

/* ---------- 1) Kapsayıcılar: ızgara -> tek sütun satır listesi ---------- */
:root:not(#evr-rows) body .terms-grid,
:root:not(#evr-rows) body .branches-grid,
:root:not(#evr-rows) body .kademe-cards-grid,
:root:not(#evr-rows) body .clubs-list-grid,
:root:not(#evr-rows) body .branch-grid-container,
:root:not(#evr-rows) body .term-tab-container,
:root:not(#evr-rows) body .cards-grid-layout,
:root:not(#evr-rows) body .type-pills-row,
:root:not(#evr-rows) body .type-filter-pills,
:root:not(#evr-rows) body .kademe-grid,
:root:not(#evr-rows) body .activity-grid,
:root:not(#evr-rows) body .branch-grid,
:root:not(#evr-rows) body .docs-grid,
:root:not(#evr-rows) body .diger-list-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: none;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    border: 1.5px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(20,20,43,0.07), 0 1px 3px rgba(0, 0, 0, 0.03);
    grid-template-columns: none;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* ---------- 2) Satırlar (ortak) ---------- */
:root:not(#evr-rows) body .terms-grid > *,
:root:not(#evr-rows) body .branches-grid > *,
:root:not(#evr-rows) body .kademe-cards-grid > *,
:root:not(#evr-rows) body .clubs-list-grid > *,
:root:not(#evr-rows) body .branch-grid-container > *,
:root:not(#evr-rows) body .term-tab-container > *,
:root:not(#evr-rows) body .cards-grid-layout > *,
:root:not(#evr-rows) body .type-pills-row > *,
:root:not(#evr-rows) body .type-filter-pills > *,
:root:not(#evr-rows) body .kademe-grid > *,
:root:not(#evr-rows) body .activity-grid > *,
:root:not(#evr-rows) body .branch-grid > *,
:root:not(#evr-rows) body .docs-grid > *,
:root:not(#evr-rows) body .diger-list-grid > * {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    min-height: 62px;
    margin: 0;
    padding: 13px 18px 13px 28px;
    border: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: background 0.18s ease, padding-left 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
:root:not(#evr-rows) body .terms-grid > :last-child,
:root:not(#evr-rows) body .branches-grid > :last-child,
:root:not(#evr-rows) body .kademe-cards-grid > :last-child,
:root:not(#evr-rows) body .clubs-list-grid > :last-child,
:root:not(#evr-rows) body .branch-grid-container > :last-child,
:root:not(#evr-rows) body .term-tab-container > :last-child,
:root:not(#evr-rows) body .cards-grid-layout > :last-child,
:root:not(#evr-rows) body .type-pills-row > :last-child,
:root:not(#evr-rows) body .type-filter-pills > :last-child,
:root:not(#evr-rows) body .kademe-grid > :last-child,
:root:not(#evr-rows) body .activity-grid > :last-child,
:root:not(#evr-rows) body .branch-grid > :last-child,
:root:not(#evr-rows) body .docs-grid > :last-child,
:root:not(#evr-rows) body .diger-list-grid > :last-child {
    border-bottom: 0;
}

/* Sol mor şerit */
:root:not(#evr-rows) body .terms-grid > *::before,
:root:not(#evr-rows) body .branches-grid > *::before,
:root:not(#evr-rows) body .kademe-cards-grid > *::before,
:root:not(#evr-rows) body .clubs-list-grid > *::before,
:root:not(#evr-rows) body .branch-grid-container > *::before,
:root:not(#evr-rows) body .term-tab-container > *::before,
:root:not(#evr-rows) body .cards-grid-layout > *::before,
:root:not(#evr-rows) body .type-pills-row > *::before,
:root:not(#evr-rows) body .type-filter-pills > *::before,
:root:not(#evr-rows) body .kademe-grid > *::before,
:root:not(#evr-rows) body .activity-grid > *::before,
:root:not(#evr-rows) body .branch-grid > *::before,
:root:not(#evr-rows) body .docs-grid > *::before,
:root:not(#evr-rows) body .diger-list-grid > *::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    width: 4px;
    height: 26px;
    margin: 0;
    border-radius: 4px;
    transform: translateY(-50%);
    background: var(--ev-accent,#6B3DED);
    opacity: 0.85;
}

/* Hover / seçili */
:root:not(#evr-rows) body .terms-grid > :hover,
:root:not(#evr-rows) body .branches-grid > :hover,
:root:not(#evr-rows) body .kademe-cards-grid > :hover,
:root:not(#evr-rows) body .clubs-list-grid > :hover,
:root:not(#evr-rows) body .branch-grid-container > :hover,
:root:not(#evr-rows) body .term-tab-container > :hover,
:root:not(#evr-rows) body .cards-grid-layout > :hover,
:root:not(#evr-rows) body .type-pills-row > :hover,
:root:not(#evr-rows) body .type-filter-pills > :hover,
:root:not(#evr-rows) body .kademe-grid > :hover,
:root:not(#evr-rows) body .activity-grid > :hover,
:root:not(#evr-rows) body .branch-grid > :hover,
:root:not(#evr-rows) body .docs-grid > :hover,
:root:not(#evr-rows) body .diger-list-grid > :hover {
    background: rgba(245, 243, 255, 0.9);
    padding-left: 32px;
    transform: none;
    box-shadow: none;
}
:root:not(#evr-rows) body .terms-grid > .active,
:root:not(#evr-rows) body .branches-grid > .active,
:root:not(#evr-rows) body .kademe-cards-grid > .active,
:root:not(#evr-rows) body .branch-grid-container > .active,
:root:not(#evr-rows) body .term-tab-container > .active,
:root:not(#evr-rows) body .cards-grid-layout > .active,
:root:not(#evr-rows) body .type-pills-row > .active,
:root:not(#evr-rows) body .type-filter-pills > .active,
:root:not(#evr-rows) body .kademe-grid > .active,
:root:not(#evr-rows) body .activity-grid > .active,
:root:not(#evr-rows) body .branch-grid > .active {
    background: rgba(237, 233, 254, 0.95);
    box-shadow: inset 3px 0 0 var(--ev-accent,#6B3DED);
}

/* ---------- 3) Seçim satırları: ikon | başlık+alt yazı | rozet | ok ---------- */
:root:not(#evr-rows) body .terms-grid > *,
:root:not(#evr-rows) body .branches-grid > *,
:root:not(#evr-rows) body .kademe-cards-grid > *,
:root:not(#evr-rows) body .branch-grid-container > *,
:root:not(#evr-rows) body .term-tab-container > *,
:root:not(#evr-rows) body .cards-grid-layout > *,
:root:not(#evr-rows) body .type-pills-row > *,
:root:not(#evr-rows) body .type-filter-pills > *,
:root:not(#evr-rows) body .kademe-grid > *,
:root:not(#evr-rows) body .activity-grid > *,
:root:not(#evr-rows) body .branch-grid > * {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-auto-flow: row dense;
    column-gap: 14px;
    row-gap: 0;
    align-items: center;
    align-content: center;
    justify-items: start;
    padding-right: 62px;
}
/* Varsayılan: tüm içerik orta sütunda alt alta */
:root:not(#evr-rows) body .terms-grid > * > *,
:root:not(#evr-rows) body .branches-grid > * > *,
:root:not(#evr-rows) body .kademe-cards-grid > * > *,
:root:not(#evr-rows) body .branch-grid-container > * > *,
:root:not(#evr-rows) body .term-tab-container > * > *,
:root:not(#evr-rows) body .cards-grid-layout > * > *,
:root:not(#evr-rows) body .type-pills-row > * > *,
:root:not(#evr-rows) body .type-filter-pills > * > *,
:root:not(#evr-rows) body .kademe-grid > * > *,
:root:not(#evr-rows) body .activity-grid > * > *,
:root:not(#evr-rows) body .branch-grid > * > * {
    grid-column: 1;
    margin: 0;
    text-align: left;
    max-width: 100%;
}
/* İkonlu satırlarda metne yer aç */
:root:not(#evr-rows) body .terms-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
:root:not(#evr-rows) body .branches-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
:root:not(#evr-rows) body .kademe-cards-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
:root:not(#evr-rows) body .branch-grid-container > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
:root:not(#evr-rows) body .term-tab-container > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
:root:not(#evr-rows) body .cards-grid-layout > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
:root:not(#evr-rows) body .type-pills-row > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
:root:not(#evr-rows) body .type-filter-pills > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
:root:not(#evr-rows) body .kademe-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
:root:not(#evr-rows) body .activity-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
:root:not(#evr-rows) body .branch-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i) {
    padding-left: 82px;
}
:root:not(#evr-rows) body .terms-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i):hover,
:root:not(#evr-rows) body .branches-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i):hover,
:root:not(#evr-rows) body .kademe-cards-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i):hover,
:root:not(#evr-rows) body .branch-grid-container > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i):hover,
:root:not(#evr-rows) body .term-tab-container > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i):hover,
:root:not(#evr-rows) body .cards-grid-layout > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i):hover,
:root:not(#evr-rows) body .type-pills-row > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i):hover,
:root:not(#evr-rows) body .type-filter-pills > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i):hover,
:root:not(#evr-rows) body .kademe-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i):hover,
:root:not(#evr-rows) body .activity-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i):hover,
:root:not(#evr-rows) body .branch-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i):hover {
    padding-left: 86px;
}
/* Kulüp kademe kartındaki sayaç rozetleri satırda gizlenir (başlık zaten anlatıyor) */
:root:not(#evr-rows) body .kademe-cards-grid .kademe-card-meta {
    display: none !important;
}

/* Başlık/rozet satırlarını aç: içindekiler doğrudan satır öğesi olsun */
:root:not(#evr-rows) body .terms-grid .term-card-header,
:root:not(#evr-rows) body .cards-grid-layout .card-top-row {
    display: contents;
}
/* Sağdaki yuvarlak ok */
:root:not(#evr-rows) body .terms-grid > *::after,
:root:not(#evr-rows) body .branches-grid > *::after,
:root:not(#evr-rows) body .kademe-cards-grid > *::after,
:root:not(#evr-rows) body .branch-grid-container > *::after,
:root:not(#evr-rows) body .term-tab-container > *::after,
:root:not(#evr-rows) body .cards-grid-layout > *::after,
:root:not(#evr-rows) body .type-pills-row > *::after,
:root:not(#evr-rows) body .type-filter-pills > *::after,
:root:not(#evr-rows) body .kademe-grid > *::after,
:root:not(#evr-rows) body .activity-grid > *::after,
:root:not(#evr-rows) body .branch-grid > *::after {
    content: '\203A';
    position: absolute;
    right: 16px;
    left: auto;
    top: 50%;
    margin-top: -16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(238, 225, 255, 0.95) 0%, rgba(216, 180, 254, 0.65) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 2px #fff, 0 4px 12px rgba(20,20,43,0.1);
    color: #581c87;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    opacity: 1;
    transform: none;
    transition: all 0.2s ease;
}
:root:not(#evr-rows) body .terms-grid > :hover::after,
:root:not(#evr-rows) body .branches-grid > :hover::after,
:root:not(#evr-rows) body .kademe-cards-grid > :hover::after,
:root:not(#evr-rows) body .branch-grid-container > :hover::after,
:root:not(#evr-rows) body .term-tab-container > :hover::after,
:root:not(#evr-rows) body .cards-grid-layout > :hover::after,
:root:not(#evr-rows) body .type-pills-row > :hover::after,
:root:not(#evr-rows) body .type-filter-pills > :hover::after,
:root:not(#evr-rows) body .kademe-grid > :hover::after,
:root:not(#evr-rows) body .activity-grid > :hover::after,
:root:not(#evr-rows) body .branch-grid > :hover::after,
:root:not(#evr-rows) body .terms-grid > .active::after,
:root:not(#evr-rows) body .branches-grid > .active::after,
:root:not(#evr-rows) body .branch-grid-container > .active::after,
:root:not(#evr-rows) body .term-tab-container > .active::after,
:root:not(#evr-rows) body .cards-grid-layout > .active::after,
:root:not(#evr-rows) body .type-pills-row > .active::after,
:root:not(#evr-rows) body .type-filter-pills > .active::after,
:root:not(#evr-rows) body .kademe-grid > .active::after,
:root:not(#evr-rows) body .activity-grid > .active::after,
:root:not(#evr-rows) body .branch-grid > .active::after {
    background: linear-gradient(180deg, #d8b4fe 0%, #a855f7 100%);
    color: #ffffff;
    transform: scale(1.08);
}

/* İkonlar: sol sütun */
:root:not(#evr-rows) body .terms-grid .term-icon,
:root:not(#evr-rows) body .branches-grid .b-icon,
:root:not(#evr-rows) body .kademe-cards-grid .kademe-card-icon-wrap,
:root:not(#evr-rows) body .term-tab-container .term-icon,
:root:not(#evr-rows) body .cards-grid-layout .card-icon,
:root:not(#evr-rows) body .type-pills-row > * > i,
:root:not(#evr-rows) body .type-filter-pills > * > i,
:root:not(#evr-rows) body .kademe-grid > * > i,
:root:not(#evr-rows) body .activity-grid > * > i,
:root:not(#evr-rows) body .branch-grid > * > i {
    position: absolute;
    grid-column: auto;
    grid-row: auto;
    left: 28px;
    top: 50%;
    margin: -19px 0 0 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 12px;
    background: rgba(238, 233, 254, 0.75);
    border: 1px solid rgba(192, 132, 252, 0.3);
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: none;
}
:root:not(#evr-rows) body .kademe-cards-grid .kademe-card-icon {
    font-size: 20px;
    margin: 0;
}

/* Başlıklar */
:root:not(#evr-rows) body .terms-grid > * > h3,
:root:not(#evr-rows) body .branches-grid .b-title,
:root:not(#evr-rows) body .kademe-cards-grid .kademe-card-title,
:root:not(#evr-rows) body .branch-grid-container .branch-name,
:root:not(#evr-rows) body .term-tab-container .term-text strong,
:root:not(#evr-rows) body .cards-grid-layout .card-title,
:root:not(#evr-rows) body .type-pills-row .title,
:root:not(#evr-rows) body .type-filter-pills .title,
:root:not(#evr-rows) body .kademe-grid .title,
:root:not(#evr-rows) body .activity-grid .name,
:root:not(#evr-rows) body .branch-grid .name {
    font-size: 15px;
    font-weight: 750;
    line-height: 1.3;
    color: #1e293b;
    margin: 0;
    font-family: inherit;
    letter-spacing: normal;
}
/* Alt yazılar */
:root:not(#evr-rows) body .terms-grid > * > p,
:root:not(#evr-rows) body .branches-grid .b-kademe,
:root:not(#evr-rows) body .kademe-cards-grid .kademe-card-desc,
:root:not(#evr-rows) body .branch-grid-container .branch-badge,
:root:not(#evr-rows) body .term-tab-container .term-text small,
:root:not(#evr-rows) body .type-pills-row .sub,
:root:not(#evr-rows) body .type-filter-pills .sub,
:root:not(#evr-rows) body .kademe-grid .sub,
:root:not(#evr-rows) body .activity-grid .desc,
:root:not(#evr-rows) body .branch-grid .desc {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    color: #64748b;
    margin: 2px 0 0;
    background: none;
    border: 0;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
:root:not(#evr-rows) body .term-tab-container .term-text,
:root:not(#evr-rows) body .activity-grid .activity-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
:root:not(#evr-rows) body .cards-grid-layout .card-subtag {
    margin-top: 4px;
    justify-self: start;
}

/* Sağdaki rozetler: 3. sütun */
:root:not(#evr-rows) body .terms-grid .term-tag,
:root:not(#evr-rows) body .terms-grid .term-status-chip,
:root:not(#evr-rows) body .kademe-cards-grid .kademe-card-badge,
:root:not(#evr-rows) body .cards-grid-layout .card-check {
    grid-column: 2;
    justify-self: end;
    position: static;
    margin: 2px 0;
    white-space: nowrap;
    transform: none;
}
:root:not(#evr-rows) body .kademe-cards-grid .kademe-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    justify-content: flex-start;
}
/* Satırın kendisi tıklanabilir olduğundan kart içi büyük CTA gizlenir */
:root:not(#evr-rows) body .kademe-cards-grid .btn-kademe-action {
    display: none;
}

/* ---------- 4) Hazır yatay satırlar (kulüp listesi, diğer evrak kategorileri) ---------- */
:root:not(#evr-rows) body .clubs-list-grid > *,
:root:not(#evr-rows) body .diger-list-grid > * {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

/* ---------- 5) Evrak satırları: içerik | işlem butonları ---------- */
:root:not(#evr-rows) body .docs-grid > * {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    row-gap: 4px;
    align-items: center;
    cursor: default;
}
:root:not(#evr-rows) body .docs-grid > * > * {
    grid-column: 1;
    margin: 0;
}
:root:not(#evr-rows) body .docs-grid > * > .doc-actions {
    grid-column: 2;
    grid-row: 1 / span 6;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    border: 0;
}
:root:not(#evr-rows) body .docs-grid .doc-title {
    font-size: 15px;
    font-weight: 750;
    color: #1e293b;
    margin: 0;
}
:root:not(#evr-rows) body .docs-grid .doc-desc {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 6) JS filtrelerinin gizlediği öğeler gizli kalır ---------- */
:root:not(#evr-rows) body .terms-grid > [style*="display: none"],
:root:not(#evr-rows) body .branches-grid > [style*="display: none"],
:root:not(#evr-rows) body .kademe-cards-grid > [style*="display: none"],
:root:not(#evr-rows) body .clubs-list-grid > [style*="display: none"],
:root:not(#evr-rows) body .branch-grid-container > [style*="display: none"],
:root:not(#evr-rows) body .term-tab-container > [style*="display: none"],
:root:not(#evr-rows) body .cards-grid-layout > [style*="display: none"],
:root:not(#evr-rows) body .type-pills-row > [style*="display: none"],
:root:not(#evr-rows) body .type-filter-pills > [style*="display: none"],
:root:not(#evr-rows) body .kademe-grid > [style*="display: none"],
:root:not(#evr-rows) body .activity-grid > [style*="display: none"],
:root:not(#evr-rows) body .branch-grid > [style*="display: none"],
:root:not(#evr-rows) body .docs-grid > [style*="display: none"],
:root:not(#evr-rows) body .diger-list-grid > [style*="display: none"],
:root:not(#evr-rows) body .terms-grid > [style*="display:none"],
:root:not(#evr-rows) body .branches-grid > [style*="display:none"],
:root:not(#evr-rows) body .kademe-cards-grid > [style*="display:none"],
:root:not(#evr-rows) body .clubs-list-grid > [style*="display:none"],
:root:not(#evr-rows) body .branch-grid-container > [style*="display:none"],
:root:not(#evr-rows) body .term-tab-container > [style*="display:none"],
:root:not(#evr-rows) body .cards-grid-layout > [style*="display:none"],
:root:not(#evr-rows) body .type-pills-row > [style*="display:none"],
:root:not(#evr-rows) body .type-filter-pills > [style*="display:none"],
:root:not(#evr-rows) body .kademe-grid > [style*="display:none"],
:root:not(#evr-rows) body .activity-grid > [style*="display:none"],
:root:not(#evr-rows) body .branch-grid > [style*="display:none"],
:root:not(#evr-rows) body .docs-grid > [style*="display:none"],
:root:not(#evr-rows) body .diger-list-grid > [style*="display:none"],
:root:not(#evr-rows) body .terms-grid > [hidden],
:root:not(#evr-rows) body .branches-grid > [hidden],
:root:not(#evr-rows) body .clubs-list-grid > [hidden],
:root:not(#evr-rows) body .branch-grid-container > [hidden],
:root:not(#evr-rows) body .cards-grid-layout > [hidden],
:root:not(#evr-rows) body .activity-grid > [hidden],
:root:not(#evr-rows) body .branch-grid > [hidden],
:root:not(#evr-rows) body .docs-grid > [hidden],
:root:not(#evr-rows) body .diger-list-grid > [hidden] {
    display: none !important;
}

/* ---------- 7) Mobil ---------- */
@media (max-width: 600px) {
    :root:not(#evr-rows) body .terms-grid > *,
    :root:not(#evr-rows) body .branches-grid > *,
    :root:not(#evr-rows) body .kademe-cards-grid > *,
    :root:not(#evr-rows) body .clubs-list-grid > *,
    :root:not(#evr-rows) body .branch-grid-container > *,
    :root:not(#evr-rows) body .term-tab-container > *,
    :root:not(#evr-rows) body .cards-grid-layout > *,
    :root:not(#evr-rows) body .type-pills-row > *,
    :root:not(#evr-rows) body .type-filter-pills > *,
    :root:not(#evr-rows) body .kademe-grid > *,
    :root:not(#evr-rows) body .activity-grid > *,
    :root:not(#evr-rows) body .branch-grid > *,
    :root:not(#evr-rows) body .docs-grid > *,
    :root:not(#evr-rows) body .diger-list-grid > * {
        padding: 12px 12px 12px 24px;
        column-gap: 10px;
    }
    :root:not(#evr-rows) body .terms-grid > :hover,
    :root:not(#evr-rows) body .branches-grid > :hover,
    :root:not(#evr-rows) body .kademe-cards-grid > :hover,
    :root:not(#evr-rows) body .clubs-list-grid > :hover,
    :root:not(#evr-rows) body .branch-grid-container > :hover,
    :root:not(#evr-rows) body .term-tab-container > :hover,
    :root:not(#evr-rows) body .cards-grid-layout > :hover,
    :root:not(#evr-rows) body .type-pills-row > :hover,
    :root:not(#evr-rows) body .type-filter-pills > :hover,
    :root:not(#evr-rows) body .kademe-grid > :hover,
    :root:not(#evr-rows) body .activity-grid > :hover,
    :root:not(#evr-rows) body .branch-grid > :hover,
    :root:not(#evr-rows) body .docs-grid > :hover,
    :root:not(#evr-rows) body .diger-list-grid > :hover {
        padding-left: 24px;
    }
    :root:not(#evr-rows) body .terms-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
    :root:not(#evr-rows) body .branches-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
    :root:not(#evr-rows) body .kademe-cards-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
    :root:not(#evr-rows) body .branch-grid-container > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
    :root:not(#evr-rows) body .term-tab-container > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
    :root:not(#evr-rows) body .cards-grid-layout > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
    :root:not(#evr-rows) body .type-pills-row > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
    :root:not(#evr-rows) body .type-filter-pills > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
    :root:not(#evr-rows) body .kademe-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
    :root:not(#evr-rows) body .activity-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i),
    :root:not(#evr-rows) body .branch-grid > *:has(.term-icon, .b-icon, .kademe-card-icon-wrap, .card-icon, > i) {
        padding-left: 72px;
        padding-right: 54px;
    }
    :root:not(#evr-rows) body .terms-grid .term-status-chip,
    :root:not(#evr-rows) body .kademe-cards-grid .kademe-card-meta {
        display: none;
    }
    :root:not(#evr-rows) body .docs-grid > * {
        grid-template-columns: minmax(0, 1fr);
    }
    :root:not(#evr-rows) body .docs-grid > * > .doc-actions {
        grid-column: 1;
        grid-row: auto;
        justify-content: flex-start;
        margin-top: 6px;
    }
    :root:not(#evr-rows) body .clubs-list-grid > *,
    :root:not(#evr-rows) body .diger-list-grid > * {
        flex-wrap: wrap;
    }
}

/* ---------- 8) Karanlık tema ---------- */
:root.dark-theme:not(#evr-rows) body .terms-grid,
:root.dark-theme:not(#evr-rows) body .branches-grid,
:root.dark-theme:not(#evr-rows) body .kademe-cards-grid,
:root.dark-theme:not(#evr-rows) body .clubs-list-grid,
:root.dark-theme:not(#evr-rows) body .branch-grid-container,
:root.dark-theme:not(#evr-rows) body .term-tab-container,
:root.dark-theme:not(#evr-rows) body .cards-grid-layout,
:root.dark-theme:not(#evr-rows) body .type-pills-row,
:root.dark-theme:not(#evr-rows) body .type-filter-pills,
:root.dark-theme:not(#evr-rows) body .kademe-grid,
:root.dark-theme:not(#evr-rows) body .activity-grid,
:root.dark-theme:not(#evr-rows) body .branch-grid,
:root.dark-theme:not(#evr-rows) body .docs-grid,
:root.dark-theme:not(#evr-rows) body .diger-list-grid {
    background: rgba(30, 27, 46, 0.72);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
:root.dark-theme:not(#evr-rows) body .terms-grid > *,
:root.dark-theme:not(#evr-rows) body .branches-grid > *,
:root.dark-theme:not(#evr-rows) body .kademe-cards-grid > *,
:root.dark-theme:not(#evr-rows) body .clubs-list-grid > *,
:root.dark-theme:not(#evr-rows) body .branch-grid-container > *,
:root.dark-theme:not(#evr-rows) body .term-tab-container > *,
:root.dark-theme:not(#evr-rows) body .cards-grid-layout > *,
:root.dark-theme:not(#evr-rows) body .type-pills-row > *,
:root.dark-theme:not(#evr-rows) body .type-filter-pills > *,
:root.dark-theme:not(#evr-rows) body .kademe-grid > *,
:root.dark-theme:not(#evr-rows) body .activity-grid > *,
:root.dark-theme:not(#evr-rows) body .branch-grid > *,
:root.dark-theme:not(#evr-rows) body .docs-grid > *,
:root.dark-theme:not(#evr-rows) body .diger-list-grid > * {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
:root.dark-theme:not(#evr-rows) body .terms-grid > :hover,
:root.dark-theme:not(#evr-rows) body .branches-grid > :hover,
:root.dark-theme:not(#evr-rows) body .kademe-cards-grid > :hover,
:root.dark-theme:not(#evr-rows) body .clubs-list-grid > :hover,
:root.dark-theme:not(#evr-rows) body .branch-grid-container > :hover,
:root.dark-theme:not(#evr-rows) body .term-tab-container > :hover,
:root.dark-theme:not(#evr-rows) body .cards-grid-layout > :hover,
:root.dark-theme:not(#evr-rows) body .type-pills-row > :hover,
:root.dark-theme:not(#evr-rows) body .type-filter-pills > :hover,
:root.dark-theme:not(#evr-rows) body .kademe-grid > :hover,
:root.dark-theme:not(#evr-rows) body .activity-grid > :hover,
:root.dark-theme:not(#evr-rows) body .branch-grid > :hover,
:root.dark-theme:not(#evr-rows) body .docs-grid > :hover,
:root.dark-theme:not(#evr-rows) body .diger-list-grid > :hover {
    background: rgba(107,61,237, 0.12);
}
:root.dark-theme:not(#evr-rows) body .terms-grid > .active,
:root.dark-theme:not(#evr-rows) body .branches-grid > .active,
:root.dark-theme:not(#evr-rows) body .kademe-cards-grid > .active,
:root.dark-theme:not(#evr-rows) body .branch-grid-container > .active,
:root.dark-theme:not(#evr-rows) body .term-tab-container > .active,
:root.dark-theme:not(#evr-rows) body .cards-grid-layout > .active,
:root.dark-theme:not(#evr-rows) body .type-pills-row > .active,
:root.dark-theme:not(#evr-rows) body .type-filter-pills > .active,
:root.dark-theme:not(#evr-rows) body .kademe-grid > .active,
:root.dark-theme:not(#evr-rows) body .activity-grid > .active,
:root.dark-theme:not(#evr-rows) body .branch-grid > .active {
    background: rgba(107,61,237, 0.22);
}
:root.dark-theme:not(#evr-rows) body .terms-grid > * > h3,
:root.dark-theme:not(#evr-rows) body .branches-grid .b-title,
:root.dark-theme:not(#evr-rows) body .kademe-cards-grid .kademe-card-title,
:root.dark-theme:not(#evr-rows) body .branch-grid-container .branch-name,
:root.dark-theme:not(#evr-rows) body .term-tab-container .term-text strong,
:root.dark-theme:not(#evr-rows) body .cards-grid-layout .card-title,
:root.dark-theme:not(#evr-rows) body .type-pills-row .title,
:root.dark-theme:not(#evr-rows) body .type-filter-pills .title,
:root.dark-theme:not(#evr-rows) body .kademe-grid .title,
:root.dark-theme:not(#evr-rows) body .activity-grid .name,
:root.dark-theme:not(#evr-rows) body .branch-grid .name,
:root.dark-theme:not(#evr-rows) body .docs-grid .doc-title {
    color: #f1f5f9;
}
:root.dark-theme:not(#evr-rows) body .terms-grid > * > p,
:root.dark-theme:not(#evr-rows) body .branches-grid .b-kademe,
:root.dark-theme:not(#evr-rows) body .kademe-cards-grid .kademe-card-desc,
:root.dark-theme:not(#evr-rows) body .branch-grid-container .branch-badge,
:root.dark-theme:not(#evr-rows) body .term-tab-container .term-text small,
:root.dark-theme:not(#evr-rows) body .type-pills-row .sub,
:root.dark-theme:not(#evr-rows) body .type-filter-pills .sub,
:root.dark-theme:not(#evr-rows) body .kademe-grid .sub,
:root.dark-theme:not(#evr-rows) body .activity-grid .desc,
:root.dark-theme:not(#evr-rows) body .branch-grid .desc,
:root.dark-theme:not(#evr-rows) body .docs-grid .doc-desc {
    color: #94a3b8;
}
:root.dark-theme:not(#evr-rows) body .terms-grid .term-icon,
:root.dark-theme:not(#evr-rows) body .branches-grid .b-icon,
:root.dark-theme:not(#evr-rows) body .kademe-cards-grid .kademe-card-icon-wrap,
:root.dark-theme:not(#evr-rows) body .term-tab-container .term-icon,
:root.dark-theme:not(#evr-rows) body .cards-grid-layout .card-icon,
:root.dark-theme:not(#evr-rows) body .type-pills-row > * > i,
:root.dark-theme:not(#evr-rows) body .type-filter-pills > * > i,
:root.dark-theme:not(#evr-rows) body .kademe-grid > * > i,
:root.dark-theme:not(#evr-rows) body .activity-grid > * > i,
:root.dark-theme:not(#evr-rows) body .branch-grid > * > i {
    background: rgba(107,61,237, 0.18);
    border-color: rgba(192, 132, 252, 0.25);
}


/* ---------- 9) Tür butonları satırda: emoji + metin tek satır ---------- */
:root:not(#evr-rows) body .type-pills-row > *,
:root:not(#evr-rows) body .type-filter-pills > * {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    white-space: normal;
    justify-content: start;
}
:root.dark-theme:not(#evr-rows) body .type-pills-row > *,
:root.dark-theme:not(#evr-rows) body .type-filter-pills > * {
    color: #f1f5f9;
}

/* ---------- 10) Adım adım akış (step-wizard.js) ---------- */
html.evr-wizard-on .evr-wz-hidden {
    display: none !important;
}
.evr-wz-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px dashed rgba(107,61,237, 0.25);
}
.evr-wz-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid rgba(107,61,237, 0.35);
    background: var(--ev-accent-soft,#F4F1FF);
    color: var(--ev-accent-ink,#5A2FD6);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}
.evr-wz-back:hover {
    background: var(--ev-accent,#6B3DED);
    color: #ffffff;
    border-color: var(--ev-accent,#6B3DED);
}
.evr-wz-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.evr-wz-crumb {
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(192, 132, 252, 0.45);
    background: rgba(245, 243, 255, 0.9);
    color: var(--ev-accent-deep,#4B26B3);
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.evr-wz-crumb + .evr-wz-crumb::before {
    content: '\203A';
    margin: 0 6px 0 -2px;
    color: #a78bfa;
}
.evr-wz-crumb:hover {
    border-color: var(--ev-accent,#6B3DED);
    background: var(--ev-accent-soft-2,#EAE4FE);
}
.evr-wz-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 800;
    color: var(--ev-accent,#6B3DED);
    background: rgba(237, 233, 254, 0.9);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.evr-wz-current {
    outline: 2px solid var(--ev-accent,#6B3DED);
    outline-offset: 2px;
}
html.dark-theme .evr-wz-bar { border-bottom-color: rgba(192, 132, 252, 0.25); }
html.dark-theme .evr-wz-back,
html.dark-theme .evr-wz-crumb,
html.dark-theme .evr-wz-count {
    background: rgba(107,61,237, 0.18);
    color: var(--ev-accent-line,#D8CCFB);
    border-color: rgba(192, 132, 252, 0.35);
}

/* ---------- 11) Odak modu: ilk seçimden sonra yalnız "geri + özet + başlık + liste" ---------- */
html.evr-wz-focus .oe-hero-card-purple,
html.evr-wz-focus .oe-hero-card,
html.evr-wz-focus .maarif-hero-banner,
html.evr-wz-focus .oe-flow-tracker,
html.evr-wz-focus .maarif-flow-tracker,
html.evr-wz-focus .maarif-mode-switcher-bar {
    display: none !important;
}

/* ---------- 12) Mobil: ayrık beyaz kartlar, büyük adım başlığı ---------- */
@media (max-width: 600px) {
    :root:not(#evr-rows) body .terms-grid,
    :root:not(#evr-rows) body .branches-grid,
    :root:not(#evr-rows) body .kademe-cards-grid,
    :root:not(#evr-rows) body .clubs-list-grid,
    :root:not(#evr-rows) body .branch-grid-container,
    :root:not(#evr-rows) body .term-tab-container,
    :root:not(#evr-rows) body .cards-grid-layout,
    :root:not(#evr-rows) body .kademe-grid,
    :root:not(#evr-rows) body .activity-grid,
    :root:not(#evr-rows) body .branch-grid,
    :root:not(#evr-rows) body .docs-grid,
    :root:not(#evr-rows) body .diger-list-grid,
    :root:not(#evr-rows) body .type-pills-row,
    :root:not(#evr-rows) body .type-filter-pills {
        gap: 10px;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }
    :root:not(#evr-rows) body .terms-grid > *,
    :root:not(#evr-rows) body .branches-grid > *,
    :root:not(#evr-rows) body .kademe-cards-grid > *,
    :root:not(#evr-rows) body .clubs-list-grid > *,
    :root:not(#evr-rows) body .branch-grid-container > *,
    :root:not(#evr-rows) body .term-tab-container > *,
    :root:not(#evr-rows) body .cards-grid-layout > *,
    :root:not(#evr-rows) body .kademe-grid > *,
    :root:not(#evr-rows) body .activity-grid > *,
    :root:not(#evr-rows) body .branch-grid > *,
    :root:not(#evr-rows) body .docs-grid > *,
    :root:not(#evr-rows) body .diger-list-grid > *,
    :root:not(#evr-rows) body .type-pills-row > *,
    :root:not(#evr-rows) body .type-filter-pills > * {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
        min-height: 60px;
    }
    :root:not(#evr-rows) body .terms-grid > :last-child,
    :root:not(#evr-rows) body .branches-grid > :last-child,
    :root:not(#evr-rows) body .kademe-cards-grid > :last-child,
    :root:not(#evr-rows) body .clubs-list-grid > :last-child,
    :root:not(#evr-rows) body .branch-grid-container > :last-child,
    :root:not(#evr-rows) body .term-tab-container > :last-child,
    :root:not(#evr-rows) body .cards-grid-layout > :last-child,
    :root:not(#evr-rows) body .kademe-grid > :last-child,
    :root:not(#evr-rows) body .activity-grid > :last-child,
    :root:not(#evr-rows) body .branch-grid > :last-child,
    :root:not(#evr-rows) body .docs-grid > :last-child,
    :root:not(#evr-rows) body .diger-list-grid > :last-child,
    :root:not(#evr-rows) body .type-pills-row > :last-child,
    :root:not(#evr-rows) body .type-filter-pills > :last-child {
        border-bottom: 1px solid #e5e7eb;
    }
    :root:not(#evr-rows) body .terms-grid > .active,
    :root:not(#evr-rows) body .branches-grid > .active,
    :root:not(#evr-rows) body .branch-grid-container > .active,
    :root:not(#evr-rows) body .term-tab-container > .active,
    :root:not(#evr-rows) body .cards-grid-layout > .active,
    :root:not(#evr-rows) body .kademe-grid > .active,
    :root:not(#evr-rows) body .activity-grid > .active,
    :root:not(#evr-rows) body .branch-grid > .active,
    :root:not(#evr-rows) body .type-pills-row > .active,
    :root:not(#evr-rows) body .type-filter-pills > .active {
        border-color: #a78bfa;
        background: var(--ev-accent-soft,#F4F1FF);
        box-shadow: 0 2px 10px rgba(20,20,43,0.1);
    }
    /* Kart içi sol şerit mobilde gizlenir (sade kart) */
    :root:not(#evr-rows) body .terms-grid > *::before,
    :root:not(#evr-rows) body .branches-grid > *::before,
    :root:not(#evr-rows) body .kademe-cards-grid > *::before,
    :root:not(#evr-rows) body .clubs-list-grid > *::before,
    :root:not(#evr-rows) body .branch-grid-container > *::before,
    :root:not(#evr-rows) body .term-tab-container > *::before,
    :root:not(#evr-rows) body .cards-grid-layout > *::before,
    :root:not(#evr-rows) body .kademe-grid > *::before,
    :root:not(#evr-rows) body .activity-grid > *::before,
    :root:not(#evr-rows) body .branch-grid > *::before,
    :root:not(#evr-rows) body .docs-grid > *::before,
    :root:not(#evr-rows) body .diger-list-grid > *::before,
    :root:not(#evr-rows) body .type-pills-row > *::before,
    :root:not(#evr-rows) body .type-filter-pills > *::before {
        display: none;
    }
    :root:not(#evr-rows) body .terms-grid > *,
    :root:not(#evr-rows) body .branches-grid > *,
    :root:not(#evr-rows) body .branch-grid-container > *,
    :root:not(#evr-rows) body .term-tab-container > *,
    :root:not(#evr-rows) body .cards-grid-layout > *,
    :root:not(#evr-rows) body .kademe-grid > *,
    :root:not(#evr-rows) body .activity-grid > *,
    :root:not(#evr-rows) body .branch-grid > *,
    :root:not(#evr-rows) body .docs-grid > *,
    :root:not(#evr-rows) body .type-pills-row > *,
    :root:not(#evr-rows) body .type-filter-pills > *,
    :root:not(#evr-rows) body .terms-grid > :hover,
    :root:not(#evr-rows) body .branches-grid > :hover,
    :root:not(#evr-rows) body .branch-grid-container > :hover,
    :root:not(#evr-rows) body .term-tab-container > :hover,
    :root:not(#evr-rows) body .cards-grid-layout > :hover,
    :root:not(#evr-rows) body .kademe-grid > :hover,
    :root:not(#evr-rows) body .activity-grid > :hover,
    :root:not(#evr-rows) body .branch-grid > :hover,
    :root:not(#evr-rows) body .docs-grid > :hover,
    :root:not(#evr-rows) body .type-pills-row > :hover,
    :root:not(#evr-rows) body .type-filter-pills > :hover {
        padding-left: 18px;
    }
    html.evr-wizard-on .step-title,
    html.evr-wizard-on .oe-step-title {
        font-size: 1.3rem;
        line-height: 1.25;
    }
    html.evr-wizard-on .step-hint {
        display: block;
        width: 100%;
        margin-top: 4px;
    }
}
@media (max-width: 600px) {
    :root.dark-theme:not(#evr-rows) body .terms-grid > *,
    :root.dark-theme:not(#evr-rows) body .branches-grid > *,
    :root.dark-theme:not(#evr-rows) body .kademe-cards-grid > *,
    :root.dark-theme:not(#evr-rows) body .clubs-list-grid > *,
    :root.dark-theme:not(#evr-rows) body .branch-grid-container > *,
    :root.dark-theme:not(#evr-rows) body .term-tab-container > *,
    :root.dark-theme:not(#evr-rows) body .cards-grid-layout > *,
    :root.dark-theme:not(#evr-rows) body .kademe-grid > *,
    :root.dark-theme:not(#evr-rows) body .activity-grid > *,
    :root.dark-theme:not(#evr-rows) body .branch-grid > *,
    :root.dark-theme:not(#evr-rows) body .docs-grid > *,
    :root.dark-theme:not(#evr-rows) body .diger-list-grid > *,
    :root.dark-theme:not(#evr-rows) body .type-pills-row > *,
    :root.dark-theme:not(#evr-rows) body .type-filter-pills > * {
        background: rgba(30, 27, 46, 0.85);
        border-color: rgba(255, 255, 255, 0.08);
    }
}
