:root {
  --jm-navy: #0a1a2f;
  --jm-gold: #d6a854;
  --jm-charcoal: #1f1f1f;
  --jm-silver: #c0c6cc;
  --jm-white: #ffffff;
  --jm-soft: #f5f7fa;
  --jm-border: rgba(192, 198, 204, 0.55);
  --jm-shadow: 0 18px 48px rgba(10, 26, 47, 0.1);
}

.jmebs-topbar,
.jmebs-topbar *,
.jmebs-inline-cta,
.jmebs-inline-cta *,
.jmebs-rotator,
.jmebs-rotator *,
.jmebs-toc,
.jmebs-toc *,
.jmebs-contact-card,
.jmebs-contact-card *,
.jmebs-mobile-sticky,
.jmebs-mobile-sticky * {
  box-sizing: border-box;
}

body.single-post .entry-content,
body.single-post .entry-content p,
body.single-post .jm-sidebar,
body.single-post .jm-single-grid {
  max-width: 100%;
}

body.single-post .entry-content {
  overflow-wrap: anywhere;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
  scroll-margin-top: 118px;
}

.jmebs-topbar {
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(214, 168, 84, 0.45);
  box-shadow: 0 10px 28px rgba(10, 26, 47, 0.06);
  z-index: 999;
}

.jmebs-topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.jmebs-topbar-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jmebs-topbar-copy strong,
.jmebs-eyebrow {
  display: inline-block;
  color: var(--jm-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jmebs-topbar-copy span {
  color: rgba(31, 31, 31, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.jmebs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
  white-space: normal;
}

.jmebs-button:hover,
.jmebs-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(10, 26, 47, 0.14);
}

.jmebs-button-primary {
  background: var(--jm-navy);
  border-color: var(--jm-navy);
  color: var(--jm-white) !important;
}

.jmebs-button-gold {
  background: var(--jm-gold);
  border-color: rgba(214, 168, 84, 0.8);
  color: var(--jm-navy) !important;
}

.jmebs-inline-cta {
  width: 100%;
  max-width: 100%;
  margin: 32px 0;
  padding: 24px;
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--jm-border);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 58%, #f6f8fb 100%);
  box-shadow: 0 14px 38px rgba(10, 26, 47, 0.08);
  overflow: hidden;
}

.jmebs-inline-accent {
  align-self: stretch;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--jm-gold), var(--jm-navy));
}

.jmebs-inline-copy {
  min-width: 0;
}

.jmebs-inline-cta h3,
.jmebs-rotator h3 {
  margin: 0 0 12px;
  color: var(--jm-navy);
  font-size: clamp(24px, 3.1vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.jmebs-inline-cta p,
.jmebs-rotator p {
  margin: 0;
  color: rgba(31, 31, 31, 0.82);
  font-size: 15.5px;
  line-height: 1.68;
}

.jmebs-rotator {
  width: 100%;
  max-width: 360px;
  margin: 0 0 28px;
}

.jmebs-rotator-shell {
  position: relative;
  min-height: 356px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--jm-border);
  background: var(--jm-white);
  box-shadow: var(--jm-shadow);
}

.jmebs-rotator-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--jm-navy), var(--jm-gold));
  z-index: 3;
}

.jmebs-rotator-card {
  position: absolute;
  inset: 0;
  padding: 34px 28px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.jmebs-rotator-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.jmebs-card-watermark {
  position: absolute;
  top: 22px;
  right: 22px;
  color: rgba(192, 198, 204, 0.2);
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.jmebs-rotator p {
  margin-bottom: 24px;
}

.jmebs-rotator-dots {
  position: absolute;
  left: 28px;
  bottom: 22px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

.jmebs-rotator-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(10, 26, 47, 0.18);
  transition: width 220ms ease, background 220ms ease;
}

.jmebs-rotator-dots span.is-active {
  width: 24px;
  background: var(--jm-gold);
}

.jmebs-mobile-sticky {
  display: none;
}

.jmebs-toc {
  width: min(100%, 680px);
  margin: 4px auto 34px;
  border: 1px solid rgba(192, 198, 204, 0.82);
  border-radius: 8px;
  background: var(--jm-white);
  box-shadow: 0 10px 26px rgba(10, 26, 47, 0.05);
  overflow: hidden;
}

.jmebs-toc-summary {
  min-height: 74px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  color: var(--jm-navy);
  font-size: 26px;
  font-weight: 850;
  line-height: 1.12;
  list-style: none;
}

.jmebs-toc-summary::-webkit-details-marker {
  display: none;
}

.jmebs-toc-summary::marker {
  content: "";
}

.jmebs-toc-icon {
  width: 58px;
  height: 44px;
  flex: 0 0 58px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 2px solid var(--jm-charcoal);
  border-radius: 6px;
  background: #fbfbfc;
  box-shadow: inset -10px 0 0 rgba(192, 198, 204, 0.28);
}

.jmebs-toc-icon span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: rgba(31, 31, 31, 0.48);
}

.jmebs-toc[open] .jmebs-toc-summary {
  padding-bottom: 10px;
}

.jmebs-toc-list {
  margin: 0;
  padding: 0 20px 22px;
  list-style: none;
}

.jmebs-toc-item {
  margin: 0;
}

.jmebs-toc-item a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  color: rgba(31, 31, 31, 0.94);
  font-size: 19px;
  font-weight: 780;
  line-height: 1.35;
  text-decoration: none !important;
}

.jmebs-toc-item a:hover,
.jmebs-toc-item a:focus {
  color: var(--jm-navy);
  text-decoration: underline !important;
  text-decoration-color: var(--jm-gold) !important;
  text-underline-offset: 4px;
}

.jmebs-toc-number {
  color: var(--jm-navy);
  font-variant-numeric: tabular-nums;
}

.jmebs-toc-level-3 {
  padding-left: 26px;
}

.jmebs-toc-level-3 a {
  font-size: 17px;
  font-weight: 740;
}

.jmebs-toc-level-4 {
  padding-left: 44px;
}

.jmebs-toc-level-4 a {
  font-size: 15.5px;
  font-weight: 720;
}

.jmebs-contact-card {
  width: min(100%, 720px);
  margin: 28px 0 8px;
  padding: 28px;
  border: 1px solid var(--jm-border);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 66%, #f6f8fb 100%);
  box-shadow: 0 18px 42px rgba(10, 26, 47, 0.08);
}

.jmebs-contact-form {
  display: grid;
  gap: 18px;
}

.jmebs-contact-form p {
  margin: 0;
}

.jmebs-contact-form label {
  display: block;
  margin: 0 0 7px;
  color: var(--jm-navy);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jmebs-contact-form input,
.jmebs-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(192, 198, 204, 0.75);
  border-radius: 12px;
  background: var(--jm-white);
  color: var(--jm-charcoal);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  padding: 13px 15px;
  box-shadow: inset 0 1px 0 rgba(10, 26, 47, 0.03);
}

.jmebs-contact-form input:focus,
.jmebs-contact-form textarea:focus {
  outline: 2px solid rgba(214, 168, 84, 0.45);
  outline-offset: 2px;
  border-color: var(--jm-gold);
}

.jmebs-contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.jmebs-contact-form .jmebs-button {
  justify-self: start;
  min-width: 190px;
}

.jmebs-contact-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(214, 168, 84, 0.55);
  border-radius: 12px;
  background: rgba(214, 168, 84, 0.1);
  color: var(--jm-navy);
  font-weight: 750;
}

.jmebs-contact-notice-success {
  border-color: rgba(10, 26, 47, 0.18);
  background: rgba(10, 26, 47, 0.06);
}

.jmebs-call-hero {
  width: min(100%, 920px);
  margin: 0 0 34px;
  position: relative;
}

.jmebs-call-hero::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -1px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--jm-navy), var(--jm-gold));
}

.jmebs-call-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(192, 198, 204, 0.7);
  border-radius: 20px;
  box-shadow: 0 22px 54px rgba(10, 26, 47, 0.12);
}

@media (max-width: 900px) {
  .jmebs-inline-cta {
    grid-template-columns: 1fr;
  }

  .jmebs-inline-accent {
    width: 72px;
    min-height: 4px;
  }

  .jmebs-inline-cta .jmebs-button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body.single-post .entry-content h2,
  body.single-post .entry-content h3,
  body.single-post .entry-content h4 {
    scroll-margin-top: 96px;
  }

  .jmebs-toc {
    width: 100%;
    margin: 0 0 22px;
    border-radius: 8px;
  }

  .jmebs-toc-summary {
    min-height: 56px;
    padding: 12px 14px;
    gap: 12px;
    font-size: 22px;
  }

  .jmebs-toc-icon {
    width: 48px;
    height: 36px;
    flex-basis: 48px;
    border-width: 2px;
  }

  .jmebs-toc-icon span {
    width: 18px;
  }

  .jmebs-toc-list {
    padding: 0 14px 16px;
  }

  .jmebs-toc-item a {
    padding: 6px 0;
    font-size: 16px;
    line-height: 1.32;
  }

  .jmebs-toc-level-3 {
    padding-left: 18px;
  }

  .jmebs-toc-level-3 a {
    font-size: 14.5px;
  }

  .jmebs-toc-level-4 {
    padding-left: 30px;
  }

  .jmebs-toc-level-4 a {
    font-size: 13.5px;
  }

  .jmebs-contact-card {
    margin: 22px 0 4px;
    padding: 18px 15px;
    border-radius: 16px;
  }

  .jmebs-contact-form {
    gap: 15px;
  }

  .jmebs-contact-form .jmebs-button {
    width: 100%;
  }

  .jmebs-call-hero {
    margin-bottom: 24px;
  }

  .jmebs-call-hero img {
    border-radius: 16px;
  }

  .jmebs-call-hero::after {
    left: 18px;
    right: 18px;
  }

  .jmebs-topbar-inner {
    padding: 8px 12px;
    gap: 10px;
  }

  .jmebs-topbar-copy strong {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .jmebs-topbar-copy span {
    display: none;
  }

  .jmebs-topbar .jmebs-button {
    min-height: 36px;
    width: auto;
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 11.5px;
    white-space: nowrap;
    box-shadow: none;
  }

  .jmebs-inline-cta {
    width: 100%;
    margin: 22px 0;
    padding: 17px 15px;
    border-radius: 22px;
    gap: 12px;
  }

  .jmebs-inline-cta h3,
  .jmebs-rotator h3 {
    font-size: 22px;
    line-height: 1.14;
  }

  .jmebs-inline-cta p,
  .jmebs-rotator p {
    font-size: 14.5px;
    line-height: 1.58;
  }

  .jmebs-inline-cta .jmebs-button {
    min-height: 42px;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
  }

  .jmebs-rotator {
    max-width: 100%;
  }

  .jmebs-rotator-shell {
    min-height: 336px;
    border-radius: 22px;
  }

  .jmebs-rotator-card {
    padding: 28px 22px 54px;
  }

  .jmebs-mobile-compact-enabled {
    padding-bottom: 76px;
  }

  body.jmebs-mobile-compact-enabled .jmebs-mobile-sticky {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 28px));
    min-height: 50px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 999px;
    background: var(--jm-navy);
    color: var(--jm-white) !important;
    text-decoration: none !important;
    box-shadow: 0 18px 42px rgba(10, 26, 47, 0.22);
    z-index: 9999;
    font-weight: 800;
  }

  body.jmebs-mobile-compact-enabled .jmebs-mobile-sticky strong {
    color: var(--jm-gold);
    font-size: 22px;
    line-height: 1;
  }
}
