/* R5 additions for the ten-transformation release. Loaded after rmai-showcase.css. */
.rmai-showcase .visual-comparison{height:auto!important;aspect-ratio:16/10}
.rmai-showcase .visual-comparison .vc-before img,.rmai-showcase .visual-comparison .vc-after img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:top center!important}
.feature-window .visual-comparison img{transition:opacity .26s ease}
.feature-window.is-swapping .visual-comparison img{opacity:.15}
/* Gallery cards: a working mini comparison, both screenshots at full card width */
.story-card .art{height:auto;background:#060e18}
.story-card .art::after{display:none}
.story-card .art .visual-comparison .vc-handle{height:34px;width:34px;font-size:17px}
.story-card .art .visual-comparison .vc-tags{inset:9px 9px auto}
.story-card .info h3 a{color:inherit;text-decoration:none}
.story-card .info h3 a:hover{text-decoration:underline;text-underline-offset:4px}
.story-card .tag{white-space:nowrap}
/* Gallery: the pattern across all ten drafts */
.pattern-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.pattern-grid article{border:1px solid var(--line);border-radius:16px;padding:20px;background:#081325}
.pattern-grid .count-big{font:800 2.4rem/1 var(--display);letter-spacing:-.04em;color:#f2f7ff}
.pattern-grid .count-big small{font-size:.95rem;color:#7f9cc4;letter-spacing:0;margin-left:4px}
.pattern-grid h3{font-size:1.05rem;margin:12px 0 6px}
.pattern-grid p{font-size:.86rem;line-height:1.5}
.pattern-grid code{font:.72rem var(--mono);color:#9fc3f2;background:#0d1d36;padding:2px 5px;border-radius:4px;white-space:nowrap}
.pattern-source{margin-top:14px;font-size:.78rem;color:#8ea4c3}
/* Case study: tells */
.tells-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tell{border:1px solid var(--line);border-radius:16px;padding:22px;background:#081325;display:flex;flex-direction:column;gap:10px}
.tell h3{font-size:1.15rem}
.tell blockquote{margin:0;padding:11px 13px;border-left:3px solid #d6a23a;background:#0d1a2e;border-radius:0 8px 8px 0;font:.8rem/1.5 var(--mono);color:#e7d6ae}
.tell p{font-size:.9rem;line-height:1.55;margin:0}
.tell .tell-n{font:700 .6rem var(--mono);letter-spacing:.14em;color:#d6a23a}
/* Case study: inside the After */
.inside-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.inside-grid article{border-top:2px solid #2f7eff;padding:14px 2px 0}
.inside-grid h3{font-size:1rem;margin-bottom:6px}
.inside-grid p{font-size:.86rem;line-height:1.5}
/* Live previews: true desktop width, scaled */
.rmai-showcase .live-frame[data-design-width]{height:520px}
.rmai-showcase .preview-grid.mode-before .live-frame[data-design-width],.rmai-showcase .preview-grid.mode-after .live-frame[data-design-width]{height:min(720px,75vh)}
.rmai-showcase .live-frame[data-design-width] iframe{border:0;display:block;background:#fff}
@media (max-width:760px){.rmai-showcase .live-frame[data-design-width]{height:300px}}
.preview-scale-note{font-size:.76rem;color:#8ea4c3;margin-top:10px}
/* Case pager */
.case-pager{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.case-pager a{border:1px solid var(--line);border-radius:16px;padding:18px 20px;display:flex;flex-direction:column;gap:5px;text-decoration:none;color:inherit;background:#081325}
.case-pager a:hover{border-color:#468bec}
.case-pager a:last-child{text-align:right}
.case-pager small{font:.62rem var(--mono);letter-spacing:.14em;color:#86aadd;text-transform:uppercase}
.case-pager strong{font:800 1.3rem var(--display);letter-spacing:-.03em}
.case-pager span{font-size:.84rem;color:#b9c9df}
/* Theme cards (marketplace, designer, related themes) */
.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.theme-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#071226;display:flex;flex-direction:column}
.theme-card>a.theme-shot{display:block;aspect-ratio:16/10;overflow:hidden;background:#0b1527}
.theme-card>a.theme-shot img{width:100%;height:100%;object-fit:cover;object-position:top;display:block;transition:transform .5s ease}
.theme-card:hover>a.theme-shot img{transform:scale(1.02)}
.theme-card .theme-body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.theme-card h3{font-size:1.4rem}
.theme-card .theme-pitch{font-size:.9rem;line-height:1.45;color:#d5e2f3}
.theme-card .theme-by{font-size:.78rem;color:#8ea4c3}
.theme-card .theme-links{margin-top:auto;padding-top:12px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;font-size:.78rem;font-weight:800}
.theme-card .theme-links a{color:#b5d8ff;text-decoration:none}
.theme-tags{display:flex;flex-wrap:wrap;gap:6px}
.theme-tags span{font:600 .62rem var(--mono);letter-spacing:.06em;padding:4px 7px;border:1px solid #2c4b78;border-radius:99px;color:#a9c4e8}
/* Theme product page */
.theme-frames{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}
.shot-window{border:1px solid #2c4b78;border-radius:14px;overflow:hidden;background:#0b1527}
.shot-window .browser-chrome{border-bottom:1px solid #22385a}
.shot-scroll{height:640px;overflow-y:auto;overscroll-behavior:contain;background:#fff}
.shot-scroll img{display:block;width:100%;height:auto}
.phone{border:10px solid #0f1c30;border-radius:38px;overflow:hidden;background:#0f1c30;box-shadow:0 30px 70px #0008}
.phone .shot-scroll{height:600px;border-radius:26px}
.frames-note{font-size:.8rem;color:#8ea4c3;margin-top:12px}
.included-cols{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.check-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.check-list li{padding-left:24px;position:relative;font-size:.92rem;line-height:1.5}
.check-list li::before{content:'✓';position:absolute;left:0;color:#5fb0ff;font-weight:800}
.check-list li strong{color:#f2f7ff}
@media (max-width:1100px){.pattern-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:860px){.theme-frames{grid-template-columns:1fr}.theme-frames .phone{max-width:300px;margin:auto}.included-cols{grid-template-columns:1fr}}
@media (max-width:760px){.tells-grid,.case-pager,.theme-grid,.pattern-grid{grid-template-columns:1fr}.case-pager a:last-child{text-align:left}.shot-scroll{height:480px}}
@media (prefers-reduced-motion:reduce){.theme-card>a.theme-shot img,.feature-window .visual-comparison img{transition:none}}
/* Ten cards: two columns keeps the grid even and makes each working comparison large enough to read */
@media (min-width:761px){.rmai-showcase .showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}}
@media (min-width:761px){.rmai-showcase .theme-grid--ten{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}}
