.cmgs-directory .cmgs-group{margin:0 0 48px}.cmgs-directory .cmgs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.cmgs-directory .cmgs-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #e4e8ed;border-radius:8px;overflow:hidden;box-shadow:0 5px 18px #2030400a}.cmgs-directory .cmgs-photo-link{display:block;background:#f2f4f6}.cmgs-directory img.cmgs-photo{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:center 25%;margin:0;border-radius:0}.cmgs-card-body{padding:22px}.cmgs-directory .cmgs-card h3{font-size:21px;line-height:1.35;margin:0 0 8px}.cmgs-directory .cmgs-card h3 a{color:#21374c}.cmgs-directory .cmgs-card h3 a:hover{color:#be4c00}.cmgs-role{font-size:15px;line-height:1.5;color:#596570;margin:0 0 16px}.cmgs-contacts{display:flex;flex-direction:column;gap:6px;overflow-wrap:anywhere}.cmgs-contacts a{color:#31699a;text-decoration:underline}.cmgs-placeholder{display:flex;align-items:center;justify-content:center;aspect-ratio:1;background:#eef1f4;color:#66727e;font-size:15px}.cmgs-profile{display:grid;grid-template-columns:minmax(180px,280px) minmax(0,1fr);gap:36px;margin:24px 0}.cmgs-profile .cmgs-photo{display:block;width:100%;height:auto;margin:0}.cmgs-profile .cmgs-roles{margin:0 0 20px;padding-left:20px}.cmgs-details{margin-top:28px;overflow-x:auto}.cmgs-details table{width:100%;border-collapse:collapse}.cmgs-details td{padding:12px;border-bottom:1px solid #e4e8ed;vertical-align:top}.cmgs-details td:first-child{font-weight:600;min-width:135px}.cmgs-directory a:focus-visible,.cmgs-profile a:focus-visible{outline:3px solid #31699a;outline-offset:3px}@media(max-width:999px){.cmgs-directory .cmgs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.cmgs-directory .cmgs-grid,.cmgs-profile{grid-template-columns:1fr}.cmgs-profile-photo{max-width:280px}.cmgs-profile{gap:24px}}

/* Optional compact list, matching the original Joomla directory. */
.cmgs-directory .cmgs-list{display:block;border-top:1px solid #e6e6e6}
.cmgs-directory .cmgs-list-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,32%);gap:8px 24px;padding:12px 14px;margin:0;border-bottom:1px solid #e6e6e6;background:#fff}
.cmgs-directory .cmgs-list-row:nth-child(odd){background:#f7f7f7}
.cmgs-directory .cmgs-list-person{min-width:0}
.cmgs-directory .cmgs-list-row h3{font-family:inherit;font-size:18px;font-weight:500;line-height:1.5;letter-spacing:normal;text-transform:none;margin:0;padding:0}
.cmgs-directory .cmgs-list-row h3 a,.cmgs-directory .cmgs-list-row .cmgs-contacts a{color:#be4c00;text-decoration:none}
.cmgs-directory .cmgs-list-row a:hover{text-decoration:underline}
.cmgs-directory .cmgs-list-row .cmgs-role{font-size:16px;line-height:1.6;margin:0;padding:0;color:#67686e}
.cmgs-directory .cmgs-list-row .cmgs-contacts{gap:0;text-align:right;font-size:16px;line-height:1.6}
.cmgs-directory .cmgs-list-row .cmgs-contacts .cmgs-phone{color:#67686e}
@media(max-width:700px){.cmgs-directory .cmgs-list-row{grid-template-columns:minmax(0,1fr);gap:8px;padding:14px}.cmgs-directory .cmgs-list-row .cmgs-contacts{text-align:left}}

/* Keep list typography independent of Salient heading and paragraph rules. */
body .cmgs-directory .cmgs-list-row{padding:8px 10px;border-color:#ddd;gap:0 24px;font-family:inherit;font-size:18px;line-height:1.5}
body .cmgs-directory .cmgs-list-row:nth-child(odd){background:#f8f8f8}
body .cmgs-directory .cmgs-list-row .cmgs-list-person h3,
body .cmgs-directory .cmgs-list-row .cmgs-list-person h3 a{font-family:inherit!important;font-size:18px!important;font-weight:400!important;line-height:1.5!important;letter-spacing:normal!important;text-transform:none!important;margin:0!important;padding:0!important}
body .cmgs-directory .cmgs-list-row .cmgs-role,
body .cmgs-directory .cmgs-list-row .cmgs-contacts{font-family:inherit!important;font-size:18px!important;font-weight:400!important;line-height:1.5!important;letter-spacing:normal!important;margin:0!important;padding:0!important}
body .cmgs-directory .cmgs-list-row .cmgs-contacts a{font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0}
@media(max-width:700px){body .cmgs-directory .cmgs-list-row{padding:12px 10px;gap:6px}}

/* Portrait cards: preserve the whole original photograph. */
body .cmgs-directory .cmgs-card .cmgs-photo-link{display:block;aspect-ratio:3/4;background:#fff;line-height:0;overflow:hidden}
body .cmgs-directory .cmgs-card .cmgs-photo-link img.cmgs-photo{display:block;width:100%!important;max-width:100%!important;height:100%!important;aspect-ratio:auto;object-fit:contain;object-position:center center;margin:0!important;padding:0;border:0;border-radius:0}
body .cmgs-directory .cmgs-card .cmgs-placeholder{aspect-ratio:3/4;height:100%}
body .cmgs-directory .cmgs-card .cmgs-card-body h3,body .cmgs-directory .cmgs-card .cmgs-card-body h3 a{font-size:20px!important;line-height:1.35!important;font-weight:500;letter-spacing:normal;text-transform:none;margin:0 0 10px;padding:0}
body .cmgs-directory .cmgs-card .cmgs-card-body h3 a{color:#be4c00!important;text-decoration:none!important;box-shadow:none!important;background-image:none!important;border-bottom:0!important}
body .cmgs-directory .cmgs-card .cmgs-card-body h3 a:hover{color:#913a00!important;text-decoration:none!important}
body .cmgs-directory .cmgs-card .cmgs-contacts a{color:#be4c00!important}

/* Shared employee detail layout, independent of the post header in Salient. */
.cmgs-page-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:40px;align-items:start;margin-bottom:50px}
.cmgs-page-layout>*{min-width:0}
.cmgs-sidebar-card{padding:20px 30px 30px;background:#fff;box-shadow:0 5px 25px rgba(0,0,0,.1)}
.cmgs-sidebar-image{display:block;width:100%;height:auto;margin:40px 0 0!important}
.cmgs-sidebar .widget{margin-bottom:0}
.cmgs-main-profile .cmgs-employee-title{margin:0 0 28px}
.cmgs-main-profile .cmgs-profile{grid-template-columns:minmax(130px,30%) minmax(0,1fr);gap:24px;margin-top:0}
body .cmgs-profile ul.cmgs-roles{list-style:none!important;margin:0 0 24px!important;padding:0!important}
body .cmgs-profile ul.cmgs-roles>li{list-style:none!important;margin:0 0 12px!important;padding:14px 18px!important;background:#f7f7f7;border-left:3px solid #be4c00;color:#454545;font-size:17px;font-weight:500;line-height:1.6}
body .cmgs-profile ul.cmgs-roles>li::marker{content:""}
body .cmgs-profile ul.cmgs-roles>li>strong{display:block;margin-bottom:4px;color:#be4c00;font-size:15px;font-weight:700}
.cmgs-role-label{display:block}
@media(max-width:999px){.cmgs-page-layout{grid-template-columns:minmax(0,1fr)}.cmgs-page-layout>.cmgs-sidebar{display:none}}
@media(max-width:600px){.cmgs-main-profile .cmgs-profile{grid-template-columns:minmax(0,1fr)}}
