/* 루비엔 공식 채널 바 — 데스크톱 / 모바일 높이 64px */
/* 위치는 이 세 값만 조정합니다. 기존 본문 컨테이너 안에 넣을 때는 좌우를 0으로 설정합니다. */
.rby-social-wrap {
  --rby-left: 17.3%;
  --rby-right: 8.5%;
  --rby-overlap: -16px;
  --rby-accent: #ac4d5e;
  position: relative;
  z-index: 2;
  margin: var(--rby-overlap) var(--rby-right) 20px var(--rby-left);
  color-scheme: dark;
}

.rby-social,
.rby-social *,
.rby-social *::before,
.rby-social *::after {
  box-sizing: border-box;
}

.rby-social {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
  padding: 9px 22px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 12px;
  background: linear-gradient(110deg, #282328 0%, #19181b 53%, #231b21 100%);
  box-shadow: 0 8px 20px rgb(36 23 30 / 11%);
  color: #f8f5f4;
  font-family: "Inter", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
}

.rby-social__intro { flex: 0 0 160px; }
.rby-social__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d1a1aa;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.3px;
  line-height: 1.3;
  white-space: nowrap;
}
.rby-social__dot {
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rby-accent);
}
.rby-social .rby-social__title {
  margin: 5px 0 0;
  padding: 0;
  color: #f8f5f4;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.06em;
  white-space: nowrap;
}
.rby-social .rby-social__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rby-social .rby-social__item {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rby-social .rby-social__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #f3eff1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rby-social__link::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 1px;
  background: rgb(255 255 255 / 8%);
  content: "";
}
.rby-social__link::after {
  position: absolute;
  right: 25%;
  bottom: -4px;
  left: 25%;
  height: 2px;
  background: var(--rby-accent);
  content: "";
  transform: scaleX(0);
  transition: transform .2s ease;
}
.rby-social .rby-social__icon {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #d6cdd1;
  transition: transform .18s ease, color .18s ease;
}
.rby-social__name {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.03em;
}
.rby-social__link[href]:hover .rby-social__icon {
  transform: translateY(-2px);
  color: #fff;
}
.rby-social__link[href]:hover::after,
.rby-social__link[href]:focus-visible::after { transform: scaleX(1); }
.rby-social__link:focus-visible {
  outline: 2px solid #e9b0bf;
  outline-offset: -2px;
  border-radius: 5px;
}
.rby-social .rby-social__link[aria-disabled="true"] { cursor: default; }

@media (min-width: 701px) and (max-width: 1000px) {
  .rby-social-wrap { --rby-left: 10%; --rby-right: 6%; }
  .rby-social { gap: 12px; padding-right: 18px; padding-left: 18px; }
  .rby-social__intro { flex-basis: 135px; }
  .rby-social .rby-social__title { font-size: 13px; }
  .rby-social .rby-social__link { gap: 6px; padding: 0 4px; }
  .rby-social__name { font-size: 12px; }
}

@media (max-width: 700px) {
  .rby-social-wrap {
    --rby-left: 16px;
    --rby-right: 16px;
    --rby-overlap: -8px;
    margin-bottom: 16px;
  }
  .rby-social { gap: 0; padding: 9px 12px; }
  .rby-social__intro { display: none; }
  .rby-social .rby-social__link { flex-direction: column; gap: 4px; padding: 0; }
  .rby-social__link::before { display: none; }
  .rby-social .rby-social__icon { flex-basis: 18px; width: 18px; height: 18px; }
  .rby-social__name { font-size: 11px; line-height: 14px; }
}

/* 좁은 사이드 컨테이너에도 삽입하는 경우 선택적으로 사용합니다. */
.rby-social-wrap--compact .rby-social__intro { display: none; }

@media (prefers-reduced-motion: reduce) {
  .rby-social__link::after,
  .rby-social .rby-social__icon { transition: none; }
}

/* 루비앤 추가: 관리포털에서 비운 채널은 숨김 */
.rby-social .rby-social__item[hidden] { display: none; }
