/* The YBDC — BDE's personal digital ID card. Matches the Emerald & Gold theme. */
.ybdc-self-id-section{display:grid;gap:16px;max-width:640px;margin:0 0 20px;padding:20px;border:1px solid #557257;border-radius:17px;background:linear-gradient(160deg,#0c291f,#071b16);box-sizing:border-box}
.ybdc-self-id-section-info h3{margin:0;color:#eac875;font-size:18px}
.ybdc-self-id-section-info p{margin:6px 0 0;color:#c7d7c6;font-size:12px;line-height:1.55}
.ybdc-self-id-section .ybdc-self-id-open{justify-self:start}
.sidebar .ybdc-self-id-nav{color:#edcf94!important}
.ybdc-self-id-card{position:relative;isolation:isolate;box-sizing:border-box;overflow:hidden;width:100%;max-width:520px;min-height:250px;border:1px solid #bc9951;border-radius:17px;padding:20px 23px;display:flex;flex-direction:column;gap:17px;color:#f9f3e5;background:radial-gradient(circle at 96% -4%,#17714d 0,transparent 43%),linear-gradient(135deg,#07422f,#041c15 96%);box-shadow:0 13px 30px #0005;font:inherit}
.ybdc-self-id-card::after{content:'';position:absolute;pointer-events:none;z-index:-1;right:-58px;bottom:-80px;width:245px;height:245px;border-radius:50%;border:1px solid #d2a9574a;box-shadow:0 0 0 35px #c4983011,0 0 0 71px #c4983009}
.ybdc-self-id-brand{display:flex;align-items:center;gap:11px}
.ybdc-self-id-brandmark{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;color:#f1ca74;font:900 22px Georgia,serif;border:1px solid #f1ca7477;border-radius:50%}
.ybdc-self-id-brandmark img{max-width:100%;max-height:100%;object-fit:contain}
.ybdc-self-id-brand strong{display:block;color:#f4cf80;font:700 21px Georgia,serif;letter-spacing:1px}
.ybdc-self-id-brand small{display:block;color:#d1dbc9;font-size:9px;letter-spacing:.06em;text-transform:uppercase;margin-top:3px}
.ybdc-self-id-person{display:flex;align-items:center;gap:14px;min-width:0}
.ybdc-self-id-initials{flex:0 0 65px;width:65px;height:65px;display:grid;place-items:center;background:#246445;color:#f6db92;border:1px solid #a7bb9a77;border-radius:13px;font-weight:850;font-size:24px}
.ybdc-self-id-person>div:last-child{min-width:0}
.ybdc-self-id-name{display:block;color:#fff;font-size:20px;line-height:1.25;font-weight:800;overflow-wrap:anywhere}
.ybdc-self-id-job{display:block;color:#f3cb70;font-size:10px;letter-spacing:.07em;font-weight:700;margin-top:6px}
.ybdc-self-id-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:12px;border-top:1px solid #c4d9be33}
.ybdc-self-id-fields small{display:block;color:#b7c7ae;font-size:9px;letter-spacing:.06em;margin-bottom:5px}
.ybdc-self-id-fields strong{display:block;color:#f8f5ea;font-size:13px;overflow-wrap:anywhere}
.ybdc-self-id-footer{color:#d6e0c9;font-size:11px;overflow-wrap:anywhere}
.ybdc-self-id-overlay{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;background:#000c;padding:14px;box-sizing:border-box;overflow:auto}
.ybdc-self-id-dialog{box-sizing:border-box;width:min(100%,550px);max-height:calc(100dvh - 28px);overflow:auto;padding:20px;border-radius:19px;border:1px solid #537254;background:#09231a;box-shadow:0 25px 90px #0009;color:#fff}
.ybdc-self-id-dialog .ybdc-self-id-card{max-width:none;min-height:285px}
.ybdc-self-id-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:15px}
.ybdc-self-id-dialog-head h2{font-size:18px;margin:0;color:#edd188}
.ybdc-self-id-close{border:0;border-radius:9px;background:#20513c;color:#fff;font-size:24px;width:43px;height:43px;cursor:pointer}
.ybdc-self-id-dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:16px}
.ybdc-self-id-print{border:0;border-radius:9px;background:#e5c478;color:#11281f;font-size:13px;font-weight:800;min-height:43px;padding:10px 17px;cursor:pointer}
.ybdc-self-id-disclaimer{font-size:11px!important;line-height:1.5;color:#b9caba!important;margin:13px 0 0!important}
@media(max-width:480px){.ybdc-self-id-section{padding:14px}.ybdc-self-id-card{padding:16px;min-height:225px;gap:13px}.ybdc-self-id-name{font-size:17px}.ybdc-self-id-brand strong{font-size:18px}.ybdc-self-id-initials{flex-basis:54px;width:54px;height:54px;font-size:20px}.ybdc-self-id-fields strong{font-size:11px}.ybdc-self-id-dialog{padding:12px}}
@media print{
 @page{size:A5 landscape;margin:10mm}
 body>*:not(#ybdcSelfIdOverlay){display:none!important}
 #ybdcSelfIdOverlay{position:static!important;display:block!important;padding:0!important;background:none!important}
 #ybdcSelfIdOverlay .ybdc-self-id-dialog{display:block!important;overflow:visible!important;max-height:none!important;width:100%!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
 #ybdcSelfIdOverlay .ybdc-self-id-dialog-head,#ybdcSelfIdOverlay .ybdc-self-id-dialog-actions,#ybdcSelfIdOverlay .ybdc-self-id-disclaimer{display:none!important}
 #ybdcSelfIdOverlay .ybdc-self-id-card{max-width:none!important;width:100%!important;min-height:280px!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}
}
