/* =========================================
   NONATIZED COMMENTS SYSTEM
   Timeline Conversation Layout
   Version: 2.3
========================================= */

.nona-comments-viewport,
.nona-comments-viewport * {
    box-sizing: border-box;
}

.nona-comments-viewport {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    /* background: var(--ruby); */
    /* color: var(--white); */
    padding: clamp(28px, 4vw, 58px);
}

.nona-comments-frame {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 20px;
    border: 2px solid var(--white);
    background: var(--ruby);
}

.nona-comments-frame {
    position: relative;
    overflow: hidden;
}

.nona-comments-header,
.nona-conversation-pagination {
    position: relative;
    z-index: 3;
}

.nona-thread-scroll {
    position: relative;
    z-index: 1;
}

/* .nona-comments-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -72px;
    height: 72px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        var(--ruby) 0%,
        rgb(71 18 36 / 71%) 25%,
        rgb(71 18 36 / 30%) 65%,
        rgba(71, 18, 36, 0) 100%
    );
}
*/

.nona-conversation-pagination::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -72px;
    height: 72px;
    pointer-events: none;
    background: linear-gradient(
        to top,
     var(--ruby) 0%,
        rgb(71 18 36 / 71%) 25%,
        rgb(71 18 36 / 30%) 65%,
        rgba(71, 18, 36, 0) 100%
    );
} 


/* =========================================
   Header
========================================= */

.nona-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* gap: 24px; */
}

.nona-comments-header .nona-comments-title {
    margin: 0;
    font-size: var(--text-3xl)!important;
    line-height: 0.85;
    font-family: var(--instrument)!important;
    font-weight: 400;
    font-style: italic;
    text-transform: uppercase;
    color: var(--white);
}

.nona-comments-summary {
    display: flex;
    gap: 8px;
}

.nona-comments-summary span {
    color: var(--sky);
    font-size: var(--text-base);
    font-family: var(--mono);
    font-weight: 400;
    letter-spacing: -0.04em;
     align-items: baseline;
    padding-top: 10px;
    line-height: 1;
    letter-spacing: -0.04em;
}

/* =========================================
   Scroll Area
========================================= */

.nona-thread-scroll {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: clamp(8px, 1.2vw, 18px);
    scrollbar-width: thin;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.nona-thread-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(18px, 2.3vw, 32px);
}


.nona-conversation-panel {
    display: none;
}

.nona-conversation-panel.is-active {
    display: block;
}

/* =========================================
   Timeline Row
   avatar | comment card | meta
========================================= */

.nona-thread-row {
    position: relative;
    display: grid;
    grid-template-columns: 10fr 75fr 15fr;
    gap: 16px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nona-thread-row.depth-2,
.nona-thread-row.is-reply {
    opacity: 1;
    padding-left: 0;
    margin-left: 0;
}

.nona-thread-row.is-reply .nona-thread-card,
.nona-thread-row.is-parent .nona-thread-card {
    width: 100%;
}


/* =========================================
   Avatar Column
========================================= */

.nona-thread-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.nona-avatar-image {
    width: clamp(58px, 6vw, 86px);
    height: clamp(58px, 6vw, 86px);
    display: block;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(190, 202, 176, 0.85);
    background: var(--ruby);
}

.nona-thread-row.is-parent .nona-avatar-image {
    opacity: 0.55;
}

.nona-thread-row.is-author .nona-avatar-image {
    border-color: var(--olive);
}

.nona-thread-row.is-author::before {
    content: "";
    position: absolute;
    left: 110px;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: var(--olive);
}


/* =========================================
   Comment Card Column
========================================= */

.nona-thread-card {
    min-width: 0;
    background: var(--ruby);
    color: var(--white);
    border-radius: 0 0 8px 8px;
    border-bottom: 1px solid rgba(246, 238, 233, 0.45);
    padding: clamp(18px, 2vw, 28px) clamp(20px, 2.4vw, 34px);
}

.nona-thread-row.is-author .nona-thread-card {
    background: var(--olive);
    color: var(--ruby);
    border-bottom-color: transparent;
    border-radius: 8px;
}

.nona-thread-message {
    font-size: clamp(17px, 1.45vw, 23px);
    line-height: 1.45;
    font-weight: 400;
}

.nona-thread-message p {
    margin: 0 0 0.7em;
}

.nona-thread-message p:last-child {
    margin-bottom: 0;
}

.nona-thread-message a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}


/* =========================================
   Actions
========================================= */

.nona-thread-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.nona-thread-action,
.nona-thread-action a {
    color: inherit;
    text-decoration: none;
}

.nona-thread-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--olive);
    color: var(--ruby);
    font-size: 14px;
    line-height: 1;
    transition:
        background 180ms var(--cubic),
        color 180ms var(--cubic),
        transform 180ms var(--cubic)!important;
}

.nona-thread-row.is-author .nona-thread-action a {
    background: var(--ruby);
    color: var(--white);
}

.nona-thread-action a:hover {
    transform: translateY(-1px);
    background: var(--white);
    color: var(--ruby);
}


/* =========================================
   Meta Column
========================================= */

.nona-thread-meta {
    min-width: 0;
    color: var(--white);
    font-size: clamp(13px, 1.1vw, 16px);
    line-height: 1.4;
}

.nona-thread-author-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.nona-thread-author,
.nona-thread-role {
    font-weight: 400;
}

.nona-meta-bracket,
.nona-meta-slash {
    opacity: 0.9;
}

.nona-thread-time {
    display: block;
    font-size: clamp(12px, 0.95vw, 14px);
    opacity: 0.85;
}


/* =========================================
   Empty State
========================================= */

.nona-comments-empty {
    min-height: 320px;
    display: grid;
    place-content: center;
    text-align: center;
    border: 1px dashed rgba(246, 238, 233, 0.4);
    padding: 32px;
}

.nona-comments-empty h3 {
    margin: 0 0 10px;
    font-family: var(--instrument)!important;
    font-size: clamp(34px, 4vw, 64px);
    line-height: 0.95;
    font-weight: 400;
}

.nona-comments-empty p {
    margin: 0;
    opacity: 0.75;
}


/* =========================================
   Pagination
========================================= */

.nona-conversation-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding-top: 4px;
    font-size: 13px;
    line-height: 1;
}

.nona-conversation-pagination a,
.nona-conversation-pagination button {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 9px 14px;
    border: 1px solid rgba(246, 238, 233, 0.45);
    border-radius: 999px;
    transition:
        background 180ms var(--cubic),
        color 180ms var(--cubic)!important;
}

.nona-conversation-pagination a:hover,
.nona-conversation-pagination button:hover:not(:disabled) {
    background: var(--white);
    color: var(--ruby);
}

.nona-pagination-prev {
    text-align: left;
}

.nona-pagination-status, .nona-pagination-status span {
    text-align: center;
    color: var(--sky)!important;
    font-size: var(--text-base)!important;
    opacity: 0.8;
}

.nona-pagination-next {
    text-align: right;
}


.nona-conversation-pagination button {
    font: inherit;
    cursor: pointer;
    background: transparent;
}

.nona-conversation-pagination button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}


/* =========================================
   Comment Form Section
   This sits AFTER the 100vh layout
========================================= */

.nona-comment-form-section {
    background: var(--olive);
    color: var(--ruby);
    padding: clamp(48px, 8vw, 120px) clamp(24px, 6vw, 90px);
}

.nona-comment-form-inner {
    max-width: 920px;
    margin: 0 auto;
}

.nona-comment-form-section #reply-title {
    margin: 0 0 28px;
    font-family: var(--instrument)!important;
    font-size: clamp(38px, 6vw, 90px);
    line-height: 0.9;
    font-weight: 400;
    letter-spacing: -0.045em;
}

.nona-comment-form-section #reply-title small {
    display: block;
    margin-top: 14px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0;
}

.nona-comment-form-section #reply-title a {
    color: inherit;
}

.nona-comment-form-section .comment-form {
    display: grid;
    gap: 18px;
}

.nona-comment-form-section .comment-form p {
    margin: 0;
}

.nona-comment-form-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.2;
    opacity: 0.8;
}

.nona-comment-form-section textarea,
.nona-comment-form-section input[type="text"],
.nona-comment-form-section input[type="email"],
.nona-comment-form-section input[type="url"] {
    width: 100%;
    border: 1px solid rgba(81, 11, 42, 0.35);
    background: transparent;
    color: inherit;
    border-radius: 12px;
    padding: 15px 16px;
    font: inherit;
    outline: none;
}

.nona-comment-form-section textarea {
    min-height: 180px;
    resize: vertical;
}

.nona-comment-form-section textarea:focus,
.nona-comment-form-section input[type="text"]:focus,
.nona-comment-form-section input[type="email"]:focus,
.nona-comment-form-section input[type="url"]:focus {
    border-color: var(--ruby);
}

.nona-comment-form-section .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.nona-comment-form-section .comment-form-cookies-consent label {
    margin: 0;
}

.nona-comment-form-section input[type="submit"],
.nona-comment-form-section button[type="submit"] {
    appearance: none;
    border: 1px solid var(--ruby);
    background: var(--ruby);
    color: var(--white);
    border-radius: 999px;
    padding: 13px 20px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 180ms var(--cubic),
        color 180ms var(--cubic)!important;
}

.nona-comment-form-section input[type="submit"]:hover,
.nona-comment-form-section button[type="submit"]:hover {
    background: transparent;
    color: var(--ruby);
}


/* =========================================
   Reply Form When Moved Under Comment
========================================= */

.nona-thread-row #respond {
    grid-column: 2 / 3;
    margin-top: 18px;
    padding: 22px;
    background: rgba(246, 238, 233, 0.08);
    border: 1px solid rgba(246, 238, 233, 0.16);
    border-radius: 12px;
}

.nona-thread-row #respond #reply-title {
    margin: 0 0 18px;
    font-family: var(--instrument)!important;
    font-size: clamp(28px, 3vw, 48px);
    line-height: 0.95;
    font-weight: 400;
}

.nona-thread-row #respond textarea,
.nona-thread-row #respond input[type="text"],
.nona-thread-row #respond input[type="email"],
.nona-thread-row #respond input[type="url"] {
    border-color: rgba(246, 238, 233, 0.35);
    color: var(--white);
}

.nona-thread-row #respond input[type="submit"] {
    background: var(--white);
    color: var(--ruby);
    border-color: var(--white);
}


/* =========================================
   Scrollbars
========================================= */

/* Firefox */
.nona-thread-scroll {
    scrollbar-width: auto;
    scrollbar-color: var(--ruby) var(--white);
}

/* Chrome, Edge, Safari */
.nona-thread-scroll::-webkit-scrollbar {
    width: 10px;
}

.nona-thread-scroll::-webkit-scrollbar-track {
    background: var(--white);
    border-radius: 999px;
}

.nona-thread-scroll::-webkit-scrollbar-thumb {
    background: var(--ruby);
    border-radius: 999px;
    border: 2px solid var(--white);
}

.nona-thread-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--olive);
}

.nona-thread-scroll::-webkit-scrollbar-thumb:active {
    background: var(--olive);
}

.nona-thread-scroll::-webkit-scrollbar-corner {
    background: var(--white);
}
/* =========================================
   Responsive
========================================= */

@media (max-width: 1024px) {
    .nona-thread-row {
        grid-template-columns: 90px minmax(0, 1fr) 170px;
        gap: 20px;
    }

    .nona-thread-message {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .nona-comments-viewport {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .nona-comments-frame {
        min-height: 100vh;
        padding: 24px;
    }

    .nona-comments-header {
        display: grid;
        gap: 12px;
    }

    .nona-thread-scroll {
        overflow: visible;
        padding-right: 0;
    }

    .nona-thread-row {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }

    .nona-thread-meta {
        grid-column: 2 / 3;
        grid-row: 1;
        margin-bottom: 8px;
        font-size: 12px;
    }

    .nona-thread-card {
        grid-column: 2 / 3;
        grid-row: 2;
        padding: 16px;
    }

    .nona-thread-avatar {
        grid-column: 1 / 2;
        grid-row: 1 / span 2;
        align-items: flex-start;
        padding-top: 2px;
    }

    .nona-avatar-image {
        width: 52px;
        height: 52px;
        border-radius: 10px;
    }

    .nona-thread-row.is-author::before {
        display: none;
    }

    .nona-thread-message {
        font-size: 16px;
        line-height: 1.45;
    }

    .nona-conversation-pagination {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nona-pagination-prev,
    .nona-pagination-status,
    .nona-pagination-next {
        text-align: left;
    }

    .nona-thread-row #respond {
        grid-column: 1 / -1;
    }
}


/* =========================================
   Elementor Safety
========================================= */

.elementor-widget-shortcode .nona-comments-viewport {
    margin: 0;
}

.elementor-widget-shortcode .nona-comments-viewport ol,
.elementor-widget-shortcode .nona-comments-viewport ul {
    margin-left: 0;
}

.elementor-widget-shortcode .nona-comments-viewport p {
    margin-top: 0;
}