:root {
  --ar-primary: #ae8b6d;
  --ar-primary-rgb: 174, 139, 109;
  --ar-link-color: #ae8b6d;
  --ar-link-hover-color: #957254;
}

.nm {
  font-family: "Nanum Myeongjo", serif;
  font-weight: 400;
  font-style: normal;
}

.nm-b {
  font-family: "Nanum Myeongjo", serif;
  font-weight: 700;
  font-style: normal;
}

.nm-ex {
  font-family: "Nanum Myeongjo", serif;
  font-weight: 800;
  font-style: normal;
}

.ng {
  font-family: "Nanum Gothic", serif;
  font-weight: 400;
  font-style: normal;
}

.ng-b {
  font-family: "Nanum Gothic", serif;
  font-weight: 700;
  font-style: normal;
}

.ng-ex {
  font-family: "Nanum Gothic", serif;
  font-weight: 800;
  font-style: normal;
}

.btn-primary {
  --ar-btn-bg: #ae8b6d;
  --ar-btn-border-color: #ae8b6d;
  --ar-btn-hover-bg: #957254;
  --ar-btn-hover-border-color: #957254;
  --ar-btn-active-bg: #957254;
  --ar-btn-active-border-color: #957254;
  --ar-btn-disabled-bg: #ae8b6d;
  --ar-btn-disabled-border-color: #ae8b6d;
}

.btn-outline-primary {
  --ar-btn-color: #ae8b6d;
  --ar-btn-border-color: #ae8b6d;
  --ar-btn-hover-bg: #ae8b6d;
  --ar-btn-hover-border-color: #ae8b6d;
  --ar-btn-active-bg: #ae8b6d;
  --ar-btn-active-border-color: #ae8b6d;
  --ar-btn-disabled-color: #ae8b6d;
  --ar-btn-disabled-border-color: #ae8b6d;
}

.accordion-button:not(.collapsed)::after {
  --ar-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='%23ae8b6d'%3e%3cpath%20d='M.5%206.3c.6-.6%201.6-.6%202.3%200l9.3%209.3%209.3-9.3c.6-.6%201.6-.6%202.3%200%20.6.6.6%201.6%200%202.3L13.3%2018.8c-.6.6-1.6.6-2.3%200L.8%208.5c-.9-.8-.9-1.6-.3-2.2z'/%3e%3c/svg%3e");
}

.bottom-10 {
  bottom: 10% !important;
}
.bottom-20 {
  bottom: 20% !important;
}
.bottom-30 {
  bottom: 30% !important;
}
.bottom-40 {
  bottom: 40% !important;
}
.top-10 {
  top: 10% !important;
}
.top-20 {
  top: 20% !important;
}
.top-30 {
  top: 30% !important;
}
.top-40 {
  top: 40% !important;
}
.end-10 {
  right: 10% !important;
}

.page-loading {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-transition: all 0.4s 0.2s ease-in-out;
  transition: all 0.4s 0.2s ease-in-out;
  background-color: #fff;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
}

[data-bs-theme="dark"] .page-loading {
  background-color: #121519;
}

.page-loading.active {
  opacity: 1;
  visibility: visible;
}

.page-loading-inner {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-transition: opacity 0.2s ease-in-out;
  transition: opacity 0.2s ease-in-out;
  opacity: 0;
}

.page-loading.active > .page-loading-inner {
  opacity: 1;
}

.page-loading-inner > span {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: normal;
  color: #6f788b;
}

[data-bs-theme="dark"] .page-loading-inner > span {
  color: #fff;
  opacity: 0.6;
}

.page-spinner {
  display: inline-block;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  vertical-align: text-bottom;
  background-color: #d7dde2;
  border-radius: 50%;
  opacity: 0;
  -webkit-animation: spinner 0.75s linear infinite;
  animation: spinner 0.75s linear infinite;
}

[data-bs-theme="dark"] .page-spinner {
  background-color: rgba(255, 255, 255, 0.25);
}

@-webkit-keyframes spinner {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  50% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes spinner {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  50% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

/* test nav: 1depth 메뉴 꺽쇠 제거 */
#navbarNav > .navbar-nav > .nav-item > .nav-link.dropdown-toggle::after {
  display: none !important;
}

/* test nav: 모바일에서 좌측 1depth, 우측 2depth 분할 메뉴 */
#navbarNav .gw-mobile-split-nav {
  display: none;
}

@media (max-width: 991.98px) {
  #navbarNav .gw-mobile-source {
    display: none !important;
  }

  #navbarNav .gw-mobile-split-nav {
    display: flex;
    width: 100%;
    min-height: 340px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 0.9rem;
    overflow: hidden;
    background: #fff;
    margin-top: 0.6rem;
  }

  #navbarNav .gw-mobile-main {
    width: 42%;
    background: #f5f7fa;
    border-right: 1px solid rgba(17, 24, 39, 0.08);
    list-style: none;
    margin: 0;
    padding: 0.35rem;
  }

  #navbarNav .gw-mobile-main-item + .gw-mobile-main-item {
    margin-top: 0.2rem;
  }

  #navbarNav .gw-mobile-main-btn {
    width: 100%;
    border: 0;
    border-radius: 0.6rem;
    background: transparent;
    color: #2b3440;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 0.7rem;
  }

  #navbarNav .gw-mobile-main-item.is-active .gw-mobile-main-btn {
    background: #fff;
    color: #0d6efd;
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.15);
  }

  #navbarNav .gw-mobile-sub {
    width: 58%;
    padding: 0.7rem;
  }

  #navbarNav .gw-mobile-sub-title {
    margin: 0 0 0.45rem;
    font-size: 0.83rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.02em;
  }

  #navbarNav .gw-mobile-sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #navbarNav .gw-mobile-sub-list li + li {
    margin-top: 0.15rem;
  }

  #navbarNav .gw-mobile-sub-link {
    display: block;
    border-radius: 0.6rem;
    padding: 0.58rem 0.65rem;
    color: #1f2937;
    font-size: 0.93rem;
    text-decoration: none;
  }

  #navbarNav .gw-mobile-sub-link.is-current,
  #navbarNav .gw-mobile-sub-link:active {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    font-weight: 700;
  }
}

/* R7-F2c — 승격 푸터의 최말단 정적 텍스트 블록(회사정보)은 legacy `<p class="nav fs-sm mb-0">`
   처럼 하단 여백이 없어야 wave 위 간격이 legacy와 일치한다. 회사정보 richText는 footer
   컨테이너의 직속 자식이라 자식 결합자로 정확히 그 블록만 잡는다(컬럼 내부 col1/태그라인
   richText는 중첩 depth가 달라 미포함 — 각자의 블록 리듬 유지). `!important`는 Bootstrap
   유틸리티 `.mb-3`가 이미 `margin-bottom:1rem !important`로 정의되어 있어 필요하다(단순
   특이도로는 override 불가). */
.footer > .container > .cms-shared-richtext > .cms-shared-line:last-child {
  margin-bottom: 0 !important;
}
