/* MXH post flow R1: retain the existing readmore-js controls and ordinary media flow. */
body.mxh-extend-ui .post-text {
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* The plugin owns inline height and aria-expanded. Do not force a maximum or height:auto. */
body.mxh-extend-ui .post-text.js_readmore {
  max-width: 100%;
  min-width: 0;
  /* Four complete lines in the existing 110px collapsed height. */
  line-height: 27.5px;
  overflow: hidden;
  transition: height 100ms;
}

/* readmore-js 2.x uses removed jQuery .selector for injected CSS; supply the real selector here. */
body.mxh-extend-ui .post-text.js_readmore[data-readmore] {
  display: block;
  width: 100%;
}
body.mxh-extend-ui .post-text.js_readmore + [data-readmore-toggle] {
  display: block;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 8px 16px 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
body.mxh-extend-ui .post-text.js_readmore + [data-readmore-toggle]:hover {
  text-decoration: underline;
}
body.mxh-extend-ui .post-text.js_readmore + [data-readmore-toggle]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}
body.mxh-extend-ui .post-product-container .post-text.js_readmore + [data-readmore-toggle],
body.mxh-extend-ui .post-media-meta .post-text.js_readmore + [data-readmore-toggle] {
  margin-inline: 0;
}
