/* Wordsense 문서 사이트 공통 헤더/푸터 — 글로벌 (web + ebook 공용) */
#hermes-nav {
  background: #191A29;
  padding: 0 16px;
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: stretch;
  position: relative;
  z-index: 900;
  box-sizing: border-box;
  width: 100%;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
#hermes-nav *,
#hermes-nav *::before,
#hermes-nav *::after { box-sizing: border-box; }

#hermes-nav > a,
#hermes-nav .nav-dd-btn {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding: 15px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: color .18s ease, border-color .18s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
#hermes-nav > a:hover,
#hermes-nav .nav-dd-btn:hover { color: #fff; }
#hermes-nav > a.active,
#hermes-nav .nav-dd-btn.active {
  color: #fff;
  border-bottom-color: #0748FF;
}

#hermes-nav .nav-dd { position: relative; display: inline-flex; }
#hermes-nav .caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .75;
  transition: transform .18s ease;
}
#hermes-nav .nav-dd:hover .caret,
#hermes-nav .nav-dd:focus-within .caret { transform: rotate(180deg); }

#hermes-nav .nav-dd-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: #191A29;
  border: 1px solid rgba(255,255,255,0.10);
  border-top: 2px solid #0748FF;
  border-radius: 0 0 10px 10px;
  padding: 6px 0;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}
#hermes-nav .nav-dd:hover .nav-dd-menu,
#hermes-nav .nav-dd:focus-within .nav-dd-menu { display: block; }

#hermes-nav .nav-dd-menu a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  white-space: nowrap;
  border: 0;
}
#hermes-nav .nav-dd-menu a:hover { color: #fff; background: rgba(255,255,255,0.06); }
#hermes-nav .nav-dd-menu a.active { color: #fff; font-weight: 600; }
#hermes-nav .nav-dd-menu a.active::before {
  content: "";
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #0748FF;
  margin-right: 8px;
  vertical-align: middle;
}

#hermes-footer {
  text-align: center;
  color: #8B95A1;
  font-size: 13px;
  line-height: 1.9;
  padding: 40px 16px 60px;
  background: transparent;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
#hermes-footer a { color: #8B95A1; text-decoration: none; }
#hermes-footer a:hover { color: #0748FF; }

@media (max-width: 640px) {
  #hermes-nav { padding: 0 8px; gap: 0; }
  #hermes-nav > a,
  #hermes-nav .nav-dd-btn { font-size: 12.5px; padding: 12px 9px; }
  #hermes-nav .nav-dd-menu { left: 0; transform: none; min-width: 180px; }
  #hermes-footer { padding: 32px 16px 48px; }
}
