@media (max-width:760px){
  .reviews .review-content{
    display:flex;
    min-height:490px;
    justify-content:flex-start;
  }
  .reviews .review-content:before{display:none}
  .reviews .review-content .review-meta>div{
    display:flex;
    height:64px;
    min-height:64px;
    flex-direction:column;
    justify-content:flex-start;
  }
  .reviews .review-content blockquote{
    align-self:start;
    min-height:6.6em;
  }
  .reviews .review-content blockquote.is-collapsible:not(.is-expanded){
    display:-webkit-box;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:4;
  }
  .reviews .review-content blockquote.is-expanded{min-height:0}
  .reviews .review-content .review-footer{
    align-self:end;
    margin-top:0;
  }
  .review-toggle{
    justify-self:start;
    margin:-8px 0 22px;
    padding:0;
    border:0;
    color:#69e8f4;
    background:transparent;
    font:800 12px/1.4 inherit;
    cursor:pointer;
  }
  .review-toggle:hover,.review-toggle:focus-visible{color:#fff}
  .review-toggle[hidden]{display:none}
}

@media (max-width:380px){
  .reviews .review-content{min-height:510px}
}

/* Draw the mobile carousel arrows geometrically; font glyph baselines vary in Safari. */
@media (max-width:760px){
  .review-controls button[data-review-prev],
  .review-controls button[data-review-next]{
    position:relative;
    display:grid;
    place-items:center;
    font-size:0;
    line-height:0;
  }
  .review-controls button[data-review-prev]::before,
  .review-controls button[data-review-next]::before{
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    width:20px;
    height:20px;
    background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16m-7-7 7 7-7 7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16m-7-7 7 7-7 7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    transform:translate(-50%,-50%);
  }
  .review-controls button[data-review-prev]::before{transform:translate(-50%,-50%) scaleX(-1)}
}

/* Portrait tablets need the same one-column review composition as phones. */
@media (min-width:761px) and (max-width:1024px) and (orientation:portrait){
  .reviews .review-track .review-card{grid-template-columns:minmax(0,1fr);gap:8px;min-height:0;padding:8px}
  .reviews .review-card>.review-scan{grid-column:1;grid-row:1;min-height:0;padding:20px}
  .reviews .review-card>.review-scan img{display:block;width:auto;max-width:100%;height:auto;max-height:320px;margin-inline:auto;object-fit:contain}
  .reviews .review-content{grid-column:1;grid-row:2;padding:32px}
  .reviews .review-content:before{display:none}
  .reviews .review-content .review-meta{align-items:flex-start;flex-direction:column;gap:16px;padding-bottom:20px}
  .reviews .review-content blockquote{margin:22px 0;font-size:16px;line-height:1.65}
  .reviews .review-content .review-footer{align-items:flex-start;flex-direction:column;gap:14px;margin-top:12px;padding-top:20px}
}
