/* Shared navigation and footer; page content keeps its own styles. */
.mj-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: 6px;
  background: #181916;
  padding: 12px 18px;
  color: #fff;
  font-size: .875rem;
}

.mj-skip-link:focus { transform: translateY(0); }

.mj-top-ribbon {
  border-bottom: 0;
  background: #181916;
  color: #e8e5dc;
}

.mj-top-ribbon-inner {
  padding: 8px 16px;
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .055em;
  text-align: center;
}

.mj-top-ribbon-inner span { margin: 0 9px; color: #d9b765; }

.mj-site-header {
  border-bottom: 1px solid #e4e2d9;
  background: rgba(246, 245, 241, .96);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.mj-site-header .mj-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  min-height: 90px;
  padding-top: 17px;
  padding-bottom: 17px;
}

.mj-site-header .mj-brand-link {
  max-width: none;
  border-radius: 4px;
  padding: 0;
}

.mj-site-header .mj-brand-link:hover { background: transparent; transform: none; }

.mj-site-header .mj-brand-title {
  gap: 11px;
  color: #181916;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.05em;
  white-space: nowrap;
}

.mj-site-header .mj-brand-mark {
  flex-shrink: 0;
  min-width: 42px;
  width: 42px;
  height: 46px;
  border: 1px solid #181916;
  border-radius: 3px;
  background: #181916;
  color: #d9b765;
  box-shadow: none;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1875rem;
  font-weight: 400;
  letter-spacing: -.07em;
}

.mj-brand-wordmark { display: block; min-width: 0; }
.mj-brand-caption {
  display: block;
  margin-top: 6px;
  color: #77776e;
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .1em;
}

.mj-site-header .mj-primary-nav {
  justify-self: center;
  gap: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.mj-site-header .mj-nav-pill {
  min-height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
  color: #73746c;
  box-shadow: none;
  font-size: .8125rem;
  font-weight: 500;
  transform: none;
  transition: color 160ms ease;
}

.mj-site-header .mj-nav-pill:hover,
.mj-site-header .mj-nav-pill.is-active { background: transparent; color: #181916; box-shadow: none; }
.mj-site-header .mj-nav-pill.is-active { font-weight: 650; }
.mj-site-header .mj-nav-pill::after {
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 0;
  background: #d9b765;
}
.mj-site-header .mj-nav-pill.is-active::after { transform: scaleX(1); background: #d9b765; }

.mj-site-header .mj-account-menu {
  gap: 8px;
  min-height: 40px;
  border-left: 0;
  padding-left: 0;
}

.mj-site-header .mj-account-name {
  max-width: 100px;
  overflow: hidden;
  padding: 0 3px;
  color: #73746c;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mj-site-header .mj-account-action,
.mj-site-header .mj-account-signup {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 8px 13px;
  font-size: .75rem;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
}

.mj-site-header .mj-account-action { background: transparent; color: #484940; }
.mj-site-header .mj-account-action:hover { background: #ebe9e1; }
.mj-site-header .mj-account-signup { border-color: #181916; background: #181916; color: #fff; }
.mj-site-header .mj-account-signup:hover { border-color: #46473f; background: #46473f; }

.mj-site-header .mj-theme-toggle {
  flex-shrink: 0;
  width: 36px;
  min-width: 36px;
  height: 36px;
  border: 1px solid #dddcd3;
  border-radius: 50%;
  background: transparent;
  color: #57584e;
  box-shadow: none;
  transform: none;
}
.mj-site-header .mj-theme-toggle:hover { border-color: #bdbbb0; background: #ebe9e1; color: #181916; }
.mj-site-header .mj-theme-toggle svg { width: 16px; height: 16px; }

.mj-site-footer {
  margin-top: 36px;
  border-top: 1px solid #e0dfd6;
  background: #f0efe9;
  color: #6e7065;
}
.mj-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 42px 32px 22px;
}
.mj-footer-brand > a { display: inline-block; color: #181916; font-size: 1rem; font-weight: 650; letter-spacing: -.035em; }
.mj-footer-brand > a span { display: block; margin-top: 7px; color: #7b7867; font-size: .625rem; font-weight: 500; letter-spacing: .12em; }
.mj-footer-brand p { margin-top: 12px; font-size: .8125rem; }
.mj-footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: .75rem; }
.mj-footer-links a { padding: 5px 0; text-underline-offset: 5px; }
.mj-footer-links a:hover { color: #181916; text-decoration: underline; }
.mj-footer-bottom { display: flex; grid-column: 1 / -1; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid #deddd4; padding-top: 20px; }
.mj-footer-bottom small { font-size: .6875rem; }

.mj-body :where(.mj-site-header, .mj-site-footer) :where(a, button):focus-visible,
.mj-body .mj-skip-link:focus-visible { outline: 2px solid #aa812c; outline-offset: 5px; }
.mj-body .mj-site-header .mj-nav-pill:focus-visible { outline-offset: -3px; }

/* Override the legacy theme's shared header rule without affecting page cards. */
html[data-theme="dark"] .mj-site-header { border-color: #30322b !important; background: rgba(24, 25, 22, .96) !important; box-shadow: none !important; }
html[data-theme="dark"] .mj-site-header .mj-primary-nav { border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
html[data-theme="dark"] .mj-site-header .mj-brand-title,
html[data-theme="dark"] .mj-site-header .mj-nav-pill:hover,
html[data-theme="dark"] .mj-site-header .mj-nav-pill.is-active { color: #f3f1e9; }
html[data-theme="dark"] .mj-site-header .mj-brand-mark { border-color: #5c5031; }
html[data-theme="dark"] .mj-brand-caption,
html[data-theme="dark"] .mj-site-header .mj-nav-pill,
html[data-theme="dark"] .mj-site-header .mj-account-name { color: #a2a397; }
html[data-theme="dark"] .mj-site-header .mj-account-action { color: #d8d8cd; }
html[data-theme="dark"] .mj-site-header .mj-account-action:hover,
html[data-theme="dark"] .mj-site-header .mj-theme-toggle:hover { background: #30322b; }
html[data-theme="dark"] .mj-site-header .mj-account-signup { border-color: #d9b765; background: #d9b765; color: #181916; }
html[data-theme="dark"] .mj-site-header .mj-account-signup:hover { border-color: #e8ca83; background: #e8ca83; }
html[data-theme="dark"] .mj-site-header .mj-theme-toggle { border-color: #45473d; background: transparent; color: #dadbd0; }
html[data-theme="dark"] .mj-site-footer { border-color: #30322b; background: #171814; color: #a2a397; }
html[data-theme="dark"] .mj-footer-brand > a,
html[data-theme="dark"] .mj-footer-links a:hover { color: #f3f1e9; }
html[data-theme="dark"] .mj-footer-brand > a span { color: #c2af7c; }
html[data-theme="dark"] .mj-footer-bottom { border-color: #30322b; }

@media (max-width: 1100px) {
  .mj-site-header .mj-header-inner { gap: 16px; }
  .mj-site-header .mj-primary-nav { gap: 14px; }
  .mj-site-header .mj-account-name { display: none; }
}

@media (max-width: 960px) {
  .mj-site-header .mj-header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 16px; min-height: 0; padding-top: 14px; padding-bottom: 0; }
  .mj-site-header .mj-primary-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; width: 100%; flex-wrap: nowrap; gap: 28px; overflow-x: auto; padding: 0 3px 4px; margin-top: 0; scrollbar-width: none; }
  .mj-site-header .mj-primary-nav::-webkit-scrollbar { display: none; }
  .mj-site-header .mj-nav-pill { flex: 0 0 auto; min-height: 42px; }
  .mj-site-header .mj-account-menu { grid-column: 2; grid-row: 1; }
}

@media (max-width: 640px) {
  .mj-top-ribbon-inner { font-size: .625rem; letter-spacing: .015em; }
  .mj-top-ribbon-inner span { margin: 0 5px; }
  .mj-site-header .mj-header-inner { gap: 7px 8px; }
  .mj-site-header .mj-brand-title { gap: 8px; font-size: .9375rem !important; }
  .mj-site-header .mj-brand-mark { min-width: 34px; width: 34px; height: 39px; font-size: 1rem; }
  .mj-brand-caption { margin-top: 5px; font-size: .5rem; letter-spacing: 0; }
  .mj-site-header .mj-primary-nav { gap: 27px; }
  .mj-site-header .mj-account-menu { gap: 3px; }
  .mj-site-header .mj-account-action,
  .mj-site-header .mj-account-signup { min-height: 34px; padding: 7px 9px; font-size: .6875rem; }
  .mj-site-header .mj-theme-toggle { min-width: 32px; width: 32px; height: 32px; }
  .mj-footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px 22px; }
  .mj-footer-links { gap: 10px 20px; }
  .mj-footer-bottom { flex-direction: column; }
}

@media (max-width: 359px) {
  .mj-site-header .mj-brand-title { gap: 6px; font-size: .8125rem !important; }
  .mj-site-header .mj-brand-mark { min-width: 28px; width: 28px; height: 35px; }
  .mj-brand-caption { display: none; }
  .mj-site-header .mj-account-action,
  .mj-site-header .mj-account-signup { padding-right: 6px; padding-left: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .mj-site-header :where(a, button, svg),
  .mj-site-header .mj-nav-pill::after { transition: none; }
}
