/* SWAYAM official results (ADR-012) — sits inside the existing Rank Holders section and reuses its
   picker styles (.rank-picker, .rank-ex, .rank-cl, .ranks-head-line from academic.css). */
.sp-official { margin: 0 auto 72px; padding-bottom: 64px; border-bottom: 1px solid rgba(217, 182, 116, 0.25); }
.sp-official[hidden] { display: none; }
.sp-head { text-align: center; margin: 0 auto 28px; }
.sp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700;
  color: var(--emerald-900); background: var(--gold-soft); padding: 7px 16px;
}
.sp-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-900); }
.sp-lede {
  margin: 14px auto 0; max-width: 560px;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 19px; line-height: 1.4;
  color: rgba(246, 241, 230, 0.8);
}
.sp-pickers { margin-bottom: 8px; }
.sp-head-line-wrap { text-align: center; }
.sp-head-line { margin: 18px auto 40px; }

.sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; align-items: start; }
.sp-card { margin: 0; min-width: 0; }
.sp-poster {
  appearance: none; display: block; width: 100%; padding: 0; margin: 0; cursor: zoom-in;
  background: var(--paper); border: 1px solid var(--gold); position: relative;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.6); transition: transform .25s ease, box-shadow .25s ease;
}
.sp-poster::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(184, 137, 58, 0.35); pointer-events: none; }
.sp-poster:hover { transform: translateY(-4px); box-shadow: 0 30px 56px -26px rgba(0, 0, 0, 0.7); }
.sp-poster:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 4px; }
.sp-poster img { width: 100%; height: auto; display: block; }
.sp-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 14px; }
.sp-cap-unit { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 500; color: var(--bg); line-height: 1.2; }
.sp-overall .sp-cap-unit { color: var(--gold-soft); }
.sp-cap-date {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(246, 241, 230, 0.55); align-self: center;
}

.sp-message {
  max-width: 640px; margin: 0 auto; text-align: center; padding: 36px 28px;
  border: 1px dashed rgba(217, 182, 116, 0.45); background: rgba(20, 82, 50, 0.3);
}
.sp-message-main { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 21px; color: var(--bg); }
.sp-message-sub { margin: 8px 0 0; font-size: 13.5px; color: rgba(246, 241, 230, 0.65); }

.sp-lightbox {
  position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 56px 20px 24px;
  background: rgba(8, 28, 18, 0.9); backdrop-filter: blur(6px); overflow-y: auto;
}
.sp-lightbox-frame { width: min(960px, 100%); }
.sp-lightbox-frame img { width: 100%; height: auto; border: 1px solid var(--gold); background: var(--paper); }
.sp-lightbox-cap {
  margin: 12px 0 0; text-align: center; color: var(--gold-soft);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.sp-close {
  position: fixed; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--emerald-900); color: var(--gold-soft); font-size: 24px; line-height: 1; cursor: pointer;
}
.sp-close:hover, .sp-close:focus-visible { background: var(--gold); color: var(--emerald-900); }
body.sp-noscroll { overflow: hidden; }

@media (max-width: 1000px) { .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .sp-official { margin-bottom: 48px; padding-bottom: 44px; }
  .sp-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sp-lede { font-size: 17px; }
  .sp-lightbox { padding: 60px 8px 16px; }
}
