/* DAXIANG UI-P3: shared portal/bank header and in-flow bottom footer. */
body.pub-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.pub-body > .pub-main {
  flex: 1 0 auto;
  min-height: 0 !important;
  width: 100%;
  box-sizing: border-box;
}
body.pub-body > .pub-footer {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  margin: auto 0 0;
}
/* This one class styles the same partial in all three base templates.
   It intentionally does not import the portal's global CSS into member pages. */
.ui-p3-site-header {
  box-sizing: border-box;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between !important;
  width: 100%;
  min-height: 76px;
  height: 76px;
  gap: 18px;
  padding: 0 clamp(18px, 3.3vw, 52px);
  margin: 0;
  background: #fff;
  color: #143044;
  border: 0;
  border-bottom: 1px solid #d9e7ee;
  font: 15px/1.7 Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  position: sticky;
  top: 0;
  z-index: 30;
}
.ui-p3-site-header a { text-decoration: none; color: #0a4b6b; }
.ui-p3-site-header .pub-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: #063d5c;
  font-weight: 800;
  letter-spacing: normal;
  line-height: 1.15;
  white-space: nowrap;
}
.ui-p3-site-header .pub-brand-elephant {
  display: block;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.ui-p3-site-header .pub-brand-name {
  color: #063d5c;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: .025em;
  white-space: nowrap;
}
.ui-p3-site-header .pub-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-left: auto;
  flex: 0 0 auto;
  order: 0;
  justify-content: flex-end;
}
.ui-p3-site-header .pub-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  gap: 9px;
  border: 1px solid #078db6;
  border-radius: 9px;
  background: #0699c9;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
}
.ui-p3-site-header .pub-btn.outline {
  background: #fff;
  border-color: #bcdbe8;
  color: #11749b;
}
.ui-p3-site-header .pub-btn:hover { background: #eaf7fc; color: #08769c; }
.ui-p3-site-header .topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  margin-left: auto;
  font-size: 12px;
}
.ui-p3-site-header a:focus-visible { outline: 2px solid #0089c4; outline-offset: 3px; }
.pub-feature[href*="/bank"] .pub-index { text-transform: none; }
@media (max-width: 1100px) {
  .ui-p3-site-header .topbar-right .time-zone { display: none; }
}
@media (max-width: 950px) {
  .ui-p3-site-header { height: 74px; min-height: 74px; padding-inline: 18px; }
}
@media (max-width: 620px) {
  .ui-p3-site-header { height: auto; min-height: 74px; padding: 9px 14px; gap: 10px; flex-wrap: wrap; }
  .ui-p3-site-header .pub-brand { gap: 9px; }
  .ui-p3-site-header .pub-brand-elephant { width: 42px; height: 42px; }
  .ui-p3-site-header .pub-brand-name { font-size: 17px; }
  .ui-p3-site-header .pub-btn { min-height: 38px; padding: 7px 12px; font-size: 13px; }
  .ui-p3-site-header .topbar-right { gap: 10px; }
  .ui-p3-site-header .topbar-right .avatar { display: none; }
}
@media print {
  body.pub-body { display: block !important; min-height: 0 !important; }
  body.pub-body > .pub-main { min-height: 0 !important; }
  .ui-p3-site-header, body.pub-body > .pub-footer { display: none !important; }
}
