.community-panel {
  width: min(920px, calc(100% - 32px));
  margin: 72px auto 56px;
  padding: clamp(24px, 5vw, 48px);
  color: var(--ink, #26352f);
  background: color-mix(in srgb, var(--paper, #f5f0e4) 92%, white);
  border: 1px solid color-mix(in srgb, var(--ink, #26352f) 16%, transparent);
  border-radius: 2px;
  box-shadow: 0 18px 50px rgb(38 53 47 / 8%);
}

.community-heading {
  margin-bottom: 26px;
  text-align: center;
}

.community-heading span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent, #9a493d);
  font-size: 12px;
  letter-spacing: .28em;
}

.community-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 500;
  letter-spacing: .12em;
}

.community-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 0 36px;
}

.community-action {
  min-width: 116px;
  min-height: 44px;
  padding: 10px 18px;
  color: inherit;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--ink, #26352f) 28%, transparent);
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.community-action:hover,
.community-action:focus-visible,
.community-action.is-liked {
  color: var(--accent, #9a493d);
  background: rgb(154 73 61 / 7%);
  border-color: currentColor;
  outline: none;
}

.artalk-page-vote-up-count:empty::after {
  content: "0";
}

#Comments {
  --at-color-main: var(--accent, #9a493d);
  --at-color-deep: var(--ink, #26352f);
  --at-color-bg: transparent;
  text-align: left;
}

/* Visitors only enter a nickname. Artalk still receives a device-local,
   non-deliverable anonymous address so separate visitors are not conflated. */
#Comments .atk-header .atk-email,
#Comments .atk-header .atk-link {
  display: none !important;
}

#Comments .atk-header .atk-name {
  width: 100%;
  flex: 1 1 100%;
}

.community-privacy {
  margin: 20px 0 0;
  color: color-mix(in srgb, var(--ink, #26352f) 62%, transparent);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.share-dialog {
  width: min(380px, calc(100% - 32px));
  padding: 0;
  color: #26352f;
  background: #fffdf7;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgb(0 0 0 / 22%);
}

.share-dialog::backdrop {
  background: rgb(20 28 25 / 52%);
  backdrop-filter: blur(3px);
}

.share-dialog-inner {
  padding: 28px;
  text-align: center;
}

.share-dialog h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 500;
}

.share-dialog p {
  margin: 0 0 18px;
  color: #66716c;
  font-size: 14px;
}

#shareQr {
  display: grid;
  min-height: 168px;
  place-items: center;
  margin: 0 auto 20px;
}

#shareQr img,
#shareQr canvas {
  padding: 8px;
  background: white;
}

.share-dialog-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.share-dialog-buttons button {
  padding: 9px 16px;
  color: #26352f;
  background: transparent;
  border: 1px solid #aeb7b2;
  border-radius: 999px;
  cursor: pointer;
}

.share-dialog-buttons button:first-child {
  color: white;
  background: #8f453a;
  border-color: #8f453a;
}

@media (max-width: 600px) {
  .community-panel {
    width: calc(100% - 20px);
    margin-top: 44px;
    padding: 24px 14px;
  }

  .community-actions {
    gap: 8px;
  }

  .community-action {
    min-width: 104px;
  }
}
