:root {
  --color-canvas: #faf9f5;
  --color-surface: #ffffff;
  --color-surface-muted: #f5f2eb;
  --color-text: #1a1f14;
  --color-text-muted: #5a6654;
  --color-text-subtle: #7a9e6a;
  --color-primary: #3d5c2e;
  --color-primary-hover: #2e4622;
  --color-border: #c8dbbf;
  --color-border-muted: #e8ede4;
  --color-border-subtle: #dbe4d7;
  --color-success: #3d5c2e;
  --color-warning: #d4933a;
  --color-danger: #b85c38;
  --color-focus: #3d5c2e;
  --color-overlay: rgba(26, 31, 20, 0.52);
  --color-shadow: rgba(26, 31, 20, 0.08);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ink: var(--color-text);
  --moss: var(--color-primary);
  --moss-hover: var(--color-primary-hover);
  --moss-light: #eef3ed;
  --moss-surface: #f3f7f0;
  --sage: var(--color-text-muted);
  --mist: var(--color-border-muted);
  --parchment: var(--color-surface-muted);
  --cream: var(--color-canvas);
  --pale-sage: var(--color-border);
  --surface: var(--color-surface);

  font-family: var(--font-sans);
  color-scheme: light;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--moss);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.verdant-icon {
  display: inline-block;
  vertical-align: middle;
}

.action-icon.verdant-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-right: 6px;
}

#appHeader.community-app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid rgba(61, 92, 46, .14);
  background: rgba(250, 249, 245, .94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(14px);
}

.community-app-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--moss);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}

.community-app-header .logo-leaf {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.community-app-header .main-nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 32px;
  margin: 0;
}

.community-app-header .nav-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 78px;
  padding: 0 4px;
  color: var(--sage);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease;
}

.community-app-header .nav-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.community-app-header .nav-tab::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--moss);
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .16s, transform .16s;
}

.community-app-header .nav-tab:hover,
.community-app-header .nav-tab:focus-visible,
.community-app-header .nav-tab.is-active {
  color: var(--moss);
  text-decoration: none;
}

.community-app-header .nav-tab:hover::after,
.community-app-header .nav-tab:focus-visible::after,
.community-app-header .nav-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.community-app-header .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.community-app-header .tagline {
  color: var(--sage);
  font-size: .78rem;
  letter-spacing: .02em;
  white-space: nowrap;
}

.community-app-header .sign-in-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--moss);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.community-app-header .sign-in-link:hover,
.community-app-header .sign-in-link:focus-visible {
  background: var(--moss-light);
  border-color: var(--moss);
  color: var(--moss-hover);
  text-decoration: none;
}

.community-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.community-shell > p > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sage);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 18px;
  transition: color 0.15s ease;
}

.community-shell > p > a:hover {
  color: var(--moss);
  text-decoration: none;
}

.community-header {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(26, 31, 20, 0.04);
}

.community-header h1 {
  margin: 6px 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.community-header p {
  margin: 0;
  color: var(--sage);
  font-size: 1rem;
  line-height: 1.5;
}

.community-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--moss-light);
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

button {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.community-header > button,
.community-header-actions [data-community-compose],
.community-actions button[type="submit"],
.community-response-form button[type="submit"] {
  background: var(--moss);
  color: #ffffff;
  border: 1px solid var(--moss);
  box-shadow: 0 2px 8px rgba(61, 92, 46, 0.2);
}

.community-header > button:hover,
.community-header-actions [data-community-compose]:hover,
.community-actions button[type="submit"]:hover,
.community-response-form button[type="submit"]:hover {
  background: var(--moss-hover);
  border-color: var(--moss-hover);
  box-shadow: 0 4px 12px rgba(61, 92, 46, 0.3);
  transform: translateY(-1px);
}

.community-actions button[value="cancel"] {
  background: var(--color-surface-muted);
  color: var(--sage);
  border: 1px solid var(--color-border-subtle);
}

.community-actions button[value="cancel"]:hover {
  background: var(--color-border-subtle);
  color: var(--ink);
}

.community-filters {
  display: flex;
  gap: 6px;
  margin: 24px 0 18px;
  padding: 4px;
  background: var(--color-surface-muted);
  border-radius: 999px;
  width: fit-content;
  border: 1px solid var(--color-border-subtle);
}

.community-filters button {
  background: transparent;
  color: var(--sage);
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 999px;
}

.community-filters button:hover {
  color: var(--ink);
}

.community-filters button[aria-pressed="true"] {
  background: var(--moss);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(61, 92, 46, 0.18);
}

.community-feed {
  display: grid;
  gap: 16px;
}

.community-feed[hidden] {
  display: none;
}

.community-shell [hidden] {
  display: none !important;
}

.community-card {
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 2px 10px rgba(26, 31, 20, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.community-card:hover {
  border-color: var(--moss);
  box-shadow: 0 6px 20px rgba(26, 31, 20, 0.06);
  transform: translateY(-1px);
}

.community-card h1,
.community-card h2 {
  margin: 4px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.community-card h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
}

.community-card h2 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.community-card h2 a:hover {
  color: var(--moss);
  text-decoration: none;
}

.community-body {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 10px 0;
}

.community-meta {
  color: var(--sage);
  font-size: 0.86rem;
  margin: 12px 0 0;
  line-height: 1.4;
}

.community-meta strong {
  color: var(--moss);
  font-weight: 600;
}

.community-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 24px 0;
}

.community-tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 12px 0; padding: 0; }
.community-tags li { border-radius: 999px; padding: 4px 10px; background: var(--color-border-subtle); color: var(--moss); font-size: .78rem; line-height: 1.4; }

.community-media figure { margin: 0; min-width: 0; }

.community-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid var(--color-border-subtle);
  height: auto;
  object-fit: cover;
}

.community-media figcaption { display: grid; gap: 4px; padding: 8px 2px 0; color: var(--sage); font-size: .88rem; line-height: 1.5; }
.community-media-credit { font-size: .78rem; }
.community-editorial-body { max-width: 72ch; margin: 20px 0 28px; color: var(--ink); font-size: clamp(1rem, 1.6vw, 1.08rem); line-height: 1.8; overflow-wrap: anywhere; }
.community-editorial-body h2 { margin: 1.8em 0 .45em; font-size: clamp(1.3rem, 2.8vw, 1.65rem); line-height: 1.25; }
.community-editorial-body h3 { margin: 1.5em 0 .4em; font-size: 1.15rem; line-height: 1.3; }
.community-editorial-body p, .community-editorial-body ul { margin: .7em 0; }
.community-editorial-body li { margin: .35em 0; }
.community-source { margin: 22px 0; color: var(--sage); font-size: .9rem; }
.community-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 4px; padding-top: 16px; border-top: 1px solid var(--color-border-subtle); }
.community-share a, .community-share button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; border: 1px solid var(--color-border-subtle); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .88rem; text-decoration: none; cursor: pointer; }
.community-share a:hover, .community-share button:hover { border-color: var(--moss); color: var(--moss); }
.community-card-cover { display: block; margin: -20px -20px 18px; overflow: hidden; border-radius: 16px 16px 0 0; }
.community-card-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

@media (max-width: 560px) {
  .community-share { gap: 6px; }
  .community-share a, .community-share button { min-height: 38px; padding: 7px 10px; }
  .community-card-cover { margin: -16px -16px 14px; }
}

dialog {
  width: min(620px, calc(100% - 32px));
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 60px var(--color-shadow);
}

dialog::backdrop {
  background: var(--color-overlay);
  backdrop-filter: blur(4px);
}

.community-compose-form {
  display: grid;
  gap: 18px;
  padding: 28px 32px;
}

.community-compose-form h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
}

.community-compose-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.community-compose-form input,
.community-compose-form textarea,
.community-compose-form select {
  font: inherit;
  font-size: 0.92rem;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.community-compose-form input:focus,
.community-compose-form textarea:focus,
.community-compose-form select:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(61, 92, 46, 0.15);
}

.community-compose-form textarea {
  min-height: 180px;
  resize: vertical;
}

.community-compose-dialog {
  max-height: 90vh;
  overflow-y: auto;
}

.community-edit-dialog {
  width: min(560px, calc(100vw - 24px));
  border: 1px solid var(--color-border-subtle);
  border-radius: 14px;
  padding: 24px;
  color: var(--ink);
  background: var(--color-surface, #fff);
}

.community-edit-dialog::backdrop { background: rgba(22, 35, 20, .52); }
.community-edit-dialog .community-compose-fields { display: grid; gap: 8px; }
.community-edit-dialog input,
.community-edit-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.community-edit-dialog textarea { min-height: 180px; resize: vertical; }
.community-edit-dialog input:focus,
.community-edit-dialog textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(61, 92, 46, .15); }
.community-edit-error { min-height: 1.25em; margin: 0; color: #a12d25; font-size: .88rem; }
.community-edit-status { color: #a12d25; }
.community-edit-confirm { padding: 12px; border-radius: 8px; background: var(--color-surface-muted); }
.community-edit-confirm p { margin-top: 0; }
@media (max-width: 560px) {
  .community-edit-dialog { max-height: 90dvh; padding: 18px; }
}

.community-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.community-dialog-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--sage);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.community-dialog-close:hover {
  color: var(--ink);
  background: var(--color-surface-muted);
}

.community-drafts-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--ink);
}

.community-drafts-select {
  padding: 4px 8px;
  font-size: 0.84rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  max-width: 200px;
}

.community-attached-media-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.community-attached-item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.community-attached-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--color-border-subtle);
}

.community-attached-item button {
  font-size: 0.75rem;
  padding: 2px 6px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink);
}

.community-attached-item button:hover {
  background: #fde8e8;
  color: #c53030;
  border-color: #feb2b2;
}

.community-source-photo-wrap {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  background: var(--color-surface-muted);
  border: 1px dashed var(--color-border);
  border-radius: 8px;
}

.community-checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-weight: 500 !important;
  cursor: pointer;
}

.community-checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--moss);
}

.community-source-preview-wrap {
  margin-top: 4px;
}

.community-source-thumbnail {
  max-width: 140px;
  max-height: 140px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--color-border-subtle);
}

.community-help-text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--sage);
}

.community-visibility-notice {
  font-size: 0.82rem;
  color: var(--sage);
  background: rgba(61, 92, 46, 0.05);
  border-left: 3px solid var(--moss);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  margin: 4px 0;
}

.community-visibility-notice p {
  margin: 0;
  line-height: 1.4;
}

.community-compose-preview {
  padding: 14px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 10px;
  background: var(--color-surface-muted);
}

.community-preview-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.community-preview-notice {
  margin-top: 14px;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--sage);
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.community-actions .btn-save-draft {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--color-border);
}

.community-actions .btn-save-draft:hover {
  border-color: var(--moss);
  color: var(--moss);
}

.community-actions .btn-discard {
  background: transparent;
  color: #c53030;
  border: 1px solid transparent;
  margin-right: auto;
}

.community-actions .btn-discard:hover {
  background: #fff5f5;
  border-color: #feb2b2;
}

.community-actions .btn-publish {
  background: var(--moss);
  color: #ffffff;
  border: 1px solid var(--moss);
}

.community-actions .btn-publish:hover {
  background: var(--moss-hover);
  border-color: var(--moss-hover);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.community-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.community-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin: 24px 0;
}

.community-search input {
  min-width: 0;
  font: inherit;
  font-size: 0.92rem;
  padding: 12px 20px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.community-search input:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(61, 92, 46, 0.15);
}

.community-search button {
  background: var(--surface);
  border: 1px solid var(--color-border);
  color: var(--ink);
  padding: 10px 20px;
}

.community-search button:hover {
  border-color: var(--moss);
  color: var(--moss);
  background: var(--moss-light);
}

.community-search button[type="submit"] {
  background: var(--moss);
  border-color: var(--moss);
  color: #fff;
}

.community-search button[type="submit"]:hover {
  background: var(--moss-hover);
  border-color: var(--moss-hover);
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.community-sidebar {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(26, 31, 20, 0.03);
}

.community-sidebar h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.community-channel-list {
  display: grid;
  gap: 6px;
}

.community-channel-list a {
  display: grid;
  gap: 3px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.15s ease;
}

.community-channel-list a:hover {
  background: var(--moss-light);
  color: var(--moss-hover);
  text-decoration: none;
}

.community-channel-list a.is-active,
.community-channel-list a[aria-current="page"] {
  background: var(--moss-surface);
  border-color: var(--color-border);
  color: var(--moss);
  box-shadow: 0 1px 4px rgba(61, 92, 46, 0.08);
}

.community-channel-list a.is-active strong {
  color: var(--moss);
}

.community-channel-list a strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.community-channel-list a span {
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
}

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

/* Channel banner inside community-main */
.community-channel-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--moss-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(61, 92, 46, 0.04);
}

.community-channel-banner-info {
  display: grid;
  gap: 3px;
}

.community-channel-banner-info .community-kicker {
  margin: 0;
  width: fit-content;
}

.community-channel-banner-info h2 {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.community-channel-banner-info p:not(.community-kicker) {
  margin: 0;
  font-size: 0.88rem;
  color: var(--sage);
  line-height: 1.4;
}

.btn-clear-channel {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--surface);
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-clear-channel:hover {
  background: var(--moss-light);
  border-color: var(--moss);
  color: var(--moss);
  text-decoration: none;
}

.community-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.community-inline-actions button {
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border-subtle);
  color: var(--sage);
  padding: 6px 14px;
  font-size: 0.82rem;
}

.community-inline-actions button:hover {
  background: var(--moss-light);
  border-color: var(--color-border);
  color: var(--moss);
}

.community-inline-actions button[aria-pressed="true"] {
  background: var(--moss-light);
  border-color: var(--moss);
  color: var(--moss);
  font-weight: 600;
}

.community-inline-actions button.btn-discard {
  color: #c53030;
  border-color: #feb2b2;
}

.community-inline-actions button.btn-discard:hover {
  background: #fff5f5;
  border-color: #e53e3e;
  color: #9b2c2c;
}

.community-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.community-load-more-wrap button,
.community-load-more-wrap a {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 24px;
  color: var(--moss);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.community-load-more-wrap button:hover,
.community-load-more-wrap a:hover {
  background: var(--moss-light);
  border-color: var(--moss);
  text-decoration: none;
}

.community-response-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(26, 31, 20, 0.03);
}

.community-response-form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.community-response-form textarea {
  min-height: 120px;
  font: inherit;
  font-size: 0.92rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  resize: vertical;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.community-response-form textarea:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(61, 92, 46, 0.15);
}

.community-reply {
  margin-left: 28px;
  border-left: 3px solid var(--moss);
  background: #fdfefd;
}

.community-card:has(strong) {
  border-color: #9ac288;
  background: var(--moss-surface);
  box-shadow: 0 2px 12px rgba(61, 92, 46, 0.06);
}

.community-notification-panel {
  margin: 20px 0;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 2px 10px rgba(26, 31, 20, 0.03);
}

.community-notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.community-notification-header h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}

.community-notification-item {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 12px;
  margin-top: 10px;
  padding: 12px 16px;
  background: var(--color-surface-muted);
  border: 1px solid transparent;
  color: var(--ink);
  transition: all 0.15s ease;
}

.community-notification-item:hover {
  background: var(--moss-light);
  border-color: var(--color-border);
}

.community-notification-item[data-status="unread"] {
  font-weight: 600;
  background: var(--moss-surface);
  border-color: #c4dcb7;
}

.community-affiliate-section {
  margin: 20px 0;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 18px 24px;
  box-shadow: 0 2px 10px rgba(26, 31, 20, 0.03);
}

.community-affiliate-section summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.community-affiliate-disclosure {
  color: var(--sage);
  font-size: 0.82rem;
  margin: 8px 0 14px;
}

.community-affiliate-grid {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.community-affiliate-card {
  border: 1px solid var(--color-border-subtle);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.community-affiliate-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.community-safety-note {
  color: var(--color-warning);
  font-size: 0.8rem;
  margin: 6px 0;
}

.community-affiliate-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.community-paid-link {
  color: var(--sage);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.community-affiliate-actions a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--moss);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
}

.community-affiliate-actions a:hover {
  background: var(--moss-hover);
  text-decoration: none;
}

.community-ad-slot:empty {
  display: none;
}

[data-community-responses] h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 16px;
  letter-spacing: -0.015em;
}

@media (max-width: 760px) {
  #appHeader.community-app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
    min-height: 0;
    padding: 13px 16px 0;
  }
  .community-app-header .logo {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 9px;
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }
  .community-app-header .logo-leaf { width: 30px; height: 30px; }
  .community-app-header .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    border-top: 1px solid rgba(61, 92, 46, .1);
    gap: 0;
  }
  .community-app-header .nav-tab {
    flex: 1;
    justify-content: center;
    min-height: 50px;
    padding: 0 8px;
    font-size: .88rem;
  }
  .community-app-header .nav-icon { width: 17px; height: 17px; margin-right: 5px; }
  .community-app-header .nav-tab::after { bottom: 0; }
  .community-app-header .header-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 6px;
  }
  .community-app-header .tagline { display: none; }
  .community-app-header .sign-in-link { min-height: 38px; padding: 7px 13px; font-size: .78rem; }
  .community-shell { padding: 20px 16px 48px; }
  .community-header { padding: 20px; align-items: stretch; flex-direction: column; }
  .community-layout { grid-template-columns: 1fr; }
  .community-sidebar { position: static; }
  .community-channel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-search { grid-template-columns: minmax(0, 1fr) auto; }
  .community-search [data-community-search-clear] { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 480px) {
  .community-channel-list { grid-template-columns: 1fr; }
  .community-filters { overflow-x: auto; padding-bottom: 4px; max-width: 100%; }
  .community-filters button { flex: 0 0 auto; }
  .community-header-actions { justify-content: stretch; }
  .community-header-actions button { flex: 1; }
  .community-reply { margin-left: 12px; }
  .community-card { padding: 18px; }
}


/* Community home refinement: lighter hierarchy, compact discovery, calmer feed cards. */
.community-sidebar-help { margin-top: 18px; border-top: 1px solid var(--color-border-muted); padding-top: 14px; font-size: .85rem; line-height: 1.6; }
.community-sidebar-help summary { cursor: pointer; font-weight: 600; }
.community-notification-bell { display: inline-flex; align-items: center; gap: 8px; }
.community-notification-bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.community-shell {
  max-width: 1120px;
  padding-top: 30px;
}

.community-header {
  align-items: center;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(238, 243, 237, 0.72), rgba(250, 249, 245, 0.22));
  border-color: var(--color-border-muted);
  box-shadow: none;
}

.community-header > div:first-child {
  max-width: 700px;
}

.community-header p {
  color: #4d5948;
}

.community-search {
  position: relative;
  display: block;
  margin: 18px 0 24px;
}

.community-search-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.community-search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 46px 12px 46px;
  border-color: var(--color-border-muted);
  box-shadow: 0 1px 2px rgba(26, 31, 20, 0.02);
}

.community-search input::placeholder {
  color: #717a6d;
}

.community-search-clear {
  position: absolute;
  right: 7px;
  top: 50%;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--sage);
  font-size: 1.3rem;
  line-height: 1;
}

.community-search-clear:hover,
.community-search-clear:focus-visible {
  background: var(--moss-light);
  color: var(--moss);
}

.community-search-clear[hidden] {
  display: none;
}

.community-layout {
  grid-template-columns: minmax(190px, 225px) minmax(0, 1fr);
  gap: 26px;
}

.community-sidebar {
  padding: 17px 16px;
  border-color: var(--color-border-muted);
  box-shadow: none;
}

.community-sidebar h2 {
  margin-bottom: 10px;
}

.community-channel-list {
  gap: 3px;
}

.community-channel-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.community-channel-list a.is-active,
.community-channel-list a[aria-current="page"] {
  border-color: var(--color-border);
  box-shadow: none;
}

.community-channel-banner {
  padding: 14px 18px;
  margin-bottom: 16px;
  border-color: var(--color-border-muted);
  background: linear-gradient(135deg, var(--moss-surface), rgba(250, 249, 245, 0.72));
  box-shadow: none;
}

.community-channel-banner-info h2 {
  font-size: 1.45rem;
}

.community-channel-banner-info p:not(.community-kicker) {
  color: #596553;
}

.community-filters {
  margin-top: 18px;
  border-color: var(--color-border-muted);
}

.community-card {
  border-color: var(--color-border-muted);
}

.community-card:hover {
  border-color: var(--color-border-muted);
  box-shadow: 0 2px 10px rgba(26, 31, 20, 0.03);
  transform: none;
}

.community-feed-card:hover {
  border-color: var(--color-border);
  box-shadow: 0 6px 20px rgba(26, 31, 20, 0.055);
  transform: translateY(-1px);
}

.community-card-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 2px;
}

.community-card-topline .community-kicker {
  margin: 0;
}

.community-card-date {
  margin-left: auto;
  color: var(--sage);
  font-size: 0.8rem;
  white-space: nowrap;
}

.community-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--color-surface-muted);
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.community-status-badge.is-answered {
  background: var(--moss-light);
  color: var(--moss);
}

.community-feed-card h2 {
  margin-top: 7px;
  font-size: clamp(1.42rem, 2.4vw, 1.72rem);
}

.community-card-preview {
  display: -webkit-box;
  margin: 8px 0 0;
  color: #3d4639;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  white-space: normal;
}

.community-card-cover {
  display: block;
  margin: 17px 0 14px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--color-surface-muted);
}

.community-card-cover img {
  display: block;
  width: 100%;
  height: clamp(210px, 24vw, 300px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

/* Educational portrait cards need their titles and footers visible in the feed. */
html[data-vertical="coral"] .community-card-cover img {
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.community-card-tags {
  margin-top: 10px;
  margin-bottom: 0;
}

.community-meta {
  color: #5c6757;
}

@media (max-width: 760px) {
  .community-shell {
    padding-top: 22px;
  }

  .community-header {
    align-items: stretch;
    padding: 22px 20px;
  }

  .community-layout {
    grid-template-columns: 1fr;
  }

  .community-sidebar {
    position: static;
  }

  .community-channel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
}

@media (max-width: 560px) {
  .community-search input {
    min-height: 46px;
  }

  .community-channel-list {
    grid-template-columns: 1fr;
  }

  .community-card-cover {
    margin: 14px 0 12px;
  }

  .community-card-cover img {
    height: clamp(180px, 54vw, 230px);
  }

  .community-card-date {
    display: none;
  }
}

@media (max-width: 760px) {
  .community-sidebar { min-width: 0; padding: 12px; }
  .community-channel-list { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .community-channel-list a { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; min-height: 44px; }
  .community-app-header .nav-icon { display: inline-block; visibility: visible; flex-shrink: 0; }
  .community-app-header .nav-tab { gap: 5px; }
}

/* Detail-page controls and media stay scoped so feed cards keep their covers. */
.community-card[data-community-post] .community-card-topline {
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 8px;
}

.community-card[data-community-post] .community-author-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
}

.community-card[data-community-post] .community-author-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 88px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--sage);
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}

.community-card[data-community-post] .community-author-actions .btn-author-edit:hover {
  border-color: var(--moss);
  background: var(--moss-light);
  color: var(--moss);
}

.community-card[data-community-post] .community-author-actions .btn-author-delete {
  border-color: #ead2ca;
  background: #fffaf8;
  color: #9b3f2e;
}

.community-card[data-community-post] .community-author-actions .btn-author-delete:hover {
  border-color: #c97962;
  background: #fbefeb;
  color: #7f2f21;
}

.community-card[data-community-post] .community-author-actions button:focus-visible,
.community-card[data-community-post] .community-share button:focus-visible,
.community-card[data-community-post] .community-share a:focus-visible,
.community-card[data-community-post] .community-post-footer button:focus-visible {
  outline: 3px solid rgba(61, 92, 46, .38);
  outline-offset: 2px;
}

.community-card[data-community-post] .community-media {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  width: min(100%, 744px);
  margin: 24px auto;
}

.community-card[data-community-post] .community-media figure {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 120px;
  overflow: hidden;
  border: 1px solid var(--color-border-muted);
  border-radius: 14px;
  background: #f7f8f4;
}

.community-card[data-community-post] .community-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}

.community-card[data-community-post] .community-media figcaption {
  justify-self: stretch;
  width: 100%;
  border-top: 1px solid var(--color-border-muted);
}

.community-card[data-community-post] .community-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border-muted);
}

.community-card[data-community-post] .community-share-heading {
  color: var(--ink);
  font-weight: 600;
}

.community-card[data-community-post] .community-share {
  display: flex;
  flex: 1 1 360px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.community-card[data-community-post] .community-share a,
.community-card[data-community-post] .community-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  background: var(--color-surface);
  color: #3f4c3a;
  font: inherit;
  font-size: .86rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}

.community-card[data-community-post] .community-share a:hover,
.community-card[data-community-post] .community-share button:hover {
  transform: translateY(-1px);
  border-color: var(--moss);
  background: var(--moss-light);
  color: var(--moss);
  text-decoration: none;
}

.community-card[data-community-post] .community-share .community-share-whatsapp:hover { border-color: #6eaf79; background: #f0f8f1; color: #27683a; }
.community-card[data-community-post] .community-share .community-share-facebook:hover { border-color: #819bd0; background: #f1f4fb; color: #31569a; }
.community-card[data-community-post] .community-share .community-share-linkedin:hover { border-color: #76a8c7; background: #eef6fa; color: #17628c; }
.community-card[data-community-post] .community-share [hidden] { display: none !important; }

.community-card[data-community-post] .community-post-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 14px;
}

.community-card[data-community-post] .community-post-engagement {
  flex: 1 1 300px;
  min-width: 0;
}

.community-card[data-community-post] .community-post-engagement .community-inline-actions {
  margin-top: 0;
}

.community-card[data-community-post] .community-post-engagement .community-inline-actions button,
.community-card[data-community-post] .community-post-report button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  background: var(--color-surface-muted);
  color: #475440;
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
}

.community-card[data-community-post] .community-post-engagement .community-inline-actions button[aria-pressed="true"] {
  border-color: var(--moss);
  background: var(--moss-light);
  color: var(--moss);
}

.community-card[data-community-post] .community-post-engagement .community-inline-actions button:hover {
  border-color: var(--moss);
  color: var(--moss);
}

/* Coral Community uses the same saved theme and palette as Coral ID. */
:root[data-vertical="coral"],
:root[data-vertical="coral"][data-theme="light"] {
  --color-canvas: #f2fbfd;
  --color-surface: #ffffff;
  --color-surface-muted: #edf8fb;
  --color-text: #10264c;
  --color-text-muted: #48627e;
  --color-text-subtle: #006c87;
  --color-primary: #006c87;
  --color-primary-hover: #00566b;
  --color-border: #bddce7;
  --color-border-muted: #dcecef;
  --color-border-subtle: #bddce7;
  --color-success: #059669;
  --color-warning: #d97706;
  --color-danger: #c84b31;
  --color-focus: #006c87;
  --color-overlay: rgba(3, 21, 34, .55);
  --color-shadow: rgba(16, 38, 76, .12);
  --ink: var(--color-text);
  --moss: var(--color-primary);
  --moss-hover: var(--color-primary-hover);
  --moss-light: #edf8fb;
  --moss-surface: #e5f4f8;
  --sage: var(--color-text-muted);
  --mist: var(--color-border-muted);
  --parchment: var(--color-surface-muted);
  --cream: var(--color-canvas);
  --pale-sage: var(--color-border);
  --surface: var(--color-surface);
  --font-serif: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

:root[data-vertical="coral"][data-theme="dark"] {
  --color-canvas: #031522;
  --color-surface: #082638;
  --color-surface-muted: #0b3347;
  --color-text: #e7f6fb;
  --color-text-muted: #a8c4d0;
  --color-text-subtle: #a8f5fc;
  --color-primary: #00cfe3;
  --color-primary-hover: #36e4f1;
  --color-border: #15506a;
  --color-border-muted: #103d53;
  --color-border-subtle: #15506a;
  --color-success: #35d7a4;
  --color-warning: #f0bd46;
  --color-danger: #ff9a86;
  --color-focus: #36e4f1;
  --color-overlay: rgba(0, 0, 0, .72);
  --color-shadow: rgba(0, 0, 0, .4);
  --ink: var(--color-text);
  --moss: var(--color-primary);
  --moss-hover: var(--color-primary-hover);
  --moss-light: #0b3347;
  --moss-surface: #0b3347;
  --sage: var(--color-text-muted);
  --mist: var(--color-border-muted);
  --parchment: var(--color-surface-muted);
  --cream: var(--color-canvas);
  --pale-sage: var(--color-border);
  --surface: var(--color-surface);
  --font-serif: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

html[data-vertical="coral"] body {
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-sans);
}

html[data-vertical="coral"] .community-header,
html[data-vertical="coral"] .community-channel-banner {
  background: linear-gradient(135deg, var(--color-surface-muted), var(--color-surface));
  border-color: var(--color-border);
}

html[data-vertical="coral"] .community-header p,
html[data-vertical="coral"] .community-channel-banner-info p:not(.community-kicker),
html[data-vertical="coral"] .community-meta {
  color: var(--color-text-muted);
}

html[data-vertical="coral"] #appHeader.community-app-header {
  border-color: var(--color-border);
  background: color-mix(in srgb, var(--color-canvas) 94%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--color-surface) 70%, transparent);
}

html[data-vertical="coral"] .community-app-header .logo,
html[data-vertical="coral"] .community-app-header .nav-tab:hover,
html[data-vertical="coral"] .community-app-header .nav-tab:focus-visible,
html[data-vertical="coral"] .community-app-header .nav-tab.is-active {
  color: var(--color-primary);
}

@media (min-width: 761px) and (max-width: 1100px) {
  html[data-vertical="coral"] #appHeader.community-app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
    min-height: 0;
    padding: 13px 24px 0;
  }

  html[data-vertical="coral"] .community-app-header .logo {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 9px;
  }

  html[data-vertical="coral"] .community-app-header .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  html[data-vertical="coral"] .community-app-header .tagline { display: none; }

  html[data-vertical="coral"] .community-app-header .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    border-top: 1px solid var(--color-border);
    gap: 0;
  }

  html[data-vertical="coral"] .community-app-header .nav-tab {
    flex: 1;
    justify-content: center;
    min-height: 50px;
    padding: 0 8px;
  }

  html[data-vertical="coral"] .community-app-header .nav-tab::after { bottom: 0; }
}

@media (max-width: 760px) {
  html[data-vertical="coral"] .community-app-header .logo {
    font-size: clamp(1.05rem, 3.6vw, 1.5rem);
  }
}

html[data-vertical="coral"] .community-app-header .nav-tab::after {
  background: var(--color-primary);
}

html[data-vertical="coral"] .community-app-header .sign-in-link {
  min-height: 44px;
  border-color: var(--color-border);
  border-radius: 11px;
  background: var(--color-surface);
  color: var(--color-primary);
  font: 600 .9rem/1.2 var(--font-sans);
  padding: 10px 16px;
}

html[data-vertical="coral"] .community-app-header .sign-in-link:hover,
html[data-vertical="coral"] .community-app-header .sign-in-link:focus-visible {
  background: var(--color-surface-muted);
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
}

html[data-vertical="coral"] body button,
html[data-vertical="coral"] body .community-actions a,
html[data-vertical="coral"] body .community-search button {
  box-sizing: border-box;
  min-height: 44px;
  border-radius: 11px;
  font-family: var(--font-sans);
  font-weight: 600;
}

html[data-vertical="coral"] body button:focus-visible,
html[data-vertical="coral"] body a:focus-visible,
html[data-vertical="coral"] body input:focus-visible,
html[data-vertical="coral"] body select:focus-visible,
html[data-vertical="coral"] body textarea:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

html[data-vertical="coral"] .community-header > button,
html[data-vertical="coral"] .community-header-actions [data-community-compose],
html[data-vertical="coral"] .community-actions button[type="submit"],
html[data-vertical="coral"] .community-response-form button[type="submit"],
html[data-vertical="coral"] .community-search button[type="submit"],
html[data-vertical="coral"] .community-filters button[aria-pressed="true"] {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

html[data-vertical="coral"][data-theme="dark"] .community-header > button,
html[data-vertical="coral"][data-theme="dark"] .community-header-actions [data-community-compose],
html[data-vertical="coral"][data-theme="dark"] .community-actions button[type="submit"],
html[data-vertical="coral"][data-theme="dark"] .community-response-form button[type="submit"],
html[data-vertical="coral"][data-theme="dark"] .community-search button[type="submit"],
html[data-vertical="coral"][data-theme="dark"] .community-filters button[aria-pressed="true"] {
  color: #00252e;
}

html[data-vertical="coral"] .community-header > button:hover,
html[data-vertical="coral"] .community-header-actions [data-community-compose]:hover,
html[data-vertical="coral"] .community-actions button[type="submit"]:hover,
html[data-vertical="coral"] .community-response-form button[type="submit"]:hover,
html[data-vertical="coral"] .community-search button[type="submit"]:hover {
  border-color: var(--color-primary-hover);
  background: var(--color-primary-hover);
}

html[data-vertical="coral"][data-theme="dark"] .community-card,
html[data-vertical="coral"][data-theme="dark"] .community-sidebar,
html[data-vertical="coral"][data-theme="dark"] .community-notification-panel,
html[data-vertical="coral"][data-theme="dark"] .community-compose-dialog,
html[data-vertical="coral"][data-theme="dark"] .community-card-cover,
html[data-vertical="coral"][data-theme="dark"] .community-search input,
html[data-vertical="coral"][data-theme="dark"] .community-filters,
html[data-vertical="coral"][data-theme="dark"] .community-search button {
  border-color: var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
}

html[data-vertical="coral"][data-theme="dark"] .community-card-preview,
html[data-vertical="coral"][data-theme="dark"] .community-card[data-community-post] .community-share a,
html[data-vertical="coral"][data-theme="dark"] .community-card[data-community-post] .community-share button,
html[data-vertical="coral"][data-theme="dark"] .community-card[data-community-post] .community-post-engagement .community-inline-actions button:not([aria-pressed="true"]) {
  color: var(--color-text);
}

html[data-vertical="coral"][data-theme="dark"] .community-card[data-community-post] .community-share a:hover,
html[data-vertical="coral"][data-theme="dark"] .community-card[data-community-post] .community-share button:hover {
  background: var(--color-surface-muted);
}

html[data-vertical="coral"] .community-kicker,
html[data-vertical="coral"] .community-meta,
html[data-vertical="coral"] .community-shell h1,
html[data-vertical="coral"] .community-shell h2,
html[data-vertical="coral"] .community-shell h3 {
  font-family: var(--font-sans);
}

.community-card[data-community-post] .community-post-engagement .community-meta {
  margin: 8px 0 0;
  color: var(--sage);
  font-size: .82rem;
}

.community-card[data-community-post] .community-post-report {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.community-card[data-community-post] .community-post-report button {
  min-width: 88px;
  border-color: #eadbd5;
  background: #fffaf8;
  color: #8d5142;
}

.community-card[data-community-post] .community-post-report button:hover {
  border-color: #c97962;
  background: #fbefeb;
  color: #7f2f21;
}

@media (max-width: 560px) {
  .community-card[data-community-post] .community-media img { max-height: 360px; }

  .community-card[data-community-post] .community-share-bar {
    align-items: flex-start;
    gap: 8px;
  }

  .community-card[data-community-post] .community-share-heading { flex-basis: 100%; }
  .community-card[data-community-post] .community-share { flex-basis: 100%; }

  .community-card[data-community-post] .community-share a,
  .community-card[data-community-post] .community-share button {
    min-height: 44px;
    padding: 8px 11px;
  }

  .community-card[data-community-post] .community-post-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .community-card[data-community-post] .community-post-engagement { min-width: 0; }
  .community-card[data-community-post] .community-post-report { justify-self: end; }
}
