.posts-detail {
    display: grid;
    gap: 22px;
    padding: 24px;
}

.posts-detail__back {
    width: max-content;
    color: var(--pp-blue);
    font-weight: 900;
    text-decoration: none;
}

.posts-detail__hero {
    display: grid;
    gap: 16px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(106, 214, 247, 0.18), rgba(255, 255, 255, 0.84) 58%, rgba(246, 140, 203, 0.12));
    padding: 22px;
}

.posts-detail__hero h2 {
    max-width: 860px;
    margin: 0;
    color: var(--pp-ink);
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.posts-detail__hero p,
.posts-detail__body {
    color: var(--pp-muted);
    font-size: 1.02rem;
    font-weight: 730;
    line-height: 1.75;
}

.posts-public-pill {
    width: max-content;
    border-radius: 999px;
    background: rgba(106, 214, 247, 0.22);
    color: var(--pp-blue);
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 950;
}

.posts-detail__images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.posts-detail__images img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 16px 36px rgba(17, 43, 74, 0.08);
}

.posts-detail__body {
    border-top: 1px solid rgba(91, 126, 178, 0.12);
    padding-top: 18px;
}

.posts-share {
    display: grid;
    gap: 12px;
    border-top: 1px solid rgba(91, 126, 178, 0.12);
    padding-top: 18px;
}

.posts-share__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.posts-share__head h3 {
    margin: 0;
    color: var(--pp-ink);
    font-size: 1.02rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.posts-share__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.posts-share__button {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--pp-blue);
    color: #ffffff;
    padding: 0;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(18, 43, 86, 0.12);
    transition: box-shadow 0.16s ease, transform 0.16s ease, filter 0.16s ease;
}

.posts-share__button:hover,
.posts-share__button:focus-visible {
    box-shadow: 0 16px 30px rgba(18, 43, 86, 0.16);
    filter: saturate(1.08);
    transform: translateY(-2px);
}

.posts-share__button:focus-visible {
    outline: 3px solid rgba(65, 136, 245, 0.28);
    outline-offset: 3px;
}

.posts-share__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4em;
    text-align: center;
    text-transform: uppercase;
}

.posts-share__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.posts-share__button--facebook {
    background: #1877f2;
}

.posts-share__button--x {
    background: #101820;
}

.posts-share__button--whatsapp {
    background: #25d366;
}

.posts-share__button--linkedin {
    background: #0a66c2;
}

.posts-share__button--email {
    background: linear-gradient(135deg, var(--pp-blue), var(--pp-violet));
}

.posts-share__qr {
    display: grid;
    flex: 0 0 96px;
    gap: 5px;
    justify-items: center;
    margin: 0;
}

.posts-share__qr-image {
    display: block;
    width: 88px;
    height: 88px;
    border: 1px solid rgba(91, 126, 178, 0.22);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(18, 43, 86, 0.13);
}

.posts-share__qr figcaption {
    color: var(--pp-muted);
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.2;
}

.posts-share__button--facebook .posts-share__icon {
    font-family: Arial, sans-serif;
    font-size: 1.35rem;
    text-transform: none;
}

.posts-share__button--whatsapp .posts-share__icon,
.posts-share__button--linkedin .posts-share__icon {
    font-size: 0.82rem;
    letter-spacing: 0;
}

.posts-share__copy {
    display: grid;
    gap: 6px;
    max-width: 640px;
}

.posts-share__copy span {
    color: var(--pp-muted);
    font-size: 0.8rem;
    font-weight: 850;
}

.posts-share__copy input {
    width: 100%;
    border: 1px solid rgba(91, 126, 178, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--pp-muted);
    padding: 10px 12px;
    font: inherit;
    font-size: 0.88rem;
}

.posts-fb-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(91, 126, 178, 0.12);
    padding-top: 18px;
}

.posts-fb-action h3,
.posts-fb-action p {
    margin: 0;
}

.posts-fb-action h3 {
    color: var(--pp-ink);
    font-size: 1.02rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.posts-fb-action p {
    max-width: 620px;
    color: var(--pp-muted);
    font-size: 0.9rem;
    font-weight: 760;
    line-height: 1.5;
}

.posts-fb-action__button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 999px;
    background: #1877f2;
    color: #ffffff;
    padding: 0 16px 0 8px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(18, 43, 86, 0.12);
    transition: box-shadow 0.16s ease, transform 0.16s ease, filter 0.16s ease;
}

.posts-fb-action__button span {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-family: Arial, sans-serif;
    font-size: 1.3rem;
    text-transform: none;
}

.posts-fb-action__button:hover,
.posts-fb-action__button:focus-visible {
    box-shadow: 0 16px 30px rgba(18, 43, 86, 0.16);
    filter: saturate(1.08);
    transform: translateY(-2px);
}

.posts-fb-action__button:focus-visible {
    outline: 3px solid rgba(65, 136, 245, 0.28);
    outline-offset: 3px;
}

.posts-public-empty {
    display: grid;
    gap: 8px;
    padding: 24px;
}

.posts-public-empty h2,
.posts-public-empty p {
    margin: 0;
}

.posts-related {
    display: grid;
    gap: 16px;
    margin-top: 4px;
    padding: 24px;
    border-top: 1px solid rgba(65, 136, 245, 0.16);
    border-bottom: 1px solid rgba(151, 107, 234, 0.14);
    background:
        linear-gradient(115deg, rgba(106, 214, 247, 0.18), rgba(255, 255, 255, 0.9) 52%, rgba(246, 140, 203, 0.15));
}

.posts-related__head {
    display: grid;
    gap: 8px;
    max-width: 760px;
}

.posts-related__head h2 {
    margin: 0;
    color: var(--pp-ink);
    font-size: 1.45rem;
    line-height: 1.18;
    letter-spacing: 0;
}

.posts-related__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.posts-related-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid rgba(91, 126, 178, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.posts-related-card__media {
    display: grid;
    min-height: 138px;
    place-items: center;
    background: rgba(106, 214, 247, 0.14);
}

.posts-related-card__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.posts-related-card__media span {
    color: var(--pp-blue);
    font-weight: 900;
}

.posts-related-card__body {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.posts-related-card__body span {
    color: var(--pp-blue);
    font-size: 0.78rem;
    font-weight: 850;
}

.posts-related-card__body h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.26;
    letter-spacing: 0;
}

.posts-related-card__body h3 a {
    color: var(--pp-ink);
}

.posts-related-card__body p {
    margin: 0;
    color: var(--pp-muted);
    font-size: 0.9rem;
    line-height: 1.48;
}

@media (max-width: 980px) {
    .posts-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .posts-related {
        padding: 18px 16px;
    }

    .posts-related__grid {
        grid-template-columns: 1fr;
    }

    .posts-share__actions {
        gap: 9px;
    }

    .posts-related-card {
        grid-template-columns: 104px minmax(0, 1fr);
        grid-template-rows: auto;
    }

    .posts-related-card__media {
        min-height: 100%;
    }

    .posts-related-card__media img {
        height: 100%;
        min-height: 116px;
    }
}

