.community-root {
  --community-surface: var(--site-surface, #252525);
  --community-surface-soft: var(--site-surface-raised, #2d2d2d);
  --community-surface-hover: var(--site-header-control-hover, #343434);
  --community-border: var(--site-border, #404040);
  --community-border-soft: color-mix(in srgb, var(--community-border) 68%, transparent);
  --community-text: var(--site-text, #f2f2f2);
  --community-muted: var(--site-muted, #b8b8b8);
  --community-accent: #64b5f6;
  --community-accent-strong: #90caf9;
  --community-accent-soft: rgba(100, 181, 246, 0.14);
  --community-accent-text: #90caf9;
  --community-accent-ink: #071b2b;
  --community-danger: #f08080;
  --community-danger-soft: rgba(240, 128, 128, 0.12);
  --community-article: #f0bf62;
  --community-article-soft: rgba(240, 191, 98, 0.14);
  --community-shadow: none;
  width: 100%;
  min-width: 0;
  color: var(--community-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] .community-root {
  --community-border-soft: var(--ui-border);
  --community-accent: var(--ui-blue);
  --community-accent-strong: var(--ui-blue-strong);
  --community-accent-soft: var(--ui-blue-soft);
  --community-accent-text: var(--ui-blue-strong);
  --community-accent-ink: #fff;
  --community-danger: var(--ui-danger);
  --community-danger-soft: var(--ui-danger-soft);
  --community-article: #8b620e;
  --community-article-soft: rgba(168, 111, 15, 0.1);
  --community-shadow: none;
}

html[data-theme="light"] .community-root .community-discovery-rail {
  padding: 12px;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  background: var(--ui-panel-header);
}

html[data-theme="light"] .community-root .community-hub-popular {
  padding: 16px;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: var(--ui-panel-header);
}

html[data-theme="light"] .community-root :is(.community-composer, .community-rail-card) {
  border-color: var(--ui-border);
  box-shadow: var(--ui-shadow-sm);
}

html[data-theme="light"] .community-root :is(.community-card--article, .community-editorial-card, .community-featured-lead, .community-article) {
  border-color: var(--ui-border-strong);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

.community-page-container {
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: clamp(20px, 3vw, 36px) clamp(14px, 4vw, 48px) 72px;
  overflow-x: clip;
}

.community-layout {
  display: grid;
  width: min(1080px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 730px) minmax(230px, 280px);
  gap: clamp(24px, 3vw, 36px);
  align-items: start;
}

.community-main,
.community-detail-main,
.community-article-main,
.community-profile-main,
.community-settings-main {
  min-width: 0;
}

.community-detail-layout,
.community-article-layout,
.community-profile-layout,
.community-settings-layout {
  width: min(840px, 100%);
  margin: 0 auto;
}

.community-article-layout {
  width: min(920px, 100%);
}

.community-settings-layout {
  width: min(720px, 100%);
}

.community-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--community-accent-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.community-hero {
  margin-bottom: 22px;
  padding: 4px 2px 22px;
  border-bottom: 1px solid var(--community-border-soft);
}

.community-hero h1 {
  max-width: 620px;
  margin: 0;
  color: var(--community-text);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.community-hero p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--community-muted);
  font-size: clamp(0.94rem, 1.6vw, 1.05rem);
  line-height: 1.5;
}

.community-composer,
.community-card,
.community-signin-card,
.community-discussion,
.community-article,
.community-profile-hero,
.community-settings-card {
  border: 1px solid var(--community-border-soft);
  border-radius: 12px;
  color: var(--community-text);
  background: var(--community-surface);
  box-shadow: none;
}

.community-composer {
  width: 100%;
  max-width: none;
  margin-bottom: 34px;
  padding: clamp(17px, 3vw, 24px);
}

.community-composer__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.community-composer__identity h2 {
  max-width: min(520px, 62vw);
  margin: 0;
  overflow: hidden;
  color: var(--community-text);
  font-size: 1rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-composer__as {
  display: block;
  margin-top: 2px;
  color: var(--community-muted);
  font-size: 0.75rem;
}

.community-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--community-border-soft);
  border-radius: 50%;
  object-fit: cover;
  background: var(--community-surface-soft);
}

.community-avatar--initials,
.community-avatar--brand,
.community-avatar--muted {
  display: grid;
  place-items: center;
  color: var(--community-accent-text);
  background: var(--community-accent-soft);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.community-avatar--brand {
  color: var(--community-accent);
  font-size: 1rem;
}

.community-avatar--brand-icon {
  padding: 5px;
  background: var(--community-accent-soft);
}

.community-avatar--muted {
  color: var(--community-muted);
  background: var(--community-surface-soft);
}

.community-composer textarea,
.community-comment-composer textarea,
.community-reply-form textarea,
.community-field textarea,
.community-field input,
.community-field select,
.community-inline-editor textarea {
  width: 100%;
  border: 1px solid var(--community-border);
  border-radius: 14px;
  outline: 0;
  color: var(--community-text);
  background: var(--community-surface-soft);
  font: inherit;
  line-height: 1.55;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.community-composer textarea {
  min-height: 116px;
  padding: 15px 16px;
  resize: vertical;
}

.community-composer textarea::placeholder,
.community-comment-composer textarea::placeholder,
.community-reply-form textarea::placeholder,
.community-field textarea::placeholder,
.community-field input::placeholder,
.community-inline-editor textarea::placeholder {
  color: var(--community-muted);
  opacity: 0.82;
}

.community-composer textarea:focus,
.community-comment-composer textarea:focus,
.community-reply-form textarea:focus,
.community-field textarea:focus,
.community-field input:focus,
.community-field select:focus,
.community-inline-editor textarea:focus {
  border-color: var(--community-accent);
  background: var(--community-surface);
  box-shadow: 0 0 0 3px var(--community-accent-soft);
}

.community-composer__footer,
.community-comment-composer__footer,
.community-settings-actions,
.community-reply-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}

.community-composer__tools {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.community-tool-button,
.community-icon-button,
.community-text-button,
.community-owner-actions button,
.community-text-toggle {
  border: 0;
  color: var(--community-muted);
  background: transparent;
  font: inherit;
}

.community-tool-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
}

.community-tool-button:hover {
  color: var(--community-accent-text);
  background: var(--community-accent-soft);
}

.community-tool-button--compact {
  min-height: 36px;
  padding: 6px 9px;
}

.community-character-count {
  color: var(--community-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.community-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.15;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.community-button:disabled,
.community-button[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.community-button--primary {
  color: var(--community-accent-ink);
  border-color: color-mix(in srgb, var(--community-accent-strong) 72%, transparent);
  background: var(--community-accent);
}

html[data-theme="light"] .community-button--primary {
  background: var(--community-accent-strong);
}

.community-button--primary:not(:disabled):hover {
  color: var(--community-accent-ink);
  background: color-mix(in srgb, var(--community-accent) 88%, #fff);
}

html[data-theme="light"] .community-button--primary:not(:disabled):hover {
  color: #fff;
  background: color-mix(in srgb, var(--community-accent-strong) 90%, #000);
}

.community-button--quiet {
  color: var(--community-text);
  border-color: var(--community-border);
  background: var(--community-surface-soft);
}

.community-button--quiet:hover {
  color: var(--community-text);
  border-color: color-mix(in srgb, var(--community-accent) 55%, var(--community-border));
  background: var(--community-surface-hover);
}

.community-button--danger {
  color: var(--community-danger);
  border-color: color-mix(in srgb, var(--community-danger) 45%, var(--community-border));
  background: var(--community-danger-soft);
}

.community-button--compact {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.82rem;
}

.community-form-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--community-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.community-form-status.is-error {
  color: var(--community-danger);
}

.community-form-status.is-success {
  color: var(--community-accent-text);
}

.community-action-status:empty {
  display: none;
}

.community-upload-grid {
  display: grid;
  margin-top: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.community-upload-grid:empty {
  display: none;
}

.community-upload-grid--single,
.community-upload-grid--avatar {
  max-width: 190px;
  grid-template-columns: 1fr;
}

.community-upload-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--community-border);
  border-radius: 13px;
  aspect-ratio: 1;
  background: var(--community-surface-soft);
}

.community-upload-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-upload-item__overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 5px 6px 5px 9px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  font-size: 0.69rem;
}

.community-upload-item__overlay button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
}

.community-upload-item.is-error {
  border-color: var(--community-danger);
}

.community-upload-item__retry {
  position: absolute;
  inset: 50% auto auto 50%;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 9px;
  color: #fff;
  background: rgba(25, 25, 25, 0.86);
  font-size: 0.72rem;
  font-weight: 750;
  transform: translate(-50%, -50%);
}

.community-upload-item__retry[data-upload-review] {
  width: max-content;
  max-width: calc(100% - 16px);
  overflow-wrap: normal;
}

.community-signin-card {
  display: grid;
  margin-bottom: 34px;
  padding: 18px 20px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
}

.community-signin-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: var(--community-accent-text);
  background: var(--community-accent-soft);
  font-size: 1.15rem;
}

.community-signin-card h2,
.community-signin-card p {
  margin: 0;
}

.community-signin-card h2 {
  font-size: 1rem;
  font-weight: 760;
}

.community-signin-card p {
  margin-top: 3px;
  color: var(--community-muted);
  font-size: 0.84rem;
}

.community-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 14px;
}

.community-section-heading h2 {
  margin: 0;
  color: var(--community-text);
  font-size: 1.38rem;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.community-order-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--community-muted);
  font-size: 0.74rem;
  white-space: nowrap;
}

.community-content-list {
  display: grid;
  gap: 12px;
}

.community-card {
  position: relative;
  min-width: 0;
  padding: clamp(16px, 3vw, 22px);
}

.community-card__header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.community-author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: var(--community-text);
  text-decoration: none;
}

.community-author:hover strong {
  color: var(--community-accent-text);
}

.community-author__text {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.community-author__text strong,
.community-author__text span {
  max-width: min(400px, 48vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-author__text strong {
  font-size: 0.92rem;
  font-weight: 770;
}

.community-author__text span {
  margin-top: 3px;
  color: var(--community-muted);
  font-size: 0.74rem;
}

.community-card__meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--community-muted);
  font-size: 0.73rem;
}

.community-time-link {
  color: inherit;
  text-decoration: none;
}

.community-time-link:hover {
  color: var(--community-text);
}

.community-demo-badge {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--community-article) 38%, transparent);
  border-radius: 4px;
  color: var(--community-article);
  background: var(--community-article-soft);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.community-user-text {
  color: var(--community-text);
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

.community-post-body {
  position: relative;
  margin: 0 1px 15px;
  overflow: hidden;
  font-size: clamp(0.94rem, 1.8vw, 1rem);
  line-height: 1.63;
}

.community-post-body.is-collapsed {
  max-height: 310px;
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}

.community-plant-reference {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 15px;
  padding: 10px;
  border: 1px solid var(--community-border);
  border-radius: 12px;
  background: var(--community-surface);
  color: var(--community-text);
  text-decoration: none;
}
.community-plant-reference:hover { border-color: var(--community-accent); color: var(--community-text); }
.community-plant-reference:focus-visible { outline: 2px solid var(--community-accent); outline-offset: 3px; }
.community-plant-reference img,
.community-plant-reference__icon { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 8px; object-fit: contain; }
.community-plant-reference__icon { display: grid; place-items: center; background: var(--community-accent-soft); color: var(--community-accent-text); font-size: 2rem; }
.community-plant-reference__copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.community-plant-reference__label { color: var(--community-muted); font-size: .76rem; line-height: 1.35; }
.community-plant-reference__copy strong { font-size: 1rem; line-height: 1.35; }
.community-plant-reference__link { display: inline-flex; align-items: center; gap: 5px; color: var(--community-accent-text); font-size: .8rem; }

.community-text-toggle {
  margin: -5px 0 14px;
  padding: 5px 0;
  color: var(--community-accent-text);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 760;
}

.community-gallery {
  display: grid;
  height: min(62vw, 490px);
  max-height: 490px;
  margin: 0 -4px 14px;
  overflow: hidden;
  border-radius: 9px;
  gap: 3px;
}

.community-gallery__item {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--community-surface-soft);
}

.community-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}

.community-gallery__item:hover img {
  filter: saturate(1.04);
  transform: scale(1.018);
}

.community-gallery--1 {
  height: auto;
  max-height: 560px;
  grid-template-columns: 1fr;
}

.community-gallery--1 .community-gallery__item {
  max-height: 560px;
  aspect-ratio: 16 / 10;
}

.community-gallery--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-gallery--3 {
  grid-template: repeat(2, minmax(0, 1fr)) / 1.25fr 0.75fr;
}

.community-gallery--3 .community-gallery__item:first-child {
  grid-row: 1 / 3;
}

.community-gallery--4 {
  grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr));
}

body.community-image-viewer-open {
  overflow: hidden;
}

.community-image-viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  overflow: hidden;
  margin: 0;
  inset: 0;
  border: 0;
  border-radius: 0;
  color: #f4f6f3;
  background: rgba(12, 15, 13, .96);
  box-shadow: none;
}

.community-image-viewer:not([open]) {
  display: none;
}

.community-image-viewer::backdrop {
  background: rgba(5, 7, 6, 0.84);
}

.community-image-viewer__panel {
  display: grid;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.community-image-viewer__toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
}

.community-image-viewer__counter {
  min-width: 3ch;
  color: #c5cbc5;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}
.community-image-viewer__counter:empty { visibility: hidden; }

.community-image-viewer__tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.community-image-viewer__close,
.community-image-viewer__zoom,
.community-image-viewer__nav {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.community-image-viewer__zoom--reset {
  width: auto;
  min-width: 54px;
  padding-inline: 9px;
  color: #d9ded9;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.community-image-viewer__close:hover,
.community-image-viewer__zoom:hover:not(:disabled),
.community-image-viewer__nav:hover {
  background: rgba(255, 255, 255, 0.12);
}

.community-image-viewer__close:focus-visible,
.community-image-viewer__zoom:focus-visible,
.community-image-viewer__nav:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--community-accent) 75%, white);
  outline-offset: 2px;
}

.community-image-viewer__zoom:disabled {
  cursor: default;
  opacity: 0.42;
}

.community-image-viewer__stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 10px 64px 20px;
}

.community-image-viewer__viewport {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border-radius: 6px;
  touch-action: pan-y;
}

.community-image-viewer.is-zoomed .community-image-viewer__viewport {
  overflow: auto;
  cursor: grab;
  touch-action: pan-x pan-y;
}

.community-image-viewer.is-zoomed .community-image-viewer__viewport.is-dragging {
  cursor: grabbing;
}

.community-image-viewer__viewport:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--community-accent) 75%, white);
  outline-offset: 2px;
}

.community-image-viewer__canvas {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  place-items: center;
}

.community-image-viewer__canvas img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.community-image-viewer:is(.is-loading, .is-error) [data-image-viewer-image] { visibility: hidden; }
.community-image-viewer__status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #c5cbc5;
  pointer-events: none;
  font-size: .88rem;
}
.community-image-viewer__status[hidden] { display: none; }
.community-image-viewer__status button { pointer-events: auto; color: #90caf9; background: transparent; border: 0; text-decoration: underline; }
.community-image-viewer__thumbnails {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px max(14px, env(safe-area-inset-bottom));
}
.community-image-viewer__thumbnails[hidden] { display: none; }
.community-image-viewer__thumbnails button { padding: 2px; border: 2px solid transparent; background: transparent; border-radius: 8px; }
.community-image-viewer__thumbnails button[aria-current="true"] { border-color: #90caf9; }
.community-image-viewer__thumbnails img { display: block; width: 44px; height: 40px; object-fit: cover; border-radius: 4px; opacity: .55; }
.community-image-viewer__thumbnails [aria-current="true"] img { opacity: 1; }

.community-image-viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
}

.community-image-viewer__nav--previous {
  left: 10px;
}

.community-image-viewer__nav--next {
  right: 10px;
}

@media (max-width: 600px) {
  .community-image-viewer {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .community-image-viewer__toolbar {
    gap: 8px;
    padding-top: max(7px, env(safe-area-inset-top));
    padding-right: max(8px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .community-image-viewer__tools {
    gap: 4px;
  }

  .community-image-viewer__close,
  .community-image-viewer__zoom {
    width: 38px;
    height: 40px;
  }

  .community-image-viewer__zoom--reset {
    width: auto;
    min-width: 48px;
    padding-inline: 7px;
  }

  .community-image-viewer__stage {
    padding: 6px 4px max(12px, env(safe-area-inset-bottom));
  }

  .community-image-viewer__nav {
    width: 36px;
    height: 42px;
  }

  .community-image-viewer__nav--previous {
    left: 4px;
  }

  .community-image-viewer__nav--next {
    right: 4px;
  }
}

.community-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-top: 11px;
  border-top: 1px solid var(--community-border-soft);
}

.community-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--community-muted);
  background: transparent;
  text-decoration: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 690;
  line-height: 1;
  cursor: pointer;
}

.community-action:hover {
  color: var(--community-text);
  background: var(--community-surface-hover);
}

.community-action.is-active {
  color: #ef8585;
  background: rgba(239, 133, 133, 0.1);
}

.community-action__count {
  min-width: 1ch;
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.community-action--report {
  margin-left: auto;
}

.community-action--metric {
  cursor: default;
}

.community-action--metric:hover {
  color: var(--community-text-muted);
  background: transparent;
}

.community-owner-actions {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 3px;
}

.community-owner-actions button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.72rem;
}

.community-owner-actions button:hover {
  color: var(--community-text);
  background: var(--community-surface-hover);
}

.community-moderator-link {
  display: flex;
  width: max-content;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0 auto;
  padding: 5px 8px;
  color: var(--community-muted);
  border-radius: 8px;
  font-size: 0.72rem;
  text-decoration: none;
}

.community-moderator-link:hover,
.community-moderator-link:focus-visible {
  color: var(--community-text);
  background: var(--community-surface-hover);
}

.community-card--article {
  padding: 0;
  overflow: hidden;
}

.community-article-card__visual {
  position: relative;
  display: block;
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: var(--community-surface-soft);
}

.community-article-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.community-article-card__visual:hover img {
  transform: scale(1.018);
}

.community-editorial-badge {
  position: absolute;
  left: 14px;
  bottom: 13px;
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 5px;
  color: #fff8e8;
  background: rgba(28, 28, 25, 0.74);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 780;
}

.community-editorial-badge--static {
  position: static;
  color: var(--community-article);
  border-color: color-mix(in srgb, var(--community-article) 35%, var(--community-border));
  background: var(--community-article-soft);
  backdrop-filter: none;
}

.community-article-card__body {
  padding: clamp(18px, 3vw, 24px) clamp(18px, 3vw, 25px) 16px;
}

.community-card--article .community-editorial-badge--static {
  margin-bottom: 12px;
}

.community-card__meta--article {
  justify-content: flex-start;
  margin-bottom: 9px;
}

.community-article-card__body h2 {
  margin: 0;
  color: var(--community-text);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 790;
  letter-spacing: -0.03em;
  line-height: 1.16;
}

.community-article-card__body h2 a {
  color: inherit;
  text-decoration: none;
}

.community-article-card__body h2 a:hover {
  color: var(--community-article);
}

.community-article-card__body p {
  margin: 10px 0 12px;
  color: var(--community-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.community-read-link,
.community-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--community-accent-text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 760;
}

.community-read-link:hover,
.community-back-link:hover {
  color: var(--community-accent);
}

.community-detail-title {
  margin: 14px 0;
  color: var(--community-text);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 810;
  letter-spacing: -0.035em;
}

.community-card--article > .community-actions {
  margin: 0 18px 0;
  padding-bottom: 12px;
}

.community-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}

.community-sidebar-card {
  padding: 16px;
  border: 1px solid var(--community-border-soft);
  border-radius: 10px;
  color: var(--community-text);
  background: color-mix(in srgb, var(--community-surface) 96%, transparent);
}

.community-sidebar-card--accent {
  background: var(--community-surface);
}

.community-sidebar-card--accent > .bi {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 12px;
  color: var(--community-accent-text);
  background: var(--community-accent-soft);
}

.community-sidebar-card h2 {
  margin: 0;
  color: var(--community-text);
  font-size: 1rem;
  font-weight: 770;
  line-height: 1.25;
}

.community-sidebar-card p {
  margin: 8px 0 0;
  color: var(--community-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.community-sidebar-links {
  display: grid;
  margin-top: 12px;
  gap: 5px;
}

.community-sidebar-links a {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 10px;
  color: var(--community-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 680;
}

.community-sidebar-links a:hover {
  color: var(--community-text);
  background: var(--community-surface-hover);
}

.community-sidebar-card--rules ul {
  display: grid;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  gap: 9px;
}

.community-sidebar-card--rules li {
  display: flex;
  align-items: start;
  gap: 8px;
  color: var(--community-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.community-sidebar-card--rules li .bi {
  margin-top: 1px;
  color: var(--community-accent-text);
}

.community-empty {
  display: grid;
  min-height: 230px;
  margin-top: 16px;
  padding: 34px 20px;
  place-items: center;
  align-content: center;
  border: 1px dashed var(--community-border);
  border-radius: 10px;
  text-align: center;
  background: color-mix(in srgb, var(--community-surface) 74%, transparent);
}

.community-empty__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 17px;
  color: var(--community-accent-text);
  background: var(--community-accent-soft);
  font-size: 1.25rem;
}

.community-empty h3,
.community-empty p {
  margin: 0;
}

.community-empty h3 {
  color: var(--community-text);
  font-size: 1.05rem;
  font-weight: 760;
}

.community-empty p {
  max-width: 470px;
  margin-top: 7px;
  color: var(--community-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.community-pagination {
  display: grid;
  margin-top: 18px;
  place-items: center;
}

.community-back-link {
  min-height: 40px;
  margin: 0 0 12px 3px;
}

.community-tombstone {
  display: flex;
  align-items: start;
  gap: 13px;
  padding: 6px 2px 17px;
}

.community-tombstone__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: var(--community-muted);
  background: var(--community-surface-soft);
}

.community-tombstone h2,
.community-tombstone p {
  margin: 0;
}

.community-tombstone h2 {
  color: var(--community-text);
  font-size: 0.96rem;
  font-weight: 750;
}

.community-tombstone p {
  margin-top: 5px;
  color: var(--community-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.community-preview-banner,
.community-discussion-closed,
.community-privacy-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--community-article) 35%, var(--community-border));
  border-radius: 13px;
  color: var(--community-article);
  background: var(--community-article-soft);
  font-size: 0.8rem;
  line-height: 1.4;
}

.community-preview-banner {
  margin-bottom: 12px;
}

.community-article {
  overflow: hidden;
}

.community-article__cover {
  max-height: 540px;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--community-surface-soft);
}

.community-article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-article__header {
  padding: clamp(25px, 5vw, 48px) clamp(20px, 6vw, 58px) 12px;
}

.community-article__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
}

.community-article__header h1 {
  max-width: 760px;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--community-text);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 820;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.community-article__excerpt {
  max-width: 720px;
  margin: 19px 0 0;
  color: var(--community-muted);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.55;
}

.community-article__byline {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
}

.community-article__byline > span:last-child {
  display: grid;
  gap: 2px;
}

.community-article__byline strong {
  color: var(--community-text);
  font-size: 0.84rem;
}

.community-article__byline strong a {
  color: inherit;
  text-decoration: none;
}

.community-article__byline span span {
  color: var(--community-muted);
  font-size: 0.73rem;
}

.community-article__body {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px) clamp(20px, 6vw, 58px) clamp(35px, 6vw, 62px);
  color: var(--community-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.7vw, 1.08rem);
  line-height: 1.78;
}

.community-article__body > :first-child {
  margin-top: 0;
}

.community-article__body > :last-child {
  margin-bottom: 0;
}

.community-article__body h2,
.community-article__body h3,
.community-article__body h4 {
  margin: 1.8em 0 0.65em;
  color: var(--community-text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 790;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.community-article__body h2 {
  font-size: 1.6em;
}

.community-article__body h3 {
  font-size: 1.3em;
}

.community-article__body a {
  color: var(--community-accent-text);
  text-underline-offset: 3px;
}

.community-article__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.6em auto 0.5em;
  border-radius: 12px;
}

.community-article__body blockquote {
  margin: 1.5em 0;
  padding: 0.2em 0 0.2em 1.15em;
  border-left: 3px solid var(--community-accent);
  color: var(--community-muted);
}

.community-article__body code {
  padding: 0.12em 0.34em;
  border-radius: 5px;
  background: var(--community-surface-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
}

.community-article__body pre {
  max-width: 100%;
  padding: 15px;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--community-surface-soft);
}

.community-article__body pre code {
  padding: 0;
  background: none;
}

.community-article__footer {
  padding: 0 clamp(20px, 6vw, 58px) 20px;
}

.community-discussion {
  margin-top: 20px;
  padding: clamp(17px, 4vw, 28px);
  scroll-margin-top: 88px;
}

.community-section-heading--discussion {
  margin-bottom: 18px;
}

.community-heading-count {
  display: inline-grid;
  min-width: 26px;
  min-height: 24px;
  margin-left: 4px;
  place-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--community-accent-text);
  background: var(--community-accent-soft);
  font-size: 0.74rem;
  vertical-align: 3px;
}

.community-comment-composer {
  max-width: 36rem;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--community-border-soft);
  border-radius: 16px;
  background: var(--community-surface-soft);
}

.community-comment-composer textarea,
.community-reply-form textarea {
  min-height: 78px;
  padding: 11px 12px;
  resize: vertical;
  background: var(--community-surface);
  font-size: 0.9rem;
}

.community-discussion-signin {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 13px 14px;
  border: 1px solid var(--community-border-soft);
  border-radius: 14px;
  background: var(--community-surface-soft);
}

.community-discussion-signin > .bi {
  color: var(--community-accent-text);
  font-size: 1.1rem;
}

.community-discussion-signin p {
  flex: 1;
  margin: 0;
  color: var(--community-muted);
  font-size: 0.84rem;
}

.community-discussion-closed {
  margin-bottom: 20px;
  color: var(--community-muted);
  border-color: var(--community-border-soft);
  background: var(--community-surface-soft);
}

.community-comment-list {
  display: grid;
  gap: 4px;
}

.community-comment {
  display: grid;
  min-width: 0;
  padding: 14px 2px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  border-bottom: 1px solid var(--community-border-soft);
}

.community-comment:last-child {
  border-bottom: 0;
}

.community-comment__content {
  min-width: 0;
}

.community-comment__header {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.community-comment__header a {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
  color: var(--community-text);
  text-decoration: none;
}

.community-comment__header strong,
.community-comment__header a span {
  max-width: min(280px, 35vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-comment__header strong {
  font-size: 0.84rem;
  font-weight: 760;
}

.community-comment__header a span,
.community-comment__time {
  color: var(--community-muted);
  font-size: 0.68rem;
}

.community-comment__time {
  flex: 0 0 auto;
}

.community-comment__body {
  margin-top: 7px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.community-comment__image {
  display: block;
  width: min(360px, 100%);
  max-height: 320px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--community-border-soft);
  border-radius: 14px;
  background: var(--community-surface-soft);
}

.community-comment__image img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.community-comment__actions {
  display: flex;
  align-items: center;
  gap: 1px;
  margin: 6px 0 0 -8px;
  flex-wrap: wrap;
}

.community-comment__actions .community-action {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 0.7rem;
}

.community-reply-form {
  max-width: 32rem;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--community-border-soft);
  border-radius: 13px;
  background: var(--community-surface-soft);
}

.community-reply-form textarea {
  min-height: 66px;
}

.community-reply-form__actions {
  justify-content: flex-end;
  margin-top: 8px;
}

.community-icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border-radius: 10px;
  cursor: pointer;
}

.community-icon-button:hover {
  color: var(--community-text);
  background: var(--community-surface-hover);
}

.community-replies {
  display: grid;
  margin-top: 4px;
}

.community-comment--reply {
  padding: 11px 0 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  border-bottom: 0;
}

.community-comment--reply .community-avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 11px;
}

.community-replies-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0 -8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  color: var(--community-accent-text);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.community-replies-toggle:hover {
  background: transparent;
}

.community-replies-toggle[aria-expanded="true"] > .bi { transform: rotate(180deg); }
.community-root .comment-mention, .community-reply-recipient a { color: var(--community-accent-text); text-decoration: none; }
.community-root .comment-mention:hover, .community-reply-recipient a:hover { text-decoration: underline; }
.community-reply-recipient { margin: 0 0 7px; color: var(--community-muted); font-size: .78rem; }
.community-root [data-load-replies][hidden], .community-root [data-load-more-replies][hidden] { display: none; }

.community-comment-tombstone {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  color: var(--community-muted);
  font-size: 0.8rem;
  font-style: italic;
}

.community-empty--comments {
  min-height: 175px;
  margin-top: 4px;
  box-shadow: none;
}

.community-inline-editor {
  max-width: 36rem;
  margin-top: 8px;
}

.community-inline-editor textarea {
  min-height: 100px;
  padding: 11px 12px;
  resize: vertical;
}

.community-inline-editor__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.community-profile-hero {
  margin-bottom: 22px;
}

.community-profile-hero__content {
  display: grid;
  padding: clamp(22px, 4vw, 30px);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
}

.community-profile-actions {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.community-profile-actions[open] > :not(summary) {
  margin-top: 6px;
}

.community-profile-hero__content.community-profile-hero__content--blocked {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.community-profile-hero__content--blocked :is(h1, p) {
  margin: 0;
}

.community-profile-avatar {
  display: grid;
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  place-items: center;
  border: 1px solid var(--community-border);
  border-radius: 50%;
  color: var(--community-accent-text);
  background: var(--community-accent-soft);
  object-fit: cover;
  font-size: 1.55rem;
  font-weight: 850;
}

.community-profile-identity {
  min-width: 0;
}

.community-profile-identity h1 {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--community-text);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 810;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-profile-handle {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--community-muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-profile-meta,
.community-profile-bio {
  margin: 0 clamp(18px, 4vw, 30px);
}

.community-profile-meta {
  padding: 13px 0;
  border-top: 1px solid var(--community-border-soft);
  color: var(--community-muted);
  font-size: 0.76rem;
}

.community-profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.community-profile-bio {
  max-width: 680px;
  padding: 0 0 22px;
  color: var(--community-text);
  font-size: 0.9rem;
  line-height: 1.55;
}

.community-profile-posts {
  margin-top: 26px;
}

.community-empty--profile {
  min-height: 190px;
}

.community-settings-card {
  padding: clamp(20px, 5vw, 34px);
}

.community-settings-card__header h1 {
  margin: 0;
  color: var(--community-text);
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 810;
  letter-spacing: -0.04em;
}

.community-settings-card__header p {
  margin: 9px 0 0;
  color: var(--community-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.community-profile-form {
  display: grid;
  margin-top: 25px;
  gap: 19px;
}

.community-profile-avatar-editor {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px;
  border: 1px solid var(--community-border-soft);
  border-radius: 17px;
  background: var(--community-surface-soft);
}

.community-profile-avatar-editor .community-profile-avatar {
  width: 88px;
  height: 88px;
  flex-basis: 88px;
  border-width: 1px;
  border-color: var(--community-border);
  border-radius: 50%;
}

.community-profile-avatar-editor p {
  margin: 7px 0 0;
  color: var(--community-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.community-text-button {
  min-height: 34px;
  margin-left: 5px;
  padding: 5px 8px;
  border-radius: 9px;
  color: var(--community-danger);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

.community-text-button:hover {
  background: var(--community-danger-soft);
}

.community-field {
  display: grid;
  gap: 7px;
  color: var(--community-text);
  font-size: 0.82rem;
  font-weight: 730;
}

.community-field input,
.community-field select,
.community-field textarea {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 430;
}

.community-field textarea {
  min-height: 100px;
  resize: vertical;
}

.community-field small {
  color: var(--community-muted);
  font-size: 0.7rem;
  font-weight: 450;
}

.community-privacy-note {
  color: var(--community-accent-text);
  border-color: color-mix(in srgb, var(--community-accent) 32%, var(--community-border));
  background: var(--community-accent-soft);
}

.community-settings-actions {
  justify-content: flex-end;
  margin-top: 2px;
}

.community-dialog {
  width: min(520px, calc(100vw - 24px));
  max-width: 520px;
  padding: 0;
  border: 1px solid var(--community-border);
  border-radius: 20px;
  color: var(--community-text);
  background: var(--community-surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.community-dialog::backdrop {
  background: rgba(6, 9, 6, 0.7);
  backdrop-filter: blur(4px);
}

.community-dialog__panel {
  display: grid;
  padding: 22px;
  gap: 17px;
}

.community-dialog__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}

.community-dialog__header h2 {
  margin: 0;
  color: var(--community-text);
  font-size: 1.3rem;
  font-weight: 790;
}

.community-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.community-root :where(button, a, input, textarea, select):focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--community-accent) 28%, transparent);
}

.community-root :is(.community-comment-composer, .community-reply-form, .community-inline-editor) textarea:focus {
  border-color: var(--community-muted);
  outline: none !important;
  box-shadow: none !important;
}

.community-root :where(a, button) {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1020px) {
  .community-layout {
    width: min(800px, 100%);
    grid-template-columns: minmax(0, 1fr);
  }

  .community-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-sidebar-card--accent {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .community-page-container {
    padding: 13px 10px 52px;
  }

  .community-hero,
  .community-composer,
  .community-card,
  .community-signin-card,
  .community-discussion,
  .community-article,
  .community-profile-hero,
  .community-settings-card {
    border-radius: 10px;
  }

  .community-hero {
    min-height: 0;
    padding: 6px 2px 18px;
  }

  .community-upload-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .community-signin-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .community-signin-card .community-button {
    grid-column: 1 / -1;
  }

  .community-sidebar {
    grid-template-columns: 1fr;
  }

  .community-sidebar-card--accent {
    grid-column: auto;
  }

  .community-gallery {
    height: min(88vw, 440px);
    margin-inline: -3px;
  }

  .community-gallery--1 {
    height: auto;
  }

  .community-gallery--1 .community-gallery__item {
    aspect-ratio: 4 / 3;
  }

  .community-action {
    min-height: 40px;
    padding: 8px 9px;
  }

  .community-action--report {
    margin-left: 0;
  }

  .community-actions {
    justify-content: space-between;
  }

  .community-card--article > .community-actions {
    margin-inline: 13px;
  }

  .community-article-card__visual {
    aspect-ratio: 16 / 9;
  }

  .community-article__header h1 {
    letter-spacing: -0.04em;
  }

  .community-comment {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
  }

  .community-comment .community-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 12px;
  }

  .community-comment__header {
    display: grid;
    justify-content: start;
    gap: 2px;
  }

  .community-comment__header strong,
  .community-comment__header a span {
    max-width: 55vw;
  }

  .community-comment__time {
    white-space: normal;
  }

  .community-profile-hero__content {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .community-profile-hero__content > :is(.community-button, .community-profile-actions) {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .community-profile-avatar {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
    border-radius: 50%;
  }

  .community-profile-avatar-editor {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .community-page-container {
    padding-inline: 8px;
  }

  .community-composer,
  .community-card,
  .community-discussion,
  .community-settings-card {
    padding: 15px;
  }

  .community-composer__footer,
  .community-comment-composer__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .community-composer__tools {
    justify-content: space-between;
  }

  .community-composer__footer .community-button,
  .community-comment-composer__footer .community-button {
    width: 100%;
  }

  .community-upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-upload-grid--single,
  .community-upload-grid--avatar {
    grid-template-columns: 1fr;
  }

  .community-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .community-card__header {
    align-items: flex-start;
  }

  .community-card__meta {
    align-items: flex-end;
    flex-direction: column;
  }

  .community-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .community-actions > .community-action {
    flex: 1 1 auto;
  }

  .community-actions > .community-action--report {
    flex: 0 0 auto;
  }

  .community-action span[data-i18n] {
    font-size: 0.72rem;
  }

  .community-comment__actions .community-action {
    flex: 0 1 auto;
  }

  .community-comment__actions .community-action--report {
    margin-left: 0;
  }

  .community-discussion-signin {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .community-discussion-signin p {
    flex-basis: calc(100% - 40px);
  }

  .community-discussion-signin .community-button {
    width: 100%;
  }

  .community-profile-hero__content {
    gap: 12px;
  }

  .community-profile-avatar {
    width: 74px;
    height: 74px;
    flex-basis: 74px;
    border-width: 1px;
    border-radius: 50%;
    font-size: 1.15rem;
  }

  .community-profile-avatar-editor {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .community-settings-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .community-settings-actions .community-button {
    width: 100%;
  }

  .community-dialog__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .community-dialog__actions .community-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-root *,
  .community-root *::before,
  .community-root *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Community V2: compact content-first layout. Deliberately flat—no decorative
   gradients, oversized hero panels, or dashboard-style profile furniture. */
.community-page-container {
  padding: 22px clamp(14px, 3vw, 36px) 84px;
}

.community-layout {
  width: min(980px, 100%);
  grid-template-columns: minmax(0, 650px) minmax(250px, 290px);
  gap: clamp(24px, 3vw, 34px);
}

.community-feed-header,
.community-page-header,
.community-hub-header {
  display: flex;
  min-height: 48px;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
}

.community-feed-header h1,
.community-page-header h1,
.community-hub-header h1,
.community-category-header h1 {
  margin: 0;
  color: var(--community-text);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 790;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.community-feed-header > div {
  display: flex;
  align-items: baseline;
  gap: 11px;
}

.community-feed-header__order {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--community-muted);
  font-size: 0.7rem;
}

.community-feed-header__links,
.community-quick-links,
.community-mobile-discovery,
.community-language-filter,
.community-language-switch,
.community-discovery-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.community-feed-header__links a,
.community-language-filter a,
.community-language-switch a,
.community-discovery-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--community-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 720;
}

.community-feed-header__links a:hover,
.community-language-filter a:hover,
.community-language-switch a:hover,
.community-discovery-tabs a:hover,
.community-language-filter a.is-active,
.community-language-switch a.is-active,
.community-discovery-tabs a.is-active {
  color: var(--community-text);
  background: var(--community-surface-hover);
}

.community-composer {
  margin-bottom: 18px;
  padding: 11px 13px;
  border-radius: 10px;
}

.community-composer__compact-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
}

.community-composer.is-expanded .community-composer__compact-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.community-composer.is-expanded .community-avatar {
  margin-top: 3px;
}

.community-composer.is-expanded .community-composer__photo-shortcut {
  display: none;
}

.community-composer__input-wrap {
  min-width: 0;
}

.community-composer textarea {
  min-height: 44px;
  max-height: 44px;
  padding: 10px 3px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  resize: none;
  font-size: 0.92rem;
}

.community-composer textarea:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.community-composer.is-expanded textarea {
  min-height: 68px;
  max-height: 260px;
  padding: 12px 3px 9px;
  overflow-y: auto;
  resize: vertical;
}

.community-composer__expanded {
  display: grid;
  grid-column: 1 / -1;
}

.community-composer .community-form-status:empty {
  display: none;
}

.community-composer__footer {
  gap: 8px;
  margin-top: 8px;
}

.community-composer.is-collapsed .community-composer__expanded {
  display: none;
}

.community-composer__photo-shortcut {
  color: var(--community-accent-text);
}

.community-composer__submit-group {
  display: flex;
  align-items: center;
  gap: 7px;
}

.community-language-field select {
  min-height: 36px;
  max-width: 150px;
  padding: 6px 27px 6px 9px;
  border: 1px solid var(--community-border-soft);
  border-radius: 8px;
  color: var(--community-muted);
  background: var(--community-surface-soft);
  font: inherit;
  font-size: 0.72rem;
}

.community-signin-strip {
  display: grid;
  margin-bottom: 18px;
  padding: 12px 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--community-border-soft);
  border-radius: 10px;
  color: var(--community-muted);
  background: var(--community-surface);
}

.community-signin-strip > .bi {
  color: var(--community-accent-text);
  font-size: 1.1rem;
}

.community-signin-strip p,
.community-signin-strip p > * {
  display: block;
  margin: 0;
}

.community-signin-strip strong {
  color: var(--community-text);
  font-size: 0.84rem;
}

.community-signin-strip p span {
  margin-top: 2px;
  font-size: 0.73rem;
}

.community-stream-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 2px 10px;
}

.community-stream-toolbar h2,
.community-search-section h2 {
  margin: 0;
  color: var(--community-text);
  font-size: 0.86rem;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.community-card {
  border-radius: 10px;
}

.community-content-list {
  gap: 0;
}

.community-card--post:not(.community-card--removed) {
  padding: 11px 12px 8px 60px;
  border: 0;
  border-bottom: 1px solid var(--community-border-soft);
  border-radius: 0;
  background: transparent;
}

.community-card--article {
  margin-block: 10px;
}

.community-post-avatar {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  text-decoration: none;
}

.community-post-avatar .community-avatar {
  width: 100%;
  height: 100%;
}

.community-card--post .community-card__header {
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 5px;
  margin-bottom: 2px;
  line-height: 20px;
}

.community-card--post .community-author {
  flex: 0 1 auto;
  overflow: hidden;
}

.community-card--post .community-author__text {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.community-card--post .community-author__text strong {
  min-width: 0;
  flex: 0 1 auto;
  max-width: none;
  font-size: .88rem;
  font-weight: 700;
}

.community-card--post .community-author__text > span {
  min-width: 0;
  flex: 0 2 auto;
  max-width: none;
  margin: 0;
  font-size: .8rem;
  color: color-mix(in srgb, var(--community-muted) 85%, var(--community-surface));
}

.community-card--post .community-card__meta {
  flex-direction: row;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
  font-size: .78rem;
  color: color-mix(in srgb, var(--community-muted) 85%, var(--community-surface));
}

.community-card--post .community-card__meta::before {
  content: '·';
}

.community-card--post .community-post-body {
  margin: 0 0 6px;
  font-size: .9rem;
  line-height: 1.45;
}

.community-card--post .community-gallery {
  margin: 8px 0 6px;
  max-height: 380px;
}

.community-card--post .community-plant-reference {
  gap: 8px;
  margin: 7px 0;
  padding: 7px;
}

.community-card--post .community-plant-reference img,
.community-card--post .community-plant-reference__icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.community-card--post .community-text-toggle {
  margin: 0 0 5px;
  padding: 2px 0;
}

.community-card--post .community-actions {
  margin: 0;
  padding: 0;
  border: 0;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 3px;
}

.community-card--post .community-actions .community-action {
  min-height: 34px;
  min-width: 30px;
  flex: 0 1 auto;
  padding: 6px;
  gap: 5px;
  font-size: .74rem;
}

/* Keep icon-only actions named for screen readers on every screen size. */
.community-card--post .community-actions .community-action span[data-i18n] {
  display: inline-block;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.community-card--post .community-action-status:empty {
  display: none;
}

.community-card--post .community-owner-actions {
  margin: 0;
}

.community-card--post .community-owner-actions button {
  min-height: 28px;
  padding-block: 3px;
}

.community-root .community-discussion {
  margin-top: 14px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--community-border-soft);
  border-radius: 0;
  background: transparent;
}
.community-discussion .community-section-heading--discussion { align-items: center; flex-direction: row; margin: 0 10px 10px; gap: 8px; }
.community-discussion .community-section-heading h2 { font-size: .92rem; letter-spacing: 0; }
.community-discussion .community-heading-count { min-height: 20px; min-width: 20px; padding: 1px 5px; font-size: .7rem; vertical-align: 1px; }
.community-discussion .community-order-note { font-size: .68rem; }
.community-discussion .community-comment-composer {
  width: 100%;
  max-width: none;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--community-border-soft);
  border-radius: 0;
  background: transparent;
}
.community-comment-composer__row { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
.community-comment-composer__row > .community-avatar { width: 38px; height: 38px; }
.community-comment-composer__input { min-width: 0; }
.community-discussion .community-comment-composer textarea { min-height: 56px; padding: 5px 0; border: 0; border-radius: 0; background: transparent; font-size: .9rem; line-height: 1.45; }
.community-discussion .community-comment-composer__footer { flex-direction: row; align-items: center; margin-top: 4px; }
.community-discussion .community-comment-composer__footer .community-button { width: auto; }
.community-discussion .community-comment-list { gap: 0; }
.community-discussion .community-comment { padding: 10px 12px; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
.community-discussion .community-comment .community-avatar { width: 38px; height: 38px; border-radius: 50%; }
.community-discussion .community-comment__header { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: baseline; justify-content: flex-start; gap: 5px; }
.community-discussion .community-comment__header a { flex: 0 1 auto; overflow: hidden; }
.community-discussion .community-comment__header strong { min-width: 0; flex: 0 1 auto; font-size: .86rem; font-weight: 700; }
.community-discussion .community-comment__header a span { min-width: 0; flex: 0 2 auto; margin: 0; }
.community-discussion .community-comment__header a span,
.community-discussion .community-comment__time { font-size: .75rem; color: var(--community-muted); }
.community-discussion .community-comment__time { white-space: nowrap; }
.community-discussion .community-comment__time::before { content: '· '; }
.community-discussion .community-comment__body { margin-top: 2px; font-size: .9rem; line-height: 1.45; }
.community-discussion .community-comment__actions { margin-top: 3px; gap: 4px; }
.community-discussion .community-comment__actions .community-action { min-height: 32px; padding: 5px 7px; flex: 0 1 auto; }
.community-discussion .community-comment__actions .community-action:not([data-reply-toggle]) span[data-i18n] {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.community-discussion .community-action-status:empty { display: none; }
.community-discussion .community-reply-form { width: min(100%, 36rem); max-width: 100%; margin: 6px 0 0; padding: 0 0 0 10px; border: 0; border-left: 2px solid var(--community-border-soft); border-radius: 0; background: transparent; }
.community-discussion .community-reply-form textarea,
.community-root .community-discussion .community-reply-form textarea:focus { display: block; min-height: 54px; max-height: 160px; padding: 6px 0; border: 0; border-radius: 0; background: transparent; color: var(--community-text); font-size: 14px; line-height: 1.45; resize: vertical; box-shadow: none; }
.community-discussion .community-reply-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.community-discussion .community-reply-form__actions .community-icon-button { flex: 0 0 30px; width: 30px; height: 30px; margin-right: auto; font-size: 14px; color: var(--community-accent-text); }
.community-discussion .community-reply-form__actions .community-button { min-height: 28px; min-block-size: 28px; width: auto; padding: 4px 8px; font-size: 12px; line-height: 1.35; border-radius: 6px; }
.community-discussion .community-reply-form .community-form-status:empty { display: none; }
.community-discussion .community-reply-form .community-upload-grid--single { max-width: 110px; margin-top: 6px; }
.community-discussion .community-empty--comments { min-height: 0; margin: 0; padding: 28px 12px; border: 0; border-radius: 0; background: transparent; }
.community-discussion .community-empty--comments h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.community-discussion .community-empty--comments p { margin-top: 6px; font-size: 13px; color: var(--community-muted); }
.community-discussion .community-comment--reply { padding: 9px 0 5px; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; }
.community-discussion .community-comment--reply .community-avatar { width: 30px; height: 30px; }
.community-discussion .community-replies { border-left: 1px solid var(--community-border-soft); padding-left: 10px; }
.community-discussion .community-comment__image { max-width: 320px; margin-top: 7px; border-radius: 8px; }
.community-discussion .community-replies-toggle { min-height: 30px; margin-top: 0; font-size: .75rem; }

@media (max-width: 760px) {
  .community-discussion .community-comment,
  .community-comment-composer__row { grid-template-columns: 34px minmax(0, 1fr); gap: 8px; }
  .community-discussion .community-comment .community-avatar,
  .community-comment-composer__row > .community-avatar { width: 34px; height: 34px; }
  .community-discussion .community-comment--reply { grid-template-columns: 28px minmax(0, 1fr); }
  .community-discussion .community-comment--reply .community-avatar { width: 28px; height: 28px; }
}

.community-actions {
  justify-content: flex-start;
  gap: 1px;
}

.community-actions .community-action--report {
  margin-left: auto;
}

.community-action[data-bookmark-url].is-active {
  color: var(--community-accent-text);
  background: var(--community-accent-soft);
}

.community-compose-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 1025;
  display: none;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid color-mix(in srgb, var(--community-accent) 70%, #000);
  border-radius: 999px;
  color: var(--community-accent-ink);
  background: var(--community-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

html[data-theme="light"] .community-compose-fab {
  background: var(--community-accent-strong);
}

.community-discovery-rail {
  position: sticky;
  top: var(--community-rail-sticky-top, 82px);
  align-self: start;
  display: grid;
  gap: 13px;
  min-width: 0;
}

.community-search-box,
.community-search-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--community-border-soft);
  border-radius: 10px;
  color: var(--community-muted);
  background: var(--community-surface);
}

.community-search-box {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0 12px;
}

.community-search-box input,
.community-search-main input {
  width: 100%;
  min-height: 43px;
  padding: 8px 0;
  border: 0;
  outline: 0;
  color: var(--community-text);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
}

.community-search-main {
  margin-bottom: 20px;
  padding: 7px 8px 7px 13px;
}

.community-search-main input {
  min-height: 40px;
  font-size: 0.95rem;
}

.community-quick-links {
  justify-content: space-between;
  padding: 0 3px;
}

.community-quick-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 6px 7px;
  border-radius: 7px;
  color: var(--community-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 680;
}

.community-quick-links a:hover,
.community-quick-links a[aria-current="page"] {
  color: var(--community-text);
  background: var(--community-surface-hover);
}

.community-rail-card {
  padding: 14px;
  border: 1px solid var(--community-border-soft);
  border-radius: 10px;
  background: var(--community-surface);
}

.community-plan-card {
  border-left-color: var(--community-border-soft);
}

.community-plan-card .community-rail-kicker {
  color: var(--community-muted);
  font-weight: 680;
  letter-spacing: 0;
  text-transform: none;
}

.community-plan-card .community-rail-link {
  color: var(--community-text);
}

.community-plan-card .community-rail-link:hover {
  color: var(--community-muted);
}

.community-rail-kicker,
.community-page-kicker,
.community-hub-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--community-accent-text);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.community-rail-card h2,
.community-rail-heading h2 {
  margin: 0;
  color: var(--community-text);
  font-size: 0.86rem;
  font-weight: 770;
}

.community-rail-card > p {
  margin: 6px 0 0;
  color: var(--community-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.community-rail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--community-accent-text);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 740;
}

.community-rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.community-rail-heading > a {
  color: var(--community-muted);
  text-decoration: none;
  font-size: 0.67rem;
}

.community-discovery-list {
  display: grid;
}

.community-discovery-item {
  display: grid;
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--community-border-soft);
  color: var(--community-text);
  text-decoration: none;
  gap: 3px;
}

.community-discovery-item:last-child {
  border-bottom: 0;
}

.community-discovery-item__type,
.community-discovery-item__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--community-muted);
  font-size: 0.62rem;
}

.community-discovery-item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.73rem;
  font-weight: 680;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.community-discovery-item__meta {
  gap: 4px;
}

.community-discovery-item__meta .bi-chat {
  margin-left: 5px;
}

.community-rail-empty {
  margin: 8px 0 2px;
  color: var(--community-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.community-bottom-nav {
  display: none;
}

.community-composer {
  scroll-margin-top: calc(var(--site-header-height, 60px) + 20px);
}

.community-composer textarea:focus-visible,
.community-root input[type="search"]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.community-unread-badge {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 999px;
  color: var(--community-surface);
  background: var(--community-accent-text);
  font-size: 0.62rem;
  font-weight: 750;
  line-height: 1;
}

.community-unread-badge[hidden] {
  display: none;
}

.community-page-header p,
.community-hub-header p,
.community-category-header p {
  max-width: 640px;
  margin: 6px 0 0;
  color: var(--community-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.community-search-section {
  display: grid;
  margin: 20px 0;
  gap: 10px;
}

.community-profile-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.community-profile-results > a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--community-border-soft);
  border-radius: 9px;
  color: var(--community-text);
  background: var(--community-surface);
  text-decoration: none;
}

.community-profile-results > a > span:last-child {
  display: grid;
  min-width: 0;
}

.community-profile-results strong,
.community-profile-results small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-profile-results strong {
  font-size: 0.78rem;
}

.community-profile-results small {
  color: var(--community-muted);
  font-size: 0.66rem;
}

.community-search-topics,
.community-category-links,
.community-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.community-search-topics > *,
.community-category-links a,
.community-article__tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--community-border-soft);
  border-radius: 8px;
  color: var(--community-muted);
  background: var(--community-surface);
  text-decoration: none;
  font-size: 0.72rem;
}

.community-search-prompt {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  color: var(--community-muted);
  text-align: center;
  gap: 10px;
}

.community-search-prompt .bi {
  color: var(--community-accent-text);
  font-size: 1.8rem;
}

.community-inline-alert {
  padding: 10px 12px;
  border: 1px solid var(--community-border-soft);
  border-radius: 8px;
  color: var(--community-muted);
  background: var(--community-surface-soft);
  font-size: 0.78rem;
}

.community-inline-alert.is-error {
  color: var(--community-danger);
  border-color: color-mix(in srgb, var(--community-danger) 35%, var(--community-border));
  background: var(--community-danger-soft);
}

.community-discovery-tabs {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--community-border-soft);
}

.community-discovery-tabs a {
  border-radius: 7px 7px 0 0;
}

.community-number-pagination {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.community-number-pagination a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--community-border-soft);
  border-radius: 8px;
  color: var(--community-text);
  text-decoration: none;
  font-size: 0.75rem;
}

.community-number-pagination > span {
  color: var(--community-muted);
  font-size: 0.72rem;
}

.community-focused-thread {
  margin-bottom: 18px;
  padding: 8px 12px 4px;
  border: 1px solid color-mix(in srgb, var(--community-accent) 40%, var(--community-border));
  border-radius: 10px;
  background: var(--community-accent-soft);
  scroll-margin-top: 90px;
}

.community-focused-thread__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--community-accent-text);
  font-size: 0.67rem;
  font-weight: 760;
}

.community-focused-thread .community-comment {
  border-bottom: 0;
}

.community-focused-reply {
  margin-left: 50px;
  border-top: 1px solid var(--community-border-soft);
}

.community-comment.is-targeted {
  scroll-margin-top: 96px;
}

.community-comment.is-targeted:focus {
  outline: none;
}

.community-notification-preferences {
  display: grid;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--community-border-soft);
  border-radius: 10px;
  gap: 10px;
}

.community-notification-preferences legend {
  padding: 0 4px;
  color: var(--community-text);
  font-size: 0.9rem;
  font-weight: 760;
}

.community-notification-preferences > p {
  margin: -4px 0 2px;
  color: var(--community-muted);
  font-size: 0.72rem;
}

.community-notification-preferences label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--community-text);
  cursor: pointer;
}

.community-notification-preferences input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--community-accent-strong);
}

.community-notification-preferences label span {
  display: grid;
}

.community-notification-preferences strong {
  font-size: 0.78rem;
}

.community-notification-preferences small {
  margin-top: 2px;
  color: var(--community-muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.community-activity-page {
  width: min(760px, 100%);
  margin: 0 auto;
}

.community-page-header--actions {
  align-items: center;
}

.community-activity-list {
  overflow: hidden;
  border: 1px solid var(--community-border-soft);
  border-radius: 10px;
  background: var(--community-surface);
}

.community-activity-item {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 13px 14px;
  grid-template-columns: 36px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--community-border-soft);
}

.community-activity-item:last-child {
  border-bottom: 0;
}

.community-activity-item.is-unread {
  background: var(--community-surface);
  box-shadow: inset 2px 0 0 var(--community-accent);
}

.community-activity-item__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  color: var(--community-accent-text);
  background: var(--community-surface-soft);
}

.community-activity-item__body {
  min-width: 0;
}

.community-activity-item__body p,
.community-activity-item__body strong {
  margin: 0;
  color: var(--community-text);
  font-size: 0.78rem;
  line-height: 1.4;
}

.community-activity-item__context,
.community-activity-item time {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--community-muted);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-activity-item__link {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--community-muted);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.community-activity-item__link:hover {
  color: var(--community-text);
  background: var(--community-surface-hover);
}

.community-article-hub,
.community-category-page {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.community-hub-header {
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--community-border-soft);
}

.community-hub-header h1,
.community-category-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.community-featured-articles,
.community-category-strip,
.community-hub-recent,
.community-related-articles {
  margin: 0 0 36px;
}

.community-hub-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.community-hub-section-heading h2 {
  margin: 0;
  color: var(--community-text);
  font-size: 1.05rem;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.community-featured-lead {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  border: 1px solid var(--community-border-soft);
  border-radius: 11px;
  background: var(--community-surface);
}

.community-featured-lead__image {
  display: block;
  min-height: 300px;
  overflow: hidden;
  background: var(--community-surface-soft);
}

.community-featured-lead__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-featured-lead__body {
  display: flex;
  padding: clamp(24px, 4vw, 42px);
  justify-content: center;
  flex-direction: column;
}

.community-featured-lead__body h2 {
  margin: 11px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 810;
  letter-spacing: -0.045em;
  line-height: 1.07;
}

.community-featured-lead--text {
  width: min(760px, 100%);
  grid-template-columns: 1fr;
}

.community-featured-lead--text .community-featured-lead__body {
  max-width: 780px;
  min-height: 200px;
}

.community-featured-lead__body h2 a,
.community-editorial-card h3 a {
  color: var(--community-text);
  text-decoration: none;
}

.community-featured-lead__body p {
  margin: 15px 0;
  color: var(--community-muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

.community-category-label {
  width: fit-content;
  color: var(--community-article);
  text-decoration: none;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.community-featured-secondary,
.community-editorial-grid {
  display: grid;
  margin-top: 13px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.community-editorial-grid--category {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-editorial-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--community-border-soft);
  border-radius: 10px;
  background: var(--community-surface);
}

.community-editorial-card--text .community-editorial-card__body {
  padding: 18px;
}

.community-featured-secondary:has(> .community-editorial-card:only-child) {
  grid-template-columns: 1fr;
}

.community-featured-secondary > .community-editorial-card:only-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
}

.community-editorial-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--community-surface-soft);
}

.community-editorial-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-editorial-card__body {
  padding: 14px;
}

.community-editorial-card__meta,
.community-editorial-card__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--community-muted);
  font-size: 0.64rem;
}

.community-editorial-card__meta a {
  color: var(--community-article);
  text-decoration: none;
  font-weight: 740;
}

.community-editorial-card h3 {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.25;
}

.community-editorial-card__body > p {
  display: -webkit-box;
  margin: 7px 0 12px;
  overflow: hidden;
  color: var(--community-muted);
  font-size: 0.73rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.community-editorial-card__stats {
  justify-content: flex-start;
}

.community-category-links a {
  min-width: 130px;
  justify-content: space-between;
}

.community-category-links a span {
  min-width: 22px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.community-hub-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  gap: 30px;
}

.community-hub-popular ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--community-border-soft);
  list-style: none;
}

.community-hub-popular li {
  display: grid;
  padding: 13px 0;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  border-bottom: 1px solid var(--community-border-soft);
}

.community-hub-popular li > span {
  color: var(--community-muted);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.community-hub-popular li a {
  color: var(--community-text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 680;
  line-height: 1.4;
}

.community-category-header {
  margin: 18px 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--community-border-soft);
}

.community-article-topnav {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.community-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--community-muted);
  list-style: none;
  font-size: 0.75rem;
}

.community-breadcrumb li:not(:last-child)::after {
  margin-left: 6px;
  content: "/";
  color: var(--community-border-strong);
}

.community-breadcrumb a {
  color: var(--community-accent-text);
  text-decoration: none;
}

.community-breadcrumb [aria-current="page"] {
  overflow: hidden;
  max-width: min(42vw, 360px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-article-translations {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--community-muted);
  font-size: 0.7rem;
}

.community-article-translations a {
  padding: 4px 6px;
  border-radius: 5px;
  color: var(--community-text);
  background: var(--community-surface-soft);
  text-decoration: none;
  font-weight: 750;
}

.community-article .community-article__header {
  max-width: 780px;
  margin: 0 auto;
}

.community-article .community-article__cover {
  width: calc(100% - clamp(20px, 6vw, 58px) * 2);
  max-width: 980px;
  margin: 26px auto 0;
  border-radius: 8px;
}

.community-article__tags {
  max-width: 760px;
  margin: -24px auto 30px;
  padding-inline: clamp(20px, 6vw, 58px);
}

.community-article__tags span {
  min-height: 28px;
  background: transparent;
}

.community-related-articles {
  margin-top: 30px;
}

.community-related-articles .community-editorial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-discussion-bridge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 -4px;
  padding: 14px 16px;
  border-top: 1px solid var(--community-border-soft);
  border-bottom: 1px solid var(--community-border-soft);
}

.community-discussion-bridge > .bi {
  color: var(--community-accent-text);
  font-size: 1.2rem;
}

.community-discussion-bridge strong,
.community-discussion-bridge p {
  display: block;
  margin: 0;
}

.community-discussion-bridge strong {
  font-size: 0.82rem;
}

.community-discussion-bridge p {
  margin-top: 2px;
  color: var(--community-muted);
  font-size: 0.7rem;
}

@media (max-width: 1050px) {
  .community-layout,
  .community-layout--discovery {
    width: min(650px, 100%);
    grid-template-columns: minmax(0, 1fr);
  }

  .community-discovery-rail {
    display: none;
  }

  .community-root:has([data-community-bottom-nav]) {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }

  .community-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 1020;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 3px max(8px, env(safe-area-inset-right)) calc(3px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--community-border-soft);
    background: var(--community-surface);
  }

  .community-bottom-nav a {
    position: relative;
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    color: var(--community-muted);
    text-decoration: none;
    font-size: 1.38rem;
  }

  .community-bottom-nav a .bi {
    display: grid;
    width: 48px;
    height: 40px;
    place-items: center;
    border-radius: 999px;
  }

  .community-bottom-nav a[aria-current="page"] {
    color: var(--community-accent-text);
  }

  .community-bottom-nav a[aria-current="page"] .bi {
    background: color-mix(in srgb, var(--community-accent) 12%, transparent);
  }

  .community-bottom-nav .community-unread-badge {
    position: absolute;
    top: 3px;
    left: calc(50% + 5px);
    border: 2px solid var(--community-surface);
    height: 20px;
    min-width: 20px;
  }

  .community-compose-fab {
    display: inline-flex;
  }

  .community-root.is-composing .community-compose-fab,
  .community-root.has-mobile-keyboard .community-compose-fab,
  .community-root.has-mobile-keyboard .community-bottom-nav {
    display: none;
  }

  [data-page="activity"] .community-page-header--actions {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .community-editorial-grid--category {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .community-page-container {
    padding: 12px 9px calc(74px + env(safe-area-inset-bottom));
  }

  .community-feed-header {
    align-items: center;
    margin-bottom: 10px;
  }

  .community-feed-header__order {
    display: none;
  }

  .community-feed-header__links a {
    padding-inline: 7px;
  }

  .community-composer {
    padding: 10px 11px;
  }

  .community-composer__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .community-composer__tools {
    flex-wrap: wrap;
    gap: 6px;
  }

  .community-composer__submit-group {
    justify-content: flex-end;
  }

  .community-stream-toolbar {
    align-items: center;
  }

  .community-card--post:not(.community-card--removed) {
    padding: 10px 8px 7px 50px;
  }

  .community-post-avatar {
    top: 11px;
    left: 8px;
    width: 34px;
    height: 34px;
  }

  .community-stream-toolbar h2 {
    font-size: .8rem;
  }

  .community-stream-toolbar .community-language-filter {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .community-stream-toolbar .community-language-filter a {
    padding-inline: 4px;
    font-size: .7rem;
  }

  .community-actions {
    display: flex;
  }

  .community-actions .community-action {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 5px;
  }

  .community-actions .community-action--report {
    margin-left: 0;
  }

  .community-actions .community-action span[data-i18n] {
    display: none;
  }

  .community-action__count {
    display: inline !important;
  }

  .community-signin-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .community-signin-strip .community-button {
    grid-column: 1 / -1;
  }

  .community-profile-results,
  .community-editorial-grid,
  .community-editorial-grid--category,
  .community-featured-secondary,
  .community-related-articles .community-editorial-grid {
    grid-template-columns: 1fr;
  }

  .community-featured-lead {
    grid-template-columns: 1fr;
  }

  .community-featured-lead__image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .community-featured-lead__body {
    padding: 21px;
  }

  .community-featured-secondary > .community-editorial-card:only-child {
    display: block;
  }

  .community-hub-columns {
    grid-template-columns: 1fr;
  }

  .community-hub-popular {
    margin-bottom: 30px;
  }

  .community-article .community-article__cover {
    width: calc(100% - 20px);
    margin-top: 16px;
  }

  .community-page-header--actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-activity-item {
    padding: 11px;
    grid-template-columns: 34px minmax(0, 1fr) 32px;
    gap: 8px;
  }
}

@media (max-width: 430px) {
  .community-composer__compact-row {
    grid-template-columns: 36px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .community-composer__compact-row .community-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .community-language-field {
    order: 3;
    flex-basis: 100%;
  }

  .community-language-field select {
    max-width: 100%;
  }

  .community-stream-toolbar {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .community-search-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .community-search-main .community-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .community-focused-reply {
    margin-left: 22px;
  }

  .community-hub-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
