/* Ads and course suggestions do not participate in the service-card count. */
.service-discovery-ad{display:flex;justify-content:center}
.service-discovery-ad-frame{display:block;width:min(340px,100%);height:88px;border:1px solid #e0e7e2;border-radius:16px;background:#fff}
.service-discovery-ad{box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin-inline:auto;align-items:center;justify-content:center;padding-inline:12px}
.service-discovery-ad-frame{box-sizing:border-box;flex:0 1 340px;width:min(340px,100%);max-width:100%;margin-inline:auto}
@media(min-width:768px){.service-discovery-ad-frame{height:288px}}
.service-course-recommendation{display:flex;align-items:center;gap:20px;padding:24px;border:1px solid #cbdccf;border-radius:20px;background:linear-gradient(120deg,#eef5ef,#f9fcf4)}
.service-course-icon{display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;border-radius:15px;background:#dcebdc;color:#245a36;font-size:1.6rem}
.service-course-copy{flex:1;min-width:0;overflow-wrap:anywhere}
.service-course-eyebrow{font-size:.7rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#467150}
.service-course-copy h2{font-size:1.25rem;line-height:1.3;margin:6px 0 8px;font-weight:800}
.service-course-copy h2 a{color:#183d27;text-decoration:none}
.service-course-copy h2 a:hover{text-decoration:underline}
.service-course-copy p{font-size:.82rem;color:#597160;margin:0;line-height:1.5}
.service-course-link{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;min-height:46px;padding:10px 16px;border:1px solid #aec9b5;border-radius:10px;color:#185c35;font-size:.88rem;font-weight:700;text-decoration:none;background:#fff}
.service-course-link:hover{background:#e4f0e6;color:#103c22}
.service-course-recommendation a:focus-visible{outline:3px solid #157347;outline-offset:4px}
.service-card-placeholder{display:none}
@media(max-width:575px){.service-course-recommendation{flex-wrap:wrap;gap:12px;padding:18px;border-radius:16px}.service-course-icon{width:42px;height:42px;flex-basis:42px;font-size:1.2rem}.service-course-copy h2{font-size:1.05rem}.service-course-link{width:100%}}

/* Desktop discovery: compare two services at a time without stretched actions. */
@media (min-width:992px) {
 :is(.services-shell,.home-services).container {max-width:1320px}
 :is(.services-shell,.home-services) .service-category-strip {flex-wrap:nowrap;overflow-x:auto;gap:8px;padding-bottom:.4rem}
 :is(.services-shell,.home-services) .service-category-strip a {flex:0 0 auto;font-size:.85rem;padding:.4rem .75rem;white-space:nowrap}
 :is(.services-shell,.home-services) > .row > .service-grid-item {width:50%;display:flex}
 /* Ads occupy the next grid slot in DOM order, including appended feed pages. */
 :is(.services-shell,.home-services) [data-infinite-services] > .service-discovery-ad {width:50%;align-items:center}
 :is(.services-shell,.home-services) .service-card-horizontal {width:100%;grid-template-rows:1fr auto;gap:12px 18px;padding:20px;align-content:start}
 :is(.services-shell,.home-services) .service-card-horizontal.service-card-with-image {grid-template-columns:128px minmax(0,1fr)}
 :is(.services-shell,.home-services) .service-card-media {grid-row:1 / 3;min-height:190px}
 :is(.services-shell,.home-services) .service-card-summary {justify-content:flex-start}
 :is(.services-shell,.home-services) .service-card-horizontal .service-card-title {font-size:1.2rem;line-height:1.3}
 :is(.services-shell,.home-services) .service-card-bottomline {display:block;margin-top:auto}
 :is(.services-shell,.home-services) .service-card-price {display:block;font-size:1rem}
 :is(.services-shell,.home-services) .service-card-details-link {font-size:.8rem}
 :is(.services-shell,.home-services) .service-card-horizontal .service-card-contact {grid-column:1;justify-self:start;width:auto;min-height:44px;padding:10px 18px;font-size:.9rem}
 :is(.services-shell,.home-services) .service-card-with-image .service-card-contact {grid-column:2}
}

/* Phone discovery follows a dense marketplace grid: two complete cards remain
   visible side by side, while every existing service detail stays available. */
@media (max-width:575px) {
 :is(.services-shell,.home-services) [data-infinite-services] {--bs-gutter-x:10px;--bs-gutter-y:10px}
 :is(.services-shell,.home-services) [data-infinite-services] > .service-grid-item {width:50%;display:flex}
 :is(.services-shell,.home-services) [data-infinite-services] > .service-discovery-insert {width:100%}
 :is(.services-shell,.home-services) .service-card-horizontal,
 :is(.services-shell,.home-services) .service-card-horizontal.service-card-with-image {width:100%;display:flex;flex-direction:column;gap:0;padding:0;border-radius:13px;overflow:hidden}
 :is(.services-shell,.home-services) .service-card-media {width:100%;min-height:0;aspect-ratio:4/3;border-radius:0;background:#eaf0ec}
 :is(.services-shell,.home-services) .service-card-placeholder {isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:14px;color:#eafff1;text-align:center;text-decoration:none;background:linear-gradient(145deg,#102f20,#1d8050)}
 :is(.services-shell,.home-services) .service-card-placeholder:before {content:'';position:absolute;z-index:-1;width:125px;height:125px;right:-52px;bottom:-62px;border:24px solid rgba(255,255,255,.09);border-radius:50%}
 :is(.services-shell,.home-services) .service-card-placeholder i {display:grid;place-items:center;width:43px;height:43px;border:1px solid rgba(255,255,255,.3);border-radius:50%;background:rgba(255,255,255,.12);font-size:1.15rem}
 :is(.services-shell,.home-services) .service-card-placeholder span {max-width:100%;font-size:.7rem;font-weight:800;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;overflow-wrap:anywhere}
 :is(.services-shell,.home-services) .service-card-summary {flex:1;justify-content:flex-start;padding:9px 9px 7px;overflow:visible}
 :is(.services-shell,.home-services) .service-card-badges {min-height:25px;align-items:flex-start;gap:3px;margin:0 0 5px}
 :is(.services-shell,.home-services) .service-card-badges .availability-dot {font-size:.62rem;line-height:1.25;white-space:nowrap}
 :is(.services-shell,.home-services) .service-card-badges .availability-dot:before {width:6px;height:6px;margin-right:3px}
 :is(.services-shell,.home-services) .service-card-socials {order:2;max-width:none;margin-left:auto;gap:1px}
 :is(.services-shell,.home-services) .service-card-socials a {width:24px;height:24px;font-size:.72rem}
 :is(.services-shell,.home-services) .service-card-share {order:3;width:25px;height:25px;flex-basis:25px}
 :is(.services-shell,.home-services) .service-card-share svg {width:14px;height:14px}
 :is(.services-shell,.home-services) .service-card-horizontal .service-card-title {font-size:.88rem;line-height:1.2;margin:0 0 6px}
 :is(.services-shell,.home-services) .service-card-categories {gap:3px;margin:0 0 6px;padding:4px 6px;border-radius:6px;font-size:.61rem;line-height:1.25}
 :is(.services-shell,.home-services) .service-card-categories i {font-size:.62rem}
 :is(.services-shell,.home-services) .service-card-location {display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 4px;font-size:.66rem;line-height:1.25;margin:0 0 7px}
 :is(.services-shell,.home-services) .service-card-distance {grid-column:2;border:0;padding:0;margin:0}
 :is(.services-shell,.home-services) .service-card-bottomline {display:block;margin-top:auto}
 :is(.services-shell,.home-services) .service-card-price {display:block;font-size:.82rem;line-height:1.25}
 :is(.services-shell,.home-services) .service-card-bottomline small {font-size:.62rem;line-height:1.25}
 :is(.services-shell,.home-services) .service-card-details-link {min-height:30px;gap:4px;font-size:.67rem;line-height:1.2}
 :is(.services-shell,.home-services) .service-card-horizontal .service-card-contact {width:calc(100% - 18px);min-height:36px;margin:0 9px 9px;padding:7px 5px;gap:5px;border-radius:8px;font-size:.72rem;line-height:1.1}
 :is(.services-shell,.home-services) .service-card-horizontal .service-card-contact i {font-size:.7rem}
}

@media (max-width:575px) {
 :is(.services-shell,.home-services) .service-card-horizontal {overflow:visible}
 :is(.services-shell,.home-services) .service-card-media {border-radius:12px 12px 0 0}
 :is(.services-shell,.home-services) .service-card-actions {order:2}
 :is(.services-shell,.home-services) .service-card-actions-toggle {width:25px;height:25px;font-size:1rem}
 :is(.services-shell,.home-services) .service-card-actions-menu {width:calc(50vw - 22px);max-width:190px;top:calc(100% + 4px);padding:8px}
 :is(.services-shell,.home-services) .service-card-actions-menu .service-card-share,
 :is(.services-shell,.home-services) .service-card-actions-menu .service-card-socials a {width:100%;height:auto;min-height:42px;padding:8px 10px;font-size:.75rem}
 :is(.services-shell,.home-services) .service-card-actions-menu .service-card-share {width:100%;max-width:100%;height:auto;min-height:42px;justify-content:flex-end;gap:7px;padding:8px 10px;border-radius:8px;font-size:.75rem}
 :is(.services-shell,.home-services) .service-card-actions-menu .service-card-socials {display:grid;max-width:none;margin:2px 0 0;gap:0}
}
