.lm-service { color: #181818; font-family: "Legalmed Jakarta", sans-serif; padding-block: 20px clamp(50px, 7vw, 105px); }
.lm-service-cover { margin-inline: auto; width: min(1400px, calc(100% - 30px)); overflow: hidden; border-radius: 30px; background: #f4f4f4; }
.lm-service-cover img { display: block; width: 100%; aspect-ratio: 1400 / 680; height: auto; object-fit: cover; }
.lm-service-shell { width: min(1170px, calc(100% - 60px)); margin-inline: auto; }
.lm-service h1 { font-size: 48px; line-height: 1.33; letter-spacing: normal; font-weight: 500; margin: 45px 0 28px; }
.lm-service-layout { display: grid; grid-template-columns: minmax(0, 855fr) minmax(0, 270fr); gap: 45px; }
.lm-service-copy { min-width: 0; overflow-wrap: break-word; color: #444; font-size: 16px; line-height: 30px; }
.lm-service-copy p { margin: 0 0 1em; }
.lm-service-copy > p:first-of-type:first-letter { float: left; margin: 8.4px 14px 0 0; padding-inline: .4em; border-radius: 10px; border: 1px solid var(--legalmed-accent); background: white; font-size: 28px; font-weight: 700; line-height: 42px; color: #181818; }
.lm-service :is(h2,h3,h4) { line-height: 1.3; letter-spacing: -.035em; color: #181818; font-weight: 500; }
.lm-service-copy :is(h2,h3) { margin: 1.2em 0 .45em; font-size: clamp(23px, 2vw, 30px); }
.lm-service-copy figure { margin: 28px 0; }
.lm-service-copy figure img { width: 100%; height: auto; max-height: 560px; object-fit: cover; display: block; border-radius: 24px; }
.lm-service-copy li { margin-bottom: .3em; }
.lm-service-copy a { color: var(--legalmed-accent); }
.lm-service-benefits, .lm-service-team { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
.lm-service-benefits { background: #f3f3f3; border-radius: 30px; padding: 38px 4.2% 28px; margin-block: 27px 40px; justify-content: space-between; grid-template-columns: minmax(0,320px) minmax(0,340px); }
.lm-service-benefits > div { display: grid; grid-template-columns: 64px minmax(0,1fr); align-content: start; column-gap: 21px; }
.lm-service-benefits img { grid-row: span 3; display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.lm-service .lm-service-benefits h2 { font-size: 22px; margin: 0 0 10px; }
.lm-service-benefits p { margin: 0; font-size: 15px; }
.lm-service-benefits .lm-benefit-link { grid-column: 2; justify-self: start; display: inline-grid; place-items: center; margin-top: 12px; width: 40px; height: 40px; color: #181818; font-size: 24px; transition: color var(--yatbt-hover), transform var(--yatbt-hover); }
.lm-benefit-link:is(:hover,:focus-visible) { color: var(--legalmed-accent); transform: translateX(3px); }
.lm-service-subpages { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.lm-service-team img { display: block; aspect-ratio: 83/97; width: 100%; object-fit: cover; object-position: center top; border-radius: 30px; }
.lm-service-copy .lm-service-team-heading { margin: 45px 0 35px; font-size: 36px; line-height: 1.33; letter-spacing: normal; }
.lm-service-team a { position: relative; display: grid; grid-template-columns: minmax(0,1fr); }
.lm-service-team img, .lm-profile-shortcut { grid-area: 1 / 1; }
.lm-profile-shortcut { align-self: end; justify-self: start; display: grid; place-items: center; margin: 0 0 30px 30px; width: 50px; height: 50px; background: white; color: #181818; border-radius: 50%; font-size: 22px; transition: color var(--yatbt-hover), background var(--yatbt-hover); }
.lm-service-team a:is(:hover,:focus-visible) .lm-profile-shortcut { background: var(--legalmed-accent); color: white; }
.lm-service-team small { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 650; line-height: 1.5; margin-top: 32px; color: var(--legalmed-accent); }
.lm-service-team strong { color: #181818; margin-top: 10px; font-size: 24px; font-weight: 600; line-height: 1.2; }
.lm-service-side nav h2 { margin: 0; font-size: 24px; line-height: 1.33; letter-spacing: normal; }
.lm-service-side nav a { display: flex; align-items: baseline; gap: 15px; padding: 10px 0; min-height: 41px; color: inherit; font-size: 16px; font-weight: 600; line-height: 1.33; transition: color var(--yatbt-hover); }
.lm-service-side nav a::before { content: ""; flex: 0 0 4px; height: 4px; border-radius: 100%; align-self: flex-start; margin-top: 9px; background: currentColor; }
.lm-service-side nav a:is(:hover,:focus-visible,[aria-current]) { color: var(--legalmed-accent); }
.lm-service-contact { margin-top: 44px; min-height: 385px; padding: 28px 20px 73px; text-align: center; background: linear-gradient(rgb(255 255 255 / 45%),rgb(255 255 255 / 72%)),url("../images/about-placeholder.jpg") center / cover; border-radius: 30px; }
.lm-service-contact img { width: 120px; height: 36px; object-fit: contain; }
.lm-service-contact h2 { font-size: 48px; line-height: 1.16; letter-spacing: normal; margin: 57px 0 22px; }
.lm-service-contact > a:not(.custom-logo-link) { display: inline-flex; padding: 14px 28px; border-radius: 50px; background: white; color: #181818; font-size: 14px; font-weight: 600; text-transform: uppercase; align-items: center; justify-content: center; min-width: min(100%,194px); min-height: 52px; }
.lm-service-contact em { display: block; font-family: "Legalmed Playfair", Georgia, serif; font-weight: 500; }
@media (max-width: 1200px) {
  .lm-service-shell { width: min(994px, calc(100% - 60px)); }
  .lm-service h1,.lm-service-copy .lm-service-team-heading,.lm-service-side nav h2 { font-size: 40px; }
  .lm-service-layout { grid-template-columns: minmax(0,1fr); gap: 65px; }
  .lm-service-copy { padding-inline: 5px; }
  .lm-service-side { display: grid; grid-template-columns: repeat(2,minmax(0,300px)); align-items: start; }
  .lm-service-contact { margin: 0; }
  .lm-service-contact h2 { font-size: 40px; }
}
@media (max-width: 767px) {
  .lm-service-shell,.lm-service-cover { width: calc(100% - 40px); }
  .lm-service h1,.lm-service-copy .lm-service-team-heading,.lm-service-side nav h2 { font-size: 30px; }
  .lm-service-side { grid-template-columns: minmax(0,1fr); padding-inline: 5px; gap: 45px; }
}
@media (max-width: 700px) {
  .lm-service-benefits { grid-template-columns: minmax(0,340px); justify-content: center; gap: 28px; padding-inline: 20px; }
  .lm-service-team { grid-auto-flow: column; grid-auto-columns: 96%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .lm-service-team a { scroll-snap-align: start; }
}

/* Editorial spread used between the service cover and supporting resources. */
.lm-service-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px; margin: 0; padding: 0 0 33px; border-bottom: 1px solid #ddd; }
.lm-service-facts div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.lm-service-facts dt { color: var(--legalmed-accent); text-transform: uppercase; font-size: 14px; font-weight: 650; }
.lm-service-facts dd { margin: 0; font-size: 15px; }
.lm-service-facts a { color: inherit; }
.lm-service-story,.lm-service-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; margin-top: 50px; }
.lm-service-story > h2 { position: sticky; top: calc(var(--wp-admin--admin-bar--height,0px) + 135px); align-self: start; font-size: 30px; line-height: 1.4; font-weight: 500; letter-spacing: -.025em; margin: 0; max-width: 350px; }
.lm-story-copy { grid-column: span 2; min-width: 0; overflow-wrap: break-word; font-size: 16px; line-height: 30px; color: #444; }
.lm-story-copy p { margin: 0 0 18px; }
.lm-story-copy > :first-child { margin-top: 0; }
.lm-story-copy > :last-child { margin-bottom: 0; }
.lm-story-copy :is(h2,h3,h4) { font-size: clamp(22px,2vw,28px); margin: 1.3em 0 .5em; }
.lm-story-copy a { color: var(--legalmed-accent); }
.lm-service-gallery img { display: block; width: 100%; aspect-ratio: 1; height: auto; border-radius: 30px; object-fit: cover; background: #f4f4f4; }
.lm-service-gallery img[src$="blog-placeholder.svg"] { object-fit: contain; }
.lm-service-story + .lm-service-layout,.lm-service-gallery + .lm-service-layout { margin-top: 55px; }
@media (max-width: 767px) {
  .lm-service-story { grid-template-columns: 1fr; gap: 14px; }
  .lm-service-story > h2 { position: static; font-size: 25px; }
  .lm-story-copy { grid-column: auto; }
  .lm-service-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .lm-service-gallery { grid-template-columns: 1fr; gap: 16px; }
  .lm-service-gallery,.lm-service-story { margin-top: 30px; }
}
