/* Pokemon Word Chain - Custom Styles */
td.abilityname {
    white-space: nowrap;
}

/* Enhance table readability */
.uk-table-hover tbody tr:hover {
    background-color: #f0f7ff;
}

/* Section headers */
.uk-alert-primary p {
    font-weight: bold;
    font-size: 1.1em;
    margin: 0;
}

/* ─── A-Z Quick Navigation Grid ─── */
.az-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 16px auto;
    max-width: 650px;
    /* Safe width for 13 items (A-M) */
}

.az-grid a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    color: #333;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.az-grid a:hover {
    background: #e0edff;
    border-color: #1e87f0;
    color: #1e87f0;
    transform: scale(1.08);
}

.az-grid a.active {
    background: #1e87f0;
    border-color: #1e87f0;
    color: #fff;
    cursor: default;
    pointer-events: none;
}

/* ─── Button-style Pagination ─── */
.btn-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.btn-pagination a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 6px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.btn-pagination a:hover {
    background: #e0edff;
    border-color: #1e87f0;
    color: #1e87f0;
}

.btn-pagination .center-link {
    font-weight: normal;
}