/* als-atoz.css – A-to-Z Link List */

/* ---- Wrapper ---- */
.als-atoz-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1d2327;
    max-width: 1100px;
    margin: 1.5em 0;
}

/* ---- Heading ---- */
.als-atoz-heading {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 0 1em;
    color: #1d2327;
}

/* ---- Filter bar ---- */
.als-atoz-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    max-width: 400px;
}
.als-atoz-filter-input {
    flex: 1;
    padding: 9px 13px;
    font-size: 14px;
    border: 2px solid #c3c4c7;
    border-radius: 6px;
    outline: none;
    transition: border-color .2s;
}
.als-atoz-filter-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,.15);
}
.als-atoz-filter-clear {
    background: none;
    border: none;
    font-size: 16px;
    color: #888;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    border-radius: 4px;
    display: none; /* shown via JS when input has value */
}
.als-atoz-filter-clear:hover { color: #b32d2e; background: #fef2f2; }

/* ---- Alphabet nav ---- */
.als-atoz-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 28px;
    padding: 12px 14px;
    background: #f6f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}
.als-atoz-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.als-atoz-nav-btn.als-atoz-active {
    background: #2271b1;
    color: #fff;
}
.als-atoz-nav-btn.als-atoz-active:hover {
    background: #135e96;
    color: #fff;
}
.als-atoz-nav-btn.als-atoz-active.als-letter-hidden {
    background: #c3c4c7;
    color: #fff;
    pointer-events: none;
}
.als-atoz-nav-btn.als-atoz-inactive {
    color: #bbb;
    cursor: default;
    background: transparent;
}

/* ---- Letter sections ---- */
.als-atoz-groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.als-atoz-group { }
.als-atoz-group.als-group-hidden { display: none; }

.als-atoz-letter-heading {
    font-size: 1.4em;
    font-weight: 800;
    color: #2271b1;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e0e0e0;
    letter-spacing: .02em;
}

/* ---- Link list & columns ---- */
.als-atoz-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    /*gap: 8px 24px;*/
}
.als-atoz-cols-1 { grid-template-columns: 1fr; }
.als-atoz-cols-2 { grid-template-columns: repeat(2, 1fr); }
.als-atoz-cols-3 { grid-template-columns: repeat(3, 1fr); }
.als-atoz-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .als-atoz-cols-3,
    .als-atoz-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .als-atoz-cols-2,
    .als-atoz-cols-3,
    .als-atoz-cols-4 { grid-template-columns: 1fr; }
}

/* ---- Individual item ---- */
.als-atoz-item {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    transition: background .15s;
}
.als-atoz-item:hover { background: #f0f6fc; }
.als-atoz-item.als-item-hidden { display: none; }

.als-atoz-link {
    font-size: 14px;
    font-weight: 600;
    color: #2271b1;
    text-decoration: none;
    line-height: 1.3;
    transition: color .15s;
}
.als-atoz-link:hover { color: #135e96; text-decoration: underline; }

.als-atoz-desc {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    line-height: 1.4;
}
.als-atoz-url {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- highlight marks ---- */
.als-atoz-item mark {
    background: #fff176;
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

/* ---- No results ---- */
.als-atoz-no-filter-results {
    color: #777;
    font-size: 14px;
    font-style: italic;
    padding: 16px 0;
}
.als-atoz-empty {
    color: #777;
    font-style: italic;
}
