/* Approved desktop mint/editorial layout; responsive refinements below. */
@media (min-width: 1024px) and (max-width: 1439.98px) and (hover: hover) and (pointer: fine),
       (min-width: 1440px) {
  .ls-services-directory-grid .ls-services-editorial-card,
  .ls-home-category-grid .ls-services-editorial-card {
    position: relative;
    isolation: isolate;
    display: flex;
    min-width: 0;
    min-height: 188px;
    overflow: hidden;
    flex-direction: column;
    padding: 17px 19px 16px;
    border: 1px solid #cce8d4;
    border-radius: 20px;
    background: linear-gradient(135deg,#f0fbf4 0%,#dcf4e5 100%);
    color: #17392a;
    text-align: left;
    text-decoration: none;
  }
  .ls-services-editorial-card::before {
    position: absolute;
    z-index: -1;
    top: -38px;
    right: -40px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: rgba(137,215,166,.19);
    content: '';
    pointer-events: none;
  }
  .ls-services-editorial-card__head,
  .ls-services-editorial-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .ls-services-editorial-card__eyebrow {
    min-width: 0;
    color: #357950;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.35;
  }
  .ls-services-editorial-card__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(68,145,92,.12);
    border-radius: 13px;
    background: rgba(255,255,255,.83);
    color: #247b4b;
  }
  .ls-services-editorial-card__title {
    display: -webkit-box;
    min-height: 0;
    max-width: 100%;
    margin: 13px 0 10px;
    overflow: hidden;
    flex: 1 1 auto;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #183e2d;
    font-size: clamp(16px,1.3vw,21px);
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .ls-services-editorial-card__foot {
    min-height: 28px;
    flex: 0 0 auto;
    padding-top: 8px;
    border-top: 1px solid rgba(67,151,92,.29);
    color: #366f4a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
  }
  .ls-services-editorial-card--live {
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .ls-services-editorial-card--live:hover {
    transform: translateY(-3px);
    border-color: #8ed5a6;
    box-shadow: 0 12px 26px rgba(17,89,51,.12);
  }
  .ls-services-editorial-card--live:focus-visible {
    outline: 3px solid #16834f;
    outline-offset: 3px;
  }
  .ls-services-editorial-card--soon {
    cursor: default;
  }

  /* The provider CTA and emergency banner use the same desktop content width
     and height while retaining their original mobile/tablet composition. */
  .ls-services-provider-cta .ls-services-provider-banner {
    display: flex;
    width: 100%;
    max-width: 80rem !important;
    height: clamp(16rem,20vw,18rem);
    min-height: 0;
    aspect-ratio: auto !important;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-services-editorial-card--live { transition: none; }
}

/* Override the approved homepage's old 4:3/Ta sizing only for the new
   editorial cards. The Services cards provide the target dimensions. */
@media (min-width: 1024px) and (max-width: 1439.98px) and (hover: hover) and (pointer: fine),
       (min-width: 1440px) {
  #root:has(.ls-customer-home) .ls-home-category-grid > .ls-services-editorial-card {
    aspect-ratio: auto !important;
    min-height: 188px !important;
    height: 188px !important;
    padding: 17px 19px 16px !important;
  }
  #root:has(.ls-customer-home) .ls-home-category-grid > .ls-services-editorial-card > .ls-services-editorial-card__head {
    width: 100%;
    height: auto;
  }
}

/* Home reviews are a desktop feature; tablet/phone layouts keep the approved flow. */
.ls-customer-reviews { display: block; background: #f7faf8; }
@media (min-width: 1024px) and (max-width: 1439.98px) and (hover: hover) and (pointer: fine),
       (min-width: 1440px) {
  .ls-customer-reviews { display: block; background: #f7faf8; }
  .ls-customer-reviews__inner {
    padding: 30px 38px 36px;
    border: 1px solid #d8e9df;
    border-radius: 28px;
    background: linear-gradient(135deg,#effaf2 0%,#fafffb 70%,#e9f6ed 100%);
    box-shadow: 0 12px 35px rgba(21,91,49,.06);
  }
  .ls-customer-reviews__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
  .ls-customer-reviews__eyebrow { color: #14804a; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
  .ls-customer-reviews__title { margin: 7px 0 0; color: #173d2b; font-size: clamp(25px,2vw,32px); font-weight: 800; line-height: 1.25; }
  .ls-customer-reviews__description { margin: 7px 0 0; color: #597567; font-size: 14px; }
  .ls-customer-reviews__controls { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; color: #517361; font-size: 13px; font-weight: 700; }
  .ls-customer-reviews__controls button {
    display: inline-grid; width: 42px; height: 42px; place-items: center;
    border: 1px solid #c6e4d0; border-radius: 50%; background: #fff;
    color: #197947; font-size: 23px; line-height: 1; transition: background .2s,transform .2s;
  }
  .ls-customer-reviews__controls button:hover { transform: translateY(-2px); background: #e8f7ed; }
  .ls-customer-reviews__controls button:focus-visible, .ls-customer-reviews__provider:focus-visible { outline: 3px solid #16834f; outline-offset: 3px; }
  .ls-customer-reviews__card {
    min-height: 245px; padding: 27px 32px 24px; border: 1px solid #dbece0;
    border-radius: 22px; background: #fff; box-shadow: 0 9px 27px rgba(16,68,40,.06);
    animation: lsReviewSlideIn .42s ease both;
  }
  .ls-customer-reviews__stars { color: #15803d; font-size: 21px; letter-spacing: 4px; line-height: 1; }
  .ls-customer-reviews__quote { display: -webkit-box; max-width: 880px; min-height: 76px; margin: 20px 0 18px;
    overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
    color: #203c2d; font-size: clamp(17px,1.35vw,21px); font-weight: 600; line-height: 1.52; overflow-wrap: anywhere; }
  .ls-customer-reviews__quote::before { content: '“'; color: #37955c; }
  .ls-customer-reviews__quote::after { content: '”'; color: #37955c; }
  .ls-customer-reviews__byline { display: flex; align-items: end; justify-content: space-between; gap: 20px;
    border-top: 1px solid #e3eee6; padding-top: 16px; }
  .ls-customer-reviews__byline strong, .ls-customer-reviews__byline span { display: block; }
  .ls-customer-reviews__byline strong { color: #174a31; font-size: 13px; }
  .ls-customer-reviews__byline span { margin-top: 4px; color: #6c8274; font-size: 12px; }
  .ls-customer-reviews__provider { color: #14804a; font-size: 13px; font-weight: 800; text-align: right; text-decoration: none; }
  .ls-customer-reviews__provider:hover { text-decoration: underline; }
  .ls-customer-reviews__empty { display: grid; min-height: 155px; place-items: center; padding: 25px;
    border: 1px dashed #c4decb; border-radius: 20px; background: #fff;
    color: #5b7866; font-size: 15px; text-align: center; }
}
@keyframes lsReviewSlideIn { from { opacity: .5; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
@media (min-width: 1024px) and (max-width: 1199.98px) and (hover: hover) and (pointer: fine) {
  .ls-customer-reviews__inner { padding: 28px 25px 30px; }
}
@media (prefers-reduced-motion: reduce) { .ls-customer-reviews__controls button { transition: none; } .ls-customer-reviews__card { animation: none; } }

/* Four reviews form a readable two-by-two grid on phone and touch tablet. */
@media (max-width: 1023.98px),
       (min-width: 1024px) and (max-width: 1439.98px) and (hover: none) and (pointer: coarse) {
  .ls-customer-reviews__inner { padding: 18px 13px 22px; border: 1px solid #d8e9df;
    border-radius: 20px; background: linear-gradient(135deg,#effaf2,#fafffb); }
  .ls-customer-reviews__heading { display: flex; align-items: start;
    justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
  .ls-customer-reviews__eyebrow { color: #14804a; font-size: 10px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase; }
  .ls-customer-reviews__title { margin: 5px 0; color: #173d2b; font-size: 21px;
    font-weight: 800; line-height: 1.2; }
  .ls-customer-reviews__description { color: #597567; font-size: 12px; }
  .ls-customer-reviews__controls { display: flex; align-items: center;
    gap: 11px; color: #517361; font-size: 12px; font-weight: 700; }
  .ls-customer-reviews__controls button { display: grid; width: 36px; height: 36px;
    place-items: center; border: 1px solid #c6e4d0; border-radius: 50%;
    background: #fff; color: #197947; font-size: 20px; }
  .ls-customer-reviews__controls button:focus-visible,
  .ls-customer-reviews__provider:focus-visible { outline: 3px solid #16834f; outline-offset: 2px; }
  .ls-customer-reviews__grid { display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px;
    animation: lsReviewSlideIn .42s ease both; }
  .ls-customer-reviews__card { display: flex; min-width: 0; min-height: 230px;
    flex-direction: column; padding: 12px; border: 1px solid #dbece0;
    border-radius: 15px; background: #fff; }
  .ls-customer-reviews__stars { color: #15803d; font-size: 13px; letter-spacing: 1px; }
  .ls-customer-reviews__quote { display: -webkit-box; min-height: 0; margin: 12px 0 auto;
    padding-bottom: 12px; overflow: hidden; -webkit-box-orient: vertical;
    -webkit-line-clamp: 5; color: #203c2d; font-size: 12px; font-weight: 600;
    line-height: 1.4; overflow-wrap: anywhere; }
  .ls-customer-reviews__byline { display: flex; flex-direction: column;
    gap: 5px; padding-top: 9px; border-top: 1px solid #e3eee6; }
  .ls-customer-reviews__byline strong, .ls-customer-reviews__byline span { display: block; }
  .ls-customer-reviews__byline strong { color: #174a31; font-size: 11px; }
  .ls-customer-reviews__byline span { color: #6c8274; font-size: 10px; }
  .ls-customer-reviews__provider { color: #14804a; font-size: 11px;
    font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
  .ls-customer-reviews__empty { padding: 18px; border: 1px dashed #c4decb;
    border-radius: 16px; background: #fff; color: #5b7866;
    font-size: 13px; text-align: center; }
}
@media (max-width: 359.98px) {
  .ls-customer-reviews__card { padding: 9px; }
  .ls-customer-reviews__stars { font-size: 11px; }
}
/* Phone and touch-tablet: the same editorial cards in two columns. */
@media (max-width: 1023.98px),
       (min-width: 1024px) and (max-width: 1439.98px) and (hover: none) and (pointer: coarse) {
  #root:has(.ls-public-header) .ls-services-directory-grid,
  #root:has(.ls-customer-home) .ls-home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #root .ls-services-directory-grid > .ls-services-editorial-card,
  #root .ls-home-category-grid > .ls-services-editorial-card {
    position: relative; isolation: isolate; display: flex !important;
    min-width: 0; min-height: 160px !important; height: auto !important;
    aspect-ratio: auto !important; flex-direction: column; overflow: hidden;
    padding: 12px !important; border: 1px solid #cce8d4;
    border-radius: 17px; background: linear-gradient(135deg,#f0fbf4 0%,#dcf4e5 100%);
    color: #17392a; text-align: left; text-decoration: none;
  }
  .ls-services-editorial-card::before { position: absolute; z-index: -1; top: -29px; right: -31px;
    width: 94px; height: 94px; border-radius: 50%; background: rgba(137,215,166,.19);
    content: ''; pointer-events: none; }
  .ls-services-editorial-card__head, .ls-services-editorial-card__foot {
    display: flex; width: 100%; height: auto; align-items: center;
    justify-content: space-between; gap: 4px;
  }
  .ls-services-editorial-card__eyebrow { min-width: 0; color: #357950; font-size: 8px;
    font-weight: 800; letter-spacing: .06em; line-height: 1.25; }
  .ls-services-editorial-card__icon { display: inline-flex; width: 34px; height: 34px;
    flex: 0 0 34px; align-items: center; justify-content: center;
    border: 1px solid rgba(68,145,92,.12); border-radius: 11px;
    background: rgba(255,255,255,.83); color: #247b4b; }
  .ls-services-editorial-card__icon svg { width: 20px; height: 20px; }
  .ls-services-editorial-card__title { display: -webkit-box; min-height: 0;
    max-width: 100%; margin: 12px 0 9px; overflow: hidden; flex: 1 1 auto;
    -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #183e2d;
    font-size: 15px; font-weight: 800; line-height: 1.23; overflow-wrap: anywhere; }
  .ls-services-editorial-card__foot { min-height: 26px; flex: 0 0 auto;
    padding-top: 7px; border-top: 1px solid rgba(67,151,92,.29);
    color: #366f4a; font-size: 11px; font-weight: 700; line-height: 1.3; }
  .ls-services-editorial-card__foot svg { width: 15px; height: 15px; flex-shrink: 0; }
  .ls-services-editorial-card--soon { cursor: default; }
  .ls-services-editorial-card--live:focus-visible { outline: 3px solid #16834f; outline-offset: 3px; }
}
@media (max-width: 359.98px) {
  #root .ls-services-directory-grid > .ls-services-editorial-card,
  #root .ls-home-category-grid > .ls-services-editorial-card {
    min-height: 148px !important; padding: 9px !important;
  }
  .ls-services-editorial-card__eyebrow { font-size: 7px; }
  .ls-services-editorial-card__title { font-size: 13px; }
}
@media (min-width: 768px) and (max-width: 1023.98px),
       (min-width: 1024px) and (max-width: 1439.98px) and (hover: none) and (pointer: coarse) {
  #root .ls-services-directory-grid > .ls-services-editorial-card,
  #root .ls-home-category-grid > .ls-services-editorial-card {
    min-height: 185px !important; padding: 17px !important;
  }
  .ls-services-editorial-card__title { font-size: 19px; }
  .ls-services-editorial-card__eyebrow { font-size: 10px; }
}
/* Four distinct real reviews per desktop page; the last page wraps to fill. */
@media (min-width: 1024px) and (max-width: 1439.98px) and (hover: hover) and (pointer: fine),
       (min-width: 1440px) {
  .ls-customer-reviews__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px;
    animation: lsReviewSlideIn .42s ease both; }
  .ls-customer-reviews__card { display: flex; min-width: 0; min-height: 254px;
    flex-direction: column; padding: 19px 17px; animation: none; }
  .ls-customer-reviews__stars { font-size: 16px; letter-spacing: 2px; }
  .ls-customer-reviews__quote { min-height: 0; max-width: 100%; margin: 17px 0 auto;
    padding-bottom: 17px; -webkit-line-clamp: 5; font-size: 15px; line-height: 1.45; }
  .ls-customer-reviews__byline { align-items: start; flex-direction: column;
    gap: 7px; padding-top: 11px; }
  .ls-customer-reviews__provider { max-width: 100%; text-align: left; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .ls-customer-reviews__grid { animation: none; } }

/* Homepage legacy styling constrains its first span to an icon-size square.
   The editorial card uses that span as the full-width header. Explicitly
   restore the same header geometry used by the Services directory. */
@media (min-width: 1024px) and (max-width: 1439.98px) and (hover: hover) and (pointer: fine),
       (min-width: 1440px) {
  #root:has(.ls-customer-home) .ls-home-category-grid > [data-service-category].ls-services-editorial-card > span.ls-services-editorial-card__head {
    display: flex !important; width: 100% !important; height: 40px !important;
    min-height: 40px !important; max-width: none !important;
    flex: 0 0 auto !important; align-items: center !important;
    justify-content: space-between !important; gap: 8px !important;
  }
}
@media (max-width: 1023.98px),
       (min-width: 1024px) and (max-width: 1439.98px) and (hover: none) and (pointer: coarse) {
  #root:has(.ls-customer-home) .ls-home-category-grid > [data-service-category].ls-services-editorial-card > span.ls-services-editorial-card__head {
    display: flex !important; width: 100% !important; height: 34px !important;
    min-height: 34px !important; max-width: none !important;
    flex: 0 0 auto !important; align-items: center !important;
    justify-content: space-between !important; gap: 4px !important;
  }
}
#root:has(.ls-customer-home) .ls-home-category-grid > [data-service-category].ls-services-editorial-card > .ls-services-editorial-card__head > .ls-services-editorial-card__eyebrow {
  flex: 0 1 auto; width: auto !important; min-width: 0; height: auto !important;
}
#root:has(.ls-customer-home) .ls-home-category-grid > [data-service-category].ls-services-editorial-card > .ls-services-editorial-card__head > .ls-services-editorial-card__icon {
  margin-left: auto !important; flex-shrink: 0; align-self: center;
}

/* Review pages slide horizontally while the departing group becomes smaller
   and the arriving group grows into place. No navigation buttons or counters. */
.ls-customer-reviews__viewport {
  position: relative; overflow: hidden; border-radius: 20px;
  cursor: grab; touch-action: pan-y; user-select: none;
}
.ls-customer-reviews__viewport:active { cursor: grabbing; }
.ls-customer-reviews__viewport:focus-visible { outline: 3px solid #16834f; outline-offset: 3px; }
.ls-customer-reviews__page {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: stretch; gap: 13px; min-width: 0;
  transform: translate3d(var(--ls-drag-x,0px),0,0);
  will-change: transform,opacity;
}
.ls-customer-reviews__page--enter-right,
.ls-customer-reviews__page--enter-left {
  position: absolute; inset: 0;
}
.ls-customer-reviews__page--exit-left { animation: lsReviewExitLeft .48s cubic-bezier(.38,0,.7,.28) both; }
.ls-customer-reviews__page--enter-right { animation: lsReviewEnterRight .48s cubic-bezier(.22,.78,.26,1) both; }
.ls-customer-reviews__page--exit-right { animation: lsReviewExitRight .48s cubic-bezier(.38,0,.7,.28) both; }
.ls-customer-reviews__page--enter-left { animation: lsReviewEnterLeft .48s cubic-bezier(.22,.78,.26,1) both; }
@keyframes lsReviewExitLeft { to { transform: translate3d(-56%,0,0) scale(.77); opacity: 0; } }
@keyframes lsReviewEnterRight { from { transform: translate3d(56%,0,0) scale(.77); opacity: 0; } to { transform: translate3d(0,0,0) scale(1); opacity: 1; } }
@keyframes lsReviewExitRight { to { transform: translate3d(56%,0,0) scale(.77); opacity: 0; } }
@keyframes lsReviewEnterLeft { from { transform: translate3d(-56%,0,0) scale(.77); opacity: 0; } to { transform: translate3d(0,0,0) scale(1); opacity: 1; } }
.ls-customer-reviews__paused {
  position: absolute; z-index: 2; right: 12px; top: 12px;
  border: 1px solid #c3e4ce; border-radius: 999px;
  padding: 5px 10px; background: #f1fcf5; color: #1c7044;
  font-size: 11px; font-weight: 800; box-shadow: 0 3px 12px rgba(19,85,45,.1);
  pointer-events: none;
}
@media (max-width: 1023.98px),
       (min-width: 1024px) and (max-width: 1439.98px) and (hover: none) and (pointer: coarse) {
  .ls-customer-reviews__page { grid-template-columns: minmax(0,1fr); gap: 0; }
  .ls-customer-reviews__page > .ls-customer-reviews__card {
    min-height: 230px; padding: 19px; border-radius: 18px;
  }
  .ls-customer-reviews__stars { font-size: 19px; letter-spacing: 2px; }
  .ls-customer-reviews__quote { font-size: 16px; line-height: 1.5;
    -webkit-line-clamp: 5; margin: 16px 0 auto; padding-bottom: 16px; }
  .ls-customer-reviews__byline strong { font-size: 13px; }
  .ls-customer-reviews__byline span, .ls-customer-reviews__provider { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ls-customer-reviews__page--exit-left,.ls-customer-reviews__page--exit-right,
  .ls-customer-reviews__page--enter-left,.ls-customer-reviews__page--enter-right {
    animation: none;
  }
}
