@charset "utf-8";
/* ==========================================================================
   nav-en.css — English-site global navigation (V7)
   UI only. Every label and destination is unchanged from the old header.
   Load LAST in <head>, after en-refresh.css. All rules are namespaced
   .cpnav*, so nothing here touches existing site classes.
   ========================================================================== */

.cpnav, .cpnav * { box-sizing: border-box; }
.cpnav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 9999; background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.cpnav a { text-decoration: none; }
.cpnav-spacer { height: 110px; }              /* 38 utility + 72 bar */

/* --- utility strip ------------------------------------------------------ */
.cpnav-utility { background: #f3f6fa; border-bottom: 1px solid #e6eaef; font-size: 13px; color: #4a5158; }
.cpnav-utility-in { max-width: 1400px; margin: 0 auto; padding: 0 32px; height: 38px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cpnav-tel { color: #0b2a4d; font-weight: 700; }
.cpnav-utility-right { display: flex; align-items: center; gap: 20px; }
.cpnav-utility a { color: #4a5158; }
.cpnav-utility a:hover { color: #0b2a4d; }
.cpnav-sep { color: #c9d6e4; }
.cpnav-lang-on { color: #0b2a4d; font-weight: 700; }
.cpnav-wx { position: relative; display: flex; align-items: center; }
.cpnav-wx > img { height: 17px; width: auto; display: block; opacity: .6; }
.cpnav-wx:hover > img { opacity: 1; }
.cpnav-wx-pop { display: none; position: absolute; right: 0; top: 100%; padding: 10px;
  background: #fff; border: 1px solid #e6eaef; box-shadow: 0 20px 40px rgba(11,42,77,.14); z-index: 30; }
.cpnav-wx-pop img { display: block; width: 120px; height: auto; }
.cpnav-wx:hover .cpnav-wx-pop { display: block; }

/* --- main bar ----------------------------------------------------------- */
.cpnav-bar { background: #fff; border-bottom: 1px solid #e6eaef; position: relative; }
.cpnav-bar-in { max-width: 1400px; margin: 0 auto; padding: 0 32px; height: 72px;
  display: flex; align-items: center; gap: 40px; }
.cpnav-logo { flex: none; display: flex; align-items: center; height: 72px; }
.cpnav-logo img { height: 30px; width: auto; display: block; }

.cpnav-list { flex: 1 1 auto; min-width: 0; display: flex; align-items: stretch; height: 72px;
  margin: 0; padding: 0; list-style: none; gap: 2px; }
.cpnav-item { position: relative; display: flex; align-items: center; }
.cpnav-link { display: flex; align-items: center; gap: 6px; height: 72px; padding: 0 16px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; color: #0b2a4d; }
.cpnav-caret { font-size: 10px; line-height: 1; color: #8b949e; }
.cpnav-item:hover > .cpnav-link, .cpnav-item.is-open > .cpnav-link,
.cpnav-item.is-current > .cpnav-link { color: #1990ff; }
.cpnav-item:hover > .cpnav-link .cpnav-caret,
.cpnav-item.is-open > .cpnav-link .cpnav-caret { color: #1990ff; }
.cpnav-item.is-open::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 0;
  height: 3px; background: #1990ff; }

.cpnav-cta { flex: none; display: flex; align-items: center; gap: 12px; }
.cpnav-btn { height: 40px; display: flex; align-items: center; padding: 0 18px;
  font-size: 14px; font-weight: 600; white-space: nowrap; border-radius: 0; }
.cpnav-btn-ghost { border: 1px solid #0b2a4d; color: #0b2a4d; }
.cpnav-btn-ghost:hover { background: #0b2a4d; color: #fff; }
.cpnav-btn-solid { background: #1990ff; color: #fff; border: 1px solid #1990ff; }
.cpnav-btn-solid:hover { background: #0b6fd0; border-color: #0b6fd0; }

.cpnav a:focus-visible, .cpnav button:focus-visible { outline: 2px solid #1990ff; outline-offset: 2px; }

/* --- dropdown ----------------------------------------------------------- */
.cpnav-panel { display: none; position: absolute; left: 0; top: 100%; min-width: 300px;
  background: #fff; border-top: 1px solid #e6eaef; border-bottom: 2px solid #0b2a4d;
  box-shadow: 0 20px 40px rgba(11,42,77,.14); z-index: 20; white-space: nowrap; }
.cpnav-item.is-open .cpnav-panel { display: block; animation: cpnavdrop .16s ease-out; }
@keyframes cpnavdrop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.cpnav-panel ul { margin: 0; padding: 0; list-style: none; }
.cpnav-panel a { display: block; padding: 11px 20px; font-size: 15px; font-weight: 600;
  color: #0b2a4d; line-height: 1.35; border-bottom: 1px solid #f0f3f6; }
.cpnav-panel li:last-child a { border-bottom: 0; }
.cpnav-panel a:hover { background: #f3f7fc; color: #1990ff; }

/* --- phone -------------------------------------------------------------- */
.cpnav-burger, .cpnav-drawer, .cpnav-mobile-group { display: none; }

@media screen and (max-width: 1180px) {
  .cpnav-bar-in { gap: 22px; }
  .cpnav-link { padding: 0 11px; font-size: 14px; }
}

@media screen and (max-width: 990px) {
  .cpnav-spacer { height: 92px; }
  .cpnav-utility-in { padding: 0 16px; height: 34px; }
  .cpnav-utility-right { gap: 10px; }
  .cpnav-utility-right .cpnav-wx { display: none; }
  .cpnav-bar-in { padding: 0 16px; height: 58px; gap: 0; }
  .cpnav-logo { height: 58px; }
  .cpnav-logo img { height: 26px; }
  .cpnav-list, .cpnav-cta { display: none; }
  .cpnav-mobile-group { display: flex; align-items: center; gap: 12px; margin-left: auto; }
  .cpnav-mobile-login { font-size: 13px; font-weight: 600; color: #0b2a4d; }
  .cpnav-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 24px; height: 24px; background: none; border: 0; padding: 0; cursor: pointer; }
  .cpnav-burger span { display: block; height: 2px; background: #0b2a4d; transition: transform .2s, opacity .2s; }
  .cpnav.is-drawer .cpnav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .cpnav.is-drawer .cpnav-burger span:nth-child(2) { opacity: 0; }
  .cpnav.is-drawer .cpnav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cpnav.is-drawer .cpnav-drawer { display: block; }
  .cpnav-drawer { position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-top: 1px solid #e6eaef; max-height: calc(100vh - 92px); overflow-y: auto;
    box-shadow: 0 24px 44px rgba(11,42,77,.14); }
  .cpnav-drawer > ul { margin: 0; padding: 8px 0; list-style: none; }
  .cpnav-drawer > ul > li { border-bottom: 1px solid #f0f3f6; }
  .cpnav-drawer-row { display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 14px 16px; font: inherit; font-size: 15px; font-weight: 600;
    color: #0b2a4d; background: none; border: 0; text-align: left; cursor: pointer; }
  .cpnav-plus { color: #8b949e; font-weight: 400; }
  .cpnav-drawer li.is-open { background: #f6f9fd; }
  .cpnav-drawer li.is-open > .cpnav-drawer-row { color: #1990ff; font-weight: 700; }
  .cpnav-drawer-sub { display: none; padding: 0 16px 14px; }
  .cpnav-drawer li.is-open > .cpnav-drawer-sub { display: block; }
  .cpnav-drawer-sub a { display: block; padding: 9px 0; font-size: 14px; color: #4a5158; }
  .cpnav-drawer-actions { padding: 16px; }
  .cpnav-drawer-actions .cpnav-btn { height: 44px; }
}

/* en/one-agent.html: <main class="has_header"> carries its own top padding for
   the old fixed header; the spacer above already reserves that room. */
.cpnav-spacer + main.has_header { padding-top: 0; }
/* In-page anchors (ONE menu -> one-agent.html#…) land below the fixed nav. */
.cpnav-spacer ~ main [id] { scroll-margin-top: 110px; }
@media screen and (max-width: 990px) { .cpnav-spacer ~ main [id] { scroll-margin-top: 94px; } }
