/* ============ Article (post detail) ============ */
.article-head {
  position: relative;
  overflow: hidden;
  padding: 90px 0 54px;
  min-height: 320px;
  background: var(--bg);
  color: #eef9ff;
  border: 0;
}

.article-head-media {
  position: absolute;
  top: -30px;
  right: -30px;
  bottom: -30px;
  left: -30px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.article-head-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  filter: blur(14px) saturate(1.2);
  opacity: 0.7;
  transform: scale(1.06);
}

.article-head-surface {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 25% 20%, rgba(224, 111, 42, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(8, 22, 34, 0.25) 0%, rgba(8, 22, 34, 0.7) 55%, rgba(8, 22, 34, 0.88) 100%);
  pointer-events: none;
}

.article-head .flux-container {
  position: relative;
  z-index: 2;
}

.article-head h1,
.page-banner-inner h1 {
  color: var(--heading);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
  max-width: 880px;
}

.article-head .article-meta { color: rgba(238, 249, 255, 0.75); }
.page-banner-inner p { color: rgba(238, 249, 255, 0.78); max-width: 680px; }

.article-head h1 {
  font-size: clamp(30px, 4vw, 54px);
  max-width: 880px;
}

.article-head .article-meta { color: rgba(238, 249, 255, 0.75); }

.article-head .tags-list {
  margin-top: 18px;
}

.article-meta {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.article-meta > span::after {
  content: "·";
  margin-left: 14px;
  color: var(--border);
}

.article-meta > span:last-child::after { content: none; }

.article-container {
  margin-top: 40px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
  padding-bottom: 60px;
}

.article-aside {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  align-self: start;
}

.article-toc-wrap { min-width: 0; }

.article-toc-panel,
.article-info {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: none;
}

.article-toc-panel h3,
.article-info h3 {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--heading);
  font-weight: 700;
}

.article-toc {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 4px;
  list-style: none;
}

.article-toc a {
  color: var(--muted);
  padding: 6px 0 6px 12px;
  display: block;
  border-left: 2px solid transparent;
  transition: .2s ease;
  text-decoration: none;
  line-height: 1.45;
}

.article-toc a:hover,
.article-toc a.is-active {
  color: var(--heading);
  border-left-color: var(--blue);
}

html[data-theme="light"] .article-toc a:hover,
html[data-theme="light"] .article-toc a.is-active {
  color: var(--blue-2);
  border-left-color: var(--blue-2);
  background: rgba(224, 111, 42, 0.06);
}

.article-toc a[data-level="3"] { padding-left: 22px; }
.article-toc a[data-level="4"] { padding-left: 34px; }

.article-main { min-width: 0; }

.article-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 44px);
  min-width: 0;
}

.article-content > *:first-child { margin-top: 0 !important; }
.article-content > *:last-child { margin-bottom: 0 !important; }

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin: 2em 0 0.7em;
  font-family: var(--font);
  letter-spacing: 0;
  color: var(--heading);
  line-height: 1.35;
  font-weight: 700;
}

.article-content h2 {
  position: relative;
  font-size: 1.65rem;
  margin: 2em 0 0.9em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--border);
}

.article-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 2px;
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 1.7em 0 0.6em;
  padding-left: 12px;
  border-left: 3px solid var(--blue);
  line-height: 1.4;
}

.article-content h4 {
  font-size: 1.05rem;
  margin: 1.5em 0 0.5em;
  color: var(--heading);
}

.article-content h4::before {
  content: "#";
  margin-right: 8px;
  color: var(--blue);
  font-family: var(--mono);
  font-weight: 500;
}

.article-content h5 { font-size: 0.98rem; color: var(--muted); }
.article-content h6 { font-size: 0.92rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.article-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.article-edit-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(224, 111, 42, 0.26);
  background: rgba(224, 111, 42, 0.12);
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.article-edit-button:hover,
.article-edit-button:focus-visible {
  border-color: rgba(224, 111, 42, 0.55);
  background: rgba(224, 111, 42, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre,
.article-content table { margin: 0 0 1em; }

.article-content p {
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.72;
}

.article-content ul,
.article-content ol {
  color: var(--body);
  padding-left: 1.5em;
  line-height: 1.72;
  font-size: 15.5px;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 0.35em;
}

.article-content ul li::marker { color: var(--blue); }
.article-content ol li::marker { color: var(--blue); font-family: var(--mono); font-weight: 600; }

.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
  margin: 0.3em 0 0.3em;
}

.article-content hr {
  margin: 2.4em auto;
  border: 0;
  height: 1px;
  max-width: 120px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.article-content hr::after {
  content: "· · ·";
  display: block;
  text-align: center;
  color: var(--muted-2);
  letter-spacing: 0.4em;
  transform: translateY(-0.7em);
  background: var(--card-bg);
  width: fit-content;
  margin: 0 auto;
  padding: 0 10px;
}

.article-content a {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

.article-content code {
  font-family: var(--mono);
  color: var(--blue-light);
  background: rgba(224, 111, 42, .1);
  border: 1px solid rgba(224, 111, 42, .15);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}

.article-content pre {
  position: relative;
  margin: 20px 0 28px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-2);
  overflow: hidden;
  padding: 52px 20px 20px;
  box-shadow: none;
}

.article-content pre .code-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
}

.article-content pre .code-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.article-content pre .code-bar-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-content pre .code-bar-dots .code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.article-content pre .code-bar-dots .code-dot:nth-child(1) { background: var(--red); }
.article-content pre .code-bar-dots .code-dot:nth-child(2) { background: var(--yellow); }
.article-content pre .code-bar-dots .code-dot:nth-child(3) { background: var(--green); }

.article-content pre .code-lang {
  color: var(--muted-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.article-content pre .code-copy {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.article-content pre .code-copy:hover {
  color: var(--blue-light);
  border-color: var(--blue);
}

.article-content pre .code-copy.is-copied {
  color: var(--green);
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.08);
}

.article-content pre code {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--body);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  display: block;
  overflow-x: auto;
}

.article-content pre code.hljs {
  color: #e7ddd4;
}

.article-content pre .hljs-keyword,
.article-content pre .hljs-selector-tag,
.article-content pre .hljs-built_in,
.article-content pre .hljs-type {
  color: #ff9f5f;
}

.article-content pre .hljs-title,
.article-content pre .hljs-title.function_,
.article-content pre .hljs-title.class_,
.article-content pre .hljs-section {
  color: #ffd166;
}

.article-content pre .hljs-string,
.article-content pre .hljs-attr,
.article-content pre .hljs-symbol,
.article-content pre .hljs-template-variable {
  color: #8bd49c;
}

.article-content pre .hljs-number,
.article-content pre .hljs-literal,
.article-content pre .hljs-variable,
.article-content pre .hljs-property {
  color: #7cc7ff;
}

.article-content pre .hljs-comment,
.article-content pre .hljs-quote,
.article-content pre .hljs-meta {
  color: #8f8176;
}

.article-content pre .hljs-operator,
.article-content pre .hljs-punctuation {
  color: #d8cfc6;
}

.article-content pre .hljs-deletion {
  color: #ff7f7f;
}

.article-content pre .hljs-addition {
  color: #8bd49c;
}

.article-content img {
  margin: 1.4em auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  max-width: 100%;
  cursor: zoom-in;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: block;
}

.article-content img:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.article-content figure {
  margin: 1.6em 0;
}

.article-content figcaption {
  margin-top: 0.6em;
  text-align: center;
  font-size: 13px;
  color: var(--muted-2);
  font-family: var(--font);
}

.article-content blockquote {
  padding: 14px 18px 14px 20px;
  margin: 1.2em 0;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: rgba(224, 111, 42, 0.06);
  color: var(--body);
  position: relative;
}

.article-content blockquote > :first-child { margin-top: 0; }
.article-content blockquote > :last-child { margin-bottom: 0; }

.article-content blockquote::before {
  content: "“";
  position: absolute;
  top: -2px;
  left: 10px;
  font-size: 2.4em;
  color: var(--blue);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14.5px;
  margin: 1.4em 0;
}

.article-content th,
.article-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--body);
}

.article-content th {
  background: var(--card-2);
  color: var(--heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-content tbody tr:last-child td { border-bottom: 0; }
.article-content tbody tr:hover { background: rgba(224, 111, 42, 0.04); }

.article-content strong { color: var(--heading); font-weight: 700; }
.article-content em { color: var(--body); font-style: italic; }

.article-content kbd {
  display: inline-block;
  padding: 1px 7px;
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--heading);
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: 0 2px 0 var(--border);
  vertical-align: 1px;
}

/* Article info sidebar */
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.info-row:last-child { border-bottom: 0; }
.info-row span:last-child { color: var(--heading); font-family: var(--mono); }

/* Article footer */
.article-footer {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.article-tags {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.article-tags .meta-label {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-neighbors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.neighbor-card {
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 14px;
  padding: 18px;
  color: var(--muted);
  box-shadow: none;
  transition: .2s ease;
}

.neighbor-card:hover { border-color: var(--blue); }

.neighbor-card .meta-label,
.meta-label {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.neighbor-card a {
  color: var(--heading);
  font-weight: 600;
  display: inline-block;
  margin-top: 0;
}

.neighbor-card a:hover { color: var(--blue-light); }

/* ============ Image lightbox (GLightbox overrides) ============ */
.article-content a.glightbox {
  display: inline-block;
  line-height: 0;
}

.glightbox-clean .gslide-description {
  background: rgba(20, 18, 15, 0.94) !important;
  backdrop-filter: blur(8px);
}

.glightbox-clean .gslide-title,
.glightbox-clean .gslide-desc { color: #e5e7eb !important; }

.glightbox-container .gclose,
.glightbox-container .gprev,
.glightbox-container .gnext {
  background-color: rgba(17, 24, 39, 0.7) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  transition: background-color .2s ease, border-color .2s ease;
}

.glightbox-container .gclose:hover,
.glightbox-container .gprev:hover,
.glightbox-container .gnext:hover {
  background-color: rgba(196, 90, 27, 0.3) !important;
  border-color: var(--blue) !important;
}

.glightbox-container .gclose svg,
.glightbox-container .gprev svg,
.glightbox-container .gnext svg { color: #e5e7eb; }

.gcounter { color: var(--muted) !important; font-family: var(--mono); }

/* ============ Comments ============ */
.comment-form-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 18px;
  box-shadow: none;
}

.comment-form-panel.is-disabled {
  display: grid;
  gap: 10px;
  align-content: start;
}

.github-login-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.comment-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-form-panel h3 {
  margin: 0;
  color: var(--heading);
  font-size: 18px;
  font-weight: 700;
  flex: 0 0 auto;
}

.comment-form-panel.is-disabled h3 { margin-bottom: 0; }
.github-login-panel h3 { margin-bottom: 0; }

.comment-form { display: grid; gap: 14px; }
.form-grid { display: grid; gap: 14px; }
.form-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.github-comment-user {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  max-width: min(520px, 72%);
}

.github-comment-user img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.08);
}

.github-comment-user-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 6px;
  min-width: 0;
}

.github-comment-user-main span,
.github-comment-user-main small {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.3;
}

.github-comment-user-main strong {
  color: var(--heading);
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-comment-logout {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 11px;
  text-decoration: none;
  transition: color .15s ease;
}

.github-comment-logout:hover { color: var(--blue-light); }

.github-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.github-login-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.github-login-button svg { flex: 0 0 auto; }

.comment-form label { display: grid; gap: 6px; }

.comment-form span {
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.comment-form textarea {
  height: 132px;
  min-height: 132px;
  max-height: 260px;
  resize: vertical;
}

.comment-form > .button-primary {
  min-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  box-shadow: 0 8px 20px rgba(196, 90, 27, .2);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(224, 111, 42, 0.14);
}

/* ── 评论 emoji 选择器 ────────────────────────────── */
.comment-text-field { display: grid; gap: 6px; }
.comment-text-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.comment-text-head > label {
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.comment-emoji-wrap { position: relative; }

.comment-emoji-toggle {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color .15s ease, transform .15s ease;
}
.comment-emoji-toggle:hover {
  color: var(--blue-light);
  transform: scale(1.1);
}
/* 只有键盘 tab focus 才显示蓝色 + ring,鼠标点击 (:focus) 不改色 */
.comment-emoji-toggle:focus { outline: none; }
.comment-emoji-toggle:focus-visible {
  color: var(--blue-light);
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.comment-emoji-toggle svg { display: block; }

.comment-emoji-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 50;
}
.comment-emoji-panel[hidden] { display: none; }

.comment-emoji-group-title {
  padding: 8px 6px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* 单字符 emoji: 固定 8 列网格 */
.comment-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 0 2px 6px;
}
.comment-emoji-grid button {
  width: 100%;
  height: 34px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  transition: background .12s ease, transform .1s ease;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
}
.comment-emoji-grid button:hover {
  background: rgba(224, 111, 42, 0.16);
  transform: scale(1.15);
}

/* 颜文字: 可换行 chip 流式布局,宽度跟随内容 */
.comment-emoji-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 2px 6px;
}
.comment-emoji-flow button {
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  color: var(--body);
  border-radius: 6px;
  cursor: pointer;
  padding: 5px 9px;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Microsoft YaHei", monospace;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.comment-emoji-flow button:hover {
  background: rgba(224, 111, 42, 0.18);
  border-color: var(--blue);
  color: var(--heading);
}

/* light theme overrides for kaomoji chips */
html[data-theme="light"] .comment-emoji-flow button {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #374151;
}
html[data-theme="light"] .comment-emoji-flow button:hover {
  background: #f8ede3;
  border-color: var(--blue-2);
  color: #111827;
}

/* light theme overrides */
html[data-theme="light"] .comment-emoji-toggle {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #6b7280;
}
html[data-theme="light"] .comment-emoji-toggle:hover {
  background: #e0e7ff;
  border-color: var(--blue-2);
  color: var(--blue-2);
}
html[data-theme="light"] .comment-emoji-panel {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .comment-emoji-grid button:hover { background: #e0e7ff; }

.comment-list,
.comment-list ol,
.comment-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-list-wrap { margin-top: 14px; }

.comment-list .comment-body {
  display: grid;
  grid-template-columns: 42px minmax(0, auto) minmax(0, 1fr);
  grid-template-areas:
    "avatar author meta"
    "avatar content content"
    ". reply reply";
  align-items: start;
  gap: 6px 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: none;
}

.comment-list > .comment-body + .comment-body,
.comment-list .comment-children .comment-body { margin-top: 10px; }

.comment-list .comment-children {
  grid-column: 2 / -1;
  margin-top: 10px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

.comment-list .comment-meta {
  grid-area: meta;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.4;
}

.comment-list .comment-author {
  display: contents;
  color: var(--heading);
  font-weight: 600;
}

.comment-list .comment-author > span[itemprop="image"] {
  grid-area: avatar;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(224, 111, 42, 0.2), rgba(196, 90, 27, 0.08));
  border: 1px solid rgba(224, 111, 42, 0.22);
  color: var(--blue-light);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.comment-list .comment-author > span[itemprop="image"].avatar-fallback::before {
  content: attr(data-initial);
}

.comment-list .comment-author cite {
  grid-area: author;
  min-width: 0;
  color: var(--heading);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}

.comment-list .comment-author cite a {
  color: inherit;
  text-decoration: none;
}

.comment-list .comment-author cite a:hover { color: var(--blue-light); }

.comment-list .comment-content {
  grid-area: content;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
  margin-top: 2px;
}

.comment-list .comment-content p { margin: 0; }
.comment-list .comment-content p + p { margin-top: 8px; }

.comment-list .comment-reply {
  grid-area: reply;
  margin-top: 2px;
}

.comment-list .comment-reply a {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}

.comment-list .comment-reply a:hover { color: var(--blue-light); }

.comment-list .comment-meta a {
  color: inherit;
  text-decoration: none;
}

.comment-list .comment-meta a:hover { color: var(--blue-light); }

.comment-list .avatar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.comment-awaiting-moderation {
  color: var(--blue-light);
  font-style: normal;
  font-weight: 600;
}

.form-note,
.comment-section p {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 600px) {
  .comment-list .comment-body {
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-areas:
      "avatar author"
      "avatar meta"
      "content content"
      "reply reply";
    padding: 12px;
    gap: 4px 10px;
  }

  .comment-list .comment-author > span[itemprop="image"] {
    width: 36px;
    height: 36px;
  }

  .comment-list .comment-children {
    grid-column: 1 / -1;
    padding-left: 12px;
  }
}
