.index-header-box {
    width: 90%;
    max-width: 1600px;
    margin: 20px auto;
	margin-top: 0;
	margin-bottom: 30px;
    padding: 15px;
    border-radius: 10px;
    box-sizing: border-box;

    height: 140px;            
    display: flex;
    flex-direction: column;
    justify-content: center;    
	text-align: center;
}

.index-title {
    text-align: center;
	margin-bottom: 10px;
	margin-top: 0;
    font-size: 2.5rem;
    letter-spacing: 1px;
	color: white;	
}

.index-subtitle {
    font-size: 1.5rem;
    color:  white;
	margin-top: 5px;
	margin-bottom: 10px;
	text-align: center;
}

.index-top-box {
    width: 90%;
    max-width: 1600px;
    margin: 20px auto;
    border-radius: 10px;
    box-sizing: border-box;

    font-size: 1.25rem;
    color: #1e3a8a;
    font-weight: 400;

    display: flex;
    flex-wrap: wrap;
    gap: 20px;
	margin-top: 10px;
    padding: 25px;
    background: #edf3f5;
}


.species-tabs {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto 20px;
    padding: 12px;

    background: #B3D6E3;
    border-radius: 10px;
    box-sizing: border-box;

    display: flex;
    gap: 10px;

    font-size: 1.25rem;

    flex-wrap: wrap;
}

.species-tabs button {
    all: unset;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1 1 180px; 
    min-width: 140px;

    padding: 10px 14px;

    background: white;
    color: #1e3a8a;

    font-weight: 500;
    text-align: center;

    border-radius: 10px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.species-tabs button.active {
    background: #1e3a8a;
    color: white;

    pointer-events: none;
}

.species-tabs button:not(.active):hover {
    background: white;
    color: #1e3a8a;

    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

#common {
    line-height: 1.4;
}

.tab-content > div { 
    display: none; 
}

.tab-content > div.active {
    display: block; 
}

.masonry-container {
    column-count: 4;
    column-gap: 1em;

    max-width: 1600px;
    margin: 0 auto;
    text-align: left;
}

.masonry-container .genus-box,
.masonry-container .common-block {
    break-inside: avoid;
    margin-bottom: 1em;
    display: inline-block;
    width: 100%;
}

.masonry-container ul {
    margin: 0.5em 0 0 1em;
    padding: 0;
    list-style: disc;
}

.masonry-container strong {
    display: block;
    margin-bottom: 0.5em;
}

@media (max-width: 1000px) {
    .masonry-container {
        column-count: 3;
    }
}

@media (max-width: 800px) {
    .masonry-container {
        column-count: 2;
    }
}

@media (max-width: 300px) {
    .masonry-container {
        column-count: 1;
    }
}