/* =========================================================
   FINX public shell — footer + header-extras + GNB 타이포
   헤더/모바일메뉴 구조·동작은 polo. 레이아웃·브랜드 오버라이드만.
   ========================================================= */

/* PC: logo | GNB(오른쪽 정렬) | extras(메뉴 오른쪽) — polo float 역순 문제 해소 */
@media (min-width: 1025px) {
  #header .header-inner > .container {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
  }
  #header #logo {
    float: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    flex: 0 0 auto;
    margin: 0 !important;
  }
  #header #mainMenu-trigger { display: none !important; }
  #header #mainMenu {
    float: none !important;
    flex: 1 1 auto;
    display: flex !important;
    justify-content: flex-end;
    max-height: none !important;
    overflow: visible !important;
    width: auto !important;
    clear: none !important;
  }
  #header #mainMenu > .container {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #header #mainMenu nav {
    float: none !important;
  }
  #header #mainMenu nav > ul > li > a {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    padding: 10px 14px;
  }
  #header .header-extras {
    float: none !important;
    flex: 0 0 auto;
    margin-left: 4px;
    height: 80px;
  }
}

/* PC: 모바일 전용 행 숨김 */
#header .fx-nav-mobile-only { display: none !important; }

#header .header-extras {
  position: relative;
  z-index: 199;
  display: flex;
  align-items: center;
}
#header .header-extras > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}
#header .header-extras > ul > li {
  float: none;
  display: flex;
  align-items: center;
  height: 100%;
}

#header .fx-lang__toggle,
#header .fx-auth-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 44px;
  color: #1f2937;
  text-decoration: none;
}
#header .fx-lang__toggle svg,
#header .fx-auth-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  max-width: none;
}
#header .fx-auth-icons {
  display: flex;
  align-items: center;
  gap: 2px;
}
#header .fx-auth-icon--mypage { color: #1f2937; }

#header .fx-lang { position: relative; }
#header .fx-lang__menu,
#header .p-dropdown-content {
  position: absolute;
  right: 0;
  top: 100%;
  margin: 6px 0 0;
  padding: 8px;
  list-style: none;
  min-width: 128px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: 0.15s ease;
  z-index: 200;
}
#header .fx-lang.dropdown-active .fx-lang__menu,
#header .fx-lang.dropdown-active .p-dropdown-content,
#header .p-dropdown:hover .p-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#header .fx-lang__menu a,
#header .p-dropdown-content a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #344054;
  text-decoration: none;
}
#header .fx-lang__menu a:hover,
#header .p-dropdown-content a:hover { background: #f4f5f8; }
#header .fx-lang__menu a.is-active { color: var(--color-accent, #1da989); }

/* ========== Mobile ========== */
@media (max-width: 1024px) {
  #header .header-extras { display: none !important; }
  #header .fx-nav-mobile-only { display: list-item !important; }

  /* 드로어 GNB 폰트 상향 */
  #header #mainMenu:not(.menu-overlay) nav > ul > li > a {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    text-transform: none;
    padding: 16px 4px !important;
  }

  /* 언어·로그인 아이콘 한 줄 */
  #header .fx-nav-mobile-icons {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 8px;
    padding-top: 4px;
    list-style: none;
  }
  #header .fx-mobile-icon-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px 14px;
  }
  #header .fx-mobile-icon-row .fx-lang__toggle,
  #header .fx-mobile-icon-row .fx-auth-icon {
    width: 44px;
    height: 44px;
    color: #1f2937;
  }
  #header .fx-mobile-icon-row {
    flex-wrap: wrap;
  }
  #header .fx-mobile-icon-row .fx-lang__toggle svg,
  #header .fx-mobile-icon-row .fx-auth-icon svg {
    width: 22px;
    height: 22px;
  }
  #header .fx-lang--mobile .fx-lang__menu {
    left: 0;
    right: auto;
  }
}

/* polo footer-3 layout */
.fx-site-footer {
  background: var(--color-footer, #071824);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-sans, Pretendard, "Noto Sans KR", sans-serif);
  font-size: 0.9rem;
}
.fx-site-footer a {
  color: #d7e3e6;
  text-decoration: none;
}
.fx-site-footer a:hover { color: #fff; }

.fx-site-footer__main {
  width: min(calc(100% - 40px), var(--container, 1180px));
  margin-inline: auto;
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}

.fx-site-footer__logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 14px;
}
.fx-site-footer__desc {
  margin: 0 0 20px;
  max-width: 380px;
  line-height: 1.7;
}
.fx-site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.fx-site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.fx-site-footer__col h4 {
  margin: 0 0 16px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}
.fx-site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.fx-site-footer__col a { font-size: 0.9rem; }

.fx-site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.fx-site-footer__bottom-inner {
  width: min(calc(100% - 40px), var(--container, 1180px));
  margin-inline: auto;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 720px) {
  .fx-site-footer__main {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 44px 0 32px;
  }
  .fx-site-footer__cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
