/* Shared masthead, adapted from the current vectorepoch.com header.
   Deliberately scoped to the three reading surfaces; no global resets. */
@font-face { font-family: "VE Noto Sans SC"; font-style: normal; font-weight: 300; font-display: swap; src: url("/intelligence/brand/ve-noto-sans-sc-300.woff2") format("woff2"); }
@font-face { font-family: "VE Noto Sans SC"; font-style: normal; font-weight: 400; font-display: swap; src: url("/intelligence/brand/ve-noto-sans-sc-400.woff2") format("woff2"); }
.ve-site-header {
  position: relative;
  z-index: 20;
  color: #fafaf8;
  background: #222521;
  border-bottom: 1px solid #ffffff14;
  font-family: "VE Noto Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.ve-site-header *, .ve-section-nav * { box-sizing: border-box; }
.ve-site-header-inner {
  max-width: 1760px;
  min-height: 88px;
  margin: 0 auto;
  padding: 14px clamp(22px, 3.4vw, 64px);
  display: flex;
  align-items: center;
  gap: 28px;
}
.ve-site-header .brand {
  display: block;
  width: 220px;
  flex: 0 0 220px;
  color: inherit;
  text-decoration: none;
  font-weight: 300;
  line-height: normal;
  letter-spacing: normal;
}
.ve-site-header .brand img { display: block; width: 100%; height: auto; }
.ve-site-header .brand .ve-brand-company {
  display: block;
  margin-top: -5px;
  margin-left: 0;
  border-left: 0;
  padding-left: 51px;
  font-size: 9px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0;
  white-space: nowrap;
  color: #e1e3db;
}
.ve-site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 36px);
  margin: auto;
  font-size: 14px;
  font-weight: 300;
}
.ve-site-header a { color: inherit; text-decoration: none; }
.ve-site-nav > a, .ve-services-menu > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.ve-site-header a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.ve-services-menu { position: relative; margin: 0; padding: 0; border: 0; background: none; }
.ve-site-header summary { cursor: pointer; list-style: none; }
.ve-site-header summary::-webkit-details-marker { display: none; }
.ve-site-header svg { display: block; flex-shrink: 0; }
.ve-services-menu > summary svg, .ve-mobile-services > summary svg { width: 14px; height: 14px; }
.ve-services-menu[open] > summary svg, .ve-mobile-services[open] > summary svg { transform: rotate(180deg); }
.ve-site-cta svg, .ve-mobile-nav a svg { width: 17px; height: 17px; }
.ve-services-links {
  position: absolute;
  top: calc(100% + 8px);
  left: -22px;
  min-width: 242px;
  padding: 12px 22px;
  background: #fafaf8;
  color: #222521;
  border: 1px solid #dce0d8;
  border-radius: 8px;
}
.ve-services-links a { display: flex; align-items: center; min-height: 44px; font-weight: 400; }
.ve-site-header .ve-site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 18px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid #fafaf8;
  border-radius: 100px;
  color: #222521;
  background: #fafaf8;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
}
.ve-site-header .ve-site-cta:hover { background: #e7ebdf; text-decoration: none; }
.ve-site-header :focus-visible { outline: 2px solid #dfbb70; outline-offset: 4px; }
.ve-mobile-nav { display: none; }
.ve-header-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.ve-section-nav {
  display: block;
  color: #666b65;
  background: #fafaf8;
  border-bottom: 1px solid #dce0d8;
  font-family: "VE Noto Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 14px;
}
.ve-section-nav-inner {
  width: 100%;
  max-width: 1290px;
  min-height: 58px;
  margin: 0 auto;
  padding: 0 clamp(22px, 4.3vw, 55px);
  display: flex;
  align-items: stretch;
  gap: 32px;
}
.ve-section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 1px 0 0;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.ve-section-nav a:hover { color: #222521; }
.ve-section-nav a[aria-current="page"] { color: #222521; border-bottom-color: #b68d3d; }
.ve-section-nav a:focus-visible { outline: 2px solid #805e21; outline-offset: -4px; }
.ve-section-note { margin-left: auto; align-self: center; font-size: 12px; color: #666b65; }
@media (max-width: 1180px) {
  .ve-site-header-inner { gap: 20px; }
  .ve-site-header .brand { width: 190px; flex-basis: 190px; }
  .ve-site-header .brand .ve-brand-company { padding-left: 44px; font-size: 8px; }
  .ve-site-nav { gap: 16px; }
  .ve-site-header .ve-site-cta { gap: 9px; padding: 10px 16px; font-size: 13px; }
}
@media (max-width: 1080px) {
  .ve-site-header-inner { min-height: 78px; }
  .ve-site-header .brand { margin-right: auto; }
  .ve-site-nav { display: none; }
  .ve-mobile-nav { display: block; position: relative; margin: 0; padding: 0; border: 0; background: none; }
  .ve-mobile-nav > summary {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ffffff55;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #fafaf8;
  }
  .ve-mobile-nav > nav {
    display: block;
    position: absolute;
    top: 58px;
    right: 0;
    width: min(340px, calc(100vw - 44px));
    max-height: min(620px, 76vh);
    overflow-y: auto;
    padding: 16px 24px;
    color: #fafaf8;
    background: #222521;
    border: 1px solid #5b6358;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 300;
  }
  .ve-mobile-nav nav > a, .ve-mobile-services > summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .ve-mobile-services { margin: 0; padding: 0; background: none; border: 0; }
  .ve-mobile-services a { display: flex; min-height: 44px; align-items: center; padding: 5px 8px; font-size: 14px; }
  .ve-mobile-contact { margin-top: 8px; border-top: 1px solid #5b6358; }
}
@media (max-width: 600px) {
  .ve-site-header-inner { padding: 14px 22px; gap: 12px; }
  .ve-site-header .brand { width: 180px; flex-basis: 180px; }
  .ve-site-header .brand .ve-brand-company { padding-left: 42px; font-size: 7.5px; }
  .ve-site-header .ve-site-cta { display: none; }
  .ve-section-nav-inner { min-height: 54px; padding: 0 22px; gap: clamp(12px, 4vw, 22px); }
  .ve-section-nav a { min-height: 54px; font-size: 13px; }
  .ve-section-note { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .ve-site-header a, .ve-section-nav a { transition: color .15s ease, background-color .15s ease; }
}
