/* Only the new header/footer are reset. Native body images and forms keep their CSS. */
body.qyj-frame-page .qyj-legacy-chrome, body.qyj-support-page .qyj-legacy-chrome { display: none !important; }
#qyj-shared-header[hidden], #qyj-shared-footer[hidden],
.qyj-shared-chrome [hidden] { display: none !important; }
#qyj-shared-header, #qyj-shared-footer {
  --qyj-chrome-ready: 1;
  --chrome-paper: #f5f2eb;
  --chrome-ink: #242824;
  --chrome-muted: #666a64;
  --chrome-line: #dcd9d0;
  --chrome-accent: #8a482c;
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--chrome-paper);
  color: var(--chrome-ink);
  font: 400 16px/normal Arial, Helvetica, sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
#qyj-shared-header { z-index: 30; }
.qyj-shared-chrome *, .qyj-shared-chrome *::before, .qyj-shared-chrome *::after { box-sizing: border-box; }
.qyj-shared-chrome :is(header, footer, nav, p, details, summary) { margin: 0; padding: 0; border: 0; background: none; }
.qyj-shared-chrome a, .qyj-shared-chrome summary {
  color: inherit;
  font: inherit;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  border-radius: 0;
  box-shadow: none;
  touch-action: manipulation;
}
.qyj-shared-chrome a:hover { color: var(--chrome-accent); }
.qyj-shared-chrome :is(a, summary, select):focus-visible { outline: 3px solid #b57449; outline-offset: 5px; }
.qyj-shared-chrome .qyj-chrome-wrap { width: min(1320px, calc(100% - 112px)); margin-inline: auto; }
#qyj-shared-header .qyj-chrome-header {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--chrome-line);
}
.qyj-shared-chrome .qyj-chrome-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--chrome-ink);
  font: 400 27px/normal Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
  white-space: nowrap;
  flex-shrink: 0;
}
.qyj-shared-chrome .qyj-chrome-brand svg { display: block; width: 36px; height: 41px; flex-shrink: 0; }
.qyj-shared-chrome #qyj-shared-header .qyj-chrome-brand img,
#qyj-shared-header .qyj-chrome-brand img {
  display: block;
  width: 190px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}
.qyj-shared-chrome .qyj-chrome-brand b { font-size: 14px; letter-spacing: .18em; font-weight: 400; }
.qyj-shared-chrome .qyj-chrome-brand small { display: block; font-size: 7px; letter-spacing: .17em; margin-top: 5px; }
#qyj-shared-header .qyj-chrome-desktop-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; }
#qyj-shared-header .qyj-chrome-desktop-nav a { padding: 10px 0; white-space: nowrap; }
#qyj-shared-header .qyj-chrome-cta {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  min-height: 49px;
  padding: 15px 23px;
  border: 1px solid var(--chrome-ink);
  background: transparent;
  color: var(--chrome-ink);
  font-size: 12px;
  white-space: nowrap;
}
#qyj-shared-header .qyj-chrome-cta:hover { background: #3c4841; color: #fff; }
#qyj-shared-header .qyj-chrome-mobile-menu { display: none; }
#qyj-shared-footer footer { border-top: 1px solid var(--chrome-line); }
#qyj-shared-footer .qyj-chrome-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 42px 0; }
#qyj-shared-footer .qyj-chrome-footer-top p { font: italic 23px/normal Georgia, 'Times New Roman', serif; color: var(--chrome-ink); }
#qyj-shared-footer .qyj-chrome-footer-top > a:last-child { font-size: 12px; }
#qyj-shared-footer .qyj-chrome-footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--chrome-line); padding: 24px 0; font-size: 10px; color: var(--chrome-muted); }
#qyj-shared-footer .qyj-chrome-site-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 12px; padding: 20px 0; border-top: 1px solid var(--chrome-line); }
#qyj-shared-footer .qyj-chrome-language { padding-bottom: 22px; color: var(--chrome-ink); font-size: 14px; }
/* Preserve the original translator DOM and dropdown styling; repair inherited white labels. */
#qyj-shared-footer .qyj-chrome-language > :is(.gtranslate_wrapper, .gt_switcher_wrapper) { color: var(--chrome-ink); }
#qyj-shared-footer .qyj-chrome-language :is(a.glink, .gt-current-lang, select.gt_selector) { color: var(--chrome-ink) !important; }
#qyj-shared-footer .qyj-chrome-language :is(.switcher .selected a, .gt_selected a, .gt-selected a, .gt-selected-text),
#qyj-shared-footer .qyj-chrome-language :is(.switcher .selected a, .gt_selected a, .gt-selected a, .gt-current-lang) span {
  color: var(--chrome-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  font-family: Arial, Helvetica, sans-serif;
}
/* Current-language triggers can have their own white text span. */
#qyj-shared-footer .qyj-chrome-language :is(a.glink, a.gt_switcher-popup, button.gt_switcher-popup),
#qyj-shared-footer .qyj-chrome-language :is(a.glink, a.gt_switcher-popup, button.gt_switcher-popup) :is(span, b, strong) {
  color: var(--chrome-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  font-family: Arial, Helvetica, sans-serif !important;
}
/* Visible original contact links from the replaced frame. */
#qyj-shared-footer .qyj-chrome-contacts { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0 0 24px; }
#qyj-shared-footer .qyj-chrome-contacts > a { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 32px; background: none !important; color: var(--chrome-ink) !important; font: 400 14px/1.6 Arial, Helvetica, sans-serif; overflow-wrap: anywhere; }
#qyj-shared-footer .qyj-chrome-contacts > a :is(span, strong, b, small) { color: inherit !important; -webkit-text-fill-color: currentColor !important; }
#qyj-shared-footer .qyj-chrome-contacts > a:hover { color: var(--chrome-accent) !important; }
#qyj-shared-footer .qyj-chrome-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 24px;
}
#qyj-shared-footer .qyj-chrome-socials > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  margin: 0 !important;
  padding: 8px !important;
  border: 1px solid var(--chrome-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--chrome-ink) !important;
  box-shadow: none !important;
  font-size: 16px;
}
#qyj-shared-footer .qyj-chrome-socials > a:hover { border-color: var(--chrome-accent) !important; color: var(--chrome-accent) !important; }
#qyj-shared-footer .qyj-chrome-socials :is(i, svg) { width: 18px !important; height: 18px !important; font-size: 18px !important; color: inherit !important; fill: currentColor; }
@media (max-width: 1100px) {
  .qyj-shared-chrome .qyj-chrome-wrap { width: calc(100% - 64px); }
  #qyj-shared-header .qyj-chrome-desktop-nav { gap: 17px; }
  #qyj-shared-header .qyj-chrome-brand small { display: none; }
  #qyj-shared-header .qyj-chrome-brand img { width: 176px; height: 58px; }
}
@media (max-width: 900px) {
  #qyj-shared-header .qyj-chrome-desktop-nav, #qyj-shared-header .qyj-chrome-cta { display: none; }
  #qyj-shared-header .qyj-chrome-mobile-menu { display: block; }
  #qyj-shared-header .qyj-chrome-mobile-menu summary { display: block; list-style: none; cursor: pointer; padding: 12px 0 12px 12px; font-size: 13px; }
  #qyj-shared-header summary::-webkit-details-marker { display: none; }
  #qyj-shared-header .qyj-menu-minus, #qyj-shared-header details[open] .qyj-menu-plus { display: none; }
  #qyj-shared-header details[open] .qyj-menu-minus { display: inline; }
  #qyj-shared-header .qyj-chrome-mobile-menu nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 18px 32px 24px;
    background: var(--chrome-paper);
    border-bottom: 1px solid var(--chrome-line);
    box-shadow: 0 12px 18px rgb(36 40 36 / 6%);
  }
  #qyj-shared-header .qyj-chrome-mobile-menu nav a { display: block; padding: 12px 0; font-size: 15px; }
  #qyj-shared-header .qyj-chrome-mobile-menu:not([open]) nav { display: none; }
  #qyj-shared-header .qyj-chrome-mobile-menu nav a:last-child { color: var(--chrome-accent); }
  #qyj-shared-footer .qyj-chrome-footer-top { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .qyj-shared-chrome .qyj-chrome-wrap { width: calc(100% - 40px); }
  #qyj-shared-header .qyj-chrome-header { min-height: 85px; padding-block: 17px; }
  .qyj-shared-chrome .qyj-chrome-brand { font-size: 23px; }
  .qyj-shared-chrome .qyj-chrome-brand b { font-size: 11px; }
  .qyj-shared-chrome .qyj-chrome-brand svg { width: 27px; height: 33px; }
  #qyj-shared-header .qyj-chrome-brand img { width: 150px; height: 50px; }
  #qyj-shared-header .qyj-chrome-mobile-menu nav { padding-inline: 20px; }
  #qyj-shared-footer .qyj-chrome-footer-top { padding: 28px 0; }
  #qyj-shared-footer .qyj-chrome-footer-top p { font-size: 20px; }
  #qyj-shared-footer .qyj-chrome-footer-bottom { flex-wrap: wrap; line-height: 1.5; }
  #qyj-shared-footer .qyj-chrome-site-links { gap: 16px 24px; line-height: 1.6; }
}
