.med-comments {
    min-width: 0;
    padding: clamp(15px, 3.15vw, 55px);
    border-top: 3px solid var(--red);
}

.med-comments-heading {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .75rem;
}

.med-comments-heading h2 {
    font-size: clamp(1.45rem, 2.3vw, 2.2rem);
}

.med-comment-count {
    font: 700 .9rem var(--sans);
    color: #5d4631;
}

.med-comments .comment-respond {
    width: min(100%, 48rem);
    background: #fff9ed;
    border: 1px solid #b79a70;
    padding: clamp(.8rem, 2vw, 1.35rem);
}

.med-comments .comment-reply-title {
    margin-bottom: .75rem;
    font-size: 1.18rem;
    letter-spacing: normal;
}

.med-comments #cancel-comment-reply-link {
    color: var(--red);
    font-family: var(--sans);
}

.med-comments .comment-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: .72rem;
    font-family: var(--sans);
}

.med-comments .comment-form-comment,
.med-comments .comment-notes,
.med-comments .form-submit {
    grid-column: 1 / -1;
}

.med-comments .comment-form label:not(.screen-reader-text) {
    display: block;
    margin-bottom: .26rem;
    font: 650 .8rem/1.35 var(--sans);
    color: #453624;
}

.med-comments .comment-form textarea,
.med-comments .comment-form input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]) {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: .52rem .6rem;
    border: 1px solid #9a8261;
    border-radius: 3px;
    background: #fffdf8;
    color: var(--ink);
    font: 1rem/1.35 var(--sans);
}

.med-comments .comment-form textarea {
    display: block;
    resize: vertical;
}

.med-comments .comment-form .submit {
    min-height: 42px;
    cursor: pointer;
}

.med-comments .comment-notes,
.med-comments .med-comment-moderation {
    font: .85rem/1.4 var(--sans);
    color: #5d4631;
}

.med-comments > .med-comment-moderation {
    margin-bottom: .75rem;
}

.med-comment-list,
.med-comment-list .children {
    list-style: none;
    padding: 0;
}

.med-comment-list {
    width: min(100%, 48rem);
    margin: 1.2rem 0 0;
}

.med-comment-list .children {
    margin: 0;
    padding-inline-start: clamp(.5rem, 2.25vw, 1.65rem);
    border-inline-start: 1px solid #a4895b91;
}

.med-comment-list .comment-respond {
    margin: .4rem 0 .85rem;
}

.med-comment-body {
    padding: .85rem 0;
    border-top: 1px solid var(--rule);
}

.med-comment-meta,
.med-comment-actions,
.med-comment-vote {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.med-comment-meta {
    gap: .2rem .65rem;
    margin-bottom: .4rem;
}

.med-comment-meta time {
    font: .76rem var(--sans);
    color: #5d4631;
}

.med-comment-text {
    overflow-wrap: anywhere;
}

.med-comment-text p + p {
    margin-top: .65rem;
}

.med-comment-text a,
.med-comment-actions .comment-reply-link {
    color: var(--red);
}

.med-comment-actions {
    gap: .15rem .7rem;
    margin-top: .48rem;
}

.med-comment-actions .comment-reply-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    font: 700 .83rem var(--sans);
}

.med-comment-vote {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: .22rem;
}

.med-comment-vote button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #b39773;
    border-radius: 3px;
    background: #fff9ed;
    color: #433827;
}

.med-comment-vote button svg {
    width: 17px;
    height: 17px;
}

.med-comment-vote button[data-vote="-1"] svg {
    transform: rotate(180deg);
}

.med-comment-vote button[data-vote="1"]:is(:hover:enabled, [aria-pressed="true"]) {
    background: #e6f1dc;
    border-color: #398060;
    color: #185635;
}

.med-comment-vote button[data-vote="-1"]:is(:hover:enabled, [aria-pressed="true"]) {
    background: #f9e0da;
    border-color: #a14747;
    color: #8d1721;
}

.med-comment-vote button:disabled {
    cursor: default;
}

.med-comment-vote[aria-busy="true"] button {
    cursor: progress;
}

.med-comment-vote output {
    min-width: 1.85em;
    padding: .22rem .3rem;
    text-align: center;
    font: 750 .85rem var(--sans);
    color: #483d31;
}

.med-comment-vote output[data-score-state="positive"] { color: #185635; }
.med-comment-vote output[data-score-state="negative"] { color: #8d1721; }

.med-vote-status {
    flex-basis: 100%;
    font: .8rem var(--sans);
    color: var(--red);
}

.med-vote-status:empty { display: none; }

@media (max-width: 600px) {
    .med-comments .comment-form {
        grid-template-columns: minmax(0, 1fr);
    }
}
