.prod-news-detail {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 5rem;
}


.prod-news-detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    color: #85869E;
    font-size: .75rem;
}


.prod-news-detail-breadcrumb a {
    color: #85869E;
    text-decoration: none;
}


/* =========================
   MAIN 46 / 30
   ========================= */

.prod-news-detail-grid {
    display: grid;
    grid-template-columns: 46fr 30fr;
    gap: 1.25rem;
    position: relative;
}


.prod-news-detail-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}


.prod-news-detail-image {
    display: flex;
    width: 100%;
    aspect-ratio: 2.3 / 1;
    overflow: hidden;
    align-items: center;
    border-radius: 1rem;
    background: #EBEFFF;
}


.prod-news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.prod-news-article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
}


.prod-news-article > h1 {
    margin: 0;
    color: #0A0C3C;
    font-size: 1rem;
}


.prod-news-article-body {
    width: 100%;
    color: #9D9EB1;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.55;
    text-align: justify;
}


.prod-news-article-body p:first-child {
    margin-top: 0;
}


.prod-news-article-body p:last-child {
    margin-bottom: 0;
}


.prod-news-article-body h2,
.prod-news-article-body h3,
.prod-news-article-body h4 {
    color: #0A0C3C;
}


/* =========================
   META
   ========================= */

.prod-news-detail-footer {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}


.prod-news-desktop-actions,
.prod-news-mobile-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}


.prod-news-mobile-actions {
    display: none;
}


.prod-news-detail-date,
.prod-news-detail-badge {
    display: inline-flex;
    padding: .5rem 1rem;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 0;
    border-radius: 2.5rem;
    background: #EBEFFF;
    color: #0A0C3C;
    font: inherit;
    font-size: .875rem;
    font-weight: 500;
}


button.prod-news-detail-badge:not(:disabled) {
    cursor: pointer;
}


button.prod-news-detail-badge:disabled {
    opacity: 1;
    cursor: default;
}


.prod-news-detail-date svg,
.prod-news-detail-badge svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================
   AUTHOR
   ========================= */

.prod-news-author {
    display: flex;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    align-items: center;
    gap: 1.25rem;
    border-radius: 1rem;
    background: #fff;
}


.prod-news-author-avatar {
    width: 4.875rem;
    height: 4.875rem;
    flex: 0 0 4.875rem;
    overflow: hidden;
    border-radius: .5rem;
    background: #EBEFFF;
}


.prod-news-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.prod-news-author-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}


.prod-news-author-text small {
    color: #7E6CFF;
    font-size: .75rem;
    font-weight: 500;
}


.prod-news-author-text h2 {
    margin: .5rem 0 .25rem;
    color: #0A0C3C;
    font-size: 1rem;
}


.prod-news-author-text p {
    margin: 0;
    color: #9D9EB1;
    font-size: .75rem;
    font-weight: 500;
}


.prod-news-author-button {
    display: inline-flex;
    margin-left: auto;
    padding: .75rem 1rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #7E6CFF;
    border-radius: .75rem;
    color: #7E6CFF;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}


/* =========================
   COMMENTS
   ========================= */

.prod-news-comments {
    position: sticky;
    top: 0;

    display: flex;
    max-height: calc(100vh - 8rem);
    min-height: 30rem;

    padding: 1rem;
    box-sizing: border-box;

    flex-direction: column;
    align-items: flex-start;

    gap: 1.25rem;

    border-radius: 1rem;
    background: #fff;
}


.prod-news-comments > h2 {
    margin: 0;
    color: #0A0C3C;
    font-size: 1rem;
}


.prod-news-comment-list {
    display: flex;
    width: 100%;
    flex: 1;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    scrollbar-width: thin;
}


.prod-news-comment {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: .75rem;
}


.prod-news-comment-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}


.prod-news-comment-avatar {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    overflow: hidden;
    border-radius: .5rem;
    background: #EBEFFF;
}


.prod-news-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.prod-news-comment-head h3,
.prod-news-comment-head p {
    margin: 0;
}


.prod-news-comment-head h3 {
    color: #0A0C3C;
    font-size: 1rem;
}


.prod-news-comment-head p,
.prod-news-comment-text,
.prod-news-no-comments {
    color: #9D9EB1;
    font-size: .75rem;
    font-weight: 500;
}


.prod-news-comment-text,
.prod-news-no-comments {
    margin: 0;
}


.prod-news-comment-footer {
    display: flex;
    width: 100%;
    margin-top: auto;
    padding: .75rem;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    border-radius: 1rem;
    background: #F8F9FE;
}


.prod-news-comment-footer h3,
.prod-news-comment-footer p {
    margin: 0;
}


.prod-news-comment-footer h3 {
    color: #0A0C3C;
    font-size: .875rem;
}


.prod-news-comment-footer p {
    margin-top: .25rem;
    color: #9D9EB1;
    font-size: .75rem;
}


.prod-news-comment-login {
    display: inline-flex;
    padding: .75rem 1rem;
    border-radius: .75rem;
    background: #7E6CFF;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}


.prod-news-comment-footer textarea {
    min-height: 2.75rem;
    flex: 1;
    padding: .75rem;
    box-sizing: border-box;
    resize: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: #85869E;
    font: inherit;
    font-size: .75rem;
}


.prod-news-comment-footer button {
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    flex: 0 0 2.75rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: .75rem;
    background: #7E6CFF;
    color: #fff;
}


.prod-news-comment-footer button:disabled {
    opacity: .55;
}


/* =========================
   RELATED NEWS
   ========================= */

.prod-news-related {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}


.prod-news-related-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.prod-news-related-title h2 {
    margin: 0;
    color: #0A0C3C;
    font-size: 1rem;
}


.prod-news-related-title a {
    color: #7E6CFF;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
}


.prod-news-related-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}


.prod-news-related-filters button {
    display: inline-flex;
    padding: .5rem 1rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 2.5rem;
    background: #EBEFFF;
    color: #0A0C3C;
    font: inherit;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
}


.prod-news-related-filters button.active {
    background: #7E6CFF;
    color: #fff;
}


.prod-news-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}


.prod-news-related-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1.25rem;
    color: #0A0C3C;
    text-decoration: none;
}


.prod-news-related-card[hidden] {
    display: none;
}


.prod-news-related-image {
    position: relative;
    width: 100%;
    aspect-ratio: 2.3 / 1;
    overflow: hidden;
    border-radius: 1rem;
    background: #EBEFFF;
}


.prod-news-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.prod-news-related-labels {
    position: absolute;
    z-index: 2;
    top: .75rem;
    left: .75rem;
    display: flex;
    gap: .5rem;
}


.prod-news-related-labels span {
    display: inline-flex;
    padding: .25rem .5rem;
    align-items: center;
    justify-content: center;
    border-radius: .25rem;
    background: #fff;
    color: #0A0C3C;
    font-size: .5rem;
    font-weight: 600;
}


.prod-news-related-text {
    display: flex;
    max-height: 6.125rem;
    overflow: hidden;
    flex-direction: column;
}


.prod-news-related-text > span {
    color: #2BC4D5;
    font-size: .75rem;
    font-weight: 500;
}


.prod-news-related-text h3 {
    margin: .25rem 0 .5rem;
    color: #0A0C3C;
    font-size: .875rem;
    line-height: 1.35;
}


.prod-news-related-text p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #9D9EB1;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.4;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 640.98px) {

    .prod-news-detail-breadcrumb {
        margin: 0 .75rem;
    }


    .prod-news-detail-grid {
        grid-template-columns: 1fr;
        margin: 0 .75rem;
    }


    .prod-news-detail-image {
        aspect-ratio: 2.3 / 1;
    }


    .prod-news-desktop-actions {
        display: none;
    }


    .prod-news-mobile-actions {
        display: flex;
    }


    .prod-news-detail-footer {
        flex-direction: column;
        align-items: flex-start;
    }


    .prod-news-author {
        align-items: flex-start;
        flex-wrap: wrap;
    }


    .prod-news-author-button {
        width: 100%;
        margin-left: 0;
        box-sizing: border-box;
    }


    .prod-news-comments {
        position: static;
        max-height: none;
        min-height: 25rem;
    }


    .prod-news-related-title {
        margin: 0 .75rem;
    }


    .prod-news-related-filters {
        padding-left: .75rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }


    .prod-news-related-filters::-webkit-scrollbar {
        display: none;
    }


    .prod-news-related-filters button {
        flex: 0 0 auto;
    }


    .prod-news-related-grid {
        grid-template-columns: 1fr;
        margin: 0 .75rem;
    }

}



/* PATCH12-A9-COMMENT-GAP
   The authorization block belongs directly
   after the comments content. Do not push it
   to the bottom of a flex container.
*/

.prod-news-comment-footer {
    margin-top: .75rem;
}


/* DEV feedback fix: gated, CSRF-protected news interaction controls. */
.prod-news-favorite-form {
    display: inline-flex;
    margin: 0;
}

button.prod-news-detail-badge.is-favorited {
    background: #7E6CFF;
    color: #fff;
}

button.prod-news-detail-badge:focus-visible,
.prod-news-comment-form button:focus-visible {
    outline: 2px solid #7E6CFF;
    outline-offset: 2px;
}

.prod-news-comment-form {
    display: flex;
    width: 100%;
    align-items: center;
    gap: .5rem;
}

.prod-news-comment-unavailable {
    margin: 0;
    color: #9D9EB1;
    font-size: .75rem;
}
