/* ===================================================
   KAMICKA — "Read More" SEO content accordion
   ---------------------------------------------------
   Reusable across product / manufacturing pages.
   Markup contract (see body-lotion.php for an example):

     <section id="read-more-section"> ...
        <div class="rm-card" data-open="false">
          <div class="rm-body">
            <div class="rm-prose"> ...content... </div>
            <div class="rm-fade"></div>
          </div>
          <button class="rm-toggle"> ... </button>
        </div>
     </section>

   The collapsed preview height is controlled by
   .rm-body { max-height } below.
   =================================================== */

/* Collapsible region: animate max-height for open/close */
#read-more-section .rm-body {
  position: relative;
  overflow: hidden;
  max-height: 232px;
  /* collapsed preview height (mobile) */
  transition: max-height .6s cubic-bezier(.22, .61, .36, 1);
}

@media (min-width:1024px) {
  #read-more-section .rm-body {
    max-height: 208px;
  }
}

/* Sub-headings inside the prose */
#read-more-section .rm-h3 {
  font-family: 'General Sans', system-ui, sans-serif;
  font-weight: 500;
  color: #3d4988;
  font-size: 20px;
  line-height: 1.35;
  margin: 28px 0 10px;
}

@media (min-width:1024px) {
  #read-more-section .rm-h3 {
    font-size: 24px;
    margin-top: 34px;
  }
}

/* Process step paragraphs with bold lead-in */
#read-more-section .rm-step {
  margin: 12px 0 0;
}

#read-more-section .rm-step strong {
  color: #1c1c1c;
  font-weight: 600;
}

/* Inline contextual links inside the prose */
#read-more-section .rm-prose a {
  color: #3d4988;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s ease;
}

#read-more-section .rm-prose a:hover {
  color: #2c365f;
}

/* Related-services link list */
#read-more-section .rm-links {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

#read-more-section .rm-links li {
  margin: 0;
}

#read-more-section .rm-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #3d4988;
  text-decoration: none;
  background: rgba(61, 73, 136, .06);
  border: 1px solid rgba(61, 73, 136, .14);
  border-radius: 9999px;
  padding: 8px 16px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

#read-more-section .rm-links a:hover {
  background: rgba(61, 73, 136, .12);
  border-color: rgba(61, 73, 136, .3);
  transform: translateY(-1px);
}

#read-more-section .rm-links a::after {
  content: "→";
  font-size: 14px;
  transition: transform .2s ease;
}

#read-more-section .rm-links a:hover::after {
  transform: translateX(3px);
}

/* Soft white fade at the bottom while collapsed */
#read-more-section .rm-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(251, 251, 253, 0), #fbfbfd 92%);
  opacity: 1;
  transition: opacity .35s ease;
}

/* Open state */
#read-more-section .rm-card[data-open="true"] .rm-fade {
  opacity: 0;
}

/* Turn the "+" into a "−" by hiding the vertical bar */
#read-more-section .rm-card[data-open="true"] .rm-toggle-vert {
  transform: scaleY(0);
}

/* Subtle hover affordance */
#read-more-section .rm-toggle:hover .rm-toggle-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#read-more-section .rm-toggle:focus-visible {
  outline: 2px solid #3d4988;
  outline-offset: 4px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {

  #read-more-section .rm-body,
  #read-more-section .rm-fade,
  #read-more-section .rm-toggle-vert {
    transition: none;
  }
}
