/* PRIMLOGiC community workspace */
:root {
  --community: #047857;
  --community-strong: #065F46;
  --community-soft: #ECFDF5;
  --community-border: #BFE5D7;
}

.hero-forest {
  margin-top: var(--nav-h);
  padding: 48px 24px 42px;
  border-bottom: 1px solid var(--c-border-light);
  background: var(--c-surface);
  text-align: center;
}

.hero-forest.marketing-hero {
  background: #FFFFFF url('/assets/backgrounds/compute-forest-contours-v1.webp') center / 100% 100% no-repeat;
  animation: forest-hero-breathe 18s ease-in-out infinite;
}

.hero-forest h1 {
  margin: 0 0 10px;
  color: var(--c-text);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
}

.hero-forest .forest-presence {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #397461;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.forest-presence__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #12A474;
  box-shadow: 0 0 0 3px rgba(18, 164, 116, .1);
  animation: forest-presence-pulse 2.4s ease-out infinite;
}

.hero-forest h1.forest-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin: 0 auto 16px;
  color: #0A5C45;
  line-height: 1;
  letter-spacing: 0;
}

.forest-wordmark__zh {
  color: #0A5C45 !important;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 46px;
  font-weight: 480;
  line-height: 1.04;
  -webkit-text-fill-color: #0A5C45 !important;
}

.hero-forest--section h1.forest-wordmark {
  flex-direction: row;
  gap: 14px;
  max-width: 100%;
  color: var(--community-strong);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(38px, 4.6vw, 52px);
  font-weight: 680;
  line-height: 1.08;
  text-wrap: balance;
}

.forest-wordmark__brand,
.forest-wordmark__section {
  display: inline-block;
}

.forest-wordmark__brand {
  color: #0F172A;
  font-size: .88em;
  font-weight: 760;
}

.forest-wordmark__section {
  color: var(--community-strong);
  font-weight: 620;
}

@keyframes forest-presence-pulse {
  0%, 55%, 100% { box-shadow: 0 0 0 4px rgba(18, 164, 116, .12); }
  70% { box-shadow: 0 0 0 7px rgba(18, 164, 116, 0); }
}

@keyframes forest-hero-breathe {
  0%, 100% { background-size: 100% 100%; }
  50% { background-size: 102% 102%; }
}

@media (prefers-reduced-motion: reduce) {
  .forest-presence__dot {
    animation: none;
  }

  .hero-forest.marketing-hero {
    animation: none;
  }
}

.hero-forest p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.tab-panel {
  display: none;
  width: min(100%, 1168px);
  min-height: 480px;
  margin: 0 auto;
  padding: 40px 24px 88px;
}

.tab-panel.active {
  display: block;
}

.forest-grid,
.events,
.wish-stats,
.wish-form,
.wish-cards,
.feedback-layout,
.fb-recent,
.community-shell,
.community-groups {
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

/* Community square */
.forest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--c-border);
}

.forest-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 18px;
  min-height: 196px;
  padding: 28px;
  border: 0;
  border-bottom: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-text);
  text-align: left;
  transition: background .16s ease;
}

.forest-card:nth-child(odd) {
  border-right: 1px solid var(--c-border);
}

.forest-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
}

.forest-card:hover,
.forest-card:focus-visible {
  background: var(--c-surface);
  outline: none;
}

.forest-card:focus-visible {
  box-shadow: inset 0 0 0 2px var(--community);
}

.forest-card .card-icon {
  display: flex;
  grid-row: 1 / 4;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--community-soft);
  color: var(--community);
}

.forest-card:nth-child(2) .card-icon {
  background: var(--c-primary-weak);
  color: var(--c-primary);
}

.forest-card:nth-child(3) .card-icon {
  background: var(--c-forta-weak);
  color: var(--c-forta);
}

.forest-card:nth-child(4) .card-icon {
  background: var(--c-warning-weak);
  color: var(--c-warning);
}

.forest-card h3 {
  margin: 0 0 7px;
  font-size: 18px;
  line-height: 1.35;
}

.forest-card p {
  max-width: 46ch;
  margin: 0 0 16px;
  color: var(--c-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.forest-card-link {
  align-self: end;
  color: var(--community);
  font-size: 13px;
  font-weight: 700;
}

.section-title {
  margin: 52px 0 20px;
  font-size: 22px;
  font-weight: 750;
  text-align: left;
}

.events {
  border-top: 1px solid var(--c-border);
}

.event-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
  min-height: 88px;
  padding: 15px 4px;
  border: 0;
  border-bottom: 1px solid var(--c-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--community-soft);
  color: var(--community);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.event-date strong {
  margin-top: 2px;
  font-size: 20px;
}

.event-info h4 {
  margin: 0 0 3px;
  color: var(--c-text);
  font-size: 15px;
}

.event-info p {
  color: var(--c-text-muted);
  font-size: 13px;
}

.event-tag {
  min-width: 58px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.event-tag.is-ended {
  background: var(--c-surface-subtle);
  color: var(--c-text-muted);
}

.event-tag.is-open {
  background: var(--community-soft);
  color: var(--community-strong);
}

.community-section-heading {
  margin: 56px 0 22px;
}

.community-section-heading h2 {
  margin-bottom: 5px;
  font-size: 22px;
}

.community-section-heading p {
  color: var(--c-text-muted);
  font-size: 14px;
}

.community-group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.community-group {
  padding: 18px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-surface);
}

.community-group img {
  display: block;
  width: 100%;
  max-width: 132px;
  margin: 0 0 16px;
  border-radius: 4px;
}

.community-group h3 {
  margin: 0 0 3px;
  color: var(--c-text);
  font-size: 14px;
}

.community-group p {
  color: var(--c-text-muted);
  font-size: 12px;
}

/* Forms and reusable workspace controls */
.community-form-heading {
  margin-bottom: 22px;
}

.community-form-heading h2,
.community-form-heading h3,
.fb-form > h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.community-form-heading p {
  max-width: 68ch;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.community-form-grid {
  display: grid;
  grid-template-columns: minmax(200px, .36fr) minmax(0, 1fr);
  gap: 16px;
}

.community-field {
  display: block;
  color: var(--c-text-soft);
  font-size: 13px;
  font-weight: 650;
}

.community-field > span {
  color: var(--c-text-faint);
  font-size: 12px;
  font-weight: 500;
}

.community-field input,
.community-field select,
.community-field textarea {
  display: block;
  width: 100%;
  margin: 7px 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--c-border-strong);
  border-radius: 8px;
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.community-field input,
.community-field select {
  min-height: 44px;
}

.community-field textarea {
  min-height: 104px;
  resize: vertical;
}

.community-field input:focus,
.community-field select:focus,
.community-field textarea:focus,
.community-input:focus,
.community-select:focus,
.community-textarea:focus,
.bbs-reply-input:focus {
  border-color: var(--community);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .12);
}

.community-field input::placeholder,
.community-field textarea::placeholder,
.community-input::placeholder,
.community-textarea::placeholder,
.bbs-reply-input::placeholder {
  color: #64748B;
  opacity: 1;
}

.community-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.community-help {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 12px;
  text-align: left;
}

.community-submit-row .btn {
  min-width: 132px;
}

.community-submit-row .btn-primary,
.community-full.btn-primary {
  background: var(--community);
  box-shadow: var(--shadow-xs);
}

.community-submit-row .btn-primary:hover,
.community-full.btn-primary:hover {
  background: var(--community-strong);
}

.community-full {
  width: 100%;
}

.community-message {
  margin-top: 10px;
}

/* Wish wall */
.wish-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
  border-top: 1px solid var(--c-border-strong);
  border-bottom: 1px solid var(--c-border);
  background: transparent;
}

.wish-stat {
  padding: 18px 22px;
  text-align: left;
}

.wish-stat + .wish-stat {
  border-left: 1px solid var(--c-border);
}

.wish-stat strong {
  display: block;
  margin-bottom: 2px;
  color: var(--c-text);
  font-size: 24px;
  line-height: 1.2;
}

.wish-stat span {
  color: var(--c-text-muted);
  font-size: 12px;
}

.wish-form,
.fb-form,
.community-composer {
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-surface);
  box-shadow: var(--shadow-xs);
}

.wish-form {
  margin-bottom: 24px;
  padding: 28px;
}

.community-sort {
  display: flex;
  justify-content: flex-end;
  max-width: 1120px;
  margin: 0 auto 14px;
}

.community-filter {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-surface);
  color: var(--c-text-muted);
  font-size: 12px;
  font-weight: 600;
}

.community-filter + .community-filter {
  margin-left: 6px;
}

.community-filter:hover {
  color: var(--c-text);
}

.community-filter.is-active {
  border-color: var(--community);
  background: var(--community-soft);
  color: var(--community-strong);
}

.wish-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.community-state {
  grid-column: 1 / -1;
  padding: 48px 20px;
  color: var(--c-text-muted);
  text-align: center;
}

.community-state.error {
  color: var(--c-danger);
}

.wish-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-surface);
}

.wish-card .cat,
.bbs-list-item .cat,
.fb-cat,
.fb-status,
.status-badge,
.tier-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 650;
}

.wish-card .cat {
  margin-bottom: 10px;
}

.wish-card .cat.func,
.bbs-list-item .cat.func {
  background: var(--community-soft);
  color: var(--community);
}

.wish-card .cat.perf,
.bbs-list-item .cat.perf {
  background: var(--c-primary-weak);
  color: var(--c-primary);
}

.wish-card .cat.uiux,
.bbs-list-item .cat.uiux {
  background: var(--c-forta-weak);
  color: var(--c-forta);
}

.wish-card .cat.other,
.bbs-list-item .cat.other {
  background: var(--c-warning-weak);
  color: #C2410C;
}

.wish-card h4 {
  margin: 0 0 7px;
  padding-right: 64px;
  font-size: 15px;
}

.wish-card .desc {
  margin-bottom: 15px;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.wish-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--c-text-faint);
  font-size: 12px;
}

.vote-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--community-border);
  border-radius: 6px;
  background: var(--community-soft);
  color: var(--community);
  font-size: 12px;
  font-weight: 700;
}

.vote-btn:hover,
.vote-btn.voted {
  border-color: var(--community);
  background: var(--community);
  color: #FFF;
}

.status-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #FFF7ED;
  color: #9A3412;
}

.status-badge.done {
  background: #DCFCE7;
  color: #166534;
}

/* Feedback */
.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}

.fb-form {
  padding: 26px;
}

.reward-note {
  margin: 18px 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--community-border);
  border-radius: 6px;
  background: var(--community-soft);
  color: #315F50;
  font-size: 13px;
  line-height: 1.65;
}

.reward-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--community-strong);
  font-size: 14px;
}

.fb-sidebar > div {
  padding: 18px 2px 8px;
  border-top: 1px solid var(--c-border-strong);
  background: transparent;
}

.fb-sidebar > div + div {
  margin-top: 28px;
}

.fb-sidebar h3 {
  margin: 0 0 11px;
  font-size: 15px;
}

.reward-item {
  padding: 9px 0;
  border-bottom: 1px solid var(--c-border-light);
  color: var(--c-text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.reward-item:last-child {
  border-bottom: 0;
}

.fb-recent {
  margin-top: 38px;
}

.fb-recent h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.fb-item {
  padding: 16px 18px;
  border-top: 1px solid var(--c-border);
  background: transparent;
  font-size: 14px;
}

.fb-item:last-child {
  border-bottom: 1px solid var(--c-border);
}

.fb-cat {
  margin-right: 8px;
}

.fb-cat.func {
  background: var(--community-soft);
  color: var(--community);
}

.fb-cat.arch {
  background: var(--c-forta-weak);
  color: var(--c-forta);
}

.fb-cat.ui {
  background: var(--c-primary-weak);
  color: var(--c-primary);
}

.fb-cat.ops {
  background: var(--c-warning-weak);
  color: #C2410C;
}

.fb-status {
  float: right;
  background: var(--c-surface-subtle);
  color: var(--c-text-muted);
}

.fb-status.adopted {
  background: #DCFCE7;
  color: #166534;
}

.fb-summary {
  margin: 7px 0 3px;
  color: var(--c-text-muted);
  font-size: 13px;
}

.fb-meta {
  color: var(--c-text-faint);
  font-size: 11px;
}

.community-action,
.bbs-reply-submit {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--community);
  color: #FFF;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.community-action:hover,
.bbs-reply-submit:hover {
  background: var(--community-strong);
}

/* Discussion */
.community-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.community-heading h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.community-heading p {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.community-filters,
.community-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.community-select,
.community-input,
.community-textarea,
.bbs-reply-input {
  width: 100%;
  border: 1px solid var(--c-border-strong);
  border-radius: 8px;
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 13px;
  outline: none;
}

.community-select,
.community-input {
  min-height: 44px;
  padding: 0 11px;
}

.community-filters .community-select {
  width: auto;
  min-width: 136px;
}

.community-textarea,
.bbs-reply-input {
  min-height: 104px;
  padding: 10px 11px;
  resize: vertical;
}

.community-composer {
  display: none;
  margin-bottom: 18px;
  padding: 24px;
}

.community-composer.is-open {
  display: block;
}

.community-composer .community-field {
  margin-top: 12px;
}

.bbs-form-category {
  margin-bottom: 2px;
}

.community-form-actions {
  margin: 14px 0 0;
}

.community-cancel,
.community-back {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--c-text-muted);
  font-size: 13px;
}

.community-cancel:hover,
.community-back:hover {
  background: var(--c-surface-subtle);
  color: var(--c-text);
}

.community-detail {
  display: none;
}

.bbs-empty {
  margin-top: 18px;
  padding: 44px 20px;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text-muted);
  text-align: center;
}

.bbs-list-item {
  position: relative;
  padding: 17px 18px;
  border-top: 1px solid var(--c-border);
  background: transparent;
  cursor: pointer;
  transition: background .16s ease;
}

.bbs-list-item:last-child {
  border-bottom: 1px solid var(--c-border);
}

.bbs-list-item:hover,
.bbs-list-item:focus-visible {
  background: var(--c-surface);
  outline: none;
}

.bbs-list-item:focus-visible {
  box-shadow: inset 0 0 0 2px var(--community);
}

.bbs-list-item .cat {
  margin-right: 8px;
}

.bbs-list-item strong {
  color: var(--c-text);
  font-size: 14px;
}

.bbs-meta {
  margin-top: 5px;
  color: var(--c-text-faint);
  font-size: 12px;
}

.bbs-detail-card {
  margin: 12px 0 22px;
  padding: 24px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-surface);
}

.bbs-detail-card h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

.bbs-detail-meta,
.bbs-reply-meta {
  color: var(--c-text-faint);
  font-size: 12px;
}

.bbs-like {
  color: var(--community);
  font-weight: 650;
}

.bbs-detail-body {
  margin-top: 18px;
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.bbs-replies-title {
  margin-bottom: 10px;
  font-size: 15px;
}

.bbs-reply {
  padding: 13px 0;
  border-top: 1px solid var(--c-border);
}

.bbs-reply-body {
  margin-top: 4px;
  color: var(--c-text-soft);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.bbs-reply-input {
  margin-top: 14px;
}

.bbs-reply-submit {
  margin-top: 10px;
}

/* Technical committee */
.committee-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  align-items: center;
  gap: clamp(48px, 6vw, 84px);
  margin-bottom: clamp(68px, 8vw, 96px);
  padding: clamp(38px, 5vw, 64px);
  border-top: 1px solid var(--community-border);
  border-bottom: 1px solid var(--community-border);
  background: #F3F8F6;
}

.committee-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--community-strong);
  font-size: 13px;
  font-weight: 700;
}

.committee-label > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #9BCBBA;
  border-radius: 4px;
  background: #FFF;
  font-size: 11px;
  font-weight: 800;
}

.committee-hero h2 {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--c-text);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 720;
  line-height: 1.08;
  text-wrap: balance;
}

.committee-hero h2 strong {
  color: var(--community-strong);
  font-weight: inherit;
}

.committee-identity > p:last-child {
  max-width: 640px;
  color: #415B53;
  font-size: 16px;
  line-height: 1.8;
  text-wrap: pretty;
}

.committee-principles {
  display: flex;
  flex-wrap: wrap;
  margin-top: 34px;
  color: var(--community-strong);
}

.committee-principles span {
  padding: 0 18px;
  border-left: 1px solid #A8CFC1;
  font-size: 12px;
  font-weight: 650;
}

.committee-principles span:first-child {
  padding-left: 0;
  border-left: 0;
}

.committee-mandate {
  border: 1px solid #B9D8CD;
  border-radius: 6px;
  background: #FFF;
  box-shadow: 0 18px 48px rgba(25, 75, 60, .08);
}

.committee-mandate__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  padding: 0 20px;
  border-bottom: 1px solid var(--community-border);
  color: var(--community-strong);
  font-size: 12px;
  font-weight: 700;
}

.committee-mandate__head strong {
  color: #72998C;
  font-size: 10px;
  font-weight: 700;
}

.committee-mandate dl {
  margin: 0;
  padding: 0;
}

.committee-mandate dl > div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--c-border-light);
}

.committee-mandate dl > div:last-child {
  border-bottom: 0;
}

.committee-mandate dt {
  color: var(--community);
  font-size: 13px;
  font-weight: 750;
}

.committee-mandate dd {
  margin: 0;
}

.committee-mandate dd strong,
.committee-mandate dd span {
  display: block;
}

.committee-mandate dd strong {
  margin-bottom: 4px;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 680;
}

.committee-mandate dd span {
  color: var(--c-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.committee-agenda {
  display: grid;
  grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr);
  gap: clamp(48px, 7vw, 92px);
  margin-bottom: clamp(76px, 9vw, 112px);
}

.committee-agenda > header > p,
.committee-process > header > p,
.committee-outputs > div > p,
.committee-participation > div > p {
  margin: 0 0 12px;
  color: var(--community);
  font-size: 13px;
  font-weight: 700;
}

.committee-agenda header h3,
.committee-process header h3,
.committee-outputs h3,
.committee-participation h3 {
  margin: 0;
  color: var(--c-text);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

.committee-agenda header > span,
.committee-outputs > div > span,
.committee-participation > div > span {
  display: block;
  margin-top: 20px;
  color: var(--c-text-muted);
  font-size: 14px;
  line-height: 1.75;
  text-wrap: pretty;
}

.committee-agenda__list {
  border-top: 1px solid var(--c-border-strong);
}

.committee-agenda__list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--c-border);
}

.committee-agenda__list article > span {
  padding-top: 3px;
  color: #7BA596;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.committee-agenda__list h4 {
  margin: 0 0 8px;
  color: var(--c-text);
  font-size: 18px;
  font-weight: 680;
}

.committee-agenda__list p {
  max-width: 64ch;
  margin: 0;
  color: var(--c-text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.committee-process {
  margin: 0 0 clamp(76px, 9vw, 112px);
  padding: clamp(34px, 5vw, 52px);
  border-top: 1px solid var(--community-border);
  border-bottom: 1px solid var(--community-border);
  background: #F3F8F6;
}

.committee-process > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.committee-process > header > p {
  margin: 0 0 5px;
}

.committee-process ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid #AFCFC3;
  list-style: none;
}

.committee-process li {
  min-height: 190px;
  padding: 24px 24px 12px 0;
}

.committee-process li + li {
  padding-left: 24px;
  border-left: 1px solid #C9DED6;
}

.committee-process li > span {
  display: block;
  margin-bottom: 34px;
  color: #6F9A8B;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.committee-process li strong {
  display: block;
  margin-bottom: 9px;
  color: var(--c-text);
  font-size: 16px;
  font-weight: 680;
}

.committee-process li p {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.committee-outputs {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  gap: clamp(48px, 8vw, 108px);
  align-items: start;
  margin-bottom: clamp(72px, 9vw, 108px);
}

.committee-outputs ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--c-border);
  list-style: none;
}

.committee-outputs li {
  display: grid;
  grid-template-columns: minmax(140px, .44fr) minmax(0, 1fr);
  gap: 24px;
  padding: 19px 0;
  border-bottom: 1px solid var(--c-border);
}

.committee-outputs li strong {
  color: var(--c-text);
  font-size: 14px;
  font-weight: 680;
}

.committee-outputs li span {
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.committee-participation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(36px, 7vw, 84px);
  align-items: end;
  padding: clamp(30px, 4vw, 46px) 0;
  border-top: 1px solid var(--community-border);
  border-bottom: 1px solid var(--community-border);
}

.committee-participation > div > span {
  max-width: 72ch;
}

.committee-participation nav {
  display: flex;
  gap: 10px;
}

.committee-participation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #9BCBBA;
  border-radius: 6px;
  background: #FFF;
  color: var(--community-strong);
  font-size: 13px;
  font-weight: 700;
  transition: border-color .16s ease, background .16s ease;
}

.committee-participation a:hover,
.committee-participation a:focus-visible {
  border-color: var(--community);
  background: var(--community-soft);
  outline: none;
}

/* Toast */
.toast {
  position: fixed;
  top: calc(var(--nav-h) + 16px);
  right: 20px;
  z-index: var(--z-toast);
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 18px;
  border-radius: 8px;
  color: #FFF;
  font-size: 14px;
  font-weight: 650;
  animation: community-toast-in .22s cubic-bezier(.22, 1, .36, 1);
}

.toast.success {
  background: var(--community);
}

.toast.error {
  background: var(--c-danger);
}

.toast.info {
  background: var(--c-primary);
}

@keyframes community-toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .feedback-layout {
    grid-template-columns: 1fr;
  }

  .fb-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .fb-sidebar > div + div {
    margin-top: 0;
  }

  .community-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .committee-hero {
    grid-template-columns: 1fr;
    gap: 42px;
    align-items: start;
  }

  .committee-mandate {
    width: min(100%, 640px);
  }

  .committee-agenda,
  .committee-outputs,
  .committee-participation {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .committee-process ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .committee-process li {
    min-height: 168px;
    padding: 24px;
  }

  .committee-process li:nth-child(3) {
    border-left: 0;
  }

  .committee-process li:nth-child(n + 3) {
    border-top: 1px solid #C9DED6;
  }

  .committee-participation {
    align-items: start;
  }

  .committee-participation nav {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .hero-forest {
    padding: 40px 20px 34px;
  }

  .hero-forest h1 {
    font-size: 32px;
  }

  .hero-forest .forest-presence {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .hero-forest h1.forest-wordmark {
    margin-bottom: 14px;
  }

  .forest-wordmark__zh { font-size: 34px; }

  .hero-forest--section h1.forest-wordmark {
    flex-direction: column;
    gap: 4px;
    font-size: 36px;
  }

  .forest-wordmark__brand {
    font-size: 20px;
  }

  .tab-panel {
    min-height: 400px;
    padding: 28px 16px 64px;
  }

  .forest-grid,
  .community-form-grid {
    grid-template-columns: 1fr;
  }

  .forest-card {
    min-height: 0;
    padding: 22px 10px;
    border-right: 0 !important;
  }

  .section-title {
    margin-top: 44px;
  }

  .event-item {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 14px 0;
  }

  .event-tag {
    grid-column: 2;
    justify-self: start;
  }

  .wish-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wish-stat {
    padding: 14px 10px;
    text-align: center;
  }

  .wish-stat strong {
    font-size: 21px;
  }

  .wish-form,
  .fb-form,
  .community-composer {
    padding: 20px;
  }

  .community-submit-row {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .community-submit-row .btn {
    width: 100%;
  }

  .community-heading {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .fb-sidebar,
  .community-group-grid {
    grid-template-columns: 1fr;
  }

  .committee-hero {
    gap: 34px;
    margin-bottom: 64px;
    padding: 30px 20px;
  }

  .committee-hero h2 {
    font-size: 40px;
  }

  .committee-identity > p:last-child {
    font-size: 15px;
  }

  .committee-principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }

  .committee-principles span,
  .committee-principles span:first-child {
    padding: 0 12px;
    border-left: 1px solid #A8CFC1;
  }

  .committee-principles span:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .committee-mandate__head strong {
    display: none;
  }

  .committee-mandate dl > div {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 16px;
  }

  .committee-agenda {
    margin-bottom: 70px;
  }

  .committee-agenda__list article {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
  }

  .committee-process {
    margin-bottom: 70px;
    padding: 30px 20px;
  }

  .committee-process > header {
    display: block;
  }

  .committee-process ol {
    grid-template-columns: 1fr;
  }

  .committee-process li,
  .committee-process li + li,
  .committee-process li:nth-child(3) {
    min-height: 0;
    padding: 22px 0;
    border-top: 1px solid #C9DED6;
    border-left: 0;
  }

  .committee-process li:first-child {
    border-top: 0;
  }

  .committee-process li > span {
    margin-bottom: 14px;
  }

  .committee-outputs {
    margin-bottom: 70px;
  }

  .committee-outputs li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .committee-participation nav {
    flex-direction: column;
  }

  .committee-participation a {
    width: 100%;
  }

  .community-group {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
  }

  .community-group img {
    grid-row: 1 / 3;
    width: 104px;
    margin: 0;
  }

  .community-group h3 {
    align-self: end;
  }

  .community-group p {
    align-self: start;
  }

  .wish-card .meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-filters {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .community-filters .community-select {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }

  .forest-card,
  .bbs-list-item {
    transition: none;
  }
}
