/* Pattern Meadow review: responsive containment and accessible mobile comparison. */
/* Scope to the single review page; do not mask layout errors with global overflow:hidden. */
/* The stylesheet is enqueued only on the review page. */
.article-layout,
.article-layout > .entry-content,
.entry-content,
.entry-content .pmre-review-hero,
.entry-content .pmre-expanded-review {
  min-width: 0;
  max-width: 100%;
}
.entry-content .pmre-expanded-review *,
.entry-content .pmre-review-hero * {
  box-sizing: border-box;
}
.entry-content .pmre-expanded-review a,
.entry-content .pmre-expanded-review td,
.entry-content .pmre-expanded-review p,
.entry-content .pmre-review-hero a,
.entry-content .pmre-review-hero p {
  overflow-wrap: break-word;
}
.entry-content .pmre-expanded-review .pmre-scroll {
  max-width: 100%;
  min-width: 0;
}
.entry-content .pmre-expanded-review .pmre-scenarios,
.entry-content .pmre-expanded-review .pmre-scenario {
  min-width: 0;
}

@media (max-width: 780px) {
  /* The theme's main grid must not be expanded by a descendant's intrinsic width. */
  .article-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0 !important;
  }
  .article-layout > .entry-content {
    min-width: 0 !important;
    width: 100%;
  }
  .entry-content .pmre-review-hero,
  .entry-content .pmre-expanded-review,
  .entry-content .pmre-expanded-review .pmre-conversion,
  .entry-content .pmre-expanded-review .pmre-lastlook {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Turn the three-column 580px table into vertical cards on phones. */
  .entry-content .pmre-expanded-review .pmre-scroll {
    overflow: visible !important;
    width: 100%;
    border: 0;
    background: transparent;
    margin: 18px 0 24px;
  }
  .entry-content .pmre-expanded-review table.pmre-table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: auto;
    font-size: 0.94rem;
  }
  .entry-content .pmre-expanded-review .pmre-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .entry-content .pmre-expanded-review .pmre-table tbody {
    display: block;
    width: 100%;
  }
  .entry-content .pmre-expanded-review .pmre-table tr {
    display: block;
    width: 100%;
    margin: 0 0 14px;
    padding: 9px 12px;
    background: #fffdf8;
    border: 1px solid #e2e0d8;
    border-radius: 11px;
  }
  .entry-content .pmre-expanded-review .pmre-table td {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 9px 3px !important;
    border: 0 !important;
    background: transparent !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .entry-content .pmre-expanded-review .pmre-table td + td {
    border-top: 1px solid #eee8dd !important;
  }
  .entry-content .pmre-expanded-review .pmre-table td::before {
    display: block;
    margin: 0 0 4px;
    color: #53685a;
    font: 700 0.72rem/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
    letter-spacing: 0.035em;
    text-transform: uppercase;
  }
  .entry-content .pmre-expanded-review .pmre-table td:nth-child(1)::before { content: 'Feature'; }
  .entry-content .pmre-expanded-review .pmre-table td:nth-child(2)::before { content: 'Why it could help'; }
  .entry-content .pmre-expanded-review .pmre-table td:nth-child(3)::before { content: 'What to verify'; }

  .entry-content .pmre-expanded-review .pmre-scenarios {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .entry-content .pmre-review-hero .pmre-points,
  .entry-content .pmre-expanded-review .pmre-points {
    max-width: 100%;
    min-width: 0;
  }
  .entry-content .pmre-review-hero .pmre-points span {
    max-width: 100%;
    white-space: normal;
  }
  .entry-content a.pmre-cta-btn {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 13px 14px;
  }
}
