/* Jay Bhavani Foundation - Mangal Milan */
.jbf-mm-wrap{max-width:1100px;margin:20px auto;padding:22px;background:#fffdf9;border:1px solid #ead9b2;border-radius:16px;box-shadow:0 8px 26px rgba(80,20,10,.08);color:#34231e;font-family:inherit;box-sizing:border-box}
.jbf-mm-wrap *{box-sizing:border-box}.jbf-mm-wrap h2,.jbf-mm-wrap h3{color:#800b0b}.jbf-mm-wrap h2{font-size:24px;margin:10px 0}.jbf-mm-wrap h3{font-size:19px;border-bottom:2px solid #d7a63b;padding-bottom:8px;margin-top:26px}.jbf-mm-wrap h4{color:#7d1010}
.jbf-mm-brand{display:flex;gap:18px;align-items:center;border-bottom:2px solid #d7a63b;padding-bottom:16px;margin-bottom:18px}.jbf-mm-brand img{width:112px;height:112px;object-fit:contain;border-radius:50%}.jbf-mm-brand h2{margin:3px 0;font-size:18px}.jbf-mm-brand p{margin:4px 0;color:#8a1515;font-weight:700}
.jbf-mm-form{margin:0}.jbf-mm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.jbf-mm-field{display:flex;flex-direction:column;gap:6px;margin:0 0 10px;min-width:0}.jbf-mm-field span{font-weight:600;font-size:14px}.jbf-mm-field input,.jbf-mm-field select,.jbf-mm-field textarea{width:100%;max-width:100%;border:1px solid #d6c7b9;border-radius:8px;padding:11px 12px;background:#fff;min-height:42px;color:#2f2521}.jbf-mm-field input:focus,.jbf-mm-field select:focus,.jbf-mm-field textarea:focus{outline:2px solid #d7a63b;border-color:#8a1515}.jbf-mm-wide{grid-column:1/-1}.jbf-mm-subgroup{margin:12px 0}.jbf-mm-subgroup h4{margin:8px 0;font-size:16px}
.jbf-mm-rules{max-height:420px;overflow:auto;border:1px solid #dfcba2;border-radius:10px;padding:16px;background:#fff9eb;line-height:1.65}.jbf-mm-rules h4{margin:12px 0 4px}.jbf-mm-rules ol{padding-left:24px;margin-top:4px}.jbf-mm-consent{display:flex;align-items:flex-start;gap:10px;margin:18px 0;padding:14px;background:#fff3d2;border:1px solid #e0bd62;border-radius:8px;line-height:1.6}.jbf-mm-consent input{margin-top:5px;min-width:18px;min-height:18px}.jbf-mm-button{display:inline-block;background:#850e12!important;color:#fff!important;border:0;border-radius:8px;padding:12px 20px;font-weight:700;text-decoration:none;cursor:pointer}.jbf-mm-button:hover{background:#5c080a!important}
.jbf-mm-notice{padding:13px 16px;margin:12px 0;border-radius:8px;border-left:4px solid #9a741b;background:#fff5d9}.jbf-mm-success{border-color:#23834a;background:#eaf8ef}.jbf-mm-error{border-color:#b51c1c;background:#fff0f0}.jbf-mm-small{font-size:13px;color:#665a52}.jbf-mm-honey{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden}.jbf-mm-portal-head{text-align:center;padding:8px 8px 14px}.jbf-mm-portal-head p{margin:4px;color:#8a1515;font-weight:700}.jbf-mm-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #e5d5b9;padding:0 0 14px;margin-bottom:16px}.jbf-mm-tab{display:inline-block;padding:10px 14px;border:1px solid #dfcba2;border-radius:9px;background:#fff8e8;color:#6f1010;text-decoration:none;font-weight:700}.jbf-mm-tab.is-active{background:#850e12;color:#fff;border-color:#850e12}.jbf-mm-tab-content>.jbf-mm-wrap{margin:0;padding:0;border:0;box-shadow:none;background:transparent}.jbf-mm-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:16px}.jbf-mm-card{border:1px solid #e1d1b5;border-radius:12px;padding:16px;background:#fff;min-width:0;overflow-wrap:anywhere}.jbf-mm-card h3{margin-top:10px}.jbf-mm-member-photo{width:132px;height:156px;object-fit:cover;border-radius:12px;border:2px solid #e3c779;background:#fff}.jbf-mm-card .jbf-mm-member-photo{display:block;width:100px;height:120px}.jbf-mm-no-photo{width:132px;min-height:100px;padding:18px;background:#f8f0df;border-radius:10px;text-align:center}.jbf-mm-member-card{display:flex;align-items:flex-start;gap:20px;padding:16px;border:1px solid #e5d3a8;border-radius:12px;background:#fff9ec;margin:16px 0}.jbf-mm-member-card h3{margin:0 0 8px;border:0;padding:0}.jbf-mm-member-card p{margin:6px 0}.jbf-mm-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:8px}.jbf-mm-profile-grid p{padding:10px;border-bottom:1px solid #eee2d1;margin:0;overflow-wrap:anywhere}.jbf-mm-search{display:flex;gap:8px;margin:16px 0}.jbf-mm-search input[type=search]{flex:1;min-width:0;border:1px solid #d6c7b9;border-radius:8px;padding:12px}.jbf-mm-search .jbf-mm-button{flex-shrink:0}
@media(max-width:650px){.jbf-mm-wrap{padding:14px;margin:12px auto}.jbf-mm-grid{grid-template-columns:1fr}.jbf-mm-brand{align-items:flex-start;gap:10px}.jbf-mm-brand img{width:74px;height:74px}.jbf-mm-brand h2{font-size:15px}.jbf-mm-rules{max-height:350px}.jbf-mm-member-card{flex-direction:column}.jbf-mm-member-photo{width:110px;height:132px}.jbf-mm-search{flex-direction:column}.jbf-mm-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.jbf-mm-tab{text-align:center;padding:10px 6px;font-size:14px}}

/* Responsive profile layout and safe mobile sizing */
.jbf-mm-member-card{display:flex;align-items:flex-start;gap:18px;flex-wrap:wrap}
.jbf-mm-member-card>div{flex:1 1 240px;min-width:0}
.jbf-mm-member-photo{width:150px;height:180px;max-width:100%;object-fit:cover;border-radius:10px;display:block}
.jbf-mm-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:8px 18px;margin-top:18px}
.jbf-mm-profile-grid p{margin:0;padding:8px 0;border-bottom:1px solid #eee;overflow-wrap:anywhere}
.jbf-mm-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}
.jbf-mm-card{min-width:0;overflow-wrap:anywhere}
.jbf-mm-card .jbf-mm-member-photo{width:120px;height:145px}
.jbf-mm-tab-content,.jbf-mm-portal{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.jbf-mm-form input,.jbf-mm-form select,.jbf-mm-form textarea{max-width:100%;box-sizing:border-box}
@media(max-width:600px){.jbf-mm-member-card{flex-direction:column}.jbf-mm-member-photo{width:128px;height:154px}.jbf-mm-profile-grid{grid-template-columns:1fr}.jbf-mm-tabs{display:flex;flex-wrap:wrap;gap:6px}}

/* v1.2.0 responsive profile editing and print layout */
.jbf-mm-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.jbf-mm-field{min-width:0}.jbf-mm-field input,.jbf-mm-field select,.jbf-mm-field textarea{box-sizing:border-box;width:100%;max-width:100%}.jbf-mm-profile-actions{margin:18px 0}.jbf-mm-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px}.jbf-mm-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.jbf-mm-card img{max-width:100%;height:auto;object-fit:cover}.jbf-mm-portal nav{display:flex;flex-wrap:wrap;gap:8px}@media(max-width:640px){.jbf-mm-form,.jbf-mm-profile-grid{grid-template-columns:1fr}.jbf-mm-wrap{padding:12px!important}.jbf-mm-portal nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.jbf-mm-tab{min-width:0;text-align:center}.jbf-mm-search{display:flex;flex-direction:column;gap:8px}.jbf-mm-search input,.jbf-mm-search button{width:100%;box-sizing:border-box}.jbf-mm-member-card{display:flex;flex-direction:column;gap:12px}.jbf-mm-card{min-width:0;overflow-wrap:anywhere}}
@media print{body *{visibility:hidden!important}.jbf-mm-printable,.jbf-mm-printable *{visibility:visible!important}.jbf-mm-printable{position:absolute;left:0;top:0;width:100%;padding:0!important;box-shadow:none!important}.jbf-mm-profile-actions,.jbf-mm-form,.jbf-mm-notice{display:none!important}a{color:#000!important;text-decoration:none!important}}

/* v1.2.3: sequential, responsive registration form */
.jbf-mm-wrap{width:min(100% - 24px,1100px);margin:16px auto;padding:clamp(12px,2.5vw,26px);overflow:hidden}
.jbf-mm-form{display:block!important;width:100%;min-width:0}
.jbf-mm-form>h3{display:block;width:100%;margin:26px 0 12px}
.jbf-mm-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start;width:100%}
.jbf-mm-field{min-width:0;width:100%}
.jbf-mm-field input,.jbf-mm-field select,.jbf-mm-field textarea{min-width:0;width:100%;font-size:16px}
.jbf-mm-payment-panel{border:1px solid #dfcba2;border-radius:12px;padding:16px;background:#fff9eb;text-align:center;overflow-wrap:anywhere}
.jbf-mm-qr-box{max-width:480px;margin:14px auto;padding:14px;border:1px dashed #c9ad70;border-radius:12px;background:#fff}
.jbf-mm-qr-box img{display:block;width:min(100%,300px);height:auto;margin:12px auto;border:1px solid #ddd;border-radius:8px}
.jbf-mm-secondary{background:#5d5149!important;margin:6px}
.jbf-mm-consent{display:flex!important;align-items:flex-start;gap:12px;margin:18px 0;padding:14px;background:#fff3d2;border:1px solid #e0bd62;border-radius:8px;line-height:1.6}
.jbf-mm-consent input{flex:0 0 20px;width:20px;height:20px;margin:3px 0 0}
.jbf-mm-form button:disabled{opacity:.45;cursor:not-allowed}
#jbf-mm-submit-registration{width:auto;min-width:220px}
@media(max-width:760px){.jbf-mm-wrap{width:calc(100% - 16px);margin:8px auto;padding:14px}.jbf-mm-grid{grid-template-columns:minmax(0,1fr)!important;gap:8px}.jbf-mm-form>h3{font-size:17px;margin-top:22px}.jbf-mm-payment-panel{padding:12px}.jbf-mm-qr-box{padding:10px}.jbf-mm-brand{flex-wrap:wrap}.jbf-mm-brand img{max-width:72px;height:auto}.jbf-mm-button{max-width:100%;white-space:normal}}
@media(min-width:761px) and (max-width:1024px){.jbf-mm-wrap{padding:18px}.jbf-mm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v1.3.1: address sections shown in a clear linear sequence */
.jbf-mm-address-line{display:flex;flex-direction:column;gap:8px;max-width:100%}
.jbf-mm-address-line .jbf-mm-field{width:100%;margin-bottom:6px}
.jbf-mm-same-address{display:flex;align-items:center;gap:9px;margin:8px 0 12px;padding:10px 12px;border:1px solid #dfcba2;border-radius:8px;background:#fff8e8;font-weight:600}
.jbf-mm-same-address input{width:18px;height:18px;min-width:18px}
.jbf-mm-brand p{line-height:1.55;max-width:850px}

/* v1.3.4: directory appears as a sequential single-column list on the logged-in login view */
.jbf-mm-directory-list{display:flex!important;flex-direction:column!important;gap:10px!important;width:100%}
.jbf-mm-directory-list>.jbf-mm-card{display:block;width:100%;max-width:100%;padding:12px 16px;margin:0;border-radius:8px}
.jbf-mm-directory-list>.jbf-mm-card h3{display:block;margin:0 0 6px;padding:0 0 5px;font-size:17px}
.jbf-mm-directory-list>.jbf-mm-card p{display:block;margin:4px 0;line-height:1.45}


/* v1.3.6: Member directory follows the supplied landscape 14-column layout */
.jbf-mm-directory{max-width:100%;width:100%;overflow:hidden}
.jbf-mm-directory-scroll{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;border:1px solid #b9aa92;background:#fff;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.jbf-mm-directory-table{width:100%;min-width:1450px;border-collapse:collapse;table-layout:auto;background:#fff;color:#30251f;font-size:13px;line-height:1.35}
.jbf-mm-directory-table th,.jbf-mm-directory-table td{border:1px solid #8d8173;padding:10px 9px;text-align:center;vertical-align:middle;white-space:nowrap}
.jbf-mm-directory-table th{background:#fff5df;color:#641010;font-weight:700}
.jbf-mm-directory-table tbody tr:nth-child(even){background:#fffaf1}
.jbf-mm-directory-table tbody tr:hover{background:#fff0d0}
.jbf-mm-directory-table td:first-child{text-align:left;font-weight:600}
.jbf-mm-empty-value{color:#a69b8e}
@media(min-width:1100px){.jbf-mm-directory-table{min-width:0;font-size:12px}.jbf-mm-directory-table th,.jbf-mm-directory-table td{padding:9px 6px}}
@media(max-width:760px){.jbf-mm-directory{padding:12px!important}.jbf-mm-directory-table{min-width:1450px}.jbf-mm-directory-table th,.jbf-mm-directory-table td{padding:9px 8px;font-size:12px}}

/* v1.3.8: photo-led biodata directory */
.jbf-mm-directory-table .jbf-mm-directory-photo-cell{min-width:82px;text-align:center!important;font-weight:400!important;white-space:normal}
.jbf-mm-directory-photo-cell .jbf-mm-member-photo{display:block;width:64px;height:76px;max-width:none;object-fit:cover;margin:0 auto;border-radius:6px}
.jbf-mm-directory-photo-cell .jbf-mm-no-photo{width:64px;min-height:50px;padding:8px 2px;margin:0 auto;font-size:10px;box-sizing:border-box}
.jbf-mm-profile-grid{margin-top:16px}
