/**
 * Twice Born Community — shared styles
 */

.tbcm-app {
  max-width: 820px;
  margin: 0 auto 3rem;
  padding: 1.5rem 1rem 2rem;
  font-family: Montserrat, system-ui, sans-serif;
  color: #2c2c2c;
}

.tbcm-header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.tbcm-title {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
  color: #1a2744;
  text-align: left;
}

.tbcm-subtitle {
  color: #5c5348;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  max-width: 42rem;
}

.tbcm-privacy-points {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
  color: #5c5348;
  line-height: 1.55;
  text-align: left;
  max-width: 42rem;
}

.tbcm-contact-help {
  text-align: left;
}

.tbcm-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  max-height: 520px;
  overflow-y: auto;
  padding: 0.5rem;
}

.tbcm-entry {
  background: #faf7f2;
  border: 1px solid #e8dfd0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 4px 14px rgba(44, 44, 44, 0.05);
}

.tbcm-entry--answer {
  border-left: 4px solid #7a9b76;
  margin-left: 1rem;
}

.tbcm-entry--bot {
  background: #f5f8f4;
}

.tbcm-entry__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #7a7066;
  margin-bottom: 0.35rem;
}

.tbcm-entry__name {
  font-weight: 600;
  color: #8b4513;
}

.tbcm-entry__body {
  white-space: pre-wrap;
  line-height: 1.55;
  margin: 0;
}

.tbcm-entry__flag {
  background: none;
  border: none;
  color: #999;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0;
}

.tbcm-entry__flag:hover {
  color: #b87333;
}

.tbcm-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #e8dfd0;
  border-radius: 14px;
  padding: 1rem;
}

.tbcm-form label {
  font-size: 0.85rem;
  font-weight: 600;
}

.tbcm-form input,
.tbcm-form textarea {
  border: 1px solid #d4cbb8;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.tbcm-btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.tbcm-btn--primary {
  background: linear-gradient(145deg, #e2c066, #c9a227);
  color: #1a2744;
}

.tbcm-btn--secondary {
  background: #7a9b76;
  color: #fff;
}

.tbcm-btn--ghost {
  background: transparent;
  border: 1px solid #ccc;
  color: #5c5348;
}

.tbcm-auth-panel {
  text-align: center;
  padding: 1rem;
  background: #fff8e8;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.tbcm-auth-panel a {
  color: #8b4513;
  font-weight: 600;
}

.tbcm-legal {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

.tbcm-coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tbcm-coach-card {
  background: #faf7f2;
  border: 1px solid #e8dfd0;
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
}

.tbcm-coach-card__avatar-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.tbcm-coach-card img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.tbcm-coach-card h4 {
  margin: 0 0 0.35rem;
  font-family: Cinzel, Georgia, serif;
}

.tbcm-coach-card p {
  font-size: 0.85rem;
  color: #5c5348;
  margin: 0 0 0.75rem;
}

.tbcm-panel {
  border-top: 1px solid #e8dfd0;
  padding-top: 1.5rem;
  margin-top: 1rem;
}

.tbcm-notice {
  background: #e8f4e6;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.tbcm-notice--error {
  background: #fdecea;
  color: #7a1f1f;
  border: 1px solid #f0c2c2;
}

.tbcm-privacy-points li {
  margin-bottom: 0.35rem;
}

.tbcm-gospel-panel {
  background: #faf6ee;
  border-left: 4px solid #8b6914;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.tbcm-gospel-panel h3 {
  margin-top: 0;
  color: #1a2744;
}

.tbcm-saved-fieldset {
  border: 1px solid #e8dfd0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}

.tbcm-saved-fieldset legend {
  font-weight: 600;
  padding: 0 0.35rem;
}

.tbcm-saved-fieldset label {
  display: block;
  margin: 0.35rem 0;
}

.tbcm-hint {
  font-size: 0.8rem;
  color: #666;
}

.tbcm-dialog {
  border: none;
  border-radius: 16px;
  padding: 1.25rem;
  max-width: 420px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.tbcm-dialog-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.tbcm-terms h3 {
  font-family: Cinzel, Georgia, serif;
  margin-top: 1.5rem;
}

.tbcm-terms ul {
  line-height: 1.6;
}

.tbcm-quiz-q {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
}

.tbcm-quiz-q label {
  display: block;
  margin: 0.25rem 0;
  font-weight: 400;
  cursor: pointer;
}

.tbcm-empty {
  text-align: center;
  color: #888;
  padding: 2rem;
}

/* Community hub (/community/) */
.tbcm-hub {
  max-width: 960px;
  margin: 0 auto 3rem;
}

.tbcm-hub-section {
  margin: 2rem 0;
}

.tbcm-hub-list {
  line-height: 1.65;
  padding-left: 1.25rem;
}

.tbcm-hub-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.tbcm-hub-card {
  border: 1px solid #e4ddd2;
  border-radius: 8px;
  padding: 1rem;
  background: #faf8f5;
}

.tbcm-hub-card p {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: #5c5348;
}

.tbcm-hub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.tbcm-hub-tile {
  border: 1px solid #e4ddd2;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.tbcm-hub-tile h3 {
  margin-top: 0;
  font-size: 1.05rem;
}
