/* Shareable Result Card — shared by result-search.html and student-gradesheet.html (buildResultCardHtml() in js/utils.js) */
/* ---- Shareable Result Card  ----
   A separate, playful "share card" look — deliberately distinct from
   the formal printed gradesheet — built from real published-result
   data. .rc-pass / .rc-ng are the only two variants (driven by
   record.hasNG, or record.isAptitude for aptitude exams), matching
   buildResultCardHtml() in js/public-result-search.js. Every size uses
   clamp()/%/max-width so the card scales down cleanly to the narrowest
   phone screens instead of overflowing or requiring horizontal scroll. */
.rc-card-wrap { display: flex; justify-content: center; }
.rc-card {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding-bottom: 15px;
  border: 6px solid #1e3a8a;
  outline: 2px solid #eab308;
  outline-offset: -4px;
  box-shadow: 0 20px 50px rgba(30,58,138,0.15);
  box-sizing: border-box;
}
.rc-card * { box-sizing: border-box; }
.rc-top-banner { padding: 10px 8px; color: #fff; font-weight: 900; font-size: clamp(0.7rem, 3.6vw, 0.9rem); text-transform: uppercase; position: relative; z-index: 10; text-align: center; }
.rc-card.rc-pass .rc-top-banner { background: #5a57e6; }
.rc-card.rc-ng .rc-top-banner { background: #dc2626; }
.rc-stars { margin: 4px 0 0; font-size: clamp(15px, 4.5vw, 22px); position: relative; z-index: 10; text-align: center; letter-spacing: 2px; }
.rc-card.rc-pass .rc-stars { color: #facc15; }
.rc-card.rc-ng .rc-stars { color: #cbd5e1; }
.rc-card { --rc-ribbon-w: 128px; }
.rc-photo-section { position: relative; height: 150px; display: flex; justify-content: center; align-items: center; margin-top: 5px; }
.rc-blue-bar { position: absolute; width: 100%; height: 42px; background: #1e3a8a; z-index: 1; }
.rc-medal { position: absolute; font-size: clamp(17px, 5vw, 24px); z-index: 20; top: 50%; transform: translateY(-50%); }
.rc-medal-left { left: 12%; }
.rc-medal-right { right: 12%; }
.rc-ribbon-bg { position: absolute; width: var(--rc-ribbon-w); height: 132px; background: #eab308; z-index: 2; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%); }
.rc-cap { position: absolute; font-size: clamp(18px, 6vw, 26px); z-index: 30; top: -10px; }
.rc-cap-left { left: calc(50% - (var(--rc-ribbon-w) / 2) - 4px); transform: rotate(-15deg); }
.rc-cap-right { right: calc(50% - (var(--rc-ribbon-w) / 2) - 4px); transform: rotate(15deg); }
.rc-photo-wrap { width: 100px; height: 100px; border-radius: 50%; border: 5px solid #fff; position: relative; z-index: 20; background: #fff; overflow: hidden; box-shadow: 0 6px 15px rgba(0,0,0,0.2); }
.rc-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.rc-name-ribbon { display: block; width: 90%; padding: 6px 12px; background: #fff1f2; border: 2px solid #eab308; border-radius: 20px; margin: 8px auto; position: relative; z-index: 25; text-align: center; word-break: break-word; }
.rc-name { font-family: 'Poppins', 'Kalimati', 'Noto Sans Devanagari', sans-serif; font-size: clamp(0.78rem, 4.2vw, 1.05rem); font-weight: 900; color: #dc2626 !important; text-transform: uppercase; margin: 0; overflow-wrap: break-word; }
.rc-batch-ribbon { display: flex; flex-wrap: wrap; justify-content: center; margin: 0 auto 8px; border-radius: 6px; overflow: hidden; color: #fff; font-size: 8.5px; font-weight: 800; width: fit-content; max-width: 92%; text-align: center; }
.rc-batch-left { background: #1e3a8a; padding: 6px 10px; }
.rc-batch-right { background: #0d9488; padding: 6px 10px; border-left: 1px solid rgba(255,255,255,0.2); }
.rc-msg { font-size: 0.68rem; padding: 10px 14px; color: #fff; background: #1e3a8a; border-top: 3px solid #eab308; position: relative; z-index: 10; font-weight: 600; line-height: 1.4; text-align: center; word-break: break-word; }
.rc-idgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px 0; }
.rc-idbox { background: #1e3a8a; padding: 6px; border-radius: 10px; color: #fff; text-align: center; word-break: break-word; }
.rc-idbox span { font-size: 7px; font-weight: 800; display: block; }
.rc-idbox strong { font-size: 12px; font-weight: 900; }
.rc-score-bar { margin: 10px 16px 5px; display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-radius: 12px; background: #facc15; }
.rc-score-bar .rc-gpa-label, .rc-score-bar .rc-status-label { font-size: 8px; font-weight: 800; display: block; color: #1e3a8a; }
.rc-score-bar .rc-gpa-val { font-size: clamp(1.05rem, 5vw, 1.4rem); font-weight: 900; }
.rc-score-bar .rc-status-val { font-size: 0.82rem; font-weight: 800; }
.rc-card.rc-pass .rc-status-val { color: #15803d; }
.rc-card.rc-ng .rc-status-val { color: #dc2626; }
@media (max-width: 340px) {
  .rc-card { border-width: 4px; --rc-ribbon-w: 108px; }
  .rc-photo-wrap { width: 84px; height: 84px; }
  .rc-photo-section { height: 130px; }
}

