/* CP-ADDED: Native WordPress blog comments; scoped to the existing .cp-comments wrapper. */
.cp-comments{--cp-comment-gold:#e8c875;--cp-comment-text:#d7dbe3;--cp-comment-muted:#aab1be;--cp-comment-border:#30343e;inline-size:min(80%,1100px);max-inline-size:1100px;min-inline-size:0;margin-block:3rem;margin-inline:auto;padding:clamp(18px,3vw,36px);border:1px solid var(--cp-comment-border);border-radius:14px;background:#0b0d12;color:var(--cp-comment-text);line-height:1.8;text-align:start;overflow-wrap:anywhere;color-scheme:dark;}
.cp-comments,.cp-comments *{box-sizing:border-box;}
.cp-comments:target,.cp-comments [id^="comment-"],.cp-comments [id^="div-comment-"],.cp-comments #respond{scroll-margin-block-start:100px;}
.cp-comments>h2{display:flex;align-items:center;gap:12px;margin-block:0 24px;color:#f5f6f8;font-size:clamp(1.3rem,2.4vw,1.8rem);line-height:1.4;}
.cp-comments>h2::before{content:"";flex:0 0 4px;inline-size:4px;block-size:28px;border-radius:3px;background:var(--cp-comment-gold);}
.cp-comments a{color:var(--cp-comment-gold);text-underline-offset:4px;text-decoration-thickness:1px;}
.cp-comments a:hover{color:#fff;}
.cp-comments :where(a,button,input,textarea,select):focus-visible{outline:2px solid var(--cp-comment-gold);outline-offset:4px;}

/* Comment cards and thread structure. Only the author's own card gets the accent. */
.cp-comments .comment-list,.cp-comments .children{list-style:none;margin:0;padding:0;}
.cp-comments .comment-list>li,.cp-comments .children>li{min-inline-size:0;margin:0;padding:0;}
.cp-comments .comment-body{min-inline-size:0;margin-block:0 18px;padding:clamp(16px,2vw,24px);border:1px solid var(--cp-comment-border);border-radius:11px;background:linear-gradient(135deg,#141820,#101217);color:var(--cp-comment-text);}
.cp-comments .bypostauthor>.comment-body{border-inline-start:3px solid var(--cp-comment-gold);}
.cp-comments .children{margin-inline-start:clamp(12px,2.5vw,32px);padding-inline-start:clamp(10px,1.5vw,20px);border-inline-start:1px solid #75613b;}
/* Cap deep visual indentation; WordPress still retains every reply relationship. */
.cp-comments .children .children .children .children{margin-inline-start:0;padding-inline-start:0;border-inline-start:0;}

/* Core uses <footer class="comment-meta">. Override the theme's site-footer rules. */
.cp-comments .comment-meta{display:flex;flex-flow:row wrap;align-items:center;justify-content:space-between;gap:8px 16px;inline-size:100%;margin:0;padding:0;background:transparent;text-align:start;}
.cp-comments .comment-meta>div{min-inline-size:0;margin:0;padding:0;}
.cp-comments .comment-author{display:flex;align-items:center;gap:12px;max-inline-size:100%;color:#f5f6f8;line-height:1.5;}
.cp-comments .comment-author .avatar{display:block;flex:0 0 48px;inline-size:48px;block-size:48px;max-inline-size:none;margin:0;border:1px solid #786641;border-radius:50%;object-fit:cover;}
.cp-comments .comment-author .fn{min-inline-size:0;font-size:1rem;font-style:normal;font-weight:700;}
.cp-comments .comment-author a{color:inherit;text-decoration:none;}
.cp-comments .comment-author a:hover{color:var(--cp-comment-gold);}
.cp-comments .comment-author .says{display:none;}
.cp-comments .comment-meta>.comment-metadata{margin-inline-start:auto;color:var(--cp-comment-muted);font-size:.78rem;text-align:end;}
.cp-comments .comment-metadata a{color:inherit;text-decoration:none;}
.cp-comments .comment-metadata a:hover{text-decoration:underline;color:var(--cp-comment-gold);}
.cp-comments .comment-metadata .edit-link{display:inline-block;margin-inline-start:10px;}
.cp-comments .comment-awaiting-moderation{flex-basis:100%;margin-block:8px 0;padding-block:8px;padding-inline:12px;border-inline-start:2px solid var(--cp-comment-gold);border-radius:4px;background:#211d14;color:#ecd6a6;font-size:.85rem;font-style:normal;}

/* Keep rich comment text legible without changing WordPress sanitization. */
.cp-comments .comment-content{min-inline-size:0;margin-block-start:16px;line-height:1.85;}
.cp-comments .comment-content p{margin-block:0 12px;font-size:.95rem;}
.cp-comments .comment-content>:last-child{margin-block-end:0;}
.cp-comments .comment-content :where(ul,ol){margin-block:12px;padding-inline-start:24px;}
.cp-comments .comment-content ul{list-style:disc;}
.cp-comments .comment-content ol{list-style:decimal;}
.cp-comments .comment-content li{margin-block:5px;}
.cp-comments .comment-content blockquote{margin-block:16px;margin-inline:0;padding:12px 16px;border-inline-start:3px solid var(--cp-comment-gold);border-radius:6px;background:#090b10;}
.cp-comments .comment-content :where(img,video,iframe){max-inline-size:100%;}
.cp-comments .comment-content img{block-size:auto;}
.cp-comments .comment-content pre{max-inline-size:100%;overflow:auto;margin-block:14px;padding:14px;border:1px solid var(--cp-comment-border);border-radius:6px;background:#080a0e;white-space:pre-wrap;}
.cp-comments .comment-content :where(pre,code,kbd,samp){font-family:Consolas,"Liberation Mono",monospace!important;font-size:.88em;}
.cp-comments .comment-content :where(h1,h2,h3,h4,h5,h6){margin-block:18px 10px;color:#f5f6f8;font-size:1.1rem;line-height:1.5;}
.cp-comments .reply{display:flex;justify-content:flex-end;margin-block-start:16px;}
.cp-comments :is(.comment-reply-link,.comment-reply-login){display:inline-flex;align-items:center;justify-content:center;min-block-size:42px;padding-block:7px;padding-inline:18px;border:1px solid #806b40;border-radius:999px;background:#1b1811;color:var(--cp-comment-gold);font-size:.85rem;font-weight:700;line-height:1.5;text-decoration:none;transition:background .2s,color .2s;}
.cp-comments :is(.comment-reply-link,.comment-reply-login):hover{background:var(--cp-comment-gold);color:#17130b;}
.cp-comments :is(.pingback,.trackback)>.comment-body{font-size:.9rem;}
.cp-comments>p{margin-block:16px;padding:14px 16px;border:1px solid #6a5836;border-radius:8px;background:#1b1812;color:var(--cp-comment-text);}

/* Native form, including the same #respond element moved under a reply by core JS. */
.cp-comments .comment-respond{min-inline-size:0;margin-block-start:28px;padding:clamp(16px,2.5vw,28px);border:1px solid var(--cp-comment-border);border-radius:11px;background:#11141b;}
.cp-comments .comment-list .comment-respond{margin-block:0 20px;padding:16px;}
.cp-comments .comment-reply-title{margin-block:0 18px;color:#f5f6f8;font-size:clamp(1.15rem,2vw,1.45rem);line-height:1.6;}
.cp-comments .comment-reply-title small{display:inline-block;margin-inline-start:14px;font-size:.78rem;font-weight:400;}
.cp-comments #cancel-comment-reply-link{color:var(--cp-comment-gold);text-decoration:underline;}
.cp-comments .comment-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;min-inline-size:0;}
.cp-comments .comment-form>*{grid-column:1/-1;min-inline-size:0;margin:0;}
.cp-comments .comment-form>.comment-form-author,.cp-comments .comment-form>.comment-form-email{grid-column:auto;}
.cp-comments :is(.comment-notes,.logged-in-as,.must-log-in){color:var(--cp-comment-muted);font-size:.88rem;line-height:1.8;}
.cp-comments .comment-form label{display:block;margin-block-end:8px;color:#e6e9ef;font-size:.9rem;line-height:1.6;}
.cp-comments .required{color:var(--cp-comment-gold);}
.cp-comments .comment-form :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),textarea,select){display:block;inline-size:100%;max-inline-size:100%;min-inline-size:0;min-block-size:46px;margin:0;padding:12px 14px;border:1px solid #49505e;border-radius:8px;background:#090c11;color:#f4f5f8;font:inherit;font-size:1rem;line-height:1.6;}
.cp-comments .comment-form textarea{min-block-size:170px;resize:vertical;}
.cp-comments .comment-form :is(input,textarea)::placeholder{color:var(--cp-comment-muted);opacity:1;}
.cp-comments .comment-form :is(input,textarea,select):focus{border-color:var(--cp-comment-gold);}
.cp-comments .comment-form input:is([type="email"],[type="url"]){direction:ltr;text-align:start;}
.cp-comments .comment-form-cookies-consent{display:flex;align-items:flex-start;gap:10px;}
.cp-comments .comment-form-cookies-consent input[type="checkbox"]{appearance:auto;flex:0 0 18px;inline-size:18px;block-size:18px;min-inline-size:18px;margin-block:4px 0;margin-inline:0;padding:0;border:revert;background:revert;accent-color:var(--cp-comment-gold);cursor:pointer;}
.cp-comments .comment-form-cookies-consent label{margin:0;color:var(--cp-comment-muted);font-size:.85rem;}
.cp-comments .form-submit .submit{display:inline-flex;align-items:center;justify-content:center;inline-size:auto;min-block-size:46px;max-inline-size:100%;margin:0;padding:12px 26px;border:1px solid #e8c875;border-radius:8px;background:linear-gradient(120deg,#f1d58c,#d4aa4c);color:#17130b;font:inherit;font-size:.95rem;font-weight:700;line-height:1.5;text-align:center;white-space:normal;cursor:pointer;transition:filter .2s;}
.cp-comments .form-submit .submit:hover{filter:brightness(1.08);}
.cp-comments .form-submit .submit:disabled{opacity:.6;cursor:not-allowed;}

/* Comment pagination uses the original WordPress links and accessible labels. */
.cp-comments .comments-pagination{margin-block:26px;}
.cp-comments .comments-pagination .nav-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;}
.cp-comments .comments-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-inline-size:42px;min-block-size:42px;padding:7px 13px;border:1px solid #4c4430;border-radius:7px;background:#16171c;color:var(--cp-comment-gold);font-size:.9rem;line-height:1.5;text-decoration:none;}
.cp-comments .comments-pagination :is(.current,a:hover){border-color:var(--cp-comment-gold);background:var(--cp-comment-gold);color:#17130b;}
.cp-comments .comments-pagination .dots{border-color:transparent;background:none;color:var(--cp-comment-muted);}

/* Logical spacing mirrors threads in RTL. Stop deep threads shrinking phone layouts. */
@media(max-width:767px){.cp-comments{inline-size:95%;padding:16px;}.cp-comments .comment-body{padding:14px;}.cp-comments .children{margin-inline-start:8px;padding-inline-start:12px;}.cp-comments .children .children{margin-inline-start:0;padding-inline-start:0;border-inline-start:0;}.cp-comments .comment-meta>.comment-metadata{flex-basis:100%;margin-inline-start:0;text-align:start;}.cp-comments .comment-author .avatar{flex-basis:40px;inline-size:40px;block-size:40px;}.cp-comments .comment-form{grid-template-columns:minmax(0,1fr);}.cp-comments .comment-respond{padding:14px;}.cp-comments .comment-list .comment-respond{padding:12px;}}
@media(max-width:479px){.cp-comments{padding:12px;}.cp-comments .form-submit .submit{inline-size:100%;}.cp-comments .comment-reply-title small{display:block;margin-inline-start:0;}}
@media(prefers-reduced-motion:reduce){.cp-comments :is(.comment-reply-link,.comment-reply-login),.cp-comments .form-submit .submit{transition:none;}}
