/*
 * Display Posts Alphabetically — Front-End Styles
 * Plugin: display-posts-alpha
 *
 * Feel free to override any of these rules in your theme's style.css
 * by targeting the same selectors with higher specificity.
 */

/* ── Wrapper ─────────────────────────────────────────────────────────── */
.dpa-wrapper {
    margin: 1em 0;
    font-family: inherit;
    line-height: 1.6;
}

/* ── Letter group block ───────────────────────────────────────────────── */
.dpa-letter-group {
    margin-bottom: 1.4em;
}

/* ── Letter header  (-A-, -B-, …) ────────────────────────────────────── */
.dpa-letter-header {
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 0.35em 0;
    padding: 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.2em;
}

/* ── Optional per-letter count badge ─────────────────────────────────── */
.dpa-count {
    font-size: 0.75em;
    font-weight: 400;
    color: #888;
    margin-left: 0.4em;
}

/* ── Post list ────────────────────────────────────────────────────────── */
.dpa-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dpa-post-item {
    padding: 0.15em 0;
    font-size: 0.97em;
    color: #444;
}

/* ── Links ────────────────────────────────────────────────────────────── */
.dpa-post-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.dpa-post-item a:hover,
.dpa-post-item a:focus {
    color: #0073aa;   /* WordPress-ish blue — matches most admin palettes */
    text-decoration: underline;
}

/* ── Error / empty state notices ─────────────────────────────────────── */
.dpa-error,
.dpa-no-posts {
    padding: 0.6em 0.9em;
    border-left: 3px solid #c33;
    background: #fef8f8;
    color: #600;
    font-size: 0.9em;
}

.dpa-no-posts {
    border-color: #aaa;
    background: #f9f9f9;
    color: #555;
}
