/* BUDDIES GLOBAL AUTO NAV v20 - instant render + text-only navigation */
:root {
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --fs-page-pc: 34px;
  --fs-page-tablet: 30px;
  --fs-page-mobile: 26px;

  --fs-section-pc: 19px;
  --fs-section-tablet: 18px;
  --fs-section-mobile: 17px;

  --fs-title-pc: 14px;
  --fs-title-tablet: 13.5px;
  --fs-title-mobile: 13px;

  --fs-body-pc: 13px;
  --fs-body-tablet: 12.5px;
  --fs-body-mobile: 12px;

  --fs-meta-pc: 12px;
  --fs-meta-tablet: 11.5px;
  --fs-meta-mobile: 10.5px;

  --fs-badge-pc: 10.5px;
  --fs-badge-tablet: 10px;
  --fs-badge-mobile: 10px;

  --bd-purple: #5842f4;
  --bd-purple-dark: #3f2ed1;
  --bd-purple-soft: #edecff;
  --bd-title: #101828;
  --bd-text: #1d2939;
  --bd-sub: #667085;
  --bd-muted: #98a2b3;
  --bd-border: #eaecf0;
  --bd-border-strong: #d0d5dd;
  --bd-bg: #faf9fc;
  --bd-green: #11845b;
  --bd-yellow: #b7791f;
  --bd-orange: #ff8a52;
  --bd-blue: #356dff;
  --bd-red: #d92d20;
  --bd-pink: #ff4d9d;
}

html,
body,
input,
button,
select,
textarea {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-synthesis: none;
}

body.has-buddies-global-nav {
  background: var(--bd-bg);
}

.buddies-global-nav-root,
.buddies-global-nav-root * {
  box-sizing: border-box;
}

.buddies-global-nav-root a {
  color: inherit;
  text-decoration: none;
}

.buddies-nav-mobile-topbar,
.buddies-nav-bottom,
.buddies-nav-overlay {
  display: none;
}

@media (min-width: 1025px) {
  body.has-buddies-global-nav {
    padding-left: 236px !important;
    box-sizing: border-box;
  }

  body.has-buddies-global-company-nav {
    padding-left: 248px !important;
  }

  body.has-buddies-global-admin-nav {
    padding-left: 236px !important;
  }

}

.buddies-nav-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2000;
  width: 236px;
  height: 100vh;
  padding: 18px 14px;
  background: #ffffff;
  border-right: 1px solid var(--bd-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.buddies-nav-sidebar.is-company {
  width: 248px;
}

.buddies-nav-sidebar.is-admin {
  width: 236px;
}

.buddies-nav-head {
  min-height: 48px;
  padding: 2px 8px 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--bd-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.buddies-nav-logo {
  color: var(--bd-purple) !important;
  font-size: 22px;
  line-height: 1;
  font-weight: var(--fw-bold);
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.buddies-nav-logo:hover {
  color: var(--bd-purple-dark) !important;
}

.buddies-nav-menu {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;  gap: 10px;
  padding-bottom: 12px;
}

.buddies-nav-group {
  display: flex;
  flex-direction: column;  gap: 3px;
}

.buddies-nav-group p {
  margin: 0 0 5px 8px;
  color: var(--bd-title);
  font-size: 13px;
  line-height: 1.25;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.buddies-nav-group:last-child {
  margin-top: auto;
  padding-top: 10px;
}

.buddies-nav-link {
  position: relative;
  min-height: 36px;
  width: 100%;
  padding: 0 12px 0 28px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--bd-sub);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: var(--fw-medium);
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}

.buddies-nav-link:hover {
  background: #f7f6ff;
  color: var(--bd-purple);
}

.buddies-nav-link.is-active {
  background: var(--bd-purple-soft);
  color: var(--bd-purple);
  font-weight: var(--fw-semibold);
  box-shadow: none;
}

.buddies-nav-link.is-logout {
  color: #b42318;
}

.buddies-nav-link.is-logout:hover {
  background: #fff1f2;
  color: #b42318;
}

.buddies-nav-link > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buddies-nav-badge,
.buddies-mobile-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bd-orange);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-badge-pc);
  line-height: 1;
  font-weight: var(--fw-medium);
  font-style: normal;
}

.buddies-nav-badge.is-new {
  background: var(--bd-pink);
}

.buddies-company-profile,
.buddies-admin-profile {
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 16px;
  background: #fbfbff;
  border: 1px solid var(--bd-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.buddies-company-logo-box,
.buddies-admin-logo-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
}

.buddies-company-logo-box {
  background: #ffffff;
  border: 1px solid var(--bd-border);
  color: var(--bd-purple);
}

.buddies-company-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buddies-admin-logo-box {
  background: var(--bd-purple);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(88, 66, 244, 0.16);
}

.buddies-company-profile-text,
.buddies-admin-profile-text {
  min-width: 0;
}

.buddies-company-profile-text strong,
.buddies-admin-profile-text strong {
  display: block;
  max-width: 160px;
  color: var(--bd-title);
  font-size: 13px;
  line-height: 1.25;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buddies-company-profile-text span,
.buddies-admin-profile-text span {
  display: block;
  margin-top: 4px;
  color: var(--bd-muted);
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: var(--fw-medium);
}

.buddies-company-profile-text em {
  font-style: normal;
  font-weight: 700;
}

.buddies-company-profile-text em.status-pending { color: var(--bd-yellow); }
.buddies-company-profile-text em.status-approved { color: var(--bd-green); }
.buddies-company-profile-text em.status-rejected,
.buddies-company-profile-text em.status-inactive { color: var(--bd-red); }

.buddies-nav-login-card {
  padding: 13px;
  border-radius: 14px;
  background: #fbfbff;
  border: 1px solid var(--bd-border);
}

.buddies-nav-login-card strong {
  display: block;
  color: var(--bd-title);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.buddies-nav-login-card span {
  display: block;
  margin-top: 6px;
  color: var(--bd-sub);
  font-size: 11.7px;
  line-height: 1.45;
  font-weight: 500;
  word-break: keep-all;
}

.buddies-nav-login-card div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.buddies-nav-login-btn,
.buddies-nav-signup-btn,
.buddies-company-service-button {
  min-height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
}

.buddies-nav-login-btn {
  background: var(--bd-purple);
  color: #ffffff !important;
  border: 1px solid var(--bd-purple);
}

.buddies-nav-signup-btn {
  background: #ffffff;
  color: var(--bd-title) !important;
  border: 1px solid var(--bd-border-strong);
}

.buddies-company-service-button {
  width: 100%;
  margin-top: 7px;
  background: #ffffff;
  color: var(--bd-title);
  border: 1px solid var(--bd-border);
}

.buddies-company-service-button:hover {
  border-color: var(--bd-border-strong);
  background: #f9fafb;
  color: var(--bd-purple);
}


.buddies-nav-close {
  display: none;
}


@media (max-width: 720px) {
  body.has-buddies-global-nav {
    padding-top: 52px !important;
    padding-bottom: 72px !important;
    box-sizing: border-box;
  }

  .buddies-nav-mobile-topbar {
    height: 52px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--bd-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1990;
    backdrop-filter: blur(16px);
  }

  .buddies-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .buddies-mobile-alert,
  .buddies-mobile-menu,
  .buddies-nav-close {
    min-width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--bd-border);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 5px 14px rgba(16, 24, 40, 0.04);
  }

  .buddies-mobile-menu,
  .buddies-nav-close {
    padding: 0;
    cursor: pointer;
  }

  .buddies-mobile-alert {
    width: auto;
    padding: 0 11px;
    color: var(--bd-sub);
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
  }

  .buddies-mobile-alert-text {
    display: block;
  }

  .buddies-mobile-menu span,
  .buddies-nav-close span {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--bd-title);
  }

  .buddies-mobile-menu span:nth-child(1) { top: 12px; }
  .buddies-mobile-menu span:nth-child(2) { top: 18px; }
  .buddies-mobile-menu span:nth-child(3) { top: 24px; }

  .buddies-nav-close {
    display: inline-flex;
  }

  .buddies-nav-close span:nth-child(1) { transform: rotate(45deg); }
  .buddies-nav-close span:nth-child(2) { transform: rotate(-45deg); }


  .buddies-mobile-badge {
    position: absolute;
    right: -6px;
    top: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
  }

  .buddies-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, 0.34);
    z-index: 2005;
  }

  .buddies-nav-overlay.is-open {
    display: block;
  }

  .buddies-nav-sidebar,
  .buddies-nav-sidebar.is-company,
  .buddies-nav-sidebar.is-admin {
    width: 270px;
    max-width: 84vw;
    transform: translateX(-105%);
    transition: transform 0.18s ease;
    z-index: 2010;
    box-shadow: 18px 0 40px rgba(16, 24, 40, 0.12);
  }

  .buddies-nav-sidebar.is-open {
    transform: translateX(0);
  }

  .buddies-nav-bottom {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    min-height: 58px;
    padding: 7px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(234, 236, 240, 0.96);
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.13);
    backdrop-filter: blur(18px);
    z-index: 1980;
    display: grid;
    gap: 3px;
  }

  .buddies-nav-bottom.is-student-logged-in {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .buddies-nav-bottom.is-student-logged-out,
  .buddies-nav-bottom.is-company,
  .buddies-nav-bottom.is-admin {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 430px;
    left: 50%;
    right: auto;
    width: calc(100% - 20px);
    transform: translateX(-50%);
  }

  .buddies-bottom-link {
    min-width: 0;
    height: 46px;
    border-radius: 15px;
    color: var(--bd-sub);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
  }

  .buddies-bottom-link.is-active {
    background: var(--bd-purple-soft);
    color: var(--bd-purple);
  }

  .buddies-bottom-link strong {
    display: block;
    max-width: 100%;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

}



/* ======================================================
占쏙옙 BUDDIES GLOBAL NAV v21 占쏙옙 TEXT ONLY
- 筌롫뗀�� 占쎄쑴�좄굜占� 占쎄쑴猿� 占쎌뮄援�
- 筌뤴뫀而�옙占� 占쎌꼶�� 占썬끇�� 占쎈씮�わ옙占� 餓λ쵐��
- 占싼딆뵠占쎌뮆而� 占쎈쵌由� 疫꿸퀡�� 占쎌뮄援�
====================================================== */

.buddies-nav-link {
  padding-left: 14px;
  padding-right: 12px;
}

.buddies-nav-link > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buddies-nav-link.is-active {
  font-weight: 600;
}

@media (max-width: 720px) {
  .buddies-bottom-link strong {
    font-weight: 600;
  }
}


@media (min-width: 721px) and (max-width: 1024px) {
  body.has-buddies-global-nav {
    padding-left: 236px !important;
    box-sizing: border-box;
  }

  body.has-buddies-global-company-nav {
    padding-left: 248px !important;
  }

  body.has-buddies-global-admin-nav {
    padding-left: 236px !important;
  }

  .buddies-nav-link {
    font-size: var(--fs-body-tablet);
  }

  .buddies-nav-group p,
  .buddies-company-profile-text span,
  .buddies-admin-profile-text span {
    font-size: var(--fs-meta-tablet);
  }

  .buddies-nav-badge,
  .buddies-mobile-badge {
    font-size: var(--fs-badge-tablet);
  }
}

@media (max-width: 720px) {
  .buddies-nav-link {
    font-size: var(--fs-body-mobile);
  }

  .buddies-nav-group p,
  .buddies-company-profile-text span,
  .buddies-admin-profile-text span {
    font-size: var(--fs-meta-mobile);
  }

  .buddies-nav-badge,
  .buddies-mobile-badge {
    font-size: var(--fs-badge-mobile);
  }
}




/* ======================================================
占쏙옙 BUDDIES GLOBAL NAV v24 占쏙옙 INLINE SVG ICONS
- 筌뤴뫀而�옙占� 占쎌꼶�� 占썬끇��: 占쎈벊�わ옙占� 占쎌눘�� SVG
- 占쎌뮇苑� 筌롫뗀��: 占쎄퀡�ワ옙占� 獄쏄퀗瑗� + 癰귣��わ옙占�
- 占싼딆뵠占쎌뮆而�: 域밸챶竊� 占쎌뮆�� 占쎌쉸肉됵쭕占� 占쎈쵐占� SVG
====================================================== */

.buddies-nav-group p {
  display: flex;
  align-items: center;
  gap: 6px;
}

.buddies-nav-group p > span {
  min-width: 0;
}

.buddies-nav-group-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .buddies-nav-bottom {
    min-height: 74px;
    padding: 8px 9px;
    border-radius: 22px;
  }

  .buddies-bottom-link {
    min-width: 0;
    height: 58px;
    border-radius: 16px;
    color: #667085;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    transition:
      background-color 0.18s ease,
      color 0.18s ease;
  }

  .buddies-bottom-link.is-active {
    background: var(--bd-purple-soft);
    color: var(--bd-purple);
  }

  .buddies-bottom-link strong {
    display: block;
    max-width: 100%;
    font-size: 10px;
    line-height: 1;
    font-weight: var(--fw-medium);
    letter-spacing: -0.03em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .buddies-bottom-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    flex: 0 0 auto;
  }

  .buddies-bottom-svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  .buddies-bottom-link.is-active .buddies-bottom-svg {
    stroke-width: 1.9;
  }

  .buddies-bottom-link .buddies-mobile-badge {
    right: 6px;
    top: 2px;
  }
}


/* ======================================================
占쏙옙 SIDEBAR MENU HIERARCHY REFINEMENT
- 域밸챶竊� 占쎌뮆�� 揶쏅벡��
- 占쎌뮆�� 筌롫뗀�� �곕벡��
- 占쎄낱釉� 占싼됯컶 筌ㅼ뮇�삼옙占�
====================================================== */

@media (min-width: 721px) and (max-width: 1024px) {
  .buddies-nav-group p {
    font-size: 12.5px;
  }

  .buddies-nav-link {
    min-height: 35px;
    font-size: 12px;
  }
}

@media (max-width: 720px) {
  .buddies-nav-group p {
    font-size: 12.5px;
    margin-left: 8px;
  }

  .buddies-nav-link {
    min-height: 35px;
    padding-left: 28px;
    font-size: 12px;
  }

  .buddies-nav-menu {
    gap: 9px;
  }

  .buddies-nav-group {
    gap: 2px;
  }
}


/* ======================================================
占쏙옙 BUDDIES GLOBAL AUTO NAV v27
- 占싼딆뵠占쎌뮆而� 占쎈��↑퉪占� 占쎈쵌由곗쮯占쎌눘�귝묾占�
- 占쎌뮆�� 筌롫뗀�� 占쏙옙 占쎈쵐占� 占쏙옙
- 域밸챶竊� 占쎌뮆�됪�⑨옙 占쎌뮆�� 筌롫뗀�� 占쎈맩湲� 占쎄쑨�� 占싼딆젟�깍옙
- 占쎌뮇苑� 筌롫뗀�깍쭕占� 占쎄퀡�ワ옙占� 獄쏄퀗瑗� + 癰귣��わ옙占�
- 占쎄낱釉� 占싼됯컶 �곕벡��
====================================================== */

.buddies-nav-menu {
  gap: 8px;
}

.buddies-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.buddies-nav-group:last-child {
  margin-top: 0;
  padding-top: 0;
}

.buddies-nav-group-toggle {
  width: 100%;
  min-height: 36px;
  padding: 0 9px 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #475467;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.2;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}

.buddies-nav-group-toggle:hover {
  background: #f8f7fc;
  color: #344054;
}

.buddies-nav-group-heading {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.buddies-nav-group-heading > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buddies-nav-group-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: #667085;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.buddies-nav-group-arrow {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: #98a2b3;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(180deg);
  transition: transform 0.18s ease;
}

.buddies-nav-group.is-collapsed .buddies-nav-group-arrow {
  transform: rotate(0deg);
}

.buddies-nav-group-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}

.buddies-nav-group.is-collapsed .buddies-nav-group-items {
  display: none;
}

.buddies-nav-link {
  position: relative;
  min-height: 34px;
  width: 100%;
  padding: 0 11px 0 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #667085;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: var(--fw-medium);
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}

.buddies-nav-link::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #98a2b3;
  transform: translateY(-50%);
}

.buddies-nav-link:hover {
  background: #f8f7fc;
  color: #475467;
}

.buddies-nav-link:hover::before {
  background: #667085;
}

.buddies-nav-link.is-active {
  background: #eeecff;
  color: var(--bd-purple);
  font-weight: var(--fw-semibold);
  box-shadow: none;
}

.buddies-nav-link.is-active::before {
  background: var(--bd-purple);
}

.buddies-nav-link.is-logout {
  color: #b54747;
}

.buddies-nav-link.is-logout::before {
  background: #d0a3a3;
}

.buddies-nav-link.is-logout:hover {
  background: #fff5f5;
  color: #b42318;
}

.buddies-nav-link.is-logout:hover::before {
  background: #b42318;
}

/* 占쎈똻�� p 疫꿸퀡而� 域밸챶竊� 占쎌뮆�됵옙占� 占쏙옙 �닌듼�쒙옙癒�퐣 占싼딆뒠占쎌꼷占� 占쎈봿�� */
.buddies-nav-group > p {
  display: none;
}

@media (min-width: 721px) and (max-width: 1024px) {
  .buddies-nav-group-toggle {
    min-height: 35px;
    font-size: 12.5px;
  }

  .buddies-nav-link {
    min-height: 33px;
    font-size: 12px;
  }
}

@media (max-width: 720px) {
  .buddies-nav-menu {
    gap: 7px;
  }

  .buddies-nav-group-toggle {
    min-height: 35px;
    font-size: 12.5px;
  }

  .buddies-nav-link {
    min-height: 33px;
    padding-left: 34px;
    font-size: 12px;
  }
}


/* ======================================================
占쏙옙 BUDDIES GLOBAL AUTO NAV v28 占쏙옙 FINAL STUDENT NAV
- 占쎌늿源� 筌롫뗀�� �닌듼�� 筌ㅼ뮇伊� 獄쏆꼷��
- 域밸챶竊� 占쎄쑴�좄굜�띾궢 占쎌뮆�� 筌롫뗀�� 占쏙옙 占쎌뮇�됵옙占� 占쎈베��
====================================================== */

.buddies-nav-link::before {
  left: 14px;
}

.buddies-nav-link {
  padding-left: 30px;
}


/* ======================================================
占쏙옙 BUDDIES GLOBAL AUTO NAV v29
- 占쎌뮆�� 筌롫뗀�� 占쏙옙 占쎌뮇�� 占쎄쑴�귞몴占� 域밸챶竊� 占쎌뮆�� 占쎈씮�わ옙占� 占쎌뮇�됵옙醫됰궢 占쎈베��
====================================================== */

/*
域밸챶竊� 占쎌뮆�� 占쎈씮�わ옙占� 占쎌뮇�� 占쎄쑴��:
8px(域밸챶竊� �ル슣瑜� 占썩뫀逾�) + 16px(SVG) + 8px(gap) = 32px
*/
.buddies-nav-link::before {
  left: 32px;
}

.buddies-nav-link {
  padding-left: 46px;
}


/* ======================================================
占쏙옙 BUDDIES GLOBAL AUTO NAV v31
- PC夷뚳옙袁⑹뵠占썩뫀諭� 占싼딆뵠占쎌뮆而� 占쎄쑴猿� 占쎈쵌由� 甕곌쑵�� 癰귣벊��
- 占쎈쵑�� 占쎈뜄�� 76px
- 筌뤴뫀而�옙�깅퓠占쎌뮆�� 占쎄쑴猿� 占쎈쵌由� 甕곌쑵�� 占썩몿占�
====================================================== */

.buddies-nav-collapse {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--bd-border);
  border-radius: 10px;
  background: #ffffff;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
}

.buddies-nav-collapse:hover {
  background: #f7f6ff;
  color: var(--bd-purple);
}

.buddies-nav-collapse svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

@media (min-width: 721px) {
  body.has-buddies-global-nav.is-buddies-nav-collapsed,
  body.has-buddies-global-admin-nav.is-buddies-nav-collapsed,
  body.has-buddies-global-company-nav.is-buddies-nav-collapsed {
    padding-left: 76px !important;
  }

  .buddies-nav-sidebar.is-collapsed,
  .buddies-nav-sidebar.is-company.is-collapsed,
  .buddies-nav-sidebar.is-admin.is-collapsed {
    width: 76px;
    padding-left: 10px;
    padding-right: 10px;
    overflow-x: hidden;
  }

  .buddies-nav-sidebar.is-collapsed .buddies-nav-head {
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
  }

  .buddies-nav-sidebar.is-collapsed .buddies-nav-logo,
  .buddies-nav-sidebar.is-collapsed .buddies-company-profile,
  .buddies-nav-sidebar.is-collapsed .buddies-admin-profile,
  .buddies-nav-sidebar.is-collapsed .buddies-nav-login-card,
  .buddies-nav-sidebar.is-collapsed .buddies-company-service-button,
  .buddies-nav-sidebar.is-collapsed .buddies-nav-group-heading > span,
  .buddies-nav-sidebar.is-collapsed .buddies-nav-group-arrow,
  .buddies-nav-sidebar.is-collapsed .buddies-nav-group-items,
  .buddies-nav-sidebar.is-collapsed .buddies-nav-badge {
    display: none !important;
  }

  .buddies-nav-sidebar.is-collapsed .buddies-nav-menu {
    align-items: center;
    gap: 7px;
  }

  .buddies-nav-sidebar.is-collapsed .buddies-nav-group {
    width: 100%;
    align-items: center;
  }

  .buddies-nav-sidebar.is-collapsed .buddies-nav-group-toggle {
    width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }

  .buddies-nav-sidebar.is-collapsed .buddies-nav-group-heading {
    gap: 0;
  }

  .buddies-nav-sidebar.is-collapsed .buddies-nav-group-icon {
    width: 18px;
    height: 18px;
  }

  .buddies-nav-sidebar.is-collapsed .buddies-nav-collapse svg {
    transform: rotate(180deg);
  }
}

@media (max-width: 720px) {
  .buddies-nav-collapse {
    display: none !important;
  }
}

/* ======================================================
�� BUDDIES GLOBAL AUTO NAV v32 �� INQUIRY MENU
- 湲곗뾽 紐⑤컮�� �섎떒 �ㅻ퉬 5媛� 援ъ꽦
- 愿�由ъ옄/湲곗뾽 臾몄쓽 諭껋� 湲곗〈 �ㅽ��� �ъ궗��
====================================================== */
@media (max-width: 720px) {
  .buddies-nav-bottom.is-company {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 520px;
  }
}

/* ======================================================
✅ BUDDIES GLOBAL AUTO NAV v34 — MOBILE FULL SCROLL FIX
- 모바일 주소창 변화 대응: 100dvh
- 사이드바 내부 독립 스크롤
- iPhone safe-area 하단 여백 확보
- 마지막 메뉴까지 정상 스크롤
====================================================== */
@media (max-width: 720px) {
  .buddies-nav-sidebar,
  .buddies-nav-sidebar.is-company,
  .buddies-nav-sidebar.is-admin {
    top: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding-top: max(14px, env(safe-area-inset-top));
    padding-right: 14px;
    padding-bottom: calc(34px + env(safe-area-inset-bottom));
    padding-left: 14px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .buddies-nav-head {
    position: sticky;
    top: calc(env(safe-area-inset-top) * -1);
    z-index: 5;
    flex: 0 0 auto;
    background: #ffffff;
  }

  .buddies-nav-menu {
    flex: 0 0 auto;
    min-height: max-content;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .buddies-nav-group:last-child {
    margin-bottom: 0;
  }

  body.buddies-mobile-nav-open {
    overflow: hidden !important;
    touch-action: none;
  }
}

@supports not (height: 100dvh) {
  @media (max-width: 720px) {
    .buddies-nav-sidebar,
    .buddies-nav-sidebar.is-company,
    .buddies-nav-sidebar.is-admin {
      height: -webkit-fill-available;
      max-height: -webkit-fill-available;
    }
  }
}
