/* SSB Médicos | Agência SSB | estilos das páginas de médicos, listagem e especialidades */

.ssb-med {
	--ssb-primary: #28166E;
	--ssb-primary-2: #3B2590;
	--ssb-text: #3F3F4A;
	--ssb-muted: #616161;
	--ssb-bg: #F6F5FA;
	--ssb-surface: #FFFFFF;
	--ssb-border: #E4E2EE;
	--ssb-radius: 16px;
	--ssb-gutter: clamp(15px, 3vw, 40px);
	color: var(--ssb-text);
	background: var(--ssb-bg);
	padding: clamp(24px, 4vw, 56px) 0 clamp(48px, 6vw, 96px);
	font-size: 16px;
	line-height: 1.65;
}
.ssb-med *, .ssb-med *::before, .ssb-med *::after { box-sizing: border-box; }
.ssb-wrap { width: 100%; max-width: min(calc(100% - 2 * clamp(24px, 3vw, 80px)), 1500px); margin: 0 auto; padding: 0; }
@media (min-width: 1921px) { .ssb-wrap { max-width: min(calc(100% - 2 * clamp(24px, 3vw, 80px)), 78vw, 3000px); } .ssb-med { font-size: 18px; } }
@media (max-width: 1199px) { .ssb-wrap { max-width: none; padding: 0 15px; } }

/* Integração com o tema Patholab nas telas do plugin:
   sem o banner de título do tema (evita H1 duplicado e acelera a página),
   cabeçalho com fundo na cor da marca e sem o espaçamento extra do conteúdo. */
body.ssb-med-view #pxl-page-title-elementor { display: none !important; }
body.ssb-med-view #pxl-header-elementor { background: linear-gradient(180deg, #12083A 0%, #28166E 100%); }
body.ssb-med-view #pxl-main { padding-top: 0 !important; padding-bottom: 0 !important; }

.ssb-med h1, .ssb-med h2, .ssb-med h3 { color: var(--ssb-primary); line-height: 1.2; margin: 0 0 .6em; }
.ssb-med a { color: var(--ssb-primary); }
.ssb-med p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Migalhas */
.ssb-bc ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0; font-size: .875em; color: var(--ssb-muted); }
.ssb-bc li + li::before { content: "/"; margin-right: 6px; color: #B7B3C9; }
.ssb-bc a { color: var(--ssb-muted); text-decoration: none; }
.ssb-bc a:hover { color: var(--ssb-primary); text-decoration: underline; }
.ssb-bc [aria-current] { color: var(--ssb-primary); font-weight: 600; }

.ssb-eyebrow { font-size: .8125em; letter-spacing: .08em; text-transform: uppercase; color: var(--ssb-primary-2); font-weight: 600; margin: 0 0 8px; }

/* Topo do perfil */
.ssb-hero { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--ssb-surface); border: 1px solid var(--ssb-border); border-radius: var(--ssb-radius); padding: clamp(18px, 3vw, 36px); }
.ssb-hero__photo { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: #E9E7F2; }
.ssb-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.ssb-hero__name { font-size: clamp(28px, 3.4vw, 48px); font-weight: 700; margin-bottom: 8px; }
.ssb-hero__role { font-size: clamp(17px, 1.5vw, 22px); color: var(--ssb-text); font-weight: 500; margin-bottom: 6px; }
.ssb-hero__reg { font-size: .9375em; color: var(--ssb-muted); margin-bottom: 18px; }
.ssb-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.ssb-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ssb-chips a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #EFEDF7; color: var(--ssb-primary); font-size: .875em; font-weight: 500; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.ssb-chips a:hover { background: var(--ssb-primary); color: #fff; }

/* Botões */
.ssb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: .9375em; text-decoration: none; border: 2px solid transparent; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.ssb-btn:active { transform: scale(.98); }
.ssb-med .ssb-btn--primary { background: var(--ssb-primary); color: #fff; }
.ssb-med .ssb-btn--primary:hover { background: var(--ssb-primary-2); color: #fff; }
.ssb-med .ssb-btn--ghost { border-color: var(--ssb-primary); color: var(--ssb-primary); background: transparent; }
.ssb-med .ssb-btn--ghost:hover { background: var(--ssb-primary); color: #fff; }
.ssb-med .ssb-btn--light { background: #fff; color: var(--ssb-primary); }
.ssb-med .ssb-btn--light:hover { background: #EFEDF7; color: var(--ssb-primary); }
.ssb-med .ssb-btn--outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.ssb-med .ssb-btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.ssb-btn--block { width: 100%; margin-top: 16px; }
.ssb-btn:focus-visible, .ssb-med a:focus-visible, .ssb-faq summary:focus-visible { outline: 3px solid #8F7FE0; outline-offset: 2px; }

/* Resumo (bloco que IAs e Google costumam citar) */
.ssb-summary { margin: 24px 0 0; padding: clamp(18px, 2.5vw, 28px) clamp(18px, 3vw, 36px); background: var(--ssb-surface); border-left: 4px solid var(--ssb-primary); border-radius: 0 var(--ssb-radius) var(--ssb-radius) 0; }
.ssb-summary__title { font-size: 1em !important; text-transform: uppercase; letter-spacing: .06em; color: var(--ssb-primary-2) !important; margin-bottom: 6px !important; }
.ssb-summary p { font-size: 1.0625em; margin: 0; }

/* Conteúdo + lateral */
.ssb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 3vw, 40px); margin-top: 32px; align-items: start; }
.ssb-section { background: var(--ssb-surface); border: 1px solid var(--ssb-border); border-radius: var(--ssb-radius); padding: clamp(20px, 3vw, 36px); margin-bottom: 20px; }
.ssb-section h2 { font-size: clamp(21px, 1.8vw, 28px); }
.ssb-section h3 { font-size: 1.125em; margin-top: 1.4em; }
.ssb-prose > :last-child { margin-bottom: 0; }

.ssb-checklist { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.ssb-checklist li { position: relative; padding-left: 30px; }
.ssb-checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--ssb-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.6 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

.ssb-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ssb-tags li { padding: 6px 14px; border: 1px solid var(--ssb-border); border-radius: 999px; font-size: .9375em; background: var(--ssb-bg); }

.ssb-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--ssb-border); }
.ssb-timeline li { position: relative; padding: 0 0 18px 4px; }
.ssb-timeline li::before { content: ""; position: absolute; left: -29px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--ssb-primary); }
.ssb-timeline strong { display: block; color: var(--ssb-primary); }
.ssb-timeline span { color: var(--ssb-muted); }

.ssb-quote::before, .ssb-quote::after { display: none !important; content: none !important; }
.ssb-quote { margin: 20px 0 0; padding: 22px 24px; background: var(--ssb-bg); border-radius: 12px; border: 0; }
.ssb-quote p { font-size: 1.125em; font-style: italic; color: var(--ssb-primary); margin-bottom: 8px; }
.ssb-quote p::before { content: "\201C"; } .ssb-quote p::after { content: "\201D"; }
.ssb-quote cite { font-style: normal; font-weight: 600; font-size: .9375em; color: var(--ssb-muted); }

.ssb-faq details { border-bottom: 1px solid var(--ssb-border); }
.ssb-faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; color: var(--ssb-primary); position: relative; }
.ssb-faq summary::-webkit-details-marker { display: none; }
.ssb-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4em; line-height: 1; transition: transform .2s ease; }
.ssb-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ssb-faq details p { margin: 0 0 16px; }

.ssb-aside { position: sticky; top: 110px; }
.ssb-facts { background: var(--ssb-surface); border: 1px solid var(--ssb-border); border-radius: var(--ssb-radius); padding: 24px; }
.ssb-facts__title { font-size: 1.125em !important; }
.ssb-facts dl { margin: 0; display: grid; gap: 14px; }
.ssb-facts dt { font-size: .8125em; text-transform: uppercase; letter-spacing: .05em; color: var(--ssb-muted); }
.ssb-facts dd { margin: 2px 0 0; font-weight: 500; }

/* Cards */
.ssb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.ssb-card { background: var(--ssb-surface); border: 1px solid var(--ssb-border); border-radius: var(--ssb-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease; }
.ssb-card__photo { display: block; aspect-ratio: 4 / 5; background: #E9E7F2; overflow: hidden; }
.ssb-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.ssb-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ssb-med .ssb-card__name { font-size: 1.125em; margin: 0; }
.ssb-card__name a { text-decoration: none; }
.ssb-card__role { margin: 0; font-weight: 500; }
.ssb-card__areas { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ssb-card__areas li { font-size: .8125em; padding: 3px 10px; border-radius: 999px; background: #EFEDF7; color: var(--ssb-primary); }
.ssb-card__reg { margin: 6px 0 0; font-size: .8125em; color: var(--ssb-muted); }
.ssb-card__link { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: .9375em; text-decoration: none; }
.ssb-card__link::after { content: " \2192"; display: inline-block; transition: transform .2s ease; }
@media (hover: hover) {
	.ssb-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(40, 22, 110, .10); }
	.ssb-card:hover .ssb-card__photo img { transform: scale(1.03); }
	.ssb-card:hover .ssb-card__link::after { transform: translateX(4px); }
}

.ssb-related { margin-top: clamp(32px, 5vw, 64px); }
.ssb-related h2 { font-size: clamp(22px, 2vw, 30px); }
.ssb-related__all { margin-top: 20px; text-align: center; font-weight: 600; }

/* Listagem */
.ssb-list-head { max-width: 860px; margin-bottom: 28px; }
.ssb-list-head h1 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 700; }
.ssb-list-head__intro { font-size: 1.0625em; }
.ssb-filter ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; }
.ssb-filter a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ssb-border); background: #fff; text-decoration: none; font-weight: 500; font-size: .9375em; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.ssb-filter a:hover, .ssb-filter a[aria-current] { background: var(--ssb-primary); border-color: var(--ssb-primary); color: #fff; }
.ssb-filter__sub a { font-size: .875em; padding: 6px 14px; }
.ssb-grid--list { margin-top: 20px; }
.ssb-empty { padding: 32px 0; }

.ssb-cta { margin-top: clamp(40px, 6vw, 80px); background: var(--ssb-primary); color: #fff; border-radius: var(--ssb-radius); padding: clamp(28px, 4vw, 56px); text-align: center; }
.ssb-med .ssb-cta h2 { color: #fff; font-size: clamp(22px, 2.2vw, 34px); }
.ssb-cta .ssb-hero__cta { justify-content: center; }

/* Artigos do médico */
.ssb-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.ssb-article { border: 1px solid var(--ssb-border); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .25s ease, transform .25s cubic-bezier(.22,1,.36,1); }
.ssb-article__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #E9E7F2; }
.ssb-article__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ssb-article__body { padding: 14px 16px 18px; }
.ssb-article__meta { font-size: .8125em; color: var(--ssb-muted); margin: 0 0 6px; }
.ssb-med .ssb-article__title { font-size: 1em; margin: 0 0 6px; line-height: 1.35; }
.ssb-article__title a { text-decoration: none; }
.ssb-article__excerpt { font-size: .9375em; margin: 0; }
@media (hover: hover) { .ssb-article:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(40, 22, 110, .09); } }

/* Responsivo */
@media (max-width: 991px) {
	.ssb-layout { grid-template-columns: 1fr; }
	.ssb-aside { position: static; order: -1; }
}
@media (max-width: 767px) {
	.ssb-hero { grid-template-columns: 1fr; text-align: left; }
	.ssb-hero__photo { max-width: 420px; aspect-ratio: 1 / 1; }
	.ssb-hero__cta .ssb-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.ssb-med * { transition: none !important; }
}

/* Quadro do médico no final dos artigos do blog */
.ssb-byline { display: grid; gap: 12px; margin: 32px 0 8px; padding: 18px 20px; border: 1px solid #E4E2EE; border-left: 4px solid #28166E; border-radius: 12px; background: #F6F5FA; }
.ssb-byline__item { display: flex; align-items: center; gap: 14px; }
.ssb-byline__photo img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center top; display: block; }
.ssb-byline__text { display: flex; flex-direction: column; line-height: 1.35; }
.ssb-byline__label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #3B2590; font-weight: 600; }
.ssb-byline__name { font-weight: 700; color: #28166E; text-decoration: none; font-size: 17px; }
.ssb-byline__name:hover { text-decoration: underline; }
.ssb-byline__meta { font-size: 14px; color: #616161; }
