/* Version 8: refined visual system and content routing */
.ui-icon{display:inline-block;flex-shrink:0;width:20px;height:20px;vertical-align:middle;stroke-width:1.8;}
.ui-arrow{width:17px;height:17px}
.hero-actions .btn{gap:11px;min-height:49px;font-size:.95rem;letter-spacing:.005em;}
.hero-actions .btn .ui-arrow{margin-left:3px}
.social-row{display:flex;gap:10px 22px;align-items:center}
.social-row a,.social-row>span{display:inline-flex;gap:7px;align-items:center;white-space:nowrap;color:#e5ecf5}
.social-row .ui-icon{width:17px;height:17px;color:#f3c767}
.social-row span[data-profile-location]{font-size:inherit}
.metrics-grid{padding:25px 0;gap:0}
.metric{gap:12px;padding:10px 15px;align-items:center;min-width:0}
.metric-icon{flex-shrink:0;width:42px;height:42px;border-radius:12px;}
.metric-icon .ui-icon{width:21px;height:21px;color:#092e51}
.metric strong{font-size:1.7rem;letter-spacing:-.02em}
.metric span{font-size:.76rem;line-height:1.35}
.metric small{line-height:1.55;margin-top:3px}
.cta-band{padding:42px 0}
.cta-item{grid-template-columns:38px minmax(0,1fr) 20px;gap:15px;align-items:start;padding:0 24px}
.cta-item strong{font-size:.92rem;color:#ffd16b;line-height:1.45}
.cta-item span:not(.cta-icon):not(.cta-arrow){line-height:1.65}
.cta-icon{width:34px;height:34px;background:rgba(255,209,107,.10);border:1px solid rgba(255,209,107,.28);border-radius:9px;display:grid;place-items:center;color:#ffd16b!important}
.cta-icon .ui-icon{width:18px;height:18px}
.cta-arrow{padding-top:4px!important;line-height:1}
.cta-arrow .ui-icon{width:18px;height:18px;color:#ffd16b}
.credentials-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.credential-premium{padding:0;text-align:left;display:grid;grid-template-columns:112px minmax(0,1fr);align-items:stretch;min-height:135px;overflow:hidden;border-color:#d7dfea;border-radius:15px;box-shadow:0 6px 18px rgba(10,34,61,.055);transition:transform .18s,box-shadow .18s}
.credential-premium:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(10,34,61,.11)}
.credential-art{background:#f1f4f7;min-height:132px;display:flex;align-items:center;justify-content:center;padding:9px}
.credential-art img{display:block;width:100%;max-height:112px;object-fit:contain;object-position:center}
.credential-info{padding:16px 13px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px}
.credential-info strong{font-size:.96rem;line-height:1.36}
.credential-provider{font-size:.7rem;color:#a17825;font-weight:850;letter-spacing:.035em}
.credential-premium small{font-size:.72rem;line-height:1.5}
.research-directory .section-intro{max-width:430px}
.research-group{margin:34px 0 44px}
.research-group-header{display:flex;justify-content:space-between;align-items:baseline;gap:15px;border-bottom:1px solid #dce4ed;padding:0 0 13px;margin:0 0 20px}
.research-group-header h3{font:700 clamp(1.5rem,2.6vw,2.1rem)/1.15 Georgia,serif;color:var(--navy);margin:0}
.research-group-header span{font-size:.76rem;color:#7a8693}
.research-card .research-file-viewer{margin-top:18px;border-top:1px solid #e7e9ed;padding-top:15px}
.research-card .research-file-viewer summary{color:#08558a;cursor:pointer;font-weight:700}
.research-card .research-file-viewer iframe{margin-top:13px;display:block;width:100%;min-height:380px;border:1px solid #e2e5e9;border-radius:8px}
.research-card .research-file-viewer img{margin-top:12px;max-width:100%;height:auto}
.research-intro-link{display:flex;gap:18px;justify-content:space-between;align-items:center;border:1px solid #e2e8ef;border-radius:14px;background:#f6f9fc;padding:22px 24px;margin-top:30px;color:#43556c;font-size:.92rem}
.research-intro-link .btn{white-space:nowrap}
.project-update-card{padding:24px;border:1px solid #dde5ed;border-radius:16px;background:#fff;box-shadow:0 8px 30px #1028400c;color:#41546b}
.project-update-card img{max-width:min(100%,720px);max-height:500px;object-fit:contain;display:block;margin:18px auto}
.project-embedded-document iframe{width:100%;height:620px;border:1px solid #dce3ec;border-radius:9px}
.project-embedded-document img{max-width:100%;height:auto}
[hidden]{display:none!important}
@media(max-width:1130px){.metrics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.metric:nth-child(3){border-right:0}.credential-premium{grid-template-columns:92px minmax(0,1fr)}}
@media(max-width:800px){.credentials-row{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cta-item{padding:16px 8px}}
@media(max-width:560px){.credentials-row{grid-template-columns:1fr}.credential-premium{grid-template-columns:105px minmax(0,1fr)}.metrics-grid{grid-template-columns:1fr}.metric{border-right:0!important}.research-intro-link{flex-direction:column;align-items:flex-start}.cta-item{grid-template-columns:34px minmax(0,1fr) 20px}}

/* Version 9: certificate layout fix — a single shared responsive grid */
.cert-grid[data-certificate-library]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch;margin-top:22px}
.cert-grid[data-certificate-library] > [data-dynamic-certifications]:not([hidden]){display:contents!important}
.cert-grid[data-certificate-library] .cert-card{min-width:0;display:flex;flex-direction:column;height:100%;box-shadow:0 8px 25px rgba(8,29,55,.055)}
.cert-grid[data-certificate-library] .cert-image{height:205px;min-height:205px;overflow:hidden;padding:16px;background:linear-gradient(150deg,#f5f7fa,#eff2f5)}
.cert-grid[data-certificate-library] .cert-image img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.cert-grid[data-certificate-library] .cert-body{display:flex;flex:1;flex-direction:column;gap:8px;padding:20px}
.cert-grid[data-certificate-library] .cert-body h3{font-size:1.08rem;line-height:1.35;margin:0}
.cert-grid[data-certificate-library] .cert-body p{margin:0;color:#697c91;line-height:1.5}
.cert-grid[data-certificate-library] .cert-actions{margin-top:auto;padding-top:8px;gap:18px}
.cert-text-cover{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%;max-width:260px;gap:12px;color:#183f61}
.cert-text-cover span{font-weight:750;font-size:.74rem;text-transform:uppercase;letter-spacing:.06em;color:#8e6a2a}
.cert-text-cover strong{font-size:1.1rem;font-family:Georgia,serif;line-height:1.35}
.cert-preview-pdf{width:min(83vw,1000px);height:80vh;border:0;border-radius:9px;background:#fff}
.modal [hidden]{display:none!important}
@media(max-width:1000px){.cert-grid[data-certificate-library]{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media(max-width:650px){.cert-grid[data-certificate-library]{grid-template-columns:1fr;gap:18px}.cert-grid[data-certificate-library] .cert-image{height:220px}}

/* Version 9.1: certificate document link sits alongside the enlarge/verify actions. */
.cert-grid[data-certificate-library] .cert-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px 17px;margin-top:auto;padding-top:12px;}
.cert-grid[data-certificate-library] .cert-actions a{display:inline-flex;align-items:center;min-height:30px;white-space:nowrap;text-underline-offset:3px;}
.cert-grid[data-certificate-library] .cert-actions a:focus-visible{outline:2px solid #d2a844;outline-offset:3px;border-radius:2px;}
.modal-content{width:min(100%,1000px)}
.modal-content>img{display:block;margin:auto;max-width:100%;width:auto;height:auto;object-fit:contain}
.modal .cert-preview-pdf{display:block;width:100%;height:min(83vh,920px)}
@media(max-width:650px){.modal{padding:17px}.modal .cert-preview-pdf{height:76vh}.modal-close{right:4px;top:4px;z-index:2}}

/* V10: adaptable multi-file project and research portfolios */
.portfolio-files{border:1px solid #d7e3eb;border-radius:15px;background:#fff;padding:16px;min-width:0;margin:15px 0 22px}.portfolio-files h3{margin:2px 0 12px;color:#103454;font-size:1.03rem}.portfolio-file-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;max-height:240px;overflow:auto}.portfolio-file-tabs button{border:1px solid #ccdae4;border-radius:9px;background:#f6fafc;padding:9px 13px;font-size:.79rem;font-weight:750;color:#17425c;cursor:pointer;overflow-wrap:anywhere;text-align:left}.portfolio-file-tabs button.active{background:#0a304e;color:#fff;border-color:#0a304e}.portfolio-file-preview{min-width:0;min-height:90px;background:#f5f8fa;border-radius:10px;overflow:auto;display:grid;place-items:center}.portfolio-file-preview iframe{display:block;border:0;width:100%;height:590px;background:white}.portfolio-file-preview img{display:block;max-width:100%;max-height:650px;object-fit:contain;margin:auto}.portfolio-file-preview video{max-width:100%;max-height:600px}.portfolio-file-preview audio{width:100%;margin:25px}.portfolio-file-text{white-space:pre-wrap;overflow-wrap:anywhere;width:100%;max-height:630px;overflow:auto;padding:18px;color:#234b64;font-size:.79rem;line-height:1.65;margin:0}.portfolio-file-note{padding:15px 18px;color:#60778b;line-height:1.65;font-size:.83rem}.research-card .portfolio-files{width:100%}.research-card .portfolio-file-preview iframe{height:440px}@media(max-width:660px){.portfolio-file-tabs{display:grid;grid-template-columns:1fr 1fr}.portfolio-file-preview iframe{height:480px}.portfolio-files{padding:10px}.research-card .portfolio-file-preview iframe{height:380px}}

.viewer-section:has(> [data-project-attachments]:empty){display:none}

/* Give file-heavy research cards a full-width reading area when available. */
.research-grid > .research-card:has(.research-file-viewer){grid-column:1/-1;}
