/* =========================================================
   수풀잎 메인 — B 링크 모음형 (home_b)
   모든 스타일은 .sphb 안에서만 적용
   ========================================================= */
body {
  background: #fdf7ee !important;
  background-image: none !important;
}

.sphb {
  font-family: Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: #3b3228;
  padding: 36px 16px 44px;
  box-sizing: border-box;
}
.sphb *, .sphb *::before, .sphb *::after { box-sizing: border-box; }
.sphb a,
.sphb a:hover,
.sphb a:focus,
.sphb a:active { text-decoration: none; color: inherit; }
.sphb img { display: block; max-width: 100%; }

.sphb-col {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

/* ---- 프로필 ---- */
.sphb-ava {
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fff;
  padding: 10px;
  box-shadow: 0 2px 0 #eadfcf;
}
.sphb-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #3b3228;
}
.sphb-sub {
  margin: 6px 0 0;
  color: #8a7b69;
  font-size: 14px;
  line-height: 1.55;
  word-break: keep-all;
}

/* ---- 언어 선택 (국기) ---- */
.sphb-langs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px auto 24px;
  max-width: 330px;
  padding: 0;
  list-style: none;
}
.sphb-langs li { list-style: none; margin: 0; padding: 0; }
.sphb-flag {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #eadfcf;
  background: #fff;
  opacity: .75;
  transition: transform .12s, opacity .12s, border-color .12s;
}
.sphb-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sphb-flag:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: #3b3228;
}
.sphb-flag.is-current {
  opacity: 1;
  border-color: #3b3228;
  box-shadow: 0 0 0 2px #fdf7ee, 0 0 0 4px #6cc08b;
}

/* ---- 버튼 ---- */
.sphb-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: #fff;
  border: 2px solid #3b3228;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 12px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  color: #3b3228;
  cursor: pointer;
  box-shadow: 0 4px 0 #3b3228;
  transition: transform .1s, box-shadow .1s;
}
.sphb-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #3b3228;
}
.sphb-btn .ico { font-size: 22px; width: 26px; text-align: center; font-style: normal; }
.sphb-btn .txt { flex: 1; line-height: 1.35; }
.sphb-btn .arr { font-style: normal; }
.sphb-btn small {
  display: block;
  font-weight: 500;
  color: #9a8b78;
  font-size: 12px;
}
.sphb-btn.is-main,
.sphb a.sphb-btn.is-main { background: #6cc08b; color: #fff; }
.sphb-btn.is-main small { color: #e9fff0; }
.sphb-btn.is-sub { background: #fff5e6; }

/* ---- 섹션 라벨 ---- */
.sphb-label {
  margin: 24px 0 10px;
  font-size: 13px;
  color: #9a8b78;
  font-weight: 700;
  letter-spacing: .05em;
}

/* ---- 오픈채팅 썸네일 ---- */
.sphb-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sphb-thumbs a {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #3b3228;
  background: #fff;
  transition: transform .12s;
}
.sphb-thumbs a:hover { transform: translateY(-2px); }
.sphb-thumbs img { width: 100%; height: auto; }
.sphb-thumbs p {
  margin: 0;
  padding: 7px 4px;
  font-size: 13px;
  font-weight: 700;
}

/* ---- 갤러리 ---- */
.sphb-gallery {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #3b3228;
  background: #fff;
}
.sphb-gallery img { width: 100%; height: auto; }

/* ---- 관리자 전용 영역 ---- */
.sphb-admin {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.sphb-admin a {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 2px dashed #9a8b78;
  font-size: 14px;
  font-weight: 700;
  color: #7a6a55;
}

/* ---- 하단 ---- */
.sphb-ft {
  margin-top: 28px;
  font-size: 13px;
  color: #9a8b78;
}
.sphb-ft a,
.sphb-ft a:hover { text-decoration: underline; margin: 0 6px; }

@media (max-width: 380px) {
  .sphb-flag { width: 30px; height: 30px; }
  .sphb-btn { font-size: 15px; padding: 13px 14px; }
}
