.jdv-card-wrap{max-width:620px;margin:32px auto;padding:32px 22px;border:1px solid #e6e9ed;border-radius:20px;background:#fff;color:#17263b;text-align:center;box-shadow:0 12px 35px rgba(0,0,0,.06)}
.jdv-card-identity .jdv-headshot{width:122px;height:122px;object-fit:cover;border-radius:50%;margin:0 auto 16px;display:block}
.jdv-card-identity h1{font-size:clamp(25px,4vw,36px);margin:0 0 8px}.jdv-card-identity p{margin:4px 0;color:#536074}
.jdv-card-actions,.jdv-card-secondary{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:24px 0}.jdv-action,.jdv-share,.jdv-qr-downloads button{display:inline-block;cursor:pointer;padding:12px 17px;border-radius:9px;background:#173c64;color:#fff!important;text-decoration:none!important;border:0;font:inherit;font-size:15px;line-height:1.25}
.jdv-action:hover,.jdv-share:hover,.jdv-qr-downloads button:hover{background:#295884;color:white}.jdv-card-share{border-top:1px solid #e6e9ed;padding-top:22px}.jdv-card-share h2{font-size:21px}
.jdv-qr{text-align:center}.jdv-qr-graphic{width:var(--jdv-qr-size,220px);max-width:100%;margin:12px auto}.jdv-qr-graphic svg{width:100%;height:auto;display:block}.jdv-qr-downloads{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:12px auto}.jdv-qr-downloads button{background:#eef2f7;color:#173c64!important;padding:9px 14px;font-size:13px}.jdv-qr-fallback{overflow-wrap:anywhere;font-size:13px}.jdv-share{margin-top:12px}
@media(max-width:480px){.jdv-card-wrap{padding:24px 14px;margin:12px auto}.jdv-card-actions .jdv-action{flex:1 1 42%}}

/* Directory grid, scoped to its shortcode to avoid interfering with Divi. */
.jdv-employee-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:980px;margin:0 auto}
.jdv-employee-directory-item{background:#fff;border:1px solid #e4e9ef;border-radius:12px;padding:28px 18px;text-align:center;display:flex;flex-direction:column;align-items:center;min-width:0}
.jdv-employee-directory .jdv-directory-headshot{display:block!important;width:126px!important;height:126px!important;max-width:100%;border-radius:50%;object-fit:cover;margin:0 auto 18px}
.jdv-directory-placeholder{background:#edf1f5;color:#0c3957;display:flex!important;align-items:center;justify-content:center}
.jdv-directory-placeholder .dashicons{font-size:46px;width:46px;height:46px}
.jdv-employee-directory .jdv-directory-name{font-size:23px;line-height:1.25;color:#0c3957;margin:0 0 8px;padding:0}
.jdv-employee-directory .jdv-directory-title{font-size:15px;color:#607183;line-height:1.4;margin:0 0 22px;padding:0}
.jdv-employee-directory .jdv-directory-link{display:inline-block;margin-top:auto;padding:11px 24px;border-radius:5px;background:#0c3957;color:#fff!important;text-decoration:none!important;font-size:15px;font-weight:600}
.jdv-employee-directory .jdv-directory-link:hover,.jdv-employee-directory .jdv-directory-link:focus{background:#17547c;color:#fff!important}
@media(max-width:767px){.jdv-employee-directory{grid-template-columns:1fr;gap:16px}}

/* Directory polish: explicit selectors override Divi's default image/link styles. */
.jdv-employee-directory .jdv-employee-directory-item {
  padding: 28px 22px 26px;
  border: 1px solid #dfe6ed; border-radius: 14px;
  background: #fff; box-shadow: 0 4px 16px rgba(13, 57, 86, .06);
}
.jdv-employee-directory .jdv-employee-directory-item img.jdv-directory-headshot,
.jdv-employee-directory .jdv-employee-directory-item .jdv-directory-placeholder {
  width: 126px !important; height: 126px !important;
  min-width: 126px; min-height: 126px; aspect-ratio: 1 / 1;
  border-radius: 50% !important; object-fit: cover !important;
  object-position: center center; overflow: hidden;
  display: block; margin: 0 auto 20px !important; padding: 0;
}
.jdv-employee-directory .jdv-directory-placeholder { display: flex !important; }
.jdv-employee-directory .jdv-employee-directory-item a.jdv-directory-link {
  display: inline-block !important; width: auto; min-width: 132px;
  padding: 11px 22px !important; margin: auto 0 0 !important;
  border: 1px solid #0d3956; border-radius: 6px !important;
  background: #0d3956 !important; color: #fff !important;
  font-weight: 600; font-size: 15px; line-height: 1.4;
  text-align: center; text-decoration: none !important;
  transition: background-color .15s ease;
}
.jdv-employee-directory .jdv-employee-directory-item a.jdv-directory-link:hover,
.jdv-employee-directory .jdv-employee-directory-item a.jdv-directory-link:focus-visible {
  background: #17628e !important; color: #fff !important;
}

/* Directory sorting controls */
.jdv-directory-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;max-width:980px;margin:0 auto 20px}
.jdv-directory-controls label{font-size:14px;font-weight:600;color:#0d3956}
.jdv-directory-controls select.jdv-directory-sort{width:auto;max-width:100%;min-width:220px;padding:10px 32px 10px 12px;border:1px solid #c9d5e0;border-radius:6px;background-color:#fff;color:#0d3956;font-size:14px;cursor:pointer}
@media(max-width:480px){.jdv-directory-controls{justify-content:stretch}.jdv-directory-controls select.jdv-directory-sort{flex:1;min-width:0}}
