/* Header Contribute CTA + first-screen suggest + Facebook review card. */

.contribute-btn,
#contribute-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  background: #1877F2;
  border: none;
  border-radius: 20px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.contribute-btn:hover,
#contribute-btn:hover {
  background: #1464d8;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.4);
  transform: translateY(-1px);
}

body.light .contribute-btn,
body.light #contribute-btn {
  color: #ffffff;
}

body.light .contribute-btn:hover,
body.light #contribute-btn:hover {
  color: #ffffff;
}

#nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

#contribute-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
}

#contribute-backdrop.visible { display: block; }

#contribute-sheet {
  display: none;
  position: fixed;
  z-index: 2001;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px));
  max-height: min(88vh, 720px);
  overflow: auto;
  background: #161b22;
  color: #e6edf3;
  border: 1px solid #21262d;
  border-radius: 16px;
  padding: 24px 22px 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

#contribute-sheet.open { display: block; }

body.light #contribute-sheet {
  background: #ffffff;
  color: #111827;
  border-color: #e5e7eb;
}

.contribute-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #7d8590;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.contribute-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 28px 8px 0;
}

.contribute-sub {
  font-size: 0.88rem;
  color: #8b8fa3;
  line-height: 1.5;
  margin: 0 0 18px;
}

body.light .contribute-sub { color: #6b7280; }

.contribute-form { margin-bottom: 14px; }

.contribute-back {
  background: none;
  border: none;
  color: #0d9488;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  margin: 0 0 12px;
}

.contribute-field { margin-bottom: 12px; }

.contribute-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.contribute-req { color: #f85149; }

.contribute-field input,
.contribute-field textarea,
.contribute-field select {
  width: 100%;
  background: #0d1117;
  border: 1px solid #30363d;
  color: #e6edf3;
  border-radius: 8px;
  padding: 9px 11px;
  font: inherit;
  font-size: 0.9rem;
}

body.light .contribute-field input,
body.light .contribute-field textarea,
body.light .contribute-field select {
  background: #ffffff;
  border-color: #d1d5db;
  color: #111827;
}

.contribute-field textarea { min-height: 72px; resize: vertical; }

.contribute-error {
  display: none;
  font-size: 0.82rem;
  color: #f85149;
  margin: 0 0 10px;
}

.contribute-error.visible { display: block; }

.contribute-submit {
  width: 100%;
  background: #0d9488;
  color: #0d1117;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.contribute-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.contribute-thanks {
  text-align: center;
  font-size: 1rem;
  margin: 28px 8px 12px;
  line-height: 1.5;
}

.contribute-fb-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  background: #1877F2;
  border: none;
  border-radius: 12px;
  padding: 14px;
  color: #ffffff;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.contribute-fb-card:hover {
  background: #1464d8;
  color: #ffffff;
  text-decoration: none;
}

.contribute-fb-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 650;
  color: #ffffff;
  margin-bottom: 4px;
}

.contribute-fb-card-copy {
  display: block;
  font-size: 0.8rem;
  color: #ffffff;
  line-height: 1.45;
  opacity: 0.92;
}

.contribute-fb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1877F2;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
}

.contribute-fb:hover { color: #fff; text-decoration: none; }
