/* =============================================================
   PS Author Box — author-box.css
   Loaded ONLY on singular blog posts.
   All classes prefixed .ps-ab- to avoid theme conflicts.
   ============================================================= */

.ps-ab-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #f7f9fc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #1a2d4e;
    border-radius: 8px;
    padding: 1.4rem 1.5rem;
    margin-top: 3rem;
    font-size: 0.93rem;
    line-height: 1.6;
}

/* ------ Photo ------ */
.ps-ab-photo { flex-shrink: 0; }
.ps-ab-photo img {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

/* ------ Content ------ */
.ps-ab-content { flex: 1; min-width: 0; }

/* ------ Header row: name/title + dates ------ */
.ps-ab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.ps-ab-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ps-ab-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
}

.ps-ab-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2d4e;
    text-decoration: none;
    line-height: 1.2;
}
.ps-ab-name:hover { text-decoration: underline; }

.ps-ab-job {
    font-size: 0.82rem;
    color: #3b5ea6;
    font-weight: 500;
}

/* ------ Dates ------ */
.ps-ab-dates {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    flex-shrink: 0;
}

.ps-ab-date {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
}
.ps-ab-date--updated { color: #aaa; }

/* ------ Bio ------ */
.ps-ab-bio {
    color: #444;
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
}

/* ------ Profile link ------ */
.ps-ab-link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3b5ea6;
    text-decoration: none;
    padding: 0.3rem 0.85rem;
    border: 1px solid #3b5ea6;
    border-radius: 20px;
    transition: background 0.15s ease, color 0.15s ease;
}
.ps-ab-link:hover {
    background: #3b5ea6;
    color: #fff;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 600px) {
    .ps-ab-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.1rem 1rem;
        gap: 0.9rem;
    }

    .ps-ab-header {
        flex-direction: column;
        align-items: center;
    }

    .ps-ab-dates {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }

    .ps-ab-date + .ps-ab-date::before {
        content: "·";
        margin-right: 0.4rem;
    }
}
