/* ==========================================================================
   Yönder Portalı — dernek.css
   Tasarım sistemi: renk/tip token'ları, uygulama kabuğu (kenar çubuğu +
   üst çubuk), ortak bileşenler ve mevcut Tailwind sayfalarıyla uyum katmanı.
   Ayrıntı: docs/TASARIM.md
   ========================================================================== */

/* ---------- 1. Token'lar ---------- */
:root {
    /* Mürekkep: kenar çubuğu ve başlıklar. Logo koyu zemin için çizildi. */
    --ink:          #15252a;
    --ink-2:        #1f3439;
    --ink-line:     rgba(255,255,255,.08);
    --ink-text:     #c9d3d1;
    --ink-muted:    #8a9a98;

    /* Pirinç: tek vurgu rengi (logo altın tonunun koyulaştırılmışı, beyazda AA). */
    --brass:        #9a5f0c;
    --brass-600:    #b5741a;
    --brass-300:    #e2b768;
    --brass-soft:   rgba(181,116,26,.12);
    --brass-line:   rgba(181,116,26,.35);

    /* Zemin ve yüzeyler: soğuk adaçayı gri — krem değil. */
    --paper:        #f3f5f3;
    --surface:      #ffffff;
    --line:         #dfe4e1;
    --line-strong:  #c8d0cc;

    /* Metin */
    --text:         #1b2528;
    --muted:        #5b6a6c;
    --faint:        #8b9798;

    /* Durum renkleri */
    --moss:         #2e6b4b;   /* hak kazandı / başarılı */
    --moss-soft:    #e3efe7;
    --rust:         #a8391f;   /* hata / silme */
    --rust-soft:    #f8e6e1;
    --ochre-soft:   #fbf0d9;   /* uyarı */

    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 14px;

    --shadow-1: 0 1px 2px rgba(21,37,42,.06);
    --shadow-2: 0 8px 28px rgba(21,37,42,.12);

    --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --sidebar-w: 268px;
    --topbar-h:  64px;

    /* Eski sayfalarla uyumluluk (154+ yerde kullanılıyor — silmeyin) */
    --dernek-accent:      var(--brass);
    --dernek-accent-soft: var(--brass-soft);
    --dernek-border:      var(--line);
    --dernek-text-muted:  var(--muted);
}

/* ---------- 2. Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.app {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--paper);
    font-feature-settings: "tnum" 1, "cv11" 1;   /* tablo rakamları hizalı */
    -webkit-font-smoothing: antialiased;
}

:focus-visible {
    outline: 2px solid var(--brass-600);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 3. Uygulama kabuğu ---------- */
.shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    min-height: 100vh;
}

/* 3a. Kenar çubuğu */
.sidebar {
    position: sticky; top: 0;
    height: 100vh;
    display: flex; flex-direction: column;
    background: var(--ink);
    color: var(--ink-text);
    z-index: 40;
}

.sidebar__brand {
    height: var(--topbar-h);
    display: flex; align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--ink-line);
    flex-shrink: 0;
}
.sidebar__brand img { height: 38px; width: auto; display: block; }

.sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--ink-2) transparent;
}

.nav-group, .nav-group + .nav-group { margin-top: 18px; }

.nav-group__title {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 10px;
    font-size: 12px; font-weight: 600;
    color: var(--ink-muted);
}
.nav-group__title i { width: 16px; text-align: center; font-size: 12px; }

.nav-list { list-style: none; margin: 2px 0 0; padding: 0; }

.nav-link {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px 8px 36px;
    border-radius: var(--radius-sm);
    color: var(--ink-text);
    font-size: 13.5px;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.nav-link:hover { background: var(--ink-2); color: #fff; }

.nav-link.is-active {
    background: var(--ink-2);
    color: #fff;
    font-weight: 600;
}
/* Etkin sayfa: pirinç çentik — kenar çubuğundaki tek renk vurgusu */
.nav-link.is-active::before {
    content: "";
    position: absolute; left: 16px; top: 50%;
    width: 8px; height: 8px; margin-top: -4px;
    border-radius: 2px;
    background: var(--brass-300);
    transform: rotate(45deg);
}

.nav-link--home { padding-left: 10px; font-weight: 500; }
.nav-link--home i { width: 16px; text-align: center; }
.nav-link--home.is-active::before { display: none; }
.nav-link--home.is-active i { color: var(--brass-300); }

.sidebar__user {
    flex-shrink: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--ink-line);
}
.sidebar__user-name { color: #fff; font-weight: 600; font-size: 13px; line-height: 1.3; }
.sidebar__user-meta { color: var(--ink-muted); font-size: 12px; line-height: 1.3; }

.avatar {
    flex-shrink: 0;
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--brass-300);
    color: var(--ink);
    font-weight: 700; font-size: 12px;
    letter-spacing: .02em;
}

/* 3b. Ana alan + üst çubuk */
.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
    position: sticky; top: 0; z-index: 30;
    height: var(--topbar-h);
    display: flex; align-items: center; gap: 14px;
    padding: 0 28px;
    background: rgba(243,245,243,.9);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--line);
}

.topbar__menu {
    display: none;
    width: 38px; height: 38px;
    align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text);
    cursor: pointer;
}

.crumbs { min-width: 0; flex: 1; }
.crumbs__section { font-size: 12px; color: var(--muted); }
.crumbs__title {
    margin: 0;
    font-size: 17px; font-weight: 600; letter-spacing: -.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.topbar__company {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface);
    font-size: 12.5px; color: var(--muted);
    white-space: nowrap;
}
.topbar__company i { color: var(--brass-600); }

.btn-logout {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--muted); font-size: 13px; font-weight: 500;
    text-decoration: none;
}
.btn-logout:hover { background: var(--rust-soft); color: var(--rust); }

.content { padding: 24px 28px 48px; }
.content > .content__inner { max-width: 1480px; margin: 0 auto; }

/* 3c. Mobil: kenar çubuğu çekmeceye döner */
.scrim { display: none; }

@media (max-width: 1023px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .sidebar {
        position: fixed; left: 0; top: 0; bottom: 0;
        width: min(86vw, var(--sidebar-w));
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: var(--shadow-2);
    }
    body.nav-open .sidebar { transform: none; }
    body.nav-open .scrim {
        display: block;
        position: fixed; inset: 0; z-index: 35;
        background: rgba(21,37,42,.45);
    }
    .topbar { padding: 0 16px; }
    .topbar__menu { display: inline-flex; }
    .topbar__company { display: none; }
    .btn-logout span { display: none; }
    .content { padding: 16px 16px 40px; }
}

/* ---------- 4. Bildirimler (flash) ---------- */
.flash-stack { display: grid; gap: 8px; margin-bottom: 16px; }

.flash {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid;
    font-size: 13.5px;
}
.flash i { margin-top: 2px; }
.flash__close {
    margin-left: auto; border: 0; background: none; cursor: pointer;
    color: inherit; opacity: .6; font-size: 14px; padding: 0 2px;
}
.flash__close:hover { opacity: 1; }
.flash--ok    { background: var(--moss-soft);  border-color: #b9d6c4; color: #1f4d35; }
.flash--err   { background: var(--rust-soft);  border-color: #ecc0b4; color: #7d2915; }
.flash--warn  { background: var(--ochre-soft); border-color: #ecd29a; color: #6d4a07; }

/* ---------- 5. Ortak bileşenler (yeni sayfalar için) ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--surface); color: var(--text);
    font: 600 13px/1 var(--font);
    text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--brass-line); background: #fbfaf7; }
.btn--primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--danger { color: var(--rust); }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px; font-weight: 600;
    background: var(--brass-soft); color: var(--brass);
}

/* ---------- 6. Ana sayfa: kıdem cetveli + yardım kataloğu ---------- */
.home { max-width: 1120px; margin: 0 auto; }

.home__intro { display: grid; gap: 6px; margin: 4px 0 26px; }
.home__intro h2 {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 600; letter-spacing: -.02em; line-height: 1.2;
}
.home__intro p { margin: 0; color: var(--muted); max-width: 64ch; }

/* Cetvel: kıdem yılları gerçek bir sıra olduğu için durak durak çizilir. */
.ruler {
    position: relative;
    padding: 24px 24px 20px;
    background: var(--ink);
    border-radius: var(--radius-lg);
    color: var(--ink-text);
    overflow: hidden;
}
.ruler__head {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px;
    margin-bottom: 22px;
}
.ruler__head h3 { margin: 0; color: #fff; font-size: 15px; font-weight: 600; }
.ruler__head span { font-size: 12.5px; color: var(--ink-muted); }

.ruler__track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--stops, 6), minmax(0, 1fr));
    gap: 0;
}
/* Ana çizgi + yıl çentikleri */
.ruler__track::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 33px;
    height: 2px;
    background: linear-gradient(90deg, var(--brass-300), rgba(226,183,104,.25));
}

.stop { position: relative; padding-right: 14px; min-width: 0; }

.stop__year {
    display: flex; align-items: baseline; gap: 4px;
    height: 22px;
    color: #fff;
}
.stop__year b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.stop__year small { font-size: 11.5px; color: var(--ink-muted); }

.stop__tick {
    display: block;
    position: relative; z-index: 1;
    width: 12px; height: 12px;
    margin: 6px 0 14px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--brass-300);
}

.stop__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stop__items a {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 8px 5px 0;
    color: var(--ink-text); text-decoration: none;
    font-size: 13px; line-height: 1.3;
    border-radius: 4px;
}
.stop__items a:hover { color: #fff; }
.stop__items i { width: 14px; text-align: center; color: var(--brass-300); font-size: 12px; flex-shrink: 0; }
.stop__items em { font-style: normal; color: var(--ink-muted); font-size: 11.5px; }

@media (max-width: 860px) {
    .ruler__track { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .ruler__track::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto;
        background: linear-gradient(180deg, var(--brass-300), rgba(226,183,104,.25)); }
    .stop { display: grid; grid-template-columns: 12px 64px 1fr; column-gap: 14px; align-items: start; padding: 0; }
    .stop__tick { grid-column: 1; grid-row: 1; margin: 4px 0 0; }
    .stop__year { grid-column: 2; grid-row: 1; }
    .stop__items { grid-column: 3; grid-row: 1; }
}

/* Katalog */
.catalog__head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    margin: 34px 0 12px;
}
.catalog__head h3 { margin: 0; font-size: 16px; font-weight: 600; }

.filter-tabs { display: inline-flex; padding: 3px; gap: 2px; background: #e7ebe8; border-radius: 8px; }
.filter-tabs button {
    border: 0; background: none; cursor: pointer;
    padding: 6px 12px; border-radius: 6px;
    font: 500 12.5px/1 var(--font); color: var(--muted);
}
.filter-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

.benefit {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    scroll-margin-top: calc(var(--topbar-h) + 16px);
}
.benefit:target { border-color: var(--brass-600); box-shadow: 0 0 0 3px var(--brass-soft); }

.benefit__head { display: flex; gap: 12px; padding: 16px 16px 12px; }
.benefit__icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: var(--brass-soft); color: var(--brass);
}
.benefit__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.benefit__meta { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.benefit__meta strong { color: var(--text); font-weight: 600; }

.amounts { margin: 0 16px; border-top: 1px solid var(--line); }
.amounts div {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13px;
}
.amounts dt { color: var(--muted); }
.amounts dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }

.benefit details { padding: 10px 16px 14px; }
.benefit summary {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 600; color: var(--brass);
}
.benefit summary::-webkit-details-marker { display: none; }
.benefit summary i { font-size: 10px; transition: transform .15s ease; }
.benefit details[open] summary i { transform: rotate(90deg); }
.benefit ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; display: grid; gap: 6px; }

.benefit__foot {
    margin-top: auto;
    display: flex; justify-content: flex-end;
    padding: 0 16px 14px;
}
.benefit__foot a { font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.benefit__foot a:hover { color: var(--brass); }

.rules {
    margin-top: 28px;
    padding: 18px 20px;
    border-left: 3px solid var(--brass-600);
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.rules h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.rules ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; display: grid; gap: 6px; }
.home__note { margin: 14px 0 0; font-size: 12px; color: var(--faint); }

/* ---------- 7. Uyum katmanı: mevcut Tailwind sayfaları ---------- */
/* Tablolar: başlık hücreleri, satır vurgusu ve sayılar tek tipte görünsün */
.content table thead { background: #f6f8f6 !important; }
.content table thead th { color: var(--muted); font-weight: 600; }
.content table tbody tr:hover { background: #f8faf8; }
.content .rounded-xl.border, .content .rounded-2xl.border { border-color: var(--line); }

/* Eski sayfalardaki tablolar mobilde yatay kaydırılır, sayfa taşmaz */
.content .overflow-x-auto { -webkit-overflow-scrolling: touch; }

/* Flowbite/Tailwind modalların kabuğun üstünde kalması */
.content [role="dialog"], .content .fixed.inset-0 { z-index: 60; }

/* ---------- 8. Giriş / şifre sayfaları ---------- */
body.auth {
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    font-family: var(--font);
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

.auth__side {
    position: relative;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 40px 48px;
    background: var(--ink);
    color: var(--ink-text);
    overflow: hidden;
}
.auth__side img { height: 44px; width: auto; align-self: flex-start; }
.auth__lead { max-width: 36ch; }
.auth__lead h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600; letter-spacing: -.02em; line-height: 1.15;
}
.auth__lead p { margin: 0; color: var(--ink-muted); font-size: 14.5px; line-height: 1.6; }

/* Giriş ekranındaki küçük kıdem cetveli — ana sayfadaki cetvelin özeti */
.mini-ruler { display: flex; align-items: flex-end; gap: 0; margin-top: 36px; max-width: 420px; }
.mini-ruler span {
    flex: 1;
    position: relative;
    padding-top: 18px;
    border-top: 2px solid var(--brass-300);
    font-size: 12px; color: var(--ink-muted);
}
.mini-ruler span::before {
    content: ""; position: absolute; left: 0; top: -7px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--ink); border: 2px solid var(--brass-300);
}
.mini-ruler b { display: block; color: #fff; font-size: 18px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.auth__foot { font-size: 12px; color: var(--ink-muted); }

.auth__main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth__form { width: 100%; max-width: 380px; }
.auth__form h1 { margin: 0 0 6px; font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.auth__form > p { margin: 0 0 26px; color: var(--muted); font-size: 14px; }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.field input[type=email], .field input[type=password], .field input[type=text] {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: var(--surface);
    font: 400 14.5px var(--font); color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: none; border-color: var(--brass-600); box-shadow: 0 0 0 3px var(--brass-soft); }

.pw { position: relative; }
.pw input { padding-right: 44px !important; }
.pw button {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border: 0; border-radius: 6px;
    background: none; color: var(--faint); cursor: pointer;
}
.pw button:hover { color: var(--text); background: var(--paper); }

.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; font-size: 13.5px; }
.auth__row label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.auth__row input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--ink); }
.auth__row a { color: var(--brass); font-weight: 600; text-decoration: none; }
.auth__row a:hover { text-decoration: underline; }

.captcha { margin-bottom: 18px; min-height: 78px; }

.btn-block {
    width: 100%;
    padding: 12px 16px;
    border: 0; border-radius: var(--radius-sm);
    background: var(--ink); color: #fff;
    font: 600 14.5px var(--font);
    cursor: pointer;
}
.btn-block:hover { background: var(--ink-2); }

.notice {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 11px 13px; margin-bottom: 18px;
    border-radius: var(--radius-sm); border: 1px solid;
    font-size: 13.5px;
}
.notice--warning { background: var(--ochre-soft); border-color: #ecd29a; color: #6d4a07; }
.notice--danger  { background: var(--rust-soft);  border-color: #ecc0b4; color: #7d2915; }
.notice--success { background: var(--moss-soft);  border-color: #b9d6c4; color: #1f4d35; }

/* Giriş hatası ara ekranı (login.php showLoginError) */
.auth-msg { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-msg .card { max-width: 420px; width: 100%; padding: 28px; }
.auth-msg h1 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.auth-msg p { margin: 0 0 10px; color: var(--muted); }
.auth-msg .bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 16px 0 18px; }
.auth-msg .bar i { display: block; height: 100%; width: 100%; background: var(--brass-600); transition: width 1s linear; }
.auth-msg__icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--rust-soft); color: var(--rust); margin-bottom: 14px;
}

@media (max-width: 900px) {
    body.auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .auth__side { padding: 24px 20px; }
    .auth__lead, .mini-ruler, .auth__foot { display: none; }
    .auth__main { padding: 32px 16px; align-items: flex-start; }
}

/* ═════════════ Menü akordeonu (2026-10-08) ═════════════
   assets/css/dernek.css dosyasının SONUNA ekleyin.
   .nav-group__title mevcut stilini korur; burada yalnızca düğme
   sıfırlaması, ok ve açılıp kapanma eklenir. */

.nav-group__toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    background: none;
    border: 0;
    border-radius: 6px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: color .15s, background-color .15s;
}
.nav-group__toggle:hover,
.nav-group.is-open > .nav-group__toggle {
    color: #fff;
}
.nav-group__toggle:hover {
    background: var(--ink-2);
}
.nav-group__toggle:focus-visible {
    outline: 2px solid var(--brass-600);
    outline-offset: 2px;
}

.nav-group__label {
    flex: 1;
    min-width: 0;
}

.nav-group__chev {
    font-size: .7em;
    opacity: .7;
    transition: transform .2s ease;
}
.nav-group.is-open .nav-group__chev {
    transform: rotate(180deg);
    color: var(--brass-300);
    opacity: 1;
}

/* Yükseklik animasyonu: 0fr → 1fr (sabit max-height gerekmez) */
.nav-group__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .2s ease;
}
.nav-group__panel > .nav-list {
    min-height: 0;
    overflow: hidden;
    visibility: hidden;                 /* kapalıyken Tab ile odaklanmasın */
    transition: visibility 0s linear .2s;
}
.nav-group.is-open > .nav-group__panel {
    grid-template-rows: 1fr;
}
.nav-group.is-open > .nav-group__panel > .nav-list {
    visibility: visible;
    transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
    .nav-group__panel,
    .nav-group__panel > .nav-list,
    .nav-group__chev { transition: none; }
}
