/*--------------------------------------------------------------
# Comments
--------------------------------------------------------------*/

.comment-content a {
    word-wrap: break-word;
}

.bypostauthor {
    display: block;
}

.comments-title,
.comment-reply-title {
    margin-bottom: 1em;
    font-size: 2em;
    font-weight: 900;
}

/* The "Cancel reply" link sits inside <small> next to the
 * "Reply to ..." h3 title. Without explicit styling it inherits
 * the h3 font-size + weight, smashing into the title text. */
.comment-reply-title small {
    display: inline-block;
    margin-left: 12px;
    font-size: 14px;
    font-weight: 400;
    vertical-align: middle;
}

.comment-reply-title small a {
    color: var(--bx-color-link, var(--color-link));
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.comment-reply-title small a:hover,
.comment-reply-title small a:focus {
    color: var(--bx-color-link-hover, var(--color-link-hover));
}

/*--------------------------------------------------------------
# Comment polish (pure CSS — targets WP-output classes only)
--------------------------------------------------------------*/

/* Threaded reply connector — vertical line + indent so depth is
 * scannable without extra markup. Targets the WP-output .children.
 * Uses --bx-color-border-strong (#d4d4d4 light / #3a3a3a dark) so
 * the line is actually visible against the body BG. */
.comment-list .children {
    position: relative;
    border-left: 2px solid var(--bx-color-border-strong, var(--bx-color-border, #d4d4d4));
    padding-left: 1.25rem;
    margin-left: 0.5rem;
}

@media (max-width: 640px) {
    .comment-list .children {
        padding-left: 0.75rem;
    }
}

/* Nested-comment avatar slightly smaller than top-level for
 * visual hierarchy. WP doesn't differentiate by default. */
.comment .comment .avatar {
    width: 40px;
    height: 40px;
}

/* Post-author badge — WP outputs .bypostauthor on comments by the
 * post's author. Adds a subtle accent border to make it scannable. */
.comment.bypostauthor > .comment-body,
.comment-list li.bypostauthor {
    border-left: 3px solid var(--bx-color-accent, #ef5455);
}

.comment.bypostauthor .comment-author .fn::after {
    content: " · " attr(data-author-label);
}

/* Style the moderation-pending row that WP outputs as
 * <em class="comment-awaiting-moderation"> — promote to a
 * proper amber pill. No markup change needed; WP already gives
 * us this class. */
.comment-awaiting-moderation {
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 8px;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    color: var(--bx-color-warning, #92400e);
    background-color: var(--bx-color-warning-bg, #fef3c7);
    border-radius: 999px;
}

/* Form: focus ring matching the brand */
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: 0;
    border-color: var(--bx-color-input-focus-border, var(--bx-color-accent, #ef5455));
    box-shadow: 0 0 0 3px var(--bx-color-shadow, rgba(239, 84, 85, 0.18));
}

/* Required-field asterisk uses the accent token instead of default red */
.comment-form .required {
    color: var(--bx-color-accent, var(--bx-color-error, #dc2626));
    margin-left: 2px;
}

/* Form labels — consistent weight + spacing */
.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

/* Empty-state polish — "Comments are closed" / "No comments yet" */
.no-comments {
    color: var(--bx-color-fg-muted, #6b7280);
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

/* Reply form spacing — divider above the reply form when there are
 * existing comments above it. */
.comment-list ~ #respond {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bx-color-border, var(--global-border-color));
}

.comment-list {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.comment-list ol {
    list-style-type: none;
}

.comment-list li,
.comment-list ol li {
    position: relative;
    margin: 1rem 0 30px;
    padding: 1em;
    border: 1px solid var(--global-border-color);
    -webkit-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1);
    border-radius: var(--global-border-radius);
    background: var(--color-theme-white-box);
}

.children {
    margin-left: 1em;
    padding-left: 0;
}

@media (--content-query) {
    .children {
        margin-left: 2em;
    }
}

.comment-meta {
    position: relative;
    margin-left: 75px;
    font-size: inherit;
}

.comment-content {
    margin-left: 70px;
}

.comment-meta a,
.comment-form a {
    text-decoration: none;
    border: none;
}

.comment-meta a:hover,
.comment-meta a:focus,
.comment-form a:hover,
.comment-form a:focus {
    text-decoration: underline;
}

.comment .avatar,
.review .avatar {
    position: absolute;
    left: -70px;
    width: 50px;
    height: 50px;
    border-radius: 50px;
}

.bypostauthor .avatar {
    box-sizing: content-box;
    border: 5px solid var(--bx-color-border, #ccc);
    margin-top: 0;
    margin-left: -5px;
}

.comment-author {
    font-size: 1.125em;
    line-height: 1.3;
}

.says {
    font-size: 80%;
}

.comment-metadata {
    padding-bottom: 0.5em;
}


/* stylelint-disable */

.comment-content a {
    word-wrap: break-word;
}


/* stylelint-enable */

.comment-content ul,
.comment-content ol {
    margin: 0;
    padding-right: 3em;
    padding-left: 3em;
}

.comment-content ol {
    list-style-type: decimal;
}

.comment-content ul ul,
.comment-content ol ol {
    margin-right: 0;
    margin-left: 0;
}

@media (--content-query) {
    .comment-content ul,
    .comment-content ol {
        padding-right: 1.5em;
        padding-left: 1.5em;
    }
}

.comment-content blockquote {
    margin-bottom: 0.75em;
    font-size: 1.6em;
    line-height: 1.25;
}

.comment-content cite {
    font-size: 1.2em;
}

.reply {
    margin-bottom: 0;
    text-align: right;
}

.comment-reply-link {
    display: inline-block;
    padding: 0.5em 1.4em;
    font-size: 85%;
    color: var(--bx-color-fg, #000);
    line-height: 1.3;
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--bx-color-border, #c3c3c3);
    border-radius: 0;
}

.comment-reply-link:hover,
.comment-reply-link:focus {
    border-color: inherit;
    cursor: pointer;
}


/* Comment Form */

.comment-form {
    line-height: 1.3;
}

.comment-notes {
    margin-top: -1em;
    font-size: 0.9em;
    font-style: italic;
    background: hsl(0, 0%, 95%);
}


/* stylelint-disable */

.comment-form a {
    font-weight: 500;
}


/* stylelint-enable */

.comment-form label {
    width: 13em;
    display: block;
    font-size: 0.9em;
    padding-bottom: 0.4em;
}

.comment-form-cookies-consent {
    display: flex;
}


/* stylelint-disable */

.comment-form .comment-form-cookies-consent input {
    margin-top: 0.2em;
}


/* stylelint-enable */

.comment-form .comment-form-cookies-consent label {
    display: inline-block;
    margin-left: 0.6em;
}

.comment-form .required {
    color: #d54e21;
}

.comment-form .form-submit {
    text-align: right;
}

.pingback .comment-body {
    padding: 1em 0;
}


/* stylelint-disable */

.pingback a {
    font-style: italic;
    text-decoration: none;
}


/* stylelint-enable */

#comments,
#respond {
    margin-top: 42px;
}

#comments>.comment-list,
#comments>#respond {
    position: relative;
    margin: 1rem 0 30px;
    list-style: none;
    /* No outer border / bg — individual .comment-list li and the
     * inner .comment-respond form already render their own cards.
     * Stacking another border around them creates a double-container
     * look (visible nested rounded boxes). */
}

.comment-form .comment-form-cookies-consent label {
    width: auto;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    width: 100%;
    line-height: 1.4;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    float: left;
    width: 33.33%;
    padding-right: 15px;
    margin-top: 0;
}

@media (max-width: 767px) {
    .comment-form-author,
    .comment-form-email,
    .comment-form-url {
        width: 100%;
        padding: 0;
    }
}

.comment-form-url {
    padding-right: 0;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    box-shadow: none;
    height: 50px;
    border-radius: var(--form-border-radius);
}

.comment-form textarea {
    width: 100%;
    min-height: 150px; 
    border-radius: var(--textarea-border-radius);
}

#respond .comment-form .form-submit {
    text-align: left;
    margin-bottom: 0;
}

#respond .comment-notes {
    background: none;
}

.post-navigation-sub {
    font-style: italic;
}