:root {
  --cb-green: #00b564;
  --cb-green-deep: #009655;
  --cb-coral: #ff6b5a;
  --cb-ink: #111827;
  --cb-muted: #5b6470;
  --cb-paper: #f8faf9;
  --cb-card: #ffffff;
  --cb-line: rgba(17, 24, 39, 0.1);
  --cb-radius: 16px;
  --cb-font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --cb-max: 1080px;
  --cb-shadow: 0 8px 28px rgba(0, 150, 85, 0.08);
}

html { scroll-behavior: smooth; }

body.connectboard {
  font-family: var(--cb-font);
  color: var(--cb-ink);
  background: var(--cb-paper);
  -webkit-font-smoothing: antialiased;
}

body.connectboard a {
  color: var(--cb-green-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.connectboard a:hover { color: var(--cb-green); }

body.connectboard .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cb-line);
}

body.connectboard .site-header .inside-header {
  max-width: var(--cb-max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
}

body.connectboard .main-title a {
  font-weight: 800;
  color: var(--cb-ink);
  letter-spacing: -0.02em;
}

/* Home */
.cb-home { max-width: var(--cb-max); margin: 0 auto; padding: 2rem 1.25rem 4rem; }

.cb-hero {
  background: linear-gradient(135deg, #e8fbf2 0%, #fff 55%);
  border: 1px solid var(--cb-line);
  border-radius: calc(var(--cb-radius) + 4px);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--cb-shadow);
}

.cb-hero__eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cb-green-deep);
  background: rgba(0, 181, 100, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.cb-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.cb-hero__lead {
  color: var(--cb-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 36rem;
  margin: 0;
}

.cb-section__head h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.cb-section__head p {
  color: var(--cb-muted);
  margin: 0 0 1.25rem;
}

.cb-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.cb-board {
  background: var(--cb-card);
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--cb-shadow);
}

.cb-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cb-board__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.cb-board__count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--cb-coral);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.cb-board__posts {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.cb-board__posts li + li { margin-top: 0.35rem; }

.cb-board__empty {
  color: var(--cb-muted);
  font-size: 0.9rem;
  margin: 0;
}

.cb-latest__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.cb-latest__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--cb-card);
  border: 1px solid var(--cb-line);
  border-radius: 12px;
}

.cb-latest__list time {
  font-size: 0.82rem;
  color: var(--cb-muted);
}
