/* PEER-RETIRE-COMPACT-VISUAL-CARDS-002 — story cards (叔叔／阿姨／夫婦), supersedes retire-compact.css (001).
   Classic min/max-width media syntax only (old Android/iOS WebViews ignore range queries). */
.steps{overflow-x:clip}
.steps .sectionHead{margin-bottom:24px}
.steps .sectionHead>p{margin-top:10px;line-height:1.6}
.stepGrid{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
.stepGrid article{min-height:0;padding:0;position:relative;overflow:hidden;background:#fff;
  display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto auto;
  grid-template-areas:"img img" "num icon" "h3 h3" "p p";column-gap:12px;align-items:center;
  border-radius:18px;box-shadow:0 2px 14px rgba(13,48,46,.07)}
.stepGrid article:nth-child(2){background:#f4ead9;border-radius:6px 30px 6px 30px}
.stepGrid article:nth-child(3){border-radius:30px 6px 30px 6px}
.stepGrid .rcThumb{grid-area:img;position:relative;display:block;width:100%;aspect-ratio:4/3;min-height:0;overflow:hidden;background:#efe6d6;
  -webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.stepGrid .rcThumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
/* mobile: three different joins between photo and text */
.stepGrid .rcT1{aspect-ratio:4/3;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V88C78 98 58 99 38 93S10 86 0 92Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V88C78 98 58 99 38 93S10 86 0 92Z'/%3E%3C/svg%3E")}
.stepGrid .rcT2{aspect-ratio:5/4;clip-path:polygon(0 0,100% 0,100% 84%,0 100%)}
.stepGrid .rcT3{aspect-ratio:16/10;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V90Q50 102 0 90Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V90Q50 102 0 90Z'/%3E%3C/svg%3E")}
.stepGrid .rcT1 img{object-position:50% 50%}
.stepGrid .rcT2 img{object-position:50% 35%}
.stepGrid .rcT3 img{object-position:50% 55%}
.stepGrid article>span:not(.rcThumb){grid-area:num;padding:12px 0 0 20px;font-size:13px;line-height:1.2;color:#a08c63;letter-spacing:.08em}
.stepGrid .stepIcon{grid-area:icon;margin:0;padding:10px 20px 0 0;font-size:22px;line-height:1;color:var(--gold,#c99a4b)}
.stepGrid h3{grid-area:h3;margin:6px 0 0;padding:0 20px;line-height:1.4}
.stepGrid p{grid-area:p;margin:0;padding:6px 20px 20px;line-height:1.65}
@media (max-width:620px){
  .steps{padding:44px 16px 40px}
  .steps .sectionHead{margin-bottom:18px}
  .stepGrid{gap:18px}
}
/* desktop: alternating left/right, curved / diagonal joins, different proportions */
@media (min-width:860px){
  .stepGrid{gap:34px;max-width:1120px;margin:0 auto}
  .stepGrid article{column-gap:0;align-items:start;
    grid-template-rows:minmax(24px,1fr) auto auto auto minmax(24px,1fr)}
  .stepGrid article:nth-child(1){grid-template-columns:56% minmax(0,1fr);grid-template-areas:"img ." "img num" "img h3" "img p" "img ."}
  .stepGrid article:nth-child(2){grid-template-columns:minmax(0,1fr) 44%;grid-template-areas:". img" "num img" "h3 img" "p img" ". img";width:92%;justify-self:end}
  .stepGrid article:nth-child(3){grid-template-columns:62% minmax(0,1fr);grid-template-areas:"img ." "img num" "img h3" "img p" "img ."}
  .stepGrid .rcThumb{aspect-ratio:auto;height:100%}
  .stepGrid .rcT1{min-height:360px;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H92C99 22 86 45 93 66S100 92 95 100H0Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H92C99 22 86 45 93 66S100 92 95 100H0Z'/%3E%3C/svg%3E")}
  .stepGrid .rcT2{min-height:430px;clip-path:polygon(16% 0,100% 0,100% 100%,0 100%)}
  .stepGrid .rcT3{min-height:380px;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H88Q102 50 88 100H0Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H88Q102 50 88 100H0Z'/%3E%3C/svg%3E")}
  .stepGrid article>span:not(.rcThumb){padding:0 40px 0 34px;font-size:14px}
  .stepGrid .stepIcon{grid-area:num;justify-self:end;padding:0 40px 0 0;margin-top:-4px;font-size:26px}
  .stepGrid h3{padding:10px 40px 0 34px;font-size:23px}
  .stepGrid p{padding:10px 40px 0 34px}
  .stepGrid article:nth-child(2)>span:not(.rcThumb),.stepGrid article:nth-child(2) h3,.stepGrid article:nth-child(2) p{padding-left:44px;padding-right:20px}
  .stepGrid article:nth-child(2) .stepIcon{padding-right:20px}
}
/* light entrance only (JS adds .rc2-wait to cards below the fold; never applied with reduced motion) */
.stepGrid article.rc2-wait{opacity:0;transform:translateY(16px)}
.stepGrid article.rc2-in{opacity:1;transform:none;transition:opacity .55s ease-out,transform .55s ease-out}
@media (prefers-reduced-motion:reduce){.stepGrid article,.stepGrid article.rc2-wait,.stepGrid article.rc2-in{opacity:1!important;transform:none!important;transition:none!important}}
