/* Sahitya Sanjeevani Founder Member Certificate — v9.2
 * One master artwork + live profile overlays. The fixed certificate copy stays
 * inside the artwork; only identity fields are rendered dynamically.
 */
.ssc-founder-profile-section,.ssc-founder-page,.ssc-founder-home-grid,.ssc-founder-home-intro{box-sizing:border-box}
.ssc-founder-profile-section{margin:2rem 0;padding:1.2rem;border:1px solid var(--line,#d9e1da);border-radius:22px;background:var(--surface,#fff)}
.ssc-founder-section-heading{text-align:center;margin:0 auto 1rem;max-width:900px}.ssc-founder-section-heading>span{display:inline-block;font-weight:800;color:var(--gold,#a97828);letter-spacing:.04em}.ssc-founder-section-heading h2{margin:.25rem 0;color:#74151b}.ssc-founder-section-heading p{margin:.15rem 0;color:var(--muted,#667067)}
.ssc-founder-certificate-card{width:100%;max-width:1180px;margin:0 auto;min-width:0}
.ssc-founder-certificate{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:16px;background:#f8efdc;color:#4f251d;box-shadow:0 14px 34px rgba(77,32,12,.18);font-family:"Noto Serif Devanagari","Noto Sans Devanagari",Mangal,"Nirmala UI",serif;isolation:isolate}
.ssc-cert-master{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:fill;z-index:0;pointer-events:none;user-select:none;-webkit-user-drag:none}

/* The portrait fills only the pale portrait window, leaving the original gold frame and “सदस्य का फोटो” plaque untouched. */
.ssc-founder-photo-slot{position:absolute;z-index:3;left:6.45%;top:29.10%;width:12.55%;height:16.95%;overflow:hidden;background:#ece4d7;border-radius:.35%;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px rgba(103,58,28,.08)}
.ssc-founder-photo-slot img{width:100%;height:100%;display:block;object-fit:contain;object-position:center center;padding:1.5%;box-sizing:border-box;background:#efe8dc}
.ssc-cert-photo-placeholder{width:100%;height:100%;display:block;background:transparent}

/* Covers only the old [सदस्य का नाम] placeholder and becomes the live name field. */
.ssc-founder-name-slot{position:absolute;z-index:4;left:32.70%;top:48.00%;width:34.60%;height:9.80%;display:flex;align-items:center;justify-content:center;text-align:center;padding:.08em .35em;overflow:hidden;color:#6c1118;font-family:"Noto Serif Devanagari","Noto Sans Devanagari",Mangal,"Nirmala UI",serif;font-weight:900;font-size:58px;line-height:1.04;white-space:nowrap;word-break:normal;overflow-wrap:normal;background:linear-gradient(90deg,rgba(255,249,235,.94),rgba(255,250,237,.995) 15%,rgba(255,250,237,.995) 85%,rgba(255,249,235,.94));box-shadow:0 0 16px 12px rgba(255,249,235,.82);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);border-radius:3px;text-shadow:0 .3px 0 rgba(255,255,255,.45)}
.ssc-founder-name-slot.is-two-line{white-space:normal;line-height:1.02;padding:.04em .55em}

/* Values sit immediately above the three pre-drawn lines. Labels stay in the master artwork. */
.ssc-founder-date-slot,.ssc-founder-number-slot,.ssc-founder-signature-slot{position:absolute;z-index:4;top:75.85%;height:3.2%;display:flex;align-items:flex-end;justify-content:center;text-align:center;padding:0 .25em;overflow:hidden;white-space:nowrap;text-overflow:clip;color:#4f251d;font-family:"Noto Sans Devanagari","Noto Serif Devanagari",Mangal,"Nirmala UI",sans-serif;font-size:22px;line-height:1.02;font-weight:700;background:rgba(255,249,235,.72);border-radius:4px}
.ssc-founder-date-slot{left:25.20%;width:14.85%}
.ssc-founder-number-slot{left:42.90%;width:14.85%}
.ssc-founder-signature-slot{left:60.75%;width:15.80%;font-weight:800}

.ssc-cert-accessible-copy{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.ssc-founder-certificate-actions{display:flex;gap:.7rem;justify-content:center;flex-wrap:wrap;margin-top:1rem}.ssc-founder-certificate-actions .ssc-btn{min-height:44px}.ssc-founder-certificate-actions.is-compact{margin-top:.55rem}.ssc-founder-certificate-actions.is-compact .ssc-btn{min-height:36px;padding:.45rem .7rem;font-size:.82rem}
.ssc-founder-home-intro{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.2rem;padding:1rem 1.1rem;border-radius:16px;background:var(--surface-alt,#f6f8f5);border:1px solid var(--line,#d9e1da)}.ssc-founder-home-intro p{margin:0}
.ssc-founder-home-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.85rem;align-items:start}.ssc-founder-home-grid .ssc-founder-certificate-card{margin:0;max-width:none}.ssc-founder-home-grid .ssc-founder-certificate{border-radius:9px;box-shadow:0 6px 16px rgba(77,32,12,.12)}
.ssc-founder-page-hero{text-align:center;max-width:960px;margin:0 auto 1.7rem;padding:1.3rem;border-radius:22px;background:linear-gradient(135deg,#5e0c14,#8f201a 54%,#b7781d);color:#fff;box-shadow:0 14px 36px rgba(73,26,17,.2)}.ssc-founder-page-hero span{font-weight:800;color:#f8d879}.ssc-founder-page-hero h1{margin:.2rem 0 .5rem;color:#fff;font-size:clamp(2rem,4vw,3.3rem)}.ssc-founder-page-hero p{margin:0 auto;max-width:820px;color:#fff7e5}.ssc-founder-page-grid{display:grid;grid-template-columns:1fr;gap:1.5rem;max-width:1180px;margin:0 auto}.ssc-founder-empty{padding:1.2rem;border:1px dashed var(--line,#d9e1da);border-radius:16px;text-align:center;background:var(--surface-alt,#f6f8f5)}
.ssc-founder-profile-badge{display:inline-flex;align-items:center;gap:.35rem;margin:.15rem 0 .45rem;padding:.38rem .7rem;border-radius:999px;background:linear-gradient(90deg,#74151b,#a96a18);color:#fff;font-weight:850;font-size:.85rem;box-shadow:0 6px 16px rgba(116,21,27,.18)}

/* JS calculates exact sizes, these limits are just safe fallbacks before it runs. */
.ssc-founder-certificate-card.is-compact .ssc-founder-name-slot{font-size:22px}
.ssc-founder-certificate-card.is-compact .ssc-founder-date-slot,.ssc-founder-certificate-card.is-compact .ssc-founder-number-slot,.ssc-founder-certificate-card.is-compact .ssc-founder-signature-slot{font-size:9px}

@media(max-width:1200px){.ssc-founder-home-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:980px){.ssc-founder-home-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ssc-founder-page-grid{grid-template-columns:1fr}.ssc-founder-home-intro{align-items:flex-start;flex-direction:column}}
@media(max-width:720px){.ssc-founder-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.ssc-founder-home-grid{grid-template-columns:1fr}.ssc-founder-profile-section{padding:.7rem}.ssc-founder-certificate{border-radius:10px}.ssc-founder-certificate-actions{display:grid;grid-template-columns:1fr}.ssc-founder-certificate-actions .ssc-btn{width:100%;text-align:center}.ssc-founder-certificate-card.is-compact .ssc-founder-name-slot{font-size:24px}}

/* v9.4 — certificates on a member ID/profile use the same compact card scale as homepage previews. */
.ssc-profile-certificates{overflow:hidden}
.ssc-profile-certificates-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,280px));gap:1rem;justify-content:center;align-items:start}
.ssc-profile-certificates-grid .ssc-founder-certificate-card{max-width:280px;margin:0}
.ssc-profile-certificates-grid .ssc-founder-certificate{border-radius:9px;box-shadow:0 6px 16px rgba(77,32,12,.12)}
.ssc-profile-certificates-grid .ssc-founder-certificate-actions{margin-top:.6rem}
.ssc-profile-certificates-grid .ssc-founder-certificate-actions .ssc-btn{min-height:38px;padding:.5rem .8rem;font-size:.84rem}
.ssc-certificate-owner-note{margin:.55rem auto 0;max-width:720px;color:#6d1118;font-weight:750}
@media(max-width:520px){.ssc-profile-certificates-grid{grid-template-columns:minmax(0,280px)}}

.ssc-certificate-shelf-empty{grid-column:1/-1;padding:1rem;border:1px dashed var(--line,#d9e1da);border-radius:12px;background:var(--surface-alt,#f6f8f5);text-align:center;color:var(--muted,#667067);font-size:.86rem}
