/* BNO Modern Comments. All selectors are scoped to #comments.bnomc-area.
   No webfonts, animation libraries, icons, images, or layout dependencies. */
#comments.bnomc-area {
  --bnomc-ink: #1b2b3d;
  --bnomc-muted: #858a91;
  --bnomc-surface: #eef1f3;
  --bnomc-accent: #146fb3;
  --bnomc-border: #b7c0cc;
  --bnomc-avatar-size: 32px;
  --bnomc-thread-indent: 42px;
  --bnomc-thread-gap: 13px;
  --bnomc-thread-line: 2px;
  --bnomc-thread-color: #d6d9dd;
  width: 100%;
  max-width: 100%;
  margin: 28px 0 18px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--bnomc-ink);
  font-family: inherit; font-size: 15.5px; font-weight: 400; line-height: 1.52;
  text-align: left;
}
#comments.bnomc-area, #comments.bnomc-area * { box-sizing: border-box; }
#comments.bnomc-area a { text-decoration: none; }
#comments.bnomc-area a:hover { text-decoration: underline; }
#comments.bnomc-area :focus-visible { outline: 2px solid #2678c9; outline-offset: 2px; }
#comments.bnomc-area .screen-reader-text {
  position: absolute !important; height: 1px; width: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
/* Dropdown modeled on the compact menu in the reference image. */
#comments.bnomc-area .bnomc-toolbar { position: relative; z-index: 4; margin: 0 0 12px; }
#comments.bnomc-area .bnomc-sort { position: relative; display: inline-block; font-size: 13px; color: #787d84; }
#comments.bnomc-area .bnomc-sort > summary {
  display: inline-flex; gap: 22px; align-items: center; padding: 4px 6px;
  cursor: pointer; user-select: none; list-style: none; font-weight: 400;
}
#comments.bnomc-area summary::-webkit-details-marker { display: none; }
#comments.bnomc-area .bnomc-chevron {
  width: 7px; height: 7px; border-right: 1.5px solid #9aa0a8; border-bottom: 1.5px solid #9aa0a8;
  transform: rotate(45deg); margin-top: -4px; transition: transform 0.12s ease;
}
#comments.bnomc-area .bnomc-sort[open] .bnomc-chevron { transform: rotate(225deg); margin-top: 4px; }
#comments.bnomc-area .bnomc-sort-menu {
  position: absolute; z-index: 8; left: 0; top: calc(100% + 5px); min-width: 142px;
  padding: 6px 0; border: 1px solid #e1e4e8; border-radius: 6px;
  background: #fff; box-shadow: 0 5px 14px rgba(13, 23, 35, 0.12);
}
#comments.bnomc-area .bnomc-sort-menu a {
  display: block; padding: 7px 12px; color: #4e5965; font-size: 13px; line-height: 1.3;
}
#comments.bnomc-area .bnomc-sort-menu a:hover,
#comments.bnomc-area .bnomc-sort-menu a[aria-current="true"] {
  color: #243447; background: #f1f4f6; font-weight: 600; text-decoration: none;
}
/* Native WP Walker_Comment output: a li owns its row and nested ol.children.
   Branch connectors use only CSS pseudo-elements (no SVG, JS, or extra DOM).
   The outer vertical line and each child's curved elbow meet at the avatar
   center. Lines continue between siblings but stop at the final child. */
#comments.bnomc-area ol.bnomc-list,
#comments.bnomc-area .bnomc-list ol.children {
  list-style: none; margin: 0; padding: 0; border: 0;
}
#comments.bnomc-area .bnomc-list li.bnomc-comment {
  position: relative; list-style: none; margin: 0 0 var(--bnomc-thread-gap);
  padding: 0; border: 0; background: none;
}
#comments.bnomc-area .bnomc-list ol.children {
  margin-block-start: var(--bnomc-thread-gap);
  margin-inline-start: var(--bnomc-thread-indent);
}
#comments.bnomc-area .bnomc-row {
  position: relative; display: flex; gap: 10px;
  align-items: flex-start; width: 100%;
}
#comments.bnomc-area .bnomc-avatar,
#comments.bnomc-area .bnomc-compose-avatar {
  position: relative; display: grid; place-items: center;
  width: var(--bnomc-avatar-size); height: var(--bnomc-avatar-size);
  flex: 0 0 var(--bnomc-avatar-size); border-radius: 50%; overflow: hidden;
  background: #dedede; color: #52565c;
}
/* Text is rendered on the server, so the initial is visible even before JS. */
#comments.bnomc-area .bnomc-avatar-initial {
  font: 500 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center; user-select: none; pointer-events: none;
}
#comments.bnomc-area .bnomc-avatar img.bnomc-avatar-image,
#comments.bnomc-area .bnomc-compose-avatar img.bnomc-avatar-image {
  display: block; position: absolute; inset: 0;
  width: var(--bnomc-avatar-size); height: var(--bnomc-avatar-size);
  border: 0; border-radius: 50%; object-fit: cover; aspect-ratio: 1 / 1;
}
/* From a parent avatar's bottom, continue to the first reply elbow.
   The negative bottom covers the gap before the nested comment list. */
#comments.bnomc-area .bnomc-list li.bnomc-comment:has(> ol.children:not([hidden]) > li.bnomc-comment) > .bnomc-row::before {
  content: ""; position: absolute; pointer-events: none;
  inset-inline-start: calc((var(--bnomc-avatar-size) - var(--bnomc-thread-line)) / 2);
  top: var(--bnomc-avatar-size);
  bottom: calc(-1 * var(--bnomc-thread-gap));
  width: var(--bnomc-thread-line); background: var(--bnomc-thread-color);
}
/* Compact Reddit-style "2 more replies" control. Hidden reply content is NOT
   included in the initial HTML; the line reaches the plus icon while closed. */
#comments.bnomc-area .bnomc-reply-control {
  height: 25px; margin-block-start: 4px;
  padding-inline-start: calc((var(--bnomc-avatar-size) / 2) - 8px);
  display: flex; align-items: center; position: relative;
}
#comments.bnomc-area .bnomc-replies-link {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--bnomc-accent); font-size: 12px; font-weight: 500;
  line-height: 1.4; min-height: 25px; text-decoration: none;
}
#comments.bnomc-area .bnomc-replies-link:hover { text-decoration: underline; }
/* Draw the plus and minus from centered CSS strokes, not font glyphs.
   Text glyphs have different baseline/ascent metrics across devices. */
#comments.bnomc-area .bnomc-replies-icon {
  position: relative; display: block; flex: 0 0 16px;
  width: 16px; height: 16px;
  border: 1.5px solid currentColor; border-radius: 50%;
  color: #52616e; background: #fff;
}
#comments.bnomc-area .bnomc-replies-icon::before,
#comments.bnomc-area .bnomc-replies-icon::after {
  content: ""; position: absolute; pointer-events: none;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 1px; background: currentColor;
}
#comments.bnomc-area .bnomc-replies-icon::before { width: 8px; height: 2px; }
#comments.bnomc-area .bnomc-replies-icon::after { width: 2px; height: 8px; }
#comments.bnomc-area .bnomc-replies-link[aria-expanded="true"] .bnomc-replies-icon::after {
  display: none;
}
#comments.bnomc-area .bnomc-replies-link[aria-busy="true"] { opacity: .65; cursor: progress; }
#comments.bnomc-area .bnomc-list ol.children[hidden],
#comments.bnomc-area .bnomc-load-more[hidden] { display: none !important; }
/* For collapsed threads, draw from the parent avatar to the expand icon. */
#comments.bnomc-area .bnomc-list li.bnomc-comment:has(> .bnomc-reply-control):not(:has(> ol.children:not([hidden]) > li.bnomc-comment)) > .bnomc-row::before {
  content: ""; position: absolute; pointer-events: none;
  inset-inline-start: calc((var(--bnomc-avatar-size) - var(--bnomc-thread-line)) / 2);
  top: var(--bnomc-avatar-size); bottom: -16px;
  width: var(--bnomc-thread-line); background: var(--bnomc-thread-color);
}
/* The open branch includes the 25px control and its 4px top margin. */
#comments.bnomc-area .bnomc-list li.bnomc-comment:has(> .bnomc-reply-control):has(> ol.children:not([hidden]) > li.bnomc-comment) > .bnomc-row::before {
  bottom: calc(-1 * (29px + var(--bnomc-thread-gap)));
}
#comments.bnomc-area .bnomc-load-more { margin: 5px 0 5px var(--bnomc-thread-indent); }
#comments.bnomc-area .bnomc-load-more-button {
  padding: 3px 0; border: 0; background: transparent;
  box-shadow: none; font: inherit; font-size: 12px;
  color: var(--bnomc-accent); cursor: pointer;
}
#comments.bnomc-area .bnomc-load-more-button:hover { text-decoration: underline; }
#comments.bnomc-area .bnomc-load-more-button:disabled { opacity: .6; cursor: progress; }

/* The 90-degree curve joins the parent/sibling spine to each reply avatar.
   Start at the reply row's top and end at its avatar's vertical midpoint. */
#comments.bnomc-area .bnomc-list ol.children > li.bnomc-comment::before {
  content: ""; position: absolute; pointer-events: none;
  /* Match the straight spine's exact 2px centerline, not a 1px-offset center. */
  inset-inline-start: calc((var(--bnomc-avatar-size) - var(--bnomc-thread-line)) / 2 - var(--bnomc-thread-indent));
  /* End flush against the reply avatar, rather than stopping 8px short. */
  top: 0; width: calc(var(--bnomc-thread-indent) - (var(--bnomc-avatar-size) - var(--bnomc-thread-line)) / 2);
  height: calc(var(--bnomc-avatar-size) / 2);
  border-inline-start: var(--bnomc-thread-line) solid var(--bnomc-thread-color);
  border-bottom: var(--bnomc-thread-line) solid var(--bnomc-thread-color);
  border-end-start-radius: 12px;
}
/* Keep the sibling spine continuous through each rounded elbow.
   Starting at the child row's top (not at the avatar midpoint) fills the
   gap introduced by the elbow's 12px radius. Only non-final siblings get
   this continuation; the final sibling still ends in a rounded elbow. */
#comments.bnomc-area .bnomc-list ol.children > li.bnomc-comment:not(:last-child)::after {
  content: ""; position: absolute; pointer-events: none;
  inset-inline-start: calc((var(--bnomc-avatar-size) - var(--bnomc-thread-line)) / 2 - var(--bnomc-thread-indent));
  top: 0;
  bottom: calc(-1 * var(--bnomc-thread-gap));
  width: var(--bnomc-thread-line);
  background: var(--bnomc-thread-color);
}
#comments.bnomc-area .bnomc-main { flex: 1 1 0%; min-width: 0; }
#comments.bnomc-area .bnomc-card {
  min-width: 0; padding: 9px 12px 10px; background: var(--bnomc-surface);
  border: 0; border-radius: 12px; box-shadow: none;
}
#comments.bnomc-area .bnomc-card-header {
  display: flex; align-items: baseline; gap: 10px; position: relative;
  min-height: 23px; margin: 0 0 2px;
}
#comments.bnomc-area .bnomc-author {
  display: inline-block; max-width: 65%; color: var(--bnomc-ink);
  font-size: 15px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere;
}
#comments.bnomc-area .bnomc-date-link,
#comments.bnomc-area .bnomc-date-link time {
  color: var(--bnomc-muted); font-size: 12px; font-weight: 500;
  line-height: 1.35; white-space: nowrap;
}
#comments.bnomc-area .bnomc-more { margin: -5px -3px -3px auto; position: relative; flex: 0 0 auto; align-self: flex-start; }
#comments.bnomc-area .bnomc-more > summary {
  width: 24px; height: 26px; display: grid; place-items: center;
  padding: 0; list-style: none; cursor: pointer; color: #56616a;
  border-radius: 5px; line-height: 1; font-size: 20px;
}
#comments.bnomc-area .bnomc-more > summary:hover { background: #e3e7ea; }
#comments.bnomc-area .bnomc-more-menu {
  position: absolute; top: 28px; right: 0; z-index: 3;
  min-width: 140px; padding: 5px 0; background: #fff; border: 1px solid #e0e3e6;
  border-radius: 7px; box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
#comments.bnomc-area .bnomc-more-menu a {
  display: block; padding: 7px 11px; color: var(--bnomc-ink);
  font-size: 12px; white-space: nowrap;
}
#comments.bnomc-area .bnomc-more-menu a:hover { background: #f3f5f7; text-decoration: none; }
/* WordPress-native parent-author link, inline with the first reply sentence. */
#comments.bnomc-area .bnomc-content .bnomc-parent-link {
  color: var(--bnomc-accent); font-weight: 500;
  text-decoration: underline; text-underline-offset: 2px;
}
#comments.bnomc-area li.bnomc-comment { scroll-margin-top: 90px; }
#comments.bnomc-area .bnomc-content {
  color: var(--bnomc-ink); font-size: 15px; line-height: 1.57;
  overflow-wrap: anywhere; word-break: normal;
}
#comments.bnomc-area .bnomc-content p { margin: 0 0 5px; padding: 0; }
#comments.bnomc-area .bnomc-content p:last-child { margin-bottom: 0; }
#comments.bnomc-area .bnomc-content a { color: var(--bnomc-accent); text-decoration: underline; text-underline-offset: 2px; }
#comments.bnomc-area .bnomc-content img,
#comments.bnomc-area .bnomc-content iframe { max-width: 100%; height: auto; }
#comments.bnomc-area .bnomc-content pre { overflow-x: auto; max-width: 100%; }
#comments.bnomc-area .bnomc-content ul,
#comments.bnomc-area .bnomc-content ol { margin: 6px 0 6px 22px; }
#comments.bnomc-area .bnomc-moderation { margin: 0 0 6px; font-size: 12px; color: #946a19; }
#comments.bnomc-area .bnomc-actions { min-height: 20px; padding: 4px 0 0 10px; }
#comments.bnomc-area .bnomc-actions a {
  color: #8b8f94; font-size: 11px; line-height: 1.5; font-weight: 600;
}
#comments.bnomc-area .bnomc-actions a:hover { color: #566774; }
/* Keep the main composer above sorting/comments; avoid an empty gap while
   its original form is moved under a particular comment for an AJAX reply. */
#comments.bnomc-area .bnomc-form-slot:has(> .bnomc-respond),
#comments.bnomc-area .bnomc-form-slot:has(> .bnomc-closed) {
  margin-block-end: 20px;
}
#comments.bnomc-area .bnomc-form-slot > .bnomc-respond { margin: 0; }
/* Comment form: gray shell, avatar left, white textbox, dark button right. */
#comments.bnomc-area .bnomc-respond {
  position: relative; max-width: 100%; margin: 15px 0 0;
  padding: 10px 10px 10px 58px; background: var(--bnomc-surface);
  border: none; border-radius: 12px; box-shadow: none;
}
#comments.bnomc-area .bnomc-comment .bnomc-main > .bnomc-respond { margin-left: 0; }
#comments.bnomc-area .bnomc-compose-avatar { position: absolute; top: 10px; left: 10px; }
#comments.bnomc-area .bnomc-respond #reply-title {
  margin: 0 0 8px; padding: 0; border: none; background: none;
  color: #55626e; font-size: 12px; font-weight: 600; line-height: 1.4;
}
#comments.bnomc-area .bnomc-form-slot #reply-title { display: none; }
#comments.bnomc-area #cancel-comment-reply-link {
  display: inline-block; margin-left: 10px; color: #7b858e; font-size: 12px;
}
#comments.bnomc-area .bnomc-form {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 8px 10px; margin: 0; padding: 0;
}
#comments.bnomc-area .bnomc-form > p { margin: 0; padding: 0; }
#comments.bnomc-area .bnomc-form .comment-form-comment { grid-column: 1 / -1; grid-row: 1; }
#comments.bnomc-area .bnomc-form .comment-form-author { grid-column: 1; }
#comments.bnomc-area .bnomc-form .comment-form-email { grid-column: 2; }
#comments.bnomc-area .bnomc-form .comment-form-cookies-consent { grid-column: 1 / -1; }
#comments.bnomc-area .bnomc-form .bnomc-form-footer { grid-column: 1 / -1; }
#comments.bnomc-area .bnomc-form label { color: #566371; font-size: 12px; }
#comments.bnomc-area .bnomc-form .comment-form-author label,
#comments.bnomc-area .bnomc-form .comment-form-email label { display: block; margin-bottom: 3px; }
#comments.bnomc-area .bnomc-form textarea:not([aria-hidden="true"]),
#comments.bnomc-area .bnomc-form input[type="text"],
#comments.bnomc-area .bnomc-form input[type="email"] {
  width: 100%; max-width: 100%; padding: 10px 12px; margin: 0;
  background: #fff; color: var(--bnomc-ink); border: 1px solid var(--bnomc-border);
  border-radius: 9px; box-shadow: none; outline: none;
  font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1.5;
}
#comments.bnomc-area .bnomc-form textarea:not([aria-hidden="true"]) {
  display: block; min-height: 85px; height: 85px; resize: vertical;
}
#comments.bnomc-area .bnomc-form textarea:not([aria-hidden="true"])::placeholder,
#comments.bnomc-area .bnomc-form input::placeholder { color: #a6aab0; opacity: 1; }
#comments.bnomc-area .bnomc-form textarea:not([aria-hidden="true"]):focus,
#comments.bnomc-area .bnomc-form input[type="text"]:focus,
#comments.bnomc-area .bnomc-form input[type="email"]:focus { border-color: #6398cf; box-shadow: 0 0 0 2px rgba(57,115,182,0.13); }
#comments.bnomc-area .bnomc-form .comment-form-cookies-consent { display: flex; gap: 7px; align-items: flex-start; }
#comments.bnomc-area .bnomc-form input[type="checkbox"] { margin: 2px 0 0; flex: 0 0 auto; }
#comments.bnomc-area .bnomc-form .bnomc-form-footer { display: flex; justify-content: flex-end; align-items: center; margin: 0; padding: 2px 0 0; }
#comments.bnomc-area .bnomc-form .bnomc-submit {
  display: inline-block; min-height: 33px; min-width: 69px; margin: 0; padding: 6px 14px;
  border: 0; border-radius: 8px; background: #2e343d; color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.35; letter-spacing: 0; cursor: pointer; box-shadow: none;
}
#comments.bnomc-area .bnomc-form .bnomc-submit:hover,
#comments.bnomc-area .bnomc-form .bnomc-submit:focus { background: #202730; color: #fff; }
#comments.bnomc-area .must-log-in,
#comments.bnomc-area .bnomc-empty,
#comments.bnomc-area .bnomc-closed { margin: 12px 0; font-size: 13px; color: #65717d; }
#comments.bnomc-area .bnomc-pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 18px 0; font-size: 13px; }
#comments.bnomc-area .bnomc-pagination a,
#comments.bnomc-area .bnomc-pagination .current,
#comments.bnomc-area .bnomc-pagination .dots {
  display: inline-block; padding: 5px 10px; background: #edf1f3;
  border-radius: 6px; color: #34475a;
}
#comments.bnomc-area .bnomc-pagination .current { background: #2e343d; color: #fff; }
@media (max-width: 640px) {
  #comments.bnomc-area { font-size: 14px; --bnomc-thread-indent: 34px; }
  #comments.bnomc-area .bnomc-row { gap: 8px; }
  #comments.bnomc-area .bnomc-card { padding: 9px 10px 10px; border-radius: 11px; }
  #comments.bnomc-area .bnomc-author { font-size: 13px; }
  #comments.bnomc-area .bnomc-date-link time { font-size: 11px; }
  #comments.bnomc-area .bnomc-content { font-size: 14px; }
  #comments.bnomc-area .bnomc-respond { padding-left: 47px; }
  #comments.bnomc-area .bnomc-comment .bnomc-main > .bnomc-respond { margin-left: 0; }
  #comments.bnomc-area .bnomc-form .comment-form-author,
  #comments.bnomc-area .bnomc-form .comment-form-email { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  #comments.bnomc-area .bnomc-chevron { transition: none; }
}

/* AJAX state is only visible after an interaction; no loading animation/layout shift. */
#comments.bnomc-area .bnomc-live-status[hidden] { display: none; }
#comments.bnomc-area .bnomc-live-status {
  margin: 0 0 12px; padding: 8px 12px; border-radius: 8px;
  color: #34475a; background: #edf1f3; font-size: 13px; line-height: 1.5;
}
#comments.bnomc-area .bnomc-live-status[data-state="error"] { color: #842c2c; background: #fff0f0; }
#comments.bnomc-area .bnomc-live-status[data-state="success"] { color: #285d41; background: #ecf7ef; }
#comments.bnomc-area .bnomc-form .bnomc-submit:disabled { opacity: 0.66; cursor: wait; }
