.md-doctor-author,.md-doctor-card{box-sizing:border-box;min-width:0;font-family:Montserrat,sans-serif}
.md-doctor-author{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(0,1.2fr);align-items:center;gap:clamp(24px,4vw,64px);padding:20px 0;color:inherit}
.md-doctor-author .md-doctor-author-portrait{display:flex;align-items:center;justify-content:center;justify-self:center;width:clamp(160px,22vw,280px);max-width:100%;aspect-ratio:1;border:7px solid #fff;border-radius:50%;background:#edf7ff;color:#087fc5;overflow:hidden;box-sizing:border-box}
.md-doctor-author-portrait img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover;border:0!important;border-radius:50%!important;margin:0!important}
.md-doctor-author-portrait>svg{width:44%;height:44%;flex-shrink:0}
.md-doctor-author-info{min-width:0;text-align:center}
.md-doctor-author .md-doctor-author-name{margin:0!important;color:inherit!important;font-family:inherit!important;font-size:clamp(28px,3.4vw,46px)!important;font-weight:700!important;line-height:1.2!important;overflow-wrap:anywhere;text-wrap:balance}
.md-doctor-author .md-doctor-author-specialty{margin:14px 0 0!important;color:inherit!important;font-family:inherit!important;font-size:clamp(17px,2vw,25px)!important;font-weight:400;line-height:1.5;overflow-wrap:anywhere;text-wrap:balance}
.md-doctor-author-no-photo{grid-template-columns:minmax(0,1fr)}
.md-doctor-card{width:100%;padding:clamp(22px,4vw,48px);border-radius:30px;background-image:linear-gradient(rgba(248,248,248,.21),rgba(248,248,248,.21)),linear-gradient(148deg,#008cab 0%,#008eff 78%);color:#fff;box-shadow:0 10px 28px rgba(24,42,72,.14)}
.md-doctor-card a[hidden]{display:none!important}
.md-doctor-card-top{display:flex;justify-content:flex-end}
.md-doctor-card .md-doctor-card-recommend{position:relative;display:inline-flex;align-items:center;gap:9px;max-width:100%;min-height:44px;padding:11px 16px;border-radius:14px;background:#ff4e55;color:#fff!important;font-size:14px;font-weight:600;line-height:1.3;text-decoration:none;box-sizing:border-box}
.md-doctor-card-recommend::after{content:"";position:absolute;left:23px;bottom:-6px;width:14px;height:14px;background:inherit;transform:rotate(45deg);border-radius:2px}
.md-doctor-card-recommend svg{flex:0 0 20px;width:20px!important;height:20px!important}
.md-doctor-card>.md-doctor-author{padding-top:26px;padding-bottom:38px;color:#fff}
.md-doctor-card-licenses{max-width:100%;min-width:0;overflow-x:auto;border-radius:14px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.7) transparent;-webkit-overflow-scrolling:touch}
.md-doctor-card-licenses .medgyd-license-table-wrap{width:100%;overflow:visible}
.md-doctor-card-licenses .medgyd-license-table{width:100%;min-width:660px;margin:0!important;box-shadow:none;table-layout:fixed;border-collapse:separate!important;border-spacing:0}
.md-doctor-card-licenses .medgyd-license-table :is(th,td){padding:14px 12px!important;color:#fff!important;border:0!important;font-size:13px!important;line-height:1.5!important;overflow-wrap:anywhere}
.md-doctor-card-licenses .medgyd-license-table th{background:rgba(255,255,255,.3)!important;font-weight:700}
.md-doctor-card-licenses .medgyd-license-table td{background:rgba(255,255,255,.17)!important;font-weight:400}
.md-doctor-card-licenses .medgyd-license-table tbody tr:hover td{background:rgba(255,255,255,.24)!important}
.md-doctor-card-scroll-hint{display:none;margin:8px 0 0!important;font-size:11px;line-height:1.5;color:#fff!important}
.md-doctor-card .medgyd-license-summary{margin:24px 0 0!important;padding:0!important;color:#fff!important;font-size:14px;line-height:1.8}
.md-doctor-card .medgyd-license-summary>h2{display:inline!important;margin:0!important;color:#fff!important;font-size:inherit!important;font-weight:700!important}
.md-doctor-card .medgyd-license-summary>.medgyd-profile-text{display:inline;color:#fff!important;font-size:inherit;line-height:inherit}
.md-doctor-card-breadcrumb{margin-top:24px;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.md-doctor-card-breadcrumb :is(nav,p){margin:0!important;padding:0!important;font-size:inherit!important;line-height:inherit!important;color:#fff!important}
.md-doctor-card-breadcrumb :is(a,span){color:#fff!important;font-size:inherit!important;text-decoration:none}
.md-doctor-card-breadcrumb a:hover{text-decoration:underline}
.md-doctor-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:28px}
.md-doctor-card .medgyd-profile-actions{display:contents}
.md-doctor-card-actions :is(.medgyd-status-pill,.medgyd-leave-review,.md-doctor-card-faq){display:inline-flex!important;align-items:center;justify-content:center;gap:9px;max-width:100%;min-height:46px;margin:0!important;padding:12px 16px!important;border:1px solid rgba(255,255,255,.45)!important;border-radius:999px!important;background:#eef7fc!important;color:#075b91!important;font:600 13px/1.5 Montserrat,sans-serif!important;white-space:normal;overflow-wrap:anywhere;text-decoration:none;box-sizing:border-box}
.md-doctor-card-actions .medgyd-verified::before{content:"✓";display:inline-grid;place-items:center;flex:0 0 20px;width:20px;height:20px;border-radius:5px;background:#087fc5;color:#fff;font-size:13px}
.md-doctor-card-actions .md-doctor-card-faq{margin-left:auto!important;flex:0 0 auto}
.md-doctor-card-actions svg{width:18px!important;height:18px!important;flex:0 0 18px}
.md-doctor-card-actions a:hover{background:#fff!important;color:#075b91!important}
.md-doctor-card :is(a,[tabindex]):focus-visible{outline:3px solid #fff;outline-offset:4px}
.md-doctor-card-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:767px){
 .md-doctor-card{padding:24px 20px;border-radius:22px}
 .md-doctor-author{grid-template-columns:minmax(0,1fr);gap:22px;padding:12px 0}
 .md-doctor-author .md-doctor-author-portrait{width:154px;border-width:5px}
 .md-doctor-author .md-doctor-author-name{font-size:27px!important;line-height:1.25!important}
 .md-doctor-author .md-doctor-author-specialty{margin-top:10px!important;font-size:16px!important}
 .md-doctor-card>.md-doctor-author{padding-top:30px;padding-bottom:28px}
 .md-doctor-card .md-doctor-card-recommend{min-height:42px;padding:10px 14px;font-size:13px;border-radius:13px;gap:8px}
 .md-doctor-card-recommend svg{width:18px!important;height:18px!important;flex-basis:18px}
 .md-doctor-card-scroll-hint{display:block}
 .md-doctor-card .medgyd-license-summary{font-size:13px;line-height:1.7}
 .md-doctor-card-breadcrumb{margin-top:20px;font-size:12px}
 .md-doctor-card-actions{gap:10px;margin-top:22px}
 .md-doctor-card-actions .medgyd-verified{width:100%;justify-content:flex-start}
 .md-doctor-card-actions :is(.medgyd-status-pill,.medgyd-leave-review,.md-doctor-card-faq){font-size:12px!important;padding:11px 14px!important}
}

body .md-doctor-card .md-doctor-card-actions a.md-doctor-card-faq{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:12px 18px!important;background:#eef7fc!important;border:1px solid #dce7f0!important;border-radius:999px!important;color:#075b91!important;-webkit-text-fill-color:#075b91!important;font:600 13px/1.4 Montserrat,Arial,sans-serif!important;text-decoration:none!important;box-shadow:none!important}
body .md-doctor-card .md-doctor-card-actions a.md-doctor-card-faq:is(:hover,:focus-visible){background:#fe5252!important;border-color:#fe5252!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
.md-doctor-card-faq>svg{width:16px;height:16px;flex:0 0 16px}

.md-doctor-card-top{align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.md-doctor-card-top>.md-doctor-card-bookmark{margin:0;flex:0 0 auto}.md-doctor-card-top>.md-doctor-card-recommend{margin-left:auto}

/* Secondary save action follows the review action and shares its pill styling. */
.md-doctor-card .md-doctor-card-actions .md-bookmark-control .md-bookmark:is(button,:hover,:focus,:active,[aria-pressed=true],:disabled){min-height:46px!important;min-width:110px;padding:12px 16px!important;border:1px solid rgba(255,255,255,.45)!important;border-radius:999px!important;background:#eef7fc!important;color:#075b91!important;font:600 13px/1.5 Montserrat,sans-serif!important;box-sizing:border-box;gap:9px;transform:none!important}
.md-doctor-card .md-doctor-card-actions .md-bookmark-control .md-bookmark:is(:hover,:focus-visible,[aria-pressed=true]){background:#fe5252!important;border-color:#fe5252!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
@media(max-width:600px){.md-doctor-card .md-doctor-card-actions .md-bookmark-control .md-bookmark:is(button,:hover,:focus,:active,[aria-pressed=true],:disabled){font-size:12px!important;padding:11px 14px!important}}

/* Compact card actions; mobile uses deliberate rows instead of an orphan FAQ. */
body .md-doctor-card .md-doctor-card-actions{gap:8px}
body .md-doctor-card .md-doctor-card-actions :is(.medgyd-status-pill,.medgyd-leave-review,.md-doctor-card-faq,.md-claim-invite-button),
body .md-doctor-card .md-doctor-card-actions .md-bookmark-control .md-bookmark:is(button,:hover,:focus,:active,[aria-pressed=true],:disabled){min-width:0!important;min-height:44px!important;padding:8px 12px!important;font-size:12px!important;line-height:1.4!important;gap:6px!important;box-sizing:border-box;max-width:100%;white-space:normal;overflow-wrap:anywhere}
body .md-doctor-card .md-doctor-card-actions svg{width:16px!important;height:16px!important;flex:0 0 16px}
body .md-doctor-card .md-doctor-card-actions .medgyd-verified::before{width:16px;height:16px;flex:0 0 16px;font-size:11px}
body .md-doctor-card .md-doctor-card-recommend{min-height:38px;padding:8px 12px;font-size:12px;gap:6px;border-radius:12px}
body .md-doctor-card .md-doctor-card-recommend svg{width:16px!important;height:16px!important;flex-basis:16px}
@media(max-width:600px){
 body .md-doctor-card .md-doctor-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
 body .md-doctor-card .md-doctor-card-actions :is(.medgyd-status-pill,.md-claim-invite,.medgyd-leave-review){grid-column:1/-1;width:100%;min-width:0;justify-content:center}
 body .md-doctor-card .md-doctor-card-actions .md-claim-invite-button{width:100%;justify-content:center;text-align:center}
 body .md-doctor-card .md-doctor-card-actions .md-bookmark-control{display:flex;min-width:0;width:100%;align-items:stretch}
 body .md-doctor-card .md-doctor-card-actions .md-bookmark{width:100%}
 body .md-doctor-card .md-doctor-card-actions a.md-doctor-card-faq{width:100%;margin-left:0!important}
}
