.sw-sui-reactions,
.sw-sui-comments {
  --sui-ink: #14384a;
  --sui-accent: #0874b9;
  --sui-pale: #edf7fb;
  --sui-border: #cfe1ea;
  box-sizing: border-box;
  width: min(100%, 52rem);
  margin: clamp(2.5rem, 7vw, 5rem) auto;
  color: var(--sui-ink);
}

.sw-sui-reactions {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--sui-border);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #fff 0%, var(--sui-pale) 100%);
  text-align: center;
  box-shadow: 0 1rem 2.5rem rgba(20, 56, 74, 0.08);
}

.sw-sui-reactions__eyebrow,
.sw-sui-comments__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--sui-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.entry .sw-sui-reactions h2,
.entry .sw-sui-comments h2 {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sui-ink);
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  line-height: 1.4;
}

.sw-sui-reactions__buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.sw-sui-reaction {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.45rem;
  align-items: center;
  min-height: 5rem;
  padding: 0.75rem;
  border: 1px solid var(--sui-border);
  border-radius: 0.9rem;
  background: #fff;
  color: var(--sui-ink);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.sw-sui-reaction:hover,
.sw-sui-reaction:focus-visible {
  border-color: var(--sui-accent);
  box-shadow: 0 0.45rem 1.2rem rgba(8, 116, 185, 0.14);
  transform: translateY(-2px);
  outline: none;
}

.sw-sui-reaction[aria-pressed="true"] {
  border-color: var(--sui-accent);
  background: var(--sui-accent);
  color: #fff;
}

.sw-sui-reaction:disabled {
  cursor: wait;
  opacity: 0.58;
}

.sw-sui-reaction__icon {
  grid-row: 1 / 3;
  font-size: 1.45rem;
  font-weight: 700;
}

.sw-sui-reaction__label {
  align-self: end;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.sw-sui-reaction__count {
  align-self: start;
  min-width: 1.65rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--sui-pale);
  color: var(--sui-ink);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.sw-sui-reactions__status {
  min-height: 1.5em;
  margin: 0.85rem 0 0;
  color: #496773;
  font-size: 0.86rem;
}

.sw-sui-comments {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--sui-border);
}

.sw-sui-comments__heading > p:last-child {
  margin: 0.75rem 0 0;
  color: #496773;
}

.sw-sui-comment-list {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.sw-sui-comment {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.sw-sui-comment__body {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.85rem;
  padding: 1.15rem;
  border: 1px solid var(--sui-border);
  border-radius: 0.9rem;
  background: #fff;
}

.sw-sui-comment__avatar {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--sui-pale);
  color: var(--sui-accent);
  font-weight: 700;
}

.sw-sui-comment__content header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: baseline;
  margin-bottom: 0.55rem;
}

.sw-sui-comment__content time {
  color: #6c7f87;
  font-size: 0.78rem;
}

.sw-sui-comment__text > :first-child { margin-top: 0; }
.sw-sui-comment__text > :last-child { margin-bottom: 0; }

.sw-sui-comments__empty,
.sw-sui-comments__closed {
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 0.7rem;
  background: var(--sui-pale);
  color: #496773;
}

.sw-sui-comments .comment-respond {
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: 1rem;
  background: #f6fafc;
}

.entry .sw-sui-comments .comment-reply-title {
  margin: 0 0 0.6rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sui-ink);
  font-size: 1.2rem;
}

.sw-sui-comments .comment-notes {
  margin: 0 0 1.25rem;
  color: #5c727c;
  font-size: 0.86rem;
}

.sw-sui-comments .comment-form-author,
.sw-sui-comments .comment-form-email,
.sw-sui-comments .comment-form-comment {
  margin: 0 0 1rem;
}

.sw-sui-comments label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--sui-ink);
  font-weight: 700;
}

.sw-sui-comments input[type="text"],
.sw-sui-comments input[type="email"],
.sw-sui-comments textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #b9cdd6;
  border-radius: 0.55rem;
  background: #fff;
  color: #17333f;
  font: inherit;
}

.sw-sui-comments input:focus,
.sw-sui-comments textarea:focus {
  border-color: var(--sui-accent);
  outline: 3px solid rgba(8, 116, 185, 0.16);
}

.sw-sui-comments .required { color: #a43b31; font-size: 0.78rem; }
.sw-sui-comments .optional { color: #6c7f87; font-size: 0.78rem; }

.sw-sui-comment-submit {
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--sui-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sw-sui-comment-submit:hover,
.sw-sui-comment-submit:focus-visible {
  background: #075f97;
  outline: 3px solid rgba(8, 116, 185, 0.2);
}

.sw-sui-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

@media (max-width: 47.99rem) {
  .sw-sui-reactions__buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-sui-reaction { min-height: 4.5rem; }
}

@media (max-width: 24rem) {
  .sw-sui-reactions { padding: 1.15rem; border-radius: 0.9rem; }
  .sw-sui-reactions__buttons { grid-template-columns: 1fr; }
  .sw-sui-comment__body { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .sw-sui-reaction { transition: none; }
}

