/* コメントの欄（ext/comment・公開用の画面の枠と編集用の殻の両方に載る） */
.w-comments {
    margin: 40px 0 12px;
    padding-top: 16px;
    border-top: 1px solid var(--pub-border, #e5e7eb);
}
.w-comments-title {
    font-weight: 700;
    font-size: 1.15em;
    margin: 0 0 12px;
}
.w-comments-empty,
.w-comments-help {
    color: var(--pub-muted, #6b7280);
    margin: 0 0 12px;
}
.w-comments ol.w-comments-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.w-comment {
    padding: 10px 0;
    border-bottom: 1px solid var(--pub-border, #e5e7eb);
}
.w-comment-head {
    margin: 0 0 4px;
    font-size: 0.9em;
    color: var(--pub-muted, #6b7280);
}
.w-comment-name {
    font-weight: 600;
    color: var(--pub-text, #1f2937);
}
.w-comment-name.is-owner::before { content: "↳ "; }
.w-comment-mark {
    display: inline-block;
    margin-left: 4px;
    padding: 0 6px;
    border: 1px solid var(--pub-border, #d1d5db);
    border-radius: 999px;
    font-size: 0.85em;
    line-height: 1.6;
}
.w-comment-body {
    overflow-wrap: anywhere;
}
.w-comment-reply {
    margin: 8px 0 0 1.2em;
    padding: 6px 0 0 10px;
    border-left: 3px solid var(--pub-border, #e5e7eb);
}
.w-comment-form {
    display: grid;
    gap: 10px;
    max-width: 40rem;
}
.w-comment-field {
    display: grid;
    gap: 4px;
}
.w-comment-field span { font-size: 0.95em; }
.w-comment-field input,
.w-comment-field textarea {
    font: inherit;
    padding: 6px 8px;
    border: 1px solid #c8ccd2;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}
.w-comment-note {
    margin: 0;
    font-size: 0.85em;
    color: var(--pub-muted, #6b7280);
}
.w-comment-form button[type="submit"] {
    justify-self: start;
    font: inherit;
    padding: 6px 20px;
    border: 1px solid #1d4ed8;
    border-radius: 6px;
    background: #1d4ed8;
    color: #fff;
    cursor: pointer;
}
.w-comment-form button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: default;
}
/* 人には見せない欄（ボットだけが埋める）。display:none だと埋めないボットがいるので、画面の外へ出す。 */
.w-comment-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.w-comment-form.is-ready .w-comment-noscript { display: none; }
.w-comment-noscript {
    margin: 0;
    font-size: 0.85em;
    color: #b45309;
}
