.pair-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.pair-cards article { min-width:0; }
.pair-cards article > .pair-cards { display:flex; flex-wrap:wrap; }
.pair-cards figure { flex:1 1 75px; margin:0; text-align:center; }
.pair-cards img { width:100%; height:clamp(120px,28vw,260px); object-fit:contain; background:#eae6df; border-radius:10px; }
.pair-cards figcaption { padding:6px 0; }
.pair-score { font-size:1.5rem; }
.pair-score strong { font-size:3.5rem; }
.panel input[aria-label="邀請連結"] { display:block; width:100%; margin:10px 0; padding:10px; }
.pair-wait { color:#5b6475; }
.pair-dots { display:inline-block; animation:pair-dots-pulse 1.4s ease-in-out infinite; }
@keyframes pair-dots-pulse { 0%,100% { opacity:.25; } 50% { opacity:1; } }
@media (prefers-reduced-motion: reduce) { .pair-dots { animation:none; } }
.pair-ready { font-weight:600; color:#172647; }
/* Comparison page: one font and size for every section so text and image cards read the same. */
.pair-section, .pair-section h3, .pair-section p, .pair-section figcaption { font-family:inherit; }
.pair-section h2 { margin:0 0 8px; }
.pair-section h3 { font-size:1rem; font-weight:600; margin:0 0 8px; }
.pair-section p, .pair-section figcaption { font-size:1rem; line-height:1.6; margin:0 0 8px; }
.pair-grid { grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); }
.pair-text-card span { display:flex; align-items:center; justify-content:center; height:clamp(120px,28vw,260px); padding:12px; background:#eae6df; border-radius:10px; color:#172647; font-weight:600; text-align:center; }
/* "回首頁" is a link styled like the bottom-bar button. */
.nav a.btn.pair-home { display:flex; align-items:center; justify-content:center; text-decoration:none; }
/* Big text uses the serif face like the headings; small text stays sans. */
.pair-score strong { font-family:'Xing Serif',serif; font-weight:700; }
