/* =============================================================================
   Zeklaw News & Insights — article byline
   Loaded only on single posts. Paired with [zek_article_byline].
   ============================================================================= */

.zek-byline {
    display: flex;
    gap: 1.25em;
    align-items: flex-start;
    padding: 1.25em 0;
    border-top: solid 1px #223F69;
    border-bottom: solid 1px #ecf0f6;
    text-align: left;
}

/* photo_side="right" — bio text on the left, image on the right.
   Uses `order` on the children rather than flex-direction: row-reverse.
   Two-class selectors outrank a theme's single-class rules, and `order`
   is far less likely to be reset by Elementor than flex-direction.
   DOM order stays photo-first, so screen readers and the mobile stack
   below still lead with the attorney. */
.zek-byline--photo-right {
    flex-direction: row;
}

.zek-byline--photo-right .zek-byline__photo-link {
    order: 2;
}

.zek-byline--photo-right .zek-byline__body {
    order: 1;
}

/* Optional heading, e.g. heading="About the Author" */
.zek-byline__heading {
    margin: 0 0 .4em;
    font-size: 1.1em;
    color: #223F69;
    text-align: left;
}

/* Date-only variant: no photo, no flex row needed */
.zek-byline--date-only {
    display: block;
    border-top: none;
    border-bottom: solid 1px #ecf0f6;
    padding: .6em 0;
}

/* ── Photo ───────────────────────────────────────────────────────────────── */
.zek-byline__photo-link {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
}

.zek-byline__photo {
    display: block;
    width: 184px;
    height: 230px;         /* 4:5, matches the 250x313 profile ratio */
    object-fit: cover;
    object-position: top center;
}

/* ── Body ────────────────────────────────────────────────────────────────── */
.zek-byline__body {
    flex: 1 1 auto;
    min-width: 0;          /* lets long text wrap instead of overflowing */
}

.zek-byline__meta {
    margin: 0 0 .15em;
    font-size: 1em;
    line-height: 1.4;
}

.zek-byline__label {
    color: #666;
    font-size: .85em;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-right: .35em;
}

.zek-byline__name {
    color: #223F69;
    font-weight: 600;
    text-decoration: none;
}

.zek-byline__name:hover {
    text-decoration: underline;
}

.zek-byline__position {
    display: block;
    font-size: .85em;
    font-style: italic;
    color: #666;
}

.zek-byline__date {
    display: block;
    font-size: .85em;
    color: #666;
    margin-bottom: .5em;
}

/* ── Bio blurb ───────────────────────────────────────────────────────────── */
.zek-byline__bio {
    font-size: .9em;
    line-height: 1.55;
    color: #444;
}

.zek-byline__bio p {
    margin: 0 0 .5em;
}

.zek-byline__bio p:last-child {
    margin-bottom: 0;
}

.zek-byline__bio a {
    color: #223F69;
}

/* ── Read more ───────────────────────────────────────────────────────────── */
.zek-byline__more {
    display: inline-block;
    margin-top: .5em;
    font-size: .85em;
    font-weight: 600;
    color: #223F69;
    text-decoration: none;
}

.zek-byline__more:hover {
    text-decoration: underline;
}

/* ── Small screens ───────────────────────────────────────────────────────── */
/* A 184px image beside text leaves too little room for the bio on a phone,
   so stack instead: image above, bio below. column-reverse is used for the
   photo-right variant so the image still leads visually once stacked. */
@media (max-width: 600px) {
    .zek-byline {
        display: block;
    }

    .zek-byline--photo-right {
        display: block;
    }

    .zek-byline__photo-link {
        display: block;
        margin-bottom: .9em;
    }

    .zek-byline__photo {
        width: 140px;
        height: 175px;      /* keeps 4:5 */
    }
}
