/* Hide Journal's demo footer when the custom footer is active. */
.global-wrapper > footer:not(.eman-footer),
.site-wrapper + footer:not(.eman-footer),
body > footer:not(.eman-footer) { display: none !important; }
.mobile-bar, .mobile-bottom-menu, .journal-mobile-bottom-menu { display:none !important; }
body { padding-bottom:0 !important; }

/* e-man Front Custom — Footer v1.4.0 */
.eman-footer {
  position: relative;
  z-index: 2;
  background: #11171d;
  color: #e9edf2;
  border-top: 1px solid rgba(255,255,255,.08);
  font-family: inherit;
}

.eman-footer * { box-sizing: border-box; }

.eman-footer-container {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.eman-footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(0, 2.85fr);
  gap: 72px;
  padding: 72px 0 50px;
}

.eman-footer-brand { max-width: 350px; }

.eman-footer-logo {
  display: inline-flex;
  align-items: baseline;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  text-decoration: none !important;
}

.eman-footer-logo span {
  color: #84a7ff;
  font-size: .55em;
  letter-spacing: 0;
  margin-left: 2px;
}

.eman-footer-brand p {
  margin: 22px 0 24px;
  color: #9ca8b4;
  font-size: 15px;
  line-height: 1.75;
}

.eman-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 24px;
}

.eman-footer-contact a,
.eman-footer-panel a,
.eman-footer-bottom a {
  color: #cbd3dc;
  text-decoration: none !important;
  transition: color .2s ease, transform .2s ease;
}

.eman-footer-contact a:hover,
.eman-footer-panel a:hover,
.eman-footer-bottom a:hover { color: #fff; }

.eman-footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease;
}

.eman-footer-contact-btn:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.28);
}

.eman-footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
}

.eman-footer-toggle {
  width: 100%;
  padding: 0 0 18px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: default;
}

.eman-footer-toggle b { display: none; }

.eman-footer-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.eman-footer-panel a {
  font-size: 13px;
  line-height: 1.45;
}

.eman-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 30px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #aeb8c3;
  font-size: 12px;
}

.eman-footer-note span {
  position: relative;
  padding-left: 15px;
}

.eman-footer-note span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #84a7ff;
  transform: translateY(-50%);
}

.eman-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 23px 0 28px;
  color: #77838f;
  font-size: 12px;
}

.eman-footer-bottom a { color: #aeb8c3; }

@media (max-width: 1100px) {
  .eman-footer-top { gap: 42px; }
  .eman-footer-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 42px; }
}

@media (max-width: 767px) {
  .eman-footer-container { width: min(100% - 32px, 680px); }

  .eman-footer-top {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 48px 0 32px;
  }

  .eman-footer-brand { max-width: none; }
  .eman-footer-logo { font-size: 34px; }
  .eman-footer-brand p { max-width: 520px; margin: 18px 0 20px; }

  .eman-footer-groups {
    display: block;
    border-top: 1px solid rgba(255,255,255,.09);
  }

  .eman-footer-group { border-bottom: 1px solid rgba(255,255,255,.09); }

  .eman-footer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0;
    cursor: pointer;
  }

  .eman-footer-toggle b {
    display: block;
    color: #84a7ff;
    font-size: 22px;
    font-weight: 400;
    transition: transform .2s ease;
  }

  .eman-footer-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    gap: 0;
    transition: max-height .28s ease, opacity .2s ease, padding .28s ease;
  }

  .eman-footer-panel a {
    width: 100%;
    padding: 8px 0;
    font-size: 14px;
  }

  .eman-footer-group.is-open .eman-footer-panel {
    max-height: 520px;
    opacity: 1;
    padding: 0 0 18px;
  }

  .eman-footer-group.is-open .eman-footer-toggle b { transform: rotate(45deg); }

  .eman-footer-note {
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
    padding: 20px 0;
  }

  .eman-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 0 28px;
  }

  body { padding-bottom: 0 !important; }
}
