
/* v1.0.8: Block comments — enforce author/date inline and bullet rendering */

/* Author + date inline, exactly for the provided structure */
.wp-block-comments .wp-block-comment-template > li .wp-block-group .wp-block-comment-author-name,
.wp-block-comments .wp-block-comment-template > li .wp-block-group .wp-block-comment-date{
  display: inline !important;
  margin: 0 !important;
  vertical-align: baseline;
  line-height: 1.4;
  font-size: .95rem;
}
.wp-block-comments .wp-block-comment-template > li .wp-block-group .wp-block-comment-author-name a{
  font-weight: 600;
}
.wp-block-comments .wp-block-comment-template > li .wp-block-group .wp-block-comment-date::before{
  content: " on ";
  opacity: .7;
  margin: 0 .25rem;
}

/* Ensure bullets and numbering appear */
.wp-block-comments .wp-block-comment-template > li .wp-block-comment-content ul{
  list-style: disc !important;
  list-style-position: outside;
  padding-left: 1.25rem;
  margin: .5rem 0 .5rem 1rem;
}
.wp-block-comments .wp-block-comment-template > li .wp-block-comment-content ol{
  list-style: decimal !important;
  list-style-position: outside;
  padding-left: 1.25rem;
  margin: .5rem 0 .5rem 1rem;
}
.wp-block-comments .wp-block-comment-template > li .wp-block-comment-content li{
  margin: .25rem 0;
}

/* Keep quotes, code, etc. consistent in block comments */
.wp-block-comments .wp-block-comment-template > li .wp-block-comment-content blockquote{
  border-left: 3px solid rgba(0,0,0,.18);
  padding-left: 1rem;
  margin: 1rem 0;
}
.wp-block-comments .wp-block-comment-template > li .wp-block-comment-content blockquote p{ font-style: italic; }

.wp-block-comments .wp-block-comment-template > li .wp-block-comment-content pre{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .9rem;
  line-height: 1.5;
  background: rgba(0,0,0,.035);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 6px;
  padding: .75rem 1rem;
  overflow: auto;
  margin: .75rem 0;
}
.wp-block-comments .wp-block-comment-template > li .wp-block-comment-content pre code{
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}
.wp-block-comments .wp-block-comment-template > li .wp-block-comment-content :not(pre) > code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .9em;
  background: rgba(0,0,0,.035);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 4px;
  padding: .1em .3em;
}

.wp-block-comments .wp-block-comment-template > li .wp-block-comment-content a{
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}
.wp-block-comments .wp-block-comment-template > li .wp-block-comment-content a:hover{ text-decoration-thickness: 2px; }
.wp-block-comments .wp-block-comment-template > li .wp-block-comment-content a:focus-visible{ outline: 2px solid rgba(0,0,0,.25); outline-offset: 2px; }

/* Slightly more consistent p spacing in comments */
.wp-block-comments .wp-block-comment-template > li .wp-block-comment-content p{ margin: .6rem 0; }


/* v1.1.1: Numbered comments + separators with high specificity */
.wp-block-comments .wp-block-comment-template{ counter-reset: rubin-cmts; }
.wp-block-comments .wp-block-comment-template > li{ counter-increment: rubin-cmts; border-top:1px solid rgba(0,0,0,.15) !important; padding-top:.75rem !important; }
.wp-block-comments .wp-block-comment-template > li:first-child{ border-top:0 !important; padding-top:0 !important; }

/* Insert number before author name (robust) */
.wp-block-comments .wp-block-comment-template > li .wp-block-group .wp-block-comment-author-name{ display:inline !important; }
.wp-block-comments .wp-block-comment-template > li .wp-block-group .wp-block-comment-date{ display:inline !important; }
.wp-block-comments .wp-block-comment-template > li .wp-block-group .wp-block-comment-author-name::before{
  content: counter(rubin-cmts) ". " !important;
  opacity:.8;
  margin-right:.15rem;
}

/* Keep the " on " joiner */
.wp-block-comments .wp-block-comment-template > li .wp-block-group .wp-block-comment-date::before{
  content:" on ";
  opacity:.7;
  margin:0 .25rem;
}



/* v1.1.2: Hierarchical numbering (1, 1.1, 1.1.1...) and separators at all depths */
.wp-block-comments .wp-block-comment-template,
.wp-block-comments .wp-block-comment-template ol{
  counter-reset: rubin-cmts;
}
.wp-block-comments .wp-block-comment-template li{
  counter-increment: rubin-cmts;
}

/* Show hierarchical chain before author name */
.wp-block-comments .wp-block-comment-template li .wp-block-group .wp-block-comment-author-name::before{
  content: counters(rubin-cmts, ".") ". " !important;
  opacity: .8;
  margin-right: .15rem;
}

/* Keep author/date inline and join with " on " */
.wp-block-comments .wp-block-comment-template li .wp-block-group .wp-block-comment-author-name,
.wp-block-comments .wp-block-comment-template li .wp-block-group .wp-block-comment-date{
  display: inline !important;
}
.wp-block-comments .wp-block-comment-template li .wp-block-group .wp-block-comment-date::before{
  content: " on ";
  opacity: .7;
  margin: 0 .25rem;
}

/* Muted separator for each sibling (all depths) */
.wp-block-comments .wp-block-comment-template li{
  border-top: 1px solid rgba(0,0,0,.15) !important;
  padding-top: .75rem !important;
}
.wp-block-comments .wp-block-comment-template li:first-child{
  border-top: 0 !important;
  padding-top: 0 !important;
}

/* v1.1.3: Do not draw separators or increment counters inside comment content lists */
.wp-block-comments .wp-block-comment-content li{
  border-top: 0 !important;
  padding-top: 0 !important;
  counter-increment: none !important;
}

/* 1.1.4: Draw separator above first reply too */
.wp-block-comments .wp-block-comment-template > li:first-child {
  border-top: 0 !important;
  padding-top: 0 !important;
}

/* For nested threads, show the separator even on the first li at that depth */
.wp-block-comments .wp-block-comment-template ol > li:first-child {
  border-top: 1px solid rgba(0,0,0,.15) !important;
  padding-top: .75rem !important;
}
