/* Saffron redesign — page styles for the `website` app (policies, info pages,
   landing pages, error pages, news digest) and the reusable upload widget
   ([data-vr-upload], also used by job_portal/careers_form.html).
   Colours only through var(--vr-…) so dark mode works. */

/* ---------- Long-form documents (policies, result article, help pages) ---------- */
.ws-article { font-size: 15px; }
.ws-article h2 { margin: 26px 0 10px; font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--vr-ink); }
.ws-article h3 { margin: 22px 0 8px; font-size: 17px; font-weight: 800; line-height: 1.35; color: var(--vr-ink); }
.ws-article h4 { margin: 18px 0 6px; font-size: 15px; font-weight: 800; color: var(--vr-ink); }
.ws-article > :first-child, .ws-article > div:first-child > :first-child { margin-top: 0; }
.ws-article p { margin: 0 0 12px; }
.ws-article ul, .ws-article ol { margin: 0 0 14px; padding-left: 22px; }
.ws-article li { margin-bottom: 8px; }
.ws-article li > p { margin-bottom: 4px; }
.ws-article li h3 { display: inline; margin: 0; }
.ws-article a { color: var(--vr-accent-ink); font-weight: 600; overflow-wrap: anywhere; }
.ws-article img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--vr-line); }
.ws-bullet { position: relative; padding-left: 22px; }
.ws-bullet::before { content: ""; position: absolute; left: 6px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--vr-accent); }
.ws-article .vr-table-wrap { margin-bottom: 16px; }
.ws-article .vr-dtable { min-width: 480px; }
.ws-article .vr-dtable td { vertical-align: top; }
.ws-article .vr-dtable p { margin: 0; }
.ws-article .vr-dtable tr:first-child td { border-top: 0; font-weight: 700; color: var(--vr-ink); }
.ws-steps { counter-reset: ws-step; list-style: none; padding: 0 !important; }
.ws-steps > li { counter-increment: ws-step; position: relative; padding-left: 40px; min-height: 28px; }
.ws-steps > li::before { content: counter(ws-step); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: var(--vr-accent-soft); color: var(--vr-accent-ink); }
.ws-section-title { display: flex; align-items: center; gap: 10px; }
.ws-section-title svg { color: var(--vr-accent-ink); flex: none; }

/* ---------- FAQ / accordions (<details>) ---------- */
.ws-faq { display: flex; flex-direction: column; gap: 10px; }
.ws-faq details { border: 1px solid var(--vr-line); border-radius: var(--vr-r-2); background: var(--vr-card); }
.ws-faq details[open] { border-color: var(--vr-line-2); }
.ws-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 700; font-size: 14px; color: var(--vr-ink); }
.ws-faq summary::-webkit-details-marker { display: none; }
.ws-faq summary .vr-ico { flex: none; color: var(--vr-muted); transition: transform .15s ease; }
.ws-faq details[open] summary .vr-ico { transform: rotate(180deg); }
.ws-faq .ws-faq__body { padding: 0 16px 16px; }
@media (prefers-reduced-motion: reduce) { .ws-faq summary .vr-ico { transition: none; } }

/* ---------- Error pages (403 / 404) ---------- */
.ws-error { margin-top: 4vh; text-align: center; align-items: center; padding: 40px 28px; }
.ws-error__code { margin: 0; font-size: clamp(72px, 16vw, 132px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--vr-accent); }
.ws-error__text { margin: 0; font-size: 18px; font-weight: 700; color: var(--vr-ink); }
.ws-error .vr-card-actions { justify-content: center; margin-top: 4px; }
.ws-error .vr-card-actions > .vr-btn { flex: 0 1 auto; }
.ws-error__icon { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--vr-accent-soft); color: var(--vr-accent-ink); }

/* ---------- Contact ---------- */
.ws-contact__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.ws-contact__list li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: var(--vr-r-2); background: var(--vr-card-2); }
.ws-contact__list p { margin: 0; line-height: 1.6; }
.ws-contact__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--vr-accent-soft); color: var(--vr-accent-ink); }

/* ---------- Hero (landing pages: get app, IIT Delhi, live test) ---------- */
.ws-hero {
  position: relative; overflow: hidden; border-radius: var(--vr-r); padding: 40px 36px; color: #FFFFFF;
  background: linear-gradient(150deg, #2A1A10 0%, #6E2A0B 50%, #C85E0B 100%);
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.ws-hero--center { align-items: center; text-align: center; }
.ws-hero__kicker { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.ws-hero__title { margin: 0; font-size: clamp(30px, 5vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.ws-hero__sub { margin: 0; font-size: 18px; font-weight: 600; opacity: .9; }
.ws-hero__logo { width: 96px; height: auto; }
.ws-hero a:not(.vr-btn) { color: #FFFFFF; }
.ws-hero .vr-btn { margin-top: 6px; }
.ws-hero__store img { height: 48px; width: auto; display: block; }
.ws-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ws-person { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px; border-radius: var(--vr-r-2); background: var(--vr-card-2); text-align: center; }
.ws-person img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; }
.ws-person strong { font-size: 15px; }
.ws-person span { font-size: 13px; color: var(--vr-muted); }
.ws-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ws-course { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--vr-r-2); border: 1px solid var(--vr-line); background: var(--vr-card); color: var(--vr-ink); text-decoration: none; }
.ws-course:hover { border-color: var(--vr-accent); text-decoration: none; color: var(--vr-ink); }
.ws-course strong { font-size: 17px; font-weight: 800; }
.ws-course span { font-size: 13px; color: var(--vr-ink-2); }
.ws-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ws-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--vr-r-2); overflow: hidden; background: var(--vr-card-2); }
.ws-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ws-footlinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.ws-copyright { margin: 0; text-align: center; font-size: 12px; color: var(--vr-muted); }

/* live test landing */
.ws-live { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.ws-live__banner { width: 100%; height: 100%; object-fit: cover; border-radius: var(--vr-r); display: block; }
.ws-live__date { margin: 0; font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; color: var(--vr-accent-ink); line-height: 1.1; }
.ws-live__onwards { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--vr-accent-ink); }
.ws-store-badge img { height: 44px; width: auto; display: block; }
@media (max-width: 860px) { .ws-live { grid-template-columns: minmax(0, 1fr); } }

/* get app */
.ws-getapp { min-height: calc(100vh - var(--vr-topbar-h) - 120px); justify-content: center; }

/* pop-up image (remote; data-vr-fallback swaps to the logo if it fails) */
.ws-popup-img { display: block; max-width: 100%; height: auto; border-radius: 14px; }

/* ---------- News digest (prototype) ---------- */
.ws-digest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 18px; align-items: start; }
.ws-digest-thumbs { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Upload widget  [data-vr-upload] ---------- */
.vr-upload { display: flex; flex-direction: column; gap: 8px; }
.vr-upload__list { display: flex; flex-direction: column; gap: 8px; }
.vr-upload__list:empty { display: none; }
.vr-upload__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--vr-card-2); border: 1px solid var(--vr-line); font-size: 13px; min-width: 0; }
.vr-upload__item svg { flex: none; color: var(--vr-accent-ink); }
.vr-upload__name { font-weight: 700; color: var(--vr-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vr-upload__size { color: var(--vr-muted); white-space: nowrap; }
.vr-upload__bar { flex: 1 1 60px; min-width: 40px; height: 6px; border-radius: 999px; background: var(--vr-ghost-b); overflow: hidden; }
.vr-upload__bar span { display: block; height: 100%; width: 0; background: var(--vr-accent); transition: width .2s ease; }
.vr-upload__item.is-uploaded .vr-upload__bar span { background: var(--vr-good); }
.vr-upload__item.is-error { border-color: var(--vr-bad); background: var(--vr-bad-soft); }
.vr-upload__err { flex: 1; color: var(--vr-bad); font-weight: 600; }
.vr-upload__remove { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 0; background: transparent; color: var(--vr-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.vr-upload__remove:hover { background: var(--vr-bad-soft); color: var(--vr-bad); }
.vr-upload__pick { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--vr-line-2); background: var(--vr-card); color: var(--vr-ink-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.vr-upload__pick:hover, .vr-upload__pick:focus-within { border-color: var(--vr-accent); background: var(--vr-accent-soft); }
.vr-upload__pick input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.vr-upload__pick svg { flex: none; color: var(--vr-accent-ink); }
.vr-upload__pick[hidden] { display: none; }
.vr-upload__hint { font-size: 12px; color: var(--vr-muted); }
@media (prefers-reduced-motion: reduce) { .vr-upload__bar span { transition: none; } }

/* ---------- Generic form helpers used on website pages ---------- */
.ws-help { font-size: 12px; color: var(--vr-muted); }
.ws-req { color: var(--vr-bad); }
.vr-form textarea.vr-input { height: auto; min-height: 120px; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.ws-editor .mce-tinymce { border-radius: 12px; overflow: hidden; border: 1.5px solid var(--vr-line-2) !important; box-shadow: none !important; }

@media (max-width: 600px) {
  .ws-hero { padding: 28px 20px; }
  .ws-article { font-size: 14px; }
}
