/* Shared public interactions inherit each page's chosen palette and font. */
.community {
  --community-ink: var(--ink, #342c20);
  --community-surface: var(--surface, #fffdf7);
  --community-bg: var(--bg, var(--paper, #f7f3e9));
  --community-line: var(--line, #cbbda8);
  --community-accent: var(--accent, #88432c);
  color: var(--community-ink);
  background: var(--community-surface);
  border: 1px solid var(--community-line);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 32px);
  margin: 36px 0;
  min-width: 0;
  font: inherit;
  line-height: 1.9;
  scroll-margin-top: 24px;
}
.landing > .community { width: calc(100% - 36px); max-width: 1124px; margin: 40px auto 64px; }
.community *, .community-product-link { box-sizing: border-box; }
.community [hidden] { display: none !important; }
.community-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.community .community-eyebrow { font-size: 12px; margin: 0 0 5px; font-weight: 700; }
.community h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.6; margin: 0; color: inherit; }
.community h3 { font-size: 16px; margin: 0; color: inherit; }
.community .community-intro { font-size: 14px; margin: 6px 0 0; color: inherit; }
.community-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.community .community-button {
  appearance: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--community-line);
  border-radius: 12px;
  color: var(--community-ink);
  background: var(--community-surface);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.community .community-button:hover { border-color: var(--community-accent); }
.community .community-button[aria-pressed="true"] { border-color: var(--community-ink); background: var(--community-bg); }
.community .community-button[aria-pressed="true"] svg { fill: currentColor; }
.community .community-primary { background: var(--community-ink); border-color: var(--community-ink); color: var(--community-surface); }
.community .community-button:disabled { cursor: wait; opacity: .65; }
.community .community-button svg { width: 19px; height: 19px; flex: 0 0 auto; }
.community :is(button, a, input, textarea, select):focus-visible, .community-product-link:focus-visible { outline: 3px solid var(--community-accent); outline-offset: 4px; }
.community .community-status { font-size: 13px; margin: 14px 0 0; min-height: 1.9em; color: inherit; }
.community .community-auth-note { font-size: 13px; color: inherit; padding: 12px 0; margin: 0; }
.community .community-error { border-inline-start: 3px solid var(--danger, var(--community-ink)); background: var(--community-bg); padding: 12px 16px; border-radius: 8px; margin: 12px 0; }
.community .community-error p { margin: 0 0 8px; font-size: 14px; color: inherit; }
.community-form { margin: 24px 0; }
.community label { display: block; font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.community :is(textarea, select) {
  display: block; width: 100%; max-width: 100%; min-height: 44px; border: 1px solid var(--community-line);
  border-radius: 12px; background: var(--community-bg); color: var(--community-ink); font: inherit;
  font-size: 14px; line-height: 1.9; padding: 12px 14px;
}
.community textarea { resize: vertical; min-height: 120px; }
.community textarea::placeholder { color: var(--community-ink); opacity: .7; }
.community .community-form-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.community .community-form-footer p { margin: 0; font-size: 12px; color: inherit; }
.community .community-comments-heading { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--community-line); }
.community .community-comments-heading span { font-size: 12px; }
.community .community-empty { margin: 18px 0 0; padding: 24px 16px; border: 1px dashed var(--community-line); border-radius: 12px; font-size: 14px; text-align: center; color: inherit; }
.community-list { list-style: none; padding: 0; margin: 0; }
.community-comment { padding: 22px 0; border-bottom: 1px solid var(--community-line); min-width: 0; }
.community-comment:last-child { border-bottom: 0; }
.community-comment header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; }
.community-comment strong { font-size: 14px; overflow-wrap: anywhere; }
.community-comment time { font-size: 12px; margin-inline-start: auto; }
.community .community-comment-body { margin: 12px 0 4px; font-size: 14px; color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.community-badge { display: inline-block; border: 1px solid var(--community-line); border-radius: 20px; font-size: 11px; padding: 2px 8px; background: var(--community-bg); }
.community-comment-actions { display: flex; gap: 8px; margin-top: 8px; }
.community .community-text-button { border-color: transparent; background: none; padding-inline: 0; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.community-report { padding: 18px; margin-top: 12px; background: var(--community-bg); border: 1px solid var(--community-line); border-radius: 14px; }
.community-report label:not(:first-child) { margin-top: 14px; }
.community-report textarea { min-height: 90px; }
.community-report .community-form-footer { justify-content: flex-start; }
.community-report-status { font-size: 13px; margin: 10px 0 0; }
.community .community-more { display: flex; margin: 16px auto 0; }
.community-product-link {
  display: inline-flex !important; align-items: center; gap: 7px; min-height: 44px; margin-top: 6px;
  padding-block: 8px; color: var(--ink, #342c20) !important; font: inherit; font-size: 12px !important;
  font-weight: 700; text-decoration: none;
}
.community-product-link svg { width: 18px; height: 18px; flex: 0 0 auto; }
@media (max-width: 560px) {
  .community { border-radius: 17px; padding: 20px 16px; }
  .community-actions { width: 100%; }
  .community-actions > * { flex: 1 1 auto; }
  .community .community-form-footer { align-items: stretch; }
  .community-form .community-primary { width: 100%; }
  .community-comment time { width: 100%; margin-inline-start: 0; }
}
@media print { .community, .community-product-link { display: none !important; } }
