@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,600;0,700;1,400&family=Noto+Serif+Devanagari:wght@400;600;700&family=Poppins:wght@400;500;600;700;800&family=Cinzel:wght@600;700&family=Great+Vibes&family=Mukta:wght@400;500;600;700&display=swap");
/* ============ 1Campus school documents (PC pages) ============
   Built by js/school-docs.js: student ID cards (CR80, front + back), admit cards (A5, two per A4),
   transfer certificates (CBSE / MP Board), bonafide and character letters, and award certificates
   (A4 landscape). Everything is sized in mm/pt for print; data-lang="en|hi|both" on each document.
   The phone apps keep css/docs.css; nothing here is used there. */

/* ---------- reset inside a document: the app's own styles must not leak in ---------- */
.sdx, .sdx * { box-sizing: border-box; }
.sdx { -webkit-print-color-adjust: exact; print-color-adjust: exact; color: #111827; text-align: left; letter-spacing: normal; line-height: 1.3; font-weight: 400; }
.sdx table { border-collapse: collapse; width: 100%; margin: 0; font-size: inherit; }
.sdx td, .sdx th { padding: 0; border: 0; background: none; text-align: inherit; vertical-align: middle; font-weight: inherit; color: inherit; }
.sdx p, .sdx h1, .sdx h2, .sdx h3, .sdx h4, .sdx h5, .sdx ol, .sdx ul, .sdx figure, .sdx figcaption { margin: 0; padding: 0; }
.sdx img { display: block; max-width: 100%; border: 0; }
.sdx svg { display: block; }
.sdx b { font-weight: 700; }
.sdx .b-hi { display: block; font-size: .84em; opacity: .85; font-weight: 500; }
.sdx-page { position: relative; flex: none; overflow: hidden; background: #fff; }
.sdx-page.a4 { width: 210mm; height: 297mm; }
.sdx-page.a4l { width: 297mm; height: 210mm; }

/* =====================================================================
   ID CARDS — 54 × 85.6 mm (portrait) / 85.6 × 54 mm (landscape)
   ===================================================================== */
.sdx-card.idc { --cd: color-mix(in srgb, var(--c) 72%, #000); --cl: color-mix(in srgb, var(--c) 9%, #fff); --cm: color-mix(in srgb, var(--c) 22%, #fff);
  position: relative; overflow: hidden; background: #fff; border-radius: 3.2mm; font-family: Poppins, "Noto Sans Devanagari", "Nirmala UI", sans-serif; color: #1f2937; }
.sdx-card.idc.p { width: 54mm; height: 85.6mm; }
.sdx-card.idc.l { width: 85.6mm; height: 54mm; }
.sdx-idw .sdx-card.idc { box-shadow: 0 0 0 .2mm rgba(15,23,42,.10), 0 2mm 6mm rgba(15,23,42,.16); }
.sdx-pair { display: flex; gap: 5mm; align-items: flex-start; }
.idc .lg { flex: none; width: 9.6mm; height: 9.6mm; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: .9mm; }
.idc .lg img, .idc .lg svg { width: 100%; height: 100%; object-fit: contain; }
.idc .sn { min-width: 0; flex: 1; }
.idc .sn b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 6.5pt; line-height: 1.12; font-weight: 700; text-transform: uppercase; letter-spacing: .1mm; }
.idc .sn .snh { display: block; font-size: 5.4pt; font-weight: 600; line-height: 1.15; }
.idc .sn > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 4.3pt; line-height: 1.22; margin-top: .4mm; opacity: .92; }
.idc .ph { overflow: hidden; background: #eef1f6; }
.idc .ph img, .idc .ph svg { width: 100%; height: 100%; object-fit: cover; }
.idc .nm { font-weight: 700; line-height: 1.15; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idc .nm small { display: block; font-size: 5.6pt; font-weight: 600; text-transform: none; margin-top: .2mm; }
.idc .cl { font-size: 5.8pt; font-weight: 600; }
.idc .rows { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 1.4mm; row-gap: .45mm; align-items: baseline; }
.idc .rows .l { font-size: 5.1pt; font-weight: 600; color: #6b7280; white-space: nowrap; }
.idc .rows .l::after { content: ":"; margin-left: .3mm; }
.idc .rows .v { font-size: 5.5pt; font-weight: 600; color: #111827; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.idc .rows .v-address { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
.idc .ft { display: flex; align-items: flex-end; justify-content: space-between; gap: 2mm; }
.idc .vd { font-size: 4.6pt; color: #4b5563; line-height: 1.25; }
.idc .vd b { color: #111827; }
.idc .sg { display: flex; flex-direction: column; align-items: center; min-width: 15mm; font-size: 4.8pt; font-weight: 700; color: #374151; }
.idc .sg .sgi { height: 5.2mm; width: auto; max-width: 18mm; object-fit: contain; margin-bottom: -.5mm; }
.idc .sg i { display: block; width: 100%; border-top: .2mm solid #6b7280; margin-bottom: .5mm; }

/* classic — colour header, centred photo */
.idc.classic { display: flex; flex-direction: column; }
.idc.classic::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2mm; background: linear-gradient(90deg, var(--c), var(--cd)); }
.idc.classic .hd { position: relative; flex: none; height: 16.6mm; display: flex; align-items: flex-start; gap: 1.8mm; padding: 2.2mm 2.4mm 0; color: #fff;
  background: radial-gradient(120% 140% at 100% 0, color-mix(in srgb, var(--c) 70%, #fff) 0, transparent 46%), linear-gradient(135deg, var(--c), var(--cd)); }
.idc.classic .hd::after { content: ""; position: absolute; left: -2mm; right: -2mm; bottom: -.2mm; height: 3.2mm; background: #fff; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.idc.classic .tag { flex: none; margin: .2mm 4mm 0; padding: .55mm 0; text-align: center; border-radius: 1mm; background: var(--cl); color: var(--cd); font-size: 4.9pt; font-weight: 700; letter-spacing: .32mm; }
.idc.classic .ph { flex: none; align-self: center; width: 20.4mm; height: 24.8mm; margin-top: 1.8mm; border-radius: 1.6mm; border: .5mm solid var(--c); box-shadow: 0 0 0 .5mm #fff inset; }
.idc.classic .nm { margin: 1.3mm 2.6mm 0; text-align: center; color: var(--cd); }
.idc.classic .cl { text-align: center; margin-top: .4mm; color: #374151; }
.idc.classic .rows { margin: 1.5mm 3.4mm 0; }
.idc.classic .ft { margin: auto 3.4mm 2.9mm; }
.sdx[data-lang=both] .idc.classic .ph { width: 17.6mm; height: 21.2mm; }

/* modern — photo on a colour band, details in two columns */
.idc.modern { display: flex; flex-direction: column; }
.idc.modern::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2mm; background: var(--c); }
.idc.modern .top { flex: none; display: flex; align-items: center; gap: 1.8mm; padding: 2.1mm 2.6mm 1.6mm; }
.idc.modern .top .lg { background: var(--cl); }
.idc.modern .top .sn b { color: var(--cd); }
.idc.modern .top .sn > span:last-child { color: #6b7280; }
.idc.modern .band { position: relative; flex: none; height: 25mm; display: flex; align-items: center; gap: 2.4mm; padding: 0 3mm; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--cd) 0, var(--c) 62%, color-mix(in srgb, var(--c) 78%, #fff) 100%); }
.idc.modern .band::before { content: ""; position: absolute; right: -9mm; top: -12mm; width: 30mm; height: 30mm; border-radius: 50%; background: rgba(255,255,255,.10); }
.idc.modern .band::after { content: ""; position: absolute; right: 6mm; bottom: -14mm; width: 22mm; height: 22mm; border-radius: 50%; background: rgba(255,255,255,.08); }
.idc.modern .ph { position: relative; z-index: 1; flex: none; width: 18.4mm; height: 22mm; border-radius: 2mm; border: .7mm solid #fff; box-shadow: 0 1mm 2.4mm rgba(0,0,0,.25); }
.idc.modern .bt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .6mm; min-width: 0; }
.idc.modern .bt span { font-size: 4.7pt; font-weight: 700; letter-spacing: .3mm; line-height: 1.25; text-transform: uppercase; opacity: .95; }
.idc.modern .bt b { font-size: 9pt; font-weight: 800; letter-spacing: .1mm; }
.idc.modern .who { padding: 1.6mm 3.2mm 0; }
.idc.modern .nm { color: #111827; }
.idc.modern .cl { color: var(--c); margin-top: .3mm; }
.idc.modern .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1mm 2mm; padding: 1.4mm 3.2mm 0; }
.idc.modern .f { min-width: 0; }
.idc.modern .f .l { display: block; font-size: 4.3pt; font-weight: 600; text-transform: uppercase; letter-spacing: .15mm; color: #8a94a6; line-height: 1.2; }
.idc.modern .f .v { display: block; font-size: 5.6pt; font-weight: 600; color: #111827; line-height: 1.22; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idc.modern .f-address, .idc.modern .f-bus { grid-column: 1 / -1; }
.idc.modern .f-address .v { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.idc.modern .ft { margin: auto 3.2mm 3.2mm; }

/* landscape */
.idc.wide { display: flex; flex-direction: column; }
.idc.wide::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.6mm; background: linear-gradient(90deg, var(--c), var(--cd)); }
.idc.wide .hd { flex: none; height: 12.4mm; display: flex; align-items: center; gap: 2mm; padding: 0 3mm; color: #fff; background: linear-gradient(120deg, var(--cd), var(--c)); }
.idc.wide .hd .lg { width: 9mm; height: 9mm; }
.idc.wide .hd .sn b { -webkit-line-clamp: 1; font-size: 7pt; }
.idc.wide .hd .sn > span:last-child { -webkit-line-clamp: 1; }
.idc.wide .tag { flex: none; padding: .55mm 0; text-align: center; background: var(--cl); color: var(--cd); font-size: 4.8pt; font-weight: 700; letter-spacing: .3mm; }
.idc.wide .bd { display: flex; gap: 2.8mm; padding: 1.8mm 3mm 0; min-height: 0; }
.idc.wide .lc { flex: none; }
.idc.wide .ph { width: 17.6mm; height: 21.4mm; border-radius: 1.4mm; border: .45mm solid var(--c); }
.idc.wide .rc { flex: 1; min-width: 0; }
.idc.wide .nm { color: var(--cd); }
.idc.wide .cl { margin-top: .2mm; color: #374151; }
.idc.wide .rows { margin-top: 1mm; row-gap: .25mm; }
.idc.wide .rows .v-address { -webkit-line-clamp: 1; white-space: nowrap; }
.idc.wide .ft { margin: auto 3mm 2.5mm; }

/* back of the card */
.idc.back { display: flex; flex-direction: column; color: #1f2937; }
.idc.back .strip { flex: none; height: 2.6mm; background: linear-gradient(90deg, var(--c), var(--cd)); }
.idc.back h4 { margin: 2mm 3.2mm .7mm; font-size: 5.2pt; font-weight: 700; letter-spacing: .25mm; text-transform: uppercase; color: var(--cd); }
.idc.back ol { margin: 0 3.2mm 0 6.2mm; font-size: 4.6pt; line-height: 1.32; color: #374151; }
.idc.back ol li { margin-bottom: .35mm; }
.idc.back .rows { display: block; margin: 0 3.2mm; }
.idc.back .rows .r { display: flex; gap: 1.2mm; font-size: 5pt; line-height: 1.35; }
.idc.back .rows .r .l { flex: none; min-width: 12mm; color: #6b7280; font-weight: 600; font-size: 4.7pt; }
.idc.back .rows .r .v { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idc.back .ret { display: flex; gap: 2mm; align-items: center; margin: 2mm 3.2mm 0; padding: 1.6mm; border-radius: 1.6mm; background: var(--cl); }
.idc.back .ret .qr { flex: none; width: 13.5mm; height: 13.5mm; background: #fff; padding: .7mm; border-radius: .8mm; }
.idc.back .ret .qr svg { width: 100%; height: 100%; }
.idc.back .ret span { display: block; font-size: 4.2pt; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: .1mm; }
.idc.back .ret b { display: block; font-size: 5.4pt; line-height: 1.15; color: var(--cd); text-transform: uppercase; margin: .3mm 0; }
.idc.back .ret em { display: block; font-style: normal; font-size: 4.3pt; line-height: 1.25; color: #374151; }
.idc.back .hs { margin: auto 3.2mm 1.4mm auto; width: 21mm; text-align: center; font-size: 4.3pt; color: #6b7280; }
.idc.back .hs i { display: block; border-top: .2mm solid #9ca3af; margin-bottom: .4mm; }
.idc.back .bb { flex: none; padding: .9mm 3mm 1mm; text-align: center; font-size: 4.4pt; font-weight: 600; color: #fff; background: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idc.back.l .bk2 { display: flex; gap: 2.4mm; padding: 0 3mm; flex: 1; min-height: 0; }
.idc.back.l .bk2 h4 { margin: 1.6mm 0 .6mm; }
.idc.back.l .c1 { flex: 0 0 37mm; }
.idc.back.l .c1 ol { margin: 0 0 0 3mm; }
.idc.back.l .c2 { flex: 1; min-width: 0; }
.idc.back.l .c2 .rows { margin: 0; }
.idc.back.l .ret { margin: 1.4mm 0 0; padding: 1.2mm; }
.idc.back.l .ret .qr { width: 11mm; height: 11mm; }

/* A4 sheets of cards, with cut lines */
.sdx-idsheet { display: flex; align-items: center; justify-content: center; }
.sdx-idsheet .grid { display: grid; gap: 6mm; justify-content: center; align-content: center; }
.sdx-idsheet.port .grid { grid-template-columns: repeat(3, 54mm); grid-auto-rows: 85.6mm; }
.sdx-idsheet.land .grid { grid-template-columns: repeat(2, 85.6mm); grid-auto-rows: 54mm; gap: 8mm 10mm; }
.sdx-idsheet .slot { position: relative; }
.sdx-idsheet .slot::after { content: ""; position: absolute; inset: 0; border: .2mm dashed #b8c0cc; pointer-events: none; }
.sdx-idsheet.nocut .slot::after { display: none; }
.sdx-idsheet .sdx-card.blank { width: 100%; height: 100%; }
.sdx-idsheet .sdx-card.idc { border-radius: 0; }

/* =====================================================================
   ADMIT CARDS — 200 × 140 mm inside an A5 half of an A4 sheet
   ===================================================================== */
.sdx-card.adm { --cd: color-mix(in srgb, var(--c) 72%, #000); --cl: color-mix(in srgb, var(--c) 8%, #fff); --cm: color-mix(in srgb, var(--c) 20%, #fff);
  position: relative; width: 200mm; height: 140mm; display: flex; flex-direction: column; background: #fff; font-family: Poppins, "Noto Sans Devanagari", "Nirmala UI", sans-serif; color: #111827; overflow: hidden; }
.sdx-acw .sdx-card.adm { box-shadow: 0 0 0 .25mm rgba(15,23,42,.12), 0 2mm 8mm rgba(15,23,42,.12); }
.adm .hd { flex: none; display: flex; align-items: center; gap: 3.5mm; padding: 4mm 5mm 3mm; }
.adm .lg { flex: none; width: 15mm; height: 15mm; display: grid; place-items: center; }
.adm .lg img, .adm .lg svg { width: 100%; height: 100%; object-fit: contain; }
.adm .sn { flex: 1; min-width: 0; text-align: center; }
.adm .sn b { display: block; font-size: 14.5pt; line-height: 1.1; font-weight: 700; text-transform: uppercase; letter-spacing: .2mm; color: var(--cd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm .sn .snh { display: block; font-size: 9.5pt; font-weight: 600; color: var(--cd); line-height: 1.2; }
.adm .sn span { display: block; font-size: 6.6pt; color: #4b5563; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm .ttl { flex: none; width: 31mm; text-align: center; border: .5mm solid var(--c); border-radius: 1.6mm; padding: 1.4mm 1mm; }
.adm .ttl b { display: block; font-size: 10pt; font-weight: 800; letter-spacing: .5mm; color: var(--cd); line-height: 1.15; }
.adm .ttl span { display: block; font-size: 6.2pt; color: #4b5563; margin-top: .4mm; }
.adm .ttl b.h { font-size: 9.4pt; letter-spacing: .1mm; margin-top: .2mm; }
.adm .ex { flex: none; margin: 0 5mm; padding: 1.5mm 3mm; text-align: center; font-size: 9pt; font-weight: 700; letter-spacing: .5mm; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, var(--cd), var(--c), var(--cd)); border-radius: 1mm; }
.adm .bd { flex: 1; min-height: 0; display: flex; gap: 5mm; padding: 3.2mm 5mm 0; }
.adm .lc { flex: 0 0 79mm; display: flex; flex-direction: column; min-width: 0; }
.adm .lc .top { display: flex; gap: 3mm; align-items: stretch; }
.adm .ph { flex: none; width: 22mm; height: 27mm; border: .4mm solid var(--c); overflow: hidden; background: #eef1f6; }
.adm .ph img, .adm .ph svg { width: 100%; height: 100%; object-fit: cover; }
.adm .rl { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; border: .35mm dashed var(--c); border-radius: 1.6mm; background: var(--cl); }
.adm .rl span { font-size: 7pt; font-weight: 600; color: #4b5563; text-transform: uppercase; letter-spacing: .3mm; text-align: center; }
.adm .rl span .b-hi { text-transform: none; letter-spacing: 0; }
.adm .rl b { font-size: 20pt; font-weight: 800; color: var(--cd); line-height: 1.1; }
.adm .info { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .9mm 2.4mm; margin-top: 2.6mm; font-size: 7.4pt; align-items: baseline; }
.adm .info .r { display: contents; }
.adm .info .l { color: #6b7280; font-weight: 600; font-size: 6.8pt; white-space: nowrap; }
.adm .info .v { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm .info .v .big { font-size: 8.6pt; text-transform: uppercase; color: #111827; }
.adm .ins { margin-top: auto; padding-top: 2mm; }
.adm h5 { font-size: 6.8pt; font-weight: 700; text-transform: uppercase; letter-spacing: .3mm; color: var(--cd); margin-bottom: 1mm; }
.adm h5 em { font-style: normal; text-transform: none; letter-spacing: 0; color: #374151; font-weight: 600; }
.adm .ins ol { margin-left: 4mm; font-size: 6.1pt; line-height: 1.35; color: #374151; }
.adm .rc { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm .rc table { font-size: 7.3pt; }
.adm .rc th { padding: 1.3mm 1.6mm; font-size: 6.6pt; font-weight: 700; text-transform: uppercase; letter-spacing: .15mm; color: var(--cd); background: var(--cm); text-align: left; line-height: 1.2; }
.adm .rc th .b-hi { text-transform: none; letter-spacing: 0; }
.adm .rc td { padding: 1.35mm 1.6mm; border-bottom: .2mm solid #d6dbe4; line-height: 1.2; }
.adm .rc td.n, .adm .rc th.n { width: 6mm; text-align: center; color: #6b7280; }
.adm .rc td.sb { font-weight: 700; }
.adm .rc td.nw { white-space: nowrap; }
.adm .rc td .b-hi { font-weight: 500; }
.adm .rc td.tba { text-align: center; color: #6b7280; padding: 6mm 2mm; font-style: italic; }
.adm.dense .rc table { font-size: 6.6pt; }
.adm.dense .rc td { padding: .9mm 1.4mm; }
.adm .sg { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6mm; padding: 2mm 6mm 4mm; align-items: end; text-align: center; font-size: 6.4pt; font-weight: 600; color: #374151; }
.adm .sg > div { display: flex; flex-direction: column; justify-content: flex-end; min-height: 11mm; }
.adm .sg .sgi { height: 7mm; width: auto; max-width: 30mm; object-fit: contain; margin: 0 auto -1mm; }
.adm .sg i { display: block; border-top: .25mm solid #6b7280; margin-bottom: .8mm; }
/* classic: a framed card like a board admit card */
.adm.classic::before { content: ""; position: absolute; inset: 1.6mm; border: .6mm solid var(--c); border-radius: 1.2mm; pointer-events: none; }
.adm.classic::after { content: ""; position: absolute; inset: 2.7mm; border: .2mm solid var(--cm); border-radius: .8mm; pointer-events: none; }
.adm.classic .rc table { border: .3mm solid var(--c); }
.adm.classic .rc td { border-right: .2mm solid #d6dbe4; }
/* modern: colour header band */
.adm.modern .hd { background: linear-gradient(120deg, var(--cd), var(--c)); color: #fff; padding: 3.6mm 5mm; }
.adm.modern .hd .lg { background: #fff; border-radius: 50%; padding: 1.4mm; }
.adm.modern .sn b, .adm.modern .sn .snh { color: #fff; }
.adm.modern .sn span { color: rgba(255,255,255,.88); }
.adm.modern .ttl { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); }
.adm.modern .ttl b { color: #fff; }
.adm.modern .ttl span { color: rgba(255,255,255,.9); }
.adm.modern .ex { margin: 2.6mm 5mm 0; background: var(--cl); color: var(--cd); border: .3mm solid var(--cm); }
.adm.modern .rc tbody tr:nth-child(even) td { background: var(--cl); }
.adm.modern .rc th { background: var(--c); color: #fff; }
.adm.modern::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.6mm; background: var(--c); }
.sdx[data-lang=both] .adm .info { gap: .5mm 2.4mm; }
.sdx[data-lang=both] .adm .info .l { font-size: 6.2pt; line-height: 1.15; }
/* two per A4 sheet with a cut line */
.sdx-acsheet { display: flex; flex-direction: column; }
.sdx-acsheet .half { flex: none; height: 148.5mm; display: flex; align-items: center; justify-content: center; }
.sdx-acsheet .cut { position: absolute; left: 6mm; right: 6mm; top: 148.5mm; height: 0; border-top: .25mm dashed #9aa3b2; }
.sdx-acsheet .cut span { position: absolute; left: -1mm; top: -2.4mm; font-size: 9pt; color: #9aa3b2; line-height: 1; }

/* =====================================================================
   LETTERHEAD and A4 certificates (TC, bonafide, character)
   ===================================================================== */
.sdx-tc, .sdx-letter { font-family: "Noto Serif", "Noto Serif Devanagari", "Times New Roman", serif; color: #151a23; font-size: 13px; line-height: 1.4; }
.sdx-tc .inner, .sdx-letter .inner { position: absolute; inset: 34px 50px 28px; display: flex; flex-direction: column; z-index: 1; }
.sdx .wm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 0; }
.sdx .wm img { width: 400px; max-height: 400px; object-fit: contain; opacity: .06; }
.sdx .lh { display: grid; grid-template-columns: 84px minmax(0, 1fr) 84px; align-items: center; gap: 10px; }
.sdx .lh .crest { width: 84px; height: 92px; display: grid; place-items: center; }
.sdx .lh .crest img, .sdx .lh .crest svg { width: 84px; height: 92px; object-fit: contain; }
.sdx .lh .lt { text-align: center; }
.sdx .lh .mt { font: 500 12.5px/1.3 "Noto Serif Devanagari", "Noto Serif", serif; color: #1f3a68; }
.sdx .lh .sname { margin-top: 2px; font: 700 29px/1.12 "Noto Serif", "Noto Serif Devanagari", serif; letter-spacing: .03em; color: #1f3a68; text-transform: uppercase; }
.sdx .lh .snh { font: 700 18px/1.25 "Noto Serif Devanagari", serif; color: #1f3a68; }
.sdx .lh .aff { margin-top: 3px; font: italic 400 13px/1.35 "Noto Serif", "Noto Serif Devanagari", serif; }
.sdx .lh .addr { font-size: 12px; line-height: 1.4; }
.sdx .codes { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; padding: 5px 2px; border-top: 2.5px solid #1f3a68; border-bottom: 1px solid #1f3a68; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.sdx .codes.blank { padding: 0; height: 4px; }
.sdx .codes b { font-weight: 700; }

/* Transfer Certificate */
.sdx-tc .title { position: relative; text-align: center; margin: 12px 0 5px; }
.sdx-tc .title span { display: block; }
.sdx-tc .title .t2 { font: 700 15px/1.3 "Noto Serif Devanagari", serif; color: #1f3a68; }
.sdx-tc .title .t1 { display: inline-block; margin-top: 1px; padding-bottom: 2px; border-bottom: 1.5px solid #151a23; font: 700 19px/1.2 "Noto Serif", serif; letter-spacing: .2em; }
.sdx-tc .title .t1.hi { font: 700 21px/1.3 "Noto Serif Devanagari", serif; letter-spacing: .02em; }
.sdx-tc .title .t3 { font: 700 13px/1.3 "Noto Serif", serif; letter-spacing: .2em; margin-top: 2px; color: #1f3a68; }
.sdx-tc .reg { display: flex; justify-content: space-between; gap: 14px; margin-top: 4px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sdx-tc .reg b { font-weight: 700; }
.sdx .fill { display: inline-block; min-width: 34mm; height: 1.05em; vertical-align: baseline; border-bottom: 1px dotted #8f98a8; }
.sdx-tc .fields { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: f; }
.sdx-tc .fields li { counter-increment: f; display: grid; grid-template-columns: 24px minmax(0, 1.06fr) minmax(0, 1fr); column-gap: 10px; align-items: start; padding: 2.4px 0; font-size: 12.6px; line-height: 1.34; }
.sdx-tc .fields li::before { content: counter(f) "."; font-variant-numeric: tabular-nums; }
.sdx-tc .fields .v { align-self: end; font-weight: 700; border-bottom: 1px dotted #8f98a8; padding-bottom: 1px; min-height: 1.34em; }
.sdx-tc .pd { display: flex; gap: 34px; margin-top: 11px; font-size: 12.5px; }
.sdx-tc .signs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: auto; padding-top: 20px; text-align: center; font-size: 12px; line-height: 1.35; align-items: end; }
.sdx-tc .signs { align-items: start; }
.sdx-tc .signs > div { display: flex; flex-direction: column; }
.sdx .sa { height: 40px; display: flex; align-items: flex-end; justify-content: center; }
.sdx .sa .sgi { margin: 0 auto -3px; }
.sdx .signs i, .sdx .psig i { display: block; border-top: 1px solid #151a23; margin-bottom: 5px; }
.sdx .signs small, .sdx .psig small { display: block; color: #5f6878; font-size: 10.5px; }
.sdx .signs .sgi, .sdx .psig .sgi { height: 40px; width: auto; max-width: 170px; object-fit: contain; margin: 0 auto -4px; }
.sdx .fine { margin-top: 12px; padding-top: 6px; border-top: 1px solid #1f3a68; text-align: center; font-size: 10.5px; color: #5f6878; }
.sdx-tc .dupl { position: absolute; top: 50%; right: 0; margin-top: -20px; z-index: 2; padding: 6px 16px; border: 3px solid #b91c1c; color: #b91c1c; font: 700 22px/1 "Noto Serif", "Noto Serif Devanagari", serif; letter-spacing: .2em; transform: rotate(-12deg); opacity: .8; }
.sdx-tc[data-lang=both] .fields li { grid-template-columns: 22px minmax(0, 1.3fr) minmax(0, 1fr); padding: 1px 0; font-size: 10.9px; line-height: 1.2; }
.sdx-tc[data-lang=both] .fields .l .b-hi { font-size: .92em; line-height: 1.15; }
.sdx-tc[data-lang=both] .fields .v { line-height: 1.25; }
.sdx-tc[data-lang=both] .fields { margin-top: 4px; }
.sdx-tc[data-lang=both] .lh .sname { font-size: 25px; }
.sdx-tc[data-lang=both] .lh .snh { font-size: 15px; }
.sdx-tc[data-lang=both] .lh .aff, .sdx-tc[data-lang=both] .lh .addr { font-size: 11.5px; }
.sdx-tc[data-lang=both] .codes { margin-top: 6px; padding: 3px 2px; font-size: 11px; }
.sdx-tc[data-lang=both] .title { margin: 7px 0 3px; }
.sdx-tc[data-lang=both] .reg { font-size: 11.5px; margin-top: 2px; }
.sdx-tc[data-lang=both] .pd { margin-top: 7px; font-size: 12px; }
.sdx-tc[data-lang=both] .signs { padding-top: 8px; font-size: 11.5px; }
.sdx-tc[data-lang=both] .fine { margin-top: 8px; padding-top: 4px; font-size: 9.8px; }
.sdx-tc[data-lang=both] .lh .crest, .sdx-letter[data-lang=both] .lh .crest { height: 84px; }
.sdx-tc.mp .fields li { padding: 8.5px 0; font-size: 13.4px; }
.sdx-tc.mp[data-lang=both] .fields li { padding: 4px 0; font-size: 12.2px; }
.sdx-tc[data-lang=hi] .fields li, .sdx-tc[data-lang=hi] .reg { font-family: "Noto Serif Devanagari", "Noto Serif", serif; }

/* Bonafide and character letters */
.sdx-letter .refline { display: flex; justify-content: space-between; margin-top: 15px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.sdx-letter .concern { margin-top: 26px; text-align: center; font: 700 13px/1.3 "Noto Serif", "Noto Serif Devanagari", serif; letter-spacing: .14em; text-decoration: underline; text-underline-offset: 3px; }
.sdx-letter .ltitle { margin: 12px 0 0; text-align: center; font: 700 21px/1.25 "Noto Serif", "Noto Serif Devanagari", serif; letter-spacing: .16em; color: #1f3a68; }
.sdx-letter .ltitle span { display: block; font: 700 17px/1.3 "Noto Serif Devanagari", serif; letter-spacing: .02em; }
.sdx-letter .lbody { margin-top: 24px; font-size: 15px; line-height: 1.95; text-align: justify; hyphens: auto; }
.sdx-letter .lbody p { margin: 0 0 13px; text-indent: 3em; }
.sdx-letter .lbody .hi-body p { font-family: "Noto Serif Devanagari", "Noto Serif", serif; }
.sdx-letter .lbody .hr { clear: none; height: 0; border-top: 1px dashed #8f98a8; margin: 6px 0 14px; }
.sdx-letter .photo { float: right; width: 120px; margin: 6px 0 10px 22px; text-align: center; }
.sdx-letter .photo .frame { width: 120px; height: 154px; border: 1px solid #151a23; overflow: hidden; background: #eef0f4; }
.sdx-letter .photo img, .sdx-letter .photo svg { width: 100%; height: 100%; object-fit: cover; }
.sdx-letter .photo figcaption { margin-top: 5px; font-size: 10.5px; line-height: 1.3; color: #5f6878; text-indent: 0; text-align: center; }
.sdx-letter .lsign { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 50px; font-size: 14px; line-height: 1.6; }
.sdx-letter .psig { min-width: 240px; display: flex; flex-direction: column; gap: 1px; text-align: center; }
.sdx-letter .psig b { font-weight: 700; }
.sdx-letter .fine { margin-top: auto; }
.sdx-letter[data-lang=both] .lbody { margin-top: 16px; font-size: 13.4px; line-height: 1.7; }
.sdx-letter[data-lang=both] .lbody p { margin-bottom: 8px; }
.sdx-letter[data-lang=both] .concern { margin-top: 16px; }
.sdx-letter[data-lang=both] .lsign { margin-top: 26px; }
.sdx-letter[data-lang=both] .photo { width: 104px; }
.sdx-letter[data-lang=both] .photo .frame { width: 104px; height: 134px; }
.sdx-letter[data-lang=hi] .lbody { font-family: "Noto Serif Devanagari", "Noto Serif", serif; }

/* =====================================================================
   AWARD CERTIFICATES — A4 landscape
   ===================================================================== */
.sdx-award { --gold: #b8913b; --gold2: #e3c77e; font-family: "Noto Serif", "Noto Serif Devanagari", serif; color: #1c2333; }
.sdx-award .frame { position: absolute; inset: 8mm; }
.sdx-award .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10mm 22mm 9mm; }
.sdx-award .head { display: flex; flex-direction: column; align-items: center; }
.sdx-award .lg { width: 21mm; height: 21mm; display: grid; place-items: center; }
.sdx-award .lg img, .sdx-award .lg svg { width: 100%; height: 100%; object-fit: contain; }
.sdx-award .sn { margin-top: 2mm; font: 700 19pt/1.15 "Noto Serif", "Noto Serif Devanagari", serif; letter-spacing: .04em; text-transform: uppercase; }
.sdx-award .snh { font: 700 13pt/1.25 "Noto Serif Devanagari", serif; }
.sdx-award .ad { margin-top: 1mm; font-size: 9.5pt; color: #4b5563; font-style: italic; }
.sdx-award .mid { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 4mm; }
.sdx-award .tt, .sdx-award .body p { text-wrap: balance; }
.sdx-award .tt { margin-top: 0; font: 700 30pt/1.1 Cinzel, "Noto Serif", serif; letter-spacing: .06em; }
.sdx-award .tt span { display: block; margin-top: 1.5mm; font: 700 17pt/1.2 "Noto Serif Devanagari", serif; letter-spacing: 0; }
.sdx-award .lead { margin-top: 5mm; font-size: 12.5pt; font-style: italic; color: #374151; }
.sdx-award .nm { margin-top: 2mm; font: 400 40pt/1.15 "Great Vibes", "Noto Serif Devanagari", cursive; padding: 0 12mm 1mm; border-bottom: .35mm solid currentColor; min-width: 150mm; }
.sdx-award[data-lang=hi] .nm { font: 700 28pt/1.3 "Noto Serif Devanagari", serif; }
.sdx-award .nm2 { margin-top: 1.5mm; font: 700 15pt/1.2 "Noto Serif Devanagari", serif; }
.sdx-award .body { margin-top: 4mm; max-width: 205mm; font-size: 13pt; line-height: 1.6; }
.sdx-award .body p.hi { font-family: "Noto Serif Devanagari", serif; }
.sdx-award[data-lang=both] .body { font-size: 11.6pt; line-height: 1.5; }
.sdx-award[data-lang=both] .body p.hi { margin-top: 1mm; }
.sdx-award .foot { width: 100%; display: grid; grid-template-columns: 1fr 1.1fr 1fr 1fr; gap: 8mm; align-items: end; }
.sdx-award .sg .lb { display: block; min-height: 1.35em; }
.sdx-award[data-lang=both] .sg .lb { min-height: 2.6em; }
.sdx-award .sg .b-hi { font-size: .9em; }
.sdx-award .sg { display: flex; flex-direction: column; justify-content: flex-end; font-size: 10.5pt; font-weight: 600; min-height: 16mm; }
.sdx-award .sg i { display: block; border-top: .3mm solid #1c2333; margin-bottom: 1.2mm; }
.sdx-award .sg .sgi { height: 11mm; width: auto; max-width: 42mm; object-fit: contain; margin: 0 auto -1mm; }
.sdx-award .seal { display: flex; flex-direction: column; align-items: center; gap: 1.5mm; order: 0; }
.sdx-award .seal .sl { width: 25mm; height: 25mm; border-radius: 50%; display: grid; place-items: center; font: 700 8pt/1.1 Cinzel, serif; letter-spacing: .05em; }
.sdx-award .seal .dt { font-size: 10pt; }
.sdx-award .foot .seal { order: 2; }
.sdx-award .foot .sg:nth-child(1) { order: 1; }
.sdx-award .foot .sg:nth-child(3) { order: 3; }
.sdx-award .foot .sg:nth-child(4) { order: 4; }
/* royal: navy frame with gold lines and corners */
.sdx-award.royal { background: #fff; }
.sdx-award.royal .frame { border: 3.2mm solid #1b2a4e; box-shadow: inset 0 0 0 1.4mm #fff, inset 0 0 0 2mm var(--gold), inset 0 0 0 3.4mm #fff, inset 0 0 0 3.7mm var(--gold); }
.sdx-award.royal .frame::before { content: ""; position: absolute; inset: 6mm; background: radial-gradient(60% 70% at 50% 45%, rgba(184,145,59,.07), transparent 70%); pointer-events: none; }
.sdx-award.royal .cn { position: absolute; width: 16mm; height: 16mm; border: 1mm solid var(--gold); z-index: 1; }
.sdx-award.royal .cn::after { content: ""; position: absolute; width: 5mm; height: 5mm; background: var(--gold); transform: rotate(45deg); }
.sdx-award.royal .cn.tl { left: 5.5mm; top: 5.5mm; border-right: 0; border-bottom: 0; }
.sdx-award.royal .cn.tr { right: 5.5mm; top: 5.5mm; border-left: 0; border-bottom: 0; }
.sdx-award.royal .cn.bl { left: 5.5mm; bottom: 5.5mm; border-right: 0; border-top: 0; }
.sdx-award.royal .cn.br { right: 5.5mm; bottom: 5.5mm; border-left: 0; border-top: 0; }
.sdx-award.royal .cn.tl::after { left: 2mm; top: 2mm; } .sdx-award.royal .cn.tr::after { right: 2mm; top: 2mm; }
.sdx-award.royal .cn.bl::after { left: 2mm; bottom: 2mm; } .sdx-award.royal .cn.br::after { right: 2mm; bottom: 2mm; }
.sdx-award.royal .sn, .sdx-award.royal .snh { color: #1b2a4e; }
.sdx-award.royal .tt { color: var(--gold); text-shadow: 0 .2mm 0 rgba(0,0,0,.08); }
.sdx-award.royal .tt span { color: #1b2a4e; }
.sdx-award.royal .nm { color: #1b2a4e; border-color: var(--gold); }
.sdx-award.royal .seal .sl { color: #fff; background: radial-gradient(circle at 35% 30%, var(--gold2), var(--gold) 55%, #8a6a24); box-shadow: 0 0 0 1.2mm #fff, 0 0 0 1.6mm var(--gold); }
/* classic: cream paper and a maroon double frame */
.sdx-award.classic { background: #fbf6ea; --mar: #7a1f2b; }
.sdx-award.classic .frame { border: 1.8mm double var(--mar); }
.sdx-award.classic .frame::after { content: ""; position: absolute; inset: 2.6mm; border: .4mm solid color-mix(in srgb, var(--mar) 55%, #fbf6ea); pointer-events: none; }
.sdx-award.classic .sn, .sdx-award.classic .snh, .sdx-award.classic .tt { color: var(--mar); }
.sdx-award.classic .tt { font-family: "Noto Serif", serif; font-variant: small-caps; letter-spacing: .08em; }
.sdx-award.classic .nm { color: #2a1a10; border-color: var(--mar); }
.sdx-award.classic .seal .sl { color: var(--mar); background: #fbf6ea; border: 1mm solid var(--mar); box-shadow: inset 0 0 0 1.2mm #fbf6ea, inset 0 0 0 1.6mm var(--mar); }
/* modern: colour bands and clean type */
.sdx-award.modern { background: #fff; --cd: color-mix(in srgb, var(--c) 72%, #000); font-family: Poppins, "Noto Sans Devanagari", sans-serif; }
.sdx-award.modern::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 46mm; background: linear-gradient(165deg, var(--c), var(--cd)); clip-path: polygon(0 0, 100% 0, 52% 100%, 0 100%); }
.sdx-award.modern::after { content: ""; position: absolute; right: 0; top: 0; width: 70mm; height: 26mm; background: color-mix(in srgb, var(--c) 14%, #fff); clip-path: polygon(30% 0, 100% 0, 100% 100%); }
.sdx-award.modern .frame { inset: 10mm 12mm 10mm 30mm; }
.sdx-award.modern .in { padding: 6mm 14mm 6mm; }
.sdx-award.modern .sn { font-family: Poppins, "Noto Sans Devanagari", sans-serif; font-size: 16pt; color: var(--cd); }
.sdx-award.modern .tt { font-family: Poppins, "Noto Sans Devanagari", sans-serif; font-weight: 800; font-size: 28pt; letter-spacing: .02em; text-transform: uppercase; color: #111827; }
.sdx-award.modern .tt span { font-family: "Noto Sans Devanagari", Poppins, sans-serif; color: var(--c); }
.sdx-award.modern .lead { font-style: normal; color: #6b7280; }
.sdx-award.modern .nm { font: 700 30pt/1.2 Poppins, "Noto Sans Devanagari", sans-serif; color: var(--c); border-bottom: .6mm solid color-mix(in srgb, var(--c) 30%, #fff); }
.sdx-award.modern .body { font-family: Poppins, "Noto Sans Devanagari", sans-serif; font-size: 12pt; }
.sdx-award.modern .sg i { border-color: #9ca3af; }
.sdx-award.modern .seal .sl { color: #fff; background: var(--c); box-shadow: 0 0 0 1.2mm #fff, 0 0 0 1.8mm var(--c); font-family: Poppins, sans-serif; }

/* =====================================================================
   PRINTING from the PC pages (js/pc-docs.js fills #sdxPrint)
   ===================================================================== */
#sdxPrint { display: none; }
@media print {
  body.sdx-printing > *:not(#sdxPrint) { display: none !important; }
  body.sdx-printing #sdxPrint { display: block !important; }
  body.sdx-printing { margin: 0 !important; padding: 0 !important; background: #fff !important; min-width: 0 !important; }
  #sdxPrint .sdx-page { break-after: page; page-break-after: always; box-shadow: none !important; margin: 0 !important; }
  #sdxPrint .sdx-page:last-child { break-after: auto; page-break-after: auto; }
}
