:root {
  --qe-ink: #172033;
  --qe-muted: #526071;
  --qe-navy: #10243d;
  --qe-blue: #0c5688;
  --qe-gold: #c8a24a;
  --qe-burgundy: #7b2434;
  --qe-line: #d9e3ea;
  --qe-page: #f5f7fb;
  --qe-panel: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 !important;
  background: var(--qe-page) !important;
  color: var(--qe-ink) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  line-height: 1.55;
}

.modern-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 10000;
  background: var(--qe-gold);
  color: #111;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
}

.modern-skip:focus {
  top: 12px;
}

.modern-contact-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: var(--qe-navy);
  color: #fff;
  border-bottom: 3px solid var(--qe-gold);
  box-shadow: 0 8px 24px rgba(16, 36, 61, 0.18);
}

.modern-contact-bar strong {
  color: #fff !important;
  font-size: 15px !important;
}

.modern-contact-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 6px;
  color: #fff !important;
  background: rgba(255,255,255,0.08);
  font-weight: 700;
  text-decoration: none;
}

.modern-contact-bar a:hover,
.modern-contact-bar a:focus {
  background: var(--qe-gold);
  color: #111 !important;
}

.modern-page-shell {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: clamp(10px, 2vw, 24px);
}

body > div,
.modern-page-shell > div {
  width: 100%;
  max-width: 100%;
}

a {
  color: var(--qe-blue);
  text-underline-offset: 0.16em;
}

a:hover,
a:focus {
  color: var(--qe-burgundy);
}

h1,
h2,
h3 {
  color: var(--qe-navy) !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

h1,
h2 {
  font-size: clamp(26px, 3vw, 42px) !important;
}

h3 {
  font-size: clamp(19px, 2vw, 26px) !important;
}

table {
  max-width: 100% !important;
  border-collapse: collapse !important;
  border-color: var(--qe-line) !important;
  background: var(--qe-panel) !important;
}

.modern-page-shell > div > table,
.modern-page-shell > table,
body > div > table {
  width: min(100%, 1180px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(16, 36, 61, 0.10);
}

table table {
  box-shadow: none !important;
  border-radius: 0;
}

td,
th {
  border-color: var(--qe-line) !important;
  color: var(--qe-ink) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  line-height: 1.38 !important;
  padding: 0.55rem 0.65rem !important;
  vertical-align: middle;
}

th,
thead td,
.dataTable thead th {
  background: var(--qe-navy) !important;
  color: #fff !important;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

font,
span,
p,
b,
strong,
em {
  max-width: 100%;
  letter-spacing: 0 !important;
}

@media (min-width: 1024px) {
  .modern-page-shell {
    padding-top: 22px;
  }
}

@media (max-width: 760px) {
  .modern-contact-bar {
    position: static;
    align-items: stretch;
    justify-content: stretch;
    padding: 8px;
  }

  .modern-contact-bar strong {
    flex: 1 0 100%;
    text-align: center;
  }

  .modern-contact-bar a {
    flex: 1 1 150px;
    min-height: 42px;
    padding: 8px;
    font-size: 14px !important;
  }

  .modern-page-shell {
    padding: 8px;
  }

  body,
  td,
  th,
  a,
  span,
  font,
  p,
  strong,
  b {
    font-size: 15px !important;
  }

  h1,
  h2 {
    font-size: clamp(22px, 6vw, 30px) !important;
  }

  table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: none !important;
  }

  table table {
    min-width: 620px;
  }

  td,
  th {
    min-width: 72px;
    padding: 0.5rem !important;
    white-space: normal;
  }
}

@media print {
  .modern-contact-bar,
  .modern-skip {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  table {
    box-shadow: none !important;
  }
}