/*
 * Detail-route editorial treatments.
 *
 * page.php renders the saved title, kicker, lede, image and Gutenberg groups as
 * direct article children. Nothing here replaces, reorders or conceals content.
 * This sheet is deliberately scoped to the body route classes supplied by
 * roaring_media_site_visual_route_classes().
 */

:is(.rm-family-service-detail, .rm-family-solution-detail, .rm-family-industry-detail, .rm-family-result-detail) {
  --detail-accent: #70ded4;
  --detail-rule: #bdd5d0;
  --detail-surface: #f7faf6;
}

/* A compact editorial taxonomy, instead of four identical landing pages. */
:is(.rm-family-service-detail, .rm-family-solution-detail, .rm-family-industry-detail, .rm-family-result-detail)
  .rm-page-content > article > .rm-kicker {
  width: fit-content;
  gap: .7rem;
  letter-spacing: .16em;
  text-wrap: pretty;
}
:is(.rm-family-service-detail, .rm-family-solution-detail, .rm-family-industry-detail, .rm-family-result-detail)
  .rm-page-content > article > .rm-kicker::before {
  width: 19px;
  height: 1px;
  background: currentColor;
}
:is(.rm-family-service-detail, .rm-family-solution-detail, .rm-family-industry-detail, .rm-family-result-detail)
  .rm-page-content > article > .rm-content-section > .wp-block-list {
  max-width: 68rem;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  padding: 0;
  list-style: none;
}
:is(.rm-family-service-detail, .rm-family-solution-detail, .rm-family-industry-detail, .rm-family-result-detail)
  .rm-page-content > article > .rm-content-section > .wp-block-list li {
  position: relative;
  margin: 0;
  padding: 1.15rem 1rem 1.15rem 2.25rem;
  border-top: 1px solid var(--detail-rule);
  font-weight: 600;
  line-height: 1.45;
}
:is(.rm-family-service-detail, .rm-family-solution-detail, .rm-family-industry-detail, .rm-family-result-detail)
  .rm-page-content > article > .rm-content-section > .wp-block-list li::before {
  content: '';
  position: absolute;
  top: 1.57rem;
  left: .2rem;
  width: .6rem;
  height: .6rem;
  border: 2px solid #237e78;
  border-radius: 50%;
}
:is(.rm-family-service-detail, .rm-family-solution-detail, .rm-family-industry-detail, .rm-family-result-detail)
  .rm-page-content > article > p:last-of-type:not(.rm-lede, .rm-kicker) {
  margin-top: clamp(4rem, 8vw, 8rem);
  padding: 1.5rem 0;
  border-top: 1px solid var(--detail-rule);
}
:is(.rm-family-service-detail, .rm-family-solution-detail, .rm-family-industry-detail, .rm-family-result-detail)
  .rm-page-content > article > p:last-of-type:not(.rm-lede, .rm-kicker) a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #176a68;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
}

/* SERVICES / a working field guide: horizontal rules, typographic outcomes,
   and lean numbered chapters echo the React service programs. */
.rm-family-service-detail {
  --detail-rule: #b9d2ce;
}
.rm-family-service-detail .rm-page-content > article:has(> .rm-hero-art)::before {
  background:
    linear-gradient(90deg, transparent 0 49.95%, rgba(121, 220, 210, .075) 50%, transparent 50.05%),
    repeating-linear-gradient(0deg, transparent 0 91px, rgba(121, 220, 210, .045) 92px 93px),
    radial-gradient(circle at 82% 27%, rgba(88, 208, 199, .13), transparent 35%),
    #122d3d;
}
.rm-family-service-detail .rm-page-content > article > .rm-content-section {
  display: grid;
  grid-template-columns: minmax(0, .33fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 7vw, 9rem);
  align-items: start;
}
.rm-family-service-detail .rm-page-content > article > .rm-content-section > :first-child {
  grid-column: 1;
}
.rm-family-service-detail .rm-page-content > article > .rm-content-section > :not(:first-child) {
  grid-column: 2;
}
.rm-family-service-detail .rm-page-content > article > .rm-content-section > h2 {
  font-size: clamp(1.65rem, 2.35vw, 2.7rem);
  line-height: 1.13;
  letter-spacing: -.04em;
}
.rm-family-service-detail .rm-page-content > article > .rm-content-section > p {
  max-width: 56rem;
  margin: .1rem 0 0;
  font-size: clamp(1.08rem, 1.45vw, 1.35rem);
}
.rm-family-service-detail .rm-page-content > article > .rm-content-section:first-of-type > p {
  font-family: var(--rm-font-display);
  font-size: clamp(1.6rem, 2.75vw, 3.05rem);
  font-weight: 550;
  line-height: 1.23;
  letter-spacing: -.045em;
  color: var(--rm-ink);
}
.rm-family-service-detail .rm-page-content > article > .rm-content-section > .wp-block-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1rem, 3vw, 4rem);
}
.rm-family-service-detail .rm-page-content > article > .rm-content-section > .wp-block-list li {
  padding-block: 1.4rem;
}
.rm-family-service-detail .rm-page-content > article > .rm-content-section > .wp-block-list li::before {
  top: 1.9rem;
}

/* Web: a digital drafting table. SEO: search-path grid. Paid: media flight
   board. These are treatments, not CSS-authored editorial copy. */
.rm-route-services-web-development .rm-page-content > article > .rm-hero-art {
  border-radius: .35rem !important;
  transform: rotate(-1deg) !important;
}
.rm-route-services-web-development .rm-page-content > article > .rm-hero-art img {
  border-radius: .1rem !important;
}
.rm-route-services-web-development .rm-page-content > article:has(> .rm-hero-art)::before {
  background:
    linear-gradient(rgba(112, 222, 212, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 222, 212, .08) 1px, transparent 1px),
    #102b3b;
  background-size: 76px 76px;
}
.rm-route-services-seo .rm-page-content > article:has(> .rm-hero-art)::before {
  background: radial-gradient(circle at 81% 48%, transparent 0 12%, rgba(112, 222, 212, .19) 12.1% 12.18%, transparent 12.3% 22%, rgba(112, 222, 212, .12) 22.1% 22.18%, transparent 22.3%), #102b3b;
}
.rm-route-services-seo .rm-page-content > article > .rm-hero-art {
  border-radius: 50% 50% .3rem .3rem;
  transform: rotate(0);
}
.rm-route-services-seo .rm-page-content > article > .rm-hero-art img {
  border-radius: 50% 50% .1rem .1rem;
}
.rm-route-services-paid-media .rm-page-content > article:has(> .rm-hero-art)::before {
  background: repeating-linear-gradient(115deg, rgba(112, 222, 212, .065) 0 1px, transparent 1px 68px), radial-gradient(circle at 85% 8%, rgba(122, 192, 67, .17), transparent 37%), #122d3d;
}
.rm-route-services-paid-media .rm-page-content > article > .rm-hero-art {
  border-radius: .2rem;
  transform: rotate(2deg);
  box-shadow: 24px 24px 0 rgba(122, 192, 67, .11);
}
.rm-route-services-paid-media .rm-page-content > article > .rm-hero-art img { border-radius: .1rem; }
.rm-route-services-ai-automation-agency .rm-page-content > article:has(> .rm-hero-art)::before,
.rm-route-services-mobile-cmo .rm-page-content > article:has(> .rm-hero-art)::before {
  background: linear-gradient(rgba(123, 224, 223, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(123, 224, 223, .09) 1px, transparent 1px), radial-gradient(circle at 86% 15%, rgba(112, 222, 212, .15), transparent 40%), #101f34;
  background-size: 68px 68px, 68px 68px, auto;
}
.rm-route-services-ai-automation-agency .rm-page-content > article > .rm-hero-art,
.rm-route-services-mobile-cmo .rm-page-content > article > .rm-hero-art {
  transform: none;
  border-radius: 1.5rem 1.5rem .25rem .25rem;
  box-shadow: 20px 22px 0 rgba(112, 222, 212, .09);
}
.rm-route-services-ai-automation-agency .rm-page-content > article > .rm-content-section > .wp-block-list li,
.rm-route-services-mobile-cmo .rm-page-content > article > .rm-content-section > .wp-block-list li {
  background: linear-gradient(90deg, rgba(112, 222, 212, .08), transparent);
}
.rm-route-services-dynamic-video-production .rm-page-content > article > .rm-hero-art {
  border-radius: 0;
  transform: rotate(2deg);
}
.rm-route-services-dynamic-video-production .rm-page-content > article > .rm-hero-art img { border-radius: 0; }
.rm-route-services-brand-strategy .rm-page-content > article > .rm-hero-art,
.rm-route-services-content-creative .rm-page-content > article > .rm-hero-art {
  transform: rotate(-2deg);
  border-radius: 3rem .3rem 3rem .3rem;
}

/* SOLUTIONS / a productized system. Cards here are saved sections, not
   invented features: the block's own heading and paragraphs remain intact. */
.rm-family-solution-detail {
  --detail-accent: #7ac043;
  --detail-rule: #b7d0bd;
}
.rm-family-solution-detail .rm-page-content > article:has(> .rm-hero-art)::before {
  background: radial-gradient(circle at 83% 25%, rgba(122, 192, 67, .19), transparent 39%), repeating-linear-gradient(90deg, rgba(185, 234, 225, .04) 0 1px, transparent 1px 104px), #102b3b;
}
.rm-family-solution-detail .rm-page-content > article > .rm-hero-art {
  transform: none;
  border-radius: 2rem;
  box-shadow: 14px 14px 0 rgba(122, 192, 67, .15);
}
.rm-family-solution-detail .rm-page-content > article > .rm-hero-art img { border-radius: 1.45rem; }
.rm-family-solution-detail .rm-page-content > article > .rm-content-section:first-of-type {
  display: grid;
  grid-template-columns: minmax(0, .34fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 5rem);
  align-items: start;
  padding-bottom: clamp(2rem, 5vw, 5rem);
}
.rm-family-solution-detail .rm-page-content > article > .rm-content-section:first-of-type > p {
  margin-top: 0;
  max-width: 53rem;
  font: 550 clamp(1.5rem, 2.5vw, 2.75rem)/1.28 var(--rm-font-display);
  letter-spacing: -.04em;
  color: var(--rm-ink);
}
.rm-family-solution-detail .rm-page-content > article > .rm-content-section:not(:first-of-type) {
  padding: clamp(1.7rem, 3.5vw, 3.5rem);
  border: 1px solid var(--detail-rule);
  border-left: 4px solid var(--detail-accent);
  background: var(--detail-surface);
}
.rm-family-solution-detail .rm-page-content > article > .rm-content-section:not(:first-of-type) > h2 {
  max-width: 30ch;
  font-size: clamp(2rem, 3.35vw, 3.7rem);
}
.rm-family-solution-detail .rm-page-content > article > .rm-content-section:not(:first-of-type) > p {
  max-width: 65rem;
}
.rm-family-solution-detail .rm-page-content > article > .rm-content-section > .wp-block-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
}
.rm-family-solution-detail .rm-page-content > article > .rm-content-section > .wp-block-list li::before {
  border-color: #416e29;
}
.rm-route-products-growth-engine .rm-page-content > article > .rm-hero-art,
.rm-route-products-crm-revenue-system .rm-page-content > article > .rm-hero-art {
  border-radius: .4rem;
}
.rm-route-products-growth-engine .rm-page-content > article > .rm-hero-art img,
.rm-route-products-crm-revenue-system .rm-page-content > article > .rm-hero-art img {
  border-radius: .1rem;
}
.rm-route-products-website-conversion-sprint .rm-page-content > article > .rm-hero-art {
  transform: rotate(-1.5deg);
}

/* INDUSTRIES / a market brief. Open, editorial copy followed by a channel
   mix and concrete audience context, with quieter surfaces than products. */
.rm-family-industry-detail {
  --detail-rule: #aacdc9;
  --detail-accent: #237e78;
}
.rm-family-industry-detail .rm-page-content > article:has(> .rm-hero-art)::before {
  background: linear-gradient(135deg, rgba(112, 222, 212, .1), transparent 48%), radial-gradient(circle at 95% 95%, rgba(122, 192, 67, .1), transparent 35%), #102b3b;
}
.rm-family-industry-detail .rm-page-content > article > .rm-hero-art {
  transform: none;
  border-radius: 50% 50% .25rem .25rem;
}
.rm-family-industry-detail .rm-page-content > article > .rm-hero-art img {
  border-radius: 50% 50% .1rem .1rem;
  object-position: center;
}
.rm-family-industry-detail .rm-page-content > article > .rm-content-section {
  display: grid;
  grid-template-columns: minmax(0, .35fr) minmax(0, 1fr);
  gap: 0 clamp(2rem, 6vw, 8rem);
}
.rm-family-industry-detail .rm-page-content > article > .rm-content-section > :first-child { grid-column: 1; }
.rm-family-industry-detail .rm-page-content > article > .rm-content-section > :not(:first-child) { grid-column: 2; }
.rm-family-industry-detail .rm-page-content > article > .rm-content-section > h2 {
  font-size: clamp(1.75rem, 2.6vw, 3rem);
  line-height: 1.12;
}
.rm-family-industry-detail .rm-page-content > article > .rm-content-section:first-of-type > p {
  margin-top: 0;
  font: 550 clamp(1.45rem, 2.45vw, 2.75rem)/1.3 var(--rm-font-display);
  color: var(--rm-ink);
  letter-spacing: -.04em;
}
.rm-family-industry-detail .rm-page-content > article > .rm-content-section > .wp-block-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1rem, 3vw, 3rem);
}
.rm-family-industry-detail .rm-page-content > article > .rm-content-section > .wp-block-list li::before {
  border-color: #237e78;
}
.rm-route-industries-home-services .rm-page-content > article > .rm-hero-art img,
.rm-route-industries-ecommerce .rm-page-content > article > .rm-hero-art img { object-position: center 60%; }

/* RESULTS / a case file. The saved context stays prose; factual engagement
   details and source links read as a dossier rather than a sales card. */
.rm-family-result-detail {
  --detail-rule: #b2c9c3;
}
.rm-family-result-detail .rm-page-content > article:has(> .rm-hero-art)::before {
  background: linear-gradient(0deg, rgba(122, 192, 67, .08), transparent 55%), repeating-linear-gradient(90deg, rgba(112, 222, 212, .055) 0 1px, transparent 1px 120px), #102b3b;
}
.rm-family-result-detail .rm-page-content > article > .rm-hero-art {
  transform: none;
  border-radius: .15rem;
  box-shadow: 19px 19px 0 rgba(185, 234, 225, .11);
}
.rm-family-result-detail .rm-page-content > article > .rm-hero-art img { border-radius: 0; }
.rm-family-result-detail .rm-page-content > article > .rm-content-section:first-of-type {
  display: grid;
  grid-template-columns: minmax(0, .28fr) minmax(0, 1fr);
  gap: 0 clamp(2rem, 7vw, 9rem);
}
.rm-family-result-detail .rm-page-content > article > .rm-content-section:first-of-type > h2 {
  grid-column: 1;
  font-size: clamp(1.75rem, 2.8vw, 3rem);
}
.rm-family-result-detail .rm-page-content > article > .rm-content-section:first-of-type > p {
  grid-column: 2;
  max-width: 60rem;
  margin: 0 0 1.4rem;
  font-size: clamp(1.12rem, 1.6vw, 1.45rem);
  line-height: 1.75;
}
.rm-family-result-detail .rm-page-content > article > .rm-content-section:nth-of-type(2) {
  padding: clamp(2rem, 4vw, 4.5rem);
  border: 1px solid var(--detail-rule);
  background: #e2efea;
}
.rm-family-result-detail .rm-page-content > article > .rm-content-section:nth-of-type(2) > h2 {
  max-width: none;
  font-size: clamp(2rem, 3.4vw, 3.75rem);
}
.rm-family-result-detail .rm-page-content > article > .rm-content-section:nth-of-type(2) > p {
  padding: .85rem 0;
  margin: 0;
  border-top: 1px solid var(--detail-rule);
  color: #2b4d54;
  font-family: var(--rm-font-mono);
  font-size: .88rem;
}
.rm-family-result-detail .rm-page-content > article > .rm-content-section:nth-of-type(2) > .wp-block-list {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.rm-family-result-detail .rm-page-content > article > .rm-content-section:nth-of-type(2) > .wp-block-list li {
  padding: .55rem .95rem;
  border: 1px solid #9bc4ba;
  border-radius: 99px;
  background: #f7faf6;
  font-size: .8rem;
}
.rm-family-result-detail .rm-page-content > article > .rm-content-section:nth-of-type(2) > .wp-block-list li::before { content: none; }
.rm-family-result-detail .rm-page-content > article > p:not(.rm-kicker, .rm-lede) a[href] {
  color: #176a68;
  text-underline-offset: .3em;
}

@media (max-width: 850px) {
  :is(.rm-family-service-detail, .rm-family-industry-detail) .rm-page-content > article > .rm-content-section,
  .rm-family-solution-detail .rm-page-content > article > .rm-content-section:first-of-type,
  .rm-family-result-detail .rm-page-content > article > .rm-content-section:first-of-type {
    display: block;
  }
  :is(.rm-family-service-detail, .rm-family-industry-detail) .rm-page-content > article > .rm-content-section > h2,
  .rm-family-result-detail .rm-page-content > article > .rm-content-section:first-of-type > h2 {
    margin-bottom: 1.5rem;
  }
}
@media (max-width: 600px) {
  :is(.rm-family-service-detail, .rm-family-solution-detail, .rm-family-industry-detail, .rm-family-result-detail)
    .rm-page-content > article > .rm-content-section > .wp-block-list {
    grid-template-columns: 1fr;
  }
  .rm-family-service-detail .rm-page-content > article > .rm-content-section:first-of-type > p,
  .rm-family-solution-detail .rm-page-content > article > .rm-content-section:first-of-type > p,
  .rm-family-industry-detail .rm-page-content > article > .rm-content-section:first-of-type > p {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }
  .rm-family-solution-detail .rm-page-content > article > .rm-content-section:not(:first-of-type),
  .rm-family-result-detail .rm-page-content > article > .rm-content-section:nth-of-type(2) {
    padding: 1.35rem;
  }
  .rm-route-services-web-development .rm-page-content > article > .rm-hero-art,
  .rm-route-services-paid-media .rm-page-content > article > .rm-hero-art,
  .rm-route-services-dynamic-video-production .rm-page-content > article > .rm-hero-art,
  .rm-route-services-brand-strategy .rm-page-content > article > .rm-hero-art,
  .rm-route-services-content-creative .rm-page-content > article > .rm-hero-art,
  .rm-route-products-website-conversion-sprint .rm-page-content > article > .rm-hero-art {
    transform: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.rm-family-service-detail, .rm-family-solution-detail, .rm-family-industry-detail, .rm-family-result-detail)
    .rm-page-content > article > .rm-hero-art {
    transform: none !important;
  }
}