
.alphabet-nav {
    text-align: center;
    padding: 10px;
    background-color: #228B22; /* Dark Lime Green */
    border-radius: 5px;
    margin-bottom: 2em;
}

.alphabet-nav a {
    color: #000080; /* Dark Blue */
    text-decoration: none;
    padding: 5px 10px;
    margin: 0 2px;
    border-radius: 3px;
    font-weight: bold;
}

.alphabet-nav a:hover {
    background-color: #1a6f1a;
    color: white;
}

.letter-group {
    margin-bottom: 2em;
    position: relative; /* Re-added for positioning .collapsible-content */
}
.letter-heading {
    font-size: 2em;
    border-bottom: 2px solid white;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
}
.lastname-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 1em;
}
@media (min-width: 600px) {
    .lastname-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}
@media (min-width: 1200px) {
    .lastname-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    }
}
.collapsible-btn {
    background-color: #555;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1em;
    border-radius: 5px;
    margin-bottom: 0;
}
.collapsible-btn:hover {
    background-color: #777;
}
.collapsible-content {
    display: none; /* Hidden by default */
    overflow: hidden;
    background-color: #3e4d5a;
    border-radius: 0 0 5px 5px;
    padding: 15px; /* Padding for the content inside */
    
    position: absolute; /* Position absolutely to break out of parent grid cell */
    /* top will be set by JS */
    left: 0;
    width: 100%; /* Take full width of its positioned ancestor (.letter-group) */
    z-index: 10; /* Ensure it's above other content */
    border: 1px solid #777;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);

    /* Grid layout for the content */
    grid-template-columns: 1fr; /* Default to 1 column */
    gap: 10px;
}
@media (min-width: 600px) {
    .collapsible-content {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}
@media (min-width: 900px) {
    .collapsible-content {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on larger tablets */
    }
}
@media (min-width: 1200px) {
    .collapsible-content {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    }
}
.collapsible-content.active {
    display: grid; /* Show as grid when active */
}
.person-link-item {
    background-color: #555;
    border-radius: 3px;
    padding: 8px;
    text-align: left;
}
.person-link-item a {
    display: inline; /* Keep links inline within their grid item */
    color: white; /* Ensure text color is white */
}
.person-link-item a:hover {
    text-decoration: underline;
}

.edit-link {
    font-size: 0.8em;
    color: #ADD8E6;
}

.delete-form {
    display: inline;
}

.delete-button {
    font-size: 0.8em;
    color: red;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
}
