/**
 * Share display shortcodes ([share_about], [share_field]) — frontend styling.
 */

.wpdst-about-short {
    margin-bottom: 14px;
    line-height: 1.7;
    color: #384047;
}

.wpdst-about-short p:last-child {
    margin-bottom: 0;
}

/* Read more toggle styled as the site's green button.
   When closed: only the button shows (long content hidden).
   When open: long content first, then the "Read less" button below it —
   achieved with flex ordering, zero JavaScript. */
.wpdst-about-more {
    display: inline-block;
}

.wpdst-about-more[open] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wpdst-about-more[open] > .wpdst-about-long {
    order: 1;
}

.wpdst-about-more[open] > .wpdst-about-btn {
    order: 2;
    margin-top: 14px;
}

.wpdst-about-btn {
    display: inline-block;
    cursor: pointer;
    list-style: none;
    background: #4caf50;
    color: #fff;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 6px;
    user-select: none;
    transition: background 0.15s ease;
}

.wpdst-about-btn::-webkit-details-marker {
    display: none;
}

.wpdst-about-btn:hover {
    background: #43a047;
}

/* Swap the label to "Read less" when open, without any JS */
.wpdst-about-more[open] > .wpdst-about-btn {
    font-size: 0;
}

.wpdst-about-more[open] > .wpdst-about-btn::after {
    content: "Read less";
    font-size: 16px;
}

.wpdst-about-long {
    line-height: 1.7;
    color: #384047;
}

.wpdst-about-long p:last-child {
    margin-bottom: 0;
}
