
/* =========================================
   0. DEFINICJE KOLORÓW (Klucz do działania)
   ========================================= */
:root {
    --kolor-nav: #4a5d23;  /* Ciemna zieleń */
    --kolor-top: #8b966c;  /* Oliwkowy */
    --akcent: #2e3d23;     /* Głęboka zieleń */
    --tlo-jasne: #f9f9f5;
}

/* =========================================
   1. FUNDAMENT I UKŁAD STRONY
   ========================================= */
body { 
    background-color: #f4f6f0; 
    padding-top: 150px; /* Zmniejszyłem, by lepiej widzieć efekty, dostosuj wg potrzeb */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

.main-content { 
    max-width: 1000px; 
    margin: 20px auto; 
    padding: 25px; 
    background: white; 
    border-radius: 8px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
}

/* =========================================
   2. NAGŁÓWEK ARCHIWUM
   ========================================= */
.species-header { 
    border-bottom: 3px solid var(--kolor-top); 
    margin-bottom: 25px; 
    padding-bottom: 15px; 
}

.species-header h1 { 
    color: var(--akcent); 
    font-size: 2.2rem; 
    font-style: italic; 
    line-height: 1.2;
    margin: 0;
}

.species-header h1 small { 
    font-style: normal; 
    font-size: 1.1rem; 
    color: #7f8c8d; 
    margin-left: 10px;
    font-weight: 400;
}

.polish-name { 
    font-size: 1.4rem; 
    color: var(--kolor-nav); 
    font-weight: 600;
    margin-top: 8px;
}

/* =========================================
   3. NOWE STYLE AKORDEONU (LATA)
   ========================================= */
.rok-accordion {
    margin-bottom: 15px;
    border: 1px solid #eef0e8;
    border-radius: 8px;
    overflow: hidden;
}

.rok-header {
    background-color: var(--tlo-jasne); 
    color: var(--kolor-nav);
    padding: 15px 20px;
    cursor: pointer; 
    font-weight: 700;
    font-size: 1.1rem;
    list-style: none; /* Ukrywa strzałkę w Chrome */
    border-left: 5px solid var(--kolor-nav);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.rok-header::-webkit-details-marker { display: none; } /* Ukrywa strzałkę w Safari */

.rok-header:hover {
    background-color: #f0f2eb;
    color: var(--akcent);
}

.rok-content {
    padding: 20px;
    background: white;
}

/* =========================================
   4. STYL WPISÓW I LINKÓW
   ========================================= */
.cechabox {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cechabox:last-child { border-bottom: none; }

.cecha { 
    font-weight: bold; 
    color: var(--kolor-top); 
    font-size: 0.9rem;
}

.cechaopis a {
    color: var(--kolor-nav);
    text-decoration: none;
    font-weight: 600;
    font-style: italic;
    padding: 1px 4px;
    border-bottom: 1px dashed var(--kolor-top);
    transition: all 0.2s ease;
}

.cechaopis a:hover {
    background: var(--kolor-nav);
    color: white;
    border-radius: 4px;
    border-bottom-color: transparent;
}

/* =========================================
   5. RESPONSYWNOŚĆ
   ========================================= */
@media (max-width: 768px) {
    .main-content { margin: 10px; padding: 15px; }
    .cechabox { grid-template-columns: 1fr; gap: 5px; }
    .species-header h1 { font-size: 1.8rem; }
}
