.jdlvshi-brand-text {
  color: #ffffff;
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
}

.mnmd-offcanvas__title .jdlvshi-brand-text {
  color: #1b1d1c;
}

/* Site-wide visual layer for the law practice. */
body.body_relive_v3 {
  background: #f4f6f4;
  color: #203037;
}

.site-header.site-header--skin-2,
.site-header.site-header--skin-2 .mobile-header,
.site-header.site-header--skin-2 .navigation-bar,
.site-header.site-header--skin-2 .navigation-bar--inverse.navigation-bar--fullwidth {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(22, 50, 54, 0.12);
}

.site-header.site-header--skin-2 .jdlvshi-brand-text,
.site-header.site-header--skin-2 .navigation--main > li > a,
.site-header.site-header--skin-2 .navigation-bar-btn {
  color: #173c3e;
}

.site-header.site-header--skin-2 .navigation--main > li > a:before {
  background: #bd5f47 !important;
}

.site-header.site-header--skin-2 .navigation--main > li > a:hover,
.site-header.site-header--skin-2 .navigation--main > li.current-menu-item > a {
  color: #a84f3a;
}

.site-header.site-header--skin-2 .mobile-header .header-logo--text a,
.site-header.site-header--skin-2 .mobile-header .mobile-header-btn,
.site-header.site-header--skin-2 .mobile-header .mobile-header-btn i {
  color: #173c3e;
}

.site-footer {
  background: #173c3e;
}

.site-footer,
.site-footer a {
  color: #edf3f0;
}

.jdlvshi-article-cover {
  margin: 28px 0 36px;
}

.jdlvshi-article-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 767px) {
  .jdlvshi-article-cover {
    margin: 22px 0 28px;
  }
}

/* Keep legal information pages readable without making long text feel sparse. */
.post--single .single-body,
.page .single-body {
  line-height: 1.8;
}

.post--single .single-body p,
.page .single-body p {
  line-height: 1.85;
  margin-bottom: 1.3em;
}

.post--single .single-body h2,
.page .single-body h2 {
  line-height: 1.4;
  margin-top: 2.1em;
  margin-bottom: 0.8em;
}

.post--single .single-body h3,
.page .single-body h3 {
  line-height: 1.45;
  margin-top: 1.75em;
  margin-bottom: 0.7em;
}

.post--single .single-body ul,
.post--single .single-body ol,
.page .single-body ul,
.page .single-body ol {
  margin-bottom: 1.3em;
  padding-left: 1.55em;
}

.post--single .single-body li,
.page .single-body li {
  line-height: 1.75;
  margin-bottom: 0.45em;
}

.post--single .single-body hr,
.page .single-body hr {
  margin: 2em 0;
}

@media (max-width: 767px) {
  .post--single .single-body p,
  .page .single-body p {
    line-height: 1.8;
    margin-bottom: 1.2em;
  }

  .post--single .single-body h2,
  .page .single-body h2 {
    margin-top: 1.85em;
  }
}

/* Lawyer profile */
.page-id-6 .single-header {
  display: none;
}

.page-id-6 .relive_widget_v3 {
  padding: 0;
  overflow: hidden;
}

.page-id-6 .single-body {
  margin: 0;
}

.jdlvshi-profile-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  min-height: 480px;
  background: #e8efec;
}

.jdlvshi-profile-portrait {
  min-height: 480px;
  background: #9da8ad;
}

.jdlvshi-profile-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.jdlvshi-profile-hero__copy {
  align-self: center;
  max-width: 620px;
  padding: 58px 64px;
}

.jdlvshi-profile-hero__copy h1 {
  margin: 0;
  color: #173c3e;
  font-size: 38px;
  line-height: 1.25;
}

.jdlvshi-profile-identity {
  margin: 12px 0 30px !important;
  color: #a84f3a;
  font-size: 17px;
  font-weight: 600;
}

.jdlvshi-profile-intro {
  margin: 0 !important;
  color: #4a5c60;
  font-size: 17px;
  line-height: 1.9 !important;
}

.jdlvshi-profile-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
  padding-top: 25px;
  border-top: 1px solid #c5d3ce;
}

.jdlvshi-profile-facts strong,
.jdlvshi-profile-facts span {
  display: block;
}

.jdlvshi-profile-facts strong {
  color: #173c3e;
  font-size: 15px;
}

.jdlvshi-profile-facts span {
  margin-top: 5px;
  color: #5b6b6e;
  font-size: 15px;
  line-height: 1.6;
}

.jdlvshi-profile-contact {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 18px;
  border-radius: 4px;
  background: #bd5f47;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.jdlvshi-profile-contact:hover {
  color: #ffffff;
  background: #8f402f;
}

.jdlvshi-profile-detail {
  padding: 48px 64px 64px;
}

.jdlvshi-profile-detail h2 {
  margin-top: 2em;
  padding-bottom: 12px;
  border-bottom: 1px solid #dfe7e3;
  color: #173c3e;
  font-size: 23px;
}

.jdlvshi-profile-detail h2:first-child {
  margin-top: 0;
}

.jdlvshi-profile-detail p,
.jdlvshi-profile-detail span {
  color: #3d4d51;
}

@media (max-width: 767px) {
  .jdlvshi-profile-hero {
    grid-template-columns: 1fr;
  }

  .jdlvshi-profile-portrait {
    min-height: 390px;
    max-height: 460px;
  }

  .jdlvshi-profile-hero__copy,
  .jdlvshi-profile-detail {
    padding: 36px 24px;
  }

  .jdlvshi-profile-hero__copy h1 {
    font-size: 32px;
  }

  .jdlvshi-profile-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Homepage */
.home .site-content {
  padding: 0 !important;
}

.home .relive_widget_v3 {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.home .mnmd-main-col {
  width: 100%;
}

.home .single-header {
  display: none;
}

.home .single-body {
  max-width: none;
  margin: 0;
  color: inherit;
}

.home .single-body p {
  text-indent: 0;
}

.jdlvshi-home-hero {
  position: relative;
  width: 100vw;
  min-height: 540px;
  margin: 0 calc(50% - 50vw);
  display: flex;
  align-items: center;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(17, 51, 53, 0.92) 0%, rgba(17, 51, 53, 0.76) 43%, rgba(17, 51, 53, 0.2) 76%), url('../images/jdlvshi/legal-library.jpg');
  background-position: center;
  background-size: cover;
}

.jdlvshi-home-hero__inner,
.jdlvshi-home-section,
.jdlvshi-home-contact__inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.jdlvshi-home-hero__copy {
  max-width: 610px;
  padding: 72px 0;
}

.jdlvshi-home-eyebrow,
.jdlvshi-section-eyebrow,
.jdlvshi-article-card__meta {
  margin: 0 0 14px;
  color: #d8b68d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.jdlvshi-home-hero .jdlvshi-home-eyebrow {
  color: #d8b68d !important;
}

.jdlvshi-home-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
}

.jdlvshi-home-hero__lead {
  max-width: 510px;
  margin: 24px 0 0 !important;
  color: #f3f7f5 !important;
  font-size: 20px;
  line-height: 1.75 !important;
}

.jdlvshi-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.jdlvshi-home-actions a {
  min-width: 142px;
  padding: 12px 18px;
  border: 1px solid #ffffff;
  border-radius: 4px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.jdlvshi-home-actions a:first-child {
  border-color: #bd5f47;
  background: #bd5f47;
}

.jdlvshi-home-actions a:hover {
  color: #ffffff;
  background: #8f402f;
  border-color: #8f402f;
}

.jdlvshi-home-section {
  padding: 82px 0;
}

.jdlvshi-home-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}

.jdlvshi-home-section h2 {
  margin: 0;
  color: #173c3e;
  font-size: 32px;
  line-height: 1.35;
}

.jdlvshi-home-intro__text {
  margin: 0 !important;
  color: #4b5b5e;
  font-size: 17px;
  line-height: 1.9 !important;
}

.jdlvshi-home-services {
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  background: #e8efec;
}

.jdlvshi-home-services .jdlvshi-home-section {
  padding-top: 76px;
  padding-bottom: 82px;
}

.jdlvshi-service-grid,
.jdlvshi-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.jdlvshi-service-card,
.jdlvshi-article-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid #d3dfda;
  border-radius: 6px;
  background: #ffffff;
  color: #203037;
  text-decoration: none;
}

.jdlvshi-service-card:hover,
.jdlvshi-article-card:hover {
  border-color: #bd5f47;
  box-shadow: 0 8px 24px rgba(26, 53, 55, 0.08);
}

.jdlvshi-service-card__number {
  display: block;
  color: #bd5f47;
  font-size: 15px;
  font-weight: 700;
}

.jdlvshi-service-card h3,
.jdlvshi-article-card h3 {
  margin: 30px 0 12px;
  color: #173c3e;
  font-size: 21px;
  line-height: 1.4;
}

.jdlvshi-service-card h3 a {
  color: #173c3e;
  text-decoration: none;
}

.jdlvshi-service-card p {
  margin: 0 !important;
  color: #526165;
  font-size: 16px;
  line-height: 1.75 !important;
}

.jdlvshi-service-card__more,
.jdlvshi-article-card__more {
  display: inline-block;
  margin-top: 22px;
  color: #a84f3a;
  font-size: 15px;
  font-weight: 600;
}

.jdlvshi-home-recent {
  background: #f4f6f4;
}

.jdlvshi-article-card {
  min-height: 205px;
  display: flex;
  flex-direction: column;
}

.jdlvshi-article-card__meta {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: #a84f3a;
}

.jdlvshi-article-card__meta span {
  color: #819093;
  font-weight: 400;
}

.jdlvshi-article-card h3 {
  margin-top: 21px;
  font-size: 18px;
}

.jdlvshi-article-card h3 a {
  color: #173c3e;
  text-decoration: none;
}

.jdlvshi-article-card__more {
  margin-top: auto;
}

.jdlvshi-home-contact {
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  background: #173c3e;
  color: #ffffff;
}

.jdlvshi-home-contact__inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  min-height: 180px;
}

.jdlvshi-home-contact h2 {
  color: #ffffff;
  font-size: 28px;
}

.jdlvshi-home-contact p {
  margin: 12px 0 0 !important;
  color: #d9e6df;
  font-size: 16px;
}

.jdlvshi-home-contact a {
  flex: 0 0 auto;
  padding: 13px 20px;
  border: 1px solid #d8b68d;
  border-radius: 4px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 767px) {
  .site-header.site-header--skin-2 .jdlvshi-brand-text {
    color: #173c3e;
  }

  .jdlvshi-home-hero {
    min-height: 510px;
    background-image: linear-gradient(90deg, rgba(17, 51, 53, 0.91), rgba(17, 51, 53, 0.63)), url('../images/jdlvshi/legal-library.jpg');
    background-position: 61% center;
  }

  .jdlvshi-home-hero__inner,
  .jdlvshi-home-section,
  .jdlvshi-home-contact__inner {
    width: min(100% - 32px, 1160px);
  }

  .jdlvshi-home-hero__copy {
    padding: 60px 0;
  }

  .jdlvshi-home-hero h1 {
    font-size: 36px;
  }

  .jdlvshi-home-hero__lead {
    font-size: 17px;
  }

  .jdlvshi-home-section {
    padding: 56px 0;
  }

  .jdlvshi-home-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .jdlvshi-home-section h2 {
    font-size: 26px;
  }

  .jdlvshi-service-grid,
  .jdlvshi-latest-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .jdlvshi-service-card,
  .jdlvshi-article-card {
    min-height: 0;
    padding: 24px;
  }

  .jdlvshi-home-contact__inner {
    display: block;
    padding: 44px 0;
  }

  .jdlvshi-home-contact a {
    display: inline-block;
    margin-top: 26px;
  }
}
