:root {
  --xm-ink: #111827;
  --xm-muted: #5b6472;
  --xm-line: #d8dee8;
  --xm-paper: #f5f7fb;
  --xm-white: #ffffff;
  --xm-blue: #005bbb;
  --xm-blue-dark: #073b78;
  --xm-teal: #087f8c;
  --xm-gold: #d49a2a;
}

body.xm-legacy-layout {
  margin: 0 !important;
  color: var(--xm-ink) !important;
  background: var(--xm-paper) !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.xm-global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--xm-line);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
  backdrop-filter: blur(14px);
}

.xm-global-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--xm-ink) !important;
  text-decoration: none !important;
}

.xm-global-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 0;
}

.xm-global-brand strong,
.xm-global-brand span {
  display: block;
}

.xm-global-brand strong {
  color: var(--xm-ink);
  font-size: 16px;
  line-height: 1.1;
}

.xm-global-brand span {
  color: var(--xm-muted);
  font-size: 12px;
}

.xm-global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.xm-global-nav a {
  padding: 9px 12px;
  color: var(--xm-muted) !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.xm-global-nav a:hover {
  color: var(--xm-blue-dark) !important;
  background: #e7f0fb;
}

.xm-global-nav .xm-nav-action {
  color: var(--xm-white) !important;
  background: var(--xm-ink);
}

body.xm-legacy-layout > center {
  display: block;
  width: min(1180px, calc(100% - 36px));
  margin: 26px auto 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

body.xm-legacy-layout > center > table {
  width: 100% !important;
  max-width: 1180px !important;
}

body.xm-legacy-layout table {
  border-color: var(--xm-line) !important;
}

body.xm-legacy-layout td {
  border-color: var(--xm-line) !important;
}

body.xm-legacy-layout td[bgcolor="#404040"],
body.xm-legacy-layout td[bgcolor="#CEE7EF"],
body.xm-legacy-layout td[bgcolor="#FEFEFE"],
body.xm-legacy-layout td[bgcolor="#FFFFFF"] {
  background: var(--xm-white) !important;
}

body.xm-legacy-layout td[width="205"],
body.xm-legacy-layout td[WIDTH="205"] {
  background: #f8fafc !important;
  border-right: 1px solid var(--xm-line);
}

.xm-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 26px auto 44px;
  text-align: left;
}

.xm-content-panel,
.xm-quick-links {
  background: var(--xm-white);
  border: 1px solid var(--xm-line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.1);
}

.xm-content-panel {
  min-height: 520px;
  padding: clamp(26px, 4vw, 54px);
}

.xm-content-heading {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--xm-line);
}

.xm-content-heading h1 {
  margin-bottom: 0 !important;
}

.xm-blog-shell .xm-content-panel {
  max-width: 100%;
}

.xm-archive-panel {
  display: grid;
  gap: 18px;
}

.xm-archive-panel .xm-content-heading,
.xm-archive-panel .navigation {
  grid-column: 1 / -1;
}

.xm-archive-panel .featured,
.xm-archive-panel .post {
  padding: 22px;
  background: #f8fafc;
  border: 1px solid var(--xm-line);
  border-radius: 8px;
}

.xm-article-panel .post,
.xm-article-panel .featured {
  padding: 0;
  border: 0;
  background: transparent;
}

.xm-article-panel .entry,
.xm-archive-panel .entry {
  max-width: 76ch;
}

.xm-archive-panel .entry {
  color: var(--xm-muted);
}

.xm-article-panel small,
.xm-archive-panel small {
  display: block;
  margin: -10px 0 22px;
  color: var(--xm-muted) !important;
  font-size: 14px !important;
}

.xm-article-panel .categorylinebig,
.xm-archive-panel .categorylinebig,
.xm-article-panel .categorylinesmall,
.xm-archive-panel .categorylinesmall {
  width: auto !important;
  margin: 18px 0 0 !important;
  padding: 10px 12px !important;
  color: var(--xm-muted) !important;
  background: #eef5ff !important;
  border: 1px solid #cfe1f7 !important;
  border-radius: 8px;
}

.xm-article-panel .abouttheauthor {
  width: auto !important;
  margin: 24px 0 0 !important;
  padding: 16px !important;
  background: #f8fafc !important;
  border: 1px solid var(--xm-line) !important;
  border-radius: 8px;
}

.xm-article-panel .abouttheauthor img {
  margin: 0 14px 8px 0;
  border-radius: 8px;
}

.xm-content-panel .navigation {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 22px;
  padding: 12px 0;
  border-bottom: 1px solid var(--xm-line);
}

.xm-content-panel .alignleft,
.xm-content-panel .alignright {
  float: none !important;
  width: auto !important;
}

.xm-content-panel > br:first-child,
.xm-content-panel > p:empty {
  display: none;
}

.xm-quick-links {
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 16px;
  position: sticky;
  top: 96px;
}

.xm-quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--xm-line);
  border-radius: 8px;
}

.xm-quick-links a::after {
  content: ">";
  color: var(--xm-gold);
}

body.xm-legacy-layout h1,
body.xm-legacy-layout h2,
body.xm-legacy-layout h3,
body.xm-legacy-layout h4 {
  color: var(--xm-ink) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
}

body.xm-legacy-layout h1,
body.xm-legacy-layout h2 {
  margin: 0 0 22px !important;
  font-size: clamp(32px, 5vw, 56px) !important;
  line-height: 1 !important;
}

.xm-content-panel h2 {
  font-size: clamp(24px, 3vw, 38px) !important;
}

body.xm-legacy-layout h3 {
  margin: 28px 0 12px !important;
  font-size: 22px !important;
}

body.xm-legacy-layout h4 {
  margin: 18px 0 8px !important;
  font-size: 15px !important;
  text-transform: uppercase;
  color: var(--xm-teal) !important;
}

body.xm-legacy-layout .gen,
body.xm-legacy-layout .genmed,
body.xm-legacy-layout .gensmall,
body.xm-legacy-layout p,
body.xm-legacy-layout li,
body.xm-legacy-layout td {
  color: var(--xm-ink) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.68 !important;
}

body.xm-legacy-layout .gensmall {
  font-size: 12px !important;
}

body.xm-legacy-layout a {
  color: var(--xm-blue-dark) !important;
  font-weight: 700;
  text-decoration: none !important;
}

body.xm-legacy-layout a:hover {
  color: var(--xm-teal) !important;
}

.xm-content-panel a {
  overflow-wrap: anywhere;
}

.xm-content-panel img {
  max-width: 100%;
  height: auto;
}

.xm-content-panel br + br {
  display: none;
}

body.xm-legacy-layout input[type="text"],
body.xm-legacy-layout input:not([type]) {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--xm-line);
  border-radius: 8px;
  font: inherit;
}

body.xm-legacy-layout input[type="submit"] {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--xm-white);
  background: var(--xm-ink);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

body.xm-legacy-layout #toolbar,
body.xm-legacy-layout .xm-hide-legacy,
body.xm-legacy-layout img[src*="str82u"],
body.xm-legacy-layout img[src*="xavier1.gif"],
body.xm-legacy-layout img[src*="xavier2.gif"],
body.xm-legacy-layout img[src*="xavier3.gif"],
body.xm-legacy-layout img[src*="bylla.gif"],
body.xm-legacy-layout img[src*="bubble.gif"],
body.xm-legacy-layout img[src*="feedburner.com"] {
  display: none !important;
}

.xm-global-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: #dce4ef;
  background: #0a1220;
}

.xm-global-footer strong,
.xm-global-footer span {
  display: block;
}

.xm-global-footer span {
  color: #9aa8ba;
  font-size: 14px;
}

.xm-global-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.xm-global-footer a {
  color: #f6fbff !important;
  font-weight: 700;
  text-decoration: none !important;
}

@media (max-width: 840px) {
  .xm-global-header,
  .xm-global-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  body.xm-legacy-layout > center {
    width: calc(100% - 20px);
    margin-top: 14px;
    overflow-x: auto;
  }

  .xm-page-shell {
    grid-template-columns: 1fr;
  }

  .xm-quick-links {
    position: static;
  }
}
